|
|
!(function(){var zA=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[2303],{70557:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},27812:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},89489:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},59477:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},40001:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},26227:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},49198:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},84105:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},18785:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},87169:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},73331:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},15277:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},52671:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},8657:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},56082:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},33853:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},15075:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},43531:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},61485:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},38819:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},47472:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},95869:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},87395:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Re=ae,K=E(7657),g=function(d,N){return Fe.createElement(K.Z,(0,le.Z)({},d,{ref:N,icon:Re}))},R=Fe.forwardRef(g),T=R},35593:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return It}});var le=E(77321),Fe=E(52487),ae=E(74416),Re=E(43403),K=E(92310),g=E.n(K),R=E(29301),T=E(76846),l=E(96452),d=E(6089),N=E(80402),v=E(34280),m=E(49658),b=E(59301),I=E(72308),L=E(77900),z=E(8654);function P(Z){var x=Z.prefixCls,y=Z.align,k=Z.arrow,fe=Z.arrowPos,W=k||{},Q=W.className,re=W.content,Se=fe.x,Be=Se===void 0?0:Se,Te=fe.y,Ge=Te===void 0?0:Te,ut=b.useRef();if(!y||!y.points)return null;var $e={position:"absolute"};if(y.autoArrow!==!1){var Je=y.points[0],At=y.points[1],ze=Je[0],He=Je[1],vt=At[0],jt=At[1];ze===vt||!["t","b"].includes(ze)?$e.top=Ge:ze==="t"?$e.top=0:$e.bottom=0,He===jt||!["l","r"].includes(He)?$e.left=Be:He==="l"?$e.left=0:$e.right=0}return b.createElement("div",{ref:ut,className:g()("".concat(x,"-arrow"),Q),style:$e},re)}function $(Z){var x=Z.prefixCls,y=Z.open,k=Z.zIndex,fe=Z.mask,W=Z.motion;return fe?b.createElement(L.default,(0,I.Z)({},W,{motionAppear:!0,visible:y,removeOnLeave:!0}),function(Q){var re=Q.className;return b.createElement("div",{style:{zIndex:k},className:g()("".concat(x,"-mask"),re)})}):null}var J=b.memo(function(Z){var x=Z.children;return x},function(Z,x){return x.cache}),te=J,H=b.forwardRef(function(Z,x){var y=Z.popup,k=Z.className,fe=Z.prefixCls,W=Z.style,Q=Z.target,re=Z.onVisibleChanged,Se=Z.open,Be=Z.keepDom,Te=Z.fresh,Ge=Z.onClick,ut=Z.mask,$e=Z.arrow,Je=Z.arrowPos,At=Z.align,ze=Z.motion,He=Z.maskMotion,vt=Z.forceRender,jt=Z.getPopupContainer,Dt=Z.autoDestroy,lr=Z.portal,gr=Z.zIndex,ne=Z.onMouseEnter,we=Z.onMouseLeave,Vt=Z.onPointerEnter,Ue=Z.ready,it=Z.offsetX,Rr=Z.offsetY,Tt=Z.offsetR,Rt=Z.offsetB,$t=Z.onAlign,qe=Z.onPrepare,pt=Z.stretch,rt=Z.targetWidth,Ht=Z.targetHeight,Oe=typeof y=="function"?y():y,$r=Se||Be,Bt=(jt==null?void 0:jt.length)>0,gn=b.useState(!jt||!Bt),On=(0,Fe.Z)(gn,2),hi=On[0],ti=On[1];if((0,v.Z)(function(){!hi&&Bt&&Q&&ti(!0)},[hi,Bt,Q]),!hi)return null;var En="auto",Dn={left:"-1000vw",top:"-1000vh",right:En,bottom:En};if(Ue||!Se){var Ut,Dr=At.points,Pr=At.dynamicInset||((Ut=At._experimental)===null||Ut===void 0?void 0:Ut.dynamicInset),St=Pr&&Dr[0][1]==="r",mt=Pr&&Dr[0][0]==="b";St?(Dn.right=Tt,Dn.left=En):(Dn.left=it,Dn.right=En),mt?(Dn.bottom=Rt,Dn.top=En):(Dn.top=Rr,Dn.bottom=En)}var mr={};return pt&&(pt.includes("height")&&Ht?mr.height=Ht:pt.includes("minHeight")&&Ht&&(mr.minHeight=Ht),pt.includes("width")&&rt?mr.width=rt:pt.includes("minWidth")&&rt&&(mr.minWidth=rt)),Se||(mr.pointerEvents="none"),b.createElement(lr,{open:vt||$r,getContainer:jt&&function(){return jt(Q)},autoDestroy:Dt},b.createElement($,{prefixCls:fe,open:Se,zIndex:gr,mask:ut,motion:He}),b.createElement(R.Z,{onResize:$t,disabled:!Se},function(xr){return b.createElement(L.default,(0,I.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:vt,leavedClassName:"".concat(fe,"-hidden")},ze,{onAppearPrepare:qe,onEnterPrepare:qe,visible:Se,onVisibleChanged:function(kr){var un;ze==null||(un=ze.onVisibleChanged)===null||un===void 0||un.call(ze,kr),re(kr)}}),function(on,kr){var un=on.className,nn=on.style,_n=g()(fe,un,k);return b.createElement("div",{ref:(0,z.sQ)(xr,x,kr),className:_n,style:(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({"--arrow-x":"".concat(Je.x||0,"px"),"--arrow-y":"".concat(Je.y||0,"px")},Dn),mr),nn),{},{boxSizing:"border-box",zIndex:gr},W),onMouseEnter:ne,onMouseLeave:we,onPointerEnter:Vt,onClick:Ge},$e&&b.createElement(P,{prefixCls:fe,arrow:$e,arrowPos:Je,align:At}),b.createElement(te,{cache:!Se&&!Te},Oe))})}))}),G=H,ce=b.forwardRef(function(Z,x){var y=Z.children,k=Z.getTriggerDOMNode,fe=(0,z.Yr)(y),W=b.useCallback(function(re){(0,z.mH)(x,k?k(re):re)},[k]),Q=(0,z.x1)(W,y.ref);return fe?b.cloneElement(y,{ref:Q}):y}),q=ce,ye=b.createContext(null),_e=ye;function Le(Z){return Z?Array.isArray(Z)?Z:[Z]:[]}function se(Z,x,y,k){return b.useMemo(function(){var fe=Le(y!=null?y:x),W=Le(k!=null?k:x),Q=new Set(fe),re=new Set(W);return Z&&(Q.has("hover")&&(Q.delete("hover"),Q.add("click")),re.has("hover")&&(re.delete("hover"),re.add("click"))),[Q,re]},[Z,x,y,k])}var be=E(29194);function O(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],y=arguments.length>2?arguments[2]:void 0;return y?Z[0]===x[0]:Z[0]===x[0]&&Z[1]===x[1]}function Ee(Z,x,y,k){for(var fe=y.points,W=Object.keys(Z),Q=0;Q<W.length;Q+=1){var re,Se=W[Q];if(O((re=Z[Se])===null||re===void 0?void 0:re.points,fe,k))return"".concat(x,"-placement-").concat(Se)}return""}function ue(Z,x,y,k){return x||(y?{motionName:"".concat(Z,"-").concat(y)}:k?{motionName:k}:null)}function he(Z){return Z.ownerDocument.defaultView}function ve(Z){for(var x=[],y=Z==null?void 0:Z.parentElement,k=["hidden","scroll","clip","auto"];y;){var fe=he(y).getComputedStyle(y),W=fe.overflowX,Q=fe.overflowY,re=fe.overflow;[W,Q,re].some(function(Se){return k.includes(Se)})&&x.push(y),y=y.parentElement}return x}function F(Z){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Z)?x:Z}function U(Z){return F(parseFloat(Z),0)}function ee(Z,x){var y=(0,le.Z)({},Z);return(x||[]).forEach(function(k){if(!(k instanceof HTMLBodyElement||k instanceof HTMLHtmlElement)){var fe=he(k).getComputedStyle(k),W=fe.overflow,Q=fe.overflowClipMargin,re=fe.borderTopWidth,Se=fe.borderBottomWidth,Be=fe.borderLeftWidth,Te=fe.borderRightWidth,Ge=k.getBoundingClientRect(),ut=k.offsetHeight,$e=k.clientHeight,Je=k.offsetWidth,At=k.clientWidth,ze=U(re),He=U(Se),vt=U(Be),jt=U(Te),Dt=F(Math.round(Ge.width/Je*1e3)/1e3),lr=F(Math.round(Ge.height/ut*1e3)/1e3),gr=(Je-At-vt-jt)*Dt,ne=(ut-$e-ze-He)*lr,we=ze*lr,Vt=He*lr,Ue=vt*Dt,it=jt*Dt,Rr=0,Tt=0;if(W==="clip"){var Rt=U(Q);Rr=Rt*Dt,Tt=Rt*lr}var $t=Ge.x+Ue-Rr,qe=Ge.y+we-Tt,pt=$t+Ge.width+2*Rr-Ue-it-gr,rt=qe+Ge.height+2*Tt-we-Vt-ne;y.left=Math.max(y.left,$t),y.top=Math.max(y.top,qe),y.right=Math.min(y.right,pt),y.bottom=Math.min(y.bottom,rt)}}),y}function de(Z){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y="".concat(x),k=y.match(/^(.*)\%$/);return k?Z*(parseFloat(k[1])/100):parseFloat(y)}function Xe(Z,x){var y=x||[],k=(0,Fe.Z)(y,2),fe=k[0],W=k[1];return[de(Z.width,fe),de(Z.height,W)]}function tt(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Z[0],Z[1]]}function nt(Z,x){var y=x[0],k=x[1],fe,W;return y==="t"?W=Z.y:y==="b"?W=Z.y+Z.height:W=Z.y+Z.height/2,k==="l"?fe=Z.x:k==="r"?fe=Z.x+Z.width:fe=Z.x+Z.width/2,{x:fe,y:W}}function _t(Z,x){var y={t:"b",b:"t",l:"r",r:"l"};return Z.map(function(k,fe){return fe===x?y[k]||"c":k}).join("")}function Xt(Z,x,y,k,fe,W,Q){var re=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:fe[k]||{}}),Se=(0,Fe.Z)(re,2),Be=Se[0],Te=Se[1],Ge=b.useRef(0),ut=b.useMemo(function(){return x?ve(x):[]},[x]),$e=b.useRef({}),Je=function(){$e.current={}};Z||Je();var At=(0,d.Z)(function(){if(x&&y&&Z){let wi=function(Yi,gs){var na=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_n,Ks=Oe.x+Yi,Os=Oe.y+gs,Qi=Ks+Ut,Ys=Os+Dn,Za=Math.max(Ks,na.left),la=Math.max(Os,na.top),ua=Math.min(Qi,na.right),Xs=Math.min(Ys,na.bottom);return Math.max(0,(ua-Za)*(Xs-la))},vi=function(){hn=Oe.y+an,Fn=hn+Dn,$n=Oe.x+hr,bi=$n+Ut};var vt,jt,Dt=x,lr=Dt.ownerDocument,gr=he(Dt),ne=gr.getComputedStyle(Dt),we=ne.width,Vt=ne.height,Ue=ne.position,it=Dt.style.left,Rr=Dt.style.top,Tt=Dt.style.right,Rt=Dt.style.bottom,$t=Dt.style.overflow,qe=(0,le.Z)((0,le.Z)({},fe[k]),W),pt=lr.createElement("div");(vt=Dt.parentElement)===null||vt===void 0||vt.appendChild(pt),pt.style.left="".concat(Dt.offsetLeft,"px"),pt.style.top="".concat(Dt.offsetTop,"px"),pt.style.position=Ue,pt.style.height="".concat(Dt.offsetHeight,"px"),pt.style.width="".concat(Dt.offsetWidth,"px"),Dt.style.left="0",Dt.style.top="0",Dt.style.right="auto",Dt.style.bottom="auto",Dt.style.overflow="hidden";var rt;if(Array.isArray(y))rt={x:y[0],y:y[1],width:0,height:0};else{var Ht=y.getBoundingClientRect();rt={x:Ht.x,y:Ht.y,width:Ht.width,height:Ht.height}}var Oe=Dt.getBoundingClientRect(),$r=lr.documentElement,Bt=$r.clientWidth,gn=$r.clientHeight,On=$r.scrollWidth,hi=$r.scrollHeight,ti=$r.scrollTop,En=$r.scrollLeft,Dn=Oe.height,Ut=Oe.width,Dr=rt.height,Pr=rt.width,St={left:0,top:0,right:Bt,bottom:gn},mt={left:-En,top:-ti,right:On-En,bottom:hi-ti},mr=qe.htmlRegion,xr="visible",on="visibleFirst";mr!=="scroll"&&mr!==on&&(mr=xr);var kr=mr===on,un=ee(mt,ut),nn=ee(St,ut),_n=mr===xr?nn:un,Un=kr?nn:_n;Dt.style.left="auto",Dt.style.top="auto",Dt.style.right="0",Dt.style.bottom="0";var vn=Dt.getBoundingClientRect();Dt.style.left=it,Dt.style.top=Rr,Dt.style.right=Tt,Dt.style.bottom=Rt,Dt.style.overflow=$t,(jt=Dt.parentElement)===null||jt===void 0||jt.removeChild(pt);var Hr=F(Math.round(Ut/parseFloat(we)*1e3)/1e3),Kr=F(Math.round(Dn/parseFloat(Vt)*1e3)/1e3);if(Hr===0||Kr===0||(0,T.Sh)(y)&&!(0,be.Z)(y))return;var qr=qe.offset,bn=qe.targetOffset,ln=Xe(Oe,qr),ui=(0,Fe.Z)(ln,2),jn=ui[0],cn=ui[1],sr=Xe(rt,bn),cr=(0,Fe.Z)(sr,2),pr=cr[0],Fr=cr[1];rt.x-=pr,rt.y-=Fr;var Br=qe.points||[],fn=(0,Fe.Z)(Br,2),Nr=fn[0],Cn=fn[1],Rn=tt(Cn),Kn=tt(Nr),Ai=nt(rt,Rn),ni=nt(Oe,Kn),mi=(0,le.Z)({},qe),hr=Ai.x-ni.x+jn,an=Ai.y-ni.y+cn,Xr=wi(hr,an),ri=wi(hr,an,nn),zn=nt(rt,["t","l"]),Hn=nt(Oe,["t","l"]),Xn=nt(rt,["b","r"]),di=nt(Oe,["b","r"]),si=qe.overflow||{},_i=si.adjustX,ji=si.adjustY,ii=si.shiftX,yn=si.shiftY,Yt=function(gs){return typeof gs=="boolean"?gs:gs>=0},hn,Fn,$n,bi;vi();var Hi=Yt(ji),rs=Kn[0]===Rn[0];if(Hi&&Kn[0]==="t"&&(Fn>Un.bottom||$e.current.bt)){var Ci=an;rs?Ci-=Dn-Dr:Ci=zn.y-di.y-cn;var is=wi(hr,Ci),ai=wi(hr,Ci,nn);is>Xr||is===Xr&&(!kr||ai>=ri)?($e.current.bt=!0,an=Ci,cn=-cn,mi.points=[_t(Kn,0),_t(Rn,0)]):$e.current.bt=!1}if(Hi&&Kn[0]==="b"&&(hn<Un.top||$e.current.tb)){var Zn=an;rs?Zn+=Dn-Dr:Zn=Xn.y-Hn.y-cn;var Li=wi(hr,Zn),Mi=wi(hr,Zn,nn);Li>Xr||Li===Xr&&(!kr||Mi>=ri)?($e.current.tb=!0,an=Zn,cn=-cn,mi.points=[_t(Kn,0),_t(Rn,0)]):$e.current.tb=!1}var ls=Yt(_i),js=Kn[1]===Rn[1];if(ls&&Kn[1]==="l"&&(bi>Un.right||$e.current.rl)){var Vn=hr;js?Vn-=Ut-Pr:Vn=zn.x-di.x-jn;var us=wi(Vn,an),Wi=wi(Vn,an,nn);us>Xr||us===Xr&&(!kr||Wi>=ri)?($e.current.rl=!0,hr=Vn,jn=-jn,mi.points=[_t(Kn,1),_t(Rn,1)]):$e.current.rl=!1}if(ls&&Kn[1]==="r"&&($n<Un.left||$e.current.lr)){var ps=hr;js?ps+=Ut-Pr:ps=Xn.x-Hn.x-jn;var Vs=wi(ps,an),vs=wi(ps,an,nn);Vs>Xr||Vs===Xr&&(!kr||vs>=ri)?($e.current.lr=!0,hr=ps,jn=-jn,mi.points=[_t(Kn,1),_t(Rn,1)]):$e.current.lr=!1}vi();var ss=ii===!0?0:ii;typeof ss=="number"&&($n<nn.left&&(hr-=$n-nn.left-jn,rt.x+Pr<nn.left+ss&&(hr+=rt.x-nn.left+Pr-ss)),bi>nn.right&&(hr-=bi-nn.right-jn,rt.x>nn.right-ss&&(hr+=rt.x-nn.right+ss)));var gi=yn===!0?0:yn;typeof gi=="number"&&(hn<nn.top&&(an-=hn-nn.top-cn,rt.y+Dr<nn.top+gi&&(an+=rt.y-nn.top+Dr-gi)),Fn>nn.bottom&&(an-=Fn-nn.bottom-cn,rt.y>nn.bottom-gi&&(an+=rt.y-nn.bottom+gi)));var Ui=Oe.x+hr,Ws=Ui+Ut,Ti=Oe.y+an,Ds=Ti+Dn,Ri=rt.x,ks=Ri+Pr,$i=rt.y,Pa=$i+Dr,aa=Math.max(Ui,Ri),Na=Math.min(Ws,ks),Vi=(aa+Na)/2,Ga=Vi-Ui,Rs=Math.max(Ti,$i),Pn=Math.min(Ds,Pa),as=(Rs+Pn)/2,Ca=as-Ti;Q==null||Q(x,mi);var Bi=vn.right-Oe.x-(hr+Oe.width),Di=vn.bottom-Oe.y-(an+Oe.height);Te({ready:!0,offsetX:hr/Hr,offsetY:an/Kr,offsetR:Bi/Hr,offsetB:Di/Kr,arrowX:Ga/Hr,arrowY:Ca/Kr,scaleX:Hr,scaleY:Kr,align:mi})}}),ze=function(){Ge.current+=1;var jt=Ge.current;Promise.resolve().then(function(){Ge.current===jt&&At()})},He=function(){Te(function(jt){return(0,le.Z)((0,le.Z)({},jt),{},{ready:!1})})};return(0,v.Z)(He,[k]),(0,v.Z)(function(){Z||He()},[Z]),[Be.ready,Be.offsetX,Be.offsetY,Be.offsetR,Be.offsetB,Be.arrowX,Be.arrowY,Be.scaleX,Be.scaleY,Be.align,ze]}var zt=E(80702);function Ze(Z,x,y,k,fe){(0,v.Z)(function(){if(Z&&x&&y){let Ge=function(){k(),fe()};var W=x,Q=y,re=ve(W),Se=ve(Q),Be=he(Q),Te=new Set([Be].concat((0,zt.Z)(re),(0,zt.Z)(Se)));return Te.forEach(function(ut){ut.addEventListener("scroll",Ge,{passive:!0})}),Be.addEventListener("resize",Ge,{passive:!0}),k(),function(){Te.forEach(function(ut){ut.removeEventListener("scroll",Ge),Be.removeEventListener("resize",Ge)})}}},[Z,x,y])}var fr=E(48736),yr=E(16089);function Ar(Z,x,y,k,fe,W,Q,re){var Se=b.useRef(Z),Be=b.useRef(!1);Se.current!==Z&&(Be.current=!0,Se.current=Z),b.useEffect(function(){var Te=(0,yr.Z)(function(){Be.current=!1});return function(){yr.Z.cancel(Te)}},[Z]),b.useEffect(function(){if(x&&k&&(!fe||W)){var Te=function(){var Ue=!1,it=function(Rt){var $t=Rt.target;Ue=Q($t)},Rr=function(Rt){var $t=Rt.target;!Be.current&&Se.current&&!Ue&&!Q($t)&&re(!1)};return[it,Rr]},Ge=Te(),ut=(0,Fe.Z)(Ge,2),$e=ut[0],Je=ut[1],At=Te(),ze=(0,Fe.Z)(At,2),He=ze[0],vt=ze[1],jt=he(k);jt.addEventListener("mousedown",$e,!0),jt.addEventListener("click",Je,!0),jt.addEventListener("contextmenu",Je,!0);var Dt=(0,l.A)(y);if(Dt&&(Dt.addEventListener("mousedown",He,!0),Dt.addEventListener("click",vt,!0),Dt.addEventListener("contextmenu",vt,!0)),0)var lr,gr,ne,we;return function(){jt.removeEventListener("mousedown",$e,!0),jt.removeEventListener("click",Je,!0),jt.removeEventListener("contextmenu",Je,!0),Dt&&(Dt.removeEventListener("mousedown",He,!0),Dt.removeEventListener("click",vt,!0),Dt.removeEventListener("contextmenu",vt,!0))}}},[x,y,k,fe,W])}var vr=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ce(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Re.Z,x=b.forwardRef(function(y,k){var fe=y.prefixCls,W=fe===void 0?"rc-trigger-popup":fe,Q=y.children,re=y.action,Se=re===void 0?"hover":re,Be=y.showAction,Te=y.hideAction,Ge=y.popupVisible,ut=y.defaultPopupVisible,$e=y.onPopupVisibleChange,Je=y.afterPopupVisibleChange,At=y.mouseEnterDelay,ze=y.mouseLeaveDelay,He=ze===void 0?.1:ze,vt=y.focusDelay,jt=y.blurDelay,Dt=y.mask,lr=y.maskClosable,gr=lr===void 0?!0:lr,ne=y.getPopupContainer,we=y.forceRender,Vt=y.autoDestroy,Ue=y.destroyPopupOnHide,it=y.popup,Rr=y.popupClassName,Tt=y.popupStyle,Rt=y.popupPlacement,$t=y.builtinPlacements,qe=$t===void 0?{}:$t,pt=y.popupAlign,rt=y.zIndex,Ht=y.stretch,Oe=y.getPopupClassNameFromAlign,$r=y.fresh,Bt=y.alignPoint,gn=y.onPopupClick,On=y.onPopupAlign,hi=y.arrow,ti=y.popupMotion,En=y.maskMotion,Dn=y.popupTransitionName,Ut=y.popupAnimation,Dr=y.maskTransitionName,Pr=y.maskAnimation,St=y.className,mt=y.getTriggerDOMNode,mr=(0,ae.Z)(y,vr),xr=Vt||Ue||!1,on=b.useState(!1),kr=(0,Fe.Z)(on,2),un=kr[0],nn=kr[1];(0,v.Z)(function(){nn((0,m.Z)())},[]);var _n=b.useRef({}),Un=b.useContext(_e),vn=b.useMemo(function(){return{registerSubPopup:function(oi,Ji){_n.current[oi]=Ji,Un==null||Un.registerSubPopup(oi,Ji)}}},[Un]),Hr=(0,N.Z)(),Kr=b.useState(null),qr=(0,Fe.Z)(Kr,2),bn=qr[0],ln=qr[1],ui=(0,d.Z)(function(li){(0,T.Sh)(li)&&bn!==li&&ln(li),Un==null||Un.registerSubPopup(Hr,li)}),jn=b.useState(null),cn=(0,Fe.Z)(jn,2),sr=cn[0],cr=cn[1],pr=b.useRef(null),Fr=(0,d.Z)(function(li){(0,T.Sh)(li)&&sr!==li&&(cr(li),pr.current=li)}),Br=b.Children.only(Q),fn=(Br==null?void 0:Br.props)||{},Nr={},Cn=(0,d.Z)(function(li){var oi,Ji,$s=sr;return($s==null?void 0:$s.contains(li))||((oi=(0,l.A)($s))===null||oi===void 0?void 0:oi.host)===li||li===$s||(bn==null?void 0:bn.contains(li))||((Ji=(0,l.A)(bn))===null||Ji===void 0?void 0:Ji.host)===li||li===bn||Object.values(_n.current).some(function(As){return(As==null?void 0:As.contains(li))||li===As})}),Rn=ue(W,ti,Ut,Dn),Kn=ue(W,En,Pr,Dr),Ai=b.useState(ut||!1),ni=(0,Fe.Z)(Ai,2),mi=ni[0],hr=ni[1],an=Ge!=null?Ge:mi,Xr=(0,d.Z)(function(li){Ge===void 0&&hr(li)});(0,v.Z)(function(){hr(Ge||!1)},[Ge]);var ri=b.useRef(an);ri.current=an;var zn=b.useRef([]);zn.current=[];var Hn=(0,d.Z)(function(li){var oi;Xr(li),((oi=zn.current[zn.current.length-1])!==null&&oi!==void 0?oi:an)!==li&&(zn.current.push(li),$e==null||$e(li))}),Xn=b.useRef(),di=function(){clearTimeout(Xn.current)},si=function(oi){var Ji=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;di(),Ji===0?Hn(oi):Xn.current=setTimeout(function(){Hn(oi)},Ji*1e3)};b.useEffect(function(){return di},[]);var _i=b.useState(!1),ji=(0,Fe.Z)(_i,2),ii=ji[0],yn=ji[1];(0,v.Z)(function(li){(!li||an)&&yn(!0)},[an]);var Yt=b.useState(null),hn=(0,Fe.Z)(Yt,2),Fn=hn[0],$n=hn[1],bi=b.useState([0,0]),Hi=(0,Fe.Z)(bi,2),rs=Hi[0],Ci=Hi[1],is=function(oi){Ci([oi.clientX,oi.clientY])},ai=Xt(an,bn,Bt?rs:sr,Rt,qe,pt,On),Zn=(0,Fe.Z)(ai,11),Li=Zn[0],Mi=Zn[1],ls=Zn[2],js=Zn[3],Vn=Zn[4],us=Zn[5],Wi=Zn[6],ps=Zn[7],Vs=Zn[8],vs=Zn[9],ss=Zn[10],gi=se(un,Se,Be,Te),Ui=(0,Fe.Z)(gi,2),Ws=Ui[0],Ti=Ui[1],Ds=Ws.has("click"),Ri=Ti.has("click")||Ti.has("contextMenu"),ks=(0,d.Z)(function(){ii||ss()}),$i=function(){ri.current&&Bt&&Ri&&si(!1)};Ze(an,sr,bn,ks,$i),(0,v.Z)(function(){ks()},[rs,Rt]),(0,v.Z)(function(){an&&!(qe!=null&&qe[Rt])&&ks()},[JSON.stringify(pt)]);var Pa=b.useMemo(function(){var li=Ee(qe,W,vs,Bt);return g()(li,Oe==null?void 0:Oe(vs))},[vs,Oe,qe,W,Bt]);b.useImperativeHandle(k,function(){return{nativeElement:pr.current,forceAlign:ks}});var aa=b.useState(0),Na=(0,Fe.Z)(aa,2),Vi=Na[0],Ga=Na[1],Rs=b.useState(0),Pn=(0,Fe.Z)(Rs,2),as=Pn[0],Ca=Pn[1],Bi=function(){if(Ht&&sr){var oi=sr.getBoundingClientRect();Ga(oi.width),Ca(oi.height)}},Di=function(){Bi(),ks()},wi=function(oi){yn(!1),ss(),Je==null||Je(oi)},vi=function(){return new Promise(function(oi){Bi(),$n(function(){return oi})})};(0,v.Z)(function(){Fn&&(ss(),Fn(),$n(null))},[Fn]);function Yi(li,oi,Ji,$s){Nr[li]=function(As){var ca;$s==null||$s(As),si(oi,Ji);for(var ea=arguments.length,Va=new Array(ea>1?ea-1:0),ta=1;ta<ea;ta++)Va[ta-1]=arguments[ta];(ca=fn[li])===null||ca===void 0||ca.call.apply(ca,[fn,As].concat(Va))}}(Ds||Ri)&&(Nr.onClick=function(li){var oi;ri.current&&Ri?si(!1):!ri.current&&Ds&&(is(li),si(!0));for(var Ji=arguments.length,$s=new Array(Ji>1?Ji-1:0),As=1;As<Ji;As++)$s[As-1]=arguments[As];(oi=fn.onClick)===null||oi===void 0||oi.call.apply(oi,[fn,li].concat($s))}),Ar(an,Ri,sr,bn,Dt,gr,Cn,si);var gs=Ws.has("hover"),na=Ti.has("hover"),Ks,Os;gs&&(Yi("onMouseEnter",!0,At,function(li){is(li)}),Yi("onPointerEnter",!0,At,function(li){is(li)}),Ks=function(oi){(an||ii)&&bn!==null&&bn!==void 0&&bn.contains(oi.target)&&si(!0,At)},Bt&&(Nr.onMouseMove=function(li){var oi;(oi=fn.onMouseMove)===null||oi===void 0||oi.call(fn,li)})),na&&(Yi("onMouseLeave",!1,He),Yi("onPointerLeave",!1,He),Os=function(){si(!1,He)}),Ws.has("focus")&&Yi("onFocus",!0,vt),Ti.has("focus")&&Yi("onBlur",!1,jt),Ws.has("contextMenu")&&(Nr.onContextMenu=function(li){var oi;ri.current&&Ti.has("contextMenu")?si(!1):(is(li),si(!0)),li.preventDefault();for(var Ji=arguments.length,$s=new Array(Ji>1?Ji-1:0),As=1;As<Ji;As++)$s[As-1]=arguments[As];(oi=fn.onContextMenu)===null||oi===void 0||oi.call.apply(oi,[fn,li].concat($s))}),St&&(Nr.className=g()(fn.className,St));var Qi=(0,le.Z)((0,le.Z)({},fn),Nr),Ys={},Za=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Za.forEach(function(li){mr[li]&&(Ys[li]=function(){for(var oi,Ji=arguments.length,$s=new Array(Ji),As=0;As<Ji;As++)$s[As]=arguments[As];(oi=Qi[li])===null||oi===void 0||oi.call.apply(oi,[Qi].concat($s)),mr[li].apply(mr,$s)})});var la=b.cloneElement(Br,(0,le.Z)((0,le.Z)({},Qi),Ys)),ua={x:us,y:Wi},Xs=hi?(0,le.Z)({},hi!==!0?hi:{}):null;return b.createElement(b.Fragment,null,b.createElement(R.Z,{disabled:!an,ref:Fr,onResize:Di},b.createElement(q,{getTriggerDOMNode:mt},la)),b.createElement(_e.Provider,{value:vn},b.createElement(G,{portal:Z,ref:ui,prefixCls:W,popup:it,className:g()(Rr,Pa),style:Tt,target:sr,onMouseEnter:Ks,onMouseLeave:Os,onPointerEnter:Ks,zIndex:rt,open:an,keepDom:ii,fresh:$r,onClick:gn,mask:Dt,motion:Rn,maskMotion:Kn,onVisibleChanged:wi,onPrepare:vi,forceRender:we,autoDestroy:xr,getPopupContainer:ne,align:vs,arrow:Xs,arrowPos:ua,ready:Li,offsetX:Mi,offsetY:ls,offsetR:js,offsetB:Vn,onAlign:ks,stretch:Ht,targetWidth:Vi/ps,targetHeight:as/Vs})))});return x}var It=Ce(Re.Z)},50304:function(){"use strict"},8797:function(tn,Mt,E){"use strict";var le=E(59301),Fe=E(93314),ae=E(3113),Re=Object.defineProperty,K=Object.defineProperties,g=Object.getOwnPropertyDescriptors,R=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,d=(b,I,L)=>I in b?Re(b,I,{enumerable:!0,configurable:!0,writable:!0,value:L}):b[I]=L,N=(b,I)=>{for(var L in I||(I={}))T.call(I,L)&&d(b,L,I[L]);if(R)for(var L of R(I))l.call(I,L)&&d(b,L,I[L]);return b},v=(b,I)=>K(b,g(I));const m=({img:b,buttonProps:I={},styles:L={},customText:z,ButtonText:P,ButtonClick:$,Buttonclass:J,ButtonTwo:te,imgStyles:H,loading:G=!1,className:ce=""})=>le.createElement("section",{className:`tc animated fadeIn ${ce}`,style:N({color:"#999",margin:"100px auto",visibility:G?"hidden":"visible"},L)},le.createElement("img",{src:b||Fe,style:v(N({},H),{pointerEvents:"none",userSelect:"none"})}),le.createElement("p",{className:"mt20 font14"},z||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),P&&le.createElement(ae.ZP,N({className:J,onClick:$},I),P),te&&te);Mt.Z=m},23210:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return J}});var le=E(59301),Fe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ae=E(3113),Re=E(70557),K=E(23954),g=E(6848),R=E(955),T=E(94941),l=E(8797),d=E(3294),N=E(19381),v=E(59301),m=Object.defineProperty,b=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,z=(te,H,G)=>H in te?m(te,H,{enumerable:!0,configurable:!0,writable:!0,value:G}):te[H]=G,P=(te,H)=>{for(var G in H||(H={}))I.call(H,G)&&z(te,G,H[G]);if(b)for(var G of b(H))L.call(H,G)&&z(te,G,H[G]);return te},$=(te,H,G)=>new Promise((ce,q)=>{var ye=se=>{try{Le(G.next(se))}catch(be){q(be)}},_e=se=>{try{Le(G.throw(se))}catch(be){q(be)}},Le=se=>se.done?ce(se.value):Promise.resolve(se.value).then(ye,_e);Le((G=G.apply(te,H)).next())}),J=({editOffice:te="view",data:H,theme:G,type:ce,filename:q,monacoEditor:ye,className:_e,style:Le,close:se,onClose:be,hasMask:O,disabledDownload:Ee,onImgDimensions:ue,showNodata:he,recordInfo:ve})=>{const[F,U]=(0,le.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ee,de]=(0,le.useState)(""),[Xe,tt]=(0,le.useState)(),nt=window.ENV==="build"?"/react/build":"",_t=location.host.startsWith("localhost")?d.Z.PROXY_SERVER:d.Z.API_SERVER,zt=10*(1024*1024),Ze=(0,le.useRef)();H!=null&&H.startsWith("/api")&&ce!=="txt"&&(H=d.Z.API_SERVER+H);const fr=Ce=>Ce.substring(Ce.lastIndexOf("/")+1).split(".").pop();q&&ye&&(ye.filename=q),(0,le.useEffect)(()=>{var Ce,It;const Z=(It=(Ce=document.cookie)==null?void 0:Ce.replace(/\s/g,""))==null?void 0:It.split(";");Z==null||Z.map(x=>{let y=x.split("=");y[0]==="_educoder_session"&&de(y[1])})},[]),(0,le.useEffect)(()=>{ce==="office"&&(H.indexOf("bigfilescdn.")>-1||H.indexOf("bigfiles1")>-1?tt({url:H,fileType:fr(H),model:H.indexOf("model=edit")?"edit":"view"}):yr())},[ce,H]);const yr=()=>$(void 0,null,function*(){console.log("data:",H);let Ce=H;H.startsWith("http")||(Ce=location.origin+Ce);let It=new URL(Ce).pathname.split("/").pop();const Z=yield(0,T.gJ)({attachment_id:It});Z.url=_t+Z.url,tt(Z)}),Ar=()=>{if(H.startsWith("http")||H.startsWith("blob:")){vr();return}(0,R.Sv)(q||"educoder",H,q)},vr=()=>{ve&&(0,N.fc)({id:ve==null?void 0:ve.id,watch_type:1,course_id:ve==null?void 0:ve.course_id}),(0,R.Nd)(q||"educoder",decodeURIComponent(H))};return v.createElement("div",{style:P({},Le||{}),className:`${O&&Fe.bgBlack} ${ce?Fe.wrp:"hide"}`},se&&v.createElement("div",{className:Fe.close,ref:Ze},!!ue&&v.createElement(g.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ze.current},v.createElement("span",{onClick:()=>{be(),ue()}},v.createElement("i",{className:"icon-yulanpizhu"}))),!Ee&&v.createElement(g.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ze.current},v.createElement("span",{onClick:vr},v.createElement("i",{className:"icon-quxiaozhiding"}))),v.createElement(g.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ze.current},v.createElement("span",{className:"",onClick:be},v.createElement("i",{className:"icon-guanbi1"})))),v.createElement("div",{className:`${Fe[_e]} ${_e} ${Fe.monaco} ${ce==="txt"?"show":"hide"}`},ce==="txt"&&v.createElement(v.Fragment,null,v.createElement(K.ZP,P({},ye)))),ce==="audio"&&v.createElement("audio",{src:`${(H==null?void 0:H.indexOf("http://"))>-1||(H==null?void 0:H.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${H}`,autoPlay:!0}),ce==="video"&&v.createElement(v.Fragment,null,(H==null?void 0:H.indexOf("http"))>-1?v.createElement("video",{controls:!0,src:`${H}`,autoPlay:!0}):v.createElement("video",{controls:!0,src:`data:video/mp4;base64,${H}`,autoPlay:!0})),ce==="office"&&Xe&&v.createElement("iframe",{src:`${nt}/office.html?key=${Xe.key}&url=${btoa(Xe.url)}&callbackUrl=${_t+(Xe.callbackUrl||"")}&fileType=${Xe.fileType}&title=${Xe.title||""}&model=${te}&officeServer=${d.Z.ONLYOFFICE}&disabledDownload=${!!Ee}`}),ce==="html"&&v.createElement("iframe",{src:H+"&disposition=inline"}),ce==="pdf"&&v.createElement("iframe",{src:`${nt}/js/pdfview/index.html?filename=${q||"educoder.pdf"}&url=${encodeURIComponent(H)}&disabledDownload=${!!Ee}`}),ce==="image"&&v.createElement("img",{src:`${(H==null?void 0:H.indexOf("http://"))>-1||(H==null?void 0:H.indexOf("https://"))>-1?"":"data:image/png;base64,"}${H}`}),(ce==="other"||ce==="download")&&v.createElement(v.Fragment,null,he?v.createElement(l.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:v.createElement(ae.ZP,{icon:v.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ar,disabled:Ee},"\u4E0B\u8F7D")}):v.createElement(ae.ZP,{type:"primary",size:"middle",onClick:Ar,disabled:Ee},v.createElement(Re.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(tn,Mt,E){"use strict";E.d(Mt,{z:function(){return ce},Z:function(){return q}});var le=E(59301),Fe=E(50304),ae=E(24768),Re=E(64018),K=E(65157),g=E(3294),R=E(955),T=E(15342),l=E(1012),d=E(23210),N=E(59301),m=({html:ye})=>{const _e=(0,le.useRef)(null),Le=(0,le.useRef)(null),se=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 36px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,le.useEffect)(()=>{const be=_e.current.attachShadow({mode:"open"});Le.current=document.createElement("div"),Le.current.className="markdown-body",Le.current.innerHTML=ye,be.appendChild(Le.current);const O=document.createElement("style");return O.textContent=se,be.appendChild(O),()=>{be.innerHTML=""}},[]),(0,le.useEffect)(()=>{Le.current&&(Le.current.innerHTML=ye)},[ye]),N.createElement("div",{ref:_e})},b=Object.defineProperty,I=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,P=(ye,_e,Le)=>_e in ye?b(ye,_e,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ye[_e]=Le,$=(ye,_e)=>{for(var Le in _e||(_e={}))L.call(_e,Le)&&P(ye,Le,_e[Le]);if(I)for(var Le of I(_e))z.call(_e,Le)&&P(ye,Le,_e[Le]);return ye};const J="@\u2581\u2581@",te="@\u2581@",H=/<pre[^>]*>/g;function G(ye){let _e=document.createElement("div");return _e.innerHTML=ye,_e.childNodes.length===0?"":_e.childNodes[0].nodeValue}const ce=(ye,_e)=>{ye=ye||"";const Le=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,se=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,be=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,O=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return _e?ye.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Le,(Ee,ue,he,ve,F,U,ee)=>{const de=ue||ve||U,Xe=he||F||ee||"?";return g.Z.API_SERVER+"/api/attachments/"+de+Xe+"&t="+(0,R.Jn)(de,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ye=ye.replace(O,(Ee,ue,he,ve,F,U,ee)=>{const de=ue||ve||U,Xe=he||F||ee||"?";return g.Z.API_SERVER+"/attachments/download/"+de+Xe+"&t="+(0,R.Jn)(de,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(Le,(Ee,ue,he,ve,F,U,ee)=>{const de=ue||ve||U,Xe=he||F||ee||"?";return g.Z.API_SERVER+"/api/attachments/"+de+Xe+"&t="+(0,R.Jn)(de,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(se,(Ee,ue,he,ve,F)=>{const U=ue||ve,ee=he||F||"";return'"'+g.Z.API_SERVER+"/api/attachments/"+U+ee+U+ee+"&t="+(0,R.Jn)(U,Date.now())}).replace(be,(Ee,ue,he,ve,F)=>{const U=ue||ve,ee=he||F||"";return"("+g.Z.API_SERVER+"/files/uploads/"+U+ee+U+ee+"&t="+(0,R.Jn)(U,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),ye)};var q=({value:ye="",className:_e,showTextOnly:Le,showLines:se,style:be={},stylesPrev:O={},highlightKeywords:Ee,showProgramFill:ue,isProgramFill:he,disabledFill:ve=!1,programFillValue:F,onFillChange:U=Xe=>{},onFillBlur:ee=()=>{},onFillFocus:de=()=>{}})=>{let Xe=String(ye);const[tt,nt]=(0,le.useState)(""),[_t,Xt]=(0,le.useState)("office"),[zt,Ze]=(0,le.useState)([]),fr=(0,le.useRef)("a"+(0,l.Z)()),yr={},Ar=(Se,Be,Te)=>{const Ge=document.createElement(Se===te?"input":"textarea");Ge.style.width="100%",Ge.style.height=Se===te?"40px":"151px",Ge.rows=5,Ge.spellcheck=!1,Ge.name="edu-program-fill",Ge.placeholder="\u8BF7\u8F93\u5165",Ge.dataset.id=Be;const ut=Object.keys(yr).length;return yr[ut]=Ge,`<span class="edu-program-fill-wrap ${Se===te?"":"show"}" style="width:${Se===te?"400px":"100%"}" title=${Te||""}><span>${Ge.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function vr(Se){return Se=Se.replace(/!\[.*?\]\(.*?\)/g,""),Se=Se.replace(/\[.*?\]\(.*?\)/g,""),Se=Se.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Se=Se.replace(/<embed.*?>/g,""),Se=Se.replace(/<img.*?>/g,""),Se=Se.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Se=Se.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Se=Se.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Se=Se.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Se}const Ce=Se=>Se.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Be,Te){let Ge=Te.replace(/(\n|\r)/g,"").split("}"),ut=[];return Ge.map($e=>{$e!=""&&ut.push(`.${fr.current} ${$e}`)}),`<style>${ut.join("}")}</style>`}),It=(0,le.useMemo)(()=>{try{const Ge=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ut=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$e=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Je=/\(\/attachments\/download\//g;Xe=Xe.replace(Je,"("+g.Z.API_SERVER+"/attachments/download/").replace(Ge,"("+g.Z.API_SERVER+"/api/attachments/").replace(ut,'"'+g.Z.API_SERVER+"/api/attachments/").replace($e,'"'+g.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`)}catch(Ge){}if(ue){let Ge=-1;return Xe=Xe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ut,$e,Je){var At;return++Ge,Ar(ut,Ge,(At=F==null?void 0:F[Ge])==null?void 0:At.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ce(Xe||"")}</pre>`}let Se=Ce(Xe);Se=(0,ae.ZP)(Se);const Be=(0,ae.ez)();Xe.match(/\[TOC\]/)&&(Se=Se.replace("<p>[TOC]</p>",(0,ae.Qv)()),(0,ae.Iy)()),Se=Se.replace(/(__special_katext_id_\d+__)/g,(Ge,ut)=>{const{type:$e,expression:Je}=Be[ut];return(0,T.renderToString)(G(Je)||"",{displayMode:$e==="block",throwOnError:!1,output:"html"})}),Se=Se.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ae.AL)();const Te=document.createElement("div");if(Te.innerHTML=Se,Le)return Te.innerText;if(Ee){const Ge=Ee.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return k(Te,Ge),Te.innerHTML}return setTimeout(()=>Q(),500),Te.innerHTML},[Xe,Ee]);(0,le.useEffect)(()=>{fe.current&&fe.current.querySelectorAll(["input","textarea"]).forEach(Be=>{Be.oninput=Z,Be.onblur=x,Be.onfocus=y})},[zt]),(0,le.useEffect)(()=>{var Se,Be,Te,Ge,ut;if(F!=null&&F.length)try{const $e=fe.current.querySelectorAll(".edu-program-fill-score"),Je=fe.current.querySelectorAll('[name="edu-program-fill"]');for(const[At,ze]of Je.entries())ze.value=((Se=F==null?void 0:F[At])==null?void 0:Se.value)||"",((Be=F==null?void 0:F[At])==null?void 0:Be.type)==="warning"?ze.className="program-fill-warning":((Te=F==null?void 0:F[At])==null?void 0:Te.type)==="success"?ze.className="program-fill-success":ze.className="";for(const[At,ze]of $e.entries())ze.innerHTML=(Ge=F==null?void 0:F[At])!=null&&Ge.score?`${(ut=F==null?void 0:F[At])==null?void 0:ut.score}\u5206`:"";Ze(F)}catch($e){console.log($e,"error")}},[F]);const Z=Se=>{zt[Se.target.dataset.id]=zt[Se.target.dataset.id]||{},zt[Se.target.dataset.id].value=Se.target.value,Ze([...zt]),U(zt,Se.target.dataset.id)},x=Se=>{zt[Se.target.dataset.id]=zt[Se.target.dataset.id]||{},zt[Se.target.dataset.id].value=Se.target.value,Ze([...zt]),ee(zt,Se.target.dataset.id)},y=Se=>{zt[Se.target.dataset.id]=zt[Se.target.dataset.id]||{},zt[Se.target.dataset.id].value=Se.target.value,Ze([...zt]),de(zt,Se.target.dataset.id)};function k(Se,Be){return Se.childNodes.forEach(Te=>{var Ge;if(Te.childNodes.length>0)k(Te,Be);else if(Te.nodeName!=="IMG")if(Te.innerHTML)Te.innerHTML=(Ge=Te.innerHTML)==null?void 0:Ge.replace(new RegExp(Be,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ut=document.createElement("span");ut.innerHTML=Te.textContent.replace(new RegExp(Be,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Te.replaceWith(ut)}})}const fe=(0,le.useRef)();ae.jb.WebkitLineClamp=se,se&&(be=$($({},be),ae.jb));function W(Se){let Be=Se.target;if(Be.tagName.toUpperCase()==="A"){let Te=Be.getAttribute("href");if(Te.indexOf("office")>-1)Se.preventDefault(),nt(Te),Xt("office");else if(Te.indexOf("application/pdf")>-1)Se.preventDefault(),nt(Te),Xt("pdf");else if(Te.indexOf("text/html")>-1)Se.preventDefault(),nt(Te),Xt("html");else if(Te.startsWith("#")){Se.preventDefault();let Ge=document.getElementById(Te.replace("#",""));Ge&&Ge.scrollIntoView(!0)}}}const Q=()=>{var Se;const Be=(Se=fe.current)==null?void 0:Se.querySelectorAll("video");Be==null||Be.forEach(Te=>{if(Te.oncontextmenu=()=>!1,Te.src.indexOf(".m3u8")>-1&&!Te.canPlayType("application/vnd.apple.mpegurl")){if(K.ZP.isSupported()){var Ge=new K.ZP;Ge.loadSource(Te.src),Ge.attachMedia(Te)}}})};(0,le.useEffect)(()=>{if(fe.current&&It&&It.match(H)&&window.PR.prettyPrint(),fe.current)return fe.current.addEventListener("click",W),()=>{var Se;(Se=fe.current)==null||Se.removeEventListener("click",W),(0,ae.AL)(),(0,ae.Iy)()}},[It,fe.current,W]),(0,le.useEffect)(()=>{var Se;const Be=Te=>{Te.preventDefault(),Te.clipboardData.setData("text",window.getSelection().toString())};return(Se=fe.current)==null||Se.addEventListener("copy",Be),()=>{var Te;(Te=fe.current)==null||Te.removeEventListener("copy",Be)}},[fe.current]);const re=Se=>/<style[\s\S]*?>/i.test(Se||"");return le.createElement(le.Fragment,null,Le&&le.createElement("div",{ref:fe},It),!Le&&!re(It)&&le.createElement("div",{ref:fe,style:$({},be),className:`${_e||""} ${ve?"disabled-fill":""} markdown-body ${fr.current}`,dangerouslySetInnerHTML:{__html:It}}),!Le&&re(It)&&le.createElement(m,{html:It}),le.createElement(d.Z,{close:!0,data:tt,type:tt!=null&&tt.length?_t:"",style:$({},O),onClose:()=>nt("")}))}},23954:function(tn,Mt,E){"use strict";E.d(Mt,{SV:function(){return fe},ZP:function(){return k}});var le=E(59301),Fe=E(76374);const ae={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Re={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},K={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},g={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},R={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var T=E(53184),l=E.n(T),d=Object.defineProperty,N=Object.defineProperties,v=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,L=(W,Q,re)=>Q in W?d(W,Q,{enumerable:!0,configurable:!0,writable:!0,value:re}):W[Q]=re,z=(W,Q)=>{for(var re in Q||(Q={}))b.call(Q,re)&&L(W,re,Q[re]);if(m)for(var re of m(Q))I.call(Q,re)&&L(W,re,Q[re]);return W},P=(W,Q)=>N(W,v(Q)),$=(W,Q,re)=>new Promise((Se,Be)=>{var Te=$e=>{try{ut(re.next($e))}catch(Je){Be(Je)}},Ge=$e=>{try{ut(re.throw($e))}catch(Je){Be(Je)}},ut=$e=>$e.done?Se($e.value):Promise.resolve($e.value).then(Te,Ge);ut((re=re.apply(W,Q)).next())});const J={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},te=(W,Q)=>Q.map(re=>({label:re,kind:W.languages.CompletionItemKind.Keyword,insertText:re})),H=W=>Object.keys(J.tables).map(Q=>({label:Q,kind:W.languages.CompletionItemKind.Variable,insertText:Q})),G=(W,Q)=>{const re=J.tables[W];return re?re.map(Se=>({label:Se,kind:Q.languages.CompletionItemKind.Field,insertText:Se})):[]};function ce(W,Q,re,Se,Be){let Te=Q.getWordUntilPosition(re),Ge={startLineNumber:re.lineNumber,endLineNumber:re.lineNumber,startColumn:Te.startColumn,endColumn:Te.endColumn},ut=Se.map($e=>({label:$e,kind:W.languages.CompletionItemKind.Keyword,insertText:$e,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}));return Be.map($e=>{ut.push(P(z({},$e),{range:Ge}))}),ut}var q=W=>{J.languages.map(Be=>(W.languages.registerDocumentFormattingEditProvider(Be,{provideDocumentFormattingEdits(Te,Ge,ut){return $(this,null,function*(){const $e=l()(Te.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Te.getFullModelRange(),text:$e}]})}}),Be));const Q=K.quickKey.map(Be=>({label:Be.label,kind:W.languages.CompletionItemKind.Method,insertText:Be.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet})),re=g.quickKey.map(Be=>({label:Be.label,kind:W.languages.CompletionItemKind.Method,insertText:Be.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Se=Re.quickKey.map(Be=>({label:Be.label,kind:W.languages.CompletionItemKind.Method,insertText:Be.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet}));W.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Be,Te){var Ge=Be.getWordUntilPosition(Te),ut={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},$e=Be.getLineContent(Te.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...K.keywords.map(Je=>({label:Je,kind:W.languages.CompletionItemKind.Function,documentation:Je,insertText:Je,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut})),...K.quickKey.map(Je=>({label:Je.label,kind:W.languages.CompletionItemKind.Function,documentation:Je.content,insertText:$e.startsWith("#")?Je.content.replace(/#/,""):Je.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut}))]}}}),W.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Be,Te){var Ge=Be.getWordUntilPosition(Te),ut={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn};return{suggestions:[...ae.keywords.map($e=>({label:$e,kind:W.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut}))]}}}),W.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Be,Te){var Ge=Be.getWordUntilPosition(Te),ut={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},$e=Be.getLineContent(Te.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...Re.keywords.map(Je=>({label:Je,kind:W.languages.CompletionItemKind.Function,documentation:Je,insertText:Je,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut})),...Re.quickKey.map(Je=>({label:Je.label,kind:W.languages.CompletionItemKind.Function,documentation:Je.content,insertText:$e.startsWith("#")?Je.content.replace(/#/,""):Je.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut}))]}}}),W.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Be,Te){var Ge=Be.getWordUntilPosition(Te),ut={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},$e=Be.getLineContent(Te.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...R.keywords.map(Je=>({label:Je,kind:W.languages.CompletionItemKind.Function,documentation:Je,insertText:Je,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut})),...R.quickKey.map(Je=>({label:Je.label,kind:W.languages.CompletionItemKind.Function,documentation:Je.content,insertText:$e.startsWith("#")?Je.content.replace(/#/,""):Je.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut}))]}}}),W.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Be,Te){var Ge=Be.getWordUntilPosition(Te),ut={startLineNumber:Te.lineNumber,endLineNumber:Te.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},$e=Be.getLineContent(Te.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...g.keywords.map(Je=>({label:Je,kind:W.languages.CompletionItemKind.Function,documentation:Je,insertText:Je,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut})),...g.quickKey.map(Je=>({label:Je.label,kind:W.languages.CompletionItemKind.Function,documentation:Je.content,insertText:$e.startsWith("#")?Je.content.replace(/#/,""):Je.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ut}))]}}})};const ye="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var _e=Object.defineProperty,Le=(W,Q,re)=>Q in W?_e(W,Q,{enumerable:!0,configurable:!0,writable:!0,value:re}):W[Q]=re,se=(W,Q,re)=>Le(W,typeof Q!="symbol"?Q+"":Q,re);const be=class GA{constructor(Q,re,Se){this.placeholder=Q,this.editor=re,this.monaco=Se,re.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return GA.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};se(be,"ID","editor.widget.placeholderHint");var Ee=be,ue=E(96236),he=E(8591),ve=E(6848),F=E(89392),U=E(34604),ee=E(56102),de=Object.defineProperty,Xe=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,zt=(W,Q,re)=>Q in W?de(W,Q,{enumerable:!0,configurable:!0,writable:!0,value:re}):W[Q]=re,Ze=(W,Q)=>{for(var re in Q||(Q={}))_t.call(Q,re)&&zt(W,re,Q[re]);if(nt)for(var re of nt(Q))Xt.call(Q,re)&&zt(W,re,Q[re]);return W},fr=(W,Q)=>Xe(W,tt(Q)),yr=(W,Q)=>{var re={};for(var Se in W)_t.call(W,Se)&&Q.indexOf(Se)<0&&(re[Se]=W[Se]);if(W!=null&&nt)for(var Se of nt(W))Q.indexOf(Se)<0&&Xt.call(W,Se)&&(re[Se]=W[Se]);return re},Ar=(W,Q,re)=>new Promise((Se,Be)=>{var Te=$e=>{try{ut(re.next($e))}catch(Je){Be(Je)}},Ge=$e=>{try{ut(re.throw($e))}catch(Je){Be(Je)}},ut=$e=>$e.done?Se($e.value):Promise.resolve($e.value).then(Te,Ge);ut((re=re.apply(W,Q)).next())});function vr(W){return/^\d+$/.test(W)?`${W}px`:W}function Ce(){}let It=!1;const Z={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function x(W=[]){let Q=W;if(Array.isArray(W)){for(let re=0;re<W.length;re++){let Se=Z[W[re]];if(Se)return Se}return Q[0]}return Z[Q]||Q}let y=null;var k=W=>{var Q=W,{width:re="100%",height:Se="100%",value:Be,language:Te="javascript",style:Ge={},options:ut={},overrideServices:$e={},theme:Je="vs-dark",onEditBlur:At,isCopy:ze=!1,onSave:He,autoHeight:vt=!1,forbidCopy:jt=!1,onChange:Dt=Ce,editorDidMount:lr=Ce,onFocus:gr=Ce,onBreakPoint:ne=Ce,breakPointValue:we=[],filename:Vt="educoder.txt",errorLine:Ue,errorContent:it="",highlightLine:Rr,openBreakPoint:Tt=!1,placeholder:Rt="",showMiniMap:$t=!0}=Q,qe=yr(Q,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const pt=(0,le.useRef)(),rt=(0,le.useRef)({}),Ht=(0,le.useRef)(),Oe=(0,le.useRef)(),$r=(0,le.useRef)([]),Bt=(0,le.useRef)(!1),gn=(0,le.useRef)(),On=(0,le.useRef)(),hi=(0,le.useRef)(!1),[ti,En]=(0,le.useState)(!1);function Dn(){let Hr;return pt.current&&(Hr=new Fe.Z(Kr=>{for(let qr of Kr)(qr.target.offsetHeight>0||qr.target.offsetWidth>0)&&rt.current.instance.layout()}),Hr.observe(pt.current)),Hr}function Ut(){he.ZP.warning({content:decodeURIComponent(ye),key:"monaco-editor-tip"})}const Dr=()=>{let Hr=rt.current.instance;if(Be!=null&&Hr&&ti){const Kr=Hr.getModel();Kr&&Be!==Kr.getValue()&&(It=!0,Kr.setValue(Be),Hr.layout(),It=!1)}};(0,le.useEffect)(()=>{const Hr=U.Z.subscribe("formatDocument",Kr=>{var qr;let bn=rt.current.instance;(qr=bn==null?void 0:bn.getAction)==null||qr.call(bn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Kr=>{Dt(Kr)},Hr},[]),(0,le.useEffect)(()=>{var Hr;let Kr=rt.current.instance;Oe.current&&clearTimeout(Oe.current),Oe.current=setTimeout(()=>{Dr()},500),Be&&(Be!=null&&Be.length)&&((Hr=Kr==null?void 0:Kr.updateOptions)==null||Hr.call(Kr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Be.split(/\r\n|\r|\n/g).length))+3,5)}))},[Be,ti,rt.current]),(0,le.useEffect)(()=>{if(Ue&&rt.current&&rt.current.instance){let Kr=rt.current.instance;Kr.changeViewZones(function(qr){var bn=document.createElement("div");bn.style.padding="10px 20px",bn.style.width="calc(100% - 20px)",bn.className="my-error-line-wrp",bn.innerHTML=it,qr.addZone({afterLineNumber:Ue||11,heightInLines:3,domNode:bn})});var Hr={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Kr.addOverlayWidget(Hr),Kr.revealPositionInCenter({lineNumber:20,column:1})}},[Ue,rt.current,ti]);const Pr=(Hr="",Kr)=>{if(!Hr||Hr.trim()==="")return!0;const bn=rt.current.instance.getModel().getLineTokens(Kr);let ln=!1;for(let ui=0;ui<2;ui++)bn.getStandardTokenType(ui)===1&&(ln=!0);return ln};(0,le.useEffect)(()=>{var Hr;const Kr=(Hr=rt.current)==null?void 0:Hr.instance;if(Kr&&ti&&jt){const qr=Kr.onDidBlurEditorWidget(()=>{hi.current=!1}),bn=Kr.onDidFocusEditorText(()=>{hi.current=!0});return()=>{qr.dispose(),bn.dispose()}}},[rt.current,ti,jt]),(0,le.useEffect)(()=>{var Hr;if((Hr=rt.current)!=null&&Hr.instance&&ti&&Tt){let Kr=rt.current.instance,qr=Kr.getModel();if(!qr)return;(()=>{var Nr;let Cn=[],Rn=[];const Kn=qr.getAllDecorations();for(let ni of Kn)ni.options.className==="highlighted-line"&&(Cn.push((Nr=ni==null?void 0:ni.range)==null?void 0:Nr.startLineNumber),Rn.push(ni==null?void 0:ni.id));if(Rr===Cn[0])return;qr.deltaDecorations(Rn,[]);const Ai=qr.getLineCount();Rr&&Rr<=Ai&&(Kr.deltaDecorations([],[{range:new y.Range(Rr,1,Rr,qr.getLineMaxColumn(Rr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Kr.revealLineInCenter(Rr))})();const ln=(Nr=!1)=>{var Cn;let Rn=[],Kn=[];const Ai=qr.getAllDecorations();for(let ni of Ai)ni.options.linesDecorationsClassName==="breakpoints-select"&&(Rn.push((Cn=ni==null?void 0:ni.range)==null?void 0:Cn.startLineNumber),Kn.push(ni==null?void 0:ni.id));if(Nr)return{lines:Rn,ids:Kn};ne(Rn)},ui=Nr=>Ar(void 0,null,function*(){let Cn={range:new y.Range(Nr,1,Nr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield qr.deltaDecorations([],[Cn]),ln()}),jn=Nr=>Ar(void 0,null,function*(){let Cn=[];const Rn=Kr.getLineDecorations(Nr);for(let Kn of Rn)Kn.options.linesDecorationsClassName==="breakpoints-select"&&Cn.push(Kn.id);yield qr.deltaDecorations(Cn,[]),ln()}),cn=Nr=>{let Cn=Kr.getLineDecorations(Nr);for(let Rn of Cn)if(Rn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,F.isEqual)(we,ln(!0).lines)){qr.deltaDecorations(ln(!0).ids,[]);const Nr=we.map(Cn=>({range:new y.Range(Cn,1,Cn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));qr.deltaDecorations([],Nr)}const sr=Kr.onDidChangeModelContent(Nr=>{let Cn=Kr.getPosition();if(Cn){let Rn=Cn.lineNumber;clearTimeout(On.current),On.current=setTimeout(()=>{Pr(qr.getLineContent(Rn),Rn)?jn(Rn):cn(Rn)?(jn(Rn),ui(Rn)):ln()},100)}}),cr=Kr.onMouseDown(Nr=>{var Cn,Rn,Kn;if(Nr.target.detail&&((Kn=(Rn=(Cn=Nr.target)==null?void 0:Cn.element)==null?void 0:Rn.className)!=null&&Kn.includes("line-numbers"))){let Ai=Nr.target.position.lineNumber;if(Pr(qr.getLineContent(Ai),Ai))return;cn(Ai)?jn(Ai):ui(Ai)}}),pr=Nr=>{let Cn={range:new y.Range(Nr,1,Nr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};$r.current=Kr.deltaDecorations($r.current,[Cn])},Fr=()=>{$r.current=Kr.deltaDecorations($r.current,[])},Br=Kr.onMouseMove(Nr=>{var Cn,Rn,Kn;if(Fr(),Nr.target.detail&&((Kn=(Rn=(Cn=Nr.target)==null?void 0:Cn.element)==null?void 0:Rn.className)!=null&&Kn.includes("line-numbers"))){let Ai=Nr.target.position.lineNumber;if(Pr(qr.getLineContent(Ai),Ai))return;pr(Ai)}}),fn=Kr.onMouseLeave(()=>{Fr()});return()=>{sr.dispose(),cr.dispose(),Br.dispose(),fn.dispose()}}},[rt.current,ti,we,Rr,Tt,Te]),(0,le.useEffect)(()=>{var Hr;(Hr=rt.current)!=null&&Hr.instance&&Tt&&rt.current.instance.setPosition({lineNumber:0,column:0})},[Rr]);function St(){let Hr=rt.current.instance;if(Hr){const Kr=Hr.getSelection(),qr=rt.current.pastePos||{},bn=new y.Range(qr.startLineNumber||Kr.endLineNumber,qr.startColumn||Kr.endColumn,qr.endLineNumber||Kr.endLineNumber,qr.endColumn||Kr.endColumn);setTimeout(()=>{Hr.executeEdits("",[{range:bn,text:""}])},300)}}function mt(Hr){(window.navigator.platform.match("Mac")?Hr.metaKey:Hr.ctrlKey)&&Hr.keyCode==83&&(Hr.preventDefault(),He())}const mr=()=>{if(vt&&rt.current.instance){const Hr=rt.current.instance.getContentHeight();Un(Hr<Se?Se:Hr)}else Un(Se)};function xr(Hr){var Kr=document.createEvent("MouseEvents");Kr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Hr.dispatchEvent(Kr)}const on=Hr=>{if(!hi.current)return;const{keyCode:Kr,ctrlKey:qr,metaKey:bn,target:ln,type:ui}=Hr;return(ui==="paste"||(Kr===67||Kr===86)&&(bn||qr))&&ln.nodeName==="TEXTAREA"&&(Ut(),Hr.preventDefault()),!1};function kr(Hr,Kr){var qr=window.URL||window.webkitURL||window,bn=new Blob([Kr]),ln=document.createElementNS("http://www.w3.org/1999/xhtml","a");ln.href=qr.createObjectURL(bn),ln.download=Hr,xr(ln)}(0,le.useEffect)(()=>{mr()},[mr]),(0,le.useEffect)(()=>{pt.current&&!ti&&Promise.all([E.e(8909),E.e(3267)]).then(E.bind(E,71448)).then(Hr=>{try{y=Hr,rt.current.instance=y.editor.create(pt.current,{value:Be,language:x(Te),theme:Je,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:$t||!1}},$e);const Kr=rt.current.instance;let ln=[...ue.BH._menuItems].find(sr=>sr[0]._debugName=="EditorContext")[1],ui=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],jn=(sr,cr)=>{var pr,Fr;let Br=sr._first;do cr.includes((Fr=(pr=Br.element)==null?void 0:pr.command)==null?void 0:Fr.id)&&sr._remove(Br);while(Br=Br.next)};if(lr(Kr,y),setTimeout(()=>{mr(),rt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{kr(Vt||"educoder.txt",Kr.getValue())}})},500),rt.current.subscription=Kr.onDidChangeModelContent(sr=>{Bt.current?clearTimeout(gn.current):(mr(),Dt(Kr.getValue(),sr)),gn.current=setTimeout(()=>{Bt.current=!1},500)}),window.Monaco||q(y,x(Te)),jt&&(jn(ln,ui),pt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",on),window.removeEventListener("paste",on),window.addEventListener("keydown",on),window.addEventListener("paste",on)),window.Monaco=y,At&&Kr.onDidBlurEditorWidget(()=>{At(Kr.getValue())}),gr&&Kr.onDidFocusEditorText(()=>{gr(Kr.getValue())}),jt)try{Kr.onDidPaste(sr=>{const cr=Kr.getSelection(),pr=rt.current.pastePos||{},Fr=new y.Range(pr.startLineNumber||cr.endLineNumber,pr.startColumn||cr.endColumn,pr.endLineNumber||cr.endLineNumber,pr.endColumn||cr.endColumn);Kr.executeEdits("",[{range:sr.range,text:""}])})}catch(sr){}let cn=Dn();return Rt&&typeof Rt=="string"&&new Ee(Rt,Kr,y),En(!0),()=>{const sr=rt.current.instance;sr.dispose();const cr=sr.getModel();cr&&cr.dispose(),rt.current.subscription&&rt.current.subscription.dispose(),cn.unobserve(pt.current)}}catch(Kr){}})},[]),(0,le.useEffect)(()=>{if(rt.current.instance&&ti)return document.addEventListener("keydown",mt,!1),()=>{document.removeEventListener("keydown",mt)}},[He,ti]),(0,le.useEffect)(()=>{let Hr=rt.current.instance;if(Hr&&ti){let Kr=x(Te);y.editor.setModelLanguage(Hr.getModel(),Kr)}},[Te,ti]),(0,le.useEffect)(()=>{rt.current.instance&&ti&&y.editor.setTheme(Je)},[Je,ti]),(0,le.useEffect)(()=>{let Hr=rt.current.instance;Ht.current=ut,Hr&&ti&&(Hr.updateOptions(Ze({},ut)),setTimeout(()=>{Hr.getModel().updateOptions(Ze({},ut))},200))},[JSON.stringify(ut),ti]),(0,le.useEffect)(()=>{let Hr=rt.current.instance;Hr&&ti&&Hr.layout()},[re,Se,ti]);const[un,nn]=(0,le.useState)(vr(re)),[_n,Un]=(0,le.useState)(vr(Se)),vn=fr(Ze({},Ge),{width:un,height:_n,position:"relative"});return le.createElement("div",{className:"my-monaco-editor",ref:pt,style:vn},ze&&le.createElement(ee.CopyToClipboard,{text:Be,onCopy:()=>he.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement(ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},le.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},le.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function fe({width:W="100%",height:Q="100%",original:re,modified:Se,language:Be,options:Te={}}){const Ge=(0,le.useRef)(),[ut,$e]=(0,le.useState)(null);function Je(vt){let jt;return Ge.current&&(jt=new Fe.Z(Dt=>{for(let lr of Dt)(lr.target.offsetHeight>0||lr.target.offsetWidth>0)&&vt.layout()}),jt.observe(Ge.current)),jt}(0,le.useEffect)(()=>(Ge.current&&Promise.all([E.e(8909),E.e(9404)]).then(E.bind(E,2550)).then(vt=>{y=vt;const jt=y.editor.createDiffEditor(Ge.current,fr(Ze({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Te),{wordWrap:!0}));$e(jt);let Dt=Je(jt);return()=>{jt.dispose();const lr=jt.getModel();lr&&lr.dispose(),Dt.unobserve(Ge.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,le.useEffect)(()=>{ut&&ut.setModel({original:y.editor.createModel(re,Be),modified:y.editor.createModel(Se,Be)})},[re,Se,Be,ut]);const At=vr(W),ze=vr(Q),He={width:At,height:ze};return le.createElement("div",{className:"my-diff-editor",ref:Ge,style:He})}},67059:function(tn,Mt,E){"use strict";E.r(Mt),E.d(Mt,{default:function(){return k}});var le=E(59301),Fe=E(61186),ae=E.n(Fe),Re=E(86129),K=E.n(Re),g=E(99064),R=E(89070),T=E(43418),l=E(8591),d=E(95237),N=E(43604),v=E(3113),m=E(61621),b=E(66104),I=E(28103),L=E(1710),z=E(10777),P=E(57809),$=E(71418),J=E(27812),te=E(95869),H=E(87169),G=E(26227),ce=E(3294),q=E(24065),ye=E(955),_e=E(78241),Le=E(5871),se=E(92832),be=({defaultValue:fe,onBlur:W,max:Q,className:re="game-score"})=>{const[Se,Be]=(0,le.useState)(fe);(0,le.useEffect)(()=>{Be(fe)},[fe]);function Te(ut){Be(ut)}function Ge(){Se&&(W(Se>Q?Q:Se),Be(null))}return le.createElement(Le.Z,{max:Q,min:0,className:re,value:Se,onChange:Te,onBlur:Ge})},O={greyText:"greyText___lvEE6",info:"info___El01Z",label:"label___GmvST",blackContent:"blackContent___FYo0Z",orangeContent:"orangeContent____uYQ3",inputLabel:"inputLabel___ruiZm",tableTitle:"tableTitle___ir3x7",scoreTable:"scoreTable___b9Z37"},Ee=E(59301),ue=(fe,W,Q)=>new Promise((re,Se)=>{var Be=ut=>{try{Ge(Q.next(ut))}catch($e){Se($e)}},Te=ut=>{try{Ge(Q.throw(ut))}catch($e){Se($e)}},Ge=ut=>ut.done?re(ut.value):Promise.resolve(ut.value).then(Be,Te);Ge((Q=Q.apply(fe,W)).next())});const he=({shixunHomeworks:fe,dispatch:W,classroomList:Q,gethomeworkreport:re,homeWorkReport:Se})=>{var Be,Te;const{shixunWorkReport:Ge}=fe,ut=(0,R.useParams)(),[$e,Je]=(0,le.useState)(!1),[At,ze]=(0,le.useState)(!1),[He,vt]=(0,le.useState)(""),[jt]=_e.default.useForm(),Dt=()=>ue(void 0,null,function*(){ze(!0);const ne=jt.getFieldsValue();(yield(0,g.ZP)(`/api/student_works/${ut.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:ne.hidden_comment,comment:ne.comment}})).status===0&&(l.ZP.success("\u70B9\u8BC4\u6210\u529F"),jt.resetFields(),W({type:"shixunHomeworks/setActionTabs",payload:{}}),re()),ze(!1)}),lr=()=>ue(void 0,null,function*(){if(!He){l.ZP.warning("\u8BF7\u586B\u5199\u5206\u6570");return}ze(!0);const ne=jt.getFieldsValue();(yield(0,g.ZP)(`/api/student_works/${ut.homeworkId}/add_score.json`,{method:"post",body:{comment:ne.comment,score:He}})).status===0&&(l.ZP.success("\u70B9\u8BC4\u6210\u529F"),W({type:"shixunHomeworks/setActionTabs",payload:{}}),re()),ze(!1)}),gr=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:160,render:ne=>ne||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:110},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:160},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"cost_time",width:160},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:ne=>ne||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:90,render:(ne,we)=>Ee.createElement("div",null,Ee.createElement("span",{style:{color:parseFloat(we.score_full)!==parseFloat(ne)?"#E30000":"#53C41B"}},ne),"/",we.score_full)},{title:"\u8C03\u5206",width:100,dataIndex:"action",render:(ne,we)=>(0,q.GJ)()?Ee.createElement(be,{max:we.score_full,onBlur:Vt=>ue(void 0,null,function*(){var Ue;if((0,q.Rm)()&&!((Ue=Q.AssistantObject.practice)!=null&&Ue.can_appraise)){l.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const it=yield(0,g.ZP)(`/api/student_works/${ut.homeworkId}/adjust_score.json`,{method:"post",body:{score:Vt}});re(),it.status===0&&l.ZP.success("\u8C03\u5206\u6210\u529F")})}):Se!=null&&Se.is_anonymous?Ee.createElement(Le.Z,{min:0,value:He,onChange:Vt=>vt(Vt),max:we.score_full}):ne}].filter(ne=>Se!=null&&Se.is_anonymous?!["late_penalty","score","absence_penalty"].includes(ne.dataIndex):!0);return Ee.createElement(T.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",afterClose:()=>{jt.resetFields(),vt("")},confirmLoading:At,open:fe.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ue(void 0,null,function*(){var ne;if((0,q.Rm)()&&!((ne=Q.AssistantObject.practice)!=null&&ne.can_appraise)){l.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(Se!=null&&Se.is_anonymous){lr();return}const we=jt.getFieldsValue();JSON.stringify(we)==="{}"||we.hidden_comment===""&&we.comment===""?Je(!0):Dt()}),onCancel:()=>{W({type:"shixunHomeworks/setActionTabs",payload:{}})}},Ee.createElement(d.Z,{className:O.info},Ee.createElement(N.Z,null,Ee.createElement("span",{className:`${O.label} ${O.greyText}`},"\u59D3\u540D"),Ee.createElement("span",{className:O.blackContent},Se==null?void 0:Se.username)),Ee.createElement(N.Z,null,Ee.createElement("span",{className:`${O.label} ${O.greyText}`},"\u5B66\u53F7"),Ee.createElement("span",{className:O.blackContent},(Se==null?void 0:Se.student_id)||"--")),!(Se!=null&&Se.is_anonymous)&&Ee.createElement(Ee.Fragment,null,Ee.createElement(N.Z,null,Ee.createElement("span",{className:`${O.label} ${O.greyText}`},"\u73ED\u7EA7"),Ee.createElement("span",{className:O.blackContent},(Se==null?void 0:Se.group_name)||"--")),Ee.createElement(N.Z,null,Ee.createElement("span",{className:`${O.label} ${O.greyText}`},"\u8865\u4EA4\u6263\u5206"),Ee.createElement("span",{className:O.orangeContent},((Be=Se==null?void 0:Se.stage_list[0])==null?void 0:Be.late_penalty)||"--")),Ee.createElement(N.Z,null,Ee.createElement("span",{className:`${O.label} ${O.greyText}`},"\u7F3A\u8BC4\u6263\u5206"),Ee.createElement("span",{className:O.orangeContent},((Te=Se==null?void 0:Se.stage_list[0])==null?void 0:Te.absence_penalty)||"--")),Ee.createElement(N.Z,null,Ee.createElement("span",{className:`${O.label} ${O.greyText}`},"\u603B\u6210\u7EE9"),Ee.createElement("span",{className:O.orangeContent},(Se==null?void 0:Se.stage_list[0].score)||"--")))),Ee.createElement(_e.default,{form:jt,onChange:()=>{$e&&Je(!1)}},Ee.createElement("div",{className:`${O.inputLabel} ${O.greyText}`},Se!=null&&Se.is_anonymous?"\u8BC4\u8BED":"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ee.createElement(_e.default.Item,{name:"comment"},Ee.createElement(se.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),!(Se!=null&&Se.is_anonymous)&&Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{className:`${O.inputLabel} ${O.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ee.createElement(_e.default.Item,{name:"hidden_comment"},Ee.createElement(se.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))," ")),$e&&Ee.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Ee.createElement("div",{className:O.tableTitle},"\u5173\u5361\u6210\u7EE9"),Ee.createElement(L.default,{className:O.scoreTable,dataSource:Se==null?void 0:Se.stage_list,rowKey:"challenge_id",pagination:!1,columns:gr}))};var ve=(0,R.connect)(({shixunHomeworks:fe,classroomList:W})=>({shixunHomeworks:fe,classroomList:W}))(he),F={},U=(fe,W,Q)=>new Promise((re,Se)=>{var Be=ut=>{try{Ge(Q.next(ut))}catch($e){Se($e)}},Te=ut=>{try{Ge(Q.throw(ut))}catch($e){Se($e)}},Ge=ut=>ut.done?re(ut.value):Promise.resolve(ut.value).then(Be,Te);Ge((Q=Q.apply(fe,W)).next())});const ee=({shixunHomeworks:fe,dispatch:W,gethomeworkreport:Q,homeWorkReport:re})=>{var Se,Be;const{shixunWorkReport:Te}=fe;console.log(re,"homeWorkReport");const Ge=(0,R.useParams)(),[ut,$e]=(0,le.useState)(!1),[Je]=_e.default.useForm(),{user_name:At,score:ze,comment_time:He,content:vt,score_id:jt,user_id:Dt}=((Be=(Se=fe==null?void 0:fe.actionTabs)==null?void 0:Se.selectArrs)==null?void 0:Be.data)||{},lr=()=>U(void 0,null,function*(){yield Je.validateFields(),$e(!0);const gr=Je.getFieldsValue();(yield(0,g.ZP)(`/api/student_works/${Ge.homeworkId}/appeal_anonymous_score.json`,{method:"post",body:{comment:gr.comment,score_id:jt,userId:Dt}})).status===0&&(l.ZP.success("\u64CD\u4F5C\u6210\u529F"),W({type:"shixunHomeworks/setActionTabs",payload:{}}),Q()),$e(!1)});return le.createElement(T.default,{centered:!0,width:600,title:"\u533F\u8BC4\u7533\u8BC9",afterClose:()=>{Je.resetFields()},confirmLoading:ut,open:fe.actionTabs.key==="\u533F\u8BC4\u7533\u8BC9",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:lr,onCancel:()=>{W({type:"shixunHomeworks/setActionTabs",payload:{}})}},le.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15,marginBottom:20}},le.createElement(d.Z,{justify:"space-between",className:F.info},le.createElement("span",null,le.createElement("span",{className:"c-grey-666"},At),le.createElement("span",{className:"c-grey-333 ml5"},"\u8C03\u5206\u4E3A"),le.createElement("span",{className:"c-orange ml5"},ze,"\u5206")),le.createElement("span",{className:"c-grey-333"},He)),le.createElement("div",{className:"c-grey-333 mt5"},vt)),le.createElement(_e.default,{form:Je,className:"mt15",layout:"vertical"},le.createElement(_e.default.Item,{name:"comment",label:"\u7533\u8BC9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0"}]},le.createElement(se.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0",rows:3}))))};var de=(0,R.connect)(({shixunHomeworks:fe})=>({shixunHomeworks:fe}))(ee),Xe=E(45633),tt={flex_box_center:"flex_box_center___uz0LL",flex_space_between:"flex_space_between___kuKI5",flex_box_vertical_center:"flex_box_vertical_center___VzPH1",flex_box_center_end:"flex_box_center_end___Tyr1U",flex_box_column:"flex_box_column___qsgVa",title:"title___SFyGM",export:"export___ezPhH",title1_right:"title1_right___tMOJn",userPic:"userPic___mW4Rr",userInfo:"userInfo___vYvSZ",listItem:"listItem___gJf4Z",rightInfo:"rightInfo___PRYRt",shixunTitle:"shixunTitle___STlvE",shixunWrp:"shixunWrp___knhTt",footerBar:"footerBar___R5IlQ",footerBarStatic:"footerBarStatic___M4EQj",exitComment:"exitComment___NoCI4",nextComment:"nextComment___sFj7z",modal:"modal___TwQdH",tag:"tag___RErUu"},nt=E(85149),_t=E(36708),Xt=E(44164),zt=E.n(Xt),Ze=E(59301),fr=Object.defineProperty,yr=Object.getOwnPropertySymbols,Ar=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,Ce=(fe,W,Q)=>W in fe?fr(fe,W,{enumerable:!0,configurable:!0,writable:!0,value:Q}):fe[W]=Q,It=(fe,W)=>{for(var Q in W||(W={}))Ar.call(W,Q)&&Ce(fe,Q,W[Q]);if(yr)for(var Q of yr(W))vr.call(W,Q)&&Ce(fe,Q,W[Q]);return fe},Z=(fe,W)=>{var Q={};for(var re in fe)Ar.call(fe,re)&&W.indexOf(re)<0&&(Q[re]=fe[re]);if(fe!=null&&yr)for(var re of yr(fe))W.indexOf(re)<0&&vr.call(fe,re)&&(Q[re]=fe[re]);return Q},x=(fe,W,Q)=>new Promise((re,Se)=>{var Be=ut=>{try{Ge(Q.next(ut))}catch($e){Se($e)}},Te=ut=>{try{Ge(Q.throw(ut))}catch($e){Se($e)}},Ge=ut=>ut.done?re(ut.value):Promise.resolve(ut.value).then(Be,Te);Ge((Q=Q.apply(fe,W)).next())});const y=fe=>{var W=fe,{shixunHomeworks:Q,classroomList:re,globalSetting:Se,loading:Be,user:Te,dispatch:Ge}=W,ut=Z(W,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),$e,Je,At,ze,He,vt,jt;const[Dt,lr]=(0,le.useState)(It({},(0,R.useParams)())),gr=(0,R.useParams)(),ne=(0,R.useLocation)(),[]=(0,le.useState)([]),[we,Vt]=(0,le.useState)({last:!1}),[Ue,it]=(0,le.useState)({last:!1}),Rr=(0,le.useRef)(),Tt=(0,le.useRef)(),[Rt,$t]=(0,le.useState)(!1),[qe,pt]=(0,le.useState)(!1),[rt,Ht]=(0,le.useState)(!1),[Oe,$r]=(0,le.useState)(),[Bt,gn]=(0,le.useState)(),[On,hi]=(0,le.useState)(!0),[ti,En]=(0,le.useState)(),Dn=(0,q.GJ)(),[Ut,Dr]=(0,le.useState)(new(K())),[Pr,St]=(0,le.useState)(0),[mt,mr]=(0,le.useState)([]),[xr,on]=(0,le.useState)(!1),[kr,un]=(0,le.useState)(!1),[nn,_n]=(0,le.useState)(""),[Un,vn]=(0,le.useState)(!1),[Hr,Kr]=(0,le.useState)(!0),[qr,bn]=(0,le.useState)(0),[ln]=(0,R.useSearchParams)(),ui=()=>x(void 0,null,function*(){(Te.userInfo.is_teacher||Te.userInfo.admin)&&(vn(!0),Kr(!1))});(0,le.useEffect)(()=>{ui(),console.log("\u6253\u5370\u7684------",Oe),console.log(Q),_n(Oe==null?void 0:Oe.repeat_minus_score)},[Oe,Te]),(0,le.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Oe==null?void 0:Oe.work_score),bn(Oe==null?void 0:Oe.work_score)},[Oe==null?void 0:Oe.work_score,nn]),(0,le.useEffect)(()=>(Ge({type:"globalSetting/footerToggle",payload:!1}),()=>{Ge({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,le.useEffect)(()=>{var hr;if(Oe){let an=[];(hr=Oe==null?void 0:Oe.target_test_sets)==null||hr.map((Xr,ri)=>{var zn;(zn=Xr==null?void 0:Xr.targets)==null||zn.map((Hn,Xn)=>{var di;Hn.name=Xr==null?void 0:Xr.name,Hn.total_target_score=Xr==null?void 0:Xr.total_target_score,Hn.actual_target_score=Xr==null?void 0:Xr.actual_target_score,Hn.rowSpan=Xn===0?(di=Xr==null?void 0:Xr.targets)==null?void 0:di.length:0,Hn.order=ri+1,an.push(Hn)})}),En(an),Ge({type:"classroomList/getAssistantPermissions",payload:{course_id:Dt.coursesId}})}},[Oe]),(0,le.useEffect)(()=>{Q.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&mt.length>0&&Oe!=null&&Oe.course_name&&cr("all")},[Oe==null?void 0:Oe.course_name]),(0,le.useEffect)(()=>{console.log(gr),lr(It({},gr))},[ne.pathname]);const jn=()=>{document.body.scrollIntoView()};function cn(){return x(this,null,function*(){var hr,an,Xr,ri;const zn=JSON.parse(localStorage.all_student_works_param||"{}"),Hn=yield Ge({type:"shixunHomeworks/getAllStudentWorks",payload:It(It({},Dt),zn)});mr(Hn.all_student_works);const Xn=(hr=Hn.all_student_works)==null?void 0:hr.map(di=>String(di.student_work_id)).indexOf(Dt.homeworkId);Xn===((an=Hn.all_student_works)==null?void 0:an.length)-1?Vt({last:!0}):Vt((Xr=Hn.all_student_works)==null?void 0:Xr[Xn+1]),it(Xn===0?{last:!0}:(ri=Hn.all_student_works)==null?void 0:ri[Xn-1])})}const sr=()=>{document.querySelectorAll("canvas").forEach(hr=>{(!hr.clientWidth||!hr.clientHeight)&&hr.remove()})},cr=hr=>x(void 0,null,function*(){let an=0,Xr;Xr=T.default.info({width:460,title:Ze.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",Ze.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:Ze.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Ze.createElement("span",{className:"c-blue"},an+1),"/",hr!=="all"?1:mt==null?void 0:mt.length,Ze.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:tt.modal,onOk:()=>{}});const ri={margin:[0,0],filename:`${Oe==null?void 0:Oe.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};function zn(){return x(this,null,function*(){jn(),an++,setTimeout(()=>x(this,null,function*(){var Xn;sr();const di=Ut.folder(`${(Xn=Oe==null?void 0:Oe.stage_list[0])==null?void 0:Xn.shixun_name}`),si=document.querySelector("#export-all").children;let _i=zt()();for(let ji=0;ji<si.length;ji++)yield _i.set(ri).from(si[ji]).toContainer().toCanvas().toPdf().get("pdf").then(ii=>x(this,null,function*(){ji<si.length-1&&(yield ii.addPage())}));di.file(`${mt[an-1].student_work_user_name}.pdf`,_i.output("blob")),Xr.update({content:Ze.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Ze.createElement("span",{className:"c-blue"},an),"/",mt==null?void 0:mt.length,Ze.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),an==(mt==null?void 0:mt.length)?(Xr.destroy(),pr()):Hn()}),2200)})}function Hn(){return x(this,null,function*(){var Xn,di,si,_i,ji;const ii=yield(0,g.ZP)(`/api/student_works/${mt[an].student_work_id}/jupyter_work_report.json`,{method:"get"});if((ii==null?void 0:ii.status)===0)if($r(ii.data),(di=(Xn=ii==null?void 0:ii.data)==null?void 0:Xn.shixun_detail[0])!=null&&di.myshixun_identifier){hi(!0);const yn=yield(0,g.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(_i=(si=ii==null?void 0:ii.data)==null?void 0:si.shixun_detail[0])==null?void 0:_i.myshixun_identifier,student_work_id:(ji=ii==null?void 0:ii.data)==null?void 0:ji.work_id}});yn.status===0&&(gn(yn.html_content),hi(!1),Nr(),zn())}else zn()})}if(hr!=="all"||(mt==null?void 0:mt.length)<2){sr(),jn();const Xn=Tt.current.children;let di=zt()();const si=Ut.folder(`${Oe==null?void 0:Oe.username}`);for(let _i=0;_i<Xn.length;_i++)yield di.set(ri).from(Xn[_i]).toContainer().toCanvas().toPdf().get("pdf").then(ji=>x(void 0,null,function*(){_i<Xn.length-1&&(yield ji.addPage())}));$t(!1),si.file(`${Oe==null?void 0:Oe.username}.pdf`,di.output("blob"),{base64:!1}),Xr.destroy(),pr();return}else Hn()}),pr=()=>{Ut.generateAsync({type:"blob"}).then(function(hr){const an=document.createElement("a");an.href=window.URL.createObjectURL(hr),an.download=(Oe==null?void 0:Oe.course_name)+".zip",document.body.appendChild(an);const Xr=document.createEvent("MouseEvents");Xr.initEvent("click",!1,!1),an.dispatchEvent(Xr),document.body.removeChild(an),Dr(new(K()))}),Ht(!1)};(0,le.useEffect)(()=>{Cn()},[Dt.homeworkId]),(0,le.useEffect)(()=>{Oe!=null&&Oe.work_id&&((0,q.GJ)()||Oe!=null&&Oe.is_anonymous)&&cn()},[Oe==null?void 0:Oe.work_id]),(0,le.useEffect)(()=>{console.log(Oe)},[Oe]);const Fr=()=>x(void 0,null,function*(){const hr=yield(0,g.ZP)(`/api/student_works/${Dt.homeworkId}/jupyter_work_report.json`,{method:"get"});(hr==null?void 0:hr.status)===0&&$r(hr.data)}),Br=()=>x(void 0,null,function*(){var hr,an,Xr,ri,zn;const Hn=yield(0,g.ZP)(`/api/student_works/${Dt.homeworkId}/jupyter_work_report.json`,{method:"get"});if((Hn==null?void 0:Hn.status)===0&&($r(Hn.data),(an=(hr=Hn==null?void 0:Hn.data)==null?void 0:hr.shixun_detail[0])!=null&&an.myshixun_identifier)){hi(!0);const Xn=yield(0,g.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(ri=(Xr=Hn==null?void 0:Hn.data)==null?void 0:Xr.shixun_detail[0])==null?void 0:ri.myshixun_identifier,student_work_id:(zn=Hn==null?void 0:Hn.data)==null?void 0:zn.work_id}});if(Xn.status===0){gn(Xn.html_content),hi(!1),fn(Xn.html_content);return}}}),fn=hr=>{var an,Xr;(Xr=(an=hr==null?void 0:hr.match)==null?void 0:an.call(hr,/<script [^>]*src=['"]([^'"]+)[^>]*>/gi))==null||Xr.map(ri=>{const zn=document.createElement("script");zn.src=/<script [^>]*src=['"]([^'"]+)[^>]*>/gi.exec(ri)[1],document.body.appendChild(zn)}),Nr()},Nr=()=>{try{window.MathJax&&(MathJax.Hub.Config({TeX:{equationNumbers:{autoNumber:"AMS",useLabelIds:!0}},tex2jax:{inlineMath:[["$","$"],["\\\\(","\\\\)"]],displayMath:[["$$","$$"],["\\\\[","\\\\]"]],processEscapes:!0,processEnvironments:!0},displayAlign:"center",CommonHTML:{linebreaks:{automatic:!0}},"HTML-CSS":{linebreaks:{automatic:!0}}}),MathJax.Hub.Queue(["Typeset",MathJax.Hub]))}catch(hr){}},Cn=()=>x(void 0,null,function*(){pt(!0),Br(),pt(!1)}),Rn=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0,render:(hr,an,Xr)=>hr},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:Oe!=null&&Oe.is_anonymous?220:170,render:hr=>hr||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:Oe!=null&&Oe.is_anonymous?140:90},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:Oe!=null&&Oe.is_anonymous?220:170},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"cost_time",width:130},{title:"\u8865\u4EA4\u6263\u5206",dataIndex:"late_penalty",width:90,render:hr=>hr||"--"},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:hr=>hr||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:100,render:(hr,an)=>Ze.createElement("div",null,Ze.createElement("span",{style:{color:parseFloat(an.score_full)!==parseFloat(hr)?"red":"green"}},hr||0),"/",an.score_full)},{title:"\u8C03\u5206",dataIndex:"action",width:110,render:(hr,an)=>Dn?Ze.createElement(be,{max:an.score_full,onBlur:Xr=>x(void 0,null,function*(){var ri;if((0,q.Rm)()&&!((ri=re.AssistantObject.practice)!=null&&ri.can_appraise)){l.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const zn=yield(0,g.ZP)(`/api/student_works/${Dt.homeworkId}/adjust_score.json`,{method:"post",body:{score:Xr}});Fr(),zn.status===0&&l.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):hr}].filter(hr=>Oe!=null&&Oe.is_anonymous?!["late_penalty","absence_penalty","score","action"].includes(hr.dataIndex):!0),Kn=Oe==null?void 0:Oe.comment_scores.map(hr=>{var an,Xr,ri;return{children:Ze.createElement(d.Z,null,Ze.createElement(N.Z,{span:24},Ze.createElement(d.Z,null,Ze.createElement(N.Z,{flex:1},Ze.createElement("span",{className:"c-light-black mr10"},hr.user_name),Ze.createElement("span",null,"\u8C03\u5206\u4E3A"),Ze.createElement("span",{className:"ml10 c-orange"},hr.score?hr.score:0,"\u5206")),Ze.createElement(N.Z,null,Ze.createElement("span",{className:"c-light-black ml10"},hr.comment_time)))),Ze.createElement(N.Z,{span:24,className:"mt8"},Ze.createElement(d.Z,{className:"mt8"},Ze.createElement(N.Z,{span:22},hr.content?Ze.createElement("span",{style:{color:"#333333"}},hr.content):Ze.createElement("span",{className:"c-light-black"},"\u6682\u672A\u5199\u8BC4\u8BED")),Ze.createElement(N.Z,{className:"tr",span:2},(hr==null?void 0:hr.can_appeal)&&!(hr!=null&&hr.is_invalid)&&Ze.createElement(v.ZP,{size:"small",type:"primary",onClick:()=>{Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u533F\u8BC4\u7533\u8BC9",selectArrs:{data:It({},hr)}}})}},"\u7533\u8BC9")))),!!(hr!=null&&hr.appeal_info)&&Ze.createElement(N.Z,{span:24,className:"mt8"},Ze.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15}},Ze.createElement(d.Z,{justify:"space-between"},Ze.createElement("span",null,Ze.createElement("span",{className:"c-grey-333"},(an=hr==null?void 0:hr.appeal_info)==null?void 0:an.user_name),Ze.createElement("span",null,(hr==null?void 0:hr.appeal_status)===1&&Ze.createElement("span",{className:`tag-style bg-orange ml10 ${tt.tag}`},"\u7533\u8BC9\u4E2D"),(hr==null?void 0:hr.appeal_status)===2&&Ze.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${tt.tag}`},"\u7533\u8BC9\u5DF2\u64A4\u9500"),(hr==null?void 0:hr.appeal_status)===3&&Ze.createElement("span",{className:`tag-style ml10 ${tt.tag}`,style:{background:"#57BE40"}},"\u7533\u8BC9\u6210\u529F"),(hr==null?void 0:hr.appeal_status)===4&&Ze.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${tt.tag}`},"\u7533\u8BC9\u88AB\u62D2\u7EDD"),(hr==null?void 0:hr.appeal_status)===5&&Ze.createElement("span",{className:`tag-style c-light-black ml10 ${tt.tag}`,style:{background:"#E9EAED"}},"\u7533\u8BC9\u5931\u8D25"))),Ze.createElement("span",{className:"c-light-black"}," ",ae()((Xr=hr==null?void 0:hr.appeal_info)==null?void 0:Xr.time).format("YYYY-MM-DD HH:mm:ss"))),Ze.createElement(d.Z,{justify:"space-between",className:"mt10"},Ze.createElement(N.Z,{flex:1},(ri=hr.appeal_info)==null?void 0:ri.content),Ze.createElement(N.Z,{style:{flexShrink:0,marginLeft:"auto"}},(hr==null?void 0:hr.appeal_status)===1&&(0,q.GJ)()&&Ze.createElement("span",{onClick:()=>{T.default.confirm({title:"\u63A5\u53D7\u7533\u8BC9",icon:null,content:"\u6B64\u533F\u8BC4\u8BB0\u5F55\u5C06\u4F5C\u5E9F\uFF0C\u533F\u8BC4\u5B66\u751F\u7684\u4F5C\u54C1\u5C06\u88AB\u6263\u51CF\u8FDD\u89C4\u533F\u8BC4\u5206 \u662F\u5426\u786E\u8BA4\u63A5\u53D7\u7533\u8BC9\uFF1F",onOk:()=>x(void 0,null,function*(){const zn=yield(0,g.ZP)(`/api/student_works/${Dt.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:hr.score_id,status:3}});(zn==null?void 0:zn.status)===0&&Fr()})})},className:"c-red current"},"\u63A5\u53D7\u7533\u8BC9"),(hr==null?void 0:hr.appeal_status)===1&&(0,q.GJ)()&&Ze.createElement("span",{onClick:()=>{T.default.confirm({icon:null,title:"\u63A5\u53D7\u7533\u8BC9",content:"\u6B64\u533F\u8BC4\u8BB0\u5F55\u88AB\u8BA4\u4E3A\u5408\u7406\uFF0C\u662F\u5426\u786E\u8BA4\u62D2\u7EDD\u7533\u8BC9\uFF1F",onOk:()=>x(void 0,null,function*(){const zn=yield(0,g.ZP)(`/api/student_works/${Dt.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:hr.score_id,status:4}});(zn==null?void 0:zn.status)===0&&Fr()})})},className:"c-light-black current ml10"},"\u62D2\u7EDD\u7533\u8BC9"))))))}}),Ai=hr=>{gn(null),Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{hr==="next"?R.history.push(`/classrooms/${Dt.coursesId}/common_homework/${Dt.categoryId}/${we==null?void 0:we.student_work_id}/comment?page=${ln.get("page")}`):R.history.push(`/classrooms/${Dt.coursesId}/common_homework/${Dt.categoryId}/${Ue==null?void 0:Ue.student_work_id}/comment?page=${ln.get("page")}`)},200)},ni=hr=>{_n(""),hr.target.value&&(console.log("\u8FDB\u6765",Oe),hr.target.value=hr.target.value>(Oe==null?void 0:Oe.repeat_setting_score)?Oe==null?void 0:Oe.repeat_setting_score:hr.target.value,_n(hr.target.value))},mi=()=>x(void 0,null,function*(){const hr=yield(0,g.ZP)(`/api/student_works/${Oe==null?void 0:Oe.work_id}/update_repeat_score`,{method:"put",body:{score:nn}});yield Ge({type:"shixunHomeworks/gethomeWorkReport",payload:It({},Dt)}),hr.status===0&&l.ZP.info("\u64CD\u4F5C\u6210\u529F")});return console.log(!!(Oe!=null&&Oe.category),Oe==null?void 0:Oe.course_id,"homeWorkReport"),Ze.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},Ze.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},Ze.createElement(m.Z,{loading:qe,active:!0,avatar:{size:40},paragraph:{rows:5}},Ze.createElement("div",{className:"edu-container"},(Oe==null?void 0:Oe.course_id)&&Ze.createElement("section",{className:"animated fadeIn"},Ze.createElement("aside",{className:""},(Oe==null?void 0:Oe.category)&&Ze.createElement(b.Z,{separator:">"},Ze.createElement(b.Z.Item,null,Ze.createElement(R.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework`},Oe==null?void 0:Oe.course_name)),Ze.createElement(b.Z.Item,null,Ze.createElement(R.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework/${Oe!=null&&Oe.category.main?"":Oe==null?void 0:Oe.category.category_id}`},Oe==null?void 0:Oe.category.category_name)),Ze.createElement(b.Z.Item,null,Ze.createElement(R.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework/${Oe==null?void 0:Oe.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),Ze.createElement(b.Z.Item,null,Oe==null?void 0:Oe.username))),Ze.createElement("aside",{className:[tt.title1,"mt20"].join(" ")},Ze.createElement(d.Z,{align:"middle"},Ze.createElement(N.Z,{flex:1},Ze.createElement(R.Link,{to:`/classrooms/${Oe==null?void 0:Oe.course_id}/common_homework/${Oe==null?void 0:Oe.homework_common_id}/detail?page=${ln.get("page")}`},Ze.createElement(J.Z,{className:"font16 c-black"})),Ze.createElement("strong",{style:{fontWeight:700},className:"font20 ml5"},Oe==null?void 0:Oe.shixun_name),Ze.createElement(ye.VV,{status:Oe==null?void 0:Oe.homework_status})),Ze.createElement(N.Z,{className:tt.title1_right},!(Oe!=null&&Oe.is_anonymous)&&!!(Oe!=null&&Oe.work_status)&&Ze.createElement(v.ZP,null,Ze.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),Ze.createElement(R.Link,{className:"c-black",target:"_blank",to:`/tasks/${(Je=($e=Oe==null?void 0:Oe.shixun_detail)==null?void 0:$e[0])==null?void 0:Je.myshixun_identifier}/jupyter${(0,q.GJ)()?"":`?homework_common_id=${gr.categoryId}`}`},(0,q.GJ)()?"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD":"\u67E5\u770B\u5B9E\u8BAD")),(0,q.GJ)()&&!((At=Oe==null?void 0:Oe.homework_status)!=null&&At.includes("\u5DF2\u622A\u6B62"))&&Ze.createElement(v.ZP,{className:"ml10",onClick:()=>x(void 0,null,function*(){yield Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"redoShixunModal",homework_common_id:gr.categoryId,student_work_id:gr.homeworkId}})})},Ze.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),!(Oe!=null&&Oe.is_anonymous)&&Ze.createElement(v.ZP,{className:"ml10",onClick:()=>{var hr;if((0,q.Rm)()&&!((hr=re.AssistantObject.normal)!=null&&hr.can_download)){l.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cr("")},loading:Rt},Ze.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,q.GJ)()&&(mt==null?void 0:mt.length)>1&&Ze.createElement(v.ZP,{className:"ml10",onClick:()=>{var hr;if((0,q.Rm)()&&!((hr=re.AssistantObject.normal)!=null&&hr.can_download)){l.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}cr("all")}},Ze.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),Ze.createElement("aside",{className:"mt30 relative"})),Ze.createElement("aside",{className:"edu-container bg-white",ref:Rr},Ze.createElement("div",{id:"export-all",ref:Tt},Ze.createElement("div",{id:"export-all-1"},Ze.createElement("div",{className:tt.title},Ze.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),Ze.createElement("div",null,!((ze=Oe==null?void 0:Oe.homework_status)!=null&&ze.includes("\u5DF2\u622A\u6B62")&&(0,q.dE)())&&((0,q.GJ)()||(Oe==null?void 0:Oe.is_anonymous))&&Ze.createElement(v.ZP,{className:"mr20",type:"primary",onClick:()=>{Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Oe==null?void 0:Oe.user_id,data:It({},Oe)}}})}},Ze.createElement(te.Z,null),Oe!=null&&Oe.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),Ze.createElement(I.Z,{style:{marginTop:0}}),Ze.createElement(d.Z,{className:"pl30 pr30"},Ze.createElement(N.Z,null,Ze.createElement("img",{className:tt.userPic,src:`${ce.Z.IMG_SERVER}/images/${Oe==null?void 0:Oe.image_url}`,alt:Oe==null?void 0:Oe.username})),Ze.createElement(N.Z,{className:"pt20"},Ze.createElement("span",{className:"font16 ml40"},Oe==null?void 0:Oe.username),Ze.createElement(ye.Y,{status:Oe==null?void 0:Oe.work_status}),Ze.createElement("ul",{className:tt.userInfo},Ze.createElement("li",null,"\u5B66\u53F7\uFF1A",(Oe==null?void 0:Oe.student_id)||"--"),((0,q.GJ)()||!(Oe!=null&&Oe.is_anonymous))&&Ze.createElement("li",null,"\u5206\u73ED\uFF1A",(Oe==null?void 0:Oe.group_name)||"--"),Ze.createElement("br",null)))),Ze.createElement("aside",{className:"pl30 pr30 mt30 mb10"},Ze.createElement(L.default,{dataSource:Oe==null?void 0:Oe.stage_list,rowKey:hr=>hr==null?void 0:hr.challenge_id,pagination:!1,columns:Rn})),((Oe==null?void 0:Oe.work_comment_hidden)||(Oe==null?void 0:Oe.work_comment))&&Ze.createElement("div",null,Ze.createElement(d.Z,{align:"middle"},Ze.createElement(N.Z,{flex:1},Ze.createElement("h1",{className:tt.title},"\u70B9\u8BC4\u5185\u5BB9")),Ze.createElement(N.Z,{className:"pr30"},(0,q.GJ)()&&Ze.createElement(v.ZP,{onClick:()=>x(void 0,null,function*(){T.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:Ze.createElement(H.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return x(this,null,function*(){(yield(0,_t.gZ)({comment_id:Oe==null?void 0:Oe.comment_id,homeworkId:Dt.homeworkId})).status===0&&(l.ZP.success("\u5220\u9664\u6210\u529F"),Fr())})}})})},Ze.createElement(G.Z,null),"\u5220\u9664"))),(Oe==null?void 0:Oe.work_comment)&&Ze.createElement("aside",{className:"pl30 pr30",style:{marginTop:"-5px"}},Ze.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ze.createElement("br",null),Ze.createElement(nt.Z,{value:Oe==null?void 0:Oe.work_comment,className:"font14"})),(Oe==null?void 0:Oe.work_comment_hidden)&&Ze.createElement("aside",{className:"pl30 pr30 mt15"},Ze.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ze.createElement("br",null),Ze.createElement(nt.Z,{value:Oe==null?void 0:Oe.work_comment_hidden,className:"font14"}))),(Oe==null?void 0:Oe.comment_scores.length)>0&&Ze.createElement(Ze.Fragment,null,Ze.createElement("h1",{className:tt.title},"\u8C03\u5206\u539F\u56E0"),Ze.createElement("aside",{className:"pl30 pr30",style:{marginTop:"4px"}},Ze.createElement(z.Z,{items:Kn}))),((He=Oe==null?void 0:Oe.shixun_detail[0])==null?void 0:He.myshixun_identifier)&&Ze.createElement(Ze.Fragment,null,Ze.createElement("h1",{className:tt.title,style:{marginTop:"-20px"}},"\u5B9E\u8BAD\u8BE6\u60C5"),Ze.createElement("aside",{className:"pl30 pr30"},Ze.createElement("div",{className:tt.shixunWrp},Ze.createElement("h2",null,Ze.createElement("span",null,"\u8BC4\u6D4B\u4EE3\u7801",Ze.createElement("span",{className:"ml5 font12 c-grey-999"},"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u540E\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\u8BE6\u60C5")),Ze.createElement("span",null,Ze.createElement(P.default,{style:{width:200},value:(vt=Oe==null?void 0:Oe.shixun_detail[0])==null?void 0:vt.path}," ",Oe==null?void 0:Oe.shixun_detail.map(hr=>Ze.createElement(Option,{value:hr.path},hr.path))," "))),Ze.createElement($.Z,{spinning:On},Ze.createElement("div",{style:{width:"100%",minHeight:"550px",padding:"16px"},dangerouslySetInnerHTML:{__html:Bt}})))))))),((0,q.GJ)()||(Oe==null?void 0:Oe.is_anonymous))&&Ze.createElement("aside",{className:`${tt.footerBar} ${Rt?tt.footerBarStatic:""}`},Ze.createElement("aside",{className:"edu-container"},Ze.createElement(d.Z,{align:"middle"},Ze.createElement(N.Z,{flex:"1"},Ze.createElement(R.Link,{className:tt.exitComment,to:`/classrooms/${Dt.coursesId}/common_homework/${Dt.categoryId}/detail?page=${ln.get("page")}`},"\u8FD4\u56DE\u5217\u8868")),Ze.createElement(N.Z,{flex:"1",className:"tr"},Ze.createElement(v.ZP,{type:"default",disabled:Ue==null?void 0:Ue.last,onClick:()=>Ai()},"\u4E0A\u4E00\u4E2A"),Ze.createElement(v.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:we==null?void 0:we.last,onClick:()=>Ai("next")},"\u4E0B\u4E00\u4E2A"),!((jt=Oe==null?void 0:Oe.homework_status)!=null&&jt.includes("\u5DF2\u622A\u6B62")&&(0,q.dE)())&&((0,q.GJ)()||(Oe==null?void 0:Oe.is_anonymous))&&Ze.createElement(v.ZP,{type:"primary",onClick:()=>x(void 0,null,function*(){Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Oe==null?void 0:Oe.user_id,data:It({},Oe)}}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),Ze.createElement(de,{gethomeworkreport:Fr,homeWorkReport:Oe}),Ze.createElement(ve,{gethomeworkreport:Fr,homeWorkReport:Oe}),Ze.createElement(Xe.Z,{getData:Fr}),Ze.createElement(T.default,{open:xr,width:860,centered:!0,onCancel:()=>{on(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},Ze.createElement("div",{style:{color:"#333333",fontWeight:400}},Ze.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),Ze.createElement("br",null),Ze.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),Ze.createElement("br",null),Ze.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),Ze.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),Ze.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),Ze.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Ze.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),Ze.createElement("br",null),Ze.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),Ze.createElement("br",null),Ze.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),Ze.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),Ze.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),Ze.createElement("br",null),Ze.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),Ze.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Ze.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),Ze.createElement("br",null),Ze.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),Ze.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},Ze.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),Ze.createElement("br",null),Ze.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),Ze.createElement(T.default,{open:kr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{un(!1)},width:600},Ze.createElement("div",{style:{fontWeight:400,color:"#333333"}},Ze.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Ze.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),Ze.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Ze.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),Ze.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",Ze.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))))};var k=(0,R.connect)(({shixunHomeworks:fe,classroomList:W,loading:Q,globalSetting:re,user:Se})=>({shixunHomeworks:fe,classroomList:W,globalSetting:re,loading:Q.effects,user:Se}))(y)},45633:function(tn,Mt,E){"use strict";var le=E(43418),Fe=E(8591),ae=E(99064),Re=E(89070),K=E(24065),g=E(59301),R=(l,d,N)=>new Promise((v,m)=>{var b=z=>{try{L(N.next(z))}catch(P){m(P)}},I=z=>{try{L(N.throw(z))}catch(P){m(P)}},L=z=>z.done?v(z.value):Promise.resolve(z.value).then(b,I);L((N=N.apply(l,d)).next())});const T=({shixunHomeworks:l,dispatch:d,classroomList:N,getData:v})=>g.createElement(le.default,{centered:!0,title:"\u63D0\u793A",open:l.actionTabs.key==="redoShixunModal",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>R(void 0,null,function*(){var m;if((0,K.Rm)()&&!((m=N.AssistantObject.normal)!=null&&m.can_redo)){Fe.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(yield(0,ae.ZP)(`/api/homework_commons/${l.actionTabs.homework_common_id}/batch_redo_modal.json`,{method:"post",body:{student_work_id:l.actionTabs.student_work_id}})).status===0&&(Fe.ZP.success("\u64CD\u4F5C\u6210\u529F"),d({type:"shixunHomeworks/setActionTabs",payload:{}}),v())}),onCancel:()=>{d({type:"shixunHomeworks/setActionTabs",payload:{}})}},g.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C",l.actionTabs.isshixun?"\u5B66\u751F\u5B9E\u8BAD":"\u5B66\u751F\u4F5C\u54C1\u63D0\u4EA4","\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),g.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"));Mt.Z=(0,Re.connect)(({shixunHomeworks:l,classroomList:d})=>({shixunHomeworks:l,classroomList:d}))(T)},24768:function(tn,Mt,E){"use strict";E.d(Mt,{AL:function(){return te},Iy:function(){return N},Qv:function(){return b},ez:function(){return J},jb:function(){return v}});var le=E(32834),Fe=E.n(le),ae=E(11690),Re=E.n(ae);let K=1;function g(ye,_e){const Le=ye.match(/^(\s+)(?:```)/);if(Le===null)return _e;const se=Le[1];return _e.split(`
|
|
|
`).map(be=>{const O=be.match(/^\s+/);if(O===null)return be;const[Ee]=O;return Ee.length>=se.length?be.slice(se.length):be}).join(`
|
|
|
`)}let R=[],T=["<ul>"];const l=new(Fe()).Renderer,d=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function N(){R.length=0,T=["<ul>"]}const v={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function m(ye,_e,Le,se){if(_e>=ye.length||ye[_e].level<=Le)return _e;var be=ye[_e];se.push("<li><a href='#"+K+be.anchor+"'>"+be.text+"</a>"),_e++;var O=[];return _e=m(ye,_e,be.level,O),O.length>0&&(se.push("<ul>"),O.forEach(function(Ee){se.push(Ee)}),se.push("</ul>")),se.push("</li>"),_e=m(ye,_e,Le,se),_e}function b(){return m(R,0,0,T),T.push("</ul>"),T.join("")}const I={heading(ye){const _e=d.exec(ye);if(K+=1,_e)return{type:"heading",raw:_e[0],depth:_e[1].length,text:_e[2]}},fences(ye){const _e=this.rules.block.fences.exec(ye);if(_e){const Le=_e[0];let se=g(Le,_e[3]||"");const be=_e[2]?_e[2].trim():_e[2];if(["latex","katex","math"].indexOf(be)>=0){const O=P(),Ee=se;se=O,$[O]={type:"block",expression:Ee}}return{type:"code",raw:Le,lang:be,text:se}}}},L=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let z=0;const P=()=>`__special_katext_id_${z++}__`;let $={};function J(){return $}function te(){z=0,$={}}function H(ye){return ye=ye.replace(L,(_e,Le)=>{const se=P();return $[se]={type:"inline",expression:Le},se}),ye}const G=l.listitem;l.listitem=function(ye){return G(H(ye))};const ce=l.paragraph;l.paragraph=function(ye){return ce(H(ye))};const q=l.tablecell;l.tablecell=function(ye,_e){return q(H(ye),_e)},l.code=function(ye,_e,Le){const se=(_e||"").match(/\S*/)[0];return se?["latex","katex","math"].indexOf(se)>=0?`<p class='editormd-tex'>${ye}</p>`:`<pre class="prettyprint linenums"><code class="language-${_e}">${Le?ye:(0,ae.escape)(ye,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Le?ye:(0,ae.escape)(ye,!0))+"</code></pre>"},l.heading=function(ye,_e,Le){let se=this.options.headerPrefix+Le.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return R.push({anchor:se,level:_e,text:ye}),"<h"+_e+' id="'+K+se+'">'+ye+"</h"+_e+">"},Fe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Fe().use({tokenizer:I,renderer:l}),Mt.ZP=Fe()},36785:function(tn,Mt,E){"use strict";E.d(Mt,{o2:function(){return K},yT:function(){return g}});var le=E(80702),Fe=E(33166);const ae=Fe.i.map(R=>`${R}-inverse`),Re=["success","processing","error","default","warning"];function K(R){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,le.Z)(ae),(0,le.Z)(Fe.i)).includes(R):Fe.i.includes(R)}function g(R){return Re.includes(R)}},50371:function(tn,Mt){"use strict";function E(){const le=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Fe=1;Fe<arguments.length;Fe++){const ae=Fe<0||arguments.length<=Fe?void 0:arguments[Fe];ae&&Object.keys(ae).forEach(Re=>{const K=ae[Re];K!==void 0&&(le[Re]=K)})}return le}Mt.Z=E},13845:function(tn,Mt,E){"use strict";E.d(Mt,{F:function(){return le},Z:function(){return Fe}});function le(ae){return ae!=null&&ae===ae.window}function Fe(ae,Re){var K,g;if(typeof window=="undefined")return 0;const R=Re?"scrollTop":"scrollLeft";let T=0;return le(ae)?T=ae[Re?"pageYOffset":"pageXOffset"]:ae instanceof Document?T=ae.documentElement[R]:(ae instanceof HTMLElement||ae)&&(T=ae[R]),ae&&!le(ae)&&typeof T!="number"&&(T=(g=((K=ae.ownerDocument)!==null&&K!==void 0?K:ae).documentElement)===null||g===void 0?void 0:g[R]),T}},56762:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return Fe}});var le=E(59301);function Fe(){const[,ae]=le.useReducer(Re=>Re+1,0);return ae}},79676:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return g}});var le=E(19447);function Fe(R,T,l,d){if(d===!1)return{adjustX:!1,adjustY:!1};const N=d&&typeof d=="object"?d:{},v={};switch(R){case"top":case"bottom":v.shiftX=T.dropdownArrowOffset*2+l;break;case"left":case"right":v.shiftY=T.dropdownArrowOffsetVertical*2+l;break}const m=Object.assign(Object.assign({},v),N);return m.shiftX||(m.adjustX=!0),m.shiftY||(m.adjustY=!0),m}const ae={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Re={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},K=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function g(R){const{arrowWidth:T,autoAdjustOverflow:l,arrowPointAtCenter:d,offset:N,borderRadius:v,visibleFirst:m}=R,b=T/2,I={};return Object.keys(ae).forEach(L=>{const z=d&&Re[L]||ae[L],P=Object.assign(Object.assign({},z),{offset:[0,0]});switch(I[L]=P,K.has(L)&&(P.autoArrow=!1),L){case"top":case"topLeft":case"topRight":P.offset[1]=-b-N;break;case"bottom":case"bottomLeft":case"bottomRight":P.offset[1]=b+N;break;case"left":case"leftTop":case"leftBottom":P.offset[0]=-b-N;break;case"right":case"rightTop":case"rightBottom":P.offset[0]=b+N;break}const $=(0,le.fS)({contentRadius:v,limitVerticalRadius:!0});if(d)switch(L){case"topLeft":case"bottomLeft":P.offset[0]=-$.dropdownArrowOffset-b;break;case"topRight":case"bottomRight":P.offset[0]=$.dropdownArrowOffset+b;break;case"leftTop":case"rightTop":P.offset[1]=-$.dropdownArrowOffset-b;break;case"leftBottom":case"rightBottom":P.offset[1]=$.dropdownArrowOffset+b;break}P.overflow=Fe(L,$,T,l),m&&(P.htmlRegion="visibleFirst")}),I}},68031:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return Re}});var le=E(16089);function Fe(K,g,R,T){const l=R-g;return K/=T/2,K<1?l/2*K*K*K+g:l/2*((K-=2)*K*K+2)+g}var ae=E(13845);function Re(K){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:R=()=>window,callback:T,duration:l=450}=g,d=R(),N=(0,ae.Z)(d,!0),v=Date.now(),m=()=>{const I=Date.now()-v,L=Fe(I>l?l:I,N,K,l);(0,ae.F)(d)?d.scrollTo(window.pageXOffset,L):d instanceof Document||d.constructor.name==="HTMLDocument"?d.documentElement.scrollTop=L:d.scrollTop=L,I<l?(0,le.Z)(m):typeof T=="function"&&T()};(0,le.Z)(m)}},19080:function(tn,Mt,E){"use strict";E.d(Mt,{F:function(){return K},Z:function(){return Re}});var le=E(92310),Fe=E.n(le);const ae=null;function Re(g,R,T){return Fe()({[`${g}-status-success`]:R==="success",[`${g}-status-warning`]:R==="warning",[`${g}-status-error`]:R==="error",[`${g}-status-validating`]:R==="validating",[`${g}-has-feedback`]:T})}const K=(g,R)=>R||g},66104:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return Ee}});var le=E(92310),Fe=E.n(le),ae=E(11592),Re=E(26112),K=E(59301),g=E(92343),R=E(36355),T=E(84105),l=E(91857);const d=ue=>{let{children:he}=ue;const{getPrefixCls:ve}=K.useContext(R.E_),F=ve("breadcrumb");return K.createElement("li",{className:`${F}-separator`,"aria-hidden":"true"},he===""?he:he||"/")};d.__ANT_BREADCRUMB_SEPARATOR=!0;var N=d,v=function(ue,he){var ve={};for(var F in ue)Object.prototype.hasOwnProperty.call(ue,F)&&he.indexOf(F)<0&&(ve[F]=ue[F]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,F=Object.getOwnPropertySymbols(ue);U<F.length;U++)he.indexOf(F[U])<0&&Object.prototype.propertyIsEnumerable.call(ue,F[U])&&(ve[F[U]]=ue[F[U]]);return ve};function m(ue,he){if(ue.title===void 0||ue.title===null)return null;const ve=Object.keys(he).join("|");return typeof ue.title=="object"?ue.title:String(ue.title).replace(new RegExp(`:(${ve})`,"g"),(F,U)=>he[U]||F)}function b(ue,he,ve,F){if(ve==null)return null;const{className:U,onClick:ee}=he,de=v(he,["className","onClick"]),Xe=Object.assign(Object.assign({},(0,Re.Z)(de,{data:!0,aria:!0})),{onClick:ee});return F!==void 0?K.createElement("a",Object.assign({},Xe,{className:Fe()(`${ue}-link`,U),href:F}),ve):K.createElement("span",Object.assign({},Xe,{className:Fe()(`${ue}-link`,U)}),ve)}function I(ue,he){return(F,U,ee,de,Xe)=>{if(he)return he(F,U,ee,de);const tt=m(F,U);return b(ue,F,tt,Xe)}}var L=function(ue,he){var ve={};for(var F in ue)Object.prototype.hasOwnProperty.call(ue,F)&&he.indexOf(F)<0&&(ve[F]=ue[F]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,F=Object.getOwnPropertySymbols(ue);U<F.length;U++)he.indexOf(F[U])<0&&Object.prototype.propertyIsEnumerable.call(ue,F[U])&&(ve[F[U]]=ue[F[U]]);return ve};const z=ue=>{const{prefixCls:he,separator:ve="/",children:F,menu:U,overlay:ee,dropdownProps:de,href:Xe}=ue,nt=(_t=>{if(U||ee){const Xt=Object.assign({},de);if(U){const zt=U||{},{items:Ze}=zt,fr=L(zt,["items"]);Xt.menu=Object.assign(Object.assign({},fr),{items:Ze==null?void 0:Ze.map((yr,Ar)=>{var{key:vr,title:Ce,label:It,path:Z}=yr,x=L(yr,["key","title","label","path"]);let y=It!=null?It:Ce;return Z&&(y=K.createElement("a",{href:`${Xe}${Z}`},y)),Object.assign(Object.assign({},x),{key:vr!=null?vr:Ar,label:y})})})}else ee&&(Xt.overlay=ee);return K.createElement(l.Z,Object.assign({placement:"bottom"},Xt),K.createElement("span",{className:`${he}-overlay-link`},_t,K.createElement(T.Z,null)))}return _t})(F);return nt!=null?K.createElement(K.Fragment,null,K.createElement("li",null,nt),ve&&K.createElement(N,null,ve)):null},P=ue=>{const{prefixCls:he,children:ve,href:F}=ue,U=L(ue,["prefixCls","children","href"]),{getPrefixCls:ee}=K.useContext(R.E_),de=ee("breadcrumb",he);return K.createElement(z,Object.assign({},U,{prefixCls:de}),b(de,U,ve,F))};P.__ANT_BREADCRUMB_ITEM=!0;var $=P,J=E(17313),te=E(83116),H=E(37613);const G=ue=>{const{componentCls:he,iconCls:ve}=ue;return{[he]:Object.assign(Object.assign({},(0,J.Wf)(ue)),{color:ue.itemColor,fontSize:ue.fontSize,[ve]:{fontSize:ue.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ue.linkColor,transition:`color ${ue.motionDurationMid}`,padding:`0 ${ue.paddingXXS}px`,borderRadius:ue.borderRadiusSM,height:ue.lineHeight*ue.fontSize,display:"inline-block",marginInline:-ue.marginXXS,"&:hover":{color:ue.linkHoverColor,backgroundColor:ue.colorBgTextHover}},(0,J.Qy)(ue)),"li:last-child":{color:ue.lastItemColor},[`${he}-separator`]:{marginInline:ue.separatorMargin,color:ue.separatorColor},[`${he}-link`]:{[`
|
|
|
> ${ve} + span,
|
|
|
> ${ve} + a
|
|
|
`]:{marginInlineStart:ue.marginXXS}},[`${he}-overlay-link`]:{borderRadius:ue.borderRadiusSM,height:ue.lineHeight*ue.fontSize,display:"inline-block",padding:`0 ${ue.paddingXXS}px`,marginInline:-ue.marginXXS,[`> ${ve}`]:{marginInlineStart:ue.marginXXS,fontSize:ue.fontSizeIcon},"&:hover":{color:ue.linkHoverColor,backgroundColor:ue.colorBgTextHover,a:{color:ue.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ue.componentCls}-rtl`]:{direction:"rtl"}})}};var ce=(0,te.Z)("Breadcrumb",ue=>{const he=(0,H.TS)(ue,{});return[G(he)]},ue=>({itemColor:ue.colorTextDescription,lastItemColor:ue.colorText,iconFontSize:ue.fontSize,linkColor:ue.colorTextDescription,linkHoverColor:ue.colorText,separatorColor:ue.colorTextDescription,separatorMargin:ue.marginXS})),q=function(ue,he){var ve={};for(var F in ue)Object.prototype.hasOwnProperty.call(ue,F)&&he.indexOf(F)<0&&(ve[F]=ue[F]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,F=Object.getOwnPropertySymbols(ue);U<F.length;U++)he.indexOf(F[U])<0&&Object.prototype.propertyIsEnumerable.call(ue,F[U])&&(ve[F[U]]=ue[F[U]]);return ve};function ye(ue){const{breadcrumbName:he,children:ve}=ue,F=q(ue,["breadcrumbName","children"]),U=Object.assign({title:he},F);return ve&&(U.menu={items:ve.map(ee=>{var{breadcrumbName:de}=ee,Xe=q(ee,["breadcrumbName"]);return Object.assign(Object.assign({},Xe),{title:de})})}),U}function _e(ue,he){return(0,K.useMemo)(()=>ue||(he?he.map(ye):null),[ue,he])}var Le=function(ue,he){var ve={};for(var F in ue)Object.prototype.hasOwnProperty.call(ue,F)&&he.indexOf(F)<0&&(ve[F]=ue[F]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var U=0,F=Object.getOwnPropertySymbols(ue);U<F.length;U++)he.indexOf(F[U])<0&&Object.prototype.propertyIsEnumerable.call(ue,F[U])&&(ve[F[U]]=ue[F[U]]);return ve};const se=(ue,he)=>{if(he===void 0)return he;let ve=(he||"").replace(/^\//,"");return Object.keys(ue).forEach(F=>{ve=ve.replace(`:${F}`,ue[F])}),ve},be=ue=>{const{prefixCls:he,separator:ve="/",style:F,className:U,rootClassName:ee,routes:de,items:Xe,children:tt,itemRender:nt,params:_t={}}=ue,Xt=Le(ue,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:zt,direction:Ze,breadcrumb:fr}=K.useContext(R.E_);let yr;const Ar=zt("breadcrumb",he),[vr,Ce]=ce(Ar),It=_e(Xe,de),Z=I(Ar,nt);if(It&&It.length>0){const k=[],fe=Xe||de;yr=It.map((W,Q)=>{const{path:re,key:Se,type:Be,menu:Te,overlay:Ge,onClick:ut,className:$e,separator:Je,dropdownProps:At}=W,ze=se(_t,re);ze!==void 0&&k.push(ze);const He=Se!=null?Se:Q;if(Be==="separator")return K.createElement(N,{key:He},Je);const vt={},jt=Q===It.length-1;Te?vt.menu=Te:Ge&&(vt.overlay=Ge);let{href:Dt}=W;return k.length&&ze!==void 0&&(Dt=`#/${k.join("/")}`),K.createElement(z,Object.assign({key:He},vt,(0,Re.Z)(W,{data:!0,aria:!0}),{className:$e,dropdownProps:At,href:Dt,separator:jt?"":ve,onClick:ut,prefixCls:Ar}),Z(W,_t,fe,k,Dt))})}else if(tt){const k=(0,ae.Z)(tt).length;yr=(0,ae.Z)(tt).map((fe,W)=>{if(!fe)return fe;const Q=W===k-1;return(0,g.Tm)(fe,{separator:Q?"":ve,key:W})})}const x=Fe()(Ar,fr==null?void 0:fr.className,{[`${Ar}-rtl`]:Ze==="rtl"},U,ee,Ce),y=Object.assign(Object.assign({},fr==null?void 0:fr.style),F);return vr(K.createElement("nav",Object.assign({className:x,style:y},Xt),K.createElement("ol",null,yr)))};be.Item=$,be.Separator=N;var O=be,Ee=O},24905:function(tn,Mt,E){"use strict";E.d(Mt,{default:function(){return ce}});var le=E(92310),Fe=E.n(le),ae=E(5630),Re=E(59301),K=E(36355),g=E(1684),R=E(32441),l=Re.createContext(null),d=E(98447),N=E(14088),v=E(4572),m=function(q,ye){var _e={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&ye.indexOf(Le)<0&&(_e[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Le=Object.getOwnPropertySymbols(q);se<Le.length;se++)ye.indexOf(Le[se])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[se])&&(_e[Le[se]]=q[Le[se]]);return _e};const b=(q,ye)=>{var _e;const{prefixCls:Le,className:se,rootClassName:be,children:O,indeterminate:Ee=!1,style:ue,onMouseEnter:he,onMouseLeave:ve,skipGroup:F=!1,disabled:U}=q,ee=m(q,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:de,direction:Xe,checkbox:tt}=Re.useContext(K.E_),nt=Re.useContext(l),{isFormItemInput:_t}=Re.useContext(R.aM),Xt=Re.useContext(g.Z),zt=(_e=(nt==null?void 0:nt.disabled)||U)!==null&&_e!==void 0?_e:Xt,Ze=Re.useRef(ee.value);Re.useEffect(()=>{nt==null||nt.registerValue(ee.value)},[]),Re.useEffect(()=>{if(!F)return ee.value!==Ze.current&&(nt==null||nt.cancelValue(Ze.current),nt==null||nt.registerValue(ee.value),Ze.current=ee.value),()=>nt==null?void 0:nt.cancelValue(ee.value)},[ee.value]);const fr=de("checkbox",Le),[yr,Ar]=(0,d.ZP)(fr),vr=Object.assign({},ee);nt&&!F&&(vr.onChange=function(){ee.onChange&&ee.onChange.apply(ee,arguments),nt.toggleOption&&nt.toggleOption({label:O,value:ee.value})},vr.name=nt.name,vr.checked=nt.value.includes(ee.value));const Ce=Fe()(`${fr}-wrapper`,{[`${fr}-rtl`]:Xe==="rtl",[`${fr}-wrapper-checked`]:vr.checked,[`${fr}-wrapper-disabled`]:zt,[`${fr}-wrapper-in-form-item`]:_t},tt==null?void 0:tt.className,se,be,Ar),It=Fe()({[`${fr}-indeterminate`]:Ee},v.A,Ar),Z=Ee?"mixed":void 0;return yr(Re.createElement(N.Z,{component:"Checkbox",disabled:zt},Re.createElement("label",{className:Ce,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),ue),onMouseEnter:he,onMouseLeave:ve},Re.createElement(ae.Z,Object.assign({"aria-checked":Z},vr,{prefixCls:fr,className:It,disabled:zt,ref:ye})),O!==void 0&&Re.createElement("span",null,O))))};var L=Re.forwardRef(b),z=E(80702),P=E(2738),$=function(q,ye){var _e={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&ye.indexOf(Le)<0&&(_e[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Le=Object.getOwnPropertySymbols(q);se<Le.length;se++)ye.indexOf(Le[se])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[se])&&(_e[Le[se]]=q[Le[se]]);return _e};const J=(q,ye)=>{const{defaultValue:_e,children:Le,options:se=[],prefixCls:be,className:O,rootClassName:Ee,style:ue,onChange:he}=q,ve=$(q,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:F,direction:U}=Re.useContext(K.E_),[ee,de]=Re.useState(ve.value||_e||[]),[Xe,tt]=Re.useState([]);Re.useEffect(()=>{"value"in ve&&de(ve.value||[])},[ve.value]);const nt=Re.useMemo(()=>se.map(x=>typeof x=="string"||typeof x=="number"?{label:x,value:x}:x),[se]),_t=x=>{tt(y=>y.filter(k=>k!==x))},Xt=x=>{tt(y=>[].concat((0,z.Z)(y),[x]))},zt=x=>{const y=ee.indexOf(x.value),k=(0,z.Z)(ee);y===-1?k.push(x.value):k.splice(y,1),"value"in ve||de(k),he==null||he(k.filter(fe=>Xe.includes(fe)).sort((fe,W)=>{const Q=nt.findIndex(Se=>Se.value===fe),re=nt.findIndex(Se=>Se.value===W);return Q-re}))},Ze=F("checkbox",be),fr=`${Ze}-group`,[yr,Ar]=(0,d.ZP)(Ze),vr=(0,P.Z)(ve,["value","disabled"]),Ce=se.length?nt.map(x=>Re.createElement(L,{prefixCls:Ze,key:x.value.toString(),disabled:"disabled"in x?x.disabled:ve.disabled,value:x.value,checked:ee.includes(x.value),onChange:x.onChange,className:`${fr}-item`,style:x.style,title:x.title},x.label)):Le,It={toggleOption:zt,value:ee,disabled:ve.disabled,name:ve.name,registerValue:Xt,cancelValue:_t},Z=Fe()(fr,{[`${fr}-rtl`]:U==="rtl"},O,Ee,Ar);return yr(Re.createElement("div",Object.assign({className:Z,style:ue},vr,{ref:ye}),Re.createElement(l.Provider,{value:It},Ce)))},te=Re.forwardRef(J);var H=Re.memo(te);const G=L;G.Group=H,G.__ANT_CHECKBOX=!0;var ce=G},98447:function(tn,Mt,E){"use strict";E.d(Mt,{C2:function(){return K}});var le=E(17313),Fe=E(37613),ae=E(83116);const Re=g=>{const{checkboxCls:R}=g,T=`${R}-wrapper`;return[{[`${R}-group`]:Object.assign(Object.assign({},(0,le.Wf)(g)),{display:"inline-flex",flexWrap:"wrap",columnGap:g.marginXS,[`> ${g.antCls}-row`]:{flex:1}}),[T]:Object.assign(Object.assign({},(0,le.Wf)(g)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${T}`]:{marginInlineStart:0},[`&${T}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[R]:Object.assign(Object.assign({},(0,le.Wf)(g)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:g.borderRadiusSM,alignSelf:"center",[`${R}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${R}-inner`]:Object.assign({},(0,le.oN)(g))},[`${R}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:g.checkboxSize,height:g.checkboxSize,direction:"ltr",backgroundColor:g.colorBgContainer,border:`${g.lineWidth}px ${g.lineType} ${g.colorBorder}`,borderRadius:g.borderRadiusSM,borderCollapse:"separate",transition:`all ${g.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:g.checkboxSize/14*5,height:g.checkboxSize/14*8,border:`${g.lineWidthBold}px solid ${g.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${g.motionDurationFast} ${g.motionEaseInBack}, opacity ${g.motionDurationFast}`}},"& + span":{paddingInlineStart:g.paddingXS,paddingInlineEnd:g.paddingXS}})},{[`
|
|
|
${T}:not(${T}-disabled),
|
|
|
${R}:not(${R}-disabled)
|
|
|
`]:{[`&:hover ${R}-inner`]:{borderColor:g.colorPrimary}},[`${T}:not(${T}-disabled)`]:{[`&:hover ${R}-checked:not(${R}-disabled) ${R}-inner`]:{backgroundColor:g.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${R}-checked:not(${R}-disabled):after`]:{borderColor:g.colorPrimaryHover}}},{[`${R}-checked`]:{[`${R}-inner`]:{backgroundColor:g.colorPrimary,borderColor:g.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${g.motionDurationMid} ${g.motionEaseOutBack} ${g.motionDurationFast}`}}},[`
|
|
|
${T}-checked:not(${T}-disabled),
|
|
|
${R}-checked:not(${R}-disabled)
|
|
|
`]:{[`&:hover ${R}-inner`]:{backgroundColor:g.colorPrimaryHover,borderColor:"transparent"}}},{[R]:{"&-indeterminate":{[`${R}-inner`]:{backgroundColor:g.colorBgContainer,borderColor:g.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:g.fontSizeLG/2,height:g.fontSizeLG/2,backgroundColor:g.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${T}-disabled`]:{cursor:"not-allowed"},[`${R}-disabled`]:{[`&, ${R}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${R}-inner`]:{background:g.colorBgContainerDisabled,borderColor:g.colorBorder,"&:after":{borderColor:g.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:g.colorTextDisabled},[`&${R}-indeterminate ${R}-inner::after`]:{background:g.colorTextDisabled}}}]};function K(g,R){const T=(0,Fe.TS)(R,{checkboxCls:`.${g}`,checkboxSize:R.controlInteractiveSize});return[Re(T)]}Mt.ZP=(0,ae.Z)("Checkbox",(g,R)=>{let{prefixCls:T}=R;return[K(T,g)]})},93891:function(tn,Mt,E){"use strict";var le=E(59301),Fe=E(36355),ae=E(64165);const Re=K=>{const{componentName:g}=K,{getPrefixCls:R}=(0,le.useContext)(Fe.E_),T=R("empty");switch(g){case"Table":case"List":return le.createElement(ae.Z,{image:ae.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return le.createElement(ae.Z,{image:ae.Z.PRESENTED_IMAGE_SIMPLE,className:`${T}-small`});default:return le.createElement(ae.Z,null)}};Mt.Z=Re},28103:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return v}});var le=E(92310),Fe=E.n(le),ae=E(59301),Re=E(36355),K=E(17313),g=E(83116),R=E(37613);const T=m=>{const{componentCls:b,sizePaddingEdgeHorizontal:I,colorSplit:L,lineWidth:z,textPaddingInline:P,orientationMargin:$,verticalMarginInline:J}=m;return{[b]:Object.assign(Object.assign({},(0,K.Wf)(m)),{borderBlockStart:`${z}px solid ${L}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:J,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${z}px solid ${L}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${m.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${b}-with-text`]:{display:"flex",alignItems:"center",margin:`${m.dividerHorizontalWithTextGutterMargin}px 0`,color:m.colorTextHeading,fontWeight:500,fontSize:m.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${L}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${z}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${b}-with-text-left`]:{"&::before":{width:`${$*100}%`},"&::after":{width:`${100-$*100}%`}},[`&-horizontal${b}-with-text-right`]:{"&::before":{width:`${100-$*100}%`},"&::after":{width:`${$*100}%`}},[`${b}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:P},"&-dashed":{background:"none",borderColor:L,borderStyle:"dashed",borderWidth:`${z}px 0 0`},[`&-horizontal${b}-with-text${b}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${b}-dashed`]:{borderInlineStartWidth:z,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${b}-with-text`]:{color:m.colorText,fontWeight:"normal",fontSize:m.fontSize},[`&-horizontal${b}-with-text-left${b}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${b}-inner-text`]:{paddingInlineStart:I}},[`&-horizontal${b}-with-text-right${b}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${b}-inner-text`]:{paddingInlineEnd:I}}})}};var l=(0,g.Z)("Divider",m=>{const b=(0,R.TS)(m,{dividerHorizontalWithTextGutterMargin:m.margin,dividerHorizontalGutterMargin:m.marginLG,sizePaddingEdgeHorizontal:0});return[T(b)]},m=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:m.marginXS})),d=function(m,b){var I={};for(var L in m)Object.prototype.hasOwnProperty.call(m,L)&&b.indexOf(L)<0&&(I[L]=m[L]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,L=Object.getOwnPropertySymbols(m);z<L.length;z++)b.indexOf(L[z])<0&&Object.prototype.propertyIsEnumerable.call(m,L[z])&&(I[L[z]]=m[L[z]]);return I},v=m=>{const{getPrefixCls:b,direction:I,divider:L}=ae.useContext(Re.E_),{prefixCls:z,type:P="horizontal",orientation:$="center",orientationMargin:J,className:te,rootClassName:H,children:G,dashed:ce,plain:q,style:ye}=m,_e=d(m,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Le=b("divider",z),[se,be]=l(Le),O=$.length>0?`-${$}`:$,Ee=!!G,ue=$==="left"&&J!=null,he=$==="right"&&J!=null,ve=Fe()(Le,L==null?void 0:L.className,be,`${Le}-${P}`,{[`${Le}-with-text`]:Ee,[`${Le}-with-text${O}`]:Ee,[`${Le}-dashed`]:!!ce,[`${Le}-plain`]:!!q,[`${Le}-rtl`]:I==="rtl",[`${Le}-no-default-orientation-margin-left`]:ue,[`${Le}-no-default-orientation-margin-right`]:he},te,H),F=ae.useMemo(()=>typeof J=="number"?J:/^\d+$/.test(J)?Number(J):J,[J]),U=Object.assign(Object.assign({},ue&&{marginLeft:F}),he&&{marginRight:F});return se(ae.createElement("div",Object.assign({className:ve,style:Object.assign(Object.assign({},L==null?void 0:L.style),ye)},_e,{role:"separator"}),G&&P!=="vertical"&&ae.createElement("span",{className:`${Le}-inner-text`,style:U},G)))}},91857:function(tn,Mt,E){"use strict";var le=E(59301),Fe=E(38819),ae=E(92310),Re=E.n(ae),K=E(31561),g=E(70425),R=E(18929),T=E(2738),l=E(79676),d=E(53487),N=E(92343),v=E(36355),m=E(20834),b=E(40875),I=E(88088),L=E(47211);const z=null,P=H=>{const{menu:G,arrow:ce,prefixCls:q,children:ye,trigger:_e,disabled:Le,dropdownRender:se,getPopupContainer:be,overlayClassName:O,rootClassName:Ee,open:ue,onOpenChange:he,visible:ve,onVisibleChange:F,mouseEnterDelay:U=.15,mouseLeaveDelay:ee=.1,autoAdjustOverflow:de=!0,placement:Xe="",overlay:tt,transitionName:nt}=H,{getPopupContainer:_t,getPrefixCls:Xt,direction:zt}=le.useContext(v.E_),Ze=le.useMemo(()=>{const Te=Xt();return nt!==void 0?nt:Xe.includes("top")?`${Te}-slide-down`:`${Te}-slide-up`},[Xt,Xe,nt]),fr=le.useMemo(()=>Xe?Xe.includes("Center")?Xe.slice(0,Xe.indexOf("Center")):Xe:zt==="rtl"?"bottomRight":"bottomLeft",[Xe,zt]),yr=Xt("dropdown",q),[Ar,vr]=(0,L.Z)(yr),[,Ce]=(0,I.Z)(),It=le.Children.only(ye),Z=(0,N.Tm)(It,{className:Re()(`${yr}-trigger`,{[`${yr}-rtl`]:zt==="rtl"},It.props.className),disabled:Le}),x=Le?[]:_e;let y;x&&x.includes("contextMenu")&&(y=!0);const[k,fe]=(0,R.Z)(!1,{value:ue!=null?ue:ve}),W=(0,g.useEvent)(Te=>{he==null||he(Te),F==null||F(Te),fe(Te)}),Q=Re()(O,Ee,vr,{[`${yr}-rtl`]:zt==="rtl"}),re=(0,l.Z)({arrowPointAtCenter:typeof ce=="object"&&ce.pointAtCenter,autoAdjustOverflow:de,offset:Ce.marginXXS,arrowWidth:ce?Ce.sizePopupArrow:0,borderRadius:Ce.borderRadius}),Se=le.useCallback(()=>{fe(!1)},[]),Be=()=>{let Te;return G!=null&&G.items?Te=le.createElement(m.default,Object.assign({},G)):typeof tt=="function"?Te=tt():Te=tt,se&&(Te=se(Te)),Te=le.Children.only(typeof Te=="string"?le.createElement("span",null,Te):Te),le.createElement(b.J,{prefixCls:`${yr}-menu`,expandIcon:le.createElement("span",{className:`${yr}-menu-submenu-arrow`},le.createElement(Fe.Z,{className:`${yr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Se,validator:Ge=>{let{mode:ut}=Ge}},Te)};return Ar(le.createElement(K.Z,Object.assign({alignPoint:y},(0,T.Z)(H,["rootClassName"]),{mouseEnterDelay:U,mouseLeaveDelay:ee,visible:k,builtinPlacements:re,arrow:!!ce,overlayClassName:Q,prefixCls:yr,getPopupContainer:be||_t,transitionName:Ze,trigger:x,overlay:Be,placement:fr,onVisibleChange:W}),Z))};function $(H){return Object.assign(Object.assign({},H),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const J=(0,d.Z)(P,"dropdown",H=>H,$),te=H=>le.createElement(J,Object.assign({},H),le.createElement("span",null));P._InternalPanelDoNotUseOrYouWillBeFired=te,Mt.Z=P},38854:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return I}});var le=E(91857),Fe=E(92310),ae=E.n(Fe),Re=E(59301),K=E(18785),g=E(3113),R=E(36355),T=E(81327),l=E(33234),d=E(47211),N=function(L,z){var P={};for(var $ in L)Object.prototype.hasOwnProperty.call(L,$)&&z.indexOf($)<0&&(P[$]=L[$]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,$=Object.getOwnPropertySymbols(L);J<$.length;J++)z.indexOf($[J])<0&&Object.prototype.propertyIsEnumerable.call(L,$[J])&&(P[$[J]]=L[$[J]]);return P};const v=L=>{const{getPopupContainer:z,getPrefixCls:P,direction:$}=Re.useContext(R.E_),{prefixCls:J,type:te="default",danger:H,disabled:G,loading:ce,onClick:q,htmlType:ye,children:_e,className:Le,menu:se,arrow:be,autoFocus:O,overlay:Ee,trigger:ue,align:he,open:ve,onOpenChange:F,placement:U,getPopupContainer:ee,href:de,icon:Xe=Re.createElement(K.Z,null),title:tt,buttonsRender:nt=Be=>Be,mouseEnterDelay:_t,mouseLeaveDelay:Xt,overlayClassName:zt,overlayStyle:Ze,destroyPopupOnHide:fr,dropdownRender:yr}=L,Ar=N(L,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),vr=P("dropdown",J),Ce=`${vr}-button`,[It,Z]=(0,d.Z)(vr),x={menu:se,arrow:be,autoFocus:O,align:he,disabled:G,trigger:G?[]:ue,onOpenChange:F,getPopupContainer:ee||z,mouseEnterDelay:_t,mouseLeaveDelay:Xt,overlayClassName:zt,overlayStyle:Ze,destroyPopupOnHide:fr,dropdownRender:yr},{compactSize:y,compactItemClassnames:k}=(0,l.ri)(vr,$),fe=ae()(Ce,k,Le,Z);"overlay"in L&&(x.overlay=Ee),"open"in L&&(x.open=ve),"placement"in L?x.placement=U:x.placement=$==="rtl"?"bottomLeft":"bottomRight";const W=Re.createElement(g.ZP,{type:te,danger:H,disabled:G,loading:ce,onClick:q,htmlType:ye,href:de,title:tt},_e),Q=Re.createElement(g.ZP,{type:te,danger:H,icon:Xe}),[re,Se]=nt([W,Q]);return It(Re.createElement(T.Z.Compact,Object.assign({className:fe,size:y,block:!0},Ar),re,Re.createElement(le.Z,Object.assign({},x),Se)))};v.__ANT_BUTTON=!0;var m=v;const b=le.Z;b.Button=m;var I=b},47211:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return N}});var le=E(17313),Fe=E(13826),ae=E(92899),Re=E(29878),K=E(19447),g=E(83116),R=E(37613),l=v=>{const{componentCls:m,menuCls:b,colorError:I,colorTextLightSolid:L}=v,z=`${b}-item`;return{[`${m}, ${m}-menu-submenu`]:{[`${b} ${z}`]:{[`&${z}-danger:not(${z}-disabled)`]:{color:I,"&:hover":{color:L,backgroundColor:I}}}}}};const d=v=>{const{componentCls:m,menuCls:b,zIndexPopup:I,dropdownArrowDistance:L,sizePopupArrow:z,antCls:P,iconCls:$,motionDurationMid:J,dropdownPaddingVertical:te,fontSize:H,dropdownEdgeChildPadding:G,colorTextDisabled:ce,fontSizeIcon:q,controlPaddingHorizontal:ye,colorBgElevated:_e}=v;return[{[m]:Object.assign(Object.assign({},(0,le.Wf)(v)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:I,display:"block","&::before":{position:"absolute",insetBlock:-L+z/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${P}-btn`]:{[`& > ${$}-down, & > ${P}-btn-icon > ${$}-down`]:{fontSize:q}},[`${m}-wrap`]:{position:"relative",[`${P}-btn > ${$}-down`]:{fontSize:q},[`${$}-down::before`]:{transition:`transform ${J}`}},[`${m}-wrap-open`]:{[`${$}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${P}-slide-down-enter${P}-slide-down-enter-active${m}-placement-bottomLeft,
|
|
|
&${P}-slide-down-appear${P}-slide-down-appear-active${m}-placement-bottomLeft,
|
|
|
&${P}-slide-down-enter${P}-slide-down-enter-active${m}-placement-bottom,
|
|
|
&${P}-slide-down-appear${P}-slide-down-appear-active${m}-placement-bottom,
|
|
|
&${P}-slide-down-enter${P}-slide-down-enter-active${m}-placement-bottomRight,
|
|
|
&${P}-slide-down-appear${P}-slide-down-appear-active${m}-placement-bottomRight`]:{animationName:Fe.fJ},[`&${P}-slide-up-enter${P}-slide-up-enter-active${m}-placement-topLeft,
|
|
|
&${P}-slide-up-appear${P}-slide-up-appear-active${m}-placement-topLeft,
|
|
|
&${P}-slide-up-enter${P}-slide-up-enter-active${m}-placement-top,
|
|
|
&${P}-slide-up-appear${P}-slide-up-appear-active${m}-placement-top,
|
|
|
&${P}-slide-up-enter${P}-slide-up-enter-active${m}-placement-topRight,
|
|
|
&${P}-slide-up-appear${P}-slide-up-appear-active${m}-placement-topRight`]:{animationName:Fe.Qt},[`&${P}-slide-down-leave${P}-slide-down-leave-active${m}-placement-bottomLeft,
|
|
|
&${P}-slide-down-leave${P}-slide-down-leave-active${m}-placement-bottom,
|
|
|
&${P}-slide-down-leave${P}-slide-down-leave-active${m}-placement-bottomRight`]:{animationName:Fe.Uw},[`&${P}-slide-up-leave${P}-slide-up-leave-active${m}-placement-topLeft,
|
|
|
&${P}-slide-up-leave${P}-slide-up-leave-active${m}-placement-top,
|
|
|
&${P}-slide-up-leave${P}-slide-up-leave-active${m}-placement-topRight`]:{animationName:Fe.ly}})},(0,K.ZP)(v,{colorBg:_e,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${m} ${b}`]:{position:"relative",margin:0},[`${b}-submenu-popup`]:{position:"absolute",zIndex:I,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${m}, ${m}-menu-submenu`]:{[b]:Object.assign(Object.assign({padding:G,listStyleType:"none",backgroundColor:_e,backgroundClip:"padding-box",borderRadius:v.borderRadiusLG,outline:"none",boxShadow:v.boxShadowSecondary},(0,le.Qy)(v)),{[`${b}-item-group-title`]:{padding:`${te}px ${ye}px`,color:v.colorTextDescription,transition:`all ${J}`},[`${b}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${b}-item-icon`]:{minWidth:H,marginInlineEnd:v.marginXS,fontSize:v.fontSizeSM},[`${b}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${J}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${b}-item, ${b}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${te}px ${ye}px`,color:v.colorText,fontWeight:"normal",fontSize:H,lineHeight:v.lineHeight,cursor:"pointer",transition:`all ${J}`,borderRadius:v.borderRadiusSM,"&:hover, &-active":{backgroundColor:v.controlItemBgHover}},(0,le.Qy)(v)),{"&-selected":{color:v.colorPrimary,backgroundColor:v.controlItemBgActive,"&:hover, &-active":{backgroundColor:v.controlItemBgActiveHover}},"&-disabled":{color:ce,cursor:"not-allowed","&:hover":{color:ce,backgroundColor:_e,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${v.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:v.colorSplit},[`${m}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:v.paddingXS,[`${m}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:v.colorTextDescription,fontSize:q,fontStyle:"normal"}}}),[`${b}-item-group-list`]:{margin:`0 ${v.marginXS}px`,padding:0,listStyle:"none"},[`${b}-submenu-title`]:{paddingInlineEnd:ye+v.fontSizeSM},[`${b}-submenu-vertical`]:{position:"relative"},[`${b}-submenu${b}-submenu-disabled ${m}-menu-submenu-title`]:{[`&, ${m}-menu-submenu-arrow-icon`]:{color:ce,backgroundColor:_e,cursor:"not-allowed"}},[`${b}-submenu-selected ${m}-menu-submenu-title`]:{color:v.colorPrimary}})}},[(0,Fe.oN)(v,"slide-up"),(0,Fe.oN)(v,"slide-down"),(0,ae.Fm)(v,"move-up"),(0,ae.Fm)(v,"move-down"),(0,Re._y)(v,"zoom-big")]]};var N=(0,g.Z)("Dropdown",(v,m)=>{let{rootPrefixCls:b}=m;const{marginXXS:I,sizePopupArrow:L,controlHeight:z,fontSize:P,lineHeight:$,paddingXXS:J,componentCls:te,borderRadiusLG:H}=v,G=(z-P*$)/2,{dropdownArrowOffset:ce}=(0,K.fS)({contentRadius:H}),q=(0,R.TS)(v,{menuCls:`${te}-menu`,rootPrefixCls:b,dropdownArrowDistance:L/2+I,dropdownArrowOffset:ce,dropdownPaddingVertical:G,dropdownEdgeChildPadding:J});return[d(q),l(q)]},v=>({zIndexPopup:v.zIndexPopupBase+50}))},64165:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return J}});var le=E(92310),Fe=E.n(le),ae=E(59301),Re=E(36355),K=E(9763),g=E(64993),R=E(88088),l=()=>{const[,te]=(0,R.Z)(),G=new g.C(te.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ae.createElement("svg",{style:G,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ae.createElement("g",{fill:"none",fillRule:"evenodd"},ae.createElement("g",{transform:"translate(24 31.67)"},ae.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ae.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),ae.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),ae.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),ae.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),ae.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),ae.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ae.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ae.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},N=()=>{const[,te]=(0,R.Z)(),{colorFill:H,colorFillTertiary:G,colorFillQuaternary:ce,colorBgContainer:q}=te,{borderColor:ye,shadowColor:_e,contentColor:Le}=(0,ae.useMemo)(()=>({borderColor:new g.C(H).onBackground(q).toHexShortString(),shadowColor:new g.C(G).onBackground(q).toHexShortString(),contentColor:new g.C(ce).onBackground(q).toHexShortString()}),[H,G,ce,q]);return ae.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ae.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ae.createElement("ellipse",{fill:_e,cx:"32",cy:"33",rx:"32",ry:"7"}),ae.createElement("g",{fillRule:"nonzero",stroke:ye},ae.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),ae.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Le}))))},v=E(83116),m=E(37613);const b=te=>{const{componentCls:H,margin:G,marginXS:ce,marginXL:q,fontSize:ye,lineHeight:_e}=te;return{[H]:{marginInline:ce,fontSize:ye,lineHeight:_e,textAlign:"center",[`${H}-image`]:{height:te.emptyImgHeight,marginBottom:ce,opacity:te.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${H}-description`]:{color:te.colorText},[`${H}-footer`]:{marginTop:G},"&-normal":{marginBlock:q,color:te.colorTextDisabled,[`${H}-description`]:{color:te.colorTextDisabled},[`${H}-image`]:{height:te.emptyImgHeightMD}},"&-small":{marginBlock:ce,color:te.colorTextDisabled,[`${H}-image`]:{height:te.emptyImgHeightSM}}}}};var I=(0,v.Z)("Empty",te=>{const{componentCls:H,controlHeightLG:G}=te,ce=(0,m.TS)(te,{emptyImgCls:`${H}-img`,emptyImgHeight:G*2.5,emptyImgHeightMD:G,emptyImgHeightSM:G*.875});return[b(ce)]}),L=function(te,H){var G={};for(var ce in te)Object.prototype.hasOwnProperty.call(te,ce)&&H.indexOf(ce)<0&&(G[ce]=te[ce]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ce=Object.getOwnPropertySymbols(te);q<ce.length;q++)H.indexOf(ce[q])<0&&Object.prototype.propertyIsEnumerable.call(te,ce[q])&&(G[ce[q]]=te[ce[q]]);return G};const z=ae.createElement(l,null),P=ae.createElement(N,null),$=te=>{var{className:H,rootClassName:G,prefixCls:ce,image:q=z,description:ye,children:_e,imageStyle:Le,style:se}=te,be=L(te,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:O,direction:Ee,empty:ue}=ae.useContext(Re.E_),he=O("empty",ce),[ve,F]=I(he),[U]=(0,K.Z)("Empty"),ee=typeof ye!="undefined"?ye:U==null?void 0:U.description,de=typeof ee=="string"?ee:"empty";let Xe=null;return typeof q=="string"?Xe=ae.createElement("img",{alt:de,src:q}):Xe=q,ve(ae.createElement("div",Object.assign({className:Fe()(F,he,ue==null?void 0:ue.className,{[`${he}-normal`]:q===P,[`${he}-rtl`]:Ee==="rtl"},H,G),style:Object.assign(Object.assign({},ue==null?void 0:ue.style),se)},be),ae.createElement("div",{className:`${he}-image`,style:Le},Xe),ee&&ae.createElement("div",{className:`${he}-description`},ee),_e&&ae.createElement("div",{className:`${he}-footer`},_e)))};$.PRESENTED_IMAGE_DEFAULT=z,$.PRESENTED_IMAGE_SIMPLE=P;var J=$},78241:function(tn,Mt,E){"use strict";E.d(Mt,{default:function(){return Dn}});var le=E(80702),Fe=E(92310),ae=E.n(Fe),Re=E(77900),K=E(59301),g=E(62892),R=E(32441);function T(Ut){const[Dr,Pr]=K.useState(Ut);return K.useEffect(()=>{const St=setTimeout(()=>{Pr(Ut)},Ut.length?0:10);return()=>{clearTimeout(St)}},[Ut]),Dr}var l=E(17313),d=E(29878),N=E(8378),v=E(37613),m=E(83116),I=Ut=>{const{componentCls:Dr}=Ut,Pr=`${Dr}-show-help`,St=`${Dr}-show-help-item`;return{[Pr]:{transition:`opacity ${Ut.motionDurationSlow} ${Ut.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[St]:{overflow:"hidden",transition:`height ${Ut.motionDurationSlow} ${Ut.motionEaseInOut},
|
|
|
opacity ${Ut.motionDurationSlow} ${Ut.motionEaseInOut},
|
|
|
transform ${Ut.motionDurationSlow} ${Ut.motionEaseInOut} !important`,[`&${St}-appear, &${St}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${St}-leave-active`]:{transform:"translateY(-5px)"}}}}};const L=Ut=>({legend:{display:"block",width:"100%",marginBottom:Ut.marginLG,padding:0,color:Ut.colorTextDescription,fontSize:Ut.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ut.lineWidth}px ${Ut.lineType} ${Ut.colorBorder}`},label:{fontSize:Ut.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ut.controlOutlineWidth}px ${Ut.controlOutline}`},output:{display:"block",paddingTop:15,color:Ut.colorText,fontSize:Ut.fontSize,lineHeight:Ut.lineHeight}}),z=(Ut,Dr)=>{const{formItemCls:Pr}=Ut;return{[Pr]:{[`${Pr}-label > label`]:{height:Dr},[`${Pr}-control-input`]:{minHeight:Dr}}}},P=Ut=>{const{componentCls:Dr}=Ut;return{[Ut.componentCls]:Object.assign(Object.assign(Object.assign({},(0,l.Wf)(Ut)),L(Ut)),{[`${Dr}-text`]:{display:"inline-block",paddingInlineEnd:Ut.paddingSM},"&-small":Object.assign({},z(Ut,Ut.controlHeightSM)),"&-large":Object.assign({},z(Ut,Ut.controlHeightLG))})}},$=Ut=>{const{formItemCls:Dr,iconCls:Pr,componentCls:St,rootPrefixCls:mt,labelRequiredMarkColor:mr,labelColor:xr,labelFontSize:on,labelHeight:kr,labelColonMarginInlineStart:un,labelColonMarginInlineEnd:nn,itemMarginBottom:_n}=Ut;return{[Dr]:Object.assign(Object.assign({},(0,l.Wf)(Ut)),{marginBottom:_n,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${mt}-row`]:{display:"none"},"&-has-warning":{[`${Dr}-split`]:{color:Ut.colorError}},"&-has-error":{[`${Dr}-split`]:{color:Ut.colorWarning}},[`${Dr}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ut.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:kr,color:xr,fontSize:on,[`> ${Pr}`]:{fontSize:Ut.fontSize,verticalAlign:"top"},[`&${Dr}-required:not(${Dr}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ut.marginXXS,color:mr,fontSize:Ut.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${St}-hide-required-mark &`]:{display:"none"}},[`${Dr}-optional`]:{display:"inline-block",marginInlineStart:Ut.marginXXS,color:Ut.colorTextDescription,[`${St}-hide-required-mark &`]:{display:"none"}},[`${Dr}-tooltip`]:{color:Ut.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ut.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:un,marginInlineEnd:nn},[`&${Dr}-no-colon::after`]:{content:'"\\a0"'}}},[`${Dr}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${mt}-col-'"]):not([class*="' ${mt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ut.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Dr]:{"&-explain, &-extra":{clear:"both",color:Ut.colorTextDescription,fontSize:Ut.fontSize,lineHeight:Ut.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ut.controlHeightSM,transition:`color ${Ut.motionDurationMid} ${Ut.motionEaseOut}`},"&-explain":{"&-error":{color:Ut.colorError},"&-warning":{color:Ut.colorWarning}}},[`&-with-help ${Dr}-explain`]:{height:"auto",opacity:1},[`${Dr}-feedback-icon`]:{fontSize:Ut.fontSize,textAlign:"center",visibility:"visible",animationName:d.kr,animationDuration:Ut.motionDurationMid,animationTimingFunction:Ut.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ut.colorSuccess},"&-error":{color:Ut.colorError},"&-warning":{color:Ut.colorWarning},"&-validating":{color:Ut.colorPrimary}}})}},J=Ut=>{const{componentCls:Dr,formItemCls:Pr}=Ut;return{[`${Dr}-horizontal`]:{[`${Pr}-label`]:{flexGrow:0},[`${Pr}-control`]:{flex:"1 1 0",minWidth:0},[`${Pr}-label[class$='-24'], ${Pr}-label[class*='-24 ']`]:{[`& + ${Pr}-control`]:{minWidth:"unset"}}}}},te=Ut=>{const{componentCls:Dr,formItemCls:Pr}=Ut;return{[`${Dr}-inline`]:{display:"flex",flexWrap:"wrap",[Pr]:{flex:"none",marginInlineEnd:Ut.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Pr}-label,
|
|
|
> ${Pr}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Pr}-label`]:{flex:"none"},[`${Dr}-text`]:{display:"inline-block"},[`${Pr}-has-feedback`]:{display:"inline-block"}}}}},H=Ut=>({padding:Ut.verticalLabelPadding,margin:Ut.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),G=Ut=>{const{componentCls:Dr,formItemCls:Pr,rootPrefixCls:St}=Ut;return{[`${Pr} ${Pr}-label`]:H(Ut),[Dr]:{[Pr]:{flexWrap:"wrap",[`${Pr}-label, ${Pr}-control`]:{[`&:not([class*=" ${St}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ce=Ut=>{const{componentCls:Dr,formItemCls:Pr,rootPrefixCls:St}=Ut;return{[`${Dr}-vertical`]:{[Pr]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Dr}-item-control`]:{width:"100%"}}},[`${Dr}-vertical ${Pr}-label,
|
|
|
.${St}-col-24${Pr}-label,
|
|
|
.${St}-col-xl-24${Pr}-label`]:H(Ut),[`@media (max-width: ${Ut.screenXSMax}px)`]:[G(Ut),{[Dr]:{[`.${St}-col-xs-24${Pr}-label`]:H(Ut)}}],[`@media (max-width: ${Ut.screenSMMax}px)`]:{[Dr]:{[`.${St}-col-sm-24${Pr}-label`]:H(Ut)}},[`@media (max-width: ${Ut.screenMDMax}px)`]:{[Dr]:{[`.${St}-col-md-24${Pr}-label`]:H(Ut)}},[`@media (max-width: ${Ut.screenLGMax}px)`]:{[Dr]:{[`.${St}-col-lg-24${Pr}-label`]:H(Ut)}}}},q=(Ut,Dr)=>(0,v.TS)(Ut,{formItemCls:`${Ut.componentCls}-item`,rootPrefixCls:Dr});var ye=(0,m.Z)("Form",(Ut,Dr)=>{let{rootPrefixCls:Pr}=Dr;const St=q(Ut,Pr);return[P(St),$(St),I(St),J(St),te(St),ce(St),(0,N.Z)(St),d.kr]},Ut=>({labelRequiredMarkColor:Ut.colorError,labelColor:Ut.colorTextHeading,labelFontSize:Ut.fontSize,labelHeight:Ut.controlHeight,labelColonMarginInlineStart:Ut.marginXXS/2,labelColonMarginInlineEnd:Ut.marginXS,itemMarginBottom:Ut.marginLG,verticalLabelPadding:`0 0 ${Ut.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const _e=[];function Le(Ut,Dr,Pr){let St=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ut=="string"?Ut:`${Dr}-${St}`,error:Ut,errorStatus:Pr}}var be=Ut=>{let{help:Dr,helpStatus:Pr,errors:St=_e,warnings:mt=_e,className:mr,fieldId:xr,onVisibleChanged:on}=Ut;const{prefixCls:kr}=K.useContext(R.Rk),un=`${kr}-item-explain`,[,nn]=ye(kr),_n=(0,K.useMemo)(()=>(0,g.Z)(kr),[kr]),Un=T(St),vn=T(mt),Hr=K.useMemo(()=>Dr!=null?[Le(Dr,"help",Pr)]:[].concat((0,le.Z)(Un.map((qr,bn)=>Le(qr,"error","error",bn))),(0,le.Z)(vn.map((qr,bn)=>Le(qr,"warning","warning",bn)))),[Dr,Pr,Un,vn]),Kr={};return xr&&(Kr.id=`${xr}_help`),K.createElement(Re.default,{motionDeadline:_n.motionDeadline,motionName:`${kr}-show-help`,visible:!!Hr.length,onVisibleChanged:on},qr=>{const{className:bn,style:ln}=qr;return K.createElement("div",Object.assign({},Kr,{className:ae()(un,bn,mr,nn),style:ln,role:"alert"}),K.createElement(Re.CSSMotionList,Object.assign({keys:Hr},(0,g.Z)(kr),{motionName:`${kr}-show-help-item`,component:!1}),ui=>{const{key:jn,error:cn,errorStatus:sr,className:cr,style:pr}=ui;return K.createElement("div",{key:jn,className:ae()(cr,{[`${un}-${sr}`]:sr}),style:pr},cn)}))})},O=E(95013),Ee=E(36355),ue=E(1684),he=E(52946),ve=E(19716),F=E(16722);const U=["parentNode"],ee="form_item";function de(Ut){return Ut===void 0||Ut===!1?[]:Array.isArray(Ut)?Ut:[Ut]}function Xe(Ut,Dr){if(!Ut.length)return;const Pr=Ut.join("_");return Dr?`${Dr}_${Pr}`:U.includes(Pr)?`${ee}_${Pr}`:Pr}function tt(Ut,Dr,Pr,St,mt,mr){let xr=St;return mr!==void 0?xr=mr:Pr.validating?xr="validating":Ut.length?xr="error":Dr.length?xr="warning":(Pr.touched||mt&&Pr.validated)&&(xr="success"),xr}function nt(Ut){return de(Ut).join("_")}function _t(Ut){const[Dr]=(0,O.useForm)(),Pr=K.useRef({}),St=K.useMemo(()=>Ut!=null?Ut:Object.assign(Object.assign({},Dr),{__INTERNAL__:{itemRef:mt=>mr=>{const xr=nt(mt);mr?Pr.current[xr]=mr:delete Pr.current[xr]}},scrollToField:function(mt){let mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const xr=de(mt),on=Xe(xr,St.__INTERNAL__.name),kr=on?document.getElementById(on):null;kr&&(0,F.Z)(kr,Object.assign({scrollMode:"if-needed",block:"nearest"},mr))},getFieldInstance:mt=>{const mr=nt(mt);return Pr.current[mr]}}),[Ut,Dr]);return[St]}var Xt=E(28726),zt=function(Ut,Dr){var Pr={};for(var St in Ut)Object.prototype.hasOwnProperty.call(Ut,St)&&Dr.indexOf(St)<0&&(Pr[St]=Ut[St]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,St=Object.getOwnPropertySymbols(Ut);mt<St.length;mt++)Dr.indexOf(St[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ut,St[mt])&&(Pr[St[mt]]=Ut[St[mt]]);return Pr};const Ze=(Ut,Dr)=>{const Pr=K.useContext(ue.Z),{getPrefixCls:St,direction:mt,form:mr}=K.useContext(Ee.E_),{prefixCls:xr,className:on,rootClassName:kr,size:un,disabled:nn=Pr,form:_n,colon:Un,labelAlign:vn,labelWrap:Hr,labelCol:Kr,wrapperCol:qr,hideRequiredMark:bn,layout:ln="horizontal",scrollToFirstError:ui,requiredMark:jn,onFinishFailed:cn,name:sr,style:cr,feedbackIcons:pr}=Ut,Fr=zt(Ut,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Br=(0,ve.Z)(un),fn=K.useContext(Xt.Z),Nr=(0,K.useMemo)(()=>jn!==void 0?jn:mr&&mr.requiredMark!==void 0?mr.requiredMark:!bn,[bn,jn,mr]),Cn=Un!=null?Un:mr==null?void 0:mr.colon,Rn=St("form",xr),[Kn,Ai]=ye(Rn),ni=ae()(Rn,`${Rn}-${ln}`,{[`${Rn}-hide-required-mark`]:Nr===!1,[`${Rn}-rtl`]:mt==="rtl",[`${Rn}-${Br}`]:Br},Ai,mr==null?void 0:mr.className,on,kr),[mi]=_t(_n),{__INTERNAL__:hr}=mi;hr.name=sr;const an=(0,K.useMemo)(()=>({name:sr,labelAlign:vn,labelCol:Kr,labelWrap:Hr,wrapperCol:qr,vertical:ln==="vertical",colon:Cn,requiredMark:Nr,itemRef:hr.itemRef,form:mi,feedbackIcons:pr}),[sr,vn,Kr,qr,ln,Cn,Nr,mi,pr]);K.useImperativeHandle(Dr,()=>mi);const Xr=(zn,Hn)=>{if(zn){let Xn={block:"nearest"};typeof zn=="object"&&(Xn=zn),mi.scrollToField(Hn,Xn)}},ri=zn=>{if(cn==null||cn(zn),zn.errorFields.length){const Hn=zn.errorFields[0].name;if(ui!==void 0){Xr(ui,Hn);return}mr&&mr.scrollToFirstError!==void 0&&Xr(mr.scrollToFirstError,Hn)}};return Kn(K.createElement(ue.n,{disabled:nn},K.createElement(he.q,{size:Br},K.createElement(R.RV,Object.assign({},{validateMessages:fn}),K.createElement(R.q3.Provider,{value:an},K.createElement(O.default,Object.assign({id:sr},Fr,{name:sr,onFinishFailed:ri,form:mi,style:Object.assign(Object.assign({},mr==null?void 0:mr.style),cr),className:ni})))))))};var yr=K.forwardRef(Ze),Ar=E(41799),vr=E(8654),Ce=E(92343),It=E(11592);function Z(Ut){if(typeof Ut=="function")return Ut;const Dr=(0,It.Z)(Ut);return Dr.length<=1?Dr[0]:Dr}const x=()=>{const{status:Ut,errors:Dr=[],warnings:Pr=[]}=(0,K.useContext)(R.aM);return{status:Ut,errors:Dr,warnings:Pr}};x.Context=R.aM;var y=x,k=E(16089);function fe(Ut){const[Dr,Pr]=K.useState(Ut),St=(0,K.useRef)(null),mt=(0,K.useRef)([]),mr=(0,K.useRef)(!1);K.useEffect(()=>(mr.current=!1,()=>{mr.current=!0,k.Z.cancel(St.current),St.current=null}),[]);function xr(on){mr.current||(St.current===null&&(mt.current=[],St.current=(0,k.Z)(()=>{St.current=null,Pr(kr=>{let un=kr;return mt.current.forEach(nn=>{un=nn(un)}),un})})),mt.current.push(on))}return[Dr,xr]}function W(){const{itemRef:Ut}=K.useContext(R.q3),Dr=K.useRef({});function Pr(St,mt){const mr=mt&&typeof mt=="object"&&mt.ref,xr=St.join("_");return(Dr.current.name!==xr||Dr.current.originRef!==mr)&&(Dr.current.name=xr,Dr.current.originRef=mr,Dr.current.ref=(0,vr.sQ)(Ut(St),mr)),Dr.current.ref}return Pr}var Q=E(29194),re=E(34280),Se=E(2738),Be=E(27382),Te=E(37028);const Ge=Ut=>{const{formItemCls:Dr}=Ut;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Dr}-control`]:{display:"flex"}}}};var ut=(0,m.b)(["Form","item-item"],(Ut,Dr)=>{let{rootPrefixCls:Pr}=Dr;const St=q(Ut,Pr);return[Ge(St)]}),Je=Ut=>{const{prefixCls:Dr,status:Pr,wrapperCol:St,children:mt,errors:mr,warnings:xr,_internalItemRender:on,extra:kr,help:un,fieldId:nn,marginBottom:_n,onErrorVisibleChanged:Un}=Ut,vn=`${Dr}-item`,Hr=K.useContext(R.q3),Kr=St||Hr.wrapperCol||{},qr=ae()(`${vn}-control`,Kr.className),bn=K.useMemo(()=>Object.assign({},Hr),[Hr]);delete bn.labelCol,delete bn.wrapperCol;const ln=K.createElement("div",{className:`${vn}-control-input`},K.createElement("div",{className:`${vn}-control-input-content`},mt)),ui=K.useMemo(()=>({prefixCls:Dr,status:Pr}),[Dr,Pr]),jn=_n!==null||mr.length||xr.length?K.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},K.createElement(R.Rk.Provider,{value:ui},K.createElement(be,{fieldId:nn,errors:mr,warnings:xr,help:un,helpStatus:Pr,className:`${vn}-explain-connected`,onVisibleChanged:Un})),!!_n&&K.createElement("div",{style:{width:0,height:_n}})):null,cn={};nn&&(cn.id=`${nn}_extra`);const sr=kr?K.createElement("div",Object.assign({},cn,{className:`${vn}-extra`}),kr):null,cr=on&&on.mark==="pro_table_render"&&on.render?on.render(Ut,{input:ln,errorList:jn,extra:sr}):K.createElement(K.Fragment,null,ln,jn,sr);return K.createElement(R.q3.Provider,{value:bn},K.createElement(Te.Z,Object.assign({},Kr,{className:qr}),cr),K.createElement(ut,{prefixCls:Dr}))},At=E(61485),ze=E(31724),He=E(9763),vt=E(6848),jt=function(Ut,Dr){var Pr={};for(var St in Ut)Object.prototype.hasOwnProperty.call(Ut,St)&&Dr.indexOf(St)<0&&(Pr[St]=Ut[St]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,St=Object.getOwnPropertySymbols(Ut);mt<St.length;mt++)Dr.indexOf(St[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ut,St[mt])&&(Pr[St[mt]]=Ut[St[mt]]);return Pr};function Dt(Ut){return Ut?typeof Ut=="object"&&!K.isValidElement(Ut)?Ut:{title:Ut}:null}var gr=Ut=>{let{prefixCls:Dr,label:Pr,htmlFor:St,labelCol:mt,labelAlign:mr,colon:xr,required:on,requiredMark:kr,tooltip:un}=Ut;var nn;const[_n]=(0,He.Z)("Form"),{vertical:Un,labelAlign:vn,labelCol:Hr,labelWrap:Kr,colon:qr}=K.useContext(R.q3);if(!Pr)return null;const bn=mt||Hr||{},ln=mr||vn,ui=`${Dr}-item-label`,jn=ae()(ui,ln==="left"&&`${ui}-left`,bn.className,{[`${ui}-wrap`]:!!Kr});let cn=Pr;const sr=xr===!0||qr!==!1&&xr!==!1;sr&&!Un&&typeof Pr=="string"&&Pr.trim()!==""&&(cn=Pr.replace(/[:|:]\s*$/,""));const pr=Dt(un);if(pr){const{icon:Nr=K.createElement(At.Z,null)}=pr,Cn=jt(pr,["icon"]),Rn=K.createElement(vt.Z,Object.assign({},Cn),K.cloneElement(Nr,{className:`${Dr}-item-tooltip`,title:""}));cn=K.createElement(K.Fragment,null,cn,Rn)}const Fr=kr==="optional",Br=typeof kr=="function";Br?cn=kr(cn,{required:!!on}):Fr&&!on&&(cn=K.createElement(K.Fragment,null,cn,K.createElement("span",{className:`${Dr}-item-optional`,title:""},(_n==null?void 0:_n.optional)||((nn=ze.Z.Form)===null||nn===void 0?void 0:nn.optional))));const fn=ae()({[`${Dr}-item-required`]:on,[`${Dr}-item-required-mark-optional`]:Fr||Br,[`${Dr}-item-no-colon`]:!sr});return K.createElement(Te.Z,Object.assign({},bn,{className:jn}),K.createElement("label",{htmlFor:St,className:fn,title:typeof Pr=="string"?Pr:""},cn))},ne=E(29679),we=E(19248),Vt=E(96512),Ue=E(58617);const it={success:ne.Z,warning:Vt.Z,error:we.Z,validating:Ue.Z};function Rr(Ut){let{children:Dr,errors:Pr,warnings:St,hasFeedback:mt,validateStatus:mr,prefixCls:xr,meta:on,noStyle:kr}=Ut;const un=`${xr}-item`,{feedbackIcons:nn}=K.useContext(R.q3),_n=tt(Pr,St,on,null,!!mt,mr),{isFormItemInput:Un,status:vn}=K.useContext(R.aM),Hr=K.useMemo(()=>{var Kr;let qr;if(mt){const ui=mt!==!0&&mt.icons||nn,jn=_n&&((Kr=ui==null?void 0:ui({status:_n,errors:Pr,warnings:St}))===null||Kr===void 0?void 0:Kr[_n]),cn=_n&&it[_n];qr=jn!==!1&&cn?K.createElement("span",{className:ae()(`${un}-feedback-icon`,`${un}-feedback-icon-${_n}`)},jn||K.createElement(cn,null)):null}let bn=!0,ln=_n||"";return kr&&(bn=Un,ln=(_n!=null?_n:vn)||""),{status:ln,errors:Pr,warnings:St,hasFeedback:!!mt,feedbackIcon:qr,isFormItemInput:bn}},[_n,mt,kr,Un,vn]);return K.createElement(R.aM.Provider,{value:Hr},Dr)}var Tt=function(Ut,Dr){var Pr={};for(var St in Ut)Object.prototype.hasOwnProperty.call(Ut,St)&&Dr.indexOf(St)<0&&(Pr[St]=Ut[St]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,St=Object.getOwnPropertySymbols(Ut);mt<St.length;mt++)Dr.indexOf(St[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ut,St[mt])&&(Pr[St[mt]]=Ut[St[mt]]);return Pr};function Rt(Ut){const{prefixCls:Dr,className:Pr,rootClassName:St,style:mt,help:mr,errors:xr,warnings:on,validateStatus:kr,meta:un,hasFeedback:nn,hidden:_n,children:Un,fieldId:vn,required:Hr,isRequired:Kr,onSubItemMetaChange:qr}=Ut,bn=Tt(Ut,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),ln=`${Dr}-item`,{requiredMark:ui}=K.useContext(R.q3),jn=K.useRef(null),cn=T(xr),sr=T(on),cr=mr!=null,pr=!!(cr||xr.length||on.length),Fr=!!jn.current&&(0,Q.Z)(jn.current),[Br,fn]=K.useState(null);(0,re.Z)(()=>{if(pr&&jn.current){const Ai=getComputedStyle(jn.current);fn(parseInt(Ai.marginBottom,10))}},[pr,Fr]);const Nr=Ai=>{Ai||fn(null)},Rn=function(){let Ai=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ni=Ai?cn:un.errors,mi=Ai?sr:un.warnings;return tt(ni,mi,un,"",!!nn,kr)}(),Kn=ae()(ln,Pr,St,{[`${ln}-with-help`]:cr||cn.length||sr.length,[`${ln}-has-feedback`]:Rn&&nn,[`${ln}-has-success`]:Rn==="success",[`${ln}-has-warning`]:Rn==="warning",[`${ln}-has-error`]:Rn==="error",[`${ln}-is-validating`]:Rn==="validating",[`${ln}-hidden`]:_n});return K.createElement("div",{className:Kn,style:mt,ref:jn},K.createElement(Be.Z,Object.assign({className:`${ln}-row`},(0,Se.Z)(bn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),K.createElement(gr,Object.assign({htmlFor:vn},Ut,{requiredMark:ui,required:Hr!=null?Hr:Kr,prefixCls:Dr})),K.createElement(Je,Object.assign({},Ut,un,{errors:cn,warnings:sr,prefixCls:Dr,status:Rn,help:mr,marginBottom:Br,onErrorVisibleChanged:Nr}),K.createElement(R.qI.Provider,{value:qr},K.createElement(Rr,{prefixCls:Dr,meta:un,errors:un.errors,warnings:un.warnings,hasFeedback:nn,validateStatus:Rn},Un)))),!!Br&&K.createElement("div",{className:`${ln}-margin-offset`,style:{marginBottom:-Br}}))}const $t="__SPLIT__",qe=null,pt=K.memo(Ut=>{let{children:Dr}=Ut;return Dr},(Ut,Dr)=>Ut.value===Dr.value&&Ut.update===Dr.update&&Ut.childProps.length===Dr.childProps.length&&Ut.childProps.every((Pr,St)=>Pr===Dr.childProps[St]));function rt(Ut){return Ut!=null}function Ht(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Oe(Ut){const{name:Dr,noStyle:Pr,className:St,dependencies:mt,prefixCls:mr,shouldUpdate:xr,rules:on,children:kr,required:un,label:nn,messageVariables:_n,trigger:Un="onChange",validateTrigger:vn,hidden:Hr,help:Kr}=Ut,{getPrefixCls:qr}=K.useContext(Ee.E_),{name:bn}=K.useContext(R.q3),ln=Z(kr),ui=typeof ln=="function",jn=K.useContext(R.qI),{validateTrigger:cn}=K.useContext(O.FieldContext),sr=vn!==void 0?vn:cn,cr=rt(Dr),pr=qr("form",mr),[Fr,Br]=ye(pr),fn=K.useContext(O.ListContext),Nr=K.useRef(),[Cn,Rn]=fe({}),[Kn,Ai]=(0,Ar.Z)(()=>Ht()),ni=Hn=>{const Xn=fn==null?void 0:fn.getKey(Hn.name);if(Ai(Hn.destroy?Ht():Hn,!0),Pr&&Kr!==!1&&jn){let di=Hn.name;if(Hn.destroy)di=Nr.current||di;else if(Xn!==void 0){const[si,_i]=Xn;di=[si].concat((0,le.Z)(_i)),Nr.current=di}jn(Hn,di)}},mi=(Hn,Xn)=>{Rn(di=>{const si=Object.assign({},di),ji=[].concat((0,le.Z)(Hn.name.slice(0,-1)),(0,le.Z)(Xn)).join($t);return Hn.destroy?delete si[ji]:si[ji]=Hn,si})},[hr,an]=K.useMemo(()=>{const Hn=(0,le.Z)(Kn.errors),Xn=(0,le.Z)(Kn.warnings);return Object.values(Cn).forEach(di=>{Hn.push.apply(Hn,(0,le.Z)(di.errors||[])),Xn.push.apply(Xn,(0,le.Z)(di.warnings||[]))}),[Hn,Xn]},[Cn,Kn.errors,Kn.warnings]),Xr=W();function ri(Hn,Xn,di){return Pr&&!Hr?K.createElement(Rr,{prefixCls:pr,hasFeedback:Ut.hasFeedback,validateStatus:Ut.validateStatus,meta:Kn,errors:hr,warnings:an,noStyle:!0},Hn):K.createElement(Rt,Object.assign({key:"row"},Ut,{className:ae()(St,Br),prefixCls:pr,fieldId:Xn,isRequired:di,errors:hr,warnings:an,meta:Kn,onSubItemMetaChange:mi}),Hn)}if(!cr&&!ui&&!mt)return Fr(ri(ln));let zn={};return typeof nn=="string"?zn.label=nn:Dr&&(zn.label=String(Dr)),_n&&(zn=Object.assign(Object.assign({},zn),_n)),Fr(K.createElement(O.Field,Object.assign({},Ut,{messageVariables:zn,trigger:Un,validateTrigger:sr,onMetaChange:ni}),(Hn,Xn,di)=>{const si=de(Dr).length&&Xn?Xn.name:[],_i=Xe(si,bn),ji=un!==void 0?un:!!(on&&on.some(Yt=>{if(Yt&&typeof Yt=="object"&&Yt.required&&!Yt.warningOnly)return!0;if(typeof Yt=="function"){const hn=Yt(di);return hn&&hn.required&&!hn.warningOnly}return!1})),ii=Object.assign({},Hn);let yn=null;if(Array.isArray(ln)&&cr)yn=ln;else if(!(ui&&(!(xr||mt)||cr))){if(!(mt&&!ui&&!cr))if((0,Ce.l$)(ln)){const Yt=Object.assign(Object.assign({},ln.props),ii);if(Yt.id||(Yt.id=_i),Kr||hr.length>0||an.length>0||Ut.extra){const $n=[];(Kr||hr.length>0)&&$n.push(`${_i}_help`),Ut.extra&&$n.push(`${_i}_extra`),Yt["aria-describedby"]=$n.join(" ")}hr.length>0&&(Yt["aria-invalid"]="true"),ji&&(Yt["aria-required"]="true"),(0,vr.Yr)(ln)&&(Yt.ref=Xr(si,ln)),new Set([].concat((0,le.Z)(de(Un)),(0,le.Z)(de(sr)))).forEach($n=>{Yt[$n]=function(){for(var bi,Hi,rs,Ci,is,ai=arguments.length,Zn=new Array(ai),Li=0;Li<ai;Li++)Zn[Li]=arguments[Li];(rs=ii[$n])===null||rs===void 0||(bi=rs).call.apply(bi,[ii].concat(Zn)),(is=(Ci=ln.props)[$n])===null||is===void 0||(Hi=is).call.apply(Hi,[Ci].concat(Zn))}});const Fn=[Yt["aria-required"],Yt["aria-invalid"],Yt["aria-describedby"]];yn=K.createElement(pt,{value:ii[Ut.valuePropName||"value"],update:ln,childProps:Fn},(0,Ce.Tm)(ln,Yt))}else ui&&(xr||mt)&&!cr?yn=ln(di):yn=ln}return ri(yn,_i,ji)}))}const $r=Oe;$r.useStatus=y;var Bt=$r,gn=function(Ut,Dr){var Pr={};for(var St in Ut)Object.prototype.hasOwnProperty.call(Ut,St)&&Dr.indexOf(St)<0&&(Pr[St]=Ut[St]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,St=Object.getOwnPropertySymbols(Ut);mt<St.length;mt++)Dr.indexOf(St[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ut,St[mt])&&(Pr[St[mt]]=Ut[St[mt]]);return Pr},hi=Ut=>{var{prefixCls:Dr,children:Pr}=Ut,St=gn(Ut,["prefixCls","children"]);const{getPrefixCls:mt}=K.useContext(Ee.E_),mr=mt("form",Dr),xr=K.useMemo(()=>({prefixCls:mr,status:"error"}),[mr]);return K.createElement(O.List,Object.assign({},St),(on,kr,un)=>K.createElement(R.Rk.Provider,{value:xr},Pr(on.map(nn=>Object.assign(Object.assign({},nn),{fieldKey:nn.key})),kr,{errors:un.errors,warnings:un.warnings})))};function ti(){const{form:Ut}=(0,K.useContext)(R.q3);return Ut}const En=yr;En.Item=Bt,En.List=hi,En.ErrorList=be,En.useForm=_t,En.useFormInstance=ti,En.useWatch=O.useWatch,En.Provider=R.RV,En.create=()=>{};var Dn=En},8628:function(tn,Mt,E){"use strict";var le=E(59301),Fe=E(34280),ae=E(56762),Re=E(69507);function K(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const R=(0,le.useRef)({}),T=(0,ae.Z)(),l=(0,Re.ZP)();return(0,Fe.Z)(()=>{const d=l.subscribe(N=>{R.current=N,g&&T()});return()=>l.unsubscribe(d)},[]),R.current}Mt.Z=K},5871:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return At}});var le=E(84105),Fe=E(87395),ae=E(92310),Re=E.n(ae),K=E(72308),g=E(49618),R=E(62853),T=E(52487),l=E(74416),d=E(96949),N=E(55090);function v(){return typeof BigInt=="function"}function m(ze){return!ze&&ze!==0&&!Number.isNaN(ze)||!String(ze).trim()}function b(ze){var He=ze.trim(),vt=He.startsWith("-");vt&&(He=He.slice(1)),He=He.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),He.startsWith(".")&&(He="0".concat(He));var jt=He||"0",Dt=jt.split("."),lr=Dt[0]||"0",gr=Dt[1]||"0";lr==="0"&&gr==="0"&&(vt=!1);var ne=vt?"-":"";return{negative:vt,negativeStr:ne,trimStr:jt,integerStr:lr,decimalStr:gr,fullStr:"".concat(ne).concat(jt)}}function I(ze){var He=String(ze);return!Number.isNaN(Number(He))&&He.includes("e")}function L(ze){var He=String(ze);if(I(ze)){var vt=Number(He.slice(He.indexOf("e-")+2)),jt=He.match(/\.(\d+)/);return jt!=null&&jt[1]&&(vt+=jt[1].length),vt}return He.includes(".")&&P(He)?He.length-He.indexOf(".")-1:0}function z(ze){var He=String(ze);if(I(ze)){if(ze>Number.MAX_SAFE_INTEGER)return String(v()?BigInt(ze).toString():Number.MAX_SAFE_INTEGER);if(ze<Number.MIN_SAFE_INTEGER)return String(v()?BigInt(ze).toString():Number.MIN_SAFE_INTEGER);He=ze.toFixed(L(He))}return b(He).fullStr}function P(ze){return typeof ze=="number"?!Number.isNaN(ze):ze?/^\s*-?\d+(\.\d+)?\s*$/.test(ze)||/^\s*-?\d+\.\s*$/.test(ze)||/^\s*-?\.\d+\s*$/.test(ze):!1}var $=function(){function ze(He){if((0,d.Z)(this,ze),(0,g.Z)(this,"origin",""),(0,g.Z)(this,"negative",void 0),(0,g.Z)(this,"integer",void 0),(0,g.Z)(this,"decimal",void 0),(0,g.Z)(this,"decimalLen",void 0),(0,g.Z)(this,"empty",void 0),(0,g.Z)(this,"nan",void 0),m(He)){this.empty=!0;return}if(this.origin=String(He),He==="-"||Number.isNaN(He)){this.nan=!0;return}var vt=He;if(I(vt)&&(vt=Number(vt)),vt=typeof vt=="string"?vt:z(vt),P(vt)){var jt=b(vt);this.negative=jt.negative;var Dt=jt.trimStr.split(".");this.integer=BigInt(Dt[0]);var lr=Dt[1]||"0";this.decimal=BigInt(lr),this.decimalLen=lr.length}else this.nan=!0}return(0,N.Z)(ze,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(vt){var jt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(vt,"0"));return BigInt(jt)}},{key:"negate",value:function(){var vt=new ze(this.toString());return vt.negative=!vt.negative,vt}},{key:"cal",value:function(vt,jt,Dt){var lr=Math.max(this.getDecimalStr().length,vt.getDecimalStr().length),gr=this.alignDecimal(lr),ne=vt.alignDecimal(lr),we=jt(gr,ne).toString(),Vt=Dt(lr),Ue=b(we),it=Ue.negativeStr,Rr=Ue.trimStr,Tt="".concat(it).concat(Rr.padStart(Vt+1,"0"));return new ze("".concat(Tt.slice(0,-Vt),".").concat(Tt.slice(-Vt)))}},{key:"add",value:function(vt){if(this.isInvalidate())return new ze(vt);var jt=new ze(vt);return jt.isInvalidate()?this:this.cal(jt,function(Dt,lr){return Dt+lr},function(Dt){return Dt})}},{key:"multi",value:function(vt){var jt=new ze(vt);return this.isInvalidate()||jt.isInvalidate()?new ze(NaN):this.cal(jt,function(Dt,lr){return Dt*lr},function(Dt){return Dt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(vt){return this.toString()===(vt==null?void 0:vt.toString())}},{key:"lessEquals",value:function(vt){return this.add(vt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return vt?this.isInvalidate()?"":b("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ze}(),J=function(){function ze(He){if((0,d.Z)(this,ze),(0,g.Z)(this,"origin",""),(0,g.Z)(this,"number",void 0),(0,g.Z)(this,"empty",void 0),m(He)){this.empty=!0;return}this.origin=String(He),this.number=Number(He)}return(0,N.Z)(ze,[{key:"negate",value:function(){return new ze(-this.toNumber())}},{key:"add",value:function(vt){if(this.isInvalidate())return new ze(vt);var jt=Number(vt);if(Number.isNaN(jt))return this;var Dt=this.number+jt;if(Dt>Number.MAX_SAFE_INTEGER)return new ze(Number.MAX_SAFE_INTEGER);if(Dt<Number.MIN_SAFE_INTEGER)return new ze(Number.MIN_SAFE_INTEGER);var lr=Math.max(L(this.number),L(jt));return new ze(Dt.toFixed(lr))}},{key:"multi",value:function(vt){var jt=Number(vt);if(this.isInvalidate()||Number.isNaN(jt))return new ze(NaN);var Dt=this.number*jt;if(Dt>Number.MAX_SAFE_INTEGER)return new ze(Number.MAX_SAFE_INTEGER);if(Dt<Number.MIN_SAFE_INTEGER)return new ze(Number.MIN_SAFE_INTEGER);var lr=Math.max(L(this.number),L(jt));return new ze(Dt.toFixed(lr))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(vt){return this.toNumber()===(vt==null?void 0:vt.toNumber())}},{key:"lessEquals",value:function(vt){return this.add(vt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return vt?this.isInvalidate()?"":z(this.number):this.origin}}]),ze}();function te(ze){return v()?new $(ze):new J(ze)}function H(ze,He,vt){var jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ze==="")return"";var Dt=b(ze),lr=Dt.negativeStr,gr=Dt.integerStr,ne=Dt.decimalStr,we="".concat(He).concat(ne),Vt="".concat(lr).concat(gr);if(vt>=0){var Ue=Number(ne[vt]);if(Ue>=5&&!jt){var it=te(ze).add("".concat(lr,"0.").concat("0".repeat(vt)).concat(10-Ue));return H(it.toString(),He,vt,jt)}return vt===0?Vt:"".concat(Vt).concat(He).concat(ne.padEnd(vt,"0").slice(0,vt))}return we===".0"?Vt:"".concat(Vt).concat(we)}var G=te,ce=E(93681),q=E(34280),ye=E(8654),_e=E(59301),Le=E(48736);function se(ze,He){var vt=(0,_e.useRef)(null);function jt(){try{var lr=ze.selectionStart,gr=ze.selectionEnd,ne=ze.value,we=ne.substring(0,lr),Vt=ne.substring(gr);vt.current={start:lr,end:gr,value:ne,beforeTxt:we,afterTxt:Vt}}catch(Ue){}}function Dt(){if(ze&&vt.current&&He)try{var lr=ze.value,gr=vt.current,ne=gr.beforeTxt,we=gr.afterTxt,Vt=gr.start,Ue=lr.length;if(lr.endsWith(we))Ue=lr.length-vt.current.afterTxt.length;else if(lr.startsWith(ne))Ue=ne.length;else{var it=ne[Vt-1],Rr=lr.indexOf(it,Vt-1);Rr!==-1&&(Ue=Rr+1)}ze.setSelectionRange(Ue,Ue)}catch(Tt){(0,Le.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Tt.message))}}return[jt,Dt]}var be=E(49658),O=function(){var He=(0,_e.useState)(!1),vt=(0,T.Z)(He,2),jt=vt[0],Dt=vt[1];return(0,q.Z)(function(){Dt((0,be.Z)())},[]),jt},Ee=O,ue=E(16089),he=200,ve=600;function F(ze){var He=ze.prefixCls,vt=ze.upNode,jt=ze.downNode,Dt=ze.upDisabled,lr=ze.downDisabled,gr=ze.onStep,ne=_e.useRef(),we=_e.useRef([]),Vt=_e.useRef();Vt.current=gr;var Ue=function(){clearTimeout(ne.current)},it=function(Ht,Oe){Ht.preventDefault(),Ue(),Vt.current(Oe);function $r(){Vt.current(Oe),ne.current=setTimeout($r,he)}ne.current=setTimeout($r,ve)};_e.useEffect(function(){return function(){Ue(),we.current.forEach(function(rt){return ue.Z.cancel(rt)})}},[]);var Rr=Ee();if(Rr)return null;var Tt="".concat(He,"-handler"),Rt=Re()(Tt,"".concat(Tt,"-up"),(0,g.Z)({},"".concat(Tt,"-up-disabled"),Dt)),$t=Re()(Tt,"".concat(Tt,"-down"),(0,g.Z)({},"".concat(Tt,"-down-disabled"),lr)),qe=function(){return we.current.push((0,ue.Z)(Ue))},pt={unselectable:"on",role:"button",onMouseUp:qe,onMouseLeave:qe};return _e.createElement("div",{className:"".concat(Tt,"-wrap")},_e.createElement("span",(0,K.Z)({},pt,{onMouseDown:function(Ht){it(Ht,!0)},"aria-label":"Increase Value","aria-disabled":Dt,className:Rt}),vt||_e.createElement("span",{unselectable:"on",className:"".concat(He,"-handler-up-inner")})),_e.createElement("span",(0,K.Z)({},pt,{onMouseDown:function(Ht){it(Ht,!1)},"aria-label":"Decrease Value","aria-disabled":lr,className:$t}),jt||_e.createElement("span",{unselectable:"on",className:"".concat(He,"-handler-down-inner")})))}function U(ze){var He=typeof ze=="number"?z(ze):b(ze).fullStr,vt=He.includes(".");return vt?b(He.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ze+"0"}var ee=E(5643),de=function(){var ze=(0,_e.useRef)(0),He=function(){ue.Z.cancel(ze.current)};return(0,_e.useEffect)(function(){return He},[]),function(vt){He(),ze.current=(0,ue.Z)(function(){vt()})}},Xe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],tt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],nt=function(He,vt){return He||vt.isEmpty()?vt.toString():vt.toNumber()},_t=function(He){var vt=G(He);return vt.isInvalidate()?null:vt},Xt=_e.forwardRef(function(ze,He){var vt,jt=ze.prefixCls,Dt=jt===void 0?"rc-input-number":jt,lr=ze.className,gr=ze.style,ne=ze.min,we=ze.max,Vt=ze.step,Ue=Vt===void 0?1:Vt,it=ze.defaultValue,Rr=ze.value,Tt=ze.disabled,Rt=ze.readOnly,$t=ze.upHandler,qe=ze.downHandler,pt=ze.keyboard,rt=ze.controls,Ht=rt===void 0?!0:rt,Oe=ze.classNames,$r=ze.stringMode,Bt=ze.parser,gn=ze.formatter,On=ze.precision,hi=ze.decimalSeparator,ti=ze.onChange,En=ze.onInput,Dn=ze.onPressEnter,Ut=ze.onStep,Dr=(0,l.Z)(ze,Xe),Pr="".concat(Dt,"-input"),St=_e.useRef(null),mt=_e.useState(!1),mr=(0,T.Z)(mt,2),xr=mr[0],on=mr[1],kr=_e.useRef(!1),un=_e.useRef(!1),nn=_e.useRef(!1),_n=_e.useState(function(){return G(Rr!=null?Rr:it)}),Un=(0,T.Z)(_n,2),vn=Un[0],Hr=Un[1];function Kr(yn){Rr===void 0&&Hr(yn)}var qr=_e.useCallback(function(yn,Yt){if(!Yt)return On>=0?On:Math.max(L(yn),L(Ue))},[On,Ue]),bn=_e.useCallback(function(yn){var Yt=String(yn);if(Bt)return Bt(Yt);var hn=Yt;return hi&&(hn=hn.replace(hi,".")),hn.replace(/[^\w.-]+/g,"")},[Bt,hi]),ln=_e.useRef(""),ui=_e.useCallback(function(yn,Yt){if(gn)return gn(yn,{userTyping:Yt,input:String(ln.current)});var hn=typeof yn=="number"?z(yn):yn;if(!Yt){var Fn=qr(hn,Yt);if(P(hn)&&(hi||Fn>=0)){var $n=hi||".";hn=H(hn,$n,Fn)}}return hn},[gn,qr,hi]),jn=_e.useState(function(){var yn=it!=null?it:Rr;return vn.isInvalidate()&&["string","number"].includes((0,R.Z)(yn))?Number.isNaN(yn)?"":yn:ui(vn.toString(),!1)}),cn=(0,T.Z)(jn,2),sr=cn[0],cr=cn[1];ln.current=sr;function pr(yn,Yt){cr(ui(yn.isInvalidate()?yn.toString(!1):yn.toString(!Yt),Yt))}var Fr=_e.useMemo(function(){return _t(we)},[we,On]),Br=_e.useMemo(function(){return _t(ne)},[ne,On]),fn=_e.useMemo(function(){return!Fr||!vn||vn.isInvalidate()?!1:Fr.lessEquals(vn)},[Fr,vn]),Nr=_e.useMemo(function(){return!Br||!vn||vn.isInvalidate()?!1:vn.lessEquals(Br)},[Br,vn]),Cn=se(St.current,xr),Rn=(0,T.Z)(Cn,2),Kn=Rn[0],Ai=Rn[1],ni=function(Yt){return Fr&&!Yt.lessEquals(Fr)?Fr:Br&&!Br.lessEquals(Yt)?Br:null},mi=function(Yt){return!ni(Yt)},hr=function(Yt,hn){var Fn=Yt,$n=mi(Fn)||Fn.isEmpty();if(!Fn.isEmpty()&&!hn&&(Fn=ni(Fn)||Fn,$n=!0),!Rt&&!Tt&&$n){var bi=Fn.toString(),Hi=qr(bi,hn);return Hi>=0&&(Fn=G(H(bi,".",Hi)),mi(Fn)||(Fn=G(H(bi,".",Hi,!0)))),Fn.equals(vn)||(Kr(Fn),ti==null||ti(Fn.isEmpty()?null:nt($r,Fn)),Rr===void 0&&pr(Fn,hn)),Fn}return vn},an=de(),Xr=function yn(Yt){if(Kn(),ln.current=Yt,cr(Yt),!un.current){var hn=bn(Yt),Fn=G(hn);Fn.isNaN()||hr(Fn,!0)}En==null||En(Yt),an(function(){var $n=Yt;Bt||($n=Yt.replace(/。/g,".")),$n!==Yt&&yn($n)})},ri=function(){un.current=!0},zn=function(){un.current=!1,Xr(St.current.value)},Hn=function(Yt){Xr(Yt.target.value)},Xn=function(Yt){var hn;if(!(Yt&&fn||!Yt&&Nr)){kr.current=!1;var Fn=G(nn.current?U(Ue):Ue);Yt||(Fn=Fn.negate());var $n=(vn||G(0)).add(Fn.toString()),bi=hr($n,!1);Ut==null||Ut(nt($r,bi),{offset:nn.current?U(Ue):Ue,type:Yt?"up":"down"}),(hn=St.current)===null||hn===void 0||hn.focus()}},di=function(Yt){var hn=G(bn(sr)),Fn=hn;hn.isNaN()?Fn=hr(vn,Yt):Fn=hr(hn,Yt),Rr!==void 0?pr(vn,!1):Fn.isNaN()||pr(Fn,!1)},si=function(){kr.current=!0},_i=function(Yt){var hn=Yt.key,Fn=Yt.shiftKey;kr.current=!0,nn.current=Fn,hn==="Enter"&&(un.current||(kr.current=!1),di(!1),Dn==null||Dn(Yt)),pt!==!1&&!un.current&&["Up","ArrowUp","Down","ArrowDown"].includes(hn)&&(Xn(hn==="Up"||hn==="ArrowUp"),Yt.preventDefault())},ji=function(){kr.current=!1,nn.current=!1},ii=function(){di(!1),on(!1),kr.current=!1};return(0,q.o)(function(){vn.isInvalidate()||pr(vn,!1)},[On]),(0,q.o)(function(){var yn=G(Rr);Hr(yn);var Yt=G(bn(sr));(!yn.equals(Yt)||!kr.current||gn)&&pr(yn,kr.current)},[Rr]),(0,q.o)(function(){gn&&Ai()},[sr]),_e.createElement("div",{className:Re()(Dt,Oe==null?void 0:Oe.input,lr,(vt={},(0,g.Z)(vt,"".concat(Dt,"-focused"),xr),(0,g.Z)(vt,"".concat(Dt,"-disabled"),Tt),(0,g.Z)(vt,"".concat(Dt,"-readonly"),Rt),(0,g.Z)(vt,"".concat(Dt,"-not-a-number"),vn.isNaN()),(0,g.Z)(vt,"".concat(Dt,"-out-of-range"),!vn.isInvalidate()&&!mi(vn)),vt)),style:gr,onFocus:function(){on(!0)},onBlur:ii,onKeyDown:_i,onKeyUp:ji,onCompositionStart:ri,onCompositionEnd:zn,onBeforeInput:si},Ht&&_e.createElement(F,{prefixCls:Dt,upNode:$t,downNode:qe,upDisabled:fn,downDisabled:Nr,onStep:Xn}),_e.createElement("div",{className:"".concat(Pr,"-wrap")},_e.createElement("input",(0,K.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":ne,"aria-valuemax":we,"aria-valuenow":vn.isInvalidate()?null:vn.toString(),step:Ue},Dr,{ref:(0,ye.sQ)(St,He),className:Pr,value:sr,onChange:Hn,disabled:Tt,readOnly:Rt}))))}),zt=_e.forwardRef(function(ze,He){var vt=ze.disabled,jt=ze.style,Dt=ze.prefixCls,lr=ze.value,gr=ze.prefix,ne=ze.suffix,we=ze.addonBefore,Vt=ze.addonAfter,Ue=ze.classes,it=ze.className,Rr=ze.classNames,Tt=(0,l.Z)(ze,tt),Rt=_e.useRef(null),$t=function(pt){Rt.current&&(0,ee.nH)(Rt.current,pt)};return _e.createElement(ce.BaseInput,{inputElement:_e.createElement(Xt,(0,K.Z)({prefixCls:Dt,disabled:vt,classNames:Rr,ref:(0,ye.sQ)(Rt,He)},Tt)),className:it,triggerFocus:$t,prefixCls:Dt,value:lr,disabled:vt,style:jt,prefix:gr,suffix:ne,addonAfter:Vt,addonBefore:we,classes:Ue,classNames:Rr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});zt.displayName="InputNumber";var Ze=zt,fr=Ze,yr=E(19080),Ar=E(36355),vr=E(92736),Ce=E(1684),It=E(19716),Z=E(32441),x=E(33234),y=E(9937),k=E(17313),fe=E(74207),W=E(83116),Q=E(37613);const re=(ze,He)=>{let{componentCls:vt,borderRadiusSM:jt,borderRadiusLG:Dt}=ze;const lr=He==="lg"?Dt:jt;return{[`&-${He}`]:{[`${vt}-handler-wrap`]:{borderStartEndRadius:lr,borderEndEndRadius:lr},[`${vt}-handler-up`]:{borderStartEndRadius:lr},[`${vt}-handler-down`]:{borderEndEndRadius:lr}}}},Se=ze=>{const{componentCls:He,lineWidth:vt,lineType:jt,colorBorder:Dt,borderRadius:lr,fontSizeLG:gr,controlHeightLG:ne,controlHeightSM:we,colorError:Vt,paddingInlineSM:Ue,colorTextDescription:it,motionDurationMid:Rr,handleHoverColor:Tt,paddingInline:Rt,paddingBlock:$t,handleBg:qe,handleActiveBg:pt,colorTextDisabled:rt,borderRadiusSM:Ht,borderRadiusLG:Oe,controlWidth:$r,handleVisible:Bt,handleBorderColor:gn}=ze;return[{[He]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,k.Wf)(ze)),(0,y.ik)(ze)),(0,y.bi)(ze,He)),{display:"inline-block",width:$r,margin:0,padding:0,border:`${vt}px ${jt} ${Dt}`,borderRadius:lr,"&-rtl":{direction:"rtl",[`${He}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:gr,borderRadius:Oe,[`input${He}-input`]:{height:ne-2*vt}},"&-sm":{padding:0,borderRadius:Ht,[`input${He}-input`]:{height:we-2*vt,padding:`0 ${Ue}px`}},"&:hover":Object.assign({},(0,y.pU)(ze)),"&-focused":Object.assign({},(0,y.M1)(ze)),"&-out-of-range":{[`${He}-input-wrap`]:{input:{color:Vt}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,k.Wf)(ze)),(0,y.s7)(ze)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${He}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${He}-group-addon`]:{borderRadius:Oe,fontSize:ze.fontSizeLG}},"&-sm":{[`${He}-group-addon`]:{borderRadius:Ht}},[`${He}-wrapper-disabled > ${He}-group-addon`]:Object.assign({},(0,y.Xy)(ze))}}),[`&-disabled ${He}-input`]:{cursor:"not-allowed"},[He]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,k.Wf)(ze)),{width:"100%",padding:`${$t}px ${Rt}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:lr,outline:0,transition:`all ${Rr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,y.nz)(ze.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[He]:Object.assign(Object.assign(Object.assign({[`&:hover ${He}-handler-wrap, &-focused ${He}-handler-wrap`]:{opacity:1},[`${He}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:ze.handleWidth,height:"100%",background:qe,borderStartStartRadius:0,borderStartEndRadius:lr,borderEndEndRadius:lr,borderEndStartRadius:0,opacity:Bt===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Rr} linear ${Rr}`,[`${He}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${He}-handler-up-inner,
|
|
|
${He}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:ze.handleFontSize}}},[`${He}-handler`]:{height:"50%",overflow:"hidden",color:it,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${vt}px ${jt} ${gn}`,transition:`all ${Rr} linear`,"&:active":{background:pt},"&:hover":{height:"60%",[`
|
|
|
${He}-handler-up-inner,
|
|
|
${He}-handler-down-inner
|
|
|
`]:{color:Tt}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,k.Ro)()),{color:it,transition:`all ${Rr} linear`,userSelect:"none"})},[`${He}-handler-up`]:{borderStartEndRadius:lr},[`${He}-handler-down`]:{borderBlockStart:`${vt}px ${jt} ${gn}`,borderEndEndRadius:lr}},re(ze,"lg")),re(ze,"sm")),{"&-disabled, &-readonly":{[`${He}-handler-wrap`]:{display:"none"},[`${He}-input`]:{color:"inherit"}},[`
|
|
|
${He}-handler-up-disabled,
|
|
|
${He}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${He}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${He}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:rt}})},{[`${He}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${He}-handler-down`]:{borderBlockStartWidth:0}}}]},Be=ze=>{const{componentCls:He,paddingBlock:vt,paddingInline:jt,inputAffixPadding:Dt,controlWidth:lr,borderRadiusLG:gr,borderRadiusSM:ne}=ze;return{[`${He}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,y.ik)(ze)),(0,y.bi)(ze,`${He}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:lr,padding:0,paddingInlineStart:jt,"&-lg":{borderRadius:gr},"&-sm":{borderRadius:ne},[`&:not(${He}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,y.pU)(ze)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${He}-disabled`]:{background:"transparent"},[`> div${He}`]:{width:"100%",border:"none",outline:"none",[`&${He}-focused`]:{boxShadow:"none !important"}},[`input${He}-input`]:{padding:`${vt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${He}-handler-wrap`]:{zIndex:2},[He]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Dt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:jt,marginInlineStart:Dt}}})}};var Te=(0,W.Z)("InputNumber",ze=>{const He=(0,Q.TS)(ze,(0,y.e5)(ze));return[Se(He),Be(He),(0,fe.c)(He)]},ze=>Object.assign(Object.assign({},(0,y.TM)(ze)),{controlWidth:90,handleWidth:ze.controlHeightSM-ze.lineWidth*2,handleFontSize:ze.fontSize/2,handleVisible:"auto",handleActiveBg:ze.colorFillAlter,handleBg:ze.colorBgContainer,handleHoverColor:ze.colorPrimary,handleBorderColor:ze.colorBorder})),Ge=function(ze,He){var vt={};for(var jt in ze)Object.prototype.hasOwnProperty.call(ze,jt)&&He.indexOf(jt)<0&&(vt[jt]=ze[jt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,jt=Object.getOwnPropertySymbols(ze);Dt<jt.length;Dt++)He.indexOf(jt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(ze,jt[Dt])&&(vt[jt[Dt]]=ze[jt[Dt]]);return vt};const ut=_e.forwardRef((ze,He)=>{const{getPrefixCls:vt,direction:jt}=_e.useContext(Ar.E_),Dt=_e.useRef(null);_e.useImperativeHandle(He,()=>Dt.current);const{className:lr,rootClassName:gr,size:ne,disabled:we,prefixCls:Vt,addonBefore:Ue,addonAfter:it,prefix:Rr,bordered:Tt=!0,readOnly:Rt,status:$t,controls:qe}=ze,pt=Ge(ze,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),rt=vt("input-number",Vt),[Ht,Oe]=Te(rt),{compactSize:$r,compactItemClassnames:Bt}=(0,x.ri)(rt,jt);let gn=_e.createElement(Fe.Z,{className:`${rt}-handler-up-inner`}),On=_e.createElement(le.Z,{className:`${rt}-handler-down-inner`});const hi=typeof qe=="boolean"?qe:void 0;typeof qe=="object"&&(gn=typeof qe.upIcon=="undefined"?gn:_e.createElement("span",{className:`${rt}-handler-up-inner`},qe.upIcon),On=typeof qe.downIcon=="undefined"?On:_e.createElement("span",{className:`${rt}-handler-down-inner`},qe.downIcon));const{hasFeedback:ti,status:En,isFormItemInput:Dn,feedbackIcon:Ut}=_e.useContext(Z.aM),Dr=(0,yr.F)(En,$t),Pr=(0,It.Z)(kr=>{var un;return(un=ne!=null?ne:$r)!==null&&un!==void 0?un:kr}),St=_e.useContext(Ce.Z),mt=we!=null?we:St,mr=Re()({[`${rt}-lg`]:Pr==="large",[`${rt}-sm`]:Pr==="small",[`${rt}-rtl`]:jt==="rtl",[`${rt}-borderless`]:!Tt,[`${rt}-in-form-item`]:Dn},(0,yr.Z)(rt,Dr),Bt,Oe),xr=`${rt}-group`,on=_e.createElement(fr,Object.assign({ref:Dt,disabled:mt,className:Re()(lr,gr),upHandler:gn,downHandler:On,prefixCls:rt,readOnly:Rt,controls:hi,prefix:Rr,suffix:ti&&Ut,addonAfter:it&&_e.createElement(x.BR,null,_e.createElement(Z.Ux,{override:!0,status:!0},it)),addonBefore:Ue&&_e.createElement(x.BR,null,_e.createElement(Z.Ux,{override:!0,status:!0},Ue)),classNames:{input:mr},classes:{affixWrapper:Re()((0,yr.Z)(`${rt}-affix-wrapper`,Dr,ti),{[`${rt}-affix-wrapper-sm`]:Pr==="small",[`${rt}-affix-wrapper-lg`]:Pr==="large",[`${rt}-affix-wrapper-rtl`]:jt==="rtl",[`${rt}-affix-wrapper-borderless`]:!Tt},Oe),wrapper:Re()({[`${xr}-rtl`]:jt==="rtl",[`${rt}-wrapper-disabled`]:mt},Oe),group:Re()({[`${rt}-group-wrapper-sm`]:Pr==="small",[`${rt}-group-wrapper-lg`]:Pr==="large",[`${rt}-group-wrapper-rtl`]:jt==="rtl"},(0,yr.Z)(`${rt}-group-wrapper`,Dr,ti),Oe)}},pt));return Ht(on)}),$e=ut,Je=ze=>_e.createElement(vr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},_e.createElement(ut,Object.assign({},ze)));$e._InternalPanelDoNotUseOrYouWillBeFired=Je;var At=$e},9432:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return $},n:function(){return z}});var le=E(19248),Fe=E(92310),ae=E.n(Fe),Re=E(93681),K=E(8654),g=E(59301),R=E(19080),T=E(36355),l=E(1684),d=E(19716),N=E(32441),v=E(33234),m=E(59412),b=E(9937);function I(J){return!!(J.prefix||J.suffix||J.allowClear)}var L=function(J,te){var H={};for(var G in J)Object.prototype.hasOwnProperty.call(J,G)&&te.indexOf(G)<0&&(H[G]=J[G]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,G=Object.getOwnPropertySymbols(J);ce<G.length;ce++)te.indexOf(G[ce])<0&&Object.prototype.propertyIsEnumerable.call(J,G[ce])&&(H[G[ce]]=J[G[ce]]);return H};function z(J,te){if(!J)return;J.focus(te);const{cursor:H}=te||{};if(H){const G=J.value.length;switch(H){case"start":J.setSelectionRange(0,0);break;case"end":J.setSelectionRange(G,G);break;default:J.setSelectionRange(0,G);break}}}var $=(0,g.forwardRef)((J,te)=>{var H;const{prefixCls:G,bordered:ce=!0,status:q,size:ye,disabled:_e,onBlur:Le,onFocus:se,suffix:be,allowClear:O,addonAfter:Ee,addonBefore:ue,className:he,style:ve,styles:F,rootClassName:U,onChange:ee,classNames:de}=J,Xe=L(J,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:tt,direction:nt,input:_t}=g.useContext(T.E_),Xt=tt("input",G),zt=(0,g.useRef)(null),[Ze,fr]=(0,b.ZP)(Xt),{compactSize:yr,compactItemClassnames:Ar}=(0,v.ri)(Xt,nt),vr=(0,d.Z)(ut=>{var $e;return($e=ye!=null?ye:yr)!==null&&$e!==void 0?$e:ut}),Ce=g.useContext(l.Z),It=_e!=null?_e:Ce,{status:Z,hasFeedback:x,feedbackIcon:y}=(0,g.useContext)(N.aM),k=(0,R.F)(Z,q),fe=I(J)||!!x,W=(0,g.useRef)(fe);(0,g.useEffect)(()=>{var ut;fe&&W.current,W.current=fe},[fe]);const Q=(0,m.Z)(zt,!0),re=ut=>{Q(),Le==null||Le(ut)},Se=ut=>{Q(),se==null||se(ut)},Be=ut=>{Q(),ee==null||ee(ut)},Te=(x||be)&&g.createElement(g.Fragment,null,be,x&&y);let Ge;return typeof O=="object"&&(O!=null&&O.clearIcon)?Ge=O:O&&(Ge={clearIcon:g.createElement(le.Z,null)}),Ze(g.createElement(Re.default,Object.assign({ref:(0,K.sQ)(te,zt),prefixCls:Xt,autoComplete:_t==null?void 0:_t.autoComplete},Xe,{disabled:It,onBlur:re,onFocus:Se,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),ve),styles:Object.assign(Object.assign({},_t==null?void 0:_t.styles),F),suffix:Te,allowClear:Ge,className:ae()(he,U,Ar,_t==null?void 0:_t.className),onChange:Be,addonAfter:Ee&&g.createElement(v.BR,null,g.createElement(N.Ux,{override:!0,status:!0},Ee)),addonBefore:ue&&g.createElement(v.BR,null,g.createElement(N.Ux,{override:!0,status:!0},ue)),classNames:Object.assign(Object.assign(Object.assign({},de),_t==null?void 0:_t.classNames),{input:ae()({[`${Xt}-sm`]:vr==="small",[`${Xt}-lg`]:vr==="large",[`${Xt}-rtl`]:nt==="rtl",[`${Xt}-borderless`]:!ce},!fe&&(0,R.Z)(Xt,k),de==null?void 0:de.input,(H=_t==null?void 0:_t.classNames)===null||H===void 0?void 0:H.input,fr)}),classes:{affixWrapper:ae()({[`${Xt}-affix-wrapper-sm`]:vr==="small",[`${Xt}-affix-wrapper-lg`]:vr==="large",[`${Xt}-affix-wrapper-rtl`]:nt==="rtl",[`${Xt}-affix-wrapper-borderless`]:!ce},(0,R.Z)(`${Xt}-affix-wrapper`,k,x),fr),wrapper:ae()({[`${Xt}-group-rtl`]:nt==="rtl"},fr),group:ae()({[`${Xt}-group-wrapper-sm`]:vr==="small",[`${Xt}-group-wrapper-lg`]:vr==="large",[`${Xt}-group-wrapper-rtl`]:nt==="rtl",[`${Xt}-group-wrapper-disabled`]:It},(0,R.Z)(`${Xt}-group-wrapper`,k,x),fr)}})))})},1643:function(tn,Mt,E){"use strict";var le=E(19248),Fe=E(92310),ae=E.n(Fe),Re=E(9296),K=E(59301),g=E(19080),R=E(36355),T=E(1684),l=E(19716),d=E(32441),N=E(9432),v=E(9937),m=function(I,L){var z={};for(var P in I)Object.prototype.hasOwnProperty.call(I,P)&&L.indexOf(P)<0&&(z[P]=I[P]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,P=Object.getOwnPropertySymbols(I);$<P.length;$++)L.indexOf(P[$])<0&&Object.prototype.propertyIsEnumerable.call(I,P[$])&&(z[P[$]]=I[P[$]]);return z};const b=(0,K.forwardRef)((I,L)=>{const{prefixCls:z,bordered:P=!0,size:$,disabled:J,status:te,allowClear:H,showCount:G,classNames:ce,rootClassName:q,className:ye}=I,_e=m(I,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Le,direction:se}=K.useContext(R.E_),be=(0,l.Z)($),O=K.useContext(T.Z),Ee=J!=null?J:O,{status:ue,hasFeedback:he,feedbackIcon:ve}=K.useContext(d.aM),F=(0,g.F)(ue,te),U=K.useRef(null);K.useImperativeHandle(L,()=>{var nt;return{resizableTextArea:(nt=U.current)===null||nt===void 0?void 0:nt.resizableTextArea,focus:_t=>{var Xt,zt;(0,N.n)((zt=(Xt=U.current)===null||Xt===void 0?void 0:Xt.resizableTextArea)===null||zt===void 0?void 0:zt.textArea,_t)},blur:()=>{var _t;return(_t=U.current)===null||_t===void 0?void 0:_t.blur()}}});const ee=Le("input",z);let de;typeof H=="object"&&(H!=null&&H.clearIcon)?de=H:H&&(de={clearIcon:K.createElement(le.Z,null)});const[Xe,tt]=(0,v.ZP)(ee);return Xe(K.createElement(Re.default,Object.assign({},_e,{disabled:Ee,allowClear:de,className:ae()(ye,q),classes:{affixWrapper:ae()(`${ee}-textarea-affix-wrapper`,{[`${ee}-affix-wrapper-rtl`]:se==="rtl",[`${ee}-affix-wrapper-borderless`]:!P,[`${ee}-affix-wrapper-sm`]:be==="small",[`${ee}-affix-wrapper-lg`]:be==="large",[`${ee}-textarea-show-count`]:G},(0,g.Z)(`${ee}-affix-wrapper`,F),tt)},classNames:Object.assign(Object.assign({},ce),{textarea:ae()({[`${ee}-borderless`]:!P,[`${ee}-sm`]:be==="small",[`${ee}-lg`]:be==="large"},(0,g.Z)(ee,F),tt,ce==null?void 0:ce.textarea)}),prefixCls:ee,suffix:he&&K.createElement("span",{className:`${ee}-textarea-suffix`},ve),showCount:G,ref:U})))});Mt.Z=b},59412:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return Fe}});var le=E(59301);function Fe(ae,Re){const K=(0,le.useRef)([]),g=()=>{K.current.push(setTimeout(()=>{var R,T,l,d;!((R=ae.current)===null||R===void 0)&&R.input&&((T=ae.current)===null||T===void 0?void 0:T.input.getAttribute("type"))==="password"&&(!((l=ae.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((d=ae.current)===null||d===void 0||d.input.removeAttribute("value"))}))};return(0,le.useEffect)(()=>(Re&&g(),()=>K.current.forEach(R=>{R&&clearTimeout(R)})),[]),g}},92832:function(tn,Mt,E){"use strict";E.d(Mt,{default:function(){return be}});var le=E(92310),Fe=E.n(le),ae=E(59301),Re=E(36355),K=E(32441),g=E(9937),T=O=>{const{getPrefixCls:Ee,direction:ue}=(0,ae.useContext)(Re.E_),{prefixCls:he,className:ve}=O,F=Ee("input-group",he),U=Ee("input"),[ee,de]=(0,g.ZP)(U),Xe=Fe()(F,{[`${F}-lg`]:O.size==="large",[`${F}-sm`]:O.size==="small",[`${F}-compact`]:O.compact,[`${F}-rtl`]:ue==="rtl"},de,ve),tt=(0,ae.useContext)(K.aM),nt=(0,ae.useMemo)(()=>Object.assign(Object.assign({},tt),{isFormItemInput:!1}),[tt]);return ee(ae.createElement("span",{className:Xe,style:O.style,onMouseEnter:O.onMouseEnter,onMouseLeave:O.onMouseLeave,onFocus:O.onFocus,onBlur:O.onBlur},ae.createElement(K.aM.Provider,{value:nt},O.children)))},l=E(9432),d=E(73331),N=E(15277),v=E(2738),m=E(8654),b=E(59412),I=function(O,Ee){var ue={};for(var he in O)Object.prototype.hasOwnProperty.call(O,he)&&Ee.indexOf(he)<0&&(ue[he]=O[he]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,he=Object.getOwnPropertySymbols(O);ve<he.length;ve++)Ee.indexOf(he[ve])<0&&Object.prototype.propertyIsEnumerable.call(O,he[ve])&&(ue[he[ve]]=O[he[ve]]);return ue};const L=O=>O?ae.createElement(N.Z,null):ae.createElement(d.Z,null),z={click:"onClick",hover:"onMouseOver"};var $=ae.forwardRef((O,Ee)=>{const{visibilityToggle:ue=!0}=O,he=typeof ue=="object"&&ue.visible!==void 0,[ve,F]=(0,ae.useState)(()=>he?ue.visible:!1),U=(0,ae.useRef)(null);ae.useEffect(()=>{he&&F(ue.visible)},[he,ue]);const ee=(0,b.Z)(U),de=()=>{const{disabled:It}=O;It||(ve&&ee(),F(Z=>{var x;const y=!Z;return typeof ue=="object"&&((x=ue.onVisibleChange)===null||x===void 0||x.call(ue,y)),y}))},Xe=It=>{const{action:Z="click",iconRender:x=L}=O,y=z[Z]||"",k=x(ve),fe={[y]:de,className:`${It}-icon`,key:"passwordIcon",onMouseDown:W=>{W.preventDefault()},onMouseUp:W=>{W.preventDefault()}};return ae.cloneElement(ae.isValidElement(k)?k:ae.createElement("span",null,k),fe)},{className:tt,prefixCls:nt,inputPrefixCls:_t,size:Xt}=O,zt=I(O,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ze}=ae.useContext(Re.E_),fr=Ze("input",_t),yr=Ze("input-password",nt),Ar=ue&&Xe(yr),vr=Fe()(yr,tt,{[`${yr}-${Xt}`]:!!Xt}),Ce=Object.assign(Object.assign({},(0,v.Z)(zt,["suffix","iconRender","visibilityToggle"])),{type:ve?"text":"password",className:vr,prefixCls:fr,suffix:Ar});return Xt&&(Ce.size=Xt),ae.createElement(l.Z,Object.assign({ref:(0,m.sQ)(Ee,U)},Ce))}),J=E(47472),te=E(92343),H=E(3113),G=E(19716),ce=E(33234),q=function(O,Ee){var ue={};for(var he in O)Object.prototype.hasOwnProperty.call(O,he)&&Ee.indexOf(he)<0&&(ue[he]=O[he]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,he=Object.getOwnPropertySymbols(O);ve<he.length;ve++)Ee.indexOf(he[ve])<0&&Object.prototype.propertyIsEnumerable.call(O,he[ve])&&(ue[he[ve]]=O[he[ve]]);return ue},_e=ae.forwardRef((O,Ee)=>{const{prefixCls:ue,inputPrefixCls:he,className:ve,size:F,suffix:U,enterButton:ee=!1,addonAfter:de,loading:Xe,disabled:tt,onSearch:nt,onChange:_t,onCompositionStart:Xt,onCompositionEnd:zt}=O,Ze=q(O,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:fr,direction:yr}=ae.useContext(Re.E_),Ar=ae.useRef(!1),vr=fr("input-search",ue),Ce=fr("input",he),{compactSize:It}=(0,ce.ri)(vr,yr),Z=(0,G.Z)(Je=>{var At;return(At=F!=null?F:It)!==null&&At!==void 0?At:Je}),x=ae.useRef(null),y=Je=>{Je&&Je.target&&Je.type==="click"&&nt&&nt(Je.target.value,Je,{source:"clear"}),_t&&_t(Je)},k=Je=>{var At;document.activeElement===((At=x.current)===null||At===void 0?void 0:At.input)&&Je.preventDefault()},fe=Je=>{var At,ze;nt&&nt((ze=(At=x.current)===null||At===void 0?void 0:At.input)===null||ze===void 0?void 0:ze.value,Je,{source:"input"})},W=Je=>{Ar.current||Xe||fe(Je)},Q=typeof ee=="boolean"?ae.createElement(J.Z,null):null,re=`${vr}-button`;let Se;const Be=ee||{},Te=Be.type&&Be.type.__ANT_BUTTON===!0;Te||Be.type==="button"?Se=(0,te.Tm)(Be,Object.assign({onMouseDown:k,onClick:Je=>{var At,ze;(ze=(At=Be==null?void 0:Be.props)===null||At===void 0?void 0:At.onClick)===null||ze===void 0||ze.call(At,Je),fe(Je)},key:"enterButton"},Te?{className:re,size:Z}:{})):Se=ae.createElement(H.ZP,{className:re,type:ee?"primary":void 0,size:Z,disabled:tt,key:"enterButton",onMouseDown:k,onClick:fe,loading:Xe,icon:Q},ee),de&&(Se=[Se,(0,te.Tm)(de,{key:"addonAfter"})]);const Ge=Fe()(vr,{[`${vr}-rtl`]:yr==="rtl",[`${vr}-${Z}`]:!!Z,[`${vr}-with-button`]:!!ee},ve),ut=Je=>{Ar.current=!0,Xt==null||Xt(Je)},$e=Je=>{Ar.current=!1,zt==null||zt(Je)};return ae.createElement(l.Z,Object.assign({ref:(0,m.sQ)(x,Ee),onPressEnter:W},Ze,{size:Z,onCompositionStart:ut,onCompositionEnd:$e,prefixCls:Ce,addonAfter:Se,suffix:U,onChange:y,className:Ge,disabled:tt}))}),Le=E(1643);const se=l.Z;se.Group=T,se.Search=_e,se.TextArea=Le.Z,se.Password=$;var be=se},9937:function(tn,Mt,E){"use strict";E.d(Mt,{M1:function(){return R},TM:function(){return te},Xy:function(){return T},bi:function(){return N},e5:function(){return J},ik:function(){return v},nz:function(){return K},pU:function(){return g},s7:function(){return m},x0:function(){return d}});var le=E(17313),Fe=E(74207),ae=E(37613),Re=E(83116);const K=H=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:H,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),g=H=>({borderColor:H.hoverBorderColor}),R=H=>({borderColor:H.activeBorderColor,boxShadow:H.activeShadow,outline:0}),T=H=>({color:H.colorTextDisabled,backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},g((0,ae.TS)(H,{hoverBorderColor:H.colorBorder})))}),l=H=>{const{paddingBlockLG:G,fontSizeLG:ce,lineHeightLG:q,borderRadiusLG:ye,paddingInlineLG:_e}=H;return{padding:`${G}px ${_e}px`,fontSize:ce,lineHeight:q,borderRadius:ye}},d=H=>({padding:`${H.paddingBlockSM}px ${H.paddingInlineSM}px`,borderRadius:H.borderRadiusSM}),N=(H,G)=>{const{componentCls:ce,colorError:q,colorWarning:ye,errorActiveShadow:_e,warningActiveShadow:Le,colorErrorBorderHover:se,colorWarningBorderHover:be}=H;return{[`&-status-error:not(${G}-disabled):not(${G}-borderless)${G}`]:{borderColor:q,"&:hover":{borderColor:se},"&:focus, &-focused":Object.assign({},R((0,ae.TS)(H,{activeBorderColor:q,activeShadow:_e}))),[`${ce}-prefix, ${ce}-suffix`]:{color:q}},[`&-status-warning:not(${G}-disabled):not(${G}-borderless)${G}`]:{borderColor:ye,"&:hover":{borderColor:be},"&:focus, &-focused":Object.assign({},R((0,ae.TS)(H,{activeBorderColor:ye,activeShadow:Le}))),[`${ce}-prefix, ${ce}-suffix`]:{color:ye}}}},v=H=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${H.paddingBlock}px ${H.paddingInline}px`,color:H.colorText,fontSize:H.fontSize,lineHeight:H.lineHeight,backgroundColor:H.colorBgContainer,backgroundImage:"none",borderWidth:H.lineWidth,borderStyle:H.lineType,borderColor:H.colorBorder,borderRadius:H.borderRadius,transition:`all ${H.motionDurationMid}`},K(H.colorTextPlaceholder)),{"&:hover":Object.assign({},g(H)),"&:focus, &-focused":Object.assign({},R(H)),"&-disabled, &[disabled]":Object.assign({},T(H)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:H.controlHeight,lineHeight:H.lineHeight,verticalAlign:"bottom",transition:`all ${H.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},l(H)),"&-sm":Object.assign({},d(H)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=H=>{const{componentCls:G,antCls:ce}=H;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:H.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${G}, &-lg > ${G}-group-addon`]:Object.assign({},l(H)),[`&-sm ${G}, &-sm > ${G}-group-addon`]:Object.assign({},d(H)),[`&-lg ${ce}-select-single ${ce}-select-selector`]:{height:H.controlHeightLG},[`&-sm ${ce}-select-single ${ce}-select-selector`]:{height:H.controlHeightSM},[`> ${G}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${G}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${H.paddingInline}px`,color:H.colorText,fontWeight:"normal",fontSize:H.fontSize,textAlign:"center",backgroundColor:H.colorFillAlter,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadius,transition:`all ${H.motionDurationSlow}`,lineHeight:1,[`${ce}-select`]:{margin:`-${H.paddingBlock+1}px -${H.paddingInline}px`,[`&${ce}-select-single:not(${ce}-select-customize-input)`]:{[`${ce}-select-selector`]:{backgroundColor:"inherit",border:`${H.lineWidth}px ${H.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ce}-select-selector`]:{color:H.colorPrimary}}},[`${ce}-cascader-picker`]:{margin:`-9px -${H.paddingInline}px`,backgroundColor:"transparent",[`${ce}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${G}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${G}-search-with-button &`]:{zIndex:0}}},[`> ${G}:first-child, ${G}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${ce}-select ${ce}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${G}-affix-wrapper`]:{[`&:not(:first-child) ${G}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${G}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${G}:last-child, ${G}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${ce}-select ${ce}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${G}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${G}-search &`]:{borderStartStartRadius:H.borderRadius,borderEndStartRadius:H.borderRadius}},[`&:not(:first-child), ${G}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${G}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,le.dF)()),{[`${G}-group-addon, ${G}-group-wrap, > ${G}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:H.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${G}-affix-wrapper,
|
|
|
& > ${G}-number-affix-wrapper,
|
|
|
& > ${ce}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-H.lineWidth,borderInlineEndWidth:H.lineWidth},[`${G}`]:{float:"none"},[`& > ${ce}-select > ${ce}-select-selector,
|
|
|
& > ${ce}-select-auto-complete ${G},
|
|
|
& > ${ce}-cascader-picker ${G},
|
|
|
& > ${G}-group-wrapper ${G}`]:{borderInlineEndWidth:H.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${ce}-select-focused`]:{zIndex:1},[`& > ${ce}-select > ${ce}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${ce}-select:first-child > ${ce}-select-selector,
|
|
|
& > ${ce}-select-auto-complete:first-child ${G},
|
|
|
& > ${ce}-cascader-picker:first-child ${G}`]:{borderStartStartRadius:H.borderRadius,borderEndStartRadius:H.borderRadius},[`& > *:last-child,
|
|
|
& > ${ce}-select:last-child > ${ce}-select-selector,
|
|
|
& > ${ce}-cascader-picker:last-child ${G},
|
|
|
& > ${ce}-cascader-picker-focused:last-child ${G}`]:{borderInlineEndWidth:H.lineWidth,borderStartEndRadius:H.borderRadius,borderEndEndRadius:H.borderRadius},[`& > ${ce}-select-auto-complete ${G}`]:{verticalAlign:"top"},[`${G}-group-wrapper + ${G}-group-wrapper`]:{marginInlineStart:-H.lineWidth,[`${G}-affix-wrapper`]:{borderRadius:0}},[`${G}-group-wrapper:not(:last-child)`]:{[`&${G}-search > ${G}-group`]:{[`& > ${G}-group-addon > ${G}-search-button`]:{borderRadius:0},[`& > ${G}`]:{borderStartStartRadius:H.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:H.borderRadius}}}})}},b=H=>{const{componentCls:G,controlHeightSM:ce,lineWidth:q}=H,_e=(ce-q*2-16)/2;return{[G]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,le.Wf)(H)),v(H)),N(H,G)),{'&[type="color"]':{height:H.controlHeight,[`&${G}-lg`]:{height:H.controlHeightLG},[`&${G}-sm`]:{height:ce,paddingTop:_e,paddingBottom:_e}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},I=H=>{const{componentCls:G}=H;return{[`${G}-clear-icon`]:{margin:0,color:H.colorTextQuaternary,fontSize:H.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${H.motionDurationSlow}`,"&:hover":{color:H.colorTextTertiary},"&:active":{color:H.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${H.inputAffixPadding}px`}}}},L=H=>{const{componentCls:G,inputAffixPadding:ce,colorTextDescription:q,motionDurationSlow:ye,colorIcon:_e,colorIconHover:Le,iconCls:se}=H;return{[`${G}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v(H)),{display:"inline-flex",[`&:not(${G}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},g(H)),{zIndex:1,[`${G}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${G}[disabled]`]:{background:"transparent"}},[`> input${G}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${G}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:H.paddingXS}},"&-show-count-suffix":{color:q},"&-show-count-has-suffix":{marginInlineEnd:H.paddingXXS},"&-prefix":{marginInlineEnd:ce},"&-suffix":{marginInlineStart:ce}}}),I(H)),{[`${se}${G}-password-icon`]:{color:_e,cursor:"pointer",transition:`all ${ye}`,"&:hover":{color:Le}}}),N(H,`${G}-affix-wrapper`))}},z=H=>{const{componentCls:G,colorError:ce,colorWarning:q,borderRadiusLG:ye,borderRadiusSM:_e}=H;return{[`${G}-group`]:Object.assign(Object.assign(Object.assign({},(0,le.Wf)(H)),m(H)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${G}-group-addon`]:{borderRadius:ye,fontSize:H.fontSizeLG}},"&-sm":{[`${G}-group-addon`]:{borderRadius:_e}},"&-status-error":{[`${G}-group-addon`]:{color:ce,borderColor:ce}},"&-status-warning":{[`${G}-group-addon`]:{color:q,borderColor:q}},"&-disabled":{[`${G}-group-addon`]:Object.assign({},T(H))},[`&:not(${G}-compact-first-item):not(${G}-compact-last-item)${G}-compact-item`]:{[`${G}, ${G}-group-addon`]:{borderRadius:0}},[`&:not(${G}-compact-last-item)${G}-compact-first-item`]:{[`${G}, ${G}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${G}-compact-first-item)${G}-compact-last-item`]:{[`${G}, ${G}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},P=H=>{const{componentCls:G,antCls:ce}=H,q=`${G}-search`;return{[q]:{[`${G}`]:{"&:hover, &:focus":{borderColor:H.colorPrimaryHover,[`+ ${G}-group-addon ${q}-button:not(${ce}-btn-primary)`]:{borderInlineStartColor:H.colorPrimaryHover}}},[`${G}-affix-wrapper`]:{borderRadius:0},[`${G}-lg`]:{lineHeight:H.lineHeightLG-2e-4},[`> ${G}-group`]:{[`> ${G}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${q}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:H.borderRadius,borderEndEndRadius:H.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${q}-button:not(${ce}-btn-primary)`]:{color:H.colorTextDescription,"&:hover":{color:H.colorPrimaryHover},"&:active":{color:H.colorPrimaryActive},[`&${ce}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${q}-button`]:{height:H.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${q}-button`]:{height:H.controlHeightLG},[`&-small ${q}-button`]:{height:H.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${G}-compact-item`]:{[`&:not(${G}-compact-last-item)`]:{[`${G}-group-addon`]:{[`${G}-search-button`]:{marginInlineEnd:-H.lineWidth,borderRadius:0}}},[`&:not(${G}-compact-first-item)`]:{[`${G},${G}-affix-wrapper`]:{borderRadius:0}},[`> ${G}-group-addon ${G}-search-button,
|
|
|
> ${G},
|
|
|
${G}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${G}-affix-wrapper-focused`]:{zIndex:2}}}}},$=H=>{const{componentCls:G,paddingLG:ce}=H,q=`${G}-textarea`;return{[q]:{position:"relative","&-show-count":{[`> ${G}`]:{height:"100%"},[`${G}-data-count`]:{position:"absolute",bottom:-H.fontSize*H.lineHeight,insetInlineEnd:0,color:H.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${G}`]:{paddingInlineEnd:ce}},[`&-affix-wrapper${q}-has-feedback`]:{[`${G}`]:{paddingInlineEnd:ce}},[`&-affix-wrapper${G}-affix-wrapper`]:{padding:0,[`> textarea${G}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${G}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${G}-clear-icon`]:{position:"absolute",insetInlineEnd:H.paddingXS,insetBlockStart:H.paddingXS},[`${q}-suffix`]:{position:"absolute",top:0,insetInlineEnd:H.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function J(H){return(0,ae.TS)(H,{inputAffixPadding:H.paddingXXS})}const te=H=>{const{controlHeight:G,fontSize:ce,lineHeight:q,lineWidth:ye,controlHeightSM:_e,controlHeightLG:Le,fontSizeLG:se,lineHeightLG:be,paddingSM:O,controlPaddingHorizontalSM:Ee,controlPaddingHorizontal:ue,colorFillAlter:he,colorPrimaryHover:ve,controlOutlineWidth:F,controlOutline:U,colorErrorOutline:ee,colorWarningOutline:de}=H;return{paddingBlock:Math.max(Math.round((G-ce*q)/2*10)/10-ye,3),paddingBlockSM:Math.max(Math.round((_e-ce*q)/2*10)/10-ye,0),paddingBlockLG:Math.ceil((Le-se*be)/2*10)/10-ye,paddingInline:O-ye,paddingInlineSM:Ee-ye,paddingInlineLG:ue-ye,addonBg:he,activeBorderColor:ve,hoverBorderColor:ve,activeShadow:`0 0 0 ${F}px ${U}`,errorActiveShadow:`0 0 0 ${F}px ${ee}`,warningActiveShadow:`0 0 0 ${F}px ${de}`}};Mt.ZP=(0,Re.Z)("Input",H=>{const G=(0,ae.TS)(H,J(H));return[b(G),$(G),L(G),z(G),P(G),(0,Fe.c)(G)]},te)},45818:function(tn,Mt,E){"use strict";E.d(Mt,{D:function(){return J},Z:function(){return G}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Re=ae,K=E(7657),g=function(q,ye){return Fe.createElement(K.Z,(0,le.Z)({},q,{ref:ye,icon:Re}))},R=Fe.forwardRef(g),T=R,l=E(33853),d=E(38819),N=E(92310),v=E.n(N),m=E(2738),I=ce=>!isNaN(parseFloat(ce))&&isFinite(ce),L=E(36355),z=E(84966),P=function(ce,q){var ye={};for(var _e in ce)Object.prototype.hasOwnProperty.call(ce,_e)&&q.indexOf(_e)<0&&(ye[_e]=ce[_e]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,_e=Object.getOwnPropertySymbols(ce);Le<_e.length;Le++)q.indexOf(_e[Le])<0&&Object.prototype.propertyIsEnumerable.call(ce,_e[Le])&&(ye[_e[Le]]=ce[_e[Le]]);return ye};const $={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},J=Fe.createContext({}),te=(()=>{let ce=0;return function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ce+=1,`${q}${ce}`}})();var G=Fe.forwardRef((ce,q)=>{const{prefixCls:ye,className:_e,trigger:Le,children:se,defaultCollapsed:be=!1,theme:O="dark",style:Ee={},collapsible:ue=!1,reverseArrow:he=!1,width:ve=200,collapsedWidth:F=80,zeroWidthTriggerStyle:U,breakpoint:ee,onCollapse:de,onBreakpoint:Xe}=ce,tt=P(ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:nt}=(0,Fe.useContext)(z.Gs),[_t,Xt]=(0,Fe.useState)("collapsed"in ce?ce.collapsed:be),[zt,Ze]=(0,Fe.useState)(!1);(0,Fe.useEffect)(()=>{"collapsed"in ce&&Xt(ce.collapsed)},[ce.collapsed]);const fr=(Z,x)=>{"collapsed"in ce||Xt(Z),de==null||de(Z,x)},yr=(0,Fe.useRef)();yr.current=Z=>{Ze(Z.matches),Xe==null||Xe(Z.matches),_t!==Z.matches&&fr(Z.matches,"responsive")},(0,Fe.useEffect)(()=>{function Z(y){return yr.current(y)}let x;if(typeof window!="undefined"){const{matchMedia:y}=window;if(y&&ee&&ee in $){x=y(`(max-width: ${$[ee]})`);try{x.addEventListener("change",Z)}catch(k){x.addListener(Z)}Z(x)}}return()=>{try{x==null||x.removeEventListener("change",Z)}catch(y){x==null||x.removeListener(Z)}}},[ee]),(0,Fe.useEffect)(()=>{const Z=te("ant-sider-");return nt.addSider(Z),()=>nt.removeSider(Z)},[]);const Ar=()=>{fr(!_t,"clickTrigger")},{getPrefixCls:vr}=(0,Fe.useContext)(L.E_),Ce=()=>{const Z=vr("layout-sider",ye),x=(0,m.Z)(tt,["collapsed"]),y=_t?F:ve,k=I(y)?`${y}px`:String(y),fe=parseFloat(String(F||0))===0?Fe.createElement("span",{onClick:Ar,className:v()(`${Z}-zero-width-trigger`,`${Z}-zero-width-trigger-${he?"right":"left"}`),style:U},Le||Fe.createElement(T,null)):null,re={expanded:he?Fe.createElement(d.Z,null):Fe.createElement(l.Z,null),collapsed:he?Fe.createElement(l.Z,null):Fe.createElement(d.Z,null)}[_t?"collapsed":"expanded"],Se=Le!==null?fe||Fe.createElement("div",{className:`${Z}-trigger`,onClick:Ar,style:{width:k}},Le||re):null,Be=Object.assign(Object.assign({},Ee),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),Te=v()(Z,`${Z}-${O}`,{[`${Z}-collapsed`]:!!_t,[`${Z}-has-trigger`]:ue&&Le!==null&&!fe,[`${Z}-below`]:!!zt,[`${Z}-zero-width`]:parseFloat(k)===0},_e);return Fe.createElement("aside",Object.assign({className:Te},x,{style:Be,ref:q}),Fe.createElement("div",{className:`${Z}-children`},se),ue||zt&&fe?Se:null)},It=Fe.useMemo(()=>({siderCollapsed:_t}),[_t]);return Fe.createElement(J.Provider,{value:It},Ce())})},84966:function(tn,Mt,E){"use strict";E.d(Mt,{VY:function(){return J},$_:function(){return $},h4:function(){return P},Gs:function(){return m},ZP:function(){return te}});var le=E(80702),Fe=E(92310),ae=E.n(Fe),Re=E(2738),K=E(59301),g=E(36355),R=E(83116),l=H=>{const{componentCls:G,bodyBg:ce,lightSiderBg:q,lightTriggerBg:ye,lightTriggerColor:_e}=H;return{[`${G}-sider-light`]:{background:q,[`${G}-sider-trigger`]:{color:_e,background:ye},[`${G}-sider-zero-width-trigger`]:{color:_e,background:ye,border:`1px solid ${ce}`,borderInlineStart:0}}}};const d=H=>{const{antCls:G,componentCls:ce,colorText:q,triggerColor:ye,footerBg:_e,triggerBg:Le,headerHeight:se,headerPadding:be,headerColor:O,footerPadding:Ee,triggerHeight:ue,zeroTriggerHeight:he,zeroTriggerWidth:ve,motionDurationMid:F,motionDurationSlow:U,fontSize:ee,borderRadius:de,bodyBg:Xe,headerBg:tt,siderBg:nt}=H;return{[ce]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Xe,"&, *":{boxSizing:"border-box"},[`&${ce}-has-sider`]:{flexDirection:"row",[`> ${ce}, > ${ce}-content`]:{width:0}},[`${ce}-header, &${ce}-footer`]:{flex:"0 0 auto"},[`${ce}-sider`]:{position:"relative",minWidth:0,background:nt,transition:`all ${F}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${G}-menu${G}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ue},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ue,color:ye,lineHeight:`${ue}px`,textAlign:"center",background:Le,cursor:"pointer",transition:`all ${F}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:se,insetInlineEnd:-ve,zIndex:1,width:ve,height:he,color:ye,fontSize:H.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderStartStartRadius:0,borderStartEndRadius:de,borderEndEndRadius:de,borderEndStartRadius:0,cursor:"pointer",transition:`background ${U} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${U}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ve,borderStartStartRadius:de,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:de}}}}},l(H)),{"&-rtl":{direction:"rtl"}}),[`${ce}-header`]:{height:se,padding:be,color:O,lineHeight:`${se}px`,background:tt,[`${G}-menu`]:{lineHeight:"inherit"}},[`${ce}-footer`]:{padding:Ee,color:q,fontSize:ee,background:_e},[`${ce}-content`]:{flex:"auto",minHeight:0}}};var N=(0,R.Z)("Layout",H=>[d(H)],H=>{const{colorBgLayout:G,controlHeight:ce,controlHeightLG:q,colorText:ye,controlHeightSM:_e,marginXXS:Le,colorTextLightSolid:se,colorBgContainer:be}=H,O=q*1.25;return{colorBgHeader:"#001529",colorBgBody:G,colorBgTrigger:"#002140",bodyBg:G,headerBg:"#001529",headerHeight:ce*2,headerPadding:`0 ${O}px`,headerColor:ye,footerPadding:`${_e}px ${O}px`,footerBg:G,siderBg:"#001529",triggerHeight:q+Le*2,triggerBg:"#002140",triggerColor:se,zeroTriggerWidth:q,zeroTriggerHeight:q,lightSiderBg:be,lightTriggerBg:be,lightTriggerColor:ye}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),v=function(H,G){var ce={};for(var q in H)Object.prototype.hasOwnProperty.call(H,q)&&G.indexOf(q)<0&&(ce[q]=H[q]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,q=Object.getOwnPropertySymbols(H);ye<q.length;ye++)G.indexOf(q[ye])<0&&Object.prototype.propertyIsEnumerable.call(H,q[ye])&&(ce[q[ye]]=H[q[ye]]);return ce};const m=K.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function b(H){let{suffixCls:G,tagName:ce,displayName:q}=H;return ye=>K.forwardRef((Le,se)=>K.createElement(ye,Object.assign({ref:se,suffixCls:G,tagName:ce},Le)))}const I=K.forwardRef((H,G)=>{const{prefixCls:ce,suffixCls:q,className:ye,tagName:_e}=H,Le=v(H,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:se}=K.useContext(g.E_),be=se("layout",ce),[O,Ee]=N(be),ue=q?`${be}-${q}`:be;return O(K.createElement(_e,Object.assign({className:ae()(ce||ue,ye,Ee),ref:G},Le)))}),L=K.forwardRef((H,G)=>{const{direction:ce}=K.useContext(g.E_),[q,ye]=K.useState([]),{prefixCls:_e,className:Le,rootClassName:se,children:be,hasSider:O,tagName:Ee,style:ue}=H,he=v(H,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ve=(0,Re.Z)(he,["suffixCls"]),{getPrefixCls:F,layout:U}=K.useContext(g.E_),ee=F("layout",_e),[de,Xe]=N(ee),tt=ae()(ee,{[`${ee}-has-sider`]:typeof O=="boolean"?O:q.length>0,[`${ee}-rtl`]:ce==="rtl"},U==null?void 0:U.className,Le,se,Xe),nt=K.useMemo(()=>({siderHook:{addSider:_t=>{ye(Xt=>[].concat((0,le.Z)(Xt),[_t]))},removeSider:_t=>{ye(Xt=>Xt.filter(zt=>zt!==_t))}}}),[]);return de(K.createElement(m.Provider,{value:nt},K.createElement(Ee,Object.assign({ref:G,className:tt,style:Object.assign(Object.assign({},U==null?void 0:U.style),ue)},ve),be)))}),z=b({tagName:"div",displayName:"Layout"})(L),P=b({suffixCls:"header",tagName:"header",displayName:"Header"})(I),$=b({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(I),J=b({suffixCls:"content",tagName:"main",displayName:"Content"})(I);var te=z},40875:function(tn,Mt,E){"use strict";E.d(Mt,{J:function(){return g}});var le=E(59301),Fe=E(33234),ae=E(70425),Re=function(R,T){var l={};for(var d in R)Object.prototype.hasOwnProperty.call(R,d)&&T.indexOf(d)<0&&(l[d]=R[d]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,d=Object.getOwnPropertySymbols(R);N<d.length;N++)T.indexOf(d[N])<0&&Object.prototype.propertyIsEnumerable.call(R,d[N])&&(l[d[N]]=R[d[N]]);return l};const K=le.createContext(null),g=le.forwardRef((R,T)=>{const{children:l}=R,d=Re(R,["children"]),N=le.useContext(K),v=le.useMemo(()=>Object.assign(Object.assign({},N),d),[N,d.prefixCls,d.mode,d.selectable]);return le.createElement(K.Provider,{value:v},le.createElement(Fe.BR,null,(0,ae.supportNodeRef)(l)?le.cloneElement(l,{ref:T}):l))});Mt.Z=K},20834:function(tn,Mt,E){"use strict";E.d(Mt,{default:function(){return It}});var le=E(15285),Fe=E(59301),ae=E(45818),Re=E(92310),K=E.n(Re),g=E(36355),R=function(Z,x){var y={};for(var k in Z)Object.prototype.hasOwnProperty.call(Z,k)&&x.indexOf(k)<0&&(y[k]=Z[k]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,k=Object.getOwnPropertySymbols(Z);fe<k.length;fe++)x.indexOf(k[fe])<0&&Object.prototype.propertyIsEnumerable.call(Z,k[fe])&&(y[k[fe]]=Z[k[fe]]);return y},l=Z=>{const{prefixCls:x,className:y,dashed:k}=Z,fe=R(Z,["prefixCls","className","dashed"]),{getPrefixCls:W}=Fe.useContext(g.E_),Q=W("menu",x),re=K()({[`${Q}-item-divider-dashed`]:!!k},y);return Fe.createElement(le.iz,Object.assign({className:re},fe))},d=E(11592),N=E(2738),v=E(6848),m=E(92343),I=(0,Fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),z=Z=>{var x;const{className:y,children:k,icon:fe,title:W,danger:Q}=Z,{prefixCls:re,firstLevel:Se,direction:Be,disableMenuItemTitleTooltip:Te,inlineCollapsed:Ge}=Fe.useContext(I),ut=vt=>{const jt=Fe.createElement("span",{className:`${re}-title-content`},k);return(!fe||(0,m.l$)(k)&&k.type==="span")&&k&&vt&&Se&&typeof k=="string"?Fe.createElement("div",{className:`${re}-inline-collapsed-noicon`},k.charAt(0)):jt},{siderCollapsed:$e}=Fe.useContext(ae.D);let Je=W;typeof W=="undefined"?Je=Se?k:"":W===!1&&(Je="");const At={title:Je};!$e&&!Ge&&(At.title=null,At.open=!1);const ze=(0,d.Z)(k).length;let He=Fe.createElement(le.ck,Object.assign({},(0,N.Z)(Z,["title","icon","danger"]),{className:K()({[`${re}-item-danger`]:Q,[`${re}-item-only-child`]:(fe?ze+1:ze)===1},y),title:typeof W=="string"?W:void 0}),(0,m.Tm)(fe,{className:K()((0,m.l$)(fe)?(x=fe.props)===null||x===void 0?void 0:x.className:"",`${re}-item-icon`)}),ut(Ge));return Te||(He=Fe.createElement(v.Z,Object.assign({},At,{placement:Be==="rtl"?"left":"right",overlayClassName:`${re}-inline-collapsed-tooltip`}),He)),He},$=Z=>{var x;const{popupClassName:y,icon:k,title:fe,theme:W}=Z,Q=Fe.useContext(I),{prefixCls:re,inlineCollapsed:Se,theme:Be}=Q,Te=(0,le.Xl)();let Ge;if(!k)Ge=Se&&!Te.length&&fe&&typeof fe=="string"?Fe.createElement("div",{className:`${re}-inline-collapsed-noicon`},fe.charAt(0)):Fe.createElement("span",{className:`${re}-title-content`},fe);else{const $e=(0,m.l$)(fe)&&fe.type==="span";Ge=Fe.createElement(Fe.Fragment,null,(0,m.Tm)(k,{className:K()((0,m.l$)(k)?(x=k.props)===null||x===void 0?void 0:x.className:"",`${re}-item-icon`)}),$e?fe:Fe.createElement("span",{className:`${re}-title-content`},fe))}const ut=Fe.useMemo(()=>Object.assign(Object.assign({},Q),{firstLevel:!1}),[Q]);return Fe.createElement(I.Provider,{value:ut},Fe.createElement(le.Wd,Object.assign({},(0,N.Z)(Z,["icon"]),{title:Ge,popupClassName:K()(re,y,`${re}-${W||Be}`)})))},J=E(18785),te=E(70425),H=E(62892),G=E(40875),ce=function(Z,x){var y={};for(var k in Z)Object.prototype.hasOwnProperty.call(Z,k)&&x.indexOf(k)<0&&(y[k]=Z[k]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,k=Object.getOwnPropertySymbols(Z);fe<k.length;fe++)x.indexOf(k[fe])<0&&Object.prototype.propertyIsEnumerable.call(Z,k[fe])&&(y[k[fe]]=Z[k[fe]]);return y};function q(Z){return(Z||[]).map((x,y)=>{if(x&&typeof x=="object"){const k=x,{label:fe,children:W,key:Q,type:re}=k,Se=ce(k,["label","children","key","type"]),Be=Q!=null?Q:`tmp-${y}`;return W||re==="group"?re==="group"?Fe.createElement(le.BW,Object.assign({key:Be},Se,{title:fe}),q(W)):Fe.createElement($,Object.assign({key:Be},Se,{title:fe}),q(W)):re==="divider"?Fe.createElement(l,Object.assign({key:Be},Se)):Fe.createElement(z,Object.assign({key:Be},Se),fe)}return null}).filter(x=>x)}function ye(Z){return Fe.useMemo(()=>Z&&q(Z),[Z])}var _e=E(64993),Le=E(17313),se=E(8378),be=E(13826),O=E(29878),Ee=E(83116),ue=E(37613),ve=Z=>{const{componentCls:x,motionDurationSlow:y,horizontalLineHeight:k,colorSplit:fe,lineWidth:W,lineType:Q,itemPaddingInline:re}=Z;return{[`${x}-horizontal`]:{lineHeight:k,border:0,borderBottom:`${W}px ${Q} ${fe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${x}-item, ${x}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:re},[`> ${x}-item:hover,
|
|
|
> ${x}-item-active,
|
|
|
> ${x}-submenu ${x}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${x}-item, ${x}-submenu-title`]:{transition:[`border-color ${y}`,`background ${y}`].join(",")},[`${x}-submenu-arrow`]:{display:"none"}}}},U=Z=>{let{componentCls:x,menuArrowOffset:y}=Z;return{[`${x}-rtl`]:{direction:"rtl"},[`${x}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${x}-rtl${x}-vertical,
|
|
|
${x}-submenu-rtl ${x}-vertical`]:{[`${x}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${y})`},"&::after":{transform:`rotate(45deg) translateY(${y})`}}}}};const ee=Z=>Object.assign({},(0,Le.oN)(Z));var Xe=(Z,x)=>{const{componentCls:y,itemColor:k,itemSelectedColor:fe,groupTitleColor:W,itemBg:Q,subMenuItemBg:re,itemSelectedBg:Se,activeBarHeight:Be,activeBarWidth:Te,activeBarBorderWidth:Ge,motionDurationSlow:ut,motionEaseInOut:$e,motionEaseOut:Je,itemPaddingInline:At,motionDurationMid:ze,itemHoverColor:He,lineType:vt,colorSplit:jt,itemDisabledColor:Dt,dangerItemColor:lr,dangerItemHoverColor:gr,dangerItemSelectedColor:ne,dangerItemActiveBg:we,dangerItemSelectedBg:Vt,itemHoverBg:Ue,itemActiveBg:it,menuSubMenuBg:Rr,horizontalItemSelectedColor:Tt,horizontalItemSelectedBg:Rt,horizontalItemBorderRadius:$t,horizontalItemHoverBg:qe,popupBg:pt}=Z;return{[`${y}-${x}, ${y}-${x} > ${y}`]:{color:k,background:Q,[`&${y}-root:focus-visible`]:Object.assign({},ee(Z)),[`${y}-item-group-title`]:{color:W},[`${y}-submenu-selected`]:{[`> ${y}-submenu-title`]:{color:fe}},[`${y}-item-disabled, ${y}-submenu-disabled`]:{color:`${Dt} !important`},[`${y}-item:not(${y}-item-selected):not(${y}-submenu-selected)`]:{[`&:hover, > ${y}-submenu-title:hover`]:{color:He}},[`&:not(${y}-horizontal)`]:{[`${y}-item:not(${y}-item-selected)`]:{"&:hover":{backgroundColor:Ue},"&:active":{backgroundColor:it}},[`${y}-submenu-title`]:{"&:hover":{backgroundColor:Ue},"&:active":{backgroundColor:it}}},[`${y}-item-danger`]:{color:lr,[`&${y}-item:hover`]:{[`&:not(${y}-item-selected):not(${y}-submenu-selected)`]:{color:gr}},[`&${y}-item:active`]:{background:we}},[`${y}-item a`]:{"&, &:hover":{color:"inherit"}},[`${y}-item-selected`]:{color:fe,[`&${y}-item-danger`]:{color:ne},"a, a:hover":{color:"inherit"}},[`& ${y}-item-selected`]:{backgroundColor:Se,[`&${y}-item-danger`]:{backgroundColor:Vt}},[`${y}-item, ${y}-submenu-title`]:{[`&:not(${y}-item-disabled):focus-visible`]:Object.assign({},ee(Z))},[`&${y}-submenu > ${y}`]:{backgroundColor:Rr},[`&${y}-popup > ${y}`]:{backgroundColor:pt},[`&${y}-horizontal`]:Object.assign(Object.assign({},x==="dark"?{borderBottom:0}:{}),{[`> ${y}-item, > ${y}-submenu`]:{top:Ge,marginTop:-Ge,marginBottom:0,borderRadius:$t,"&::after":{position:"absolute",insetInline:At,bottom:0,borderBottom:`${Be}px solid transparent`,transition:`border-color ${ut} ${$e}`,content:'""'},"&:hover, &-active, &-open":{background:qe,"&::after":{borderBottomWidth:Be,borderBottomColor:Tt}},"&-selected":{color:Tt,backgroundColor:Rt,"&:hover":{backgroundColor:Rt},"&::after":{borderBottomWidth:Be,borderBottomColor:Tt}}}}),[`&${y}-root`]:{[`&${y}-inline, &${y}-vertical`]:{borderInlineEnd:`${Ge}px ${vt} ${jt}`}},[`&${y}-inline`]:{[`${y}-sub${y}-inline`]:{background:re},[`${y}-item, ${y}-submenu-title`]:Ge&&Te?{width:`calc(100% + ${Ge}px)`}:{},[`${y}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Te}px solid ${fe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ze} ${Je}`,`opacity ${ze} ${Je}`].join(","),content:'""'},[`&${y}-item-danger`]:{"&::after":{borderInlineEndColor:ne}}},[`${y}-selected, ${y}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ze} ${$e}`,`opacity ${ze} ${$e}`].join(",")}}}}}};const tt=Z=>{const{componentCls:x,itemHeight:y,itemMarginInline:k,padding:fe,menuArrowSize:W,marginXS:Q,itemMarginBlock:re}=Z,Se=fe+W+Q;return{[`${x}-item`]:{position:"relative",overflow:"hidden"},[`${x}-item, ${x}-submenu-title`]:{height:y,lineHeight:`${y}px`,paddingInline:fe,overflow:"hidden",textOverflow:"ellipsis",marginInline:k,marginBlock:re,width:`calc(100% - ${k*2}px)`},[`> ${x}-item,
|
|
|
> ${x}-submenu > ${x}-submenu-title`]:{height:y,lineHeight:`${y}px`},[`${x}-item-group-list ${x}-submenu-title,
|
|
|
${x}-submenu-title`]:{paddingInlineEnd:Se}}};var _t=Z=>{const{componentCls:x,iconCls:y,itemHeight:k,colorTextLightSolid:fe,dropdownWidth:W,controlHeightLG:Q,motionDurationMid:re,motionEaseOut:Se,paddingXL:Be,itemMarginInline:Te,fontSizeLG:Ge,motionDurationSlow:ut,paddingXS:$e,boxShadowSecondary:Je,collapsedWidth:At,collapsedIconSize:ze}=Z,He={height:k,lineHeight:`${k}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[x]:{"&-inline, &-vertical":Object.assign({[`&${x}-root`]:{boxShadow:"none"}},tt(Z))},[`${x}-submenu-popup`]:{[`${x}-vertical`]:Object.assign(Object.assign({},tt(Z)),{boxShadow:Je})}},{[`${x}-submenu-popup ${x}-vertical${x}-sub`]:{minWidth:W,maxHeight:`calc(100vh - ${Q*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${x}-inline`]:{width:"100%",[`&${x}-root`]:{[`${x}-item, ${x}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ut}`,`background ${ut}`,`padding ${re} ${Se}`].join(","),[`> ${x}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${x}-sub${x}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${x}-submenu > ${x}-submenu-title`]:He,[`& ${x}-item-group-title`]:{paddingInlineStart:Be}},[`${x}-item`]:He}},{[`${x}-inline-collapsed`]:{width:At,[`&${x}-root`]:{[`${x}-item, ${x}-submenu ${x}-submenu-title`]:{[`> ${x}-inline-collapsed-noicon`]:{fontSize:Ge,textAlign:"center"}}},[`> ${x}-item,
|
|
|
> ${x}-item-group > ${x}-item-group-list > ${x}-item,
|
|
|
> ${x}-item-group > ${x}-item-group-list > ${x}-submenu > ${x}-submenu-title,
|
|
|
> ${x}-submenu > ${x}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ge/2}px - ${Te}px)`,textOverflow:"clip",[`
|
|
|
${x}-submenu-arrow,
|
|
|
${x}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${x}-item-icon, ${y}`]:{margin:0,fontSize:ze,lineHeight:`${k}px`,"+ span":{display:"inline-block",opacity:0}}},[`${x}-item-icon, ${y}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${x}-item-icon, ${y}`]:{display:"none"},"a, a:hover":{color:fe}},[`${x}-item-group-title`]:Object.assign(Object.assign({},Le.vS),{paddingInline:$e})}}]};const Xt=Z=>{const{componentCls:x,motionDurationSlow:y,motionDurationMid:k,motionEaseInOut:fe,motionEaseOut:W,iconCls:Q,iconSize:re,iconMarginInlineEnd:Se}=Z;return{[`${x}-item, ${x}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${y}`,`background ${y}`,`padding ${y} ${fe}`].join(","),[`${x}-item-icon, ${Q}`]:{minWidth:re,fontSize:re,transition:[`font-size ${k} ${W}`,`margin ${y} ${fe}`,`color ${y}`].join(","),"+ span":{marginInlineStart:Se,opacity:1,transition:[`opacity ${y} ${fe}`,`margin ${y}`,`color ${y}`].join(",")}},[`${x}-item-icon`]:Object.assign({},(0,Le.Ro)()),[`&${x}-item-only-child`]:{[`> ${Q}, > ${x}-item-icon`]:{marginInlineEnd:0}}},[`${x}-item-disabled, ${x}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${x}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zt=Z=>{const{componentCls:x,motionDurationSlow:y,motionEaseInOut:k,borderRadius:fe,menuArrowSize:W,menuArrowOffset:Q}=Z;return{[`${x}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Z.margin,width:W,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${y} ${k}, opacity ${y}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:W*.6,height:W*.15,backgroundColor:"currentcolor",borderRadius:fe,transition:[`background ${y} ${k}`,`transform ${y} ${k}`,`top ${y} ${k}`,`color ${y} ${k}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Q})`},"&::after":{transform:`rotate(-45deg) translateY(${Q})`}}}}},Ze=Z=>{const{antCls:x,componentCls:y,fontSize:k,motionDurationSlow:fe,motionDurationMid:W,motionEaseInOut:Q,paddingXS:re,padding:Se,colorSplit:Be,lineWidth:Te,zIndexPopup:Ge,borderRadiusLG:ut,subMenuItemBorderRadius:$e,menuArrowSize:Je,menuArrowOffset:At,lineType:ze,menuPanelMaskInset:He,groupTitleLineHeight:vt,groupTitleFontSize:jt}=Z;return[{"":{[`${y}`]:Object.assign(Object.assign({},(0,Le.dF)()),{"&-hidden":{display:"none"}})},[`${y}-submenu-hidden`]:{display:"none"}},{[y]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)(Z)),(0,Le.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:k,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${fe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${y}-item`]:{flex:"none"}},[`${y}-item, ${y}-submenu, ${y}-submenu-title`]:{borderRadius:Z.itemBorderRadius},[`${y}-item-group-title`]:{padding:`${re}px ${Se}px`,fontSize:jt,lineHeight:vt,transition:`all ${fe}`},[`&-horizontal ${y}-submenu`]:{transition:[`border-color ${fe} ${Q}`,`background ${fe} ${Q}`].join(",")},[`${y}-submenu, ${y}-submenu-inline`]:{transition:[`border-color ${fe} ${Q}`,`background ${fe} ${Q}`,`padding ${W} ${Q}`].join(",")},[`${y}-submenu ${y}-sub`]:{cursor:"initial",transition:[`background ${fe} ${Q}`,`padding ${fe} ${Q}`].join(",")},[`${y}-title-content`]:{transition:`color ${fe}`},[`${y}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${y}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Be,borderStyle:ze,borderWidth:0,borderTopWidth:Te,marginBlock:Te,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Xt(Z)),{[`${y}-item-group`]:{[`${y}-item-group-list`]:{margin:0,padding:0,[`${y}-item, ${y}-submenu-title`]:{paddingInline:`${k*2}px ${Se}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ge,borderRadius:ut,boxShadow:"none",transformOrigin:"0 0",[`&${y}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${He}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:He},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Z.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Z.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Z.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Z.paddingXS},[`> ${y}`]:Object.assign(Object.assign(Object.assign({borderRadius:ut},Xt(Z)),zt(Z)),{[`${y}-item, ${y}-submenu > ${y}-submenu-title`]:{borderRadius:$e},[`${y}-submenu-title::after`]:{transition:`transform ${fe} ${Q}`}})}}),zt(Z)),{[`&-inline-collapsed ${y}-submenu-arrow,
|
|
|
&-inline ${y}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${At})`},"&::after":{transform:`rotate(45deg) translateX(-${At})`}},[`${y}-submenu-open${y}-submenu-inline > ${y}-submenu-title > ${y}-submenu-arrow`]:{transform:`translateY(-${Je*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${At})`},"&::before":{transform:`rotate(45deg) translateX(${At})`}}})},{[`${x}-layout-header`]:{[y]:{lineHeight:"inherit"}}}]};var fr=(Z,x)=>(0,Ee.Z)("Menu",k=>{if(x===!1)return[];const{colorBgElevated:fe,colorPrimary:W,colorTextLightSolid:Q,controlHeightLG:re,fontSize:Se,darkItemColor:Be,darkDangerItemColor:Te,darkItemBg:Ge,darkSubMenuItemBg:ut,darkItemSelectedColor:$e,darkItemSelectedBg:Je,darkDangerItemSelectedBg:At,darkItemHoverBg:ze,darkGroupTitleColor:He,darkItemHoverColor:vt,darkItemDisabledColor:jt,darkDangerItemHoverColor:Dt,darkDangerItemSelectedColor:lr,darkDangerItemActiveBg:gr}=k,ne=Se/7*5,we=(0,ue.TS)(k,{menuArrowSize:ne,menuHorizontalHeight:re*1.15,menuArrowOffset:`${ne*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:fe}),Vt=(0,ue.TS)(we,{itemColor:Be,itemHoverColor:vt,groupTitleColor:He,itemSelectedColor:$e,itemBg:Ge,popupBg:Ge,subMenuItemBg:ut,itemActiveBg:"transparent",itemSelectedBg:Je,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ze,itemDisabledColor:jt,dangerItemColor:Te,dangerItemHoverColor:Dt,dangerItemSelectedColor:lr,dangerItemActiveBg:gr,dangerItemSelectedBg:At,menuSubMenuBg:ut,horizontalItemSelectedColor:Q,horizontalItemSelectedBg:W});return[Ze(we),ve(we),_t(we),Xe(we,"light"),Xe(Vt,"dark"),U(we),(0,se.Z)(we),(0,be.oN)(we,"slide-up"),(0,be.oN)(we,"slide-down"),(0,O._y)(we,"zoom-big")]},k=>{const{colorPrimary:fe,colorError:W,colorTextDisabled:Q,colorErrorBg:re,colorText:Se,colorTextDescription:Be,colorBgContainer:Te,colorFillAlter:Ge,colorFillContent:ut,lineWidth:$e,lineWidthBold:Je,controlItemBgActive:At,colorBgTextHover:ze,controlHeightLG:He,lineHeight:vt,colorBgElevated:jt,marginXXS:Dt,padding:lr,fontSize:gr,controlHeightSM:ne,fontSizeLG:we,colorTextLightSolid:Vt,colorErrorHover:Ue}=k,it=new _e.C(Vt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:k.zIndexPopupBase+50,radiusItem:k.borderRadiusLG,itemBorderRadius:k.borderRadiusLG,radiusSubMenuItem:k.borderRadiusSM,subMenuItemBorderRadius:k.borderRadiusSM,colorItemText:Se,itemColor:Se,colorItemTextHover:Se,itemHoverColor:Se,colorItemTextHoverHorizontal:fe,horizontalItemHoverColor:fe,colorGroupTitle:Be,groupTitleColor:Be,colorItemTextSelected:fe,itemSelectedColor:fe,colorItemTextSelectedHorizontal:fe,horizontalItemSelectedColor:fe,colorItemBg:Te,itemBg:Te,colorItemBgHover:ze,itemHoverBg:ze,colorItemBgActive:ut,itemActiveBg:At,colorSubItemBg:Ge,subMenuItemBg:Ge,colorItemBgSelected:At,itemSelectedBg:At,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Je,activeBarHeight:Je,colorActiveBarBorderSize:$e,activeBarBorderWidth:$e,colorItemTextDisabled:Q,itemDisabledColor:Q,colorDangerItemText:W,dangerItemColor:W,colorDangerItemTextHover:W,dangerItemHoverColor:W,colorDangerItemTextSelected:W,dangerItemSelectedColor:W,colorDangerItemBgActive:re,dangerItemActiveBg:re,colorDangerItemBgSelected:re,dangerItemSelectedBg:re,itemMarginInline:k.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:He,groupTitleLineHeight:vt,collapsedWidth:He*2,popupBg:jt,itemMarginBlock:Dt,itemPaddingInline:lr,horizontalLineHeight:`${He*1.15}px`,iconSize:gr,iconMarginInlineEnd:ne-gr,collapsedIconSize:we,groupTitleFontSize:gr,darkItemDisabledColor:new _e.C(Vt).setAlpha(.25).toRgbString(),darkItemColor:it,darkDangerItemColor:W,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Vt,darkItemSelectedBg:fe,darkDangerItemSelectedBg:W,darkItemHoverBg:"transparent",darkGroupTitleColor:it,darkItemHoverColor:Vt,darkDangerItemHoverColor:Ue,darkDangerItemSelectedColor:Vt,darkDangerItemActiveBg:W}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Z),yr=function(Z,x){var y={};for(var k in Z)Object.prototype.hasOwnProperty.call(Z,k)&&x.indexOf(k)<0&&(y[k]=Z[k]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,k=Object.getOwnPropertySymbols(Z);fe<k.length;fe++)x.indexOf(k[fe])<0&&Object.prototype.propertyIsEnumerable.call(Z,k[fe])&&(y[k[fe]]=Z[k[fe]]);return y},vr=(0,Fe.forwardRef)((Z,x)=>{var y,k;const fe=Fe.useContext(G.Z),W=fe||{},{getPrefixCls:Q,getPopupContainer:re,direction:Se,menu:Be}=Fe.useContext(g.E_),Te=Q(),{prefixCls:Ge,className:ut,style:$e,theme:Je="light",expandIcon:At,_internalDisableMenuItemTitleTooltip:ze,inlineCollapsed:He,siderCollapsed:vt,items:jt,children:Dt,rootClassName:lr,mode:gr,selectable:ne,onClick:we,overflowedIndicatorPopupClassName:Vt}=Z,Ue=yr(Z,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),it=(0,N.Z)(Ue,["collapsedWidth"]),Rr=ye(jt)||Dt;(y=W.validator)===null||y===void 0||y.call(W,{mode:gr});const Tt=(0,te.useEvent)(function(){var On;we==null||we.apply(void 0,arguments),(On=W.onClick)===null||On===void 0||On.call(W)}),Rt=W.mode||gr,$t=ne!=null?ne:W.selectable,qe=Fe.useMemo(()=>vt!==void 0?vt:He,[He,vt]),pt={horizontal:{motionName:`${Te}-slide-up`},inline:(0,H.Z)(Te),other:{motionName:`${Te}-zoom-big`}},rt=Q("menu",Ge||W.prefixCls),[Ht,Oe]=fr(rt,!fe),$r=K()(`${rt}-${Je}`,Be==null?void 0:Be.className,ut);let Bt;if(typeof At=="function")Bt=At;else if(At===null||At===!1)Bt=null;else if(W.expandIcon===null||W.expandIcon===!1)Bt=null;else{const On=At!=null?At:W.expandIcon;Bt=(0,m.Tm)(On,{className:K()(`${rt}-submenu-expand-icon`,(0,m.l$)(On)?(k=On.props)===null||k===void 0?void 0:k.className:"")})}const gn=Fe.useMemo(()=>({prefixCls:rt,inlineCollapsed:qe||!1,direction:Se,firstLevel:!0,theme:Je,mode:Rt,disableMenuItemTitleTooltip:ze}),[rt,qe,Se,ze,Je]);return Ht(Fe.createElement(G.Z.Provider,{value:null},Fe.createElement(I.Provider,{value:gn},Fe.createElement(le.ZP,Object.assign({getPopupContainer:re,overflowedIndicator:Fe.createElement(J.Z,null),overflowedIndicatorPopupClassName:K()(rt,`${rt}-${Je}`,Vt),mode:Rt,selectable:$t,onClick:Tt},it,{inlineCollapsed:qe,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),$e),className:$r,prefixCls:rt,direction:Se,defaultMotions:pt,expandIcon:Bt,ref:x,rootClassName:K()(lr,Oe)}),Rr))))});const Ce=(0,Fe.forwardRef)((Z,x)=>{const y=(0,Fe.useRef)(null),k=Fe.useContext(ae.D);return(0,Fe.useImperativeHandle)(x,()=>({menu:y.current,focus:fe=>{var W;(W=y.current)===null||W===void 0||W.focus(fe)}})),Fe.createElement(vr,Object.assign({ref:y},Z,k))});Ce.Item=z,Ce.SubMenu=$,Ce.Divider=l,Ce.ItemGroup=le.BW;var It=Ce},58421:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return W}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Re=ae,K=E(7657),g=function(re,Se){return Fe.createElement(K.Z,(0,le.Z)({},re,{ref:Se,icon:Re}))},R=Fe.forwardRef(g),T=R,l=E(49198),d=E(33853),N=E(38819),v=E(92310),m=E.n(v),b=E(49618),I=E(77321),L=E(96949),z=E(55090),P=E(77205),$=E(38793),J=E(26112),te={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},H=te,G=E(91735),ce=function(Q){(0,P.Z)(Se,Q);var re=(0,$.Z)(Se);function Se(){var Be;(0,L.Z)(this,Se);for(var Te=arguments.length,Ge=new Array(Te),ut=0;ut<Te;ut++)Ge[ut]=arguments[ut];return Be=re.call.apply(re,[this].concat(Ge)),Be.state={goInputText:""},Be.getValidValue=function(){var $e=Be.state.goInputText;return!$e||Number.isNaN($e)?void 0:Number($e)},Be.buildOptionText=function($e){return"".concat($e," ").concat(Be.props.locale.items_per_page)},Be.changeSize=function($e){Be.props.changeSize(Number($e))},Be.handleChange=function($e){Be.setState({goInputText:$e.target.value})},Be.handleBlur=function($e){var Je=Be.props,At=Je.goButton,ze=Je.quickGo,He=Je.rootPrefixCls,vt=Be.state.goInputText;At||vt===""||(Be.setState({goInputText:""}),!($e.relatedTarget&&($e.relatedTarget.className.indexOf("".concat(He,"-item-link"))>=0||$e.relatedTarget.className.indexOf("".concat(He,"-item"))>=0))&&ze(Be.getValidValue()))},Be.go=function($e){var Je=Be.state.goInputText;Je!==""&&($e.keyCode===H.ENTER||$e.type==="click")&&(Be.setState({goInputText:""}),Be.props.quickGo(Be.getValidValue()))},Be}return(0,z.Z)(Se,[{key:"getPageSizeOptions",value:function(){var Te=this.props,Ge=Te.pageSize,ut=Te.pageSizeOptions;return ut.some(function($e){return $e.toString()===Ge.toString()})?ut:ut.concat([Ge.toString()]).sort(function($e,Je){var At=Number.isNaN(Number($e))?0:Number($e),ze=Number.isNaN(Number(Je))?0:Number(Je);return At-ze})}},{key:"render",value:function(){var Te=this,Ge=this.props,ut=Ge.pageSize,$e=Ge.locale,Je=Ge.rootPrefixCls,At=Ge.changeSize,ze=Ge.quickGo,He=Ge.goButton,vt=Ge.selectComponentClass,jt=Ge.buildOptionText,Dt=Ge.selectPrefixCls,lr=Ge.disabled,gr=this.state.goInputText,ne="".concat(Je,"-options"),we=vt,Vt=null,Ue=null,it=null;if(!At&&!ze)return null;var Rr=this.getPageSizeOptions();if(At&&we){var Tt=Rr.map(function(Rt,$t){return Fe.createElement(we.Option,{key:$t,value:Rt.toString()},(jt||Te.buildOptionText)(Rt))});Vt=Fe.createElement(we,{disabled:lr,prefixCls:Dt,showSearch:!1,className:"".concat(ne,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(ut||Rr[0]).toString(),onChange:this.changeSize,getPopupContainer:function($t){return $t.parentNode},"aria-label":$e.page_size,defaultOpen:!1},Tt)}return ze&&(He&&(it=typeof He=="boolean"?Fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:lr,className:"".concat(ne,"-quick-jumper-button")},$e.jump_to_confirm):Fe.createElement("span",{onClick:this.go,onKeyUp:this.go},He)),Ue=Fe.createElement("div",{className:"".concat(ne,"-quick-jumper")},$e.jump_to,Fe.createElement("input",{disabled:lr,type:"text",value:gr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":$e.page}),$e.page,it)),Fe.createElement("li",{className:"".concat(ne)},Vt,Ue)}}]),Se}(Fe.Component);ce.defaultProps={pageSizeOptions:["10","20","50","100"]};var q=ce,ye=function(re){var Se,Be=re.rootPrefixCls,Te=re.page,Ge=re.active,ut=re.className,$e=re.showTitle,Je=re.onClick,At=re.onKeyPress,ze=re.itemRender,He="".concat(Be,"-item"),vt=m()(He,"".concat(He,"-").concat(Te),(Se={},(0,b.Z)(Se,"".concat(He,"-active"),Ge),(0,b.Z)(Se,"".concat(He,"-disabled"),!Te),(0,b.Z)(Se,re.className,ut),Se)),jt=function(){Je(Te)},Dt=function(ne){At(ne,Je,Te)},lr=ze(Te,"page",Fe.createElement("a",{rel:"nofollow"},Te));return lr?Fe.createElement("li",{title:$e?Te.toString():null,className:vt,onClick:jt,onKeyPress:Dt,tabIndex:0},lr):null},_e=ye;function Le(){}function se(Q){var re=Number(Q);return typeof re=="number"&&!Number.isNaN(re)&&isFinite(re)&&Math.floor(re)===re}var be=function(re,Se,Be){return Be};function O(Q,re,Se){var Be=typeof Q=="undefined"?re.pageSize:Q;return Math.floor((Se.total-1)/Be)+1}var Ee=function(Q){(0,P.Z)(Se,Q);var re=(0,$.Z)(Se);function Se(Be){var Te;(0,L.Z)(this,Se),Te=re.call(this,Be),Te.paginationNode=Fe.createRef(),Te.getJumpPrevPage=function(){return Math.max(1,Te.state.current-(Te.props.showLessItems?3:5))},Te.getJumpNextPage=function(){return Math.min(O(void 0,Te.state,Te.props),Te.state.current+(Te.props.showLessItems?3:5))},Te.getItemIcon=function(At,ze){var He=Te.props.prefixCls,vt=At||Fe.createElement("button",{type:"button","aria-label":ze,className:"".concat(He,"-item-link")});return typeof At=="function"&&(vt=Fe.createElement(At,(0,I.Z)({},Te.props))),vt},Te.isValid=function(At){var ze=Te.props.total;return se(At)&&At!==Te.state.current&&se(ze)&&ze>0},Te.shouldDisplayQuickJumper=function(){var At=Te.props,ze=At.showQuickJumper,He=At.total,vt=Te.state.pageSize;return He<=vt?!1:ze},Te.handleKeyDown=function(At){(At.keyCode===H.ARROW_UP||At.keyCode===H.ARROW_DOWN)&&At.preventDefault()},Te.handleKeyUp=function(At){var ze=Te.getValidValue(At),He=Te.state.currentInputValue;ze!==He&&Te.setState({currentInputValue:ze}),At.keyCode===H.ENTER?Te.handleChange(ze):At.keyCode===H.ARROW_UP?Te.handleChange(ze-1):At.keyCode===H.ARROW_DOWN&&Te.handleChange(ze+1)},Te.handleBlur=function(At){var ze=Te.getValidValue(At);Te.handleChange(ze)},Te.changePageSize=function(At){var ze=Te.state.current,He=O(At,Te.state,Te.props);ze=ze>He?He:ze,He===0&&(ze=Te.state.current),typeof At=="number"&&("pageSize"in Te.props||Te.setState({pageSize:At}),"current"in Te.props||Te.setState({current:ze,currentInputValue:ze})),Te.props.onShowSizeChange(ze,At),"onChange"in Te.props&&Te.props.onChange&&Te.props.onChange(ze,At)},Te.handleChange=function(At){var ze=Te.props,He=ze.disabled,vt=ze.onChange,jt=Te.state,Dt=jt.pageSize,lr=jt.current,gr=jt.currentInputValue;if(Te.isValid(At)&&!He){var ne=O(void 0,Te.state,Te.props),we=At;return At>ne?we=ne:At<1&&(we=1),"current"in Te.props||Te.setState({current:we}),we!==gr&&Te.setState({currentInputValue:we}),vt(we,Dt),we}return lr},Te.prev=function(){Te.hasPrev()&&Te.handleChange(Te.state.current-1)},Te.next=function(){Te.hasNext()&&Te.handleChange(Te.state.current+1)},Te.jumpPrev=function(){Te.handleChange(Te.getJumpPrevPage())},Te.jumpNext=function(){Te.handleChange(Te.getJumpNextPage())},Te.hasPrev=function(){return Te.state.current>1},Te.hasNext=function(){return Te.state.current<O(void 0,Te.state,Te.props)},Te.runIfEnter=function(At,ze){if(At.key==="Enter"||At.charCode===13){for(var He=arguments.length,vt=new Array(He>2?He-2:0),jt=2;jt<He;jt++)vt[jt-2]=arguments[jt];ze.apply(void 0,vt)}},Te.runIfEnterPrev=function(At){Te.runIfEnter(At,Te.prev)},Te.runIfEnterNext=function(At){Te.runIfEnter(At,Te.next)},Te.runIfEnterJumpPrev=function(At){Te.runIfEnter(At,Te.jumpPrev)},Te.runIfEnterJumpNext=function(At){Te.runIfEnter(At,Te.jumpNext)},Te.handleGoTO=function(At){(At.keyCode===H.ENTER||At.type==="click")&&Te.handleChange(Te.state.currentInputValue)},Te.renderPrev=function(At){var ze=Te.props,He=ze.prevIcon,vt=ze.itemRender,jt=vt(At,"prev",Te.getItemIcon(He,"prev page")),Dt=!Te.hasPrev();return(0,Fe.isValidElement)(jt)?(0,Fe.cloneElement)(jt,{disabled:Dt}):jt},Te.renderNext=function(At){var ze=Te.props,He=ze.nextIcon,vt=ze.itemRender,jt=vt(At,"next",Te.getItemIcon(He,"next page")),Dt=!Te.hasNext();return(0,Fe.isValidElement)(jt)?(0,Fe.cloneElement)(jt,{disabled:Dt}):jt};var Ge=Be.onChange!==Le,ut="current"in Be;ut&&!Ge&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var $e=Be.defaultCurrent;"current"in Be&&($e=Be.current);var Je=Be.defaultPageSize;return"pageSize"in Be&&(Je=Be.pageSize),$e=Math.min($e,O(Je,void 0,Be)),Te.state={current:$e,currentInputValue:$e,pageSize:Je},Te}return(0,z.Z)(Se,[{key:"componentDidUpdate",value:function(Te,Ge){var ut=this.props.prefixCls;if(Ge.current!==this.state.current&&this.paginationNode.current){var $e=this.paginationNode.current.querySelector(".".concat(ut,"-item-").concat(Ge.current));if($e&&document.activeElement===$e){var Je;$e==null||(Je=$e.blur)===null||Je===void 0||Je.call($e)}}}},{key:"getValidValue",value:function(Te){var Ge=Te.target.value,ut=O(void 0,this.state,this.props),$e=this.state.currentInputValue,Je;return Ge===""?Je=Ge:Number.isNaN(Number(Ge))?Je=$e:Ge>=ut?Je=ut:Je=Number(Ge),Je}},{key:"getShowSizeChanger",value:function(){var Te=this.props,Ge=Te.showSizeChanger,ut=Te.total,$e=Te.totalBoundaryShowSizeChanger;return typeof Ge!="undefined"?Ge:ut>$e}},{key:"render",value:function(){var Te=this.props,Ge=Te.prefixCls,ut=Te.className,$e=Te.style,Je=Te.disabled,At=Te.hideOnSinglePage,ze=Te.total,He=Te.locale,vt=Te.showQuickJumper,jt=Te.showLessItems,Dt=Te.showTitle,lr=Te.showTotal,gr=Te.simple,ne=Te.itemRender,we=Te.showPrevNextJumpers,Vt=Te.jumpPrevIcon,Ue=Te.jumpNextIcon,it=Te.selectComponentClass,Rr=Te.selectPrefixCls,Tt=Te.pageSizeOptions,Rt=this.state,$t=Rt.current,qe=Rt.pageSize,pt=Rt.currentInputValue;if(At===!0&&ze<=qe)return null;var rt=O(void 0,this.state,this.props),Ht=[],Oe=null,$r=null,Bt=null,gn=null,On=null,hi=vt&&vt.goButton,ti=jt?1:2,En=$t-1>0?$t-1:0,Dn=$t+1<rt?$t+1:rt,Ut=(0,J.Z)(this.props,{aria:!0,data:!0}),Dr=lr&&Fe.createElement("li",{className:"".concat(Ge,"-total-text")},lr(ze,[ze===0?0:($t-1)*qe+1,$t*qe>ze?ze:$t*qe]));if(gr){hi&&(typeof hi=="boolean"?On=Fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},He.jump_to_confirm):On=Fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},hi),On=Fe.createElement("li",{title:Dt?"".concat(He.jump_to).concat($t,"/").concat(rt):null,className:"".concat(Ge,"-simple-pager")},On));var Pr=this.renderPrev(En);return Fe.createElement("ul",(0,le.Z)({className:m()(Ge,"".concat(Ge,"-simple"),(0,b.Z)({},"".concat(Ge,"-disabled"),Je),ut),style:$e,ref:this.paginationNode},Ut),Dr,Pr?Fe.createElement("li",{title:Dt?He.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:m()("".concat(Ge,"-prev"),(0,b.Z)({},"".concat(Ge,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Pr):null,Fe.createElement("li",{title:Dt?"".concat($t,"/").concat(rt):null,className:"".concat(Ge,"-simple-pager")},Fe.createElement("input",{type:"text",value:pt,disabled:Je,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Fe.createElement("span",{className:"".concat(Ge,"-slash")},"/"),rt),Fe.createElement("li",{title:Dt?He.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:m()("".concat(Ge,"-next"),(0,b.Z)({},"".concat(Ge,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Dn)),On)}if(rt<=3+ti*2){var St={locale:He,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Dt,itemRender:ne};rt||Ht.push(Fe.createElement(_e,(0,le.Z)({},St,{key:"noPager",page:1,className:"".concat(Ge,"-item-disabled")})));for(var mt=1;mt<=rt;mt+=1){var mr=$t===mt;Ht.push(Fe.createElement(_e,(0,le.Z)({},St,{key:mt,page:mt,active:mr})))}}else{var xr=jt?He.prev_3:He.prev_5,on=jt?He.next_3:He.next_5,kr=ne(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Vt,"prev page")),un=ne(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ue,"next page"));we&&(Oe=kr?Fe.createElement("li",{title:Dt?xr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:m()("".concat(Ge,"-jump-prev"),(0,b.Z)({},"".concat(Ge,"-jump-prev-custom-icon"),!!Vt))},kr):null,$r=un?Fe.createElement("li",{title:Dt?on:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:m()("".concat(Ge,"-jump-next"),(0,b.Z)({},"".concat(Ge,"-jump-next-custom-icon"),!!Ue))},un):null),gn=Fe.createElement(_e,{locale:He,last:!0,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:rt,page:rt,active:!1,showTitle:Dt,itemRender:ne}),Bt=Fe.createElement(_e,{locale:He,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Dt,itemRender:ne});var nn=Math.max(1,$t-ti),_n=Math.min($t+ti,rt);$t-1<=ti&&(_n=1+ti*2),rt-$t<=ti&&(nn=rt-ti*2);for(var Un=nn;Un<=_n;Un+=1){var vn=$t===Un;Ht.push(Fe.createElement(_e,{locale:He,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Un,page:Un,active:vn,showTitle:Dt,itemRender:ne}))}$t-1>=ti*2&&$t!==3&&(Ht[0]=(0,Fe.cloneElement)(Ht[0],{className:"".concat(Ge,"-item-after-jump-prev")}),Ht.unshift(Oe)),rt-$t>=ti*2&&$t!==rt-2&&(Ht[Ht.length-1]=(0,Fe.cloneElement)(Ht[Ht.length-1],{className:"".concat(Ge,"-item-before-jump-next")}),Ht.push($r)),nn!==1&&Ht.unshift(Bt),_n!==rt&&Ht.push(gn)}var Hr=!this.hasPrev()||!rt,Kr=!this.hasNext()||!rt,qr=this.renderPrev(En),bn=this.renderNext(Dn);return Fe.createElement("ul",(0,le.Z)({className:m()(Ge,ut,(0,b.Z)({},"".concat(Ge,"-disabled"),Je)),style:$e,ref:this.paginationNode},Ut),Dr,qr?Fe.createElement("li",{title:Dt?He.prev_page:null,onClick:this.prev,tabIndex:Hr?null:0,onKeyPress:this.runIfEnterPrev,className:m()("".concat(Ge,"-prev"),(0,b.Z)({},"".concat(Ge,"-disabled"),Hr)),"aria-disabled":Hr},qr):null,Ht,bn?Fe.createElement("li",{title:Dt?He.next_page:null,onClick:this.next,tabIndex:Kr?null:0,onKeyPress:this.runIfEnterNext,className:m()("".concat(Ge,"-next"),(0,b.Z)({},"".concat(Ge,"-disabled"),Kr)),"aria-disabled":Kr},bn):null,Fe.createElement(q,{disabled:Je,locale:He,rootPrefixCls:Ge,selectComponentClass:it,selectPrefixCls:Rr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$t,pageSize:qe,pageSizeOptions:Tt,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:hi}))}}],[{key:"getDerivedStateFromProps",value:function(Te,Ge){var ut={};if("current"in Te&&(ut.current=Te.current,Te.current!==Ge.current&&(ut.currentInputValue=ut.current)),"pageSize"in Te&&Te.pageSize!==Ge.pageSize){var $e=Ge.current,Je=O(Te.pageSize,Ge,Te);$e=$e>Je?Je:$e,"current"in Te||(ut.current=$e,ut.currentInputValue=$e),ut.pageSize=Te.pageSize}return ut}}]),Se}(Fe.Component);Ee.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Le,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Le,locale:G.Z,style:{},itemRender:be,totalBoundaryShowSizeChanger:50};var ue=Ee,he=E(22075),ve=E(36355),F=E(19716),U=E(8628),ee=E(9763),de=E(57809);const Xe=Q=>Fe.createElement(de.default,Object.assign({},Q,{showSearch:!0,size:"small"})),tt=Q=>Fe.createElement(de.default,Object.assign({},Q,{showSearch:!0,size:"middle"}));Xe.Option=de.default.Option,tt.Option=de.default.Option;var nt=E(9937),_t=E(17313),Xt=E(83116),zt=E(37613);const Ze=Q=>{const{componentCls:re}=Q;return{[`${re}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${re}-item-link`]:{color:Q.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${re}-item-link`]:{color:Q.colorTextDisabled,cursor:"not-allowed"}}},[`&${re}-disabled`]:{cursor:"not-allowed",[`${re}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Q.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Q.colorBorder,backgroundColor:Q.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Q.itemActiveBgDisabled},a:{color:Q.itemActiveColorDisabled}}},[`${re}-item-link`]:{color:Q.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${re}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${re}-simple-pager`]:{color:Q.colorTextDisabled},[`${re}-jump-prev, ${re}-jump-next`]:{[`${re}-item-link-icon`]:{opacity:0},[`${re}-item-ellipsis`]:{opacity:1}}},[`&${re}-simple`]:{[`${re}-prev, ${re}-next`]:{[`&${re}-disabled ${re}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},fr=Q=>{const{componentCls:re}=Q;return{[`&${re}-mini ${re}-total-text, &${re}-mini ${re}-simple-pager`]:{height:Q.itemSizeSM,lineHeight:`${Q.itemSizeSM}px`},[`&${re}-mini ${re}-item`]:{minWidth:Q.itemSizeSM,height:Q.itemSizeSM,margin:0,lineHeight:`${Q.itemSizeSM-2}px`},[`&${re}-mini:not(${re}-disabled) ${re}-item:not(${re}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Q.colorBgTextHover},"&:active":{backgroundColor:Q.colorBgTextActive}},[`&${re}-mini ${re}-prev, &${re}-mini ${re}-next`]:{minWidth:Q.itemSizeSM,height:Q.itemSizeSM,margin:0,lineHeight:`${Q.itemSizeSM}px`},[`&${re}-mini:not(${re}-disabled)`]:{[`${re}-prev, ${re}-next`]:{[`&:hover ${re}-item-link`]:{backgroundColor:Q.colorBgTextHover},[`&:active ${re}-item-link`]:{backgroundColor:Q.colorBgTextActive},[`&${re}-disabled:hover ${re}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${re}-mini ${re}-prev ${re}-item-link,
|
|
|
&${re}-mini ${re}-next ${re}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Q.itemSizeSM,lineHeight:`${Q.itemSizeSM}px`}},[`&${re}-mini ${re}-jump-prev, &${re}-mini ${re}-jump-next`]:{height:Q.itemSizeSM,marginInlineEnd:0,lineHeight:`${Q.itemSizeSM}px`},[`&${re}-mini ${re}-options`]:{marginInlineStart:Q.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Q.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Q.itemSizeSM,lineHeight:`${Q.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,nt.x0)(Q)),{width:Q.paginationMiniQuickJumperInputWidth,height:Q.controlHeightSM})}}}},yr=Q=>{const{componentCls:re}=Q;return{[`
|
|
|
&${re}-simple ${re}-prev,
|
|
|
&${re}-simple ${re}-next
|
|
|
`]:{height:Q.itemSizeSM,lineHeight:`${Q.itemSizeSM}px`,verticalAlign:"top",[`${re}-item-link`]:{height:Q.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Q.colorBgTextHover},"&:active":{backgroundColor:Q.colorBgTextActive},"&::after":{height:Q.itemSizeSM,lineHeight:`${Q.itemSizeSM}px`}}},[`&${re}-simple ${re}-simple-pager`]:{display:"inline-block",height:Q.itemSizeSM,marginInlineEnd:Q.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Q.marginXS,padding:`0 ${Q.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Q.itemInputBg,border:`${Q.lineWidth}px ${Q.lineType} ${Q.colorBorder}`,borderRadius:Q.borderRadius,outline:"none",transition:`border-color ${Q.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Q.colorPrimary},"&:focus":{borderColor:Q.colorPrimaryHover,boxShadow:`${Q.inputOutlineOffset}px 0 ${Q.controlOutlineWidth}px ${Q.controlOutline}`},"&[disabled]":{color:Q.colorTextDisabled,backgroundColor:Q.colorBgContainerDisabled,borderColor:Q.colorBorder,cursor:"not-allowed"}}}}},Ar=Q=>{const{componentCls:re}=Q;return{[`${re}-jump-prev, ${re}-jump-next`]:{outline:0,[`${re}-item-container`]:{position:"relative",[`${re}-item-link-icon`]:{color:Q.colorPrimary,fontSize:Q.fontSizeSM,opacity:0,transition:`all ${Q.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${re}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Q.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Q.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Q.paginationEllipsisTextIndent,opacity:1,transition:`all ${Q.motionDurationMid}`}},"&:hover":{[`${re}-item-link-icon`]:{opacity:1},[`${re}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${re}-prev,
|
|
|
${re}-jump-prev,
|
|
|
${re}-jump-next
|
|
|
`]:{marginInlineEnd:Q.marginXS},[`
|
|
|
${re}-prev,
|
|
|
${re}-next,
|
|
|
${re}-jump-prev,
|
|
|
${re}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Q.itemSize,height:Q.itemSize,color:Q.colorText,fontFamily:Q.fontFamily,lineHeight:`${Q.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Q.borderRadius,cursor:"pointer",transition:`all ${Q.motionDurationMid}`},[`${re}-prev, ${re}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Q.colorText,cursor:"pointer",userSelect:"none"},[`${re}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Q.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Q.lineWidth}px ${Q.lineType} transparent`,borderRadius:Q.borderRadius,outline:"none",transition:`all ${Q.motionDurationMid}`},[`&:hover ${re}-item-link`]:{backgroundColor:Q.colorBgTextHover},[`&:active ${re}-item-link`]:{backgroundColor:Q.colorBgTextActive},[`&${re}-disabled:hover`]:{[`${re}-item-link`]:{backgroundColor:"transparent"}}},[`${re}-slash`]:{marginInlineEnd:Q.paginationSlashMarginInlineEnd,marginInlineStart:Q.paginationSlashMarginInlineStart},[`${re}-options`]:{display:"inline-block",marginInlineStart:Q.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Q.controlHeight,marginInlineStart:Q.marginXS,lineHeight:`${Q.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,nt.ik)(Q)),{width:Q.controlHeightLG*1.25,height:Q.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Q.marginXS,marginInlineEnd:Q.marginXS})}}}},vr=Q=>{const{componentCls:re}=Q;return{[`${re}-item`]:{display:"inline-block",minWidth:Q.itemSize,height:Q.itemSize,marginInlineEnd:Q.marginXS,fontFamily:Q.fontFamily,lineHeight:`${Q.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Q.lineWidth}px ${Q.lineType} transparent`,borderRadius:Q.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Q.paginationItemPaddingInline}px`,color:Q.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${re}-item-active)`]:{"&:hover":{transition:`all ${Q.motionDurationMid}`,backgroundColor:Q.colorBgTextHover},"&:active":{backgroundColor:Q.colorBgTextActive}},"&-active":{fontWeight:Q.fontWeightStrong,backgroundColor:Q.itemActiveBg,borderColor:Q.colorPrimary,a:{color:Q.colorPrimary},"&:hover":{borderColor:Q.colorPrimaryHover},"&:hover a":{color:Q.colorPrimaryHover}}}}},Ce=Q=>{const{componentCls:re}=Q;return{[re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_t.Wf)(Q)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${re}-total-text`]:{display:"inline-block",height:Q.itemSize,marginInlineEnd:Q.marginXS,lineHeight:`${Q.itemSize-2}px`,verticalAlign:"middle"}}),vr(Q)),Ar(Q)),yr(Q)),fr(Q)),Ze(Q)),{[`@media only screen and (max-width: ${Q.screenLG}px)`]:{[`${re}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Q.screenSM}px)`]:{[`${re}-options`]:{display:"none"}}}),[`&${Q.componentCls}-rtl`]:{direction:"rtl"}}},It=Q=>{const{componentCls:re}=Q;return{[`${re}${re}-disabled:not(${re}-mini)`]:{"&, &:hover":{[`${re}-item-link`]:{borderColor:Q.colorBorder}},"&:focus-visible":{[`${re}-item-link`]:{borderColor:Q.colorBorder}},[`${re}-item, ${re}-item-link`]:{backgroundColor:Q.colorBgContainerDisabled,borderColor:Q.colorBorder,[`&:hover:not(${re}-item-active)`]:{backgroundColor:Q.colorBgContainerDisabled,borderColor:Q.colorBorder,a:{color:Q.colorTextDisabled}},[`&${re}-item-active`]:{backgroundColor:Q.itemActiveBgDisabled}},[`${re}-prev, ${re}-next`]:{"&:hover button":{backgroundColor:Q.colorBgContainerDisabled,borderColor:Q.colorBorder,color:Q.colorTextDisabled},[`${re}-item-link`]:{backgroundColor:Q.colorBgContainerDisabled,borderColor:Q.colorBorder}}},[`${re}:not(${re}-mini)`]:{[`${re}-prev, ${re}-next`]:{"&:hover button":{borderColor:Q.colorPrimaryHover,backgroundColor:Q.itemBg},[`${re}-item-link`]:{backgroundColor:Q.itemLinkBg,borderColor:Q.colorBorder},[`&:hover ${re}-item-link`]:{borderColor:Q.colorPrimary,backgroundColor:Q.itemBg,color:Q.colorPrimary},[`&${re}-disabled`]:{[`${re}-item-link`]:{borderColor:Q.colorBorder,color:Q.colorTextDisabled}}},[`${re}-item`]:{backgroundColor:Q.itemBg,border:`${Q.lineWidth}px ${Q.lineType} ${Q.colorBorder}`,[`&:hover:not(${re}-item-active)`]:{borderColor:Q.colorPrimary,backgroundColor:Q.itemBg,a:{color:Q.colorPrimary}},"&-active":{borderColor:Q.colorPrimary}}}}},Z=Q=>{const{componentCls:re}=Q;return{[`${re}:not(${re}-disabled)`]:{[`${re}-item`]:Object.assign({},(0,_t.Qy)(Q)),[`${re}-jump-prev, ${re}-jump-next`]:{"&:focus-visible":Object.assign({[`${re}-item-link-icon`]:{opacity:1},[`${re}-item-ellipsis`]:{opacity:0}},(0,_t.oN)(Q))},[`${re}-prev, ${re}-next`]:{[`&:focus-visible ${re}-item-link`]:Object.assign({},(0,_t.oN)(Q))}}}};var x=(0,Xt.Z)("Pagination",Q=>{const re=(0,zt.TS)(Q,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Q.marginXXS/2,paginationMiniQuickJumperInputWidth:Q.controlHeightLG*1.1,paginationItemPaddingInline:Q.marginXXS*1.5,paginationEllipsisLetterSpacing:Q.marginXXS/2,paginationSlashMarginInlineStart:Q.marginXXS,paginationSlashMarginInlineEnd:Q.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,nt.e5)(Q),(0,nt.TM)(Q));return[Ce(re),Z(re),Q.wireframe&&It(re)]},Q=>({itemBg:Q.colorBgContainer,itemSize:Q.controlHeight,itemSizeSM:Q.controlHeightSM,itemActiveBg:Q.colorBgContainer,itemLinkBg:Q.colorBgContainer,itemActiveColorDisabled:Q.colorTextDisabled,itemActiveBgDisabled:Q.controlItemBgActiveDisabled,itemInputBg:Q.colorBgContainer,miniOptionsSizeChangerTop:0})),y=function(Q,re){var Se={};for(var Be in Q)Object.prototype.hasOwnProperty.call(Q,Be)&&re.indexOf(Be)<0&&(Se[Be]=Q[Be]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Be=Object.getOwnPropertySymbols(Q);Te<Be.length;Te++)re.indexOf(Be[Te])<0&&Object.prototype.propertyIsEnumerable.call(Q,Be[Te])&&(Se[Be[Te]]=Q[Be[Te]]);return Se},fe=Q=>{const{prefixCls:re,selectPrefixCls:Se,className:Be,rootClassName:Te,style:Ge,size:ut,locale:$e,selectComponentClass:Je,responsive:At,showSizeChanger:ze}=Q,He=y(Q,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:vt}=(0,U.Z)(At),{getPrefixCls:jt,direction:Dt,pagination:lr={}}=Fe.useContext(ve.E_),gr=jt("pagination",re),[ne,we]=x(gr),Vt=ze!=null?ze:lr.showSizeChanger,Ue=Fe.useMemo(()=>{const rt=Fe.createElement("span",{className:`${gr}-item-ellipsis`},"\u2022\u2022\u2022"),Ht=Fe.createElement("button",{className:`${gr}-item-link`,type:"button",tabIndex:-1},Dt==="rtl"?Fe.createElement(N.Z,null):Fe.createElement(d.Z,null)),Oe=Fe.createElement("button",{className:`${gr}-item-link`,type:"button",tabIndex:-1},Dt==="rtl"?Fe.createElement(d.Z,null):Fe.createElement(N.Z,null)),$r=Fe.createElement("a",{className:`${gr}-item-link`},Fe.createElement("div",{className:`${gr}-item-container`},Dt==="rtl"?Fe.createElement(l.Z,{className:`${gr}-item-link-icon`}):Fe.createElement(T,{className:`${gr}-item-link-icon`}),rt)),Bt=Fe.createElement("a",{className:`${gr}-item-link`},Fe.createElement("div",{className:`${gr}-item-container`},Dt==="rtl"?Fe.createElement(T,{className:`${gr}-item-link-icon`}):Fe.createElement(l.Z,{className:`${gr}-item-link-icon`}),rt));return{prevIcon:Ht,nextIcon:Oe,jumpPrevIcon:$r,jumpNextIcon:Bt}},[Dt,gr]),[it]=(0,ee.Z)("Pagination",he.Z),Rr=Object.assign(Object.assign({},it),$e),Tt=(0,F.Z)(ut),Rt=Tt==="small"||!!(vt&&!Tt&&At),$t=jt("select",Se),qe=m()({[`${gr}-mini`]:Rt,[`${gr}-rtl`]:Dt==="rtl"},lr==null?void 0:lr.className,Be,Te,we),pt=Object.assign(Object.assign({},lr==null?void 0:lr.style),Ge);return ne(Fe.createElement(ue,Object.assign({},Ue,He,{style:pt,prefixCls:gr,selectPrefixCls:$t,className:qe,selectComponentClass:Je||(Rt?Xe:tt),locale:Rr,showSizeChanger:Vt})))},W=fe},5112:function(tn,Mt,E){"use strict";E.d(Mt,{ZP:function(){return U}});var le=E(92310),Fe=E.n(le),ae=E(18929),Re=E(26112),K=E(59301),g=E(36355),R=E(19716);const T=K.createContext(null),l=T.Provider;var d=T;const N=K.createContext(null),v=N.Provider;var m=E(5630),b=E(8654),I=E(1684),L=E(32441),z=E(17313),P=E(83116),$=E(37613);const J=ee=>{const{componentCls:de,antCls:Xe}=ee,tt=`${de}-group`;return{[tt]:Object.assign(Object.assign({},(0,z.Wf)(ee)),{display:"inline-block",fontSize:0,[`&${tt}-rtl`]:{direction:"rtl"},[`${Xe}-badge ${Xe}-badge-count`]:{zIndex:1},[`> ${Xe}-badge:not(:first-child) > ${Xe}-button-wrapper`]:{borderInlineStart:"none"}})}},te=ee=>{const{componentCls:de,wrapperMarginInlineEnd:Xe,colorPrimary:tt,radioSize:nt,motionDurationSlow:_t,motionDurationMid:Xt,motionEaseInOutCirc:zt,colorBgContainer:Ze,colorBorder:fr,lineWidth:yr,dotSize:Ar,colorBgContainerDisabled:vr,colorTextDisabled:Ce,paddingXS:It,dotColorDisabled:Z,lineType:x,radioDotDisabledSize:y,wireframe:k,colorWhite:fe}=ee,W=`${de}-inner`;return{[`${de}-wrapper`]:Object.assign(Object.assign({},(0,z.Wf)(ee)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Xe,cursor:"pointer",[`&${de}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:ee.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${de}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${yr}px ${x} ${tt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[de]:Object.assign(Object.assign({},(0,z.Wf)(ee)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${de}-wrapper:hover &,
|
|
|
&:hover ${W}`]:{borderColor:tt},[`${de}-input:focus-visible + ${W}`]:Object.assign({},(0,z.oN)(ee)),[`${de}:hover::after, ${de}-wrapper:hover &::after`]:{visibility:"visible"},[`${de}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:nt,height:nt,marginBlockStart:nt/-2,marginInlineStart:nt/-2,backgroundColor:k?tt:fe,borderBlockStart:0,borderInlineStart:0,borderRadius:nt,transform:"scale(0)",opacity:0,transition:`all ${_t} ${zt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:nt,height:nt,backgroundColor:Ze,borderColor:fr,borderStyle:"solid",borderWidth:yr,borderRadius:"50%",transition:`all ${Xt}`},[`${de}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${de}-checked`]:{[W]:{borderColor:tt,backgroundColor:k?Ze:tt,"&::after":{transform:`scale(${Ar/nt})`,opacity:1,transition:`all ${_t} ${zt}`}}},[`${de}-disabled`]:{cursor:"not-allowed",[W]:{backgroundColor:vr,borderColor:fr,cursor:"not-allowed","&::after":{backgroundColor:Z}},[`${de}-input`]:{cursor:"not-allowed"},[`${de}-disabled + span`]:{color:Ce,cursor:"not-allowed"},[`&${de}-checked`]:{[W]:{"&::after":{transform:`scale(${y/nt})`}}}},[`span${de} + *`]:{paddingInlineStart:It,paddingInlineEnd:It}})}},H=ee=>{const{buttonColor:de,controlHeight:Xe,componentCls:tt,lineWidth:nt,lineType:_t,colorBorder:Xt,motionDurationSlow:zt,motionDurationMid:Ze,buttonPaddingInline:fr,fontSize:yr,buttonBg:Ar,fontSizeLG:vr,controlHeightLG:Ce,controlHeightSM:It,paddingXS:Z,borderRadius:x,borderRadiusSM:y,borderRadiusLG:k,buttonCheckedBg:fe,buttonSolidCheckedColor:W,colorTextDisabled:Q,colorBgContainerDisabled:re,buttonCheckedBgDisabled:Se,buttonCheckedColorDisabled:Be,colorPrimary:Te,colorPrimaryHover:Ge,colorPrimaryActive:ut,buttonSolidCheckedBg:$e,buttonSolidCheckedHoverBg:Je,buttonSolidCheckedActiveBg:At}=ee;return{[`${tt}-button-wrapper`]:{position:"relative",display:"inline-block",height:Xe,margin:0,paddingInline:fr,paddingBlock:0,color:de,fontSize:yr,lineHeight:`${Xe-nt*2}px`,background:Ar,border:`${nt}px ${_t} ${Xt}`,borderBlockStartWidth:nt+.02,borderInlineStartWidth:0,borderInlineEndWidth:nt,cursor:"pointer",transition:[`color ${Ze}`,`background ${Ze}`,`box-shadow ${Ze}`].join(","),a:{color:de},[`> ${tt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-nt,insetInlineStart:-nt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:nt,paddingInline:0,backgroundColor:Xt,transition:`background-color ${zt}`,content:'""'}},"&:first-child":{borderInlineStart:`${nt}px ${_t} ${Xt}`,borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x},[`${tt}-group-large &`]:{height:Ce,fontSize:vr,lineHeight:`${Ce-nt*2}px`,"&:first-child":{borderStartStartRadius:k,borderEndStartRadius:k},"&:last-child":{borderStartEndRadius:k,borderEndEndRadius:k}},[`${tt}-group-small &`]:{height:It,paddingInline:Z-nt,paddingBlock:0,lineHeight:`${It-nt*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:Te},"&:has(:focus-visible)":Object.assign({},(0,z.oN)(ee)),[`${tt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${tt}-button-wrapper-disabled)`]:{zIndex:1,color:Te,background:fe,borderColor:Te,"&::before":{backgroundColor:Te},"&:first-child":{borderColor:Te},"&:hover":{color:Ge,borderColor:Ge,"&::before":{backgroundColor:Ge}},"&:active":{color:ut,borderColor:ut,"&::before":{backgroundColor:ut}}},[`${tt}-group-solid &-checked:not(${tt}-button-wrapper-disabled)`]:{color:W,background:$e,borderColor:$e,"&:hover":{color:W,background:Je,borderColor:Je},"&:active":{color:W,background:At,borderColor:At}},"&-disabled":{color:Q,backgroundColor:re,borderColor:Xt,cursor:"not-allowed","&:first-child, &:hover":{color:Q,backgroundColor:re,borderColor:Xt}},[`&-disabled${tt}-button-wrapper-checked`]:{color:Be,backgroundColor:Se,borderColor:Xt,boxShadow:"none"}}}},G=ee=>ee-4*2;var ce=(0,P.Z)("Radio",ee=>{const{controlOutline:de,controlOutlineWidth:Xe,radioSize:tt}=ee,nt=`0 0 0 ${Xe}px ${de}`,_t=nt,Xt=G(tt),zt=(0,$.TS)(ee,{radioDotDisabledSize:Xt,radioFocusShadow:nt,radioButtonFocusShadow:_t});return[J(zt),te(zt),H(zt)]},ee=>{const{wireframe:de,padding:Xe,marginXS:tt,lineWidth:nt,fontSizeLG:_t,colorText:Xt,colorBgContainer:zt,colorTextDisabled:Ze,controlItemBgActiveDisabled:fr,colorTextLightSolid:yr,colorPrimary:Ar,colorPrimaryHover:vr,colorPrimaryActive:Ce}=ee,It=4,Z=_t,x=de?G(Z):Z-(It+nt)*2;return{radioSize:Z,dotSize:x,dotColorDisabled:Ze,buttonSolidCheckedColor:yr,buttonSolidCheckedBg:Ar,buttonSolidCheckedHoverBg:vr,buttonSolidCheckedActiveBg:Ce,buttonBg:zt,buttonCheckedBg:zt,buttonColor:Xt,buttonCheckedBgDisabled:fr,buttonCheckedColorDisabled:Ze,buttonPaddingInline:Xe-nt,wrapperMarginInlineEnd:tt}}),q=E(14088),ye=E(4572),_e=function(ee,de){var Xe={};for(var tt in ee)Object.prototype.hasOwnProperty.call(ee,tt)&&de.indexOf(tt)<0&&(Xe[tt]=ee[tt]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,tt=Object.getOwnPropertySymbols(ee);nt<tt.length;nt++)de.indexOf(tt[nt])<0&&Object.prototype.propertyIsEnumerable.call(ee,tt[nt])&&(Xe[tt[nt]]=ee[tt[nt]]);return Xe};const Le=(ee,de)=>{var Xe,tt;const nt=K.useContext(d),_t=K.useContext(N),{getPrefixCls:Xt,direction:zt,radio:Ze}=K.useContext(g.E_),fr=K.useRef(null),yr=(0,b.sQ)(de,fr),{isFormItemInput:Ar}=K.useContext(L.aM),vr=ut=>{var $e,Je;($e=ee.onChange)===null||$e===void 0||$e.call(ee,ut),(Je=nt==null?void 0:nt.onChange)===null||Je===void 0||Je.call(nt,ut)},{prefixCls:Ce,className:It,rootClassName:Z,children:x,style:y}=ee,k=_e(ee,["prefixCls","className","rootClassName","children","style"]),fe=Xt("radio",Ce),W=((nt==null?void 0:nt.optionType)||_t)==="button",Q=W?`${fe}-button`:fe,[re,Se]=ce(fe),Be=Object.assign({},k),Te=K.useContext(I.Z);nt&&(Be.name=nt.name,Be.onChange=vr,Be.checked=ee.value===nt.value,Be.disabled=(Xe=Be.disabled)!==null&&Xe!==void 0?Xe:nt.disabled),Be.disabled=(tt=Be.disabled)!==null&&tt!==void 0?tt:Te;const Ge=Fe()(`${Q}-wrapper`,{[`${Q}-wrapper-checked`]:Be.checked,[`${Q}-wrapper-disabled`]:Be.disabled,[`${Q}-wrapper-rtl`]:zt==="rtl",[`${Q}-wrapper-in-form-item`]:Ar},Ze==null?void 0:Ze.className,It,Z,Se);return re(K.createElement(q.Z,{component:"Radio",disabled:Be.disabled},K.createElement("label",{className:Ge,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),y),onMouseEnter:ee.onMouseEnter,onMouseLeave:ee.onMouseLeave},K.createElement(m.Z,Object.assign({},Be,{className:Fe()(Be.className,!W&&ye.A),type:"radio",prefixCls:Q,ref:yr})),x!==void 0?K.createElement("span",null,x):null)))};var be=K.forwardRef(Le);const O=K.forwardRef((ee,de)=>{const{getPrefixCls:Xe,direction:tt}=K.useContext(g.E_),[nt,_t]=(0,ae.Z)(ee.defaultValue,{value:ee.value}),Xt=$e=>{const Je=nt,At=$e.target.value;"value"in ee||_t(At);const{onChange:ze}=ee;ze&&At!==Je&&ze($e)},{prefixCls:zt,className:Ze,rootClassName:fr,options:yr,buttonStyle:Ar="outline",disabled:vr,children:Ce,size:It,style:Z,id:x,onMouseEnter:y,onMouseLeave:k,onFocus:fe,onBlur:W}=ee,Q=Xe("radio",zt),re=`${Q}-group`,[Se,Be]=ce(Q);let Te=Ce;yr&&yr.length>0&&(Te=yr.map($e=>typeof $e=="string"||typeof $e=="number"?K.createElement(be,{key:$e.toString(),prefixCls:Q,disabled:vr,value:$e,checked:nt===$e},$e):K.createElement(be,{key:`radio-group-value-options-${$e.value}`,prefixCls:Q,disabled:$e.disabled||vr,value:$e.value,checked:nt===$e.value,title:$e.title,style:$e.style},$e.label)));const Ge=(0,R.Z)(It),ut=Fe()(re,`${re}-${Ar}`,{[`${re}-${Ge}`]:Ge,[`${re}-rtl`]:tt==="rtl"},Ze,fr,Be);return Se(K.createElement("div",Object.assign({},(0,Re.Z)(ee,{aria:!0,data:!0}),{className:ut,style:Z,onMouseEnter:y,onMouseLeave:k,onFocus:fe,onBlur:W,id:x,ref:de}),K.createElement(l,{value:{onChange:Xt,value:nt,disabled:ee.disabled,name:ee.name,optionType:ee.optionType}},Te)))});var Ee=K.memo(O),ue=function(ee,de){var Xe={};for(var tt in ee)Object.prototype.hasOwnProperty.call(ee,tt)&&de.indexOf(tt)<0&&(Xe[tt]=ee[tt]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,tt=Object.getOwnPropertySymbols(ee);nt<tt.length;nt++)de.indexOf(tt[nt])<0&&Object.prototype.propertyIsEnumerable.call(ee,tt[nt])&&(Xe[tt[nt]]=ee[tt[nt]]);return Xe};const he=(ee,de)=>{const{getPrefixCls:Xe}=K.useContext(g.E_),{prefixCls:tt}=ee,nt=ue(ee,["prefixCls"]),_t=Xe("radio",tt);return K.createElement(v,{value:"button"},K.createElement(be,Object.assign({prefixCls:_t},nt,{type:"radio",ref:de})))};var ve=K.forwardRef(he);const F=be;F.Button=ve,F.Group=Ee,F.__ANT_RADIO=!0;var U=F},57809:function(tn,Mt,E){"use strict";var le=E(92310),Fe=E.n(le),ae=E(77861),Re=E(2738),K=E(59301),g=E(53487),R=E(62892),T=E(19080),l=E(36355),d=E(1684),N=E(93891),v=E(19716),m=E(32441),b=E(33234),I=E(14154),L=E(58582),z=E(84443),P=E(66339),$=function(ce,q){var ye={};for(var _e in ce)Object.prototype.hasOwnProperty.call(ce,_e)&&q.indexOf(_e)<0&&(ye[_e]=ce[_e]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,_e=Object.getOwnPropertySymbols(ce);Le<_e.length;Le++)q.indexOf(_e[Le])<0&&Object.prototype.propertyIsEnumerable.call(ce,_e[Le])&&(ye[_e[Le]]=ce[_e[Le]]);return ye};const J="SECRET_COMBOBOX_MODE_DO_NOT_USE",te=(ce,q)=>{var ye,{prefixCls:_e,bordered:Le=!0,className:se,rootClassName:be,getPopupContainer:O,popupClassName:Ee,dropdownClassName:ue,listHeight:he=256,placement:ve,listItemHeight:F=24,size:U,disabled:ee,notFoundContent:de,status:Xe,builtinPlacements:tt,dropdownMatchSelectWidth:nt,popupMatchSelectWidth:_t,direction:Xt,style:zt,allowClear:Ze}=ce,fr=$(ce,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:yr,getPrefixCls:Ar,renderEmpty:vr,direction:Ce,virtual:It,popupMatchSelectWidth:Z,popupOverflow:x,select:y}=K.useContext(l.E_),k=Ar("select",_e),fe=Ar(),W=Xt!=null?Xt:Ce,{compactSize:Q,compactItemClassnames:re}=(0,b.ri)(k,W),[Se,Be]=(0,I.Z)(k),Te=K.useMemo(()=>{const{mode:pt}=fr;if(pt!=="combobox")return pt===J?"combobox":pt},[fr.mode]),Ge=Te==="multiple"||Te==="tags",ut=(0,z.Z)(fr.suffixIcon,fr.showArrow),$e=(ye=_t!=null?_t:nt)!==null&&ye!==void 0?ye:Z,{status:Je,hasFeedback:At,isFormItemInput:ze,feedbackIcon:He}=K.useContext(m.aM),vt=(0,T.F)(Je,Xe);let jt;de!==void 0?jt=de:Te==="combobox"?jt=null:jt=(vr==null?void 0:vr("Select"))||K.createElement(N.Z,{componentName:"Select"});const{suffixIcon:Dt,itemIcon:lr,removeIcon:gr,clearIcon:ne}=(0,P.Z)(Object.assign(Object.assign({},fr),{multiple:Ge,hasFeedback:At,feedbackIcon:He,showSuffixIcon:ut,prefixCls:k,showArrow:fr.showArrow,componentName:"Select"})),we=Ze===!0?{clearIcon:ne}:Ze,Vt=(0,Re.Z)(fr,["suffixIcon","itemIcon"]),Ue=Fe()(Ee||ue,{[`${k}-dropdown-${W}`]:W==="rtl"},be,Be),it=(0,v.Z)(pt=>{var rt;return(rt=U!=null?U:Q)!==null&&rt!==void 0?rt:pt}),Rr=K.useContext(d.Z),Tt=ee!=null?ee:Rr,Rt=Fe()({[`${k}-lg`]:it==="large",[`${k}-sm`]:it==="small",[`${k}-rtl`]:W==="rtl",[`${k}-borderless`]:!Le,[`${k}-in-form-item`]:ze},(0,T.Z)(k,vt,At),re,y==null?void 0:y.className,se,be,Be),$t=K.useMemo(()=>ve!==void 0?ve:W==="rtl"?"bottomRight":"bottomLeft",[ve,W]),qe=(0,L.Z)(tt,x);return Se(K.createElement(ae.ZP,Object.assign({ref:q,virtual:It,showSearch:y==null?void 0:y.showSearch},Vt,{style:Object.assign(Object.assign({},y==null?void 0:y.style),zt),dropdownMatchSelectWidth:$e,builtinPlacements:qe,transitionName:(0,R.m)(fe,"slide-up",fr.transitionName),listHeight:he,listItemHeight:F,mode:Te,prefixCls:k,placement:$t,direction:W,suffixIcon:Dt,menuItemSelectedIcon:lr,removeIcon:gr,allowClear:we,notFoundContent:jt,className:Rt,getPopupContainer:O||yr,dropdownClassName:Ue,disabled:Tt})))},H=K.forwardRef(te),G=(0,g.Z)(H);H.SECRET_COMBOBOX_MODE_DO_NOT_USE=J,H.Option=ae.Wx,H.OptGroup=ae.Xo,H._InternalPanelDoNotUseOrYouWillBeFired=G,Mt.default=H},14154:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return H}});var le=E(17313),Fe=E(74207),ae=E(37613),Re=E(83116),K=E(13826),g=E(92899);const R=G=>{const{optionHeight:ce,optionFontSize:q,optionLineHeight:ye,optionPadding:_e}=G;return{position:"relative",display:"block",minHeight:ce,padding:_e,color:G.colorText,fontWeight:"normal",fontSize:q,lineHeight:ye,boxSizing:"border-box"}};var l=G=>{const{antCls:ce,componentCls:q}=G,ye=`${q}-item`,_e=`&${ce}-slide-up-enter${ce}-slide-up-enter-active`,Le=`&${ce}-slide-up-appear${ce}-slide-up-appear-active`,se=`&${ce}-slide-up-leave${ce}-slide-up-leave-active`,be=`${q}-dropdown-placement-`;return[{[`${q}-dropdown`]:Object.assign(Object.assign({},(0,le.Wf)(G)),{position:"absolute",top:-9999,zIndex:G.zIndexPopup,boxSizing:"border-box",padding:G.paddingXXS,overflow:"hidden",fontSize:G.fontSize,fontVariant:"initial",backgroundColor:G.colorBgElevated,borderRadius:G.borderRadiusLG,outline:"none",boxShadow:G.boxShadowSecondary,[`
|
|
|
${_e}${be}bottomLeft,
|
|
|
${Le}${be}bottomLeft
|
|
|
`]:{animationName:K.fJ},[`
|
|
|
${_e}${be}topLeft,
|
|
|
${Le}${be}topLeft,
|
|
|
${_e}${be}topRight,
|
|
|
${Le}${be}topRight
|
|
|
`]:{animationName:K.Qt},[`${se}${be}bottomLeft`]:{animationName:K.Uw},[`
|
|
|
${se}${be}topLeft,
|
|
|
${se}${be}topRight
|
|
|
`]:{animationName:K.ly},"&-hidden":{display:"none"},[`${ye}`]:Object.assign(Object.assign({},R(G)),{cursor:"pointer",transition:`background ${G.motionDurationSlow} ease`,borderRadius:G.borderRadiusSM,"&-group":{color:G.colorTextDescription,fontSize:G.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},le.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ye}-option-disabled)`]:{backgroundColor:G.optionActiveBg},[`&-selected:not(${ye}-option-disabled)`]:{color:G.optionSelectedColor,fontWeight:G.optionSelectedFontWeight,backgroundColor:G.optionSelectedBg,[`${ye}-option-state`]:{color:G.colorPrimary}},"&-disabled":{[`&${ye}-option-selected`]:{backgroundColor:G.colorBgContainerDisabled},color:G.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:G.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,K.oN)(G,"slide-up"),(0,K.oN)(G,"slide-down"),(0,g.Fm)(G,"move-up"),(0,g.Fm)(G,"move-down")]};const d=2,N=G=>{let{controlHeightSM:ce,controlHeight:q,lineWidth:ye}=G;const _e=(q-ce)/2-ye,Le=Math.ceil(_e/2);return[_e,Le]};function v(G,ce){const{componentCls:q,iconCls:ye}=G,_e=`${q}-selection-overflow`,Le=G.multipleSelectItemHeight,[se]=N(G),be=ce?`${q}-${ce}`:"";return{[`${q}-multiple${be}`]:{fontSize:G.fontSize,[_e]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${q}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${se-d}px ${d*2}px`,borderRadius:G.borderRadius,[`${q}-show-search&`]:{cursor:"text"},[`${q}-disabled&`]:{background:G.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${d}px 0`,lineHeight:`${Le}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${q}-show-arrow ${q}-selector,
|
|
|
&${q}-allow-clear ${q}-selector
|
|
|
`]:{paddingInlineEnd:G.fontSizeIcon+G.controlPaddingHorizontal},[`${q}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Le,marginTop:d,marginBottom:d,lineHeight:`${Le-G.lineWidth*2}px`,background:G.multipleItemBg,border:`${G.lineWidth}px ${G.lineType} ${G.multipleItemBorderColor}`,borderRadius:G.borderRadiusSM,cursor:"default",transition:`font-size ${G.motionDurationSlow}, line-height ${G.motionDurationSlow}, height ${G.motionDurationSlow}`,userSelect:"none",marginInlineEnd:d*2,paddingInlineStart:G.paddingXS,paddingInlineEnd:G.paddingXS/2,[`${q}-disabled&`]:{color:G.multipleItemColorDisabled,borderColor:G.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:G.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,le.Ro)()),{display:"inline-flex",alignItems:"center",color:G.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ye}`]:{verticalAlign:"-0.2em"},"&:hover":{color:G.colorIconHover}})},[`${_e}-item + ${_e}-item`]:{[`${q}-selection-search`]:{marginInlineStart:0}},[`${q}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:G.inputPaddingHorizontalBase-se,"\n &-input,\n &-mirror\n ":{height:Le,fontFamily:G.fontFamily,lineHeight:`${Le}px`,transition:`all ${G.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${q}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:G.inputPaddingHorizontalBase,insetInlineEnd:G.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${G.motionDurationSlow}`}}}}var b=G=>{const{componentCls:ce}=G,q=(0,ae.TS)(G,{controlHeight:G.controlHeightSM,multipleSelectItemHeight:G.controlHeightXS,borderRadius:G.borderRadiusSM,borderRadiusSM:G.borderRadiusXS}),ye=(0,ae.TS)(G,{fontSize:G.fontSizeLG,controlHeight:G.controlHeightLG,multipleSelectItemHeight:G.multipleItemHeightLG,borderRadius:G.borderRadiusLG,borderRadiusSM:G.borderRadius}),[,_e]=N(G);return[v(G),v(q,"sm"),{[`${ce}-multiple${ce}-sm`]:{[`${ce}-selection-placeholder`]:{insetInline:G.controlPaddingHorizontalSM-G.lineWidth},[`${ce}-selection-search`]:{marginInlineStart:_e}}},v(ye,"lg")]};function I(G,ce){const{componentCls:q,inputPaddingHorizontalBase:ye,borderRadius:_e}=G,Le=G.controlHeight-G.lineWidth*2,se=Math.ceil(G.fontSize*1.25),be=ce?`${q}-${ce}`:"";return{[`${q}-single${be}`]:{fontSize:G.fontSize,[`${q}-selector`]:Object.assign(Object.assign({},(0,le.Wf)(G)),{display:"flex",borderRadius:_e,[`${q}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ye,insetInlineEnd:ye,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${q}-selection-item,
|
|
|
${q}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Le}px`,transition:`all ${G.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Le}px`}},[`${q}-selection-item`]:{position:"relative",userSelect:"none"},[`${q}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${q}-selection-item:after`,`${q}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${q}-show-arrow ${q}-selection-item,
|
|
|
&${q}-show-arrow ${q}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:se},[`&${q}-open ${q}-selection-item`]:{color:G.colorTextPlaceholder},[`&:not(${q}-customize-input)`]:{[`${q}-selector`]:{width:"100%",height:G.controlHeight,padding:`0 ${ye}px`,[`${q}-selection-search-input`]:{height:Le},"&:after":{lineHeight:`${Le}px`}}},[`&${q}-customize-input`]:{[`${q}-selector`]:{"&:after":{display:"none"},[`${q}-selection-search`]:{position:"static",width:"100%"},[`${q}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ye}px`,"&:after":{display:"none"}}}}}}}function L(G){const{componentCls:ce}=G,q=G.controlPaddingHorizontalSM-G.lineWidth;return[I(G),I((0,ae.TS)(G,{controlHeight:G.controlHeightSM,borderRadius:G.borderRadiusSM}),"sm"),{[`${ce}-single${ce}-sm`]:{[`&:not(${ce}-customize-input)`]:{[`${ce}-selection-search`]:{insetInlineStart:q,insetInlineEnd:q},[`${ce}-selector`]:{padding:`0 ${q}px`},[`&${ce}-show-arrow ${ce}-selection-search`]:{insetInlineEnd:q+G.fontSize*1.5},[`
|
|
|
&${ce}-show-arrow ${ce}-selection-item,
|
|
|
&${ce}-show-arrow ${ce}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:G.fontSize*1.5}}}},I((0,ae.TS)(G,{controlHeight:G.singleItemHeightLG,fontSize:G.fontSizeLG,borderRadius:G.borderRadiusLG}),"lg")]}const z=G=>{const{componentCls:ce,selectorBg:q}=G;return{position:"relative",backgroundColor:q,border:`${G.lineWidth}px ${G.lineType} ${G.colorBorder}`,transition:`all ${G.motionDurationMid} ${G.motionEaseInOut}`,input:{cursor:"pointer"},[`${ce}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${ce}-disabled&`]:{color:G.colorTextDisabled,background:G.colorBgContainerDisabled,cursor:"not-allowed",[`${ce}-multiple&`]:{background:G.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},P=function(G,ce){let q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ye,borderHoverColor:_e,outlineColor:Le,antCls:se}=ce,be=q?{[`${ye}-selector`]:{borderColor:_e}}:{};return{[G]:{[`&:not(${ye}-disabled):not(${ye}-customize-input):not(${se}-pagination-size-changer)`]:Object.assign(Object.assign({},be),{[`${ye}-focused& ${ye}-selector`]:{borderColor:_e,boxShadow:`0 0 0 ${ce.controlOutlineWidth}px ${Le}`,outline:0},[`&:hover ${ye}-selector`]:{borderColor:_e}})}}},$=G=>{const{componentCls:ce}=G;return{[`${ce}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},J=G=>{const{componentCls:ce,inputPaddingHorizontalBase:q,iconCls:ye}=G;return{[ce]:Object.assign(Object.assign({},(0,le.Wf)(G)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ce}-customize-input) ${ce}-selector`]:Object.assign(Object.assign({},z(G)),$(G)),[`${ce}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},le.vS),[`${ce}-selection-placeholder`]:Object.assign(Object.assign({},le.vS),{flex:1,color:G.colorTextPlaceholder,pointerEvents:"none"}),[`${ce}-arrow`]:Object.assign(Object.assign({},(0,le.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:q,height:G.fontSizeIcon,marginTop:-G.fontSizeIcon/2,color:G.colorTextQuaternary,fontSize:G.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ye]:{verticalAlign:"top",transition:`transform ${G.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${ce}-suffix)`]:{pointerEvents:"auto"}},[`${ce}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${ce}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:q,zIndex:1,display:"inline-block",width:G.fontSizeIcon,height:G.fontSizeIcon,marginTop:-G.fontSizeIcon/2,color:G.colorTextQuaternary,fontSize:G.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:G.clearBg,cursor:"pointer",opacity:0,transition:`color ${G.motionDurationMid} ease, opacity ${G.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:G.colorTextTertiary}},"&:hover":{[`${ce}-clear`]:{opacity:1}}}),[`${ce}-has-feedback`]:{[`${ce}-clear`]:{insetInlineEnd:q+G.fontSize+G.paddingXS}}}},te=G=>{const{componentCls:ce}=G;return[{[ce]:{[`&-borderless ${ce}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${ce}-in-form-item`]:{width:"100%"}}},J(G),L(G),b(G),l(G),{[`${ce}-rtl`]:{direction:"rtl"}},P(ce,(0,ae.TS)(G,{borderHoverColor:G.colorPrimaryHover,outlineColor:G.controlOutline})),P(`${ce}-status-error`,(0,ae.TS)(G,{borderHoverColor:G.colorErrorHover,outlineColor:G.colorErrorOutline}),!0),P(`${ce}-status-warning`,(0,ae.TS)(G,{borderHoverColor:G.colorWarningHover,outlineColor:G.colorWarningOutline}),!0),(0,Fe.c)(G,{borderElCls:`${ce}-selector`,focusElCls:`${ce}-focused`})]};var H=(0,Re.Z)("Select",(G,ce)=>{let{rootPrefixCls:q}=ce;const ye=(0,ae.TS)(G,{rootPrefixCls:q,inputPaddingHorizontalBase:G.paddingSM-1,multipleSelectItemHeight:G.multipleItemHeight});return[te(ye)]},G=>{const{fontSize:ce,lineHeight:q,controlHeight:ye,controlPaddingHorizontal:_e,zIndexPopupBase:Le,colorText:se,fontWeightStrong:be,controlItemBgActive:O,controlItemBgHover:Ee,colorBgContainer:ue,colorFillSecondary:he,controlHeightLG:ve,controlHeightSM:F,colorBgContainerDisabled:U,colorTextDisabled:ee}=G;return{zIndexPopup:Le+50,optionSelectedColor:se,optionSelectedFontWeight:be,optionSelectedBg:O,optionActiveBg:Ee,optionPadding:`${(ye-ce*q)/2}px ${_e}px`,optionFontSize:ce,optionLineHeight:q,optionHeight:ye,selectorBg:ue,clearBg:ue,singleItemHeightLG:ve,multipleItemBg:he,multipleItemBorderColor:"transparent",multipleItemHeight:F,multipleItemHeightLG:ye,multipleSelectorBgDisabled:U,multipleItemColorDisabled:ee,multipleItemBorderColorDisabled:"transparent"}})},58582:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return Fe}});const le=ae=>{const K={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ae==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},K),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},K),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},K),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},K),{points:["br","tr"],offset:[0,-4]})}};function Fe(ae,Re){return ae||le(Re)}},84443:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return le}});function le(Fe,ae){return ae!==void 0?ae:Fe!==null}},66339:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});var le=E(40001),Fe=E(19248),ae=E(99267),Re=E(84105),K=E(58617),g=E(47472),R=E(59301);function T(l){let{suffixIcon:d,clearIcon:N,menuItemSelectedIcon:v,removeIcon:m,loading:b,multiple:I,hasFeedback:L,prefixCls:z,showSuffixIcon:P,feedbackIcon:$,showArrow:J,componentName:te}=l;const H=N!=null?N:R.createElement(Fe.Z,null),G=_e=>d===null&&!L&&!J?null:R.createElement(R.Fragment,null,P!==!1&&_e,L&&$);let ce=null;if(d!==void 0)ce=G(d);else if(b)ce=G(R.createElement(K.Z,{spin:!0}));else{const _e=`${z}-suffix`;ce=Le=>{let{open:se,showSearch:be}=Le;return G(se&&be?R.createElement(g.Z,{className:_e}):R.createElement(Re.Z,{className:_e}))}}let q=null;v!==void 0?q=v:I?q=R.createElement(le.Z,null):q=null;let ye=null;return m!==void 0?ye=m:ye=R.createElement(ae.Z,null),{clearIcon:H,suffixIcon:ce,itemIcon:q,removeIcon:ye}}},61621:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return x}});var le=E(92310),Fe=E.n(le),ae=E(59301),Re=E(36355),K=E(2738),R=y=>{const{prefixCls:k,className:fe,style:W,size:Q,shape:re}=y,Se=Fe()({[`${k}-lg`]:Q==="large",[`${k}-sm`]:Q==="small"}),Be=Fe()({[`${k}-circle`]:re==="circle",[`${k}-square`]:re==="square",[`${k}-round`]:re==="round"}),Te=ae.useMemo(()=>typeof Q=="number"?{width:Q,height:Q,lineHeight:`${Q}px`}:{},[Q]);return ae.createElement("span",{className:Fe()(k,Se,Be,fe),style:Object.assign(Object.assign({},Te),W)})},T=E(93083),l=E(83116),d=E(37613);const N=new T.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),v=y=>({height:y,lineHeight:`${y}px`}),m=y=>Object.assign({width:y},v(y)),b=y=>({background:y.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:N,animationDuration:y.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I=y=>Object.assign({width:y*5,minWidth:y*5},v(y)),L=y=>{const{skeletonAvatarCls:k,gradientFromColor:fe,controlHeight:W,controlHeightLG:Q,controlHeightSM:re}=y;return{[`${k}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:fe},m(W)),[`${k}${k}-circle`]:{borderRadius:"50%"},[`${k}${k}-lg`]:Object.assign({},m(Q)),[`${k}${k}-sm`]:Object.assign({},m(re))}},z=y=>{const{controlHeight:k,borderRadiusSM:fe,skeletonInputCls:W,controlHeightLG:Q,controlHeightSM:re,gradientFromColor:Se}=y;return{[`${W}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Se,borderRadius:fe},I(k)),[`${W}-lg`]:Object.assign({},I(Q)),[`${W}-sm`]:Object.assign({},I(re))}},P=y=>Object.assign({width:y},v(y)),$=y=>{const{skeletonImageCls:k,imageSizeBase:fe,gradientFromColor:W,borderRadiusSM:Q}=y;return{[`${k}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:W,borderRadius:Q},P(fe*2)),{[`${k}-path`]:{fill:"#bfbfbf"},[`${k}-svg`]:Object.assign(Object.assign({},P(fe)),{maxWidth:fe*4,maxHeight:fe*4}),[`${k}-svg${k}-svg-circle`]:{borderRadius:"50%"}}),[`${k}${k}-circle`]:{borderRadius:"50%"}}},J=(y,k,fe)=>{const{skeletonButtonCls:W}=y;return{[`${fe}${W}-circle`]:{width:k,minWidth:k,borderRadius:"50%"},[`${fe}${W}-round`]:{borderRadius:k}}},te=y=>Object.assign({width:y*2,minWidth:y*2},v(y)),H=y=>{const{borderRadiusSM:k,skeletonButtonCls:fe,controlHeight:W,controlHeightLG:Q,controlHeightSM:re,gradientFromColor:Se}=y;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Se,borderRadius:k,width:W*2,minWidth:W*2},te(W))},J(y,W,fe)),{[`${fe}-lg`]:Object.assign({},te(Q))}),J(y,Q,`${fe}-lg`)),{[`${fe}-sm`]:Object.assign({},te(re))}),J(y,re,`${fe}-sm`))},G=y=>{const{componentCls:k,skeletonAvatarCls:fe,skeletonTitleCls:W,skeletonParagraphCls:Q,skeletonButtonCls:re,skeletonInputCls:Se,skeletonImageCls:Be,controlHeight:Te,controlHeightLG:Ge,controlHeightSM:ut,gradientFromColor:$e,padding:Je,marginSM:At,borderRadius:ze,titleHeight:He,blockRadius:vt,paragraphLiHeight:jt,controlHeightXS:Dt,paragraphMarginTop:lr}=y;return{[`${k}`]:{display:"table",width:"100%",[`${k}-header`]:{display:"table-cell",paddingInlineEnd:Je,verticalAlign:"top",[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$e},m(Te)),[`${fe}-circle`]:{borderRadius:"50%"},[`${fe}-lg`]:Object.assign({},m(Ge)),[`${fe}-sm`]:Object.assign({},m(ut))},[`${k}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${W}`]:{width:"100%",height:He,background:$e,borderRadius:vt,[`+ ${Q}`]:{marginBlockStart:ut}},[`${Q}`]:{padding:0,"> li":{width:"100%",height:jt,listStyle:"none",background:$e,borderRadius:vt,"+ li":{marginBlockStart:Dt}}},[`${Q}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${k}-content`]:{[`${W}, ${Q} > li`]:{borderRadius:ze}}},[`${k}-with-avatar ${k}-content`]:{[`${W}`]:{marginBlockStart:At,[`+ ${Q}`]:{marginBlockStart:lr}}},[`${k}${k}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},H(y)),L(y)),z(y)),$(y)),[`${k}${k}-block`]:{width:"100%",[`${re}`]:{width:"100%"},[`${Se}`]:{width:"100%"}},[`${k}${k}-active`]:{[`
|
|
|
${W},
|
|
|
${Q} > li,
|
|
|
${fe},
|
|
|
${re},
|
|
|
${Se},
|
|
|
${Be}
|
|
|
`]:Object.assign({},b(y))}}};var ce=(0,l.Z)("Skeleton",y=>{const{componentCls:k}=y,fe=(0,d.TS)(y,{skeletonAvatarCls:`${k}-avatar`,skeletonTitleCls:`${k}-title`,skeletonParagraphCls:`${k}-paragraph`,skeletonButtonCls:`${k}-button`,skeletonInputCls:`${k}-input`,skeletonImageCls:`${k}-image`,imageSizeBase:y.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${y.gradientFromColor} 25%, ${y.gradientToColor} 37%, ${y.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[G(fe)]},y=>{const{colorFillContent:k,colorFill:fe}=y,W=k,Q=fe;return{color:W,colorGradientEnd:Q,gradientFromColor:W,gradientToColor:Q,titleHeight:y.controlHeight/2,blockRadius:y.borderRadiusSM,paragraphMarginTop:y.marginLG+y.marginXXS,paragraphLiHeight:y.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ye=y=>{const{prefixCls:k,className:fe,rootClassName:W,active:Q,shape:re="circle",size:Se="default"}=y,{getPrefixCls:Be}=ae.useContext(Re.E_),Te=Be("skeleton",k),[Ge,ut]=ce(Te),$e=(0,K.Z)(y,["prefixCls","className"]),Je=Fe()(Te,`${Te}-element`,{[`${Te}-active`]:Q},fe,W,ut);return Ge(ae.createElement("div",{className:Je},ae.createElement(R,Object.assign({prefixCls:`${Te}-avatar`,shape:re,size:Se},$e))))},Le=y=>{const{prefixCls:k,className:fe,rootClassName:W,active:Q,block:re=!1,size:Se="default"}=y,{getPrefixCls:Be}=ae.useContext(Re.E_),Te=Be("skeleton",k),[Ge,ut]=ce(Te),$e=(0,K.Z)(y,["prefixCls"]),Je=Fe()(Te,`${Te}-element`,{[`${Te}-active`]:Q,[`${Te}-block`]:re},fe,W,ut);return Ge(ae.createElement("div",{className:Je},ae.createElement(R,Object.assign({prefixCls:`${Te}-button`,size:Se},$e))))};const se="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var O=y=>{const{prefixCls:k,className:fe,rootClassName:W,style:Q,active:re}=y,{getPrefixCls:Se}=ae.useContext(Re.E_),Be=Se("skeleton",k),[Te,Ge]=ce(Be),ut=Fe()(Be,`${Be}-element`,{[`${Be}-active`]:re},fe,W,Ge);return Te(ae.createElement("div",{className:ut},ae.createElement("div",{className:Fe()(`${Be}-image`,fe),style:Q},ae.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Be}-image-svg`},ae.createElement("path",{d:se,className:`${Be}-image-path`})))))},ue=y=>{const{prefixCls:k,className:fe,rootClassName:W,active:Q,block:re,size:Se="default"}=y,{getPrefixCls:Be}=ae.useContext(Re.E_),Te=Be("skeleton",k),[Ge,ut]=ce(Te),$e=(0,K.Z)(y,["prefixCls"]),Je=Fe()(Te,`${Te}-element`,{[`${Te}-active`]:Q,[`${Te}-block`]:re},fe,W,ut);return Ge(ae.createElement("div",{className:Je},ae.createElement(R,Object.assign({prefixCls:`${Te}-input`,size:Se},$e))))},he=E(72308),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},F=ve,U=E(7657),ee=function(k,fe){return ae.createElement(U.Z,(0,he.Z)({},k,{ref:fe,icon:F}))},de=ae.forwardRef(ee),Xe=de,nt=y=>{const{prefixCls:k,className:fe,rootClassName:W,style:Q,active:re,children:Se}=y,{getPrefixCls:Be}=ae.useContext(Re.E_),Te=Be("skeleton",k),[Ge,ut]=ce(Te),$e=Fe()(Te,`${Te}-element`,{[`${Te}-active`]:re},ut,fe,W),Je=Se!=null?Se:ae.createElement(Xe,null);return Ge(ae.createElement("div",{className:$e},ae.createElement("div",{className:Fe()(`${Te}-image`,fe),style:Q},Je)))},_t=E(80702),zt=y=>{const k=Be=>{const{width:Te,rows:Ge=2}=y;if(Array.isArray(Te))return Te[Be];if(Ge-1===Be)return Te},{prefixCls:fe,className:W,style:Q,rows:re}=y,Se=(0,_t.Z)(Array(re)).map((Be,Te)=>ae.createElement("li",{key:Te,style:{width:k(Te)}}));return ae.createElement("ul",{className:Fe()(fe,W),style:Q},Se)},fr=y=>{let{prefixCls:k,className:fe,width:W,style:Q}=y;return ae.createElement("h3",{className:Fe()(k,fe),style:Object.assign({width:W},Q)})};function yr(y){return y&&typeof y=="object"?y:{}}function Ar(y,k){return y&&!k?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function vr(y,k){return!y&&k?{width:"38%"}:y&&k?{width:"50%"}:{}}function Ce(y,k){const fe={};return(!y||!k)&&(fe.width="61%"),!y&&k?fe.rows=3:fe.rows=2,fe}const It=y=>{const{prefixCls:k,loading:fe,className:W,rootClassName:Q,style:re,children:Se,avatar:Be=!1,title:Te=!0,paragraph:Ge=!0,active:ut,round:$e}=y,{getPrefixCls:Je,direction:At,skeleton:ze}=ae.useContext(Re.E_),He=Je("skeleton",k),[vt,jt]=ce(He);if(fe||!("loading"in y)){const Dt=!!Be,lr=!!Te,gr=!!Ge;let ne;if(Dt){const Ue=Object.assign(Object.assign({prefixCls:`${He}-avatar`},Ar(lr,gr)),yr(Be));ne=ae.createElement("div",{className:`${He}-header`},ae.createElement(R,Object.assign({},Ue)))}let we;if(lr||gr){let Ue;if(lr){const Rr=Object.assign(Object.assign({prefixCls:`${He}-title`},vr(Dt,gr)),yr(Te));Ue=ae.createElement(fr,Object.assign({},Rr))}let it;if(gr){const Rr=Object.assign(Object.assign({prefixCls:`${He}-paragraph`},Ce(Dt,lr)),yr(Ge));it=ae.createElement(zt,Object.assign({},Rr))}we=ae.createElement("div",{className:`${He}-content`},Ue,it)}const Vt=Fe()(He,{[`${He}-with-avatar`]:Dt,[`${He}-active`]:ut,[`${He}-rtl`]:At==="rtl",[`${He}-round`]:$e},ze==null?void 0:ze.className,W,Q,jt);return vt(ae.createElement("div",{className:Vt,style:Object.assign(Object.assign({},ze==null?void 0:ze.style),re)},ne,we))}return typeof Se!="undefined"?Se:null};It.Button=Le,It.Avatar=ye,It.Input=ue,It.Image=O,It.Node=nt;var Z=It,x=Z},81327:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return z}});var le=E(59301),Fe=E(92310),ae=E.n(Fe),Re=E(11592),K=E(36355),g=E(33234);const R=le.createContext({latestIndex:0}),T=R.Provider;var d=P=>{let{className:$,index:J,children:te,split:H,style:G}=P;const{latestIndex:ce}=le.useContext(R);return te==null?null:le.createElement(le.Fragment,null,le.createElement("div",{className:$,style:G},te),J<ce&&H&&le.createElement("span",{className:`${$}-split`},H))},N=E(2856);function v(P){return["small","middle","large"].includes(P)}function m(P){return P?typeof P=="number"&&!Number.isNaN(P):!1}var b=function(P,$){var J={};for(var te in P)Object.prototype.hasOwnProperty.call(P,te)&&$.indexOf(te)<0&&(J[te]=P[te]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,te=Object.getOwnPropertySymbols(P);H<te.length;H++)$.indexOf(te[H])<0&&Object.prototype.propertyIsEnumerable.call(P,te[H])&&(J[te[H]]=P[te[H]]);return J};const L=le.forwardRef((P,$)=>{var J,te;const{getPrefixCls:H,space:G,direction:ce}=le.useContext(K.E_),{size:q=(G==null?void 0:G.size)||"small",align:ye,className:_e,rootClassName:Le,children:se,direction:be="horizontal",prefixCls:O,split:Ee,style:ue,wrap:he=!1,classNames:ve,styles:F}=P,U=b(P,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ee,de]=Array.isArray(q)?q:[q,q],Xe=v(de),tt=v(ee),nt=m(de),_t=m(ee),Xt=(0,Re.Z)(se,{keepEmpty:!0}),zt=ye===void 0&&be==="horizontal"?"center":ye,Ze=H("space",O),[fr,yr]=(0,N.Z)(Ze),Ar=ae()(Ze,G==null?void 0:G.className,yr,`${Ze}-${be}`,{[`${Ze}-rtl`]:ce==="rtl",[`${Ze}-align-${zt}`]:zt,[`${Ze}-gap-row-${de}`]:Xe,[`${Ze}-gap-col-${ee}`]:tt},_e,Le),vr=ae()(`${Ze}-item`,(J=ve==null?void 0:ve.item)!==null&&J!==void 0?J:(te=G==null?void 0:G.classNames)===null||te===void 0?void 0:te.item);let Ce=0;const It=Xt.map((y,k)=>{var fe,W;y!=null&&(Ce=k);const Q=y&&y.key||`${vr}-${k}`;return le.createElement(d,{className:vr,key:Q,index:k,split:Ee,style:(fe=F==null?void 0:F.item)!==null&&fe!==void 0?fe:(W=G==null?void 0:G.styles)===null||W===void 0?void 0:W.item},y)}),Z=le.useMemo(()=>({latestIndex:Ce}),[Ce]);if(Xt.length===0)return null;const x={};return he&&(x.flexWrap="wrap"),!tt&&_t&&(x.columnGap=ee),!Xe&&nt&&(x.rowGap=de),fr(le.createElement("div",Object.assign({ref:$,className:Ar,style:Object.assign(Object.assign(Object.assign({},x),G==null?void 0:G.style),ue)},U),le.createElement(T,{value:Z},It)))});L.Compact=g.ZP;var z=L},8378:function(tn,Mt){"use strict";const E=le=>({[le.componentCls]:{[`${le.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${le.motionDurationMid} ${le.motionEaseInOut},
|
|
|
opacity ${le.motionDurationMid} ${le.motionEaseInOut} !important`}},[`${le.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${le.motionDurationMid} ${le.motionEaseInOut},
|
|
|
opacity ${le.motionDurationMid} ${le.motionEaseInOut} !important`}}});Mt.Z=E},92899:function(tn,Mt,E){"use strict";E.d(Mt,{Fm:function(){return v}});var le=E(93083),Fe=E(95406);const ae=new le.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Re=new le.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),K=new le.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new le.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),R=new le.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T=new le.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),l=new le.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d=new le.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),N={"move-up":{inKeyframes:l,outKeyframes:d},"move-down":{inKeyframes:ae,outKeyframes:Re},"move-left":{inKeyframes:K,outKeyframes:g},"move-right":{inKeyframes:R,outKeyframes:T}},v=(m,b)=>{const{antCls:I}=m,L=`${I}-${b}`,{inKeyframes:z,outKeyframes:P}=N[b];return[(0,Fe.R)(L,z,P,m.motionDurationMid),{[`
|
|
|
${L}-enter,
|
|
|
${L}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:m.motionEaseOutCirc},[`${L}-leave`]:{animationTimingFunction:m.motionEaseInOutCirc}}]}},13826:function(tn,Mt,E){"use strict";E.d(Mt,{Qt:function(){return K},Uw:function(){return Re},fJ:function(){return ae},ly:function(){return g},oN:function(){return v}});var le=E(93083),Fe=E(95406);const ae=new le.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Re=new le.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),K=new le.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new le.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),R=new le.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),T=new le.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new le.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),d=new le.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),N={"slide-up":{inKeyframes:ae,outKeyframes:Re},"slide-down":{inKeyframes:K,outKeyframes:g},"slide-left":{inKeyframes:R,outKeyframes:T},"slide-right":{inKeyframes:l,outKeyframes:d}},v=(m,b)=>{const{antCls:I}=m,L=`${I}-${b}`,{inKeyframes:z,outKeyframes:P}=N[b];return[(0,Fe.R)(L,z,P,m.motionDurationMid),{[`
|
|
|
${L}-enter,
|
|
|
${L}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:m.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${L}-leave`]:{animationTimingFunction:m.motionEaseInQuint}}]}},15969:function(tn,Mt,E){"use strict";E.d(Mt,{N:function(){return le}});const le=Fe=>({color:Fe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Fe.motionDurationSlow}`,"&:focus, &:hover":{color:Fe.colorLinkHover},"&:active":{color:Fe.colorLinkActive}})},19447:function(tn,Mt,E){"use strict";E.d(Mt,{ZP:function(){return K},fS:function(){return ae},qN:function(){return Fe}});var le=E(47585);const Fe=8;function ae(g){const R=Fe,{contentRadius:T,limitVerticalRadius:l}=g,d=T>12?T+2:12;return{dropdownArrowOffset:d,dropdownArrowOffsetVertical:l?R:d}}function Re(g,R){return g?R:{}}function K(g,R){const{componentCls:T,sizePopupArrow:l,borderRadiusXS:d,borderRadiusOuter:N,boxShadowPopoverArrow:v}=g,{colorBg:m,contentRadius:b=g.borderRadiusLG,limitVerticalRadius:I,arrowDistance:L=0,arrowPlacement:z={left:!0,right:!0,top:!0,bottom:!0}}=R,{dropdownArrowOffsetVertical:P,dropdownArrowOffset:$}=ae({contentRadius:b,limitVerticalRadius:I});return{[T]:Object.assign(Object.assign(Object.assign(Object.assign({[`${T}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,le.r)(l,d,N,m,v)),{"&:before":{background:m}})]},Re(!!z.top,{[[`&-placement-top ${T}-arrow`,`&-placement-topLeft ${T}-arrow`,`&-placement-topRight ${T}-arrow`].join(",")]:{bottom:L,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${T}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${T}-arrow`]:{left:{_skip_check_:!0,value:$}},[`&-placement-topRight ${T}-arrow`]:{right:{_skip_check_:!0,value:$}}})),Re(!!z.bottom,{[[`&-placement-bottom ${T}-arrow`,`&-placement-bottomLeft ${T}-arrow`,`&-placement-bottomRight ${T}-arrow`].join(",")]:{top:L,transform:"translateY(-100%)"},[`&-placement-bottom ${T}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${T}-arrow`]:{left:{_skip_check_:!0,value:$}},[`&-placement-bottomRight ${T}-arrow`]:{right:{_skip_check_:!0,value:$}}})),Re(!!z.left,{[[`&-placement-left ${T}-arrow`,`&-placement-leftTop ${T}-arrow`,`&-placement-leftBottom ${T}-arrow`].join(",")]:{right:{_skip_check_:!0,value:L},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${T}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${T}-arrow`]:{top:P},[`&-placement-leftBottom ${T}-arrow`]:{bottom:P}})),Re(!!z.right,{[[`&-placement-right ${T}-arrow`,`&-placement-rightTop ${T}-arrow`,`&-placement-rightBottom ${T}-arrow`].join(",")]:{left:{_skip_check_:!0,value:L},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${T}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${T}-arrow`]:{top:P},[`&-placement-rightBottom ${T}-arrow`]:{bottom:P}}))}}},47585:function(tn,Mt,E){"use strict";E.d(Mt,{r:function(){return le}});const le=(Fe,ae,Re,K,g)=>{const R=Fe/2,T=0,l=R,d=Re*1/Math.sqrt(2),N=R-Re*(1-1/Math.sqrt(2)),v=R-ae*(1/Math.sqrt(2)),m=Re*(Math.sqrt(2)-1)+ae*(1/Math.sqrt(2)),b=2*R-v,I=m,L=2*R-d,z=N,P=2*R-T,$=l,J=R*Math.sqrt(2)+Re*(Math.sqrt(2)-2),te=Re*(Math.sqrt(2)-1);return{pointerEvents:"none",width:Fe,height:Fe,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:Fe,height:Fe/2,background:K,clipPath:{_multi_value_:!0,value:[`polygon(${te}px 100%, 50% ${te}px, ${2*R-te}px 100%, ${te}px 100%)`,`path('M ${T} ${l} A ${Re} ${Re} 0 0 0 ${d} ${N} L ${v} ${m} A ${ae} ${ae} 0 0 1 ${b} ${I} L ${L} ${z} A ${Re} ${Re} 0 0 0 ${P} ${$} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:J,height:J,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:g,zIndex:0,background:"transparent"}}}},1710:function(tn,Mt,E){"use strict";E.d(Mt,{default:function(){return Cr}});var le={},Fe="rc-table-internal-hook",ae=E(52487),Re=E(6089),K=E(34280),g=E(13697),R=E(59301),T=E(4676);function l(ge){var Pe=R.createContext(void 0),Ye=function(ot){var gt=ot.value,Ft=ot.children,er=R.useRef(gt);er.current=gt;var je=R.useState(function(){return{getValue:function(){return er.current},listeners:new Set}}),at=(0,ae.Z)(je,1),Ie=at[0];return(0,K.Z)(function(){(0,T.unstable_batchedUpdates)(function(){Ie.listeners.forEach(function(bt){bt(gt)})})},[gt]),R.createElement(Pe.Provider,{value:Ie},Ft)};return{Context:Pe,Provider:Ye,defaultValue:ge}}function d(ge,Pe){var Ye=(0,Re.Z)(typeof Pe=="function"?Pe:function(bt){if(Pe===void 0)return bt;if(!Array.isArray(Pe))return bt[Pe];var Kt={};return Pe.forEach(function(Jt){Kt[Jt]=bt[Jt]}),Kt}),st=R.useContext(ge==null?void 0:ge.Context),ot=st||{},gt=ot.listeners,Ft=ot.getValue,er=R.useRef();er.current=Ye(st?Ft():ge==null?void 0:ge.defaultValue);var je=R.useState({}),at=(0,ae.Z)(je,2),Ie=at[1];return(0,K.Z)(function(){if(!st)return;function bt(Kt){var Jt=Ye(Kt);(0,g.Z)(er.current,Jt,!0)||Ie({})}return gt.add(bt),function(){gt.delete(bt)}},[st]),er.current}var N=E(72308),v=E(8654);function m(){var ge=R.createContext(null);function Pe(){return R.useContext(ge)}function Ye(ot,gt){var Ft=(0,v.Yr)(ot),er=function(at,Ie){var bt=Ft?{ref:Ie}:{},Kt=R.useRef(0),Jt=R.useRef(at),rr=Pe();return rr!==null?R.createElement(ot,(0,N.Z)({},at,bt)):((!gt||gt(Jt.current,at))&&(Kt.current+=1),Jt.current=at,R.createElement(ge.Provider,{value:Kt.current},R.createElement(ot,(0,N.Z)({},at,bt))))};return Ft?R.forwardRef(er):er}function st(ot,gt){var Ft=(0,v.Yr)(ot),er=function(at,Ie){var bt=Ft?{ref:Ie}:{};return Pe(),R.createElement(ot,(0,N.Z)({},at,bt))};return Ft?R.memo(R.forwardRef(er),gt):R.memo(er,gt)}return{makeImmutable:Ye,responseImmutable:st,useImmutableMark:Pe}}var b=m(),I=b.makeImmutable,L=b.responseImmutable,z=b.useImmutableMark,P=m(),$=P.makeImmutable,J=P.responseImmutable,te=P.useImmutableMark,H=l(),G=H;function ce(ge,Pe){var Ye=R.useRef(0);Ye.current+=1;var st=R.useRef(ge),ot=[];Object.keys(ge||{}).map(function(Ft){var er;(ge==null?void 0:ge[Ft])!==((er=st.current)===null||er===void 0?void 0:er[Ft])&&ot.push(Ft)}),st.current=ge;var gt=R.useRef([]);return ot.length&&(gt.current=ot),R.useDebugValue(Ye.current),R.useDebugValue(gt.current.join(", ")),Pe&&console.log("".concat(Pe,":"),Ye.current,gt.current),Ye.current}var q=null,ye=R.memo(function(){var ge=ce();return R.createElement("h1",null,"Render Times: ",ge)});ye.displayName="RenderBlock";var _e=E(62853),Le=E(77321),se=E(49618),be=E(92310),O=E.n(be),Ee=E(80547),ue=E(97938),he=E(48736),ve=R.createContext({renderWithProps:!1}),F=ve,U="RC_TABLE_KEY";function ee(ge){return ge==null?[]:Array.isArray(ge)?ge:[ge]}function de(ge){var Pe=[],Ye={};return ge.forEach(function(st){for(var ot=st||{},gt=ot.key,Ft=ot.dataIndex,er=gt||ee(Ft).join("-")||U;Ye[er];)er="".concat(er,"_next");Ye[er]=!0,Pe.push(er)}),Pe}function Xe(ge){return ge!=null}function tt(ge){return ge&&(0,_e.Z)(ge)==="object"&&!Array.isArray(ge)&&!R.isValidElement(ge)}function nt(ge,Pe,Ye,st,ot,gt){var Ft=R.useContext(F),er=te(),je=(0,Ee.Z)(function(){if(Xe(st))return[st];var at=Pe==null||Pe===""?[]:Array.isArray(Pe)?Pe:[Pe],Ie=(0,ue.Z)(ge,at),bt=Ie,Kt=void 0;if(ot){var Jt=ot(Ie,ge,Ye);tt(Jt)?(bt=Jt.children,Kt=Jt.props,Ft.renderWithProps=!0):bt=Jt}return[bt,Kt]},[er,ge,st,Pe,ot,Ye],function(at,Ie){if(gt){var bt=(0,ae.Z)(at,2),Kt=bt[1],Jt=(0,ae.Z)(Ie,2),rr=Jt[1];return gt(rr,Kt)}return Ft.renderWithProps?!0:!(0,g.Z)(at,Ie,!0)});return je}function _t(ge,Pe,Ye,st){var ot=ge+Pe-1;return ge<=st&&ot>=Ye}function Xt(ge,Pe){return d(G,function(Ye){var st=_t(ge,Pe||1,Ye.hoverStartRow,Ye.hoverEndRow);return[st,Ye.onHover]})}var zt=function(Pe){var Ye=Pe.ellipsis,st=Pe.rowType,ot=Pe.children,gt,Ft=Ye===!0?{showTitle:!0}:Ye;return Ft&&(Ft.showTitle||st==="header")&&(typeof ot=="string"||typeof ot=="number"?gt=ot.toString():R.isValidElement(ot)&&typeof ot.props.children=="string"&&(gt=ot.props.children)),gt};function Ze(ge){var Pe,Ye,st,ot,gt,Ft,er,je,at=ge.component,Ie=ge.children,bt=ge.ellipsis,Kt=ge.scope,Jt=ge.prefixCls,rr=ge.className,dr=ge.align,Lr=ge.record,Or=ge.render,Mr=ge.dataIndex,Yr=ge.renderIndex,Qn=ge.shouldCellUpdate,Tr=ge.index,Qt=ge.rowType,ei=ge.colSpan,Yn=ge.rowSpan,Qr=ge.fixLeft,sn=ge.fixRight,rn=ge.firstFixLeft,Vr=ge.lastFixLeft,Sn=ge.firstFixRight,qn=ge.lastFixRight,pi=ge.appendNode,Qe=ge.additionalProps,p=Qe===void 0?{}:Qe,S=ge.isSticky,D="".concat(Jt,"-cell"),V=d(G,["supportSticky","allColumnsFixedLeft"]),pe=V.supportSticky,Ke=V.allColumnsFixedLeft,lt=nt(Lr,Mr,Yr,Ie,Or,Qn),yt=(0,ae.Z)(lt,2),Ot=yt[0],ir=yt[1],wr={},Sr=typeof Qr=="number"&&pe,Tn=typeof sn=="number"&&pe;Sr&&(wr.position="sticky",wr.left=Qr),Tn&&(wr.position="sticky",wr.right=sn);var _r=(Pe=(Ye=(st=ir==null?void 0:ir.colSpan)!==null&&st!==void 0?st:p.colSpan)!==null&&Ye!==void 0?Ye:ei)!==null&&Pe!==void 0?Pe:1,kt=(ot=(gt=(Ft=ir==null?void 0:ir.rowSpan)!==null&&Ft!==void 0?Ft:p.rowSpan)!==null&>!==void 0?gt:Yn)!==null&&ot!==void 0?ot:1,wn=Xt(Tr,kt),xn=(0,ae.Z)(wn,2),kn=xn[0],pn=xn[1],yi=function(Nn){var qi;Lr&&pn(Tr,Tr+kt-1),p==null||(qi=p.onMouseEnter)===null||qi===void 0||qi.call(p,Nn)},xi=function(Nn){var qi;Lr&&pn(-1,-1),p==null||(qi=p.onMouseLeave)===null||qi===void 0||qi.call(p,Nn)};if(_r===0||kt===0)return null;var Fi=(er=p.title)!==null&&er!==void 0?er:zt({rowType:Qt,ellipsis:bt,children:Ot}),os=O()(D,rr,(je={},(0,se.Z)(je,"".concat(D,"-fix-left"),Sr&&pe),(0,se.Z)(je,"".concat(D,"-fix-left-first"),rn&&pe),(0,se.Z)(je,"".concat(D,"-fix-left-last"),Vr&&pe),(0,se.Z)(je,"".concat(D,"-fix-left-all"),Vr&&Ke&&pe),(0,se.Z)(je,"".concat(D,"-fix-right"),Tn&&pe),(0,se.Z)(je,"".concat(D,"-fix-right-first"),Sn&&pe),(0,se.Z)(je,"".concat(D,"-fix-right-last"),qn&&pe),(0,se.Z)(je,"".concat(D,"-ellipsis"),bt),(0,se.Z)(je,"".concat(D,"-with-append"),pi),(0,se.Z)(je,"".concat(D,"-fix-sticky"),(Sr||Tn)&&S&&pe),(0,se.Z)(je,"".concat(D,"-row-hover"),!ir&&kn),je),p.className,ir==null?void 0:ir.className),fi={};dr&&(fi.textAlign=dr);var Es=(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},wr),p.style),fi),ir==null?void 0:ir.style),ns=Ot;return(0,_e.Z)(ns)==="object"&&!Array.isArray(ns)&&!R.isValidElement(ns)&&(ns=null),bt&&(Vr||Sn)&&(ns=R.createElement("span",{className:"".concat(D,"-content")},ns)),R.createElement(at,(0,N.Z)({},ir,p,{className:os,style:Es,title:Fi,scope:Kt,onMouseEnter:yi,onMouseLeave:xi,colSpan:_r!==1?_r:null,rowSpan:kt!==1?kt:null}),pi,ns)}var fr=R.memo(Ze);function yr(ge,Pe,Ye,st,ot,gt){var Ft=Ye[ge]||{},er=Ye[Pe]||{},je,at;Ft.fixed==="left"?je=st.left[ot==="rtl"?Pe:ge]:er.fixed==="right"&&(at=st.right[ot==="rtl"?ge:Pe]);var Ie=!1,bt=!1,Kt=!1,Jt=!1,rr=Ye[Pe+1],dr=Ye[ge-1],Lr=!(gt!=null&>.children);if(ot==="rtl"){if(je!==void 0){var Or=dr&&dr.fixed==="left";Jt=!Or&&Lr}else if(at!==void 0){var Mr=rr&&rr.fixed==="right";Kt=!Mr&&Lr}}else if(je!==void 0){var Yr=rr&&rr.fixed==="left";Ie=!Yr&&Lr}else if(at!==void 0){var Qn=dr&&dr.fixed==="right";bt=!Qn&&Lr}return{fixLeft:je,fixRight:at,lastFixLeft:Ie,firstFixRight:bt,lastFixRight:Kt,firstFixLeft:Jt,isSticky:st.isSticky}}var Ar=R.createContext({}),vr=Ar;function Ce(ge){var Pe=ge.className,Ye=ge.index,st=ge.children,ot=ge.colSpan,gt=ot===void 0?1:ot,Ft=ge.rowSpan,er=ge.align,je=d(G,["prefixCls","direction"]),at=je.prefixCls,Ie=je.direction,bt=R.useContext(vr),Kt=bt.scrollColumnIndex,Jt=bt.stickyOffsets,rr=bt.flattenColumns,dr=bt.columns,Lr=Ye+gt-1,Or=Lr+1===Kt?gt+1:gt,Mr=yr(Ye,Ye+Or-1,rr,Jt,Ie,dr==null?void 0:dr[Ye]);return R.createElement(fr,(0,N.Z)({className:Pe,index:Ye,component:"td",prefixCls:at,record:null,dataIndex:null,align:er,colSpan:Or,rowSpan:Ft,render:function(){return st}},Mr))}var It=E(74416),Z=["children"];function x(ge){var Pe=ge.children,Ye=(0,It.Z)(ge,Z);return R.createElement("tr",Ye,Pe)}function y(ge){var Pe=ge.children;return Pe}y.Row=x,y.Cell=Ce;var k=y;function fe(ge){var Pe=ge.children,Ye=ge.stickyOffsets,st=ge.flattenColumns,ot=ge.columns,gt=d(G,"prefixCls"),Ft=st.length-1,er=st[Ft],je=R.useMemo(function(){return{stickyOffsets:Ye,flattenColumns:st,scrollColumnIndex:er!=null&&er.scrollbar?Ft:null,columns:ot}},[er,st,Ft,Ye,ot]);return R.createElement(vr.Provider,{value:je},R.createElement("tfoot",{className:"".concat(gt,"-summary")},Pe))}var W=J(fe),Q=k,re=E(70425),Se=E(29301),Be=E(29194),Te=E(24514),Ge=E(75152),ut=E(26112);function $e(ge,Pe,Ye,st,ot,gt,Ft){ge.push({record:Pe,indent:Ye,index:Ft});var er=gt(Pe),je=ot==null?void 0:ot.has(er);if(Pe&&Array.isArray(Pe[st])&&je)for(var at=0;at<Pe[st].length;at+=1)$e(ge,Pe[st][at],Ye+1,st,ot,gt,at)}function Je(ge,Pe,Ye,st){var ot=R.useMemo(function(){if(Ye!=null&&Ye.size){for(var gt=[],Ft=0;Ft<(ge==null?void 0:ge.length);Ft+=1){var er=ge[Ft];$e(gt,er,0,Pe,Ye,st,Ft)}return gt}return ge==null?void 0:ge.map(function(je,at){return{record:je,indent:0,index:at}})},[ge,Pe,Ye,st]);return ot}function At(ge){var Pe=ge.prefixCls,Ye=ge.children,st=ge.component,ot=ge.cellComponent,gt=ge.className,Ft=ge.expanded,er=ge.colSpan,je=ge.isEmpty,at=d(G,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ie=at.scrollbarSize,bt=at.fixHeader,Kt=at.fixColumn,Jt=at.componentWidth,rr=at.horizonScroll,dr=Ye;return(je?rr&&Jt:Kt)&&(dr=R.createElement("div",{style:{width:Jt-(bt?Ie:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Pe,"-expanded-row-fixed")},dr)),R.createElement(st,{className:gt,style:{display:Ft?null:"none"}},R.createElement(fr,{component:ot,prefixCls:Pe,colSpan:er},dr))}var ze=At;function He(ge,Pe,Ye,st){var ot=d(G,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),gt=ot.flattenColumns,Ft=ot.expandableType,er=ot.expandedKeys,je=ot.childrenColumnName,at=ot.onTriggerExpand,Ie=ot.rowExpandable,bt=ot.onRow,Kt=ot.expandRowByClick,Jt=ot.rowClassName,rr=Ft==="nest",dr=Ft==="row"&&(!Ie||Ie(ge)),Lr=dr||rr,Or=er&&er.has(Pe),Mr=je&&ge&&ge[je],Yr=(0,re.useEvent)(at),Qn=bt==null?void 0:bt(ge,Ye),Tr=Qn==null?void 0:Qn.onClick,Qt=function(sn){Kt&&Lr&&at(ge,sn);for(var rn=arguments.length,Vr=new Array(rn>1?rn-1:0),Sn=1;Sn<rn;Sn++)Vr[Sn-1]=arguments[Sn];Tr==null||Tr.apply(void 0,[sn].concat(Vr))},ei;typeof Jt=="string"?ei=Jt:typeof Jt=="function"&&(ei=Jt(ge,Ye,st));var Yn=de(gt);return(0,Le.Z)((0,Le.Z)({},ot),{},{columnsKey:Yn,nestExpandable:rr,expanded:Or,hasNestChildren:Mr,record:ge,onTriggerExpand:Yr,rowSupportExpand:dr,expandable:Lr,rowProps:(0,Le.Z)((0,Le.Z)({},Qn),{},{className:O()(ei,Qn==null?void 0:Qn.className),onClick:Qt})})}function vt(ge,Pe,Ye,st,ot){var gt=ge.record,Ft=ge.prefixCls,er=ge.columnsKey,je=ge.fixedInfoList,at=ge.expandIconColumnIndex,Ie=ge.nestExpandable,bt=ge.indentSize,Kt=ge.expandIcon,Jt=ge.expanded,rr=ge.hasNestChildren,dr=ge.onTriggerExpand,Lr=er[Ye],Or=je[Ye],Mr;Ye===(at||0)&&Ie&&(Mr=R.createElement(R.Fragment,null,R.createElement("span",{style:{paddingLeft:"".concat(bt*st,"px")},className:"".concat(Ft,"-row-indent indent-level-").concat(st)}),Kt({prefixCls:Ft,expanded:Jt,expandable:rr,record:gt,onExpand:dr})));var Yr;return Pe.onCell&&(Yr=Pe.onCell(gt,ot)),{key:Lr,fixedInfo:Or,appendCellNode:Mr,additionalCellProps:Yr||{}}}function jt(ge){var Pe=ge.className,Ye=ge.style,st=ge.record,ot=ge.index,gt=ge.renderIndex,Ft=ge.rowKey,er=ge.indent,je=er===void 0?0:er,at=ge.rowComponent,Ie=ge.cellComponent,bt=ge.scopeCellComponent,Kt=He(st,Ft,ot,je),Jt=Kt.prefixCls,rr=Kt.flattenColumns,dr=Kt.expandedRowClassName,Lr=Kt.expandedRowRender,Or=Kt.rowProps,Mr=Kt.expanded,Yr=Kt.rowSupportExpand,Qn=R.useState(!1),Tr=(0,ae.Z)(Qn,2),Qt=Tr[0],ei=Tr[1];R.useEffect(function(){Mr&&ei(!0)},[Mr]);var Yn=R.createElement(at,(0,N.Z)({},Or,{"data-row-key":Ft,className:O()(Pe,"".concat(Jt,"-row"),"".concat(Jt,"-row-level-").concat(je),Or==null?void 0:Or.className),style:(0,Le.Z)((0,Le.Z)({},Ye),Or==null?void 0:Or.style)}),rr.map(function(Vr,Sn){var qn=Vr.render,pi=Vr.dataIndex,Qe=Vr.className,p=vt(Kt,Vr,Sn,je,ot),S=p.key,D=p.fixedInfo,V=p.appendCellNode,pe=p.additionalCellProps;return R.createElement(fr,(0,N.Z)({className:Qe,ellipsis:Vr.ellipsis,align:Vr.align,scope:Vr.rowScope,component:Vr.rowScope?bt:Ie,prefixCls:Jt,key:S,record:st,index:ot,renderIndex:gt,dataIndex:pi,render:qn,shouldCellUpdate:Vr.shouldCellUpdate},D,{appendNode:V,additionalProps:pe}))})),Qr;if(Yr&&(Qt||Mr)){var sn=Lr(st,ot,je+1,Mr),rn=dr&&dr(st,ot,je);Qr=R.createElement(ze,{expanded:Mr,className:O()("".concat(Jt,"-expanded-row"),"".concat(Jt,"-expanded-row-level-").concat(je+1),rn),prefixCls:Jt,component:at,cellComponent:Ie,colSpan:rr.length,isEmpty:!1},sn)}return R.createElement(R.Fragment,null,Yn,Qr)}jt.displayName="BodyRow";var Dt=J(jt);function lr(ge){var Pe=ge.columnKey,Ye=ge.onColumnResize,st=R.useRef();return R.useEffect(function(){st.current&&Ye(Pe,st.current.offsetWidth)},[]),R.createElement(Se.Z,{data:Pe},R.createElement("td",{ref:st,style:{padding:0,border:0,height:0}},R.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function gr(ge){var Pe=ge.prefixCls,Ye=ge.columnsKey,st=ge.onColumnResize;return R.createElement("tr",{"aria-hidden":"true",className:"".concat(Pe,"-measure-row"),style:{height:0,fontSize:0}},R.createElement(Se.Z.Collection,{onBatchResize:function(gt){gt.forEach(function(Ft){var er=Ft.data,je=Ft.size;st(er,je.offsetWidth)})}},Ye.map(function(ot){return R.createElement(lr,{key:ot,columnKey:ot,onColumnResize:st})})))}function ne(ge){var Pe=ge.data,Ye=ge.measureColumnWidth,st=d(G,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),ot=st.prefixCls,gt=st.getComponent,Ft=st.onColumnResize,er=st.flattenColumns,je=st.getRowKey,at=st.expandedKeys,Ie=st.childrenColumnName,bt=st.emptyNode,Kt=Je(Pe,Ie,at,je),Jt=R.useRef({renderWithProps:!1}),rr=gt(["body","wrapper"],"tbody"),dr=gt(["body","row"],"tr"),Lr=gt(["body","cell"],"td"),Or=gt(["body","cell"],"th"),Mr;Pe.length?Mr=Kt.map(function(Qn,Tr){var Qt=Qn.record,ei=Qn.indent,Yn=Qn.index,Qr=je(Qt,Tr);return R.createElement(Dt,{key:Qr,rowKey:Qr,record:Qt,index:Tr,renderIndex:Yn,rowComponent:dr,cellComponent:Lr,scopeCellComponent:Or,getRowKey:je,indent:ei})}):Mr=R.createElement(ze,{expanded:!0,className:"".concat(ot,"-placeholder"),prefixCls:ot,component:dr,cellComponent:Lr,colSpan:er.length,isEmpty:!0},bt);var Yr=de(er);return R.createElement(F.Provider,{value:Jt.current},R.createElement(rr,{className:"".concat(ot,"-tbody")},Ye&&R.createElement(gr,{prefixCls:ot,columnsKey:Yr,onColumnResize:Ft}),Mr))}ne.displayName="Body";var we=J(ne),Vt=["expandable"],Ue="RC_TABLE_INTERNAL_COL_DEFINE";function it(ge){var Pe=ge.expandable,Ye=(0,It.Z)(ge,Vt),st;return"expandable"in ge?st=(0,Le.Z)((0,Le.Z)({},Ye),Pe):st=Ye,st.showExpandColumn===!1&&(st.expandIconColumnIndex=-1),st}var Rr=["columnType"];function Tt(ge){for(var Pe=ge.colWidths,Ye=ge.columns,st=ge.columCount,ot=[],gt=st||Ye.length,Ft=!1,er=gt-1;er>=0;er-=1){var je=Pe[er],at=Ye&&Ye[er],Ie=at&&at[Ue];if(je||Ie||Ft){var bt=Ie||{},Kt=bt.columnType,Jt=(0,It.Z)(bt,Rr);ot.unshift(R.createElement("col",(0,N.Z)({key:er,style:{width:je}},Jt))),Ft=!0}}return R.createElement("colgroup",null,ot)}var Rt=Tt,$t=E(80702),qe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function pt(ge,Pe){return(0,R.useMemo)(function(){for(var Ye=[],st=0;st<Pe;st+=1){var ot=ge[st];if(ot!==void 0)Ye[st]=ot;else return null}return Ye},[ge.join("_"),Pe])}var rt=R.forwardRef(function(ge,Pe){var Ye=ge.className,st=ge.noData,ot=ge.columns,gt=ge.flattenColumns,Ft=ge.colWidths,er=ge.columCount,je=ge.stickyOffsets,at=ge.direction,Ie=ge.fixHeader,bt=ge.stickyTopOffset,Kt=ge.stickyBottomOffset,Jt=ge.stickyClassName,rr=ge.onScroll,dr=ge.maxContentScroll,Lr=ge.children,Or=(0,It.Z)(ge,qe),Mr=d(G,["prefixCls","scrollbarSize","isSticky"]),Yr=Mr.prefixCls,Qn=Mr.scrollbarSize,Tr=Mr.isSticky,Qt=Tr&&!Ie?0:Qn,ei=R.useRef(null),Yn=R.useCallback(function(Qe){(0,v.mH)(Pe,Qe),(0,v.mH)(ei,Qe)},[]);R.useEffect(function(){var Qe;function p(S){var D=S,V=D.currentTarget,pe=D.deltaX;pe&&(rr({currentTarget:V,scrollLeft:V.scrollLeft+pe}),S.preventDefault())}return(Qe=ei.current)===null||Qe===void 0||Qe.addEventListener("wheel",p),function(){var S;(S=ei.current)===null||S===void 0||S.removeEventListener("wheel",p)}},[]);var Qr=R.useMemo(function(){return gt.every(function(Qe){return Qe.width})},[gt]),sn=gt[gt.length-1],rn={fixed:sn?sn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Yr,"-cell-scrollbar")}}},Vr=(0,R.useMemo)(function(){return Qt?[].concat((0,$t.Z)(ot),[rn]):ot},[Qt,ot]),Sn=(0,R.useMemo)(function(){return Qt?[].concat((0,$t.Z)(gt),[rn]):gt},[Qt,gt]),qn=(0,R.useMemo)(function(){var Qe=je.right,p=je.left;return(0,Le.Z)((0,Le.Z)({},je),{},{left:at==="rtl"?[].concat((0,$t.Z)(p.map(function(S){return S+Qt})),[0]):p,right:at==="rtl"?Qe:[].concat((0,$t.Z)(Qe.map(function(S){return S+Qt})),[0]),isSticky:Tr})},[Qt,je,Tr]),pi=pt(Ft,er);return R.createElement("div",{style:(0,Le.Z)({overflow:"hidden"},Tr?{top:bt,bottom:Kt}:{}),ref:Yn,className:O()(Ye,(0,se.Z)({},Jt,!!Jt))},R.createElement("table",{style:{tableLayout:"fixed",visibility:st||pi?null:"hidden"}},(!st||!dr||Qr)&&R.createElement(Rt,{colWidths:pi?[].concat((0,$t.Z)(pi),[Qt]):[],columCount:er+1,columns:Sn}),Lr((0,Le.Z)((0,Le.Z)({},Or),{},{stickyOffsets:qn,columns:Vr,flattenColumns:Sn}))))});rt.displayName="FixedHolder";var Ht=R.memo(rt);function Oe(ge){var Pe=ge.cells,Ye=ge.stickyOffsets,st=ge.flattenColumns,ot=ge.rowComponent,gt=ge.cellComponent,Ft=ge.tdCellComponent,er=ge.onHeaderRow,je=ge.index,at=d(G,["prefixCls","direction"]),Ie=at.prefixCls,bt=at.direction,Kt;er&&(Kt=er(Pe.map(function(rr){return rr.column}),je));var Jt=de(Pe.map(function(rr){return rr.column}));return R.createElement(ot,Kt,Pe.map(function(rr,dr){var Lr=rr.column,Or=yr(rr.colStart,rr.colEnd,st,Ye,bt,Lr),Mr;return Lr&&Lr.onHeaderCell&&(Mr=rr.column.onHeaderCell(Lr)),R.createElement(fr,(0,N.Z)({},rr,{scope:Lr.title?rr.colSpan>1?"colgroup":"col":null,ellipsis:Lr.ellipsis,align:Lr.align,component:Lr.title?gt:Ft,prefixCls:Ie,key:Jt[dr]},Or,{additionalProps:Mr,rowType:"header"}))}))}Oe.displayName="HeaderRow";var $r=Oe;function Bt(ge){var Pe=[];function Ye(Ft,er){var je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Pe[je]=Pe[je]||[];var at=er,Ie=Ft.filter(Boolean).map(function(bt){var Kt={key:bt.key,className:bt.className||"",children:bt.title,column:bt,colStart:at},Jt=1,rr=bt.children;return rr&&rr.length>0&&(Jt=Ye(rr,at,je+1).reduce(function(dr,Lr){return dr+Lr},0),Kt.hasSubColumns=!0),"colSpan"in bt&&(Jt=bt.colSpan),"rowSpan"in bt&&(Kt.rowSpan=bt.rowSpan),Kt.colSpan=Jt,Kt.colEnd=Kt.colStart+Jt-1,Pe[je].push(Kt),at+=Jt,Jt});return Ie}Ye(ge,0);for(var st=Pe.length,ot=function(er){Pe[er].forEach(function(je){!("rowSpan"in je)&&!je.hasSubColumns&&(je.rowSpan=st-er)})},gt=0;gt<st;gt+=1)ot(gt);return Pe}function gn(ge){var Pe=ge.stickyOffsets,Ye=ge.columns,st=ge.flattenColumns,ot=ge.onHeaderRow,gt=d(G,["prefixCls","getComponent"]),Ft=gt.prefixCls,er=gt.getComponent,je=R.useMemo(function(){return Bt(Ye)},[Ye]),at=er(["header","wrapper"],"thead"),Ie=er(["header","row"],"tr"),bt=er(["header","cell"],"th"),Kt=er(["header","cell"],"td");return R.createElement(at,{className:"".concat(Ft,"-thead")},je.map(function(Jt,rr){var dr=R.createElement($r,{key:rr,flattenColumns:st,cells:Jt,stickyOffsets:Pe,rowComponent:Ie,cellComponent:bt,tdCellComponent:Kt,onHeaderRow:ot,index:rr});return dr}))}var On=J(gn),hi=E(11592);function ti(ge){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Pe=="number"?Pe:Pe.endsWith("%")?ge*parseFloat(Pe)/100:null}function En(ge,Pe){return R.useMemo(function(){if(Pe&&Pe>0){var Ye=0,st=0;ge.forEach(function(at){var Ie=ti(Pe,at.width);Ie?Ye+=Ie:st+=1});var ot=Pe-Ye,gt=st,Ft=ot/st,er=0,je=ge.map(function(at){var Ie=(0,Le.Z)({},at),bt=ti(Pe,Ie.width);if(bt)Ie.width=bt;else{var Kt=Math.floor(Ft);Ie.width=gt===1?ot:Kt,ot-=Kt,gt-=1}return er+=Ie.width,Ie});return[je,er]}return[ge,Pe]},[ge,Pe])}var Dn=["children"],Ut=["fixed"];function Dr(ge){return(0,hi.Z)(ge).filter(function(Pe){return R.isValidElement(Pe)}).map(function(Pe){var Ye=Pe.key,st=Pe.props,ot=st.children,gt=(0,It.Z)(st,Dn),Ft=(0,Le.Z)({key:Ye},gt);return ot&&(Ft.children=Dr(ot)),Ft})}function Pr(ge){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ge.filter(function(Ye){return Ye&&(0,_e.Z)(Ye)==="object"}).reduce(function(Ye,st,ot){var gt=st.fixed,Ft=gt===!0?"left":gt,er="".concat(Pe,"-").concat(ot),je=st.children;return je&&je.length>0?[].concat((0,$t.Z)(Ye),(0,$t.Z)(Pr(je,er).map(function(at){return(0,Le.Z)({fixed:Ft},at)}))):[].concat((0,$t.Z)(Ye),[(0,Le.Z)((0,Le.Z)({key:er},st),{},{fixed:Ft})])},[])}function St(ge){for(var Pe=!0,Ye=0;Ye<ge.length;Ye+=1){var st=ge[Ye];if(Pe&&st.fixed!=="left")Pe=!1;else if(!Pe&&st.fixed==="left"){warning(!1,"Index ".concat(Ye-1," of `columns` missing `fixed='left'` prop."));break}}for(var ot=!0,gt=ge.length-1;gt>=0;gt-=1){var Ft=ge[gt];if(ot&&Ft.fixed!=="right")ot=!1;else if(!ot&&Ft.fixed==="right"){warning(!1,"Index ".concat(gt+1," of `columns` missing `fixed='right'` prop."));break}}}function mt(ge){return ge.map(function(Pe){var Ye=Pe.fixed,st=(0,It.Z)(Pe,Ut),ot=Ye;return Ye==="left"?ot="right":Ye==="right"&&(ot="left"),(0,Le.Z)({fixed:ot},st)})}function mr(ge,Pe){var Ye=ge.prefixCls,st=ge.columns,ot=ge.children,gt=ge.expandable,Ft=ge.expandedKeys,er=ge.columnTitle,je=ge.getRowKey,at=ge.onTriggerExpand,Ie=ge.expandIcon,bt=ge.rowExpandable,Kt=ge.expandIconColumnIndex,Jt=ge.direction,rr=ge.expandRowByClick,dr=ge.columnWidth,Lr=ge.fixed,Or=ge.scrollWidth,Mr=R.useMemo(function(){return st||Dr(ot)},[st,ot]),Yr=R.useMemo(function(){if(gt){var sn,rn=Mr.slice();if(!rn.includes(le)){var Vr=Kt||0;Vr>=0&&rn.splice(Vr,0,le)}var Sn=rn.indexOf(le);rn=rn.filter(function(p,S){return p!==le||S===Sn});var qn=Mr[Sn],pi;(Lr==="left"||Lr)&&!Kt?pi="left":(Lr==="right"||Lr)&&Kt===Mr.length?pi="right":pi=qn?qn.fixed:null;var Qe=(sn={},(0,se.Z)(sn,Ue,{className:"".concat(Ye,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,se.Z)(sn,"title",er),(0,se.Z)(sn,"fixed",pi),(0,se.Z)(sn,"className","".concat(Ye,"-row-expand-icon-cell")),(0,se.Z)(sn,"width",dr),(0,se.Z)(sn,"render",function(S,D,V){var pe=je(D,V),Ke=Ft.has(pe),lt=bt?bt(D):!0,yt=Ie({prefixCls:Ye,expanded:Ke,expandable:lt,record:D,onExpand:at});return rr?R.createElement("span",{onClick:function(ir){return ir.stopPropagation()}},yt):yt}),sn);return rn.map(function(p){return p===le?Qe:p})}return Mr.filter(function(p){return p!==le})},[gt,Mr,je,Ft,Ie,Jt]),Qn=R.useMemo(function(){var sn=Yr;return Pe&&(sn=Pe(sn)),sn.length||(sn=[{render:function(){return null}}]),sn},[Pe,Yr,Jt]),Tr=R.useMemo(function(){return Jt==="rtl"?mt(Pr(Qn)):Pr(Qn)},[Qn,Jt,Or]),Qt=En(Tr,Or),ei=(0,ae.Z)(Qt,2),Yn=ei[0],Qr=ei[1];return[Qn,Yn,Qr]}var xr=mr;function on(ge){var Pe,Ye=ge.prefixCls,st=ge.record,ot=ge.onExpand,gt=ge.expanded,Ft=ge.expandable,er="".concat(Ye,"-row-expand-icon");if(!Ft)return R.createElement("span",{className:O()(er,"".concat(Ye,"-row-spaced"))});var je=function(Ie){ot(st,Ie),Ie.stopPropagation()};return R.createElement("span",{className:O()(er,(Pe={},(0,se.Z)(Pe,"".concat(Ye,"-row-expanded"),gt),(0,se.Z)(Pe,"".concat(Ye,"-row-collapsed"),!gt),Pe)),onClick:je})}function kr(ge,Pe,Ye){var st=[];function ot(gt){(gt||[]).forEach(function(Ft,er){st.push(Pe(Ft,er)),ot(Ft[Ye])})}return ot(ge),st}function un(ge,Pe,Ye){var st=it(ge),ot=st.expandIcon,gt=st.expandedRowKeys,Ft=st.defaultExpandedRowKeys,er=st.defaultExpandAllRows,je=st.expandedRowRender,at=st.onExpand,Ie=st.onExpandedRowsChange,bt=st.childrenColumnName,Kt=ot||on,Jt=bt||"children",rr=R.useMemo(function(){return je?"row":ge.expandable&&ge.internalHooks===Fe&&ge.expandable.__PARENT_RENDER_ICON__||Pe.some(function(Tr){return Tr&&(0,_e.Z)(Tr)==="object"&&Tr[Jt]})?"nest":!1},[!!je,Pe]),dr=R.useState(function(){return Ft||(er?kr(Pe,Ye,Jt):[])}),Lr=(0,ae.Z)(dr,2),Or=Lr[0],Mr=Lr[1],Yr=R.useMemo(function(){return new Set(gt||Or||[])},[gt,Or]),Qn=R.useCallback(function(Tr){var Qt=Ye(Tr,Pe.indexOf(Tr)),ei,Yn=Yr.has(Qt);Yn?(Yr.delete(Qt),ei=(0,$t.Z)(Yr)):ei=[].concat((0,$t.Z)(Yr),[Qt]),Mr(ei),at&&at(!Yn,Tr),Ie&&Ie(ei)},[Ye,Yr,Pe,at,Ie]);return[st,rr,Yr,Kt,Jt,Qn]}function nn(ge,Pe,Ye,st){var ot=ge.map(function(gt,Ft){return yr(Ft,Ft,ge,Pe,Ye,st==null?void 0:st[Ft])});return(0,Ee.Z)(function(){return ot},[ot],function(gt,Ft){return!(0,g.Z)(gt,Ft)})}function _n(ge){var Pe=(0,R.useRef)(ge),Ye=(0,R.useState)({}),st=(0,ae.Z)(Ye,2),ot=st[1],gt=(0,R.useRef)(null),Ft=(0,R.useRef)([]);function er(je){Ft.current.push(je);var at=Promise.resolve();gt.current=at,at.then(function(){if(gt.current===at){var Ie=Ft.current,bt=Pe.current;Ft.current=[],Ie.forEach(function(Kt){Pe.current=Kt(Pe.current)}),gt.current=null,bt!==Pe.current&&ot({})}})}return(0,R.useEffect)(function(){return function(){gt.current=null}},[]),[Pe.current,er]}function Un(ge){var Pe=(0,R.useRef)(ge||null),Ye=(0,R.useRef)();function st(){window.clearTimeout(Ye.current)}function ot(Ft){Pe.current=Ft,st(),Ye.current=window.setTimeout(function(){Pe.current=null,Ye.current=void 0},100)}function gt(){return Pe.current}return(0,R.useEffect)(function(){return st},[]),[ot,gt]}function vn(){var ge=R.useState(-1),Pe=(0,ae.Z)(ge,2),Ye=Pe[0],st=Pe[1],ot=R.useState(-1),gt=(0,ae.Z)(ot,2),Ft=gt[0],er=gt[1],je=R.useCallback(function(at,Ie){st(at),er(Ie)},[]);return[Ye,Ft,je]}var Hr=E(47273),Kr=(0,Hr.Z)()?window:null;function qr(ge,Pe){var Ye=(0,_e.Z)(ge)==="object"?ge:{},st=Ye.offsetHeader,ot=st===void 0?0:st,gt=Ye.offsetSummary,Ft=gt===void 0?0:gt,er=Ye.offsetScroll,je=er===void 0?0:er,at=Ye.getContainer,Ie=at===void 0?function(){return Kr}:at,bt=Ie()||Kr;return R.useMemo(function(){var Kt=!!ge;return{isSticky:Kt,stickyClassName:Kt?"".concat(Pe,"-sticky-holder"):"",offsetHeader:ot,offsetSummary:Ft,offsetScroll:je,container:bt}},[je,ot,Ft,Pe,bt])}function bn(ge,Pe,Ye){var st=(0,R.useMemo)(function(){for(var ot=[],gt=[],Ft=0,er=0,je=0;je<Pe;je+=1)if(Ye==="rtl"){gt[je]=er,er+=ge[je]||0;var at=Pe-je-1;ot[at]=Ft,Ft+=ge[at]||0}else{ot[je]=Ft,Ft+=ge[je]||0;var Ie=Pe-je-1;gt[Ie]=er,er+=ge[Ie]||0}return{left:ot,right:gt}},[ge,Pe,Ye]);return st}var ln=bn;function ui(ge){var Pe=ge.className,Ye=ge.children;return R.createElement("div",{className:Pe},Ye)}var jn=ui,cn=E(8224),sr=E(55468),cr=function(Pe,Ye){var st,ot,gt=Pe.scrollBodyRef,Ft=Pe.onScroll,er=Pe.offsetScroll,je=Pe.container,at=d(G,"prefixCls"),Ie=((st=gt.current)===null||st===void 0?void 0:st.scrollWidth)||0,bt=((ot=gt.current)===null||ot===void 0?void 0:ot.clientWidth)||0,Kt=Ie&&bt*(bt/Ie),Jt=R.useRef(),rr=_n({scrollLeft:0,isHiddenScrollBar:!1}),dr=(0,ae.Z)(rr,2),Lr=dr[0],Or=dr[1],Mr=R.useRef({delta:0,x:0}),Yr=R.useState(!1),Qn=(0,ae.Z)(Yr,2),Tr=Qn[0],Qt=Qn[1],ei=function(){Qt(!1)},Yn=function(Sn){Sn.persist(),Mr.current.delta=Sn.pageX-Lr.scrollLeft,Mr.current.x=0,Qt(!0),Sn.preventDefault()},Qr=function(Sn){var qn,pi=Sn||((qn=window)===null||qn===void 0?void 0:qn.event),Qe=pi.buttons;if(!Tr||Qe===0){Tr&&Qt(!1);return}var p=Mr.current.x+Sn.pageX-Mr.current.x-Mr.current.delta;p<=0&&(p=0),p+Kt>=bt&&(p=bt-Kt),Ft({scrollLeft:p/bt*(Ie+2)}),Mr.current.x=Sn.pageX},sn=function(){if(gt.current){var Sn=(0,sr.os)(gt.current).top,qn=Sn+gt.current.offsetHeight,pi=je===window?document.documentElement.scrollTop+window.innerHeight:(0,sr.os)(je).top+je.clientHeight;qn-(0,Ge.Z)()<=pi||Sn>=pi-er?Or(function(Qe){return(0,Le.Z)((0,Le.Z)({},Qe),{},{isHiddenScrollBar:!0})}):Or(function(Qe){return(0,Le.Z)((0,Le.Z)({},Qe),{},{isHiddenScrollBar:!1})})}},rn=function(Sn){Or(function(qn){return(0,Le.Z)((0,Le.Z)({},qn),{},{scrollLeft:Sn/Ie*bt||0})})};return R.useImperativeHandle(Ye,function(){return{setScrollLeft:rn}}),R.useEffect(function(){var Vr=(0,cn.Z)(document.body,"mouseup",ei,!1),Sn=(0,cn.Z)(document.body,"mousemove",Qr,!1);return sn(),function(){Vr.remove(),Sn.remove()}},[Kt,Tr]),R.useEffect(function(){var Vr=(0,cn.Z)(je,"scroll",sn,!1),Sn=(0,cn.Z)(window,"resize",sn,!1);return function(){Vr.remove(),Sn.remove()}},[je]),R.useEffect(function(){Lr.isHiddenScrollBar||Or(function(Vr){var Sn=gt.current;return Sn?(0,Le.Z)((0,Le.Z)({},Vr),{},{scrollLeft:Sn.scrollLeft/Sn.scrollWidth*Sn.clientWidth}):Vr})},[Lr.isHiddenScrollBar]),Ie<=bt||!Kt||Lr.isHiddenScrollBar?null:R.createElement("div",{style:{height:(0,Ge.Z)(),width:bt,bottom:er},className:"".concat(at,"-sticky-scroll")},R.createElement("div",{onMouseDown:Yn,ref:Jt,className:O()("".concat(at,"-sticky-scroll-bar"),(0,se.Z)({},"".concat(at,"-sticky-scroll-bar-active"),Tr)),style:{width:"".concat(Kt,"px"),transform:"translate3d(".concat(Lr.scrollLeft,"px, 0, 0)")}}))},pr=R.forwardRef(cr);function Fr(ge){return null}var Br=Fr;function fn(ge){return null}var Nr=fn,Cn="rc-table",Rn=[],Kn={};function Ai(){return"No Data"}function ni(ge){var Pe,Ye=(0,Le.Z)({rowKey:"key",prefixCls:Cn,emptyText:Ai},ge),st=Ye.prefixCls,ot=Ye.className,gt=Ye.rowClassName,Ft=Ye.style,er=Ye.data,je=Ye.rowKey,at=Ye.scroll,Ie=Ye.tableLayout,bt=Ye.direction,Kt=Ye.title,Jt=Ye.footer,rr=Ye.summary,dr=Ye.caption,Lr=Ye.id,Or=Ye.showHeader,Mr=Ye.components,Yr=Ye.emptyText,Qn=Ye.onRow,Tr=Ye.onHeaderRow,Qt=Ye.internalHooks,ei=Ye.transformColumns,Yn=Ye.internalRefs,Qr=Ye.tailor,sn=Ye.sticky,rn=er||Rn,Vr=!!rn.length,Sn=Qt===Fe,qn=R.useCallback(function(ws,Hs){return(0,ue.Z)(Mr,ws)||Hs},[Mr]),pi=R.useMemo(function(){return typeof je=="function"?je:function(ws){var Hs=ws&&ws[je];return Hs}},[je]),Qe=qn(["body"]),p=vn(),S=(0,ae.Z)(p,3),D=S[0],V=S[1],pe=S[2],Ke=un(Ye,rn,pi),lt=(0,ae.Z)(Ke,6),yt=lt[0],Ot=lt[1],ir=lt[2],wr=lt[3],Sr=lt[4],Tn=lt[5],_r=at==null?void 0:at.x,kt=R.useState(0),wn=(0,ae.Z)(kt,2),xn=wn[0],kn=wn[1],pn=xr((0,Le.Z)((0,Le.Z)((0,Le.Z)({},Ye),yt),{},{expandable:!!yt.expandedRowRender,columnTitle:yt.columnTitle,expandedKeys:ir,getRowKey:pi,onTriggerExpand:Tn,expandIcon:wr,expandIconColumnIndex:yt.expandIconColumnIndex,direction:bt,scrollWidth:Sn&&Qr&&typeof _r=="number"?_r:null}),Sn?ei:null),yi=(0,ae.Z)(pn,3),xi=yi[0],Fi=yi[1],os=yi[2],fi=os!=null?os:_r,Es=R.useMemo(function(){return{columns:xi,flattenColumns:Fi}},[xi,Fi]),ns=R.useRef(),Xi=R.useRef(),Nn=R.useRef(),qi=R.useRef(),Js=R.useRef(),Zi=R.useState(!1),Gi=(0,ae.Z)(Zi,2),hs=Gi[0],Ms=Gi[1],Ls=R.useState(!1),Ni=(0,ae.Z)(Ls,2),Ps=Ni[0],Gs=Ni[1],ga=_n(new Map),oa=(0,ae.Z)(ga,2),wa=oa[0],Lo=oa[1],go=de(Fi),Ua=go.map(function(ws){return wa.get(ws)}),Qa=R.useMemo(function(){return Ua},[Ua.join("_")]),xa=ln(Qa,Fi.length,bt),ra=at&&Xe(at.y),Ns=at&&Xe(fi)||!!yt.fixed,Uo=Ns&&Fi.some(function(ws){var Hs=ws.fixed;return Hs}),Co=R.useRef(),Wo=qr(sn,st),Qo=Wo.isSticky,ou=Wo.offsetHeader,_l=Wo.offsetSummary,bs=Wo.offsetScroll,cs=Wo.stickyClassName,ja=Wo.container,qs=R.useMemo(function(){return rr==null?void 0:rr(rn)},[rr,rn]),$a=(ra||Qo)&&R.isValidElement(qs)&&qs.type===k&&qs.props.fixed,Ha,Ra,ao;ra&&(Ra={overflowY:"scroll",maxHeight:at.y}),Ns&&(Ha={overflowX:"auto"},ra||(Ra={overflowY:"hidden"}),ao={width:fi===!0?"auto":fi,minWidth:"100%"});var Oa=R.useCallback(function(ws,Hs){(0,Be.Z)(ns.current)&&Lo(function(lo){if(lo.get(ws)!==Hs){var nl=new Map(lo);return nl.set(ws,Hs),nl}return lo})},[]),So=Un(null),Gl=(0,ae.Z)(So,2),Uu=Gl[0],ac=Gl[1];function Zl(ws,Hs){Hs&&(typeof Hs=="function"?Hs(ws):Hs.scrollLeft!==ws&&(Hs.scrollLeft=ws,Hs.scrollLeft!==ws&&setTimeout(function(){Hs.scrollLeft=ws},0)))}var Cl=(0,Re.Z)(function(ws){var Hs=ws.currentTarget,lo=ws.scrollLeft,nl=bt==="rtl",il=typeof lo=="number"?lo:Hs.scrollLeft,Iu=Hs||Kn;if(!ac()||ac()===Iu){var du;Uu(Iu),Zl(il,Xi.current),Zl(il,Nn.current),Zl(il,Js.current),Zl(il,(du=Co.current)===null||du===void 0?void 0:du.setScrollLeft)}var Io=Hs||Xi.current;if(Io){var sl=Io.scrollWidth,Ml=Io.clientWidth;if(sl===Ml){Ms(!1),Gs(!1);return}nl?(Ms(-il<sl-Ml),Gs(-il>0)):(Ms(il>0),Gs(il<sl-Ml))}}),rl=function(){Ns&&Nn.current?Cl({currentTarget:Nn.current}):(Ms(!1),Gs(!1))},Qu=function(Hs){var lo=Hs.width;lo!==xn&&(rl(),kn(ns.current?ns.current.offsetWidth:lo))},Yo=R.useRef(!1);R.useEffect(function(){Yo.current&&rl()},[Ns,er,xi.length]),R.useEffect(function(){Yo.current=!0},[]);var ju=R.useState(0),_u=(0,ae.Z)(ju,2),Nl=_u[0],to=_u[1],Vl=R.useState(!0),kl=(0,ae.Z)(Vl,2),vo=kl[0],oo=kl[1];R.useEffect(function(){(!Qr||!Sn)&&(Nn.current instanceof Element?to((0,Ge.o)(Nn.current).width):to((0,Ge.o)(qi.current).width)),oo((0,Te.G)("position","sticky"))},[]),R.useEffect(function(){Sn&&Yn&&(Yn.body.current=Nn.current)});var oc=R.useCallback(function(ws){return R.createElement(R.Fragment,null,R.createElement(On,ws),$a==="top"&&R.createElement(W,ws,qs))},[$a,qs]),$u=R.useCallback(function(ws){return R.createElement(W,ws,qs)},[qs]),ms=qn(["table"],"table"),lu=R.useMemo(function(){return Ie||(Uo?fi==="max-content"?"auto":"fixed":ra||Qo||Fi.some(function(ws){var Hs=ws.ellipsis;return Hs})?"fixed":"auto")},[ra,Uo,Fi,Ie,Qo]),uu,Xo={colWidths:Qa,columCount:Fi.length,stickyOffsets:xa,onHeaderRow:Tr,fixHeader:ra,scroll:at},Cu=R.useMemo(function(){return Vr?null:typeof Yr=="function"?Yr():Yr},[Vr,Yr]),Su=R.createElement(we,{data:rn,measureColumnWidth:ra||Ns||Qo}),Wl=R.createElement(Rt,{colWidths:Fi.map(function(ws){var Hs=ws.width;return Hs}),columns:Fi}),Yl=dr!=null?R.createElement("caption",{className:"".concat(st,"-caption")},dr):void 0,lc=(0,ut.Z)(Ye,{data:!0}),cu=(0,ut.Z)(Ye,{aria:!0});if(ra||Qo){var Au;typeof Qe=="function"?(Au=Qe(rn,{scrollbarSize:Nl,ref:Nn,onScroll:Cl}),Xo.colWidths=Fi.map(function(ws,Hs){var lo=ws.width,nl=Hs===Fi.length-1?lo-Nl:lo;return typeof nl=="number"&&!Number.isNaN(nl)?nl:0})):Au=R.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},Ha),Ra),onScroll:Cl,ref:Nn,className:O()("".concat(st,"-body"))},R.createElement(ms,(0,N.Z)({style:(0,Le.Z)((0,Le.Z)({},ao),{},{tableLayout:lu})},cu),Yl,Wl,Su,!$a&&qs&&R.createElement(W,{stickyOffsets:xa,flattenColumns:Fi,columns:xi},qs)));var Ba=(0,Le.Z)((0,Le.Z)((0,Le.Z)({noData:!rn.length,maxContentScroll:Ns&&fi==="max-content"},Xo),Es),{},{direction:bt,stickyClassName:cs,onScroll:Cl});uu=R.createElement(R.Fragment,null,Or!==!1&&R.createElement(Ht,(0,N.Z)({},Ba,{stickyTopOffset:ou,className:"".concat(st,"-header"),ref:Xi}),oc),Au,$a&&$a!=="top"&&R.createElement(Ht,(0,N.Z)({},Ba,{stickyBottomOffset:_l,className:"".concat(st,"-summary"),ref:Js}),$u),Qo&&R.createElement(pr,{ref:Co,offsetScroll:bs,scrollBodyRef:Nn,onScroll:Cl,container:ja}))}else uu=R.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},Ha),Ra),className:O()("".concat(st,"-content")),onScroll:Cl,ref:Nn},R.createElement(ms,(0,N.Z)({style:(0,Le.Z)((0,Le.Z)({},ao),{},{tableLayout:lu})},cu),Yl,Wl,Or!==!1&&R.createElement(On,(0,N.Z)({},Xo,Es)),Su,qs&&R.createElement(W,{stickyOffsets:xa,flattenColumns:Fi,columns:xi},qs)));var Bo=R.createElement("div",(0,N.Z)({className:O()(st,ot,(Pe={},(0,se.Z)(Pe,"".concat(st,"-rtl"),bt==="rtl"),(0,se.Z)(Pe,"".concat(st,"-ping-left"),hs),(0,se.Z)(Pe,"".concat(st,"-ping-right"),Ps),(0,se.Z)(Pe,"".concat(st,"-layout-fixed"),Ie==="fixed"),(0,se.Z)(Pe,"".concat(st,"-fixed-header"),ra),(0,se.Z)(Pe,"".concat(st,"-fixed-column"),Uo),(0,se.Z)(Pe,"".concat(st,"-scroll-horizontal"),Ns),(0,se.Z)(Pe,"".concat(st,"-has-fix-left"),Fi[0]&&Fi[0].fixed),(0,se.Z)(Pe,"".concat(st,"-has-fix-right"),Fi[Fi.length-1]&&Fi[Fi.length-1].fixed==="right"),Pe)),style:Ft,id:Lr,ref:ns},lc),Kt&&R.createElement(jn,{className:"".concat(st,"-title")},Kt(rn)),R.createElement("div",{ref:qi,className:"".concat(st,"-container")},uu),Jt&&R.createElement(jn,{className:"".concat(st,"-footer")},Jt(rn)));Ns&&(Bo=R.createElement(Se.Z,{onResize:Qu},Bo));var Sl=nn(Fi,xa,bt,xi),Bu=R.useMemo(function(){return{scrollX:fi,prefixCls:st,getComponent:qn,scrollbarSize:Nl,direction:bt,fixedInfoList:Sl,isSticky:Qo,supportSticky:vo,componentWidth:xn,fixHeader:ra,fixColumn:Uo,horizonScroll:Ns,tableLayout:lu,rowClassName:gt,expandedRowClassName:yt.expandedRowClassName,expandIcon:wr,expandableType:Ot,expandRowByClick:yt.expandRowByClick,expandedRowRender:yt.expandedRowRender,onTriggerExpand:Tn,expandIconColumnIndex:yt.expandIconColumnIndex,indentSize:yt.indentSize,allColumnsFixedLeft:Fi.every(function(ws){return ws.fixed==="left"}),emptyNode:Cu,columns:xi,flattenColumns:Fi,onColumnResize:Oa,hoverStartRow:D,hoverEndRow:V,onHover:pe,rowExpandable:yt.rowExpandable,onRow:Qn,getRowKey:pi,expandedKeys:ir,childrenColumnName:Sr}},[fi,st,qn,Nl,bt,Sl,Qo,vo,xn,ra,Uo,Ns,lu,gt,yt.expandedRowClassName,wr,Ot,yt.expandRowByClick,yt.expandedRowRender,Tn,yt.expandIconColumnIndex,yt.indentSize,Cu,xi,Fi,Oa,D,V,pe,yt.rowExpandable,Qn,pi,ir,Sr]);return R.createElement(G.Provider,{value:Bu},Bo)}function mi(ge){return $(ni,ge)}var hr=mi();hr.EXPAND_COLUMN=le,hr.INTERNAL_HOOKS=Fe,hr.Column=Br,hr.ColumnGroup=Nr,hr.Summary=Q;var an=hr,Xr=E(45680),ri=l(null),zn=l(null);function Hn(ge,Pe,Ye){var st=Pe||1;return Ye[ge+st]-(Ye[ge]||0)}function Xn(ge){var Pe=ge.rowInfo,Ye=ge.column,st=ge.colIndex,ot=ge.indent,gt=ge.index,Ft=ge.renderIndex,er=ge.record,je=ge.style,at=ge.className,Ie=ge.inverse,bt=ge.getHeight,Kt=Ye.render,Jt=Ye.dataIndex,rr=Ye.className,dr=Ye.width,Lr=d(zn,["columnsOffset"]),Or=Lr.columnsOffset,Mr=vt(Pe,Ye,st,ot,gt),Yr=Mr.key,Qn=Mr.fixedInfo,Tr=Mr.appendCellNode,Qt=Mr.additionalCellProps,ei=Qt.style,Yn=Qt.colSpan,Qr=Yn===void 0?1:Yn,sn=Qt.rowSpan,rn=sn===void 0?1:sn,Vr=st-1,Sn=Hn(Vr,Qr,Or),qn=Qr>1?dr-Sn:0,pi=(0,Le.Z)((0,Le.Z)((0,Le.Z)({},ei),je),{},{flex:"0 0 ".concat(Sn,"px"),width:"".concat(Sn,"px"),marginRight:qn,pointerEvents:"auto"}),Qe=R.useMemo(function(){return Ie?rn<=1:Qr===0||rn===0||rn>1},[rn,Qr,Ie]);Qe?pi.visibility="hidden":Ie&&(pi.height=bt==null?void 0:bt(rn));var p=Qe?function(){return null}:Kt,S={};return(rn===0||Qr===0)&&(S.rowSpan=1,S.colSpan=1),R.createElement(fr,(0,N.Z)({className:O()(rr,at),ellipsis:Ye.ellipsis,align:Ye.align,scope:Ye.rowScope,component:"div",prefixCls:Pe.prefixCls,key:Yr,record:er,index:gt,renderIndex:Ft,dataIndex:Jt,render:p,shouldCellUpdate:Ye.shouldCellUpdate},Qn,{appendNode:Tr,additionalProps:(0,Le.Z)((0,Le.Z)({},Qt),{},{style:pi},S)}))}var di=Xn,si=["data","index","className","rowKey","style","extra","getHeight"],_i=R.forwardRef(function(ge,Pe){var Ye=ge.data,st=ge.index,ot=ge.className,gt=ge.rowKey,Ft=ge.style,er=ge.extra,je=ge.getHeight,at=(0,It.Z)(ge,si),Ie=Ye.record,bt=Ye.indent,Kt=Ye.index,Jt=d(G,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),rr=Jt.scrollX,dr=Jt.flattenColumns,Lr=Jt.prefixCls,Or=Jt.fixColumn,Mr=Jt.componentWidth,Yr=He(Ie,gt,st,bt),Qn=Yr.rowSupportExpand,Tr=Yr.expanded,Qt=Yr.rowProps,ei=Yr.expandedRowRender,Yn=Yr.expandedRowClassName,Qr;if(Qn&&Tr){var sn=ei(Ie,st,bt+1,Tr),rn=Yn==null?void 0:Yn(Ie,st,bt),Vr={};Or&&(Vr={style:(0,se.Z)({},"--virtual-width","".concat(Mr,"px"))});var Sn="".concat(Lr,"-expanded-row-cell");Qr=R.createElement("div",{className:O()("".concat(Lr,"-expanded-row"),"".concat(Lr,"-expanded-row-level-").concat(bt+1),rn)},R.createElement(fr,{component:"div",prefixCls:Lr,className:O()(Sn,(0,se.Z)({},"".concat(Sn,"-fixed"),Or)),additionalProps:Vr},sn))}var qn=(0,Le.Z)((0,Le.Z)({},Ft),{},{width:rr});er&&(qn.position="absolute",qn.pointerEvents="none");var pi=R.createElement("div",(0,N.Z)({},Qt,at,{ref:Qn?null:Pe,className:O()(ot,"".concat(Lr,"-row"),Qt==null?void 0:Qt.className,(0,se.Z)({},"".concat(Lr,"-row-extra"),er)),style:(0,Le.Z)((0,Le.Z)({},qn),Qt==null?void 0:Qt.style)}),dr.map(function(Qe,p){return R.createElement(di,{key:p,rowInfo:Yr,column:Qe,colIndex:p,indent:bt,index:st,renderIndex:Kt,record:Ie,inverse:er,getHeight:je})}));return Qn?R.createElement("div",{ref:Pe},pi,Qr):pi}),ji=J(_i),ii=ji,yn=R.forwardRef(function(ge,Pe){var Ye=ge.data,st=ge.onScroll,ot=d(G,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),gt=ot.flattenColumns,Ft=ot.onColumnResize,er=ot.getRowKey,je=ot.expandedKeys,at=ot.prefixCls,Ie=ot.childrenColumnName,bt=ot.emptyNode,Kt=ot.scrollX,Jt=d(ri),rr=Jt.scrollY,dr=Jt.listItemHeight,Lr=R.useRef(),Or=Je(Ye,Ie,je,er),Mr=R.useMemo(function(){var Qr=0;return gt.map(function(sn){var rn=sn.width,Vr=sn.key;return Qr+=rn,[Vr,rn,Qr]})},[gt]),Yr=R.useMemo(function(){return Mr.map(function(Qr){return Qr[2]})},[Mr]);R.useEffect(function(){Mr.forEach(function(Qr){var sn=(0,ae.Z)(Qr,2),rn=sn[0],Vr=sn[1];Ft(rn,Vr)})},[Mr]),R.useImperativeHandle(Pe,function(){var Qr={};return Object.defineProperty(Qr,"scrollLeft",{get:function(){var rn;return((rn=Lr.current)===null||rn===void 0?void 0:rn.getScrollInfo().x)||0},set:function(rn){var Vr;(Vr=Lr.current)===null||Vr===void 0||Vr.scrollTo({left:rn})}}),Qr});var Qn=function(sn,rn){var Vr,Sn=(Vr=Or[rn])===null||Vr===void 0?void 0:Vr.record,qn=sn.onCell;if(qn){var pi,Qe=qn(Sn,rn);return(pi=Qe==null?void 0:Qe.rowSpan)!==null&&pi!==void 0?pi:1}return 1},Tr=function(sn){var rn=sn.start,Vr=sn.end,Sn=sn.getSize,qn=sn.offsetY;if(Vr<0)return null;for(var pi=gt.filter(function(_r){return Qn(_r,rn)===0}),Qe=rn,p=function(kt){if(pi=pi.filter(function(wn){return Qn(wn,kt)===0}),!pi.length)return Qe=kt,"break"},S=rn;S>=0;S-=1){var D=p(S);if(D==="break")break}for(var V=gt.filter(function(_r){return Qn(_r,Vr)!==1}),pe=Vr,Ke=function(kt){if(V=V.filter(function(wn){return Qn(wn,kt)!==1}),!V.length)return pe=Math.max(kt-1,Vr),"break"},lt=Vr;lt<Or.length;lt+=1){var yt=Ke(lt);if(yt==="break")break}for(var Ot=[],ir=function(kt){var wn=Or[kt];if(!wn)return"continue";gt.some(function(xn){return Qn(xn,kt)>1})&&Ot.push(kt)},wr=Qe;wr<=pe;wr+=1)var Sr=ir(wr);var Tn=Ot.map(function(_r){var kt=Or[_r],wn=er(kt.record,_r),xn=function(yi){var xi=_r+yi-1,Fi=er(Or[xi].record,xi),os=Sn(wn,Fi);return os.bottom-os.top},kn=Sn(wn);return R.createElement(ii,{key:_r,data:kt,rowKey:wn,index:_r,style:{top:-qn+kn.top},extra:!0,getHeight:xn})});return Tn},Qt=R.useMemo(function(){return{columnsOffset:Yr}},[Yr]),ei="".concat(at,"-tbody"),Yn;return Or.length?Yn=R.createElement(Xr.Z,{fullHeight:!1,ref:Lr,className:O()(ei,"".concat(ei,"-virtual")),height:rr,itemHeight:dr||24,data:Or,itemKey:function(sn){return er(sn.record)},scrollWidth:Kt,onVirtualScroll:function(sn){var rn=sn.x;st({scrollLeft:rn})},extraRender:Tr},function(Qr,sn,rn){var Vr=er(Qr.record,sn);return R.createElement(ii,(0,N.Z)({data:Qr,rowKey:Vr,index:sn},rn))}):Yn=R.createElement("div",{className:O()("".concat(at,"-placeholder"))},R.createElement(fr,{component:"div",prefixCls:at},bt)),R.createElement(zn.Provider,{value:Qt},Yn)}),Yt=J(yn),hn=Yt,Fn=function(Pe,Ye){var st=Ye.ref,ot=Ye.onScroll;return R.createElement(hn,{ref:st,data:Pe,onScroll:ot})},$n=100;function bi(ge){var Pe=ge.columns,Ye=ge.scroll,st=ge.prefixCls,ot=st===void 0?Cn:st,gt=ge.className,Ft=ge.listItemHeight,er=Ye||{},je=er.x,at=er.y;typeof je!="number"&&(je=((Pe||[]).length+1)*$n),typeof at!="number"&&(at=500);var Ie=R.useMemo(function(){return{scrollY:at,listItemHeight:Ft}},[at,Ft]);return R.createElement(ri.Provider,{value:Ie},R.createElement(an,(0,N.Z)({},ge,{className:O()(gt,"".concat(ot,"-virtual")),scroll:(0,Le.Z)((0,Le.Z)({},Ye),{},{x:je}),components:{body:Fn},columns:Pe,internalHooks:Fe,tailor:!0})))}function Hi(ge){return $(bi,ge)}var rs=Hi(),Ci=null;function is(ge){return null}var ai=is;function Zn(ge){return null}var Li=Zn,Mi=E(2738),ls=E(68031),js=E(36355),Vn=E(93891),us=E(19716),Wi=E(8628),ps=E(31724),Vs=E(58421),vs=E(71418),ss=E(88088);function gi(ge){return function(Ye){let{prefixCls:st,onExpand:ot,record:gt,expanded:Ft,expandable:er}=Ye;const je=`${st}-row-expand-icon`;return R.createElement("button",{type:"button",onClick:at=>{ot(gt,at),at.stopPropagation()},className:O()(je,{[`${je}-spaced`]:!er,[`${je}-expanded`]:er&&Ft,[`${je}-collapsed`]:er&&!Ft}),"aria-label":Ft?ge.collapse:ge.expand,"aria-expanded":Ft})}}var Ui=gi;function Ws(ge,Pe){return"key"in ge&&ge.key!==void 0&&ge.key!==null?ge.key:ge.dataIndex?Array.isArray(ge.dataIndex)?ge.dataIndex.join("."):ge.dataIndex:Pe}function Ti(ge,Pe){return Pe?`${Pe}-${ge}`:`${ge}`}function Ds(ge,Pe){return typeof ge=="function"?ge(Pe):ge}function Ri(ge,Pe){const Ye=Ds(ge,Pe);return Object.prototype.toString.call(Ye)==="[object Object]"?"":Ye}var ks={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},$i=ks,Pa=E(7657),aa=function(Pe,Ye){return R.createElement(Pa.Z,(0,N.Z)({},Pe,{ref:Ye,icon:$i}))},Na=R.forwardRef(aa),Vi=Na,Ga=E(56762);function Rs(ge){const Pe=R.useRef(ge),Ye=(0,Ga.Z)();return[()=>Pe.current,st=>{Pe.current=st,Ye()}]}var Pn=E(3113),as=E(24905),Ca=E(38854),Bi=E(64165),Di=E(20834),wi=E(40875),vi=E(5112),Yi=E(17574),gs=E(47472),na=E(92832);function Ks(ge){let{value:Pe,onChange:Ye,filterSearch:st,tablePrefixCls:ot,locale:gt}=ge;return st?R.createElement("div",{className:`${ot}-filter-dropdown-search`},R.createElement(na.default,{prefix:R.createElement(gs.Z,null),placeholder:gt.filterSearchPlaceholder,onChange:Ye,value:Pe,htmlSize:1,className:`${ot}-filter-dropdown-search-input`})):null}var Os=Ks,Qi=E(10228);const Ys=ge=>{const{keyCode:Pe}=ge;Pe===Qi.Z.ENTER&&ge.stopPropagation()};var la=R.forwardRef((ge,Pe)=>R.createElement("div",{className:ge.className,onClick:Ye=>Ye.stopPropagation(),onKeyDown:Ys,ref:Pe},ge.children));function ua(ge){let Pe=[];return(ge||[]).forEach(Ye=>{let{value:st,children:ot}=Ye;Pe.push(st),ot&&(Pe=[].concat((0,$t.Z)(Pe),(0,$t.Z)(ua(ot))))}),Pe}function Xs(ge){return ge.some(Pe=>{let{children:Ye}=Pe;return Ye})}function li(ge,Pe){return typeof Pe=="string"||typeof Pe=="number"?Pe==null?void 0:Pe.toString().toLowerCase().includes(ge.trim().toLowerCase()):!1}function oi(ge){let{filters:Pe,prefixCls:Ye,filteredKeys:st,filterMultiple:ot,searchValue:gt,filterSearch:Ft}=ge;return Pe.map((er,je)=>{const at=String(er.value);if(er.children)return{key:at||je,label:er.text,popupClassName:`${Ye}-dropdown-submenu`,children:oi({filters:er.children,prefixCls:Ye,filteredKeys:st,filterMultiple:ot,searchValue:gt,filterSearch:Ft})};const Ie=ot?as.default:vi.ZP,bt={key:er.value!==void 0?at:je,label:R.createElement(R.Fragment,null,R.createElement(Ie,{checked:st.includes(at)}),R.createElement("span",null,er.text))};return gt.trim()?typeof Ft=="function"?Ft(gt,er)?bt:null:li(gt,er.text)?bt:null:bt})}function Ji(ge){var Pe,Ye;const{tablePrefixCls:st,prefixCls:ot,column:gt,dropdownPrefixCls:Ft,columnKey:er,filterMultiple:je,filterMode:at="menu",filterSearch:Ie=!1,filterState:bt,triggerFilter:Kt,locale:Jt,children:rr,getPopupContainer:dr}=ge,{filterDropdownOpen:Lr,onFilterDropdownOpenChange:Or,filterResetToDefaultFilteredValue:Mr,defaultFilteredValue:Yr,filterDropdownVisible:Qn,onFilterDropdownVisibleChange:Tr}=gt,[Qt,ei]=R.useState(!1),Yn=!!(bt&&(!((Pe=bt.filteredKeys)===null||Pe===void 0)&&Pe.length||bt.forceFiltered)),Qr=pn=>{ei(pn),Or==null||Or(pn),Tr==null||Tr(pn)},sn=(Ye=Lr!=null?Lr:Qn)!==null&&Ye!==void 0?Ye:Qt,rn=bt==null?void 0:bt.filteredKeys,[Vr,Sn]=Rs(rn||[]),qn=pn=>{let{selectedKeys:yi}=pn;Sn(yi)},pi=(pn,yi)=>{let{node:xi,checked:Fi}=yi;qn(je?{selectedKeys:pn}:{selectedKeys:Fi&&xi.key?[xi.key]:[]})};R.useEffect(()=>{Qt&&qn({selectedKeys:rn||[]})},[rn]);const[Qe,p]=R.useState([]),S=pn=>{p(pn)},[D,V]=R.useState(""),pe=pn=>{const{value:yi}=pn.target;V(yi)};R.useEffect(()=>{Qt||V("")},[Qt]);const Ke=pn=>{const yi=pn&&pn.length?pn:null;if(yi===null&&(!bt||!bt.filteredKeys)||(0,g.Z)(yi,bt==null?void 0:bt.filteredKeys,!0))return null;Kt({column:gt,key:er,filteredKeys:yi})},lt=()=>{Qr(!1),Ke(Vr())},yt=function(){let{confirm:pn,closeDropdown:yi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};pn&&Ke([]),yi&&Qr(!1),V(""),Sn(Mr?(Yr||[]).map(xi=>String(xi)):[])},Ot=function(){let{closeDropdown:pn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};pn&&Qr(!1),Ke(Vr())},ir=pn=>{pn&&rn!==void 0&&Sn(rn||[]),Qr(pn),!pn&&!gt.filterDropdown&<()},wr=O()({[`${Ft}-menu-without-submenu`]:!Xs(gt.filters||[])}),Sr=pn=>{if(pn.target.checked){const yi=ua(gt==null?void 0:gt.filters).map(xi=>String(xi));Sn(yi)}else Sn([])},Tn=pn=>{let{filters:yi}=pn;return(yi||[]).map((xi,Fi)=>{const os=String(xi.value),fi={title:xi.text,key:xi.value!==void 0?os:Fi};return xi.children&&(fi.children=Tn({filters:xi.children})),fi})},_r=pn=>{var yi;return Object.assign(Object.assign({},pn),{text:pn.title,value:pn.key,children:((yi=pn.children)===null||yi===void 0?void 0:yi.map(xi=>_r(xi)))||[]})};let kt;if(typeof gt.filterDropdown=="function")kt=gt.filterDropdown({prefixCls:`${Ft}-custom`,setSelectedKeys:pn=>qn({selectedKeys:pn}),selectedKeys:Vr(),confirm:Ot,clearFilters:yt,filters:gt.filters,visible:sn,close:()=>{Qr(!1)}});else if(gt.filterDropdown)kt=gt.filterDropdown;else{const pn=Vr()||[],yi=()=>(gt.filters||[]).length===0?R.createElement(Bi.Z,{image:Bi.Z.PRESENTED_IMAGE_SIMPLE,description:Jt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):at==="tree"?R.createElement(R.Fragment,null,R.createElement(Os,{filterSearch:Ie,value:D,onChange:pe,tablePrefixCls:st,locale:Jt}),R.createElement("div",{className:`${st}-filter-dropdown-tree`},je?R.createElement(as.default,{checked:pn.length===ua(gt.filters).length,indeterminate:pn.length>0&&pn.length<ua(gt.filters).length,className:`${st}-filter-dropdown-checkall`,onChange:Sr},Jt.filterCheckall):null,R.createElement(Yi.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:je,checkStrictly:!je,className:`${Ft}-menu`,onCheck:pi,checkedKeys:pn,selectedKeys:pn,showIcon:!1,treeData:Tn({filters:gt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:D.trim()?Fi=>typeof Ie=="function"?Ie(D,_r(Fi)):li(D,Fi.title):void 0}))):R.createElement(R.Fragment,null,R.createElement(Os,{filterSearch:Ie,value:D,onChange:pe,tablePrefixCls:st,locale:Jt}),R.createElement(Di.default,{selectable:!0,multiple:je,prefixCls:`${Ft}-menu`,className:wr,onSelect:qn,onDeselect:qn,selectedKeys:pn,getPopupContainer:dr,openKeys:Qe,onOpenChange:S,items:oi({filters:gt.filters||[],filterSearch:Ie,prefixCls:ot,filteredKeys:Vr(),filterMultiple:je,searchValue:D})})),xi=()=>Mr?(0,g.Z)((Yr||[]).map(Fi=>String(Fi)),pn,!0):pn.length===0;kt=R.createElement(R.Fragment,null,yi(),R.createElement("div",{className:`${ot}-dropdown-btns`},R.createElement(Pn.ZP,{type:"link",size:"small",disabled:xi(),onClick:()=>yt()},Jt.filterReset),R.createElement(Pn.ZP,{type:"primary",size:"small",onClick:lt},Jt.filterConfirm)))}gt.filterDropdown&&(kt=R.createElement(wi.J,{selectable:void 0},kt));const wn=()=>R.createElement(la,{className:`${ot}-dropdown`},kt);let xn;typeof gt.filterIcon=="function"?xn=gt.filterIcon(Yn):gt.filterIcon?xn=gt.filterIcon:xn=R.createElement(Vi,null);const{direction:kn}=R.useContext(js.E_);return R.createElement("div",{className:`${ot}-column`},R.createElement("span",{className:`${st}-column-title`},rr),R.createElement(Ca.Z,{dropdownRender:wn,trigger:["click"],open:sn,onOpenChange:ir,getPopupContainer:dr,placement:kn==="rtl"?"bottomLeft":"bottomRight"},R.createElement("span",{role:"button",tabIndex:-1,className:O()(`${ot}-trigger`,{active:Yn}),onClick:pn=>{pn.stopPropagation()}},xn)))}var $s=Ji;function As(ge,Pe,Ye){let st=[];return(ge||[]).forEach((ot,gt)=>{var Ft;const er=Ti(gt,Ye);if(ot.filters||"filterDropdown"in ot||"onFilter"in ot)if("filteredValue"in ot){let je=ot.filteredValue;"filterDropdown"in ot||(je=(Ft=je==null?void 0:je.map(String))!==null&&Ft!==void 0?Ft:je),st.push({column:ot,key:Ws(ot,er),filteredKeys:je,forceFiltered:ot.filtered})}else st.push({column:ot,key:Ws(ot,er),filteredKeys:Pe&&ot.defaultFilteredValue?ot.defaultFilteredValue:void 0,forceFiltered:ot.filtered});"children"in ot&&(st=[].concat((0,$t.Z)(st),(0,$t.Z)(As(ot.children,Pe,er))))}),st}function ca(ge,Pe,Ye,st,ot,gt,Ft,er){return Ye.map((je,at)=>{const Ie=Ti(at,er),{filterMultiple:bt=!0,filterMode:Kt,filterSearch:Jt}=je;let rr=je;if(rr.filters||rr.filterDropdown){const dr=Ws(rr,Ie),Lr=st.find(Or=>{let{key:Mr}=Or;return dr===Mr});rr=Object.assign(Object.assign({},rr),{title:Or=>R.createElement($s,{tablePrefixCls:ge,prefixCls:`${ge}-filter`,dropdownPrefixCls:Pe,column:rr,columnKey:dr,filterState:Lr,filterMultiple:bt,filterMode:Kt,filterSearch:Jt,triggerFilter:gt,locale:ot,getPopupContainer:Ft},Ds(je.title,Or))})}return"children"in rr&&(rr=Object.assign(Object.assign({},rr),{children:ca(ge,Pe,rr.children,st,ot,gt,Ft,Ie)})),rr})}function ea(ge){const Pe={};return ge.forEach(Ye=>{let{key:st,filteredKeys:ot,column:gt}=Ye;const{filters:Ft,filterDropdown:er}=gt;if(er)Pe[st]=ot||null;else if(Array.isArray(ot)){const je=ua(Ft);Pe[st]=je.filter(at=>ot.includes(String(at)))}else Pe[st]=null}),Pe}function Va(ge,Pe){return Pe.reduce((Ye,st)=>{const{column:{onFilter:ot,filters:gt},filteredKeys:Ft}=st;return ot&&Ft&&Ft.length?Ye.filter(er=>Ft.some(je=>{const at=ua(gt),Ie=at.findIndex(Kt=>String(Kt)===String(je)),bt=Ie!==-1?at[Ie]:je;return ot(bt,er)})):Ye},ge)}const ta=ge=>ge.flatMap(Pe=>"children"in Pe?[Pe].concat((0,$t.Z)(ta(Pe.children||[]))):[Pe]);function ci(ge){let{prefixCls:Pe,dropdownPrefixCls:Ye,mergedColumns:st,onFilterChange:ot,getPopupContainer:gt,locale:Ft}=ge;const er=R.useMemo(()=>ta(st||[]),[st]),[je,at]=R.useState(()=>As(er,!0)),Ie=R.useMemo(()=>{const rr=As(er,!1);if(rr.length===0)return rr;let dr=!0,Lr=!0;if(rr.forEach(Or=>{let{filteredKeys:Mr}=Or;Mr!==void 0?dr=!1:Lr=!1}),dr){const Or=(er||[]).map((Mr,Yr)=>Ws(Mr,Ti(Yr)));return je.filter(Mr=>{let{key:Yr}=Mr;return Or.includes(Yr)}).map(Mr=>{const Yr=er[Or.findIndex(Qn=>Qn===Mr.key)];return Object.assign(Object.assign({},Mr),{column:Object.assign(Object.assign({},Mr.column),Yr),forceFiltered:Yr.filtered})})}return rr},[er,je]),bt=R.useMemo(()=>ea(Ie),[Ie]),Kt=rr=>{const dr=Ie.filter(Lr=>{let{key:Or}=Lr;return Or!==rr.key});dr.push(rr),at(dr),ot(ea(dr),dr)};return[rr=>ca(Pe,Ye,rr,Ie,Ft,Kt,gt),Ie,bt]}var fl=ci;function Aa(ge,Pe,Ye){const st=R.useRef({});function ot(gt){if(!st.current||st.current.data!==ge||st.current.childrenColumnName!==Pe||st.current.getRowKey!==Ye){let er=function(je){je.forEach((at,Ie)=>{const bt=Ye(at,Ie);Ft.set(bt,at),at&&typeof at=="object"&&Pe in at&&er(at[Pe]||[])})};const Ft=new Map;er(ge),st.current={data:ge,childrenColumnName:Pe,kvMap:Ft,getRowKey:Ye}}return st.current.kvMap.get(gt)}return[ot]}var ko=E(50371),fa=function(ge,Pe){var Ye={};for(var st in ge)Object.prototype.hasOwnProperty.call(ge,st)&&Pe.indexOf(st)<0&&(Ye[st]=ge[st]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,st=Object.getOwnPropertySymbols(ge);ot<st.length;ot++)Pe.indexOf(st[ot])<0&&Object.prototype.propertyIsEnumerable.call(ge,st[ot])&&(Ye[st[ot]]=ge[st[ot]]);return Ye};const Sa=10;function ys(ge,Pe){const Ye={current:ge.current,pageSize:ge.pageSize};return Object.keys(Pe&&typeof Pe=="object"?Pe:{}).forEach(ot=>{const gt=ge[ot];typeof gt!="function"&&(Ye[ot]=gt)}),Ye}function Ho(ge,Pe,Ye){const st=Ye&&typeof Ye=="object"?Ye:{},{total:ot=0}=st,gt=fa(st,["total"]),[Ft,er]=(0,R.useState)(()=>({current:"defaultCurrent"in gt?gt.defaultCurrent:1,pageSize:"defaultPageSize"in gt?gt.defaultPageSize:Sa})),je=(0,ko.Z)(Ft,gt,{total:ot>0?ot:ge}),at=Math.ceil((ot||ge)/je.pageSize);je.current>at&&(je.current=at||1);const Ie=(Kt,Jt)=>{er({current:Kt!=null?Kt:1,pageSize:Jt||je.pageSize})},bt=(Kt,Jt)=>{var rr;Ye&&((rr=Ye.onChange)===null||rr===void 0||rr.call(Ye,Kt,Jt)),Ie(Kt,Jt),Pe(Kt,Jt||(je==null?void 0:je.pageSize))};return Ye===!1?[{},()=>{}]:[Object.assign(Object.assign({},je),{onChange:bt}),Ie]}var Ko=Ho,Fo=E(84105),mo=E(35654),ds=E(90782),es=E(71430),pa=E(18929);const Bs={},fs="SELECT_ALL",ia="SELECT_INVERT",Fs="SELECT_NONE",da=[],Wa=(ge,Pe)=>{let Ye=[];return(Pe||[]).forEach(st=>{Ye.push(st),st&&typeof st=="object"&&ge in st&&(Ye=[].concat((0,$t.Z)(Ye),(0,$t.Z)(Wa(ge,st[ge]))))}),Ye};var qa=(ge,Pe)=>{const{preserveSelectedRowKeys:Ye,selectedRowKeys:st,defaultSelectedRowKeys:ot,getCheckboxProps:gt,onChange:Ft,onSelect:er,onSelectAll:je,onSelectInvert:at,onSelectNone:Ie,onSelectMultiple:bt,columnWidth:Kt,type:Jt,selections:rr,fixed:dr,renderCell:Lr,hideSelectAll:Or,checkStrictly:Mr=!0}=Pe||{},{prefixCls:Yr,data:Qn,pageData:Tr,getRecordByKey:Qt,getRowKey:ei,expandType:Yn,childrenColumnName:Qr,locale:sn,getPopupContainer:rn}=ge,[Vr,Sn]=(0,pa.Z)(st||ot||da,{value:st}),qn=R.useRef(new Map),pi=(0,R.useCallback)(_r=>{if(Ye){const kt=new Map;_r.forEach(wn=>{let xn=Qt(wn);!xn&&qn.current.has(wn)&&(xn=qn.current.get(wn)),kt.set(wn,xn)}),qn.current=kt}},[Qt,Ye]);R.useEffect(()=>{pi(Vr)},[Vr]);const{keyEntities:Qe}=(0,R.useMemo)(()=>{if(Mr)return{keyEntities:null};let _r=Qn;if(Ye){const kt=new Set(Qn.map((xn,kn)=>ei(xn,kn))),wn=Array.from(qn.current).reduce((xn,kn)=>{let[pn,yi]=kn;return kt.has(pn)?xn:xn.concat(yi)},[]);_r=[].concat((0,$t.Z)(_r),(0,$t.Z)(wn))}return(0,es.I8)(_r,{externalGetKey:ei,childrenPropName:Qr})},[Qn,ei,Mr,Qr,Ye]),p=(0,R.useMemo)(()=>Wa(Qr,Tr),[Qr,Tr]),S=(0,R.useMemo)(()=>{const _r=new Map;return p.forEach((kt,wn)=>{const xn=ei(kt,wn),kn=(gt?gt(kt):null)||{};_r.set(xn,kn)}),_r},[p,ei,gt]),D=(0,R.useCallback)(_r=>{var kt;return!!(!((kt=S.get(ei(_r)))===null||kt===void 0)&&kt.disabled)},[S,ei]),[V,pe]=(0,R.useMemo)(()=>{if(Mr)return[Vr||[],[]];const{checkedKeys:_r,halfCheckedKeys:kt}=(0,ds.S)(Vr,!0,Qe,D);return[_r||[],kt]},[Vr,Mr,Qe,D]),Ke=(0,R.useMemo)(()=>{const _r=Jt==="radio"?V.slice(0,1):V;return new Set(_r)},[V,Jt]),lt=(0,R.useMemo)(()=>Jt==="radio"?new Set:new Set(pe),[pe,Jt]),[yt,Ot]=(0,R.useState)(null);R.useEffect(()=>{Pe||Sn(da)},[!!Pe]);const ir=(0,R.useCallback)((_r,kt)=>{let wn,xn;pi(_r),Ye?(wn=_r,xn=_r.map(kn=>qn.current.get(kn))):(wn=[],xn=[],_r.forEach(kn=>{const pn=Qt(kn);pn!==void 0&&(wn.push(kn),xn.push(pn))})),Sn(wn),Ft==null||Ft(wn,xn,{type:kt})},[Sn,Qt,Ft,Ye]),wr=(0,R.useCallback)((_r,kt,wn,xn)=>{if(er){const kn=wn.map(pn=>Qt(pn));er(Qt(_r),kt,kn,xn)}ir(wn,"single")},[er,Qt,ir]),Sr=(0,R.useMemo)(()=>!rr||Or?null:(rr===!0?[fs,ia,Fs]:rr).map(kt=>kt===fs?{key:"all",text:sn.selectionAll,onSelect(){ir(Qn.map((wn,xn)=>ei(wn,xn)).filter(wn=>{const xn=S.get(wn);return!(xn!=null&&xn.disabled)||Ke.has(wn)}),"all")}}:kt===ia?{key:"invert",text:sn.selectInvert,onSelect(){const wn=new Set(Ke);Tr.forEach((kn,pn)=>{const yi=ei(kn,pn),xi=S.get(yi);xi!=null&&xi.disabled||(wn.has(yi)?wn.delete(yi):wn.add(yi))});const xn=Array.from(wn);at&&at(xn),ir(xn,"invert")}}:kt===Fs?{key:"none",text:sn.selectNone,onSelect(){Ie==null||Ie(),ir(Array.from(Ke).filter(wn=>{const xn=S.get(wn);return xn==null?void 0:xn.disabled}),"none")}}:kt).map(kt=>Object.assign(Object.assign({},kt),{onSelect:function(){for(var wn,xn,kn=arguments.length,pn=new Array(kn),yi=0;yi<kn;yi++)pn[yi]=arguments[yi];(xn=kt.onSelect)===null||xn===void 0||(wn=xn).call.apply(wn,[kt].concat(pn)),Ot(null)}})),[rr,Ke,Tr,ei,at,ir]);return[(0,R.useCallback)(_r=>{var kt;if(!Pe)return _r.filter(Zi=>Zi!==Bs);let wn=(0,$t.Z)(_r);const xn=new Set(Ke),kn=p.map(ei).filter(Zi=>!S.get(Zi).disabled),pn=kn.every(Zi=>xn.has(Zi)),yi=kn.some(Zi=>xn.has(Zi)),xi=()=>{const Zi=[];pn?kn.forEach(hs=>{xn.delete(hs),Zi.push(hs)}):kn.forEach(hs=>{xn.has(hs)||(xn.add(hs),Zi.push(hs))});const Gi=Array.from(xn);je==null||je(!pn,Gi.map(hs=>Qt(hs)),Zi.map(hs=>Qt(hs))),ir(Gi,"all"),Ot(null)};let Fi;if(Jt!=="radio"){let Zi;if(Sr){const Ni={getPopupContainer:rn,items:Sr.map((Ps,Gs)=>{const{key:ga,text:oa,onSelect:wa}=Ps;return{key:ga!=null?ga:Gs,onClick:()=>{wa==null||wa(kn)},label:oa}})};Zi=R.createElement("div",{className:`${Yr}-selection-extra`},R.createElement(Ca.Z,{menu:Ni,getPopupContainer:rn},R.createElement("span",null,R.createElement(Fo.Z,null))))}const Gi=p.map((Ni,Ps)=>{const Gs=ei(Ni,Ps),ga=S.get(Gs)||{};return Object.assign({checked:xn.has(Gs)},ga)}).filter(Ni=>{let{disabled:Ps}=Ni;return Ps}),hs=!!Gi.length&&Gi.length===p.length,Ms=hs&&Gi.every(Ni=>{let{checked:Ps}=Ni;return Ps}),Ls=hs&&Gi.some(Ni=>{let{checked:Ps}=Ni;return Ps});Fi=!Or&&R.createElement("div",{className:`${Yr}-selection`},R.createElement(as.default,{checked:hs?Ms:!!p.length&&pn,indeterminate:hs?!Ms&&Ls:!pn&&yi,onChange:xi,disabled:p.length===0||hs,"aria-label":Zi?"Custom selection":"Select all",skipGroup:!0}),Zi)}let os;Jt==="radio"?os=(Zi,Gi,hs)=>{const Ms=ei(Gi,hs),Ls=xn.has(Ms);return{node:R.createElement(vi.ZP,Object.assign({},S.get(Ms),{checked:Ls,onClick:Ni=>Ni.stopPropagation(),onChange:Ni=>{xn.has(Ms)||wr(Ms,!0,[Ms],Ni.nativeEvent)}})),checked:Ls}}:os=(Zi,Gi,hs)=>{var Ms;const Ls=ei(Gi,hs),Ni=xn.has(Ls),Ps=lt.has(Ls),Gs=S.get(Ls);let ga;return Yn==="nest"?ga=Ps:ga=(Ms=Gs==null?void 0:Gs.indeterminate)!==null&&Ms!==void 0?Ms:Ps,{node:R.createElement(as.default,Object.assign({},Gs,{indeterminate:ga,checked:Ni,skipGroup:!0,onClick:oa=>oa.stopPropagation(),onChange:oa=>{let{nativeEvent:wa}=oa;const{shiftKey:Lo}=wa;let go=-1,Ua=-1;if(Lo&&Mr){const Qa=new Set([yt,Ls]);kn.some((xa,ra)=>{if(Qa.has(xa))if(go===-1)go=ra;else return Ua=ra,!0;return!1})}if(Ua!==-1&&go!==Ua&&Mr){const Qa=kn.slice(go,Ua+1),xa=[];Ni?Qa.forEach(Ns=>{xn.has(Ns)&&(xa.push(Ns),xn.delete(Ns))}):Qa.forEach(Ns=>{xn.has(Ns)||(xa.push(Ns),xn.add(Ns))});const ra=Array.from(xn);bt==null||bt(!Ni,ra.map(Ns=>Qt(Ns)),xa.map(Ns=>Qt(Ns))),ir(ra,"multiple")}else{const Qa=V;if(Mr){const xa=Ni?(0,mo._5)(Qa,Ls):(0,mo.L0)(Qa,Ls);wr(Ls,!Ni,xa,wa)}else{const xa=(0,ds.S)([].concat((0,$t.Z)(Qa),[Ls]),!0,Qe,D),{checkedKeys:ra,halfCheckedKeys:Ns}=xa;let Uo=ra;if(Ni){const Co=new Set(ra);Co.delete(Ls),Uo=(0,ds.S)(Array.from(Co),{checked:!1,halfCheckedKeys:Ns},Qe,D).checkedKeys}wr(Ls,!Ni,Uo,wa)}}Ot(Ni?null:Ls)}})),checked:Ni}};const fi=(Zi,Gi,hs)=>{const{node:Ms,checked:Ls}=os(Zi,Gi,hs);return Lr?Lr(Ls,Gi,hs,Ms):Ms};if(!wn.includes(Bs))if(wn.findIndex(Zi=>{var Gi;return((Gi=Zi[Ue])===null||Gi===void 0?void 0:Gi.columnType)==="EXPAND_COLUMN"})===0){const[Zi,...Gi]=wn;wn=[Zi,Bs].concat((0,$t.Z)(Gi))}else wn=[Bs].concat((0,$t.Z)(wn));const Es=wn.indexOf(Bs);wn=wn.filter((Zi,Gi)=>Zi!==Bs||Gi===Es);const ns=wn[Es-1],Xi=wn[Es+1];let Nn=dr;Nn===void 0&&((Xi==null?void 0:Xi.fixed)!==void 0?Nn=Xi.fixed:(ns==null?void 0:ns.fixed)!==void 0&&(Nn=ns.fixed)),Nn&&ns&&((kt=ns[Ue])===null||kt===void 0?void 0:kt.columnType)==="EXPAND_COLUMN"&&ns.fixed===void 0&&(ns.fixed=Nn);const qi=O()(`${Yr}-selection-col`,{[`${Yr}-selection-col-with-dropdown`]:rr&&Jt==="checkbox"}),Js={fixed:Nn,width:Kt,className:`${Yr}-selection-column`,title:Pe.columnTitle||Fi,render:fi,onCell:Pe.onCell,[Ue]:{className:qi}};return wn.map(Zi=>Zi===Bs?Js:Zi)},[ei,p,Pe,V,Ke,lt,Kt,Sr,Yn,yt,S,bt,wr,D]),Ke]},Eo=E(89489),hl=E(59477),ka=E(6848);const Ya="ascend",El="descend";function qo(ge){return typeof ge.sorter=="object"&&typeof ge.sorter.multiple=="number"?ge.sorter.multiple:!1}function zo(ge){return typeof ge=="function"?ge:ge&&typeof ge=="object"&&ge.compare?ge.compare:!1}function pl(ge,Pe){return Pe?ge[ge.indexOf(Pe)+1]:ge[0]}function Go(ge,Pe,Ye){let st=[];function ot(gt,Ft){st.push({column:gt,key:Ws(gt,Ft),multiplePriority:qo(gt),sortOrder:gt.sortOrder})}return(ge||[]).forEach((gt,Ft)=>{const er=Ti(Ft,Ye);gt.children?("sortOrder"in gt&&ot(gt,er),st=[].concat((0,$t.Z)(st),(0,$t.Z)(Go(gt.children,Pe,er)))):gt.sorter&&("sortOrder"in gt?ot(gt,er):Pe&>.defaultSortOrder&&st.push({column:gt,key:Ws(gt,er),multiplePriority:qo(gt),sortOrder:gt.defaultSortOrder}))}),st}function Ma(ge,Pe,Ye,st,ot,gt,Ft,er){return(Pe||[]).map((je,at)=>{const Ie=Ti(at,er);let bt=je;if(bt.sorter){const Kt=bt.sortDirections||ot,Jt=bt.showSorterTooltip===void 0?Ft:bt.showSorterTooltip,rr=Ws(bt,Ie),dr=Ye.find(Yn=>{let{key:Qr}=Yn;return Qr===rr}),Lr=dr?dr.sortOrder:null,Or=pl(Kt,Lr);let Mr;if(je.sortIcon)Mr=je.sortIcon({sortOrder:Lr});else{const Yn=Kt.includes(Ya)&&R.createElement(hl.Z,{className:O()(`${ge}-column-sorter-up`,{active:Lr===Ya})}),Qr=Kt.includes(El)&&R.createElement(Eo.Z,{className:O()(`${ge}-column-sorter-down`,{active:Lr===El})});Mr=R.createElement("span",{className:O()(`${ge}-column-sorter`,{[`${ge}-column-sorter-full`]:!!(Yn&&Qr)})},R.createElement("span",{className:`${ge}-column-sorter-inner`,"aria-hidden":"true"},Yn,Qr))}const{cancelSort:Yr,triggerAsc:Qn,triggerDesc:Tr}=gt||{};let Qt=Yr;Or===El?Qt=Tr:Or===Ya&&(Qt=Qn);const ei=typeof Jt=="object"?Jt:{title:Qt};bt=Object.assign(Object.assign({},bt),{className:O()(bt.className,{[`${ge}-column-sort`]:Lr}),title:Yn=>{const Qr=R.createElement("div",{className:`${ge}-column-sorters`},R.createElement("span",{className:`${ge}-column-title`},Ds(je.title,Yn)),Mr);return Jt?R.createElement(ka.Z,Object.assign({},ei),Qr):Qr},onHeaderCell:Yn=>{const Qr=je.onHeaderCell&&je.onHeaderCell(Yn)||{},sn=Qr.onClick,rn=Qr.onKeyDown;Qr.onClick=qn=>{st({column:je,key:rr,sortOrder:Or,multiplePriority:qo(je)}),sn==null||sn(qn)},Qr.onKeyDown=qn=>{qn.keyCode===Qi.Z.ENTER&&(st({column:je,key:rr,sortOrder:Or,multiplePriority:qo(je)}),rn==null||rn(qn))};const Vr=Ri(je.title,{}),Sn=Vr==null?void 0:Vr.toString();return Lr?Qr["aria-sort"]=Lr==="ascend"?"ascending":"descending":Qr["aria-label"]=Sn||"",Qr.className=O()(Qr.className,`${ge}-column-has-sorters`),Qr.tabIndex=0,je.ellipsis&&(Qr.title=(Vr!=null?Vr:"").toString()),Qr}})}return"children"in bt&&(bt=Object.assign(Object.assign({},bt),{children:Ma(ge,bt.children,Ye,st,ot,gt,Ft,Ie)})),bt})}function ba(ge){const{column:Pe,sortOrder:Ye}=ge;return{column:Pe,order:Ye,field:Pe.dataIndex,columnKey:Pe.key}}function eo(ge){const Pe=ge.filter(Ye=>{let{sortOrder:st}=Ye;return st}).map(ba);return Pe.length===0&&ge.length?Object.assign(Object.assign({},ba(ge[ge.length-1])),{column:void 0}):Pe.length<=1?Pe[0]||{}:Pe}function _s(ge,Pe,Ye){const st=Pe.slice().sort((Ft,er)=>er.multiplePriority-Ft.multiplePriority),ot=ge.slice(),gt=st.filter(Ft=>{let{column:{sorter:er},sortOrder:je}=Ft;return zo(er)&&je});return gt.length?ot.sort((Ft,er)=>{for(let je=0;je<gt.length;je+=1){const at=gt[je],{column:{sorter:Ie},sortOrder:bt}=at,Kt=zo(Ie);if(Kt&&bt){const Jt=Kt(Ft,er,bt);if(Jt!==0)return bt===Ya?Jt:-Jt}}return 0}).map(Ft=>{const er=Ft[Ye];return er?Object.assign(Object.assign({},Ft),{[Ye]:_s(er,Pe,Ye)}):Ft}):ot}function zs(ge){let{prefixCls:Pe,mergedColumns:Ye,onSorterChange:st,sortDirections:ot,tableLocale:gt,showSorterTooltip:Ft}=ge;const[er,je]=R.useState(Go(Ye,!0)),at=R.useMemo(()=>{let rr=!0;const dr=Go(Ye,!1);if(!dr.length)return er;const Lr=[];function Or(Yr){rr?Lr.push(Yr):Lr.push(Object.assign(Object.assign({},Yr),{sortOrder:null}))}let Mr=null;return dr.forEach(Yr=>{Mr===null?(Or(Yr),Yr.sortOrder&&(Yr.multiplePriority===!1?rr=!1:Mr=!0)):(Mr&&Yr.multiplePriority!==!1||(rr=!1),Or(Yr))}),Lr},[Ye,er]),Ie=R.useMemo(()=>{const rr=at.map(dr=>{let{column:Lr,sortOrder:Or}=dr;return{column:Lr,order:Or}});return{sortColumns:rr,sortColumn:rr[0]&&rr[0].column,sortOrder:rr[0]&&rr[0].order}},[at]);function bt(rr){let dr;rr.multiplePriority===!1||!at.length||at[0].multiplePriority===!1?dr=[rr]:dr=[].concat((0,$t.Z)(at.filter(Lr=>{let{key:Or}=Lr;return Or!==rr.key})),[rr]),je(dr),st(eo(dr),dr)}return[rr=>Ma(Pe,rr,at,bt,ot,gt,Ft),at,Ie,()=>eo(at)]}function Is(ge,Pe){return ge.map(Ye=>{const st=Object.assign({},Ye);return st.title=Ds(Ye.title,Pe),"children"in st&&(st.children=Is(st.children,Pe)),st})}function sa(ge){return[R.useCallback(Ye=>Is(Ye,ge),[ge])]}var ma=mi((ge,Pe)=>{const{_renderTimes:Ye}=ge,{_renderTimes:st}=Pe;return Ye!==st}),Ln=Hi((ge,Pe)=>{const{_renderTimes:Ye}=ge,{_renderTimes:st}=Pe;return Ye!==st}),_o=E(64993),el=E(17313),Rl=E(83116),Ol=E(37613),tl=ge=>{const{componentCls:Pe}=ge,Ye=`${ge.lineWidth}px ${ge.lineType} ${ge.tableBorderColor}`,st=(ot,gt,Ft)=>({[`&${Pe}-${ot}`]:{[`> ${Pe}-container`]:{[`> ${Pe}-content, > ${Pe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Pe}-expanded-row-fixed`]:{margin:`-${gt}px -${Ft+ge.lineWidth}px`}}}}}});return{[`${Pe}-wrapper`]:{[`${Pe}${Pe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Pe}-title`]:{border:Ye,borderBottom:0},[`> ${Pe}-container`]:{borderInlineStart:Ye,borderTop:Ye,[`
|
|
|
> ${Pe}-content,
|
|
|
> ${Pe}-header,
|
|
|
> ${Pe}-body,
|
|
|
> ${Pe}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Ye},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ye},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Pe}-cell-fix-right-first::after`]:{borderInlineEnd:Ye}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Pe}-expanded-row-fixed`]:{margin:`-${ge.tablePaddingVertical}px -${ge.tablePaddingHorizontal+ge.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ge.lineWidth,bottom:0,borderInlineEnd:Ye,content:'""'}}}}}},[`&${Pe}-scroll-horizontal`]:{[`> ${Pe}-container > ${Pe}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Pe}-expanded-row,
|
|
|
> tr${Pe}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},st("middle",ge.tablePaddingVerticalMiddle,ge.tablePaddingHorizontalMiddle)),st("small",ge.tablePaddingVerticalSmall,ge.tablePaddingHorizontalSmall)),{[`> ${Pe}-footer`]:{border:Ye,borderTop:0}}),[`${Pe}-cell`]:{[`${Pe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ge.lineWidth}px 0 ${ge.lineWidth}px ${ge.tableHeaderBg}`}},[`${Pe}-bordered ${Pe}-cell-scrollbar`]:{borderInlineEnd:Ye}}}},zl=ge=>{const{componentCls:Pe}=ge;return{[`${Pe}-wrapper`]:{[`${Pe}-cell-ellipsis`]:Object.assign(Object.assign({},el.vS),{wordBreak:"keep-all",[`
|
|
|
&${Pe}-cell-fix-left-last,
|
|
|
&${Pe}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Pe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Pe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Pl=ge=>{const{componentCls:Pe}=ge;return{[`${Pe}-wrapper`]:{[`${Pe}-tbody > tr${Pe}-placeholder`]:{textAlign:"center",color:ge.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ge.colorBgContainer}}}}},Vo=E(15969),Eu=ge=>{const{componentCls:Pe,antCls:Ye,controlInteractiveSize:st,motionDurationSlow:ot,lineWidth:gt,paddingXS:Ft,lineType:er,tableBorderColor:je,tableExpandIconBg:at,tableExpandColumnWidth:Ie,borderRadius:bt,fontSize:Kt,fontSizeSM:Jt,lineHeight:rr,tablePaddingVertical:dr,tablePaddingHorizontal:Lr,tableExpandedRowBg:Or,paddingXXS:Mr}=ge,Yr=st/2-gt,Qn=Yr*2+gt*3,Tr=`${gt}px ${er} ${je}`,Qt=Mr-gt;return{[`${Pe}-wrapper`]:{[`${Pe}-expand-icon-col`]:{width:Ie},[`${Pe}-row-expand-icon-cell`]:{textAlign:"center",[`${Pe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Pe}-row-indent`]:{height:1,float:"left"},[`${Pe}-row-expand-icon`]:Object.assign(Object.assign({},(0,Vo.N)(ge)),{position:"relative",float:"left",boxSizing:"border-box",width:Qn,height:Qn,padding:0,color:"inherit",lineHeight:`${Qn}px`,background:at,border:Tr,borderRadius:bt,transform:`scale(${st/Qn})`,transition:`all ${ot}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${ot} ease-out`,content:'""'},"&::before":{top:Yr,insetInlineEnd:Qt,insetInlineStart:Qt,height:gt},"&::after":{top:Qt,bottom:Qt,insetInlineStart:Yr,width:gt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Pe}-row-indent + ${Pe}-row-expand-icon`]:{marginTop:(Kt*rr-gt*3)/2-Math.ceil((Jt*1.4-gt*3)/2),marginInlineEnd:Ft},[`tr${Pe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Or}},[`${Ye}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Pe}-expanded-row-fixed`]:{position:"relative",margin:`-${dr}px -${Lr}px`,padding:`${dr}px ${Lr}px`}}}},C=ge=>{const{componentCls:Pe,antCls:Ye,iconCls:st,tableFilterDropdownWidth:ot,tableFilterDropdownSearchWidth:gt,paddingXXS:Ft,paddingXS:er,colorText:je,lineWidth:at,lineType:Ie,tableBorderColor:bt,tableHeaderIconColor:Kt,fontSizeSM:Jt,tablePaddingHorizontal:rr,borderRadius:dr,motionDurationSlow:Lr,colorTextDescription:Or,colorPrimary:Mr,tableHeaderFilterActiveBg:Yr,colorTextDisabled:Qn,tableFilterDropdownBg:Tr,tableFilterDropdownHeight:Qt,controlItemBgHover:ei,controlItemBgActive:Yn,boxShadowSecondary:Qr,filterDropdownMenuBg:sn}=ge,rn=`${Ye}-dropdown`,Vr=`${Pe}-filter-dropdown`,Sn=`${Ye}-tree`,qn=`${at}px ${Ie} ${bt}`;return[{[`${Pe}-wrapper`]:{[`${Pe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Pe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Ft,marginInline:`${Ft}px ${-rr/2}px`,padding:`0 ${Ft}px`,color:Kt,fontSize:Jt,borderRadius:dr,cursor:"pointer",transition:`all ${Lr}`,"&:hover":{color:Or,background:Yr},"&.active":{color:Mr}}}},{[`${Ye}-dropdown`]:{[Vr]:Object.assign(Object.assign({},(0,el.Wf)(ge)),{minWidth:ot,backgroundColor:Tr,borderRadius:dr,boxShadow:Qr,overflow:"hidden",[`${rn}-menu`]:{maxHeight:Qt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:sn,"&:empty::after":{display:"block",padding:`${er}px 0`,color:Qn,fontSize:Jt,textAlign:"center",content:'"Not Found"'}},[`${Vr}-tree`]:{paddingBlock:`${er}px 0`,paddingInline:er,[Sn]:{padding:0},[`${Sn}-treenode ${Sn}-node-content-wrapper:hover`]:{backgroundColor:ei},[`${Sn}-treenode-checkbox-checked ${Sn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Yn}}},[`${Vr}-search`]:{padding:er,borderBottom:qn,"&-input":{input:{minWidth:gt},[st]:{color:Qn}}},[`${Vr}-checkall`]:{width:"100%",marginBottom:Ft,marginInlineStart:Ft},[`${Vr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${er-at}px ${er}px`,overflow:"hidden",borderTop:qn}})}},{[`${Ye}-dropdown ${Vr}, ${Vr}-submenu`]:{[`${Ye}-checkbox-wrapper + span`]:{paddingInlineStart:er,color:je},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},_=ge=>{const{componentCls:Pe,lineWidth:Ye,colorSplit:st,motionDurationSlow:ot,zIndexTableFixed:gt,tableBg:Ft,zIndexTableSticky:er}=ge,je=st;return{[`${Pe}-wrapper`]:{[`
|
|
|
${Pe}-cell-fix-left,
|
|
|
${Pe}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:gt,background:Ft},[`
|
|
|
${Pe}-cell-fix-left-first::after,
|
|
|
${Pe}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ye,width:30,transform:"translateX(100%)",transition:`box-shadow ${ot}`,content:'""',pointerEvents:"none"},[`${Pe}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Pe}-cell-fix-right-first::after,
|
|
|
${Pe}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Ye,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${ot}`,content:'""',pointerEvents:"none"},[`${Pe}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:er+1,width:30,transition:`box-shadow ${ot}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Pe}-ping-left`]:{[`&:not(${Pe}-has-fix-left) ${Pe}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${je}`}},[`
|
|
|
${Pe}-cell-fix-left-first::after,
|
|
|
${Pe}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${je}`},[`${Pe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Pe}-ping-right`]:{[`&:not(${Pe}-has-fix-right) ${Pe}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${je}`}},[`
|
|
|
${Pe}-cell-fix-right-first::after,
|
|
|
${Pe}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${je}`}}}}},ie=ge=>{const{componentCls:Pe,antCls:Ye}=ge;return{[`${Pe}-wrapper`]:{[`${Pe}-pagination${Ye}-pagination`]:{margin:`${ge.margin}px 0`},[`${Pe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ge.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},me=ge=>{const{componentCls:Pe,tableRadius:Ye}=ge;return{[`${Pe}-wrapper`]:{[Pe]:{[`${Pe}-title, ${Pe}-header`]:{borderRadius:`${Ye}px ${Ye}px 0 0`},[`${Pe}-title + ${Pe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Pe}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ye,borderStartEndRadius:Ye,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ye},"> *:last-child":{borderStartEndRadius:Ye}}},"&-footer":{borderRadius:`0 0 ${Ye}px ${Ye}px`}}}}},ke=ge=>{const{componentCls:Pe}=ge;return{[`${Pe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Pe}-pagination-left`]:{justifyContent:"flex-end"},[`${Pe}-pagination-right`]:{justifyContent:"flex-start"},[`${Pe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Pe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Pe}-row-indent`]:{float:"right"}}}}},dt=ge=>{const{componentCls:Pe,antCls:Ye,iconCls:st,fontSizeIcon:ot,padding:gt,paddingXS:Ft,tableHeaderIconColor:er,tableHeaderIconColorHover:je,tableSelectionColumnWidth:at}=ge;return{[`${Pe}-wrapper`]:{[`${Pe}-selection-col`]:{width:at,[`&${Pe}-selection-col-with-dropdown`]:{width:at+ot+gt/4}},[`${Pe}-bordered ${Pe}-selection-col`]:{width:at+Ft*2,[`&${Pe}-selection-col-with-dropdown`]:{width:at+ot+gt/4+Ft*2}},[`
|
|
|
table tr th${Pe}-selection-column,
|
|
|
table tr td${Pe}-selection-column
|
|
|
`]:{paddingInlineEnd:ge.paddingXS,paddingInlineStart:ge.paddingXS,textAlign:"center",[`${Ye}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Pe}-selection-column${Pe}-cell-fix-left`]:{zIndex:ge.zIndexTableFixed+1},[`table tr th${Pe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Pe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Pe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ge.tablePaddingHorizontal/4}px`,[st]:{color:er,fontSize:ot,verticalAlign:"baseline","&:hover":{color:je}}}}}},Ct=ge=>{const{componentCls:Pe}=ge,Ye=(st,ot,gt,Ft)=>({[`${Pe}${Pe}-${st}`]:{fontSize:Ft,[`
|
|
|
${Pe}-title,
|
|
|
${Pe}-footer,
|
|
|
${Pe}-cell,
|
|
|
${Pe}-thead > tr > th,
|
|
|
${Pe}-tbody > tr > th,
|
|
|
${Pe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${ot}px ${gt}px`},[`${Pe}-filter-trigger`]:{marginInlineEnd:`-${gt/2}px`},[`${Pe}-expanded-row-fixed`]:{margin:`-${ot}px -${gt}px`},[`${Pe}-tbody`]:{[`${Pe}-wrapper:only-child ${Pe}`]:{marginBlock:`-${ot}px`,marginInline:`${ge.tableExpandColumnWidth-gt}px -${gt}px`}},[`${Pe}-selection-column`]:{paddingInlineStart:`${gt/4}px`}}});return{[`${Pe}-wrapper`]:Object.assign(Object.assign({},Ye("middle",ge.tablePaddingVerticalMiddle,ge.tablePaddingHorizontalMiddle,ge.tableFontSizeMiddle)),Ye("small",ge.tablePaddingVerticalSmall,ge.tablePaddingHorizontalSmall,ge.tableFontSizeSmall))}},nr=ge=>{const{componentCls:Pe,marginXXS:Ye,fontSizeIcon:st,tableHeaderIconColor:ot,tableHeaderIconColorHover:gt}=ge;return{[`${Pe}-wrapper`]:{[`${Pe}-thead th${Pe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,"&:hover":{background:ge.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ge.colorPrimary},[`
|
|
|
&${Pe}-cell-fix-left:hover,
|
|
|
&${Pe}-cell-fix-right:hover
|
|
|
`]:{background:ge.tableFixedHeaderSortActiveBg}},[`${Pe}-thead th${Pe}-column-sort`]:{background:ge.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Pe}-column-sort`]:{background:ge.tableBodySortBg},[`${Pe}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Pe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Pe}-column-sorter`]:{marginInlineStart:Ye,color:ot,fontSize:0,transition:`color ${ge.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:st,"&.active":{color:ge.colorPrimary}},[`${Pe}-column-sorter-up + ${Pe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Pe}-column-sorters:hover ${Pe}-column-sorter`]:{color:gt}}}},or=ge=>{const{componentCls:Pe,opacityLoading:Ye,tableScrollThumbBg:st,tableScrollThumbBgHover:ot,tableScrollThumbSize:gt,tableScrollBg:Ft,zIndexTableSticky:er,stickyScrollBarBorderRadius:je}=ge,at=`${ge.lineWidth}px ${ge.lineType} ${ge.tableBorderColor}`;return{[`${Pe}-wrapper`]:{[`${Pe}-sticky`]:{"&-holder":{position:"sticky",zIndex:er,background:ge.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${gt}px !important`,zIndex:er,display:"flex",alignItems:"center",background:Ft,borderTop:at,opacity:Ye,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:gt,backgroundColor:st,borderRadius:je,transition:`all ${ge.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:ot}}}}}}},ar=ge=>{const{componentCls:Pe,lineWidth:Ye,tableBorderColor:st}=ge,ot=`${Ye}px ${ge.lineType} ${st}`;return{[`${Pe}-wrapper`]:{[`${Pe}-summary`]:{position:"relative",zIndex:ge.zIndexTableFixed,background:ge.tableBg,"> tr":{"> th, > td":{borderBottom:ot}}},[`div${Pe}-summary`]:{boxShadow:`0 -${Ye}px 0 ${st}`}}}},Zr=ge=>{const{componentCls:Pe}=ge,Ye=`${ge.lineWidth}px ${ge.lineType} ${ge.tableBorderColor}`,st=`${Pe}-expanded-row-cell`;return{[`${Pe}-wrapper`]:{[`${Pe}-tbody-virtual`]:{[`${Pe}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Pe}-cell`]:{borderBottom:Ye},[`${Pe}-expanded-row`]:{[`${st}${st}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ge.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Pe}-bordered`]:{[`${Pe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ye,position:"absolute"},[`${Pe}-cell`]:{borderInlineEnd:Ye,[`&${Pe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ge.lineWidth,borderInlineStart:Ye}}}}}}};const mn=ge=>{const{componentCls:Pe,fontWeightStrong:Ye,tablePaddingVertical:st,tablePaddingHorizontal:ot,lineWidth:gt,lineType:Ft,tableBorderColor:er,tableFontSize:je,tableBg:at,tableRadius:Ie,tableHeaderTextColor:bt,motionDurationMid:Kt,tableHeaderBg:Jt,tableHeaderCellSplitColor:rr,tableRowHoverBg:dr,tableSelectedRowBg:Lr,tableSelectedRowHoverBg:Or,tableFooterTextColor:Mr,tableFooterBg:Yr,paddingContentVerticalLG:Qn}=ge,Tr=`${gt}px ${Ft} ${er}`;return{[`${Pe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,el.dF)()),{[Pe]:Object.assign(Object.assign({},(0,el.Wf)(ge)),{fontSize:je,background:at,borderRadius:`${Ie}px ${Ie}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ie}px ${Ie}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Pe}-cell,
|
|
|
${Pe}-thead > tr > th,
|
|
|
${Pe}-tbody > tr > th,
|
|
|
${Pe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Qn}px ${ot}px`,overflowWrap:"break-word"},[`${Pe}-title`]:{padding:`${st}px ${ot}px`},[`${Pe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:bt,fontWeight:Ye,textAlign:"start",background:Jt,borderBottom:Tr,transition:`background ${Kt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Pe}-selection-column):not(${Pe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:rr,transform:"translateY(-50%)",transition:`background-color ${Kt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Pe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Kt}, border-color ${Kt}`,borderBottom:Tr,[`
|
|
|
> ${Pe}-wrapper:only-child,
|
|
|
> ${Pe}-expanded-row-fixed > ${Pe}-wrapper:only-child
|
|
|
`]:{[Pe]:{marginBlock:`-${st}px`,marginInline:`${ge.tableExpandColumnWidth-ot}px -${ot}px`,[`${Pe}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:bt,fontWeight:Ye,textAlign:"start",background:Jt,borderBottom:Tr,transition:`background ${Kt} ease`},[`
|
|
|
&${Pe}-row:hover > th,
|
|
|
&${Pe}-row:hover > td,
|
|
|
> th${Pe}-cell-row-hover,
|
|
|
> td${Pe}-cell-row-hover
|
|
|
`]:{background:dr},[`&${Pe}-row-selected`]:{"> th, > td":{background:Lr},"&:hover > th, &:hover > td":{background:Or}}}},[`${Pe}-footer`]:{padding:`${st}px ${ot}px`,color:Mr,background:Yr}})}};var Gn=(0,Rl.Z)("Table",ge=>{const{colorTextHeading:Pe,colorSplit:Ye,colorIcon:st,colorIconHover:ot,opacityLoading:gt,colorBgContainer:Ft,controlInteractiveSize:er,headerBg:je,headerColor:at,headerSortActiveBg:Ie,headerSortHoverBg:bt,bodySortBg:Kt,rowHoverBg:Jt,rowSelectedBg:rr,rowSelectedHoverBg:dr,rowExpandedBg:Lr,cellPaddingBlock:Or,cellPaddingInline:Mr,cellPaddingBlockMD:Yr,cellPaddingInlineMD:Qn,cellPaddingBlockSM:Tr,cellPaddingInlineSM:Qt,borderColor:ei,footerBg:Yn,footerColor:Qr,headerBorderRadius:sn,cellFontSize:rn,cellFontSizeMD:Vr,cellFontSizeSM:Sn,headerSplitColor:qn,fixedHeaderSortActiveBg:pi,headerFilterHoverBg:Qe,filterDropdownBg:p,expandIconBg:S,selectionColumnWidth:D,stickyScrollBarBg:V}=ge,pe=new _o.C(st),Ke=new _o.C(ot),lt=2,yt=(0,Ol.TS)(ge,{tableFontSize:rn,tableBg:Ft,tableRadius:sn,tablePaddingVertical:Or,tablePaddingHorizontal:Mr,tablePaddingVerticalMiddle:Yr,tablePaddingHorizontalMiddle:Qn,tablePaddingVerticalSmall:Tr,tablePaddingHorizontalSmall:Qt,tableBorderColor:ei,tableHeaderTextColor:at,tableHeaderBg:je,tableFooterTextColor:Qr,tableFooterBg:Yn,tableHeaderCellSplitColor:qn,tableHeaderSortBg:Ie,tableHeaderSortHoverBg:bt,tableHeaderIconColor:pe.clone().setAlpha(pe.getAlpha()*gt).toRgbString(),tableHeaderIconColorHover:Ke.clone().setAlpha(Ke.getAlpha()*gt).toRgbString(),tableBodySortBg:Kt,tableFixedHeaderSortActiveBg:pi,tableHeaderFilterActiveBg:Qe,tableFilterDropdownBg:p,tableRowHoverBg:Jt,tableSelectedRowBg:rr,tableSelectedRowHoverBg:dr,zIndexTableFixed:lt,zIndexTableSticky:lt+1,tableFontSizeMiddle:Vr,tableFontSizeSmall:Sn,tableSelectionColumnWidth:D,tableExpandIconBg:S,tableExpandColumnWidth:er+2*ge.padding,tableExpandedRowBg:Lr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:V,tableScrollThumbBgHover:Pe,tableScrollBg:Ye});return[mn(yt),ie(yt),ar(yt),nr(yt),C(yt),tl(yt),me(yt),Eu(yt),ar(yt),Pl(yt),dt(yt),_(yt),or(yt),zl(yt),Ct(yt),ke(yt),Zr(yt)]},ge=>{const{colorFillAlter:Pe,colorBgContainer:Ye,colorTextHeading:st,colorFillSecondary:ot,colorFillContent:gt,controlItemBgActive:Ft,controlItemBgActiveHover:er,padding:je,paddingSM:at,paddingXS:Ie,colorBorderSecondary:bt,borderRadiusLG:Kt,fontSize:Jt,controlHeight:rr,colorTextPlaceholder:dr}=ge,Lr=new _o.C(ot).onBackground(Ye).toHexShortString(),Or=new _o.C(gt).onBackground(Ye).toHexShortString(),Mr=new _o.C(Pe).onBackground(Ye).toHexShortString();return{headerBg:Mr,headerColor:st,headerSortActiveBg:Lr,headerSortHoverBg:Or,bodySortBg:Mr,rowHoverBg:Mr,rowSelectedBg:Ft,rowSelectedHoverBg:er,rowExpandedBg:Pe,cellPaddingBlock:je,cellPaddingInline:je,cellPaddingBlockMD:at,cellPaddingInlineMD:Ie,cellPaddingBlockSM:Ie,cellPaddingInlineSM:Ie,borderColor:bt,headerBorderRadius:Kt,footerBg:Mr,footerColor:st,cellFontSize:Jt,cellFontSizeMD:Jt,cellFontSizeSM:Jt,headerSplitColor:bt,fixedHeaderSortActiveBg:Lr,headerFilterHoverBg:gt,filterDropdownMenuBg:Ye,filterDropdownBg:Ye,expandIconBg:Ye,selectionColumnWidth:rr,stickyScrollBarBg:dr,stickyScrollBarBorderRadius:100}});const Jr=[],br=(ge,Pe)=>{const{prefixCls:Ye,className:st,rootClassName:ot,style:gt,size:Ft,bordered:er,dropdownPrefixCls:je,dataSource:at,pagination:Ie,rowSelection:bt,rowKey:Kt="key",rowClassName:Jt,columns:rr,children:dr,childrenColumnName:Lr,onChange:Or,getPopupContainer:Mr,loading:Yr,expandIcon:Qn,expandable:Tr,expandedRowRender:Qt,expandIconColumnIndex:ei,indentSize:Yn,scroll:Qr,sortDirections:sn,locale:rn,showSorterTooltip:Vr=!0,virtual:Sn}=ge,qn=R.useMemo(()=>rr||Dr(dr),[rr,dr]),pi=R.useMemo(()=>qn.some(bs=>bs.responsive),[qn]),Qe=(0,Wi.Z)(pi),p=R.useMemo(()=>{const bs=new Set(Object.keys(Qe).filter(cs=>Qe[cs]));return qn.filter(cs=>!cs.responsive||cs.responsive.some(ja=>bs.has(ja)))},[qn,Qe]),S=(0,Mi.Z)(ge,["className","style","columns"]),{locale:D=ps.Z,direction:V,table:pe,renderEmpty:Ke,getPrefixCls:lt,getPopupContainer:yt}=R.useContext(js.E_),Ot=(0,us.Z)(Ft),ir=Object.assign(Object.assign({},D.Table),rn),wr=at||Jr,Sr=lt("table",Ye),Tn=lt("dropdown",je),_r=Object.assign({childrenColumnName:Lr,expandIconColumnIndex:ei},Tr),{childrenColumnName:kt="children"}=_r,wn=R.useMemo(()=>wr.some(bs=>bs==null?void 0:bs[kt])?"nest":Qt||Tr&&Tr.expandedRowRender?"row":null,[wr]),xn={body:R.useRef()},kn=R.useMemo(()=>typeof Kt=="function"?Kt:bs=>bs==null?void 0:bs[Kt],[Kt]),[pn]=Aa(wr,kt,kn),yi={},xi=function(bs,cs){let ja=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var qs,$a,Ha;const Ra=Object.assign(Object.assign({},yi),bs);ja&&((qs=yi.resetPagination)===null||qs===void 0||qs.call(yi),!(($a=Ra.pagination)===null||$a===void 0)&&$a.current&&(Ra.pagination.current=1),Ie&&Ie.onChange&&Ie.onChange(1,(Ha=Ra.pagination)===null||Ha===void 0?void 0:Ha.pageSize)),Qr&&Qr.scrollToFirstRowOnChange!==!1&&xn.body.current&&(0,ls.Z)(0,{getContainer:()=>xn.body.current}),Or==null||Or(Ra.pagination,Ra.filters,Ra.sorter,{currentDataSource:Va(_s(wr,Ra.sorterStates,kt),Ra.filterStates),action:cs})},Fi=(bs,cs)=>{xi({sorter:bs,sorterStates:cs},"sort",!1)},[os,fi,Es,ns]=zs({prefixCls:Sr,mergedColumns:p,onSorterChange:Fi,sortDirections:sn||["ascend","descend"],tableLocale:ir,showSorterTooltip:Vr}),Xi=R.useMemo(()=>_s(wr,fi,kt),[wr,fi]);yi.sorter=ns(),yi.sorterStates=fi;const Nn=(bs,cs)=>{xi({filters:bs,filterStates:cs},"filter",!0)},[qi,Js,Zi]=fl({prefixCls:Sr,locale:ir,dropdownPrefixCls:Tn,mergedColumns:p,onFilterChange:Nn,getPopupContainer:Mr||yt}),Gi=Va(Xi,Js);yi.filters=Zi,yi.filterStates=Js;const hs=R.useMemo(()=>{const bs={};return Object.keys(Zi).forEach(cs=>{Zi[cs]!==null&&(bs[cs]=Zi[cs])}),Object.assign(Object.assign({},Es),{filters:bs})},[Es,Zi]),[Ms]=sa(hs),Ls=(bs,cs)=>{xi({pagination:Object.assign(Object.assign({},yi.pagination),{current:bs,pageSize:cs})},"paginate")},[Ni,Ps]=Ko(Gi.length,Ls,Ie);yi.pagination=Ie===!1?{}:ys(Ni,Ie),yi.resetPagination=Ps;const Gs=R.useMemo(()=>{if(Ie===!1||!Ni.pageSize)return Gi;const{current:bs=1,total:cs,pageSize:ja=Sa}=Ni;return Gi.length<cs?Gi.length>ja?Gi.slice((bs-1)*ja,bs*ja):Gi:Gi.slice((bs-1)*ja,bs*ja)},[!!Ie,Gi,Ni&&Ni.current,Ni&&Ni.pageSize,Ni&&Ni.total]),[ga,oa]=qa({prefixCls:Sr,data:Gi,pageData:Gs,getRowKey:kn,getRecordByKey:pn,expandType:wn,childrenColumnName:kt,locale:ir,getPopupContainer:Mr||yt},bt),wa=(bs,cs,ja)=>{let qs;return typeof Jt=="function"?qs=O()(Jt(bs,cs,ja)):qs=O()(Jt),O()({[`${Sr}-row-selected`]:oa.has(kn(bs,cs))},qs)};_r.__PARENT_RENDER_ICON__=_r.expandIcon,_r.expandIcon=_r.expandIcon||Qn||Ui(ir),wn==="nest"&&_r.expandIconColumnIndex===void 0?_r.expandIconColumnIndex=bt?1:0:_r.expandIconColumnIndex>0&&bt&&(_r.expandIconColumnIndex-=1),typeof _r.indentSize!="number"&&(_r.indentSize=typeof Yn=="number"?Yn:15);const Lo=R.useCallback(bs=>Ms(ga(qi(os(bs)))),[os,qi,ga]);let go,Ua;if(Ie!==!1&&(Ni!=null&&Ni.total)){let bs;Ni.size?bs=Ni.size:bs=Ot==="small"||Ot==="middle"?"small":void 0;const cs=$a=>R.createElement(Vs.Z,Object.assign({},Ni,{className:O()(`${Sr}-pagination ${Sr}-pagination-${$a}`,Ni.className),size:bs})),ja=V==="rtl"?"left":"right",{position:qs}=Ni;if(qs!==null&&Array.isArray(qs)){const $a=qs.find(ao=>ao.includes("top")),Ha=qs.find(ao=>ao.includes("bottom")),Ra=qs.every(ao=>`${ao}`=="none");!$a&&!Ha&&!Ra&&(Ua=cs(ja)),$a&&(go=cs($a.toLowerCase().replace("top",""))),Ha&&(Ua=cs(Ha.toLowerCase().replace("bottom","")))}else Ua=cs(ja)}let Qa;typeof Yr=="boolean"?Qa={spinning:Yr}:typeof Yr=="object"&&(Qa=Object.assign({spinning:!0},Yr));const[xa,ra]=Gn(Sr),[,Ns]=(0,ss.Z)(),Uo=O()(`${Sr}-wrapper`,pe==null?void 0:pe.className,{[`${Sr}-wrapper-rtl`]:V==="rtl"},st,ot,ra),Co=Object.assign(Object.assign({},pe==null?void 0:pe.style),gt),Wo=rn&&rn.emptyText||(Ke==null?void 0:Ke("Table"))||R.createElement(Vn.Z,{componentName:"Table"}),Qo=Sn?Ln:ma,ou={},_l=R.useMemo(()=>{const{fontSize:bs,lineHeight:cs,padding:ja,paddingXS:qs,paddingSM:$a}=Ns,Ha=Math.floor(bs*cs);switch(Ot){case"large":return ja*2+Ha;case"small":return qs*2+Ha;default:return $a*2+Ha}},[Ns,Ot]);return Sn&&(ou.listItemHeight=_l),xa(R.createElement("div",{ref:Pe,className:Uo,style:Co},R.createElement(vs.Z,Object.assign({spinning:!1},Qa),go,R.createElement(Qo,Object.assign({},ou,S,{columns:p,direction:V,expandable:_r,prefixCls:Sr,className:O()({[`${Sr}-middle`]:Ot==="middle",[`${Sr}-small`]:Ot==="small",[`${Sr}-bordered`]:er,[`${Sr}-empty`]:wr.length===0}),data:Gs,rowKey:kn,rowClassName:wa,emptyText:Wo,internalHooks:Fe,internalRefs:xn,transformColumns:Lo})),Ua)))};var en=R.forwardRef(br);const In=(ge,Pe)=>{const Ye=R.useRef(0);return Ye.current+=1,R.createElement(en,Object.assign({},ge,{ref:Pe,_renderTimes:Ye.current}))},Nt=R.forwardRef(In);Nt.SELECTION_COLUMN=Bs,Nt.EXPAND_COLUMN=le,Nt.SELECTION_ALL=fs,Nt.SELECTION_INVERT=ia,Nt.SELECTION_NONE=Fs,Nt.Column=ai,Nt.ColumnGroup=Li,Nt.Summary=Q;var Wt=Nt,Cr=Wt},33166:function(tn,Mt,E){"use strict";E.d(Mt,{i:function(){return le}});const le=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return Fe}});var le=E(33166);function Fe(ae,Re){return le.i.reduce((K,g)=>{const R=ae[`${g}1`],T=ae[`${g}3`],l=ae[`${g}6`],d=ae[`${g}7`];return Object.assign(Object.assign({},K),Re(g,{lightColor:R,lightBorderColor:T,darkColor:l,textColor:d}))},{})}},10777:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return ce}});var le=E(92310),Fe=E.n(le),ae=E(59301),Re=E(36355),K=function(q,ye){var _e={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&ye.indexOf(Le)<0&&(_e[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Le=Object.getOwnPropertySymbols(q);se<Le.length;se++)ye.indexOf(Le[se])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[se])&&(_e[Le[se]]=q[Le[se]]);return _e},R=q=>{var{prefixCls:ye,className:_e,color:Le="blue",dot:se,pending:be=!1,position:O,label:Ee,children:ue}=q,he=K(q,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:ve}=ae.useContext(Re.E_),F=ve("timeline",ye),U=Fe()(`${F}-item`,{[`${F}-item-pending`]:be},_e),ee=/blue|red|green|gray/.test(Le||"")?void 0:Le,de=Fe()(`${F}-item-head`,{[`${F}-item-head-custom`]:!!se,[`${F}-item-head-${Le}`]:!ee});return ae.createElement("li",Object.assign({},he,{className:U}),Ee&&ae.createElement("div",{className:`${F}-item-label`},Ee),ae.createElement("div",{className:`${F}-item-tail`}),ae.createElement("div",{className:de,style:{borderColor:ee,color:ee}},se),ae.createElement("div",{className:`${F}-item-content`},ue))},T=E(80702),l=E(58617),d=function(q,ye){var _e={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&ye.indexOf(Le)<0&&(_e[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Le=Object.getOwnPropertySymbols(q);se<Le.length;se++)ye.indexOf(Le[se])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[se])&&(_e[Le[se]]=q[Le[se]]);return _e},v=q=>{var{prefixCls:ye,className:_e,pending:Le=!1,children:se,items:be,rootClassName:O,reverse:Ee=!1,direction:ue,hashId:he,pendingDot:ve,mode:F=""}=q,U=d(q,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const ee=(Ze,fr)=>F==="alternate"?Ze==="right"?`${ye}-item-right`:Ze==="left"?`${ye}-item-left`:fr%2===0?`${ye}-item-left`:`${ye}-item-right`:F==="left"?`${ye}-item-left`:F==="right"?`${ye}-item-right`:Ze==="right"?`${ye}-item-right`:"",de=(0,T.Z)(be||[]),Xe=typeof Le=="boolean"?null:Le;Le&&de.push({pending:!!Le,dot:ve||ae.createElement(l.Z,null),children:Xe}),Ee&&de.reverse();const tt=de.length,nt=`${ye}-item-last`,_t=de.filter(Ze=>!!Ze).map((Ze,fr)=>{var yr;const Ar=fr===tt-2?nt:"",vr=fr===tt-1?nt:"",{className:Ce}=Ze,It=d(Ze,["className"]);return ae.createElement(R,Object.assign({},It,{className:Fe()([Ce,!Ee&&Le?Ar:vr,ee((yr=Ze==null?void 0:Ze.position)!==null&&yr!==void 0?yr:"",fr)]),key:(Ze==null?void 0:Ze.key)||fr}))}),Xt=de.some(Ze=>!!(Ze!=null&&Ze.label)),zt=Fe()(ye,{[`${ye}-pending`]:!!Le,[`${ye}-reverse`]:!!Ee,[`${ye}-${F}`]:!!F&&!Xt,[`${ye}-label`]:Xt,[`${ye}-rtl`]:ue==="rtl"},_e,O,he);return ae.createElement("ul",Object.assign({},U,{className:zt}),_t)},m=E(11592);function b(q,ye){return q&&Array.isArray(q)?q:(0,m.Z)(ye).map(_e=>{var Le,se;return Object.assign({children:(se=(Le=_e==null?void 0:_e.props)===null||Le===void 0?void 0:Le.children)!==null&&se!==void 0?se:""},_e.props)})}var I=b,L=E(17313),z=E(83116),P=E(37613);const $=q=>{const{componentCls:ye}=q;return{[ye]:Object.assign(Object.assign({},(0,L.Wf)(q)),{margin:0,padding:0,listStyle:"none",[`${ye}-item`]:{position:"relative",margin:0,paddingBottom:q.itemPaddingBottom,fontSize:q.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:q.itemHeadSize,insetInlineStart:(q.itemHeadSize-q.tailWidth)/2,height:`calc(100% - ${q.itemHeadSize}px)`,borderInlineStart:`${q.tailWidth}px ${q.lineType} ${q.tailColor}`},"&-pending":{[`${ye}-item-head`]:{fontSize:q.fontSizeSM,backgroundColor:"transparent"},[`${ye}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:q.itemHeadSize,height:q.itemHeadSize,backgroundColor:q.dotBg,border:`${q.dotBorderWidth}px ${q.lineType} transparent`,borderRadius:"50%","&-blue":{color:q.colorPrimary,borderColor:q.colorPrimary},"&-red":{color:q.colorError,borderColor:q.colorError},"&-green":{color:q.colorSuccess,borderColor:q.colorSuccess},"&-gray":{color:q.colorTextDisabled,borderColor:q.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:q.itemHeadSize/2,insetInlineStart:q.itemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:q.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(q.fontSize*q.lineHeight-q.fontSize)+q.lineWidth,marginInlineStart:q.margin+q.itemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${ye}-item-tail`]:{display:"none"},[`> ${ye}-item-content`]:{minHeight:q.controlHeightLG*1.2}}},[`&${ye}-alternate,
|
|
|
&${ye}-right,
|
|
|
&${ye}-label`]:{[`${ye}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${q.marginXXS}px`,"&-custom":{marginInlineStart:q.tailWidth/2}},"&-left":{[`${ye}-item-content`]:{insetInlineStart:`calc(50% - ${q.marginXXS}px)`,width:`calc(50% - ${q.marginSM}px)`,textAlign:"start"}},"&-right":{[`${ye}-item-content`]:{width:`calc(50% - ${q.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${ye}-right`]:{[`${ye}-item-right`]:{[`${ye}-item-tail,
|
|
|
${ye}-item-head,
|
|
|
${ye}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(q.itemHeadSize+q.tailWidth)/2}px)`},[`${ye}-item-content`]:{width:`calc(100% - ${q.itemHeadSize+q.marginXS}px)`}}},[`&${ye}-pending
|
|
|
${ye}-item-last
|
|
|
${ye}-item-tail`]:{display:"block",height:`calc(100% - ${q.margin}px)`,borderInlineStart:`${q.tailWidth}px dotted ${q.tailColor}`},[`&${ye}-reverse
|
|
|
${ye}-item-last
|
|
|
${ye}-item-tail`]:{display:"none"},[`&${ye}-reverse ${ye}-item-pending`]:{[`${ye}-item-tail`]:{insetBlockStart:q.margin,display:"block",height:`calc(100% - ${q.margin}px)`,borderInlineStart:`${q.tailWidth}px dotted ${q.tailColor}`},[`${ye}-item-content`]:{minHeight:q.controlHeightLG*1.2}},[`&${ye}-label`]:{[`${ye}-item-label`]:{position:"absolute",insetBlockStart:-(q.fontSize*q.lineHeight-q.fontSize)+q.tailWidth,width:`calc(50% - ${q.marginSM}px)`,textAlign:"end"},[`${ye}-item-right`]:{[`${ye}-item-label`]:{insetInlineStart:`calc(50% + ${q.marginSM}px)`,width:`calc(50% - ${q.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${ye}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var J=(0,z.Z)("Timeline",q=>{const ye=(0,P.TS)(q,{itemHeadSize:10,customHeadPaddingVertical:q.paddingXXS,paddingInlineEnd:2});return[$(ye)]},q=>({tailColor:q.colorSplit,tailWidth:q.lineWidthBold,dotBorderWidth:q.wireframe?q.lineWidthBold:q.lineWidth*3,dotBg:q.colorBgContainer,itemPaddingBottom:q.padding*1.25})),te=function(q,ye){var _e={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&ye.indexOf(Le)<0&&(_e[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,Le=Object.getOwnPropertySymbols(q);se<Le.length;se++)ye.indexOf(Le[se])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[se])&&(_e[Le[se]]=q[Le[se]]);return _e};const H=q=>{const{getPrefixCls:ye,direction:_e,timeline:Le}=ae.useContext(Re.E_),{prefixCls:se,children:be,items:O,className:Ee,style:ue}=q,he=te(q,["prefixCls","children","items","className","style"]),ve=ye("timeline",se),[F,U]=J(ve),ee=I(O,be);return F(ae.createElement(v,Object.assign({},he,{className:Fe()(Le==null?void 0:Le.className,Ee),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),ue),prefixCls:ve,direction:_e,items:ee,hashId:U})))};H.Item=R;var G=H,ce=G},6848:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return Le}});var le=E(59301),Fe=E(92310),ae=E.n(Fe),Re=E(55477),K=E(18929),g=E(62892),R=E(79676),T=E(92343),l=E(36355),d=E(33234),N=E(88088),v=E(17313),m=E(29878),b=E(19447),I=E(45157),L=E(37613),z=E(83116);const P=se=>{const{componentCls:be,tooltipMaxWidth:O,tooltipColor:Ee,tooltipBg:ue,tooltipBorderRadius:he,zIndexPopup:ve,controlHeight:F,boxShadowSecondary:U,paddingSM:ee,paddingXS:de,tooltipRadiusOuter:Xe}=se;return[{[be]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(se)),{position:"absolute",zIndex:ve,display:"block",width:"max-content",maxWidth:O,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":ue,[`${be}-inner`]:{minWidth:F,minHeight:F,padding:`${ee/2}px ${de}px`,color:Ee,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:ue,borderRadius:he,boxShadow:U,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${be}-inner`]:{borderRadius:Math.min(he,b.qN)}},[`${be}-content`]:{position:"relative"}}),(0,I.Z)(se,(tt,nt)=>{let{darkColor:_t}=nt;return{[`&${be}-${tt}`]:{[`${be}-inner`]:{backgroundColor:_t},[`${be}-arrow`]:{"--antd-arrow-background-color":_t}}}})),{"&-rtl":{direction:"rtl"}})},(0,b.ZP)((0,L.TS)(se,{borderRadiusOuter:Xe}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:he,limitVerticalRadius:!0}),{[`${be}-pure`]:{position:"relative",maxWidth:"none",margin:se.sizePopupArrow}}]};var $=(se,be)=>(0,z.Z)("Tooltip",Ee=>{if(be===!1)return[];const{borderRadius:ue,colorTextLightSolid:he,colorBgDefault:ve,borderRadiusOuter:F}=Ee,U=(0,L.TS)(Ee,{tooltipMaxWidth:250,tooltipColor:he,tooltipBorderRadius:ue,tooltipBg:ve,tooltipRadiusOuter:F>4?4:F});return[P(U),(0,m._y)(Ee,"zoom-big-fast")]},Ee=>{let{zIndexPopupBase:ue,colorBgSpotlight:he}=Ee;return{zIndexPopup:ue+70,colorBgDefault:he}},{resetStyle:!1})(se),J=E(36785);function te(se,be){const O=(0,J.o2)(be),Ee=ae()({[`${se}-${be}`]:be&&O}),ue={},he={};return be&&!O&&(ue.background=be,he["--antd-arrow-background-color"]=be),{className:Ee,overlayStyle:ue,arrowStyle:he}}var G=se=>{const{prefixCls:be,className:O,placement:Ee="top",title:ue,color:he,overlayInnerStyle:ve}=se,{getPrefixCls:F}=le.useContext(l.E_),U=F("tooltip",be),[ee,de]=$(U,!0),Xe=te(U,he),tt=Xe.arrowStyle,nt=Object.assign(Object.assign({},ve),Xe.overlayStyle),_t=ae()(de,U,`${U}-pure`,`${U}-placement-${Ee}`,O,Xe.className);return ee(le.createElement("div",{className:_t,style:tt},le.createElement("div",{className:`${U}-arrow`}),le.createElement(Re.G,Object.assign({},se,{className:de,prefixCls:U,overlayInnerStyle:nt}),ue)))},ce=function(se,be){var O={};for(var Ee in se)Object.prototype.hasOwnProperty.call(se,Ee)&&be.indexOf(Ee)<0&&(O[Ee]=se[Ee]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ee=Object.getOwnPropertySymbols(se);ue<Ee.length;ue++)be.indexOf(Ee[ue])<0&&Object.prototype.propertyIsEnumerable.call(se,Ee[ue])&&(O[Ee[ue]]=se[Ee[ue]]);return O};const q=(se,be)=>{const O={},Ee=Object.assign({},se);return be.forEach(ue=>{se&&ue in se&&(O[ue]=se[ue],delete Ee[ue])}),{picked:O,omitted:Ee}};function ye(se,be){const O=se.type;if((O.__ANT_BUTTON===!0||se.type==="button")&&se.props.disabled||O.__ANT_SWITCH===!0&&(se.props.disabled||se.props.loading)||O.__ANT_RADIO===!0&&se.props.disabled){const{picked:Ee,omitted:ue}=q(se.props.style,["position","left","right","top","bottom","float","display","zIndex"]),he=Object.assign(Object.assign({display:"inline-block"},Ee),{cursor:"not-allowed",width:se.props.block?"100%":void 0}),ve=Object.assign(Object.assign({},ue),{pointerEvents:"none"}),F=(0,T.Tm)(se,{style:ve,className:null});return le.createElement("span",{style:he,className:ae()(se.props.className,`${be}-disabled-compatible-wrapper`)},F)}return se}const _e=le.forwardRef((se,be)=>{var O,Ee;const{prefixCls:ue,openClassName:he,getTooltipContainer:ve,overlayClassName:F,color:U,overlayInnerStyle:ee,children:de,afterOpenChange:Xe,afterVisibleChange:tt,destroyTooltipOnHide:nt,arrow:_t=!0,title:Xt,overlay:zt,builtinPlacements:Ze,arrowPointAtCenter:fr=!1,autoAdjustOverflow:yr=!0}=se,Ar=!!_t,[,vr]=(0,N.Z)(),{getPopupContainer:Ce,getPrefixCls:It,direction:Z}=le.useContext(l.E_),x=le.useRef(null),y=()=>{var Rt;(Rt=x.current)===null||Rt===void 0||Rt.forceAlign()};le.useImperativeHandle(be,()=>({forceAlign:y,forcePopupAlign:()=>{y()}}));const[k,fe]=(0,K.Z)(!1,{value:(O=se.open)!==null&&O!==void 0?O:se.visible,defaultValue:(Ee=se.defaultOpen)!==null&&Ee!==void 0?Ee:se.defaultVisible}),W=!Xt&&!zt&&Xt!==0,Q=Rt=>{var $t,qe;fe(W?!1:Rt),W||(($t=se.onOpenChange)===null||$t===void 0||$t.call(se,Rt),(qe=se.onVisibleChange)===null||qe===void 0||qe.call(se,Rt))},re=le.useMemo(()=>{var Rt,$t;let qe=fr;return typeof _t=="object"&&(qe=($t=(Rt=_t.pointAtCenter)!==null&&Rt!==void 0?Rt:_t.arrowPointAtCenter)!==null&&$t!==void 0?$t:fr),Ze||(0,R.Z)({arrowPointAtCenter:qe,autoAdjustOverflow:yr,arrowWidth:Ar?vr.sizePopupArrow:0,borderRadius:vr.borderRadius,offset:vr.marginXXS,visibleFirst:!0})},[fr,_t,Ze,vr]),Se=le.useMemo(()=>Xt===0?Xt:zt||Xt||"",[zt,Xt]),Be=le.createElement(d.BR,null,typeof Se=="function"?Se():Se),{getPopupContainer:Te,placement:Ge="top",mouseEnterDelay:ut=.1,mouseLeaveDelay:$e=.1,overlayStyle:Je,rootClassName:At}=se,ze=ce(se,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),He=It("tooltip",ue),vt=It(),jt=se["data-popover-inject"];let Dt=k;!("open"in se)&&!("visible"in se)&&W&&(Dt=!1);const lr=ye((0,T.l$)(de)&&!(0,T.M2)(de)?de:le.createElement("span",null,de),He),gr=lr.props,ne=!gr.className||typeof gr.className=="string"?ae()(gr.className,he||`${He}-open`):gr.className,[we,Vt]=$(He,!jt),Ue=te(He,U),it=Ue.arrowStyle,Rr=Object.assign(Object.assign({},ee),Ue.overlayStyle),Tt=ae()(F,{[`${He}-rtl`]:Z==="rtl"},Ue.className,At,Vt);return we(le.createElement(Re.Z,Object.assign({},ze,{showArrow:Ar,placement:Ge,mouseEnterDelay:ut,mouseLeaveDelay:$e,prefixCls:He,overlayClassName:Tt,overlayStyle:Object.assign(Object.assign({},it),Je),getTooltipContainer:Te||ve||Ce,ref:x,builtinPlacements:re,overlay:Be,visible:Dt,onVisibleChange:Q,afterVisibleChange:Xe!=null?Xe:tt,overlayInnerStyle:Rr,arrowContent:le.createElement("span",{className:`${He}-arrow-content`}),motion:{motionName:(0,g.m)(vt,"zoom-big-fast",se.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!nt}),Dt?(0,T.Tm)(lr,{className:ne}):lr))});_e._InternalPanelDoNotUseOrYouWillBeFired=G;var Le=_e},17574:function(tn,Mt,E){"use strict";E.d(Mt,{default:function(){return U}});var le=E(54844),Fe=E(80702),ae=E(52671),Re=E(8657),K=E(72308),g=E(59301),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},T=R,l=E(7657),d=function(de,Xe){return g.createElement(l.Z,(0,K.Z)({},de,{ref:Xe,icon:T}))},N=g.forwardRef(d),v=N,m=E(92310),b=E.n(m),I=E(35654),L=E(71430),z=E(36355),P=E(56082),$=E(62892),J=E(20648);const te=4;function H(ee){const{dropPosition:de,dropLevelOffset:Xe,prefixCls:tt,indent:nt,direction:_t="ltr"}=ee,Xt=_t==="ltr"?"left":"right",zt=_t==="ltr"?"right":"left",Ze={[Xt]:-Xe*nt+te,[zt]:0};switch(de){case-1:Ze.top=-3;break;case 1:Ze.bottom=-3;break;default:Ze.bottom=-3,Ze[Xt]=nt+te;break}return g.createElement("div",{style:Ze,className:`${tt}-drop-indicator`})}var G=E(71997),q=g.forwardRef((ee,de)=>{const{getPrefixCls:Xe,direction:tt,virtual:nt,tree:_t}=g.useContext(z.E_),{prefixCls:Xt,className:zt,showIcon:Ze=!1,showLine:fr,switcherIcon:yr,blockNode:Ar=!1,children:vr,checkable:Ce=!1,selectable:It=!0,draggable:Z,motion:x,style:y}=ee,k=Xe("tree",Xt),fe=Xe(),W=x!=null?x:Object.assign(Object.assign({},(0,$.Z)(fe)),{motionAppear:!1}),Q=Object.assign(Object.assign({},ee),{checkable:Ce,selectable:It,showIcon:Ze,motion:W,blockNode:Ar,showLine:!!fr,dropIndicatorRender:H}),[re,Se]=(0,J.ZP)(k),Be=g.useMemo(()=>{if(!Z)return!1;let Ge={};switch(typeof Z){case"function":Ge.nodeDraggable=Z;break;case"object":Ge=Object.assign({},Z);break;default:break}return Ge.icon!==!1&&(Ge.icon=Ge.icon||g.createElement(P.Z,null)),Ge},[Z]),Te=Ge=>g.createElement(G.Z,{prefixCls:k,switcherIcon:yr,treeNodeProps:Ge,showLine:fr});return re(g.createElement(le.Z,Object.assign({itemHeight:20,ref:de,virtual:nt},Q,{style:Object.assign(Object.assign({},_t==null?void 0:_t.style),y),prefixCls:k,className:b()({[`${k}-icon-hide`]:!Ze,[`${k}-block-node`]:Ar,[`${k}-unselectable`]:!It,[`${k}-rtl`]:tt==="rtl"},_t==null?void 0:_t.className,zt,Se),direction:tt,checkable:Ce&&g.createElement("span",{className:`${k}-checkbox-inner`}),selectable:It,switcherIcon:Te,draggable:Be}),vr))}),ye;(function(ee){ee[ee.None=0]="None",ee[ee.Start=1]="Start",ee[ee.End=2]="End"})(ye||(ye={}));function _e(ee,de){function Xe(tt){const{key:nt,children:_t}=tt;de(nt,tt)!==!1&&_e(_t||[],de)}ee.forEach(Xe)}function Le(ee){let{treeData:de,expandedKeys:Xe,startKey:tt,endKey:nt}=ee;const _t=[];let Xt=ye.None;if(tt&&tt===nt)return[tt];if(!tt||!nt)return[];function zt(Ze){return Ze===tt||Ze===nt}return _e(de,Ze=>{if(Xt===ye.End)return!1;if(zt(Ze)){if(_t.push(Ze),Xt===ye.None)Xt=ye.Start;else if(Xt===ye.Start)return Xt=ye.End,!1}else Xt===ye.Start&&_t.push(Ze);return Xe.includes(Ze)}),_t}function se(ee,de){const Xe=(0,Fe.Z)(de),tt=[];return _e(ee,(nt,_t)=>{const Xt=Xe.indexOf(nt);return Xt!==-1&&(tt.push(_t),Xe.splice(Xt,1)),!!Xe.length}),tt}var be=function(ee,de){var Xe={};for(var tt in ee)Object.prototype.hasOwnProperty.call(ee,tt)&&de.indexOf(tt)<0&&(Xe[tt]=ee[tt]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,tt=Object.getOwnPropertySymbols(ee);nt<tt.length;nt++)de.indexOf(tt[nt])<0&&Object.prototype.propertyIsEnumerable.call(ee,tt[nt])&&(Xe[tt[nt]]=ee[tt[nt]]);return Xe};function O(ee){const{isLeaf:de,expanded:Xe}=ee;return de?g.createElement(ae.Z,null):Xe?g.createElement(Re.Z,null):g.createElement(v,null)}function Ee(ee){let{treeData:de,children:Xe}=ee;return de||(0,L.zn)(Xe)}const ue=(ee,de)=>{var{defaultExpandAll:Xe,defaultExpandParent:tt,defaultExpandedKeys:nt}=ee,_t=be(ee,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Xt=g.useRef(),zt=g.useRef(),Ze=()=>{const{keyEntities:Be}=(0,L.I8)(Ee(_t));let Te;return Xe?Te=Object.keys(Be):tt?Te=(0,I.r7)(_t.expandedKeys||nt||[],Be):Te=_t.expandedKeys||nt,Te},[fr,yr]=g.useState(_t.selectedKeys||_t.defaultSelectedKeys||[]),[Ar,vr]=g.useState(()=>Ze());g.useEffect(()=>{"selectedKeys"in _t&&yr(_t.selectedKeys)},[_t.selectedKeys]),g.useEffect(()=>{"expandedKeys"in _t&&vr(_t.expandedKeys)},[_t.expandedKeys]);const Ce=(Be,Te)=>{var Ge;return"expandedKeys"in _t||vr(Be),(Ge=_t.onExpand)===null||Ge===void 0?void 0:Ge.call(_t,Be,Te)},It=(Be,Te)=>{var Ge;const{multiple:ut}=_t,{node:$e,nativeEvent:Je}=Te,{key:At=""}=$e,ze=Ee(_t),He=Object.assign(Object.assign({},Te),{selected:!0}),vt=(Je==null?void 0:Je.ctrlKey)||(Je==null?void 0:Je.metaKey),jt=Je==null?void 0:Je.shiftKey;let Dt;ut&&vt?(Dt=Be,Xt.current=At,zt.current=Dt,He.selectedNodes=se(ze,Dt)):ut&&jt?(Dt=Array.from(new Set([].concat((0,Fe.Z)(zt.current||[]),(0,Fe.Z)(Le({treeData:ze,expandedKeys:Ar,startKey:At,endKey:Xt.current}))))),He.selectedNodes=se(ze,Dt)):(Dt=[At],Xt.current=At,zt.current=Dt,He.selectedNodes=se(ze,Dt)),(Ge=_t.onSelect)===null||Ge===void 0||Ge.call(_t,Dt,He),"selectedKeys"in _t||yr(Dt)},{getPrefixCls:Z,direction:x}=g.useContext(z.E_),{prefixCls:y,className:k,showIcon:fe=!0,expandAction:W="click"}=_t,Q=be(_t,["prefixCls","className","showIcon","expandAction"]),re=Z("tree",y),Se=b()(`${re}-directory`,{[`${re}-directory-rtl`]:x==="rtl"},k);return g.createElement(q,Object.assign({icon:O,ref:de,blockNode:!0},Q,{showIcon:fe,expandAction:W,prefixCls:re,className:Se,expandedKeys:Ar,selectedKeys:fr,onSelect:It,onExpand:Ce}))};var ve=g.forwardRef(ue);const F=q;F.DirectoryTree=ve,F.TreeNode=le.O;var U=F},20648:function(tn,Mt,E){"use strict";E.d(Mt,{TM:function(){return m},Yk:function(){return v}});var le=E(93083),Fe=E(98447),ae=E(17313),Re=E(8378),K=E(37613),g=E(83116);const R=new le.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),T=(b,I)=>({[`.${b}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${I.motionDurationSlow}`}}}),l=(b,I)=>({[`.${b}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:I.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${I.lineWidthBold}px solid ${I.colorPrimary}`,borderRadius:"50%",content:'""'}}}),d=(b,I)=>{const{treeCls:L,treeNodeCls:z,treeNodePadding:P,titleHeight:$,nodeSelectedBg:J,nodeHoverBg:te}=I,H=I.paddingXS;return{[L]:Object.assign(Object.assign({},(0,ae.Wf)(I)),{background:I.colorBgContainer,borderRadius:I.borderRadius,transition:`background-color ${I.motionDurationSlow}`,[`&${L}-rtl`]:{[`${L}-switcher`]:{"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${L}-active-focused)`]:Object.assign({},(0,ae.oN)(I)),[`${L}-list-holder-inner`]:{alignItems:"flex-start"},[`&${L}-block-node`]:{[`${L}-list-holder-inner`]:{alignItems:"stretch",[`${L}-node-content-wrapper`]:{flex:"auto"},[`${z}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:P,insetInlineStart:0,border:`1px solid ${I.colorPrimary}`,opacity:0,animationName:R,animationDuration:I.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${z}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${P}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${L}-node-content-wrapper`]:{color:I.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${L}-node-content-wrapper`]:Object.assign({},(0,ae.oN)(I)),[`&:not(${z}-disabled).filter-node ${L}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${L}-draggable-icon`]:{flexShrink:0,width:$,lineHeight:`${$}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${I.motionDurationSlow}`,[`${z}:hover &`]:{opacity:.45}},[`&${z}-disabled`]:{[`${L}-draggable-icon`]:{visibility:"hidden"}}}},[`${L}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:$}},[`${L}-draggable-icon`]:{visibility:"hidden"},[`${L}-switcher`]:Object.assign(Object.assign({},T(b,I)),{position:"relative",flex:"none",alignSelf:"stretch",width:$,margin:0,lineHeight:`${$}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:I.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$/2,bottom:-P,marginInlineStart:-1,borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:$/2*.8,height:$/2,borderBottom:`1px solid ${I.colorBorder}`,content:'""'}}}),[`${L}-checkbox`]:{top:"initial",marginInlineEnd:H},[`${L}-node-content-wrapper, ${L}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:$,margin:0,padding:`0 ${I.paddingXS/2}px`,color:"inherit",lineHeight:`${$}px`,background:"transparent",borderRadius:I.borderRadius,cursor:"pointer",transition:`all ${I.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:te},[`&${L}-node-selected`]:{backgroundColor:J},[`${L}-iconEle`]:{display:"inline-block",width:$,height:$,lineHeight:`${$}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${L}-unselectable ${L}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${L}-node-content-wrapper`]:Object.assign({lineHeight:`${$}px`,userSelect:"none"},l(b,I)),[`${z}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${I.colorPrimary}`}},"&-show-line":{[`${L}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:$/2,bottom:-P,borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${L}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${z}-leaf-last`]:{[`${L}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${$/2}px !important`}}}}})}},N=b=>{const{treeCls:I,treeNodeCls:L,treeNodePadding:z,directoryNodeSelectedBg:P,directoryNodeSelectedColor:$}=b;return{[`${I}${I}-directory`]:{[L]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:z,insetInlineStart:0,transition:`background-color ${b.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:b.controlItemBgHover}},"> *":{zIndex:1},[`${I}-switcher`]:{transition:`color ${b.motionDurationMid}`},[`${I}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${I}-node-selected`]:{color:$,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:P},[`${I}-switcher`]:{color:$},[`${I}-node-content-wrapper`]:{color:$,background:"transparent"}}}}}},v=(b,I)=>{const L=`.${b}`,z=`${L}-treenode`,P=I.paddingXS/2,$=(0,K.TS)(I,{treeCls:L,treeNodeCls:z,treeNodePadding:P});return[d(b,$),N($)]},m=b=>{const{controlHeightSM:I}=b;return{titleHeight:I,nodeHoverBg:b.controlItemBgHover,nodeSelectedBg:b.controlItemBgActive}};Mt.ZP=(0,g.Z)("Tree",(b,I)=>{let{prefixCls:L}=I;return[{[b.componentCls]:(0,Fe.C2)(`${L}-checkbox`,b)},v(L,b),(0,Re.Z)(b)]},b=>{const{colorTextLightSolid:I,colorPrimary:L}=b;return Object.assign(Object.assign({},m(b)),{directoryNodeSelectedColor:I,directoryNodeSelectedBg:L})})},71997:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return z}});var le=E(72308),Fe=E(59301),ae={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Re=ae,K=E(7657),g=function($,J){return Fe.createElement(K.Z,(0,le.Z)({},$,{ref:J,icon:Re}))},R=Fe.forwardRef(g),T=R,l=E(52671),d=E(58617),N=E(15075),v=E(43531),m=E(92310),b=E.n(m),I=E(92343),z=P=>{const{prefixCls:$,switcherIcon:J,treeNodeProps:te,showLine:H}=P,{isLeaf:G,expanded:ce,loading:q}=te;if(q)return Fe.createElement(d.Z,{className:`${$}-switcher-loading-icon`});let ye;if(H&&typeof H=="object"&&(ye=H.showLeafIcon),G){if(!H)return null;if(typeof ye!="boolean"&&ye){const se=typeof ye=="function"?ye(te):ye,be=`${$}-switcher-line-custom-icon`;return(0,I.l$)(se)?(0,I.Tm)(se,{className:b()(se.props.className||"",be)}):se}return ye?Fe.createElement(l.Z,{className:`${$}-switcher-line-icon`}):Fe.createElement("span",{className:`${$}-switcher-leaf-line`})}const _e=`${$}-switcher-icon`,Le=typeof J=="function"?J(te):J;return(0,I.l$)(Le)?(0,I.Tm)(Le,{className:b()(Le.props.className||"",_e)}):Le!==void 0?Le:H?ce?Fe.createElement(N.Z,{className:`${$}-switcher-line-icon`}):Fe.createElement(v.Z,{className:`${$}-switcher-line-icon`}):Fe.createElement(T,{className:_e})}},86251:function(tn,Mt){"use strict";Mt.byteLength=R,Mt.toByteArray=l,Mt.fromByteArray=v;for(var E=[],le=[],Fe=typeof Uint8Array!="undefined"?Uint8Array:Array,ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Re=0,K=ae.length;Re<K;++Re)E[Re]=ae[Re],le[ae.charCodeAt(Re)]=Re;le[45]=62,le[95]=63;function g(m){var b=m.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=m.indexOf("=");I===-1&&(I=b);var L=I===b?0:4-I%4;return[I,L]}function R(m){var b=g(m),I=b[0],L=b[1];return(I+L)*3/4-L}function T(m,b,I){return(b+I)*3/4-I}function l(m){var b,I=g(m),L=I[0],z=I[1],P=new Fe(T(m,L,z)),$=0,J=z>0?L-4:L,te;for(te=0;te<J;te+=4)b=le[m.charCodeAt(te)]<<18|le[m.charCodeAt(te+1)]<<12|le[m.charCodeAt(te+2)]<<6|le[m.charCodeAt(te+3)],P[$++]=b>>16&255,P[$++]=b>>8&255,P[$++]=b&255;return z===2&&(b=le[m.charCodeAt(te)]<<2|le[m.charCodeAt(te+1)]>>4,P[$++]=b&255),z===1&&(b=le[m.charCodeAt(te)]<<10|le[m.charCodeAt(te+1)]<<4|le[m.charCodeAt(te+2)]>>2,P[$++]=b>>8&255,P[$++]=b&255),P}function d(m){return E[m>>18&63]+E[m>>12&63]+E[m>>6&63]+E[m&63]}function N(m,b,I){for(var L,z=[],P=b;P<I;P+=3)L=(m[P]<<16&16711680)+(m[P+1]<<8&65280)+(m[P+2]&255),z.push(d(L));return z.join("")}function v(m){for(var b,I=m.length,L=I%3,z=[],P=16383,$=0,J=I-L;$<J;$+=P)z.push(N(m,$,$+P>J?J:$+P));return L===1?(b=m[I-1],z.push(E[b>>2]+E[b<<4&63]+"==")):L===2&&(b=(m[I-2]<<8)+m[I-1],z.push(E[b>>10]+E[b>>4&63]+E[b<<2&63]+"=")),z.join("")}},19208:function(tn,Mt,E){"use strict";var le;var Fe=E(86251),ae=E(67467),Re=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Mt.lW=T,le=$,Mt.h2=50;var K=2147483647;le=K,T.TYPED_ARRAY_SUPPORT=g(),!T.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function g(){try{var Z=new Uint8Array(1),x={foo:function(){return 42}};return Object.setPrototypeOf(x,Uint8Array.prototype),Object.setPrototypeOf(Z,x),Z.foo()===42}catch(y){return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.buffer}}),Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(T.isBuffer(this))return this.byteOffset}});function R(Z){if(Z>K)throw new RangeError('The value "'+Z+'" is invalid for option "size"');var x=new Uint8Array(Z);return Object.setPrototypeOf(x,T.prototype),x}function T(Z,x,y){if(typeof Z=="number"){if(typeof x=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(Z)}return l(Z,x,y)}T.poolSize=8192;function l(Z,x,y){if(typeof Z=="string")return m(Z,x);if(ArrayBuffer.isView(Z))return I(Z);if(Z==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Z);if(vr(Z,ArrayBuffer)||Z&&vr(Z.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(vr(Z,SharedArrayBuffer)||Z&&vr(Z.buffer,SharedArrayBuffer)))return L(Z,x,y);if(typeof Z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var k=Z.valueOf&&Z.valueOf();if(k!=null&&k!==Z)return T.from(k,x,y);var fe=z(Z);if(fe)return fe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Z[Symbol.toPrimitive]=="function")return T.from(Z[Symbol.toPrimitive]("string"),x,y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Z)}T.from=function(Z,x,y){return l(Z,x,y)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function d(Z){if(typeof Z!="number")throw new TypeError('"size" argument must be of type number');if(Z<0)throw new RangeError('The value "'+Z+'" is invalid for option "size"')}function N(Z,x,y){return d(Z),Z<=0?R(Z):x!==void 0?typeof y=="string"?R(Z).fill(x,y):R(Z).fill(x):R(Z)}T.alloc=function(Z,x,y){return N(Z,x,y)};function v(Z){return d(Z),R(Z<0?0:P(Z)|0)}T.allocUnsafe=function(Z){return v(Z)},T.allocUnsafeSlow=function(Z){return v(Z)};function m(Z,x){if((typeof x!="string"||x==="")&&(x="utf8"),!T.isEncoding(x))throw new TypeError("Unknown encoding: "+x);var y=J(Z,x)|0,k=R(y),fe=k.write(Z,x);return fe!==y&&(k=k.slice(0,fe)),k}function b(Z){for(var x=Z.length<0?0:P(Z.length)|0,y=R(x),k=0;k<x;k+=1)y[k]=Z[k]&255;return y}function I(Z){if(vr(Z,Uint8Array)){var x=new Uint8Array(Z);return L(x.buffer,x.byteOffset,x.byteLength)}return b(Z)}function L(Z,x,y){if(x<0||Z.byteLength<x)throw new RangeError('"offset" is outside of buffer bounds');if(Z.byteLength<x+(y||0))throw new RangeError('"length" is outside of buffer bounds');var k;return x===void 0&&y===void 0?k=new Uint8Array(Z):y===void 0?k=new Uint8Array(Z,x):k=new Uint8Array(Z,x,y),Object.setPrototypeOf(k,T.prototype),k}function z(Z){if(T.isBuffer(Z)){var x=P(Z.length)|0,y=R(x);return y.length===0||Z.copy(y,0,0,x),y}if(Z.length!==void 0)return typeof Z.length!="number"||Ce(Z.length)?R(0):b(Z);if(Z.type==="Buffer"&&Array.isArray(Z.data))return b(Z.data)}function P(Z){if(Z>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return Z|0}function $(Z){return+Z!=Z&&(Z=0),T.alloc(+Z)}T.isBuffer=function(x){return x!=null&&x._isBuffer===!0&&x!==T.prototype},T.compare=function(x,y){if(vr(x,Uint8Array)&&(x=T.from(x,x.offset,x.byteLength)),vr(y,Uint8Array)&&(y=T.from(y,y.offset,y.byteLength)),!T.isBuffer(x)||!T.isBuffer(y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(x===y)return 0;for(var k=x.length,fe=y.length,W=0,Q=Math.min(k,fe);W<Q;++W)if(x[W]!==y[W]){k=x[W],fe=y[W];break}return k<fe?-1:fe<k?1:0},T.isEncoding=function(x){switch(String(x).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},T.concat=function(x,y){if(!Array.isArray(x))throw new TypeError('"list" argument must be an Array of Buffers');if(x.length===0)return T.alloc(0);var k;if(y===void 0)for(y=0,k=0;k<x.length;++k)y+=x[k].length;var fe=T.allocUnsafe(y),W=0;for(k=0;k<x.length;++k){var Q=x[k];if(vr(Q,Uint8Array))W+Q.length>fe.length?T.from(Q).copy(fe,W):Uint8Array.prototype.set.call(fe,Q,W);else if(T.isBuffer(Q))Q.copy(fe,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=Q.length}return fe};function J(Z,x){if(T.isBuffer(Z))return Z.length;if(ArrayBuffer.isView(Z)||vr(Z,ArrayBuffer))return Z.byteLength;if(typeof Z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Z);var y=Z.length,k=arguments.length>2&&arguments[2]===!0;if(!k&&y===0)return 0;for(var fe=!1;;)switch(x){case"ascii":case"latin1":case"binary":return y;case"utf8":case"utf-8":return zt(Z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y*2;case"hex":return y>>>1;case"base64":return yr(Z).length;default:if(fe)return k?-1:zt(Z).length;x=(""+x).toLowerCase(),fe=!0}}T.byteLength=J;function te(Z,x,y){var k=!1;if((x===void 0||x<0)&&(x=0),x>this.length||((y===void 0||y>this.length)&&(y=this.length),y<=0)||(y>>>=0,x>>>=0,y<=x))return"";for(Z||(Z="utf8");;)switch(Z){case"hex":return F(this,x,y);case"utf8":case"utf-8":return O(this,x,y);case"ascii":return he(this,x,y);case"latin1":case"binary":return ve(this,x,y);case"base64":return be(this,x,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,x,y);default:if(k)throw new TypeError("Unknown encoding: "+Z);Z=(Z+"").toLowerCase(),k=!0}}T.prototype._isBuffer=!0;function H(Z,x,y){var k=Z[x];Z[x]=Z[y],Z[y]=k}T.prototype.swap16=function(){var x=this.length;if(x%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var y=0;y<x;y+=2)H(this,y,y+1);return this},T.prototype.swap32=function(){var x=this.length;if(x%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var y=0;y<x;y+=4)H(this,y,y+3),H(this,y+1,y+2);return this},T.prototype.swap64=function(){var x=this.length;if(x%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var y=0;y<x;y+=8)H(this,y,y+7),H(this,y+1,y+6),H(this,y+2,y+5),H(this,y+3,y+4);return this},T.prototype.toString=function(){var x=this.length;return x===0?"":arguments.length===0?O(this,0,x):te.apply(this,arguments)},T.prototype.toLocaleString=T.prototype.toString,T.prototype.equals=function(x){if(!T.isBuffer(x))throw new TypeError("Argument must be a Buffer");return this===x?!0:T.compare(this,x)===0},T.prototype.inspect=function(){var x="",y=Mt.h2;return x=this.toString("hex",0,y).replace(/(.{2})/g,"$1 ").trim(),this.length>y&&(x+=" ... "),"<Buffer "+x+">"},Re&&(T.prototype[Re]=T.prototype.inspect),T.prototype.compare=function(x,y,k,fe,W){if(vr(x,Uint8Array)&&(x=T.from(x,x.offset,x.byteLength)),!T.isBuffer(x))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof x);if(y===void 0&&(y=0),k===void 0&&(k=x?x.length:0),fe===void 0&&(fe=0),W===void 0&&(W=this.length),y<0||k>x.length||fe<0||W>this.length)throw new RangeError("out of range index");if(fe>=W&&y>=k)return 0;if(fe>=W)return-1;if(y>=k)return 1;if(y>>>=0,k>>>=0,fe>>>=0,W>>>=0,this===x)return 0;for(var Q=W-fe,re=k-y,Se=Math.min(Q,re),Be=this.slice(fe,W),Te=x.slice(y,k),Ge=0;Ge<Se;++Ge)if(Be[Ge]!==Te[Ge]){Q=Be[Ge],re=Te[Ge];break}return Q<re?-1:re<Q?1:0};function G(Z,x,y,k,fe){if(Z.length===0)return-1;if(typeof y=="string"?(k=y,y=0):y>2147483647?y=2147483647:y<-2147483648&&(y=-2147483648),y=+y,Ce(y)&&(y=fe?0:Z.length-1),y<0&&(y=Z.length+y),y>=Z.length){if(fe)return-1;y=Z.length-1}else if(y<0)if(fe)y=0;else return-1;if(typeof x=="string"&&(x=T.from(x,k)),T.isBuffer(x))return x.length===0?-1:ce(Z,x,y,k,fe);if(typeof x=="number")return x=x&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(Z,x,y):Uint8Array.prototype.lastIndexOf.call(Z,x,y):ce(Z,[x],y,k,fe);throw new TypeError("val must be string, number or Buffer")}function ce(Z,x,y,k,fe){var W=1,Q=Z.length,re=x.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(Z.length<2||x.length<2)return-1;W=2,Q/=2,re/=2,y/=2}function Se($e,Je){return W===1?$e[Je]:$e.readUInt16BE(Je*W)}var Be;if(fe){var Te=-1;for(Be=y;Be<Q;Be++)if(Se(Z,Be)===Se(x,Te===-1?0:Be-Te)){if(Te===-1&&(Te=Be),Be-Te+1===re)return Te*W}else Te!==-1&&(Be-=Be-Te),Te=-1}else for(y+re>Q&&(y=Q-re),Be=y;Be>=0;Be--){for(var Ge=!0,ut=0;ut<re;ut++)if(Se(Z,Be+ut)!==Se(x,ut)){Ge=!1;break}if(Ge)return Be}return-1}T.prototype.includes=function(x,y,k){return this.indexOf(x,y,k)!==-1},T.prototype.indexOf=function(x,y,k){return G(this,x,y,k,!0)},T.prototype.lastIndexOf=function(x,y,k){return G(this,x,y,k,!1)};function q(Z,x,y,k){y=Number(y)||0;var fe=Z.length-y;k?(k=Number(k),k>fe&&(k=fe)):k=fe;var W=x.length;k>W/2&&(k=W/2);for(var Q=0;Q<k;++Q){var re=parseInt(x.substr(Q*2,2),16);if(Ce(re))return Q;Z[y+Q]=re}return Q}function ye(Z,x,y,k){return Ar(zt(x,Z.length-y),Z,y,k)}function _e(Z,x,y,k){return Ar(Ze(x),Z,y,k)}function Le(Z,x,y,k){return Ar(yr(x),Z,y,k)}function se(Z,x,y,k){return Ar(fr(x,Z.length-y),Z,y,k)}T.prototype.write=function(x,y,k,fe){if(y===void 0)fe="utf8",k=this.length,y=0;else if(k===void 0&&typeof y=="string")fe=y,k=this.length,y=0;else if(isFinite(y))y=y>>>0,isFinite(k)?(k=k>>>0,fe===void 0&&(fe="utf8")):(fe=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-y;if((k===void 0||k>W)&&(k=W),x.length>0&&(k<0||y<0)||y>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Q=!1;;)switch(fe){case"hex":return q(this,x,y,k);case"utf8":case"utf-8":return ye(this,x,y,k);case"ascii":case"latin1":case"binary":return _e(this,x,y,k);case"base64":return Le(this,x,y,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,x,y,k);default:if(Q)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Q=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function be(Z,x,y){return x===0&&y===Z.length?Fe.fromByteArray(Z):Fe.fromByteArray(Z.slice(x,y))}function O(Z,x,y){y=Math.min(Z.length,y);for(var k=[],fe=x;fe<y;){var W=Z[fe],Q=null,re=W>239?4:W>223?3:W>191?2:1;if(fe+re<=y){var Se,Be,Te,Ge;switch(re){case 1:W<128&&(Q=W);break;case 2:Se=Z[fe+1],(Se&192)===128&&(Ge=(W&31)<<6|Se&63,Ge>127&&(Q=Ge));break;case 3:Se=Z[fe+1],Be=Z[fe+2],(Se&192)===128&&(Be&192)===128&&(Ge=(W&15)<<12|(Se&63)<<6|Be&63,Ge>2047&&(Ge<55296||Ge>57343)&&(Q=Ge));break;case 4:Se=Z[fe+1],Be=Z[fe+2],Te=Z[fe+3],(Se&192)===128&&(Be&192)===128&&(Te&192)===128&&(Ge=(W&15)<<18|(Se&63)<<12|(Be&63)<<6|Te&63,Ge>65535&&Ge<1114112&&(Q=Ge))}}Q===null?(Q=65533,re=1):Q>65535&&(Q-=65536,k.push(Q>>>10&1023|55296),Q=56320|Q&1023),k.push(Q),fe+=re}return ue(k)}var Ee=4096;function ue(Z){var x=Z.length;if(x<=Ee)return String.fromCharCode.apply(String,Z);for(var y="",k=0;k<x;)y+=String.fromCharCode.apply(String,Z.slice(k,k+=Ee));return y}function he(Z,x,y){var k="";y=Math.min(Z.length,y);for(var fe=x;fe<y;++fe)k+=String.fromCharCode(Z[fe]&127);return k}function ve(Z,x,y){var k="";y=Math.min(Z.length,y);for(var fe=x;fe<y;++fe)k+=String.fromCharCode(Z[fe]);return k}function F(Z,x,y){var k=Z.length;(!x||x<0)&&(x=0),(!y||y<0||y>k)&&(y=k);for(var fe="",W=x;W<y;++W)fe+=It[Z[W]];return fe}function U(Z,x,y){for(var k=Z.slice(x,y),fe="",W=0;W<k.length-1;W+=2)fe+=String.fromCharCode(k[W]+k[W+1]*256);return fe}T.prototype.slice=function(x,y){var k=this.length;x=~~x,y=y===void 0?k:~~y,x<0?(x+=k,x<0&&(x=0)):x>k&&(x=k),y<0?(y+=k,y<0&&(y=0)):y>k&&(y=k),y<x&&(y=x);var fe=this.subarray(x,y);return Object.setPrototypeOf(fe,T.prototype),fe};function ee(Z,x,y){if(Z%1!==0||Z<0)throw new RangeError("offset is not uint");if(Z+x>y)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(x,y,k){x=x>>>0,y=y>>>0,k||ee(x,y,this.length);for(var fe=this[x],W=1,Q=0;++Q<y&&(W*=256);)fe+=this[x+Q]*W;return fe},T.prototype.readUintBE=T.prototype.readUIntBE=function(x,y,k){x=x>>>0,y=y>>>0,k||ee(x,y,this.length);for(var fe=this[x+--y],W=1;y>0&&(W*=256);)fe+=this[x+--y]*W;return fe},T.prototype.readUint8=T.prototype.readUInt8=function(x,y){return x=x>>>0,y||ee(x,1,this.length),this[x]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(x,y){return x=x>>>0,y||ee(x,2,this.length),this[x]|this[x+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(x,y){return x=x>>>0,y||ee(x,2,this.length),this[x]<<8|this[x+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(x,y){return x=x>>>0,y||ee(x,4,this.length),(this[x]|this[x+1]<<8|this[x+2]<<16)+this[x+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(x,y){return x=x>>>0,y||ee(x,4,this.length),this[x]*16777216+(this[x+1]<<16|this[x+2]<<8|this[x+3])},T.prototype.readIntLE=function(x,y,k){x=x>>>0,y=y>>>0,k||ee(x,y,this.length);for(var fe=this[x],W=1,Q=0;++Q<y&&(W*=256);)fe+=this[x+Q]*W;return W*=128,fe>=W&&(fe-=Math.pow(2,8*y)),fe},T.prototype.readIntBE=function(x,y,k){x=x>>>0,y=y>>>0,k||ee(x,y,this.length);for(var fe=y,W=1,Q=this[x+--fe];fe>0&&(W*=256);)Q+=this[x+--fe]*W;return W*=128,Q>=W&&(Q-=Math.pow(2,8*y)),Q},T.prototype.readInt8=function(x,y){return x=x>>>0,y||ee(x,1,this.length),this[x]&128?(255-this[x]+1)*-1:this[x]},T.prototype.readInt16LE=function(x,y){x=x>>>0,y||ee(x,2,this.length);var k=this[x]|this[x+1]<<8;return k&32768?k|4294901760:k},T.prototype.readInt16BE=function(x,y){x=x>>>0,y||ee(x,2,this.length);var k=this[x+1]|this[x]<<8;return k&32768?k|4294901760:k},T.prototype.readInt32LE=function(x,y){return x=x>>>0,y||ee(x,4,this.length),this[x]|this[x+1]<<8|this[x+2]<<16|this[x+3]<<24},T.prototype.readInt32BE=function(x,y){return x=x>>>0,y||ee(x,4,this.length),this[x]<<24|this[x+1]<<16|this[x+2]<<8|this[x+3]},T.prototype.readFloatLE=function(x,y){return x=x>>>0,y||ee(x,4,this.length),ae.read(this,x,!0,23,4)},T.prototype.readFloatBE=function(x,y){return x=x>>>0,y||ee(x,4,this.length),ae.read(this,x,!1,23,4)},T.prototype.readDoubleLE=function(x,y){return x=x>>>0,y||ee(x,8,this.length),ae.read(this,x,!0,52,8)},T.prototype.readDoubleBE=function(x,y){return x=x>>>0,y||ee(x,8,this.length),ae.read(this,x,!1,52,8)};function de(Z,x,y,k,fe,W){if(!T.isBuffer(Z))throw new TypeError('"buffer" argument must be a Buffer instance');if(x>fe||x<W)throw new RangeError('"value" argument is out of bounds');if(y+k>Z.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(x,y,k,fe){if(x=+x,y=y>>>0,k=k>>>0,!fe){var W=Math.pow(2,8*k)-1;de(this,x,y,k,W,0)}var Q=1,re=0;for(this[y]=x&255;++re<k&&(Q*=256);)this[y+re]=x/Q&255;return y+k},T.prototype.writeUintBE=T.prototype.writeUIntBE=function(x,y,k,fe){if(x=+x,y=y>>>0,k=k>>>0,!fe){var W=Math.pow(2,8*k)-1;de(this,x,y,k,W,0)}var Q=k-1,re=1;for(this[y+Q]=x&255;--Q>=0&&(re*=256);)this[y+Q]=x/re&255;return y+k},T.prototype.writeUint8=T.prototype.writeUInt8=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,1,255,0),this[y]=x&255,y+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,2,65535,0),this[y]=x&255,this[y+1]=x>>>8,y+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,2,65535,0),this[y]=x>>>8,this[y+1]=x&255,y+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,4,4294967295,0),this[y+3]=x>>>24,this[y+2]=x>>>16,this[y+1]=x>>>8,this[y]=x&255,y+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,4,4294967295,0),this[y]=x>>>24,this[y+1]=x>>>16,this[y+2]=x>>>8,this[y+3]=x&255,y+4},T.prototype.writeIntLE=function(x,y,k,fe){if(x=+x,y=y>>>0,!fe){var W=Math.pow(2,8*k-1);de(this,x,y,k,W-1,-W)}var Q=0,re=1,Se=0;for(this[y]=x&255;++Q<k&&(re*=256);)x<0&&Se===0&&this[y+Q-1]!==0&&(Se=1),this[y+Q]=(x/re>>0)-Se&255;return y+k},T.prototype.writeIntBE=function(x,y,k,fe){if(x=+x,y=y>>>0,!fe){var W=Math.pow(2,8*k-1);de(this,x,y,k,W-1,-W)}var Q=k-1,re=1,Se=0;for(this[y+Q]=x&255;--Q>=0&&(re*=256);)x<0&&Se===0&&this[y+Q+1]!==0&&(Se=1),this[y+Q]=(x/re>>0)-Se&255;return y+k},T.prototype.writeInt8=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,1,127,-128),x<0&&(x=255+x+1),this[y]=x&255,y+1},T.prototype.writeInt16LE=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,2,32767,-32768),this[y]=x&255,this[y+1]=x>>>8,y+2},T.prototype.writeInt16BE=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,2,32767,-32768),this[y]=x>>>8,this[y+1]=x&255,y+2},T.prototype.writeInt32LE=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,4,2147483647,-2147483648),this[y]=x&255,this[y+1]=x>>>8,this[y+2]=x>>>16,this[y+3]=x>>>24,y+4},T.prototype.writeInt32BE=function(x,y,k){return x=+x,y=y>>>0,k||de(this,x,y,4,2147483647,-2147483648),x<0&&(x=4294967295+x+1),this[y]=x>>>24,this[y+1]=x>>>16,this[y+2]=x>>>8,this[y+3]=x&255,y+4};function Xe(Z,x,y,k,fe,W){if(y+k>Z.length)throw new RangeError("Index out of range");if(y<0)throw new RangeError("Index out of range")}function tt(Z,x,y,k,fe){return x=+x,y=y>>>0,fe||Xe(Z,x,y,4,34028234663852886e22,-34028234663852886e22),ae.write(Z,x,y,k,23,4),y+4}T.prototype.writeFloatLE=function(x,y,k){return tt(this,x,y,!0,k)},T.prototype.writeFloatBE=function(x,y,k){return tt(this,x,y,!1,k)};function nt(Z,x,y,k,fe){return x=+x,y=y>>>0,fe||Xe(Z,x,y,8,17976931348623157e292,-17976931348623157e292),ae.write(Z,x,y,k,52,8),y+8}T.prototype.writeDoubleLE=function(x,y,k){return nt(this,x,y,!0,k)},T.prototype.writeDoubleBE=function(x,y,k){return nt(this,x,y,!1,k)},T.prototype.copy=function(x,y,k,fe){if(!T.isBuffer(x))throw new TypeError("argument should be a Buffer");if(k||(k=0),!fe&&fe!==0&&(fe=this.length),y>=x.length&&(y=x.length),y||(y=0),fe>0&&fe<k&&(fe=k),fe===k||x.length===0||this.length===0)return 0;if(y<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),x.length-y<fe-k&&(fe=x.length-y+k);var W=fe-k;return this===x&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(y,k,fe):Uint8Array.prototype.set.call(x,this.subarray(k,fe),y),W},T.prototype.fill=function(x,y,k,fe){if(typeof x=="string"){if(typeof y=="string"?(fe=y,y=0,k=this.length):typeof k=="string"&&(fe=k,k=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!T.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(x.length===1){var W=x.charCodeAt(0);(fe==="utf8"&&W<128||fe==="latin1")&&(x=W)}}else typeof x=="number"?x=x&255:typeof x=="boolean"&&(x=Number(x));if(y<0||this.length<y||this.length<k)throw new RangeError("Out of range index");if(k<=y)return this;y=y>>>0,k=k===void 0?this.length:k>>>0,x||(x=0);var Q;if(typeof x=="number")for(Q=y;Q<k;++Q)this[Q]=x;else{var re=T.isBuffer(x)?x:T.from(x,fe),Se=re.length;if(Se===0)throw new TypeError('The value "'+x+'" is invalid for argument "value"');for(Q=0;Q<k-y;++Q)this[Q+y]=re[Q%Se]}return this};var _t=/[^+/0-9A-Za-z-_]/g;function Xt(Z){if(Z=Z.split("=")[0],Z=Z.trim().replace(_t,""),Z.length<2)return"";for(;Z.length%4!==0;)Z=Z+"=";return Z}function zt(Z,x){x=x||1/0;for(var y,k=Z.length,fe=null,W=[],Q=0;Q<k;++Q){if(y=Z.charCodeAt(Q),y>55295&&y<57344){if(!fe){if(y>56319){(x-=3)>-1&&W.push(239,191,189);continue}else if(Q+1===k){(x-=3)>-1&&W.push(239,191,189);continue}fe=y;continue}if(y<56320){(x-=3)>-1&&W.push(239,191,189),fe=y;continue}y=(fe-55296<<10|y-56320)+65536}else fe&&(x-=3)>-1&&W.push(239,191,189);if(fe=null,y<128){if((x-=1)<0)break;W.push(y)}else if(y<2048){if((x-=2)<0)break;W.push(y>>6|192,y&63|128)}else if(y<65536){if((x-=3)<0)break;W.push(y>>12|224,y>>6&63|128,y&63|128)}else if(y<1114112){if((x-=4)<0)break;W.push(y>>18|240,y>>12&63|128,y>>6&63|128,y&63|128)}else throw new Error("Invalid code point")}return W}function Ze(Z){for(var x=[],y=0;y<Z.length;++y)x.push(Z.charCodeAt(y)&255);return x}function fr(Z,x){for(var y,k,fe,W=[],Q=0;Q<Z.length&&!((x-=2)<0);++Q)y=Z.charCodeAt(Q),k=y>>8,fe=y%256,W.push(fe),W.push(k);return W}function yr(Z){return Fe.toByteArray(Xt(Z))}function Ar(Z,x,y,k){for(var fe=0;fe<k&&!(fe+y>=x.length||fe>=Z.length);++fe)x[fe+y]=Z[fe];return fe}function vr(Z,x){return Z instanceof x||Z!=null&&Z.constructor!=null&&Z.constructor.name!=null&&Z.constructor.name===x.name}function Ce(Z){return Z!==Z}var It=function(){for(var Z="0123456789abcdef",x=new Array(256),y=0;y<16;++y)for(var k=y*16,fe=0;fe<16;++fe)x[k+fe]=Z[y]+Z[fe];return x}()},64018:function(){var tn,Mt,E,le=!1,Fe,ae;window.PR_SHOULD_USE_CONTINUATION=!0;var Re,K;(function(){var g=window,R=["break,continue,do,else,for,if,return,while"],T=[R,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],l=[T,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],d=[l,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],N=[l,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],v=[l,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],m="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",b=[l,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],I="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",L=[R,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],z=[R,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],P=[R,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],$=[d,v,N,b,I,L,z,P],J=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,te="str",H="kwd",G="com",ce="typ",q="lit",ye="pun",_e="pln",Le="tag",se="dec",be="src",O="atn",Ee="atv",ue="nocode",he="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function ve(Z){for(var x=0,y=!1,k=!1,fe=0,W=Z.length;fe<W;++fe){var Q=Z[fe];if(Q.ignoreCase)k=!0;else if(/[a-z]/i.test(Q.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){y=!0,k=!1;break}}var re={b:8,t:9,n:10,v:11,f:12,r:13};function Se($e){var Je=$e.charCodeAt(0);if(Je!==92)return Je;var At=$e.charAt(1);return Je=re[At],Je||("0"<=At&&At<="7"?parseInt($e.substring(1),8):At==="u"||At==="x"?parseInt($e.substring(2),16):$e.charCodeAt(1))}function Be($e){if($e<32)return($e<16?"\\x0":"\\x")+$e.toString(16);var Je=String.fromCharCode($e);return Je==="\\"||Je==="-"||Je==="]"||Je==="^"?"\\"+Je:Je}function Te($e){var Je=$e.substring(1,$e.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),At=[],ze=Je[0]==="^",He=["["];ze&&He.push("^");for(var vt=ze?1:0,jt=Je.length;vt<jt;++vt){var Dt=Je[vt];if(/\\[bdsw]/i.test(Dt))He.push(Dt);else{var lr=Se(Dt),gr;vt+2<jt&&Je[vt+1]==="-"?(gr=Se(Je[vt+2]),vt+=2):gr=lr,At.push([lr,gr]),gr<65||lr>122||(gr<65||lr>90||At.push([Math.max(65,lr)|32,Math.min(gr,90)|32]),gr<97||lr>122||At.push([Math.max(97,lr)&-33,Math.min(gr,122)&-33]))}}At.sort(function(Ue,it){return Ue[0]-it[0]||it[1]-Ue[1]});for(var ne=[],we=[],vt=0;vt<At.length;++vt){var Vt=At[vt];Vt[0]<=we[1]+1?we[1]=Math.max(we[1],Vt[1]):ne.push(we=Vt)}for(var vt=0;vt<ne.length;++vt){var Vt=ne[vt];He.push(Be(Vt[0])),Vt[1]>Vt[0]&&(Vt[1]+1>Vt[0]&&He.push("-"),He.push(Be(Vt[1])))}return He.push("]"),He.join("")}function Ge($e){for(var Je=$e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),At=Je.length,ze=[],He=0,vt=0;He<At;++He){var jt=Je[He];if(jt==="(")++vt;else if(jt.charAt(0)==="\\"){var Dt=+jt.substring(1);Dt&&(Dt<=vt?ze[Dt]=-1:Je[He]=Be(Dt))}}for(var He=1;He<ze.length;++He)ze[He]===-1&&(ze[He]=++x);for(var He=0,vt=0;He<At;++He){var jt=Je[He];if(jt==="(")++vt,ze[vt]||(Je[He]="(?:");else if(jt.charAt(0)==="\\"){var Dt=+jt.substring(1);Dt&&Dt<=vt&&(Je[He]="\\"+ze[Dt])}}for(var He=0;He<At;++He)Je[He]==="^"&&Je[He+1]!=="^"&&(Je[He]="");if($e.ignoreCase&&y)for(var He=0;He<At;++He){var jt=Je[He],lr=jt.charAt(0);jt.length>=2&&lr==="["?Je[He]=Te(jt):lr!=="\\"&&(Je[He]=jt.replace(/[a-zA-Z]/g,function(we){var Vt=we.charCodeAt(0);return"["+String.fromCharCode(Vt&-33,Vt|32)+"]"}))}return Je.join("")}for(var ut=[],fe=0,W=Z.length;fe<W;++fe){var Q=Z[fe];if(Q.global||Q.multiline)throw new Error(""+Q);ut.push("(?:"+Ge(Q)+")")}return new RegExp(ut.join("|"),k?"gi":"g")}function F(Z,x){var y=/(?:^|\s)nocode(?:\s|$)/,k=[],fe=0,W=[],Q=0;function re(Se){var Be=Se.nodeType;if(Be==1){if(y.test(Se.className))return;for(var Te=Se.firstChild;Te;Te=Te.nextSibling)re(Te);var Ge=Se.nodeName.toLowerCase();(Ge==="br"||Ge==="li")&&(k[Q]=`
|
|
|
`,W[Q<<1]=fe++,W[Q++<<1|1]=Se)}else if(Be==3||Be==4){var ut=Se.nodeValue;ut.length&&(x?ut=ut.replace(/\r\n?/g,`
|
|
|
`):ut=ut.replace(/[ \t\r\n]+/g," "),k[Q]=ut,W[Q<<1]=fe,fe+=ut.length,W[Q++<<1|1]=Se)}}return re(Z),{sourceCode:k.join("").replace(/\n$/,""),spans:W}}function U(Z,x,y,k,fe){if(y){var W={sourceNode:Z,pre:1,langExtension:null,numberLines:null,sourceCode:y,spans:null,basePos:x,decorations:null};k(W),fe.push.apply(fe,W.decorations)}}var ee=/\S/;function de(Z){for(var x=void 0,y=Z.firstChild;y;y=y.nextSibling){var k=y.nodeType;x=k===1?x?Z:y:k===3&&ee.test(y.nodeValue)?Z:x}return x===Z?void 0:x}function Xe(Z,x){var y={},k;(function(){for(var Q=Z.concat(x),re=[],Se={},Be=0,Te=Q.length;Be<Te;++Be){var Ge=Q[Be],ut=Ge[3];if(ut)for(var $e=ut.length;--$e>=0;)y[ut.charAt($e)]=Ge;var Je=Ge[1],At=""+Je;Se.hasOwnProperty(At)||(re.push(Je),Se[At]=null)}re.push(/[\0-\uffff]/),k=ve(re)})();var fe=x.length,W=function(Q){for(var re=Q.sourceCode,Se=Q.basePos,Be=Q.sourceNode,Te=[Se,_e],Ge=0,ut=re.match(k)||[],$e={},Je=0,At=ut.length;Je<At;++Je){var ze=ut[Je],He=$e[ze],vt=void 0,jt;if(typeof He=="string")jt=!1;else{var Dt=y[ze.charAt(0)];if(Dt)vt=ze.match(Dt[1]),He=Dt[0];else{for(var lr=0;lr<fe;++lr)if(Dt=x[lr],vt=ze.match(Dt[1]),vt){He=Dt[0];break}vt||(He=_e)}jt=He.length>=5&&He.substring(0,5)==="lang-",jt&&!(vt&&typeof vt[1]=="string")&&(jt=!1,He=be),jt||($e[ze]=He)}var gr=Ge;if(Ge+=ze.length,!jt)Te.push(Se+gr,He);else{var ne=vt[1],we=ze.indexOf(ne),Vt=we+ne.length;vt[2]&&(Vt=ze.length-vt[2].length,we=Vt-ne.length);var Ue=He.substring(5);U(Be,Se+gr,ze.substring(0,we),W,Te),U(Be,Se+gr+we,ne,fr(Ue,ne),Te),U(Be,Se+gr+Vt,ze.substring(Vt),W,Te)}}Q.decorations=Te};return W}function tt(Z){var x=[],y=[];Z.tripleQuotedStrings?x.push([te,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):Z.multiLineStrings?x.push([te,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):x.push([te,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),Z.verbatimStrings&&y.push([te,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var k=Z.hashComments;k&&(Z.cStyleComments?(k>1?x.push([G,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):x.push([G,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),y.push([te,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):x.push([G,/^#[^\r\n]*/,null,"#"])),Z.cStyleComments&&(y.push([G,/^\/\/[^\r\n]*/,null]),y.push([G,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var fe=Z.regexLiterals;if(fe){var W=fe>1?"":`
|
|
|
\r`,Q=W?".":"[\\S\\s]",re="/(?=[^/*"+W+"])(?:[^/\\x5B\\x5C"+W+"]|\\x5C"+Q+"|\\x5B(?:[^\\x5C\\x5D"+W+"]|\\x5C"+Q+")*(?:\\x5D|$))+/";y.push(["lang-regex",RegExp("^"+he+"("+re+")")])}var Se=Z.types;Se&&y.push([ce,Se]);var Be=(""+Z.keywords).replace(/^ | $/g,"");Be.length&&y.push([H,new RegExp("^(?:"+Be.replace(/[\s,]+/g,"|")+")\\b"),null]),x.push([_e,/^\s+/,null,` \r
|
|
|
\xA0`]);var Te="^.[^\\s\\w.$@'\"`/\\\\]*";return Z.regexLiterals&&(Te+="(?!s*/)"),y.push([q,/^@[a-z_$][a-z_$@0-9]*/i,null],[ce,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_e,/^[a-z_$][a-z_$@0-9]*/i,null],[q,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_e,/^\\[\s\S]?/,null],[ye,new RegExp(Te),null]),Xe(x,y)}var nt=tt({keywords:$,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function _t(Z,x,y){for(var k=/(?:^|\s)nocode(?:\s|$)/,fe=/\r\n?|\n/,W=Z.ownerDocument,Q=W.createElement("li");Z.firstChild;)Q.appendChild(Z.firstChild);var re=[Q];function Se(Je){var At=Je.nodeType;if(At==1&&!k.test(Je.className))if(Je.nodeName==="br")Be(Je),Je.parentNode&&Je.parentNode.removeChild(Je);else for(var ze=Je.firstChild;ze;ze=ze.nextSibling)Se(ze);else if((At==3||At==4)&&y){var He=Je.nodeValue,vt=He.match(fe);if(vt){var jt=He.substring(0,vt.index);Je.nodeValue=jt;var Dt=He.substring(vt.index+vt[0].length);if(Dt){var lr=Je.parentNode;lr.insertBefore(W.createTextNode(Dt),Je.nextSibling)}Be(Je),jt||Je.parentNode.removeChild(Je)}}}function Be(Je){for(;!Je.nextSibling;)if(Je=Je.parentNode,!Je)return;function At(vt,jt){var Dt=jt?vt.cloneNode(!1):vt,lr=vt.parentNode;if(lr){var gr=At(lr,1),ne=vt.nextSibling;gr.appendChild(Dt);for(var we=ne;we;we=ne)ne=we.nextSibling,gr.appendChild(we)}return Dt}for(var ze=At(Je.nextSibling,0),He;(He=ze.parentNode)&&He.nodeType===1;)ze=He;re.push(ze)}for(var Te=0;Te<re.length;++Te)Se(re[Te]);x===(x|0)&&re[0].setAttribute("value",x);var Ge=W.createElement("ol");Ge.className="linenums";for(var ut=Math.max(0,x-1|0)||0,Te=0,$e=re.length;Te<$e;++Te)Q=re[Te],Q.className="L"+(Te+ut)%10,Q.firstChild||Q.appendChild(W.createTextNode("\xA0")),Ge.appendChild(Q);Z.appendChild(Ge)}function Xt(Z){var x=/\bMSIE\s(\d+)/.exec(navigator.userAgent);x=x&&+x[1]<=8;var y=/\n/g,k=Z.sourceCode,fe=k.length,W=0,Q=Z.spans,re=Q.length,Se=0,Be=Z.decorations,Te=Be.length,Ge=0;Be[Te]=fe;var ut,$e;for($e=ut=0;$e<Te;)Be[$e]!==Be[$e+2]?(Be[ut++]=Be[$e++],Be[ut++]=Be[$e++]):$e+=2;for(Te=ut,$e=ut=0;$e<Te;){for(var Je=Be[$e],At=Be[$e+1],ze=$e+2;ze+2<=Te&&Be[ze+1]===At;)ze+=2;Be[ut++]=Je,Be[ut++]=At,$e=ze}Te=Be.length=ut;var He=Z.sourceNode,vt="";He&&(vt=He.style.display,He.style.display="none");try{for(var jt=null;Se<re;){var Dt=Q[Se],lr=Q[Se+2]||fe,gr=Be[Ge+2]||fe,ze=Math.min(lr,gr),ne=Q[Se+1],we;if(ne.nodeType!==1&&(we=k.substring(W,ze))){x&&(we=we.replace(y,"\r")),ne.nodeValue=we;var Vt=ne.ownerDocument,Ue=Vt.createElement("span");Ue.className=Be[Ge+1];var it=ne.parentNode;it.replaceChild(Ue,ne),Ue.appendChild(ne),W<lr&&(Q[Se+1]=ne=Vt.createTextNode(k.substring(ze,lr)),it.insertBefore(ne,Ue.nextSibling))}W=ze,W>=lr&&(Se+=2),W>=gr&&(Ge+=2)}}finally{He&&(He.style.display=vt)}}var zt={};function Ze(Z,x){for(var y=x.length;--y>=0;){var k=x[y];zt.hasOwnProperty(k)?g.console&&console.warn("cannot override language handler %s",k):zt[k]=Z}}function fr(Z,x){return Z&&zt.hasOwnProperty(Z)||(Z=/^\s*</.test(x)?"default-markup":"default-code"),zt[Z]}Ze(nt,["default-code"]),Ze(Xe([],[[_e,/^[^<?]+/],[se,/^<!\w[^>]*(?:>|$)/],[G,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[ye,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ze(Xe([[_e,/^[\s]+/,null,` \r
|
|
|
`],[Ee,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Le,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[O,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[ye,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ze(Xe([],[[Ee,/^[\s\S]+/]]),["uq.val"]),Ze(tt({keywords:d,hashComments:!0,cStyleComments:!0,types:J}),["c","cc","cpp","cxx","cyc","m"]),Ze(tt({keywords:"null,true,false"}),["json"]),Ze(tt({keywords:v,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:J}),["cs"]),Ze(tt({keywords:N,cStyleComments:!0}),["java"]),Ze(tt({keywords:P,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ze(tt({keywords:L,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ze(tt({keywords:I,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ze(tt({keywords:z,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ze(tt({keywords:b,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ze(tt({keywords:m,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ze(Xe([],[[te,/^[\s\S]+/]]),["regex"]);function yr(Z){var x=Z.langExtension;try{var y=F(Z.sourceNode,Z.pre),k=y.sourceCode;Z.sourceCode=k,Z.spans=y.spans,Z.basePos=0,fr(x,k)(Z),Xt(Z)}catch(fe){g.console&&console.log(fe&&fe.stack||fe)}}function Ar(Z,x,y){var k=y||!1,fe=x||null,W=document.createElement("div");W.innerHTML="<pre>"+Z+"</pre>",W=W.firstChild,k&&_t(W,k,!0);var Q={langExtension:fe,numberLines:k,sourceNode:W,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return yr(Q),W.innerHTML}function vr(Z,x){var y=x||document.body,k=y.ownerDocument||document;function fe(Dt){return y.getElementsByTagName(Dt)}for(var W=[fe("pre"),fe("code"),fe("xmp")],Q=[],re=0;re<W.length;++re)for(var Se=0,Be=W[re].length;Se<Be;++Se)Q.push(W[re][Se]);W=null;var Te=Date;Te.now||(Te={now:function(){return+new Date}});var Ge=0,ut=/\blang(?:uage)?-([\w.]+)(?!\S)/,$e=/\bprettyprint\b/,Je=/\bprettyprinted\b/,At=/pre|xmp/i,ze=/^code$/i,He=/^(?:pre|code|xmp)$/i,vt={};function jt(){for(var Dt=g.PR_SHOULD_USE_CONTINUATION?Te.now()+250:1/0;Ge<Q.length&&Te.now()<Dt;Ge++){for(var lr=Q[Ge],gr=vt,ne=lr;ne=ne.previousSibling;){var we=ne.nodeType,Vt=(we===7||we===8)&&ne.nodeValue;if(Vt?!/^\??prettify\b/.test(Vt):we!==3||/\S/.test(ne.nodeValue))break;if(Vt){gr={},Vt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Bt,gn,On){gr[gn]=On});break}}var Ue=lr.className;if((gr!==vt||$e.test(Ue))&&!Je.test(Ue)){for(var it=!1,Rr=lr.parentNode;Rr;Rr=Rr.parentNode){var Tt=Rr.tagName;if(He.test(Tt)&&Rr.className&&$e.test(Rr.className)){it=!0;break}}if(!it){lr.className+=" prettyprinted";var Rt=gr.lang;if(!Rt){Rt=Ue.match(ut);var $t;!Rt&&($t=de(lr))&&ze.test($t.tagName)&&(Rt=$t.className.match(ut)),Rt&&(Rt=Rt[1])}var qe;if(At.test(lr.tagName))qe=1;else{var pt=lr.currentStyle,rt=k.defaultView,Ht=pt?pt.whiteSpace:rt&&rt.getComputedStyle?rt.getComputedStyle(lr,null).getPropertyValue("white-space"):0;qe=Ht&&Ht.substring(0,3)==="pre"}var Oe=gr.linenums;(Oe=Oe==="true"||+Oe)||(Oe=Ue.match(/\blinenums\b(?::(\d+))?/),Oe=Oe?Oe[1]&&Oe[1].length?+Oe[1]:!0:!1),Oe&&_t(lr,Oe,qe);var $r={langExtension:Rt,sourceNode:lr,numberLines:Oe,pre:qe,sourceCode:null,basePos:null,spans:null,decorations:null};yr($r)}}}Ge<Q.length?g.setTimeout(jt,250):typeof Z=="function"&&Z()}jt()}var Ce=g.PR={createSimpleLexer:Xe,registerLangHandler:Ze,sourceDecorator:tt,PR_ATTRIB_NAME:O,PR_ATTRIB_VALUE:Ee,PR_COMMENT:G,PR_DECLARATION:se,PR_KEYWORD:H,PR_LITERAL:q,PR_NOCODE:ue,PR_PLAIN:_e,PR_PUNCTUATION:ye,PR_SOURCE:be,PR_STRING:te,PR_TAG:Le,PR_TYPE:ce,prettyPrintOne:le?g.prettyPrintOne=Ar:Re=Ar,prettyPrint:K=le?g.prettyPrint=vr:K=vr},It=g.define;typeof It=="function"&&It.amd&&It("google-code-prettify",[],function(){return Ce})})()},25769:function(tn,Mt,E){"use strict";var le=E(98040),Fe={"text/plain":"Text","text/html":"Url",default:"Text"},ae="Copy to clipboard: #{key}, Enter";function Re(g){var R=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return g.replace(/#{\s*key\s*}/g,R)}function K(g,R){var T,l,d,N,v,m,b=!1;R||(R={}),T=R.debug||!1;try{d=le(),N=document.createRange(),v=document.getSelection(),m=document.createElement("span"),m.textContent=g,m.ariaHidden="true",m.style.all="unset",m.style.position="fixed",m.style.top=0,m.style.clip="rect(0, 0, 0, 0)",m.style.whiteSpace="pre",m.style.webkitUserSelect="text",m.style.MozUserSelect="text",m.style.msUserSelect="text",m.style.userSelect="text",m.addEventListener("copy",function(L){if(L.stopPropagation(),R.format)if(L.preventDefault(),typeof L.clipboardData=="undefined"){T&&console.warn("unable to use e.clipboardData"),T&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var z=Fe[R.format]||Fe.default;window.clipboardData.setData(z,g)}else L.clipboardData.clearData(),L.clipboardData.setData(R.format,g);R.onCopy&&(L.preventDefault(),R.onCopy(L.clipboardData))}),document.body.appendChild(m),N.selectNodeContents(m),v.addRange(N);var I=document.execCommand("copy");if(!I)throw new Error("copy command was unsuccessful");b=!0}catch(L){T&&console.error("unable to copy using execCommand: ",L),T&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(R.format||"text",g),R.onCopy&&R.onCopy(window.clipboardData),b=!0}catch(z){T&&console.error("unable to copy using clipboardData: ",z),T&&console.error("falling back to prompt"),l=Re("message"in R?R.message:ae),window.prompt(l,g)}}finally{v&&(typeof v.removeRange=="function"?v.removeRange(N):v.removeAllRanges()),m&&document.body.removeChild(m),d()}return b}tn.exports=K},64270:function(tn){(function(Mt,E){tn.exports=E()})(this,function(){"use strict";var Mt=function(i,e){return Mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Mt(i,e)};function E(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Mt(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var le=function(){return le=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},le.apply(this,arguments)};function Fe(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function c(M){try{f(r.next(M))}catch(a){o(a)}}function A(M){try{f(r.throw(M))}catch(a){o(a)}}function f(M){M.done?s(M.value):n(M.value).then(c,A)}f((r=r.apply(i,e||[])).next())})}function ae(i,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(f){return function(M){return A([f,M])}}function A(f){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(s=f[0]&2?n.return:f[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,f[1])).done)return s;switch(n=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){t.label=f[1];break}if(f[0]===6&&t.label<s[1]){t.label=s[1],s=f;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(f);break}s[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(i,t)}catch(M){f=[6,M],n=0}finally{r=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Re(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||e)}for(var K=function(){function i(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n}return i.prototype.add=function(e,t,r,n){return new i(this.left+e,this.top+t,this.width+r,this.height+n)},i.fromClientRect=function(e,t){return new i(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},i.fromDOMRectList=function(e,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new i(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):i.EMPTY},i.EMPTY=new i(0,0,0,0),i}(),g=function(i,e){return K.fromClientRect(i,e.getBoundingClientRect())},R=function(i){var e=i.body,t=i.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),n=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new K(0,0,r,n)},T=function(i){for(var e=[],t=0,r=i.length;t<r;){var n=i.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var s=i.charCodeAt(t++);(s&64512)===56320?e.push(((n&1023)<<10)+(s&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},l=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,i);var t=i.length;if(!t)return"";for(var r=[],n=-1,s="";++n<t;){var o=i[n];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(n+1===t||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),v=0;v<d.length;v++)N[d.charCodeAt(v)]=v;for(var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),I=0;I<m.length;I++)b[m.charCodeAt(I)]=I;for(var L=function(i){var e=i.length*.75,t=i.length,r,n=0,s,o,c,A;i[i.length-1]==="="&&(e--,i[i.length-2]==="="&&e--);var f=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),M=Array.isArray(f)?f:new Uint8Array(f);for(r=0;r<t;r+=4)s=b[i.charCodeAt(r)],o=b[i.charCodeAt(r+1)],c=b[i.charCodeAt(r+2)],A=b[i.charCodeAt(r+3)],M[n++]=s<<2|o>>4,M[n++]=(o&15)<<4|c>>2,M[n++]=(c&3)<<6|A&63;return f},z=function(i){for(var e=i.length,t=[],r=0;r<e;r+=2)t.push(i[r+1]<<8|i[r]);return t},P=function(i){for(var e=i.length,t=[],r=0;r<e;r+=4)t.push(i[r+3]<<24|i[r+2]<<16|i[r+1]<<8|i[r]);return t},$=5,J=11,te=2,H=J-$,G=65536>>$,ce=1<<$,q=ce-1,ye=1024>>$,_e=G+ye,Le=_e,se=32,be=Le+se,O=65536>>J,Ee=1<<H,ue=Ee-1,he=function(i,e,t){return i.slice?i.slice(e,t):new Uint16Array(Array.prototype.slice.call(i,e,t))},ve=function(i,e,t){return i.slice?i.slice(e,t):new Uint32Array(Array.prototype.slice.call(i,e,t))},F=function(i,e){var t=L(i),r=Array.isArray(t)?P(t):new Uint32Array(t),n=Array.isArray(t)?z(t):new Uint16Array(t),s=24,o=he(n,s/2,r[4]/2),c=r[5]===2?he(n,(s+r[4])/2):ve(r,Math.ceil((s+r[4])/4));return new U(r[0],r[1],r[2],r[3],o,c)},U=function(){function i(e,t,r,n,s,o){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=s,this.data=o}return i.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>$],t=(t<<te)+(e&q),this.data[t];if(e<=65535)return t=this.index[G+(e-55296>>$)],t=(t<<te)+(e&q),this.data[t];if(e<this.highStart)return t=be-O+(e>>J),t=this.index[t],t+=e>>$&ue,t=this.index[t],t=(t<<te)+(e&q),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},i}(),ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Xe=0;Xe<ee.length;Xe++)de[ee.charCodeAt(Xe)]=Xe;var tt="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",nt=50,_t=1,Xt=2,zt=3,Ze=4,fr=5,yr=7,Ar=8,vr=9,Ce=10,It=11,Z=12,x=13,y=14,k=15,fe=16,W=17,Q=18,re=19,Se=20,Be=21,Te=22,Ge=23,ut=24,$e=25,Je=26,At=27,ze=28,He=29,vt=30,jt=31,Dt=32,lr=33,gr=34,ne=35,we=36,Vt=37,Ue=38,it=39,Rr=40,Tt=41,Rt=42,$t=43,qe=[9001,65288],pt="!",rt="\xD7",Ht="\xF7",Oe=F(tt),$r=[vt,we],Bt=[_t,Xt,zt,fr],gn=[Ce,Ar],On=[At,Je],hi=Bt.concat(gn),ti=[Ue,it,Rr,gr,ne],En=[k,x],Dn=function(i,e){e===void 0&&(e="strict");var t=[],r=[],n=[];return i.forEach(function(s,o){var c=Oe.get(s);if(c>nt?(n.push(!0),c-=nt):n.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(s)!==-1)return r.push(o),t.push(fe);if(c===Ze||c===It){if(o===0)return r.push(o),t.push(vt);var A=t[o-1];return hi.indexOf(A)===-1?(r.push(r[o-1]),t.push(A)):(r.push(o),t.push(vt))}if(r.push(o),c===jt)return t.push(e==="strict"?Be:Vt);if(c===Rt||c===He)return t.push(vt);if(c===$t)return s>=131072&&s<=196605||s>=196608&&s<=262141?t.push(Vt):t.push(vt);t.push(c)}),[r,t,n]},Ut=function(i,e,t,r){var n=r[t];if(Array.isArray(i)?i.indexOf(n)!==-1:i===n)for(var s=t;s<=r.length;){s++;var o=r[s];if(o===e)return!0;if(o!==Ce)break}if(n===Ce)for(var s=t;s>0;){s--;var c=r[s];if(Array.isArray(i)?i.indexOf(c)!==-1:i===c)for(var A=t;A<=r.length;){A++;var o=r[A];if(o===e)return!0;if(o!==Ce)break}if(c!==Ce)break}return!1},Dr=function(i,e){for(var t=i;t>=0;){var r=e[t];if(r===Ce)t--;else return r}return 0},Pr=function(i,e,t,r,n){if(t[r]===0)return rt;var s=r-1;if(Array.isArray(n)&&n[s]===!0)return rt;var o=s-1,c=s+1,A=e[s],f=o>=0?e[o]:0,M=e[c];if(A===Xt&&M===zt)return rt;if(Bt.indexOf(A)!==-1)return pt;if(Bt.indexOf(M)!==-1||gn.indexOf(M)!==-1)return rt;if(Dr(s,e)===Ar)return Ht;if(Oe.get(i[s])===It||(A===Dt||A===lr)&&Oe.get(i[c])===It||A===yr||M===yr||A===vr||[Ce,x,k].indexOf(A)===-1&&M===vr||[W,Q,re,ut,ze].indexOf(M)!==-1||Dr(s,e)===Te||Ut(Ge,Te,s,e)||Ut([W,Q],Be,s,e)||Ut(Z,Z,s,e))return rt;if(A===Ce)return Ht;if(A===Ge||M===Ge)return rt;if(M===fe||A===fe)return Ht;if([x,k,Be].indexOf(M)!==-1||A===y||f===we&&En.indexOf(A)!==-1||A===ze&&M===we||M===Se||$r.indexOf(M)!==-1&&A===$e||$r.indexOf(A)!==-1&&M===$e||A===At&&[Vt,Dt,lr].indexOf(M)!==-1||[Vt,Dt,lr].indexOf(A)!==-1&&M===Je||$r.indexOf(A)!==-1&&On.indexOf(M)!==-1||On.indexOf(A)!==-1&&$r.indexOf(M)!==-1||[At,Je].indexOf(A)!==-1&&(M===$e||[Te,k].indexOf(M)!==-1&&e[c+1]===$e)||[Te,k].indexOf(A)!==-1&&M===$e||A===$e&&[$e,ze,ut].indexOf(M)!==-1)return rt;if([$e,ze,ut,W,Q].indexOf(M)!==-1)for(var a=s;a>=0;){var u=e[a];if(u===$e)return rt;if([ze,ut].indexOf(u)!==-1)a--;else break}if([At,Je].indexOf(M)!==-1)for(var a=[W,Q].indexOf(A)!==-1?o:s;a>=0;){var u=e[a];if(u===$e)return rt;if([ze,ut].indexOf(u)!==-1)a--;else break}if(Ue===A&&[Ue,it,gr,ne].indexOf(M)!==-1||[it,gr].indexOf(A)!==-1&&[it,Rr].indexOf(M)!==-1||[Rr,ne].indexOf(A)!==-1&&M===Rr||ti.indexOf(A)!==-1&&[Se,Je].indexOf(M)!==-1||ti.indexOf(M)!==-1&&A===At||$r.indexOf(A)!==-1&&$r.indexOf(M)!==-1||A===ut&&$r.indexOf(M)!==-1||$r.concat($e).indexOf(A)!==-1&&M===Te&&qe.indexOf(i[c])===-1||$r.concat($e).indexOf(M)!==-1&&A===Q)return rt;if(A===Tt&&M===Tt){for(var w=t[s],B=1;w>0&&(w--,e[w]===Tt);)B++;if(B%2!==0)return rt}return A===Dt&&M===lr?rt:Ht},St=function(i,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=Dn(i,e.lineBreak),r=t[0],n=t[1],s=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(n=n.map(function(c){return[$e,vt,Rt].indexOf(c)!==-1?Vt:c}));var o=e.wordBreak==="keep-all"?s.map(function(c,A){return c&&i[A]>=19968&&i[A]<=40959}):void 0;return[r,n,o]},mt=function(){function i(e,t,r,n){this.codePoints=e,this.required=t===pt,this.start=r,this.end=n}return i.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},i}(),mr=function(i,e){var t=T(i),r=St(t,e),n=r[0],s=r[1],o=r[2],c=t.length,A=0,f=0;return{next:function(){if(f>=c)return{done:!0,value:null};for(var M=rt;f<c&&(M=Pr(t,s,n,++f,o))===rt;);if(M!==rt||f===c){var a=new mt(t,M,A,f);return A=f,{value:a,done:!1}}return{done:!0,value:null}}}},xr=1,on=2,kr=4,un=8,nn=10,_n=47,Un=92,vn=9,Hr=32,Kr=34,qr=61,bn=35,ln=36,ui=37,jn=39,cn=40,sr=41,cr=95,pr=45,Fr=33,Br=60,fn=62,Nr=64,Cn=91,Rn=93,Kn=61,Ai=123,ni=63,mi=125,hr=124,an=126,Xr=128,ri=65533,zn=42,Hn=43,Xn=44,di=58,si=59,_i=46,ji=0,ii=8,yn=11,Yt=14,hn=31,Fn=127,$n=-1,bi=48,Hi=97,rs=101,Ci=102,is=117,ai=122,Zn=65,Li=69,Mi=70,ls=85,js=90,Vn=function(i){return i>=bi&&i<=57},us=function(i){return i>=55296&&i<=57343},Wi=function(i){return Vn(i)||i>=Zn&&i<=Mi||i>=Hi&&i<=Ci},ps=function(i){return i>=Hi&&i<=ai},Vs=function(i){return i>=Zn&&i<=js},vs=function(i){return ps(i)||Vs(i)},ss=function(i){return i>=Xr},gi=function(i){return i===nn||i===vn||i===Hr},Ui=function(i){return vs(i)||ss(i)||i===cr},Ws=function(i){return Ui(i)||Vn(i)||i===pr},Ti=function(i){return i>=ji&&i<=ii||i===yn||i>=Yt&&i<=hn||i===Fn},Ds=function(i,e){return i!==Un?!1:e!==nn},Ri=function(i,e,t){return i===pr?Ui(e)||Ds(e,t):Ui(i)?!0:!!(i===Un&&Ds(i,e))},ks=function(i,e,t){return i===Hn||i===pr?Vn(e)?!0:e===_i&&Vn(t):Vn(i===_i?e:i)},$i=function(i){var e=0,t=1;(i[e]===Hn||i[e]===pr)&&(i[e]===pr&&(t=-1),e++);for(var r=[];Vn(i[e]);)r.push(i[e++]);var n=r.length?parseInt(l.apply(void 0,r),10):0;i[e]===_i&&e++;for(var s=[];Vn(i[e]);)s.push(i[e++]);var o=s.length,c=o?parseInt(l.apply(void 0,s),10):0;(i[e]===Li||i[e]===rs)&&e++;var A=1;(i[e]===Hn||i[e]===pr)&&(i[e]===pr&&(A=-1),e++);for(var f=[];Vn(i[e]);)f.push(i[e++]);var M=f.length?parseInt(l.apply(void 0,f),10):0;return t*(n+c*Math.pow(10,-o))*Math.pow(10,A*M)},Pa={type:2},aa={type:3},Na={type:4},Vi={type:13},Ga={type:8},Rs={type:21},Pn={type:9},as={type:10},Ca={type:11},Bi={type:12},Di={type:14},wi={type:23},vi={type:1},Yi={type:25},gs={type:24},na={type:26},Ks={type:27},Os={type:28},Qi={type:29},Ys={type:31},Za={type:32},la=function(){function i(){this._value=[]}return i.prototype.write=function(e){this._value=this._value.concat(T(e))},i.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Za;)e.push(t),t=this.consumeToken();return e},i.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Kr:return this.consumeStringToken(Kr);case bn:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Ws(t)||Ds(r,n)){var s=Ri(t,r,n)?on:xr,o=this.consumeName();return{type:5,value:o,flags:s}}break;case ln:if(this.peekCodePoint(0)===qr)return this.consumeCodePoint(),Vi;break;case jn:return this.consumeStringToken(jn);case cn:return Pa;case sr:return aa;case zn:if(this.peekCodePoint(0)===qr)return this.consumeCodePoint(),Di;break;case Hn:if(ks(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Xn:return Na;case pr:var c=e,A=this.peekCodePoint(0),f=this.peekCodePoint(1);if(ks(c,A,f))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(Ri(c,A,f))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(A===pr&&f===fn)return this.consumeCodePoint(),this.consumeCodePoint(),gs;break;case _i:if(ks(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case _n:if(this.peekCodePoint(0)===zn)for(this.consumeCodePoint();;){var M=this.consumeCodePoint();if(M===zn&&(M=this.consumeCodePoint(),M===_n))return this.consumeToken();if(M===$n)return this.consumeToken()}break;case di:return na;case si:return Ks;case Br:if(this.peekCodePoint(0)===Fr&&this.peekCodePoint(1)===pr&&this.peekCodePoint(2)===pr)return this.consumeCodePoint(),this.consumeCodePoint(),Yi;break;case Nr:var a=this.peekCodePoint(0),u=this.peekCodePoint(1),w=this.peekCodePoint(2);if(Ri(a,u,w)){var o=this.consumeName();return{type:7,value:o}}break;case Cn:return Os;case Un:if(Ds(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case Rn:return Qi;case Kn:if(this.peekCodePoint(0)===qr)return this.consumeCodePoint(),Ga;break;case Ai:return Ca;case mi:return Bi;case is:case ls:var B=this.peekCodePoint(0),Y=this.peekCodePoint(1);return B===Hn&&(Wi(Y)||Y===ni)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case hr:if(this.peekCodePoint(0)===qr)return this.consumeCodePoint(),Pn;if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Rs;break;case an:if(this.peekCodePoint(0)===qr)return this.consumeCodePoint(),as;break;case $n:return Za}return gi(e)?(this.consumeWhiteSpace(),Ys):Vn(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):Ui(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:l(e)}},i.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e=="undefined"?-1:e},i.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},i.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},i.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Wi(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;t===ni&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(l.apply(void 0,e.map(function(A){return A===ni?bi:A})),16),s=parseInt(l.apply(void 0,e.map(function(A){return A===ni?Mi:A})),16);return{type:30,start:n,end:s}}var o=parseInt(l.apply(void 0,e),16);if(this.peekCodePoint(0)===pr&&Wi(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var c=[];Wi(t)&&c.length<6;)c.push(t),t=this.consumeCodePoint();var s=parseInt(l.apply(void 0,c),16);return{type:30,start:o,end:s}}else return{type:30,start:o,end:o}},i.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===cn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===cn?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},i.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===$n)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===jn||t===Kr){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===$n||this.peekCodePoint(0)===sr)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),wi)}for(;;){var n=this.consumeCodePoint();if(n===$n||n===sr)return{type:22,value:l.apply(void 0,e)};if(gi(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===$n||this.peekCodePoint(0)===sr?(this.consumeCodePoint(),{type:22,value:l.apply(void 0,e)}):(this.consumeBadUrlRemnants(),wi);if(n===Kr||n===jn||n===cn||Ti(n))return this.consumeBadUrlRemnants(),wi;if(n===Un)if(Ds(n,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),wi;else e.push(n)}},i.prototype.consumeWhiteSpace=function(){for(;gi(this.peekCodePoint(0));)this.consumeCodePoint()},i.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===sr||e===$n)return;Ds(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},i.prototype.consumeStringSlice=function(e){for(var t=5e4,r="";e>0;){var n=Math.min(t,e);r+=l.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),r},i.prototype.consumeStringToken=function(e){var t="",r=0;do{var n=this._value[r];if(n===$n||n===void 0||n===e)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===nn)return this._value.splice(0,r),vi;if(n===Un){var s=this._value[r+1];s!==$n&&s!==void 0&&(s===nn?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):Ds(n,s)&&(t+=this.consumeStringSlice(r),t+=l(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},i.prototype.consumeNumber=function(){var e=[],t=kr,r=this.peekCodePoint(0);for((r===Hn||r===pr)&&e.push(this.consumeCodePoint());Vn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===_i&&Vn(n))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=un;Vn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var s=this.peekCodePoint(2);if((r===Li||r===rs)&&((n===Hn||n===pr)&&Vn(s)||Vn(n)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=un;Vn(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[$i(e),t]},i.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],n=this.peekCodePoint(0),s=this.peekCodePoint(1),o=this.peekCodePoint(2);if(Ri(n,s,o)){var c=this.consumeName();return{type:15,number:t,flags:r,unit:c}}return n===ui?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},i.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Wi(e)){for(var t=l(e);Wi(this.peekCodePoint(0))&&t.length<6;)t+=l(this.consumeCodePoint());gi(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||us(r)||r>1114111?ri:r}return e===$n?ri:e},i.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(Ws(t))e+=l(t);else if(Ds(t,this.peekCodePoint(0)))e+=l(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},i}(),ua=function(){function i(e){this._tokens=e}return i.create=function(e){var t=new la;return t.write(e),new i(t.read())},i.parseValue=function(e){return i.create(e).parseComponentValue()},i.parseValues=function(e){return i.create(e).parseComponentValues()},i.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},i.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},i.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},i.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||Va(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},i.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},i.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e=="undefined"?Za:e},i.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},i}(),Xs=function(i){return i.type===15},li=function(i){return i.type===17},oi=function(i){return i.type===20},Ji=function(i){return i.type===0},$s=function(i,e){return oi(i)&&i.value===e},As=function(i){return i.type!==31},ca=function(i){return i.type!==31&&i.type!==4},ea=function(i){var e=[],t=[];return i.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&e.push(t),e},Va=function(i,e){return e===11&&i.type===12||e===28&&i.type===29?!0:e===2&&i.type===3},ta=function(i){return i.type===17||i.type===15},ci=function(i){return i.type===16||ta(i)},fl=function(i){return i.length>1?[i[0],i[1]]:[i[0]]},Aa={type:17,number:0,flags:kr},ko={type:16,number:50,flags:kr},fa={type:16,number:100,flags:kr},Sa=function(i,e,t){var r=i[0],n=i[1];return[ys(r,e),ys(typeof n!="undefined"?n:r,t)]},ys=function(i,e){if(i.type===16)return i.number/100*e;if(Xs(i))switch(i.unit){case"rem":case"em":return 16*i.number;case"px":default:return i.number}return i.number},Ho="deg",Ko="grad",Fo="rad",mo="turn",ds={name:"angle",parse:function(i,e){if(e.type===15)switch(e.unit){case Ho:return Math.PI*e.number/180;case Ko:return Math.PI/200*e.number;case Fo:return e.number;case mo:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},es=function(i){return i.type===15&&(i.unit===Ho||i.unit===Ko||i.unit===Fo||i.unit===mo)},pa=function(i){var e=i.filter(oi).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Aa,Aa];case"to top":case"bottom":return Bs(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Aa,fa];case"to right":case"left":return Bs(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fa,fa];case"to bottom":case"top":return Bs(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fa,Aa];case"to left":case"right":return Bs(270)}return 0},Bs=function(i){return Math.PI*i/180},fs={name:"color",parse:function(i,e){if(e.type===18){var t=hl[e.name];if(typeof t=="undefined")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(i,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),n=e.value.substring(1,2),s=e.value.substring(2,3);return da(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),n=e.value.substring(1,2),s=e.value.substring(2,3),o=e.value.substring(3,4);return da(parseInt(r+r,16),parseInt(n+n,16),parseInt(s+s,16),parseInt(o+o,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),n=e.value.substring(2,4),s=e.value.substring(4,6);return da(parseInt(r,16),parseInt(n,16),parseInt(s,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),n=e.value.substring(2,4),s=e.value.substring(4,6),o=e.value.substring(6,8);return da(parseInt(r,16),parseInt(n,16),parseInt(s,16),parseInt(o,16)/255)}}if(e.type===20){var c=Ya[e.value.toUpperCase()];if(typeof c!="undefined")return c}return Ya.TRANSPARENT}},ia=function(i){return(255&i)===0},Fs=function(i){var e=255&i,t=255&i>>8,r=255&i>>16,n=255&i>>24;return e<255?"rgba("+n+","+r+","+t+","+e/255+")":"rgb("+n+","+r+","+t+")"},da=function(i,e,t,r){return(i<<24|e<<16|t<<8|Math.round(r*255)<<0)>>>0},Wa=function(i,e){if(i.type===17)return i.number;if(i.type===16){var t=e===3?1:255;return e===3?i.number/100*t:Math.round(i.number/100*t)}return 0},Mo=function(i,e){var t=e.filter(ca);if(t.length===3){var r=t.map(Wa),n=r[0],s=r[1],o=r[2];return da(n,s,o,1)}if(t.length===4){var c=t.map(Wa),n=c[0],s=c[1],o=c[2],A=c[3];return da(n,s,o,A)}return 0};function qa(i,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-i)*t*6+i:t<1/2?e:t<2/3?(e-i)*6*(2/3-t)+i:i}var Eo=function(i,e){var t=e.filter(ca),r=t[0],n=t[1],s=t[2],o=t[3],c=(r.type===17?Bs(r.number):ds.parse(i,r))/(Math.PI*2),A=ci(n)?n.number/100:0,f=ci(s)?s.number/100:0,M=typeof o!="undefined"&&ci(o)?ys(o,1):1;if(A===0)return da(f*255,f*255,f*255,1);var a=f<=.5?f*(A+1):f+A-f*A,u=f*2-a,w=qa(u,a,c+1/3),B=qa(u,a,c),Y=qa(u,a,c-1/3);return da(w*255,B*255,Y*255,M)},hl={hsl:Eo,hsla:Eo,rgb:Mo,rgba:Mo},ka=function(i,e){return fs.parse(i,ua.create(e).parseComponentValue())},Ya={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},El={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(i,e){return e.map(function(t){if(oi(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qo={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},zo=function(i,e){var t=fs.parse(i,e[0]),r=e[1];return r&&ci(r)?{color:t,stop:r}:{color:t,stop:null}},pl=function(i,e){var t=i[0],r=i[i.length-1];t.stop===null&&(t.stop=Aa),r.stop===null&&(r.stop=fa);for(var n=[],s=0,o=0;o<i.length;o++){var c=i[o].stop;if(c!==null){var A=ys(c,e);A>s?n.push(A):n.push(s),s=A}else n.push(null)}for(var f=null,o=0;o<n.length;o++){var M=n[o];if(M===null)f===null&&(f=o);else if(f!==null){for(var a=o-f,u=n[f-1],w=(M-u)/(a+1),B=1;B<=a;B++)n[f+B-1]=w*B;f=null}}return i.map(function(Y,oe){var xe=Y.color;return{color:xe,stop:Math.max(Math.min(1,n[oe]/e),0)}})},Go=function(i,e,t){var r=e/2,n=t/2,s=ys(i[0],e)-r,o=n-ys(i[1],t);return(Math.atan2(o,s)+Math.PI*2)%(Math.PI*2)},Ma=function(i,e,t){var r=typeof i=="number"?i:Go(i,e,t),n=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),s=e/2,o=t/2,c=n/2,A=Math.sin(r-Math.PI/2)*c,f=Math.cos(r-Math.PI/2)*c;return[n,s-f,s+f,o-A,o+A]},ba=function(i,e){return Math.sqrt(i*i+e*e)},eo=function(i,e,t,r,n){var s=[[0,0],[0,e],[i,0],[i,e]];return s.reduce(function(o,c){var A=c[0],f=c[1],M=ba(t-A,r-f);return(n?M<o.optimumDistance:M>o.optimumDistance)?{optimumCorner:c,optimumDistance:M}:o},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},_s=function(i,e,t,r,n){var s=0,o=0;switch(i.size){case 0:i.shape===0?s=o=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):i.shape===1&&(s=Math.min(Math.abs(e),Math.abs(e-r)),o=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(i.shape===0)s=o=Math.min(ba(e,t),ba(e,t-n),ba(e-r,t),ba(e-r,t-n));else if(i.shape===1){var c=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(e),Math.abs(e-r)),A=eo(r,n,e,t,!0),f=A[0],M=A[1];s=ba(f-e,(M-t)/c),o=c*s}break;case 1:i.shape===0?s=o=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-n)):i.shape===1&&(s=Math.max(Math.abs(e),Math.abs(e-r)),o=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(i.shape===0)s=o=Math.max(ba(e,t),ba(e,t-n),ba(e-r,t),ba(e-r,t-n));else if(i.shape===1){var c=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(e),Math.abs(e-r)),a=eo(r,n,e,t,!1),f=a[0],M=a[1];s=ba(f-e,(M-t)/c),o=c*s}break}return Array.isArray(i.size)&&(s=ys(i.size[0],r),o=i.size.length===2?ys(i.size[1],n):s),[s,o]},zs=function(i,e){var t=Bs(180),r=[];return ea(e).forEach(function(n,s){if(s===0){var o=n[0];if(o.type===20&&o.value==="to"){t=pa(n);return}else if(es(o)){t=ds.parse(i,o);return}}var c=zo(i,n);r.push(c)}),{angle:t,stops:r,type:1}},Is=function(i,e){var t=Bs(180),r=[];return ea(e).forEach(function(n,s){if(s===0){var o=n[0];if(o.type===20&&["top","left","right","bottom"].indexOf(o.value)!==-1){t=pa(n);return}else if(es(o)){t=(ds.parse(i,o)+Bs(270))%Bs(360);return}}var c=zo(i,n);r.push(c)}),{angle:t,stops:r,type:1}},sa=function(i,e){var t=Bs(180),r=[],n=1,s=0,o=3,c=[];return ea(e).forEach(function(A,f){var M=A[0];if(f===0){if(oi(M)&&M.value==="linear"){n=1;return}else if(oi(M)&&M.value==="radial"){n=2;return}}if(M.type===18){if(M.name==="from"){var a=fs.parse(i,M.values[0]);r.push({stop:Aa,color:a})}else if(M.name==="to"){var a=fs.parse(i,M.values[0]);r.push({stop:fa,color:a})}else if(M.name==="color-stop"){var u=M.values.filter(ca);if(u.length===2){var a=fs.parse(i,u[1]),w=u[0];li(w)&&r.push({stop:{type:16,number:w.number*100,flags:w.flags},color:a})}}}}),n===1?{angle:(t+Bs(180))%Bs(360),stops:r,type:n}:{size:o,shape:s,stops:r,position:c,type:n}},ma="closest-side",Ln="farthest-side",_o="closest-corner",el="farthest-corner",Rl="circle",Ol="ellipse",Zo="cover",tl="contain",xu=function(i,e){var t=0,r=3,n=[],s=[];return ea(e).forEach(function(o,c){var A=!0;if(c===0){var f=!1;A=o.reduce(function(a,u){if(f)if(oi(u))switch(u.value){case"center":return s.push(ko),a;case"top":case"left":return s.push(Aa),a;case"right":case"bottom":return s.push(fa),a}else(ci(u)||ta(u))&&s.push(u);else if(oi(u))switch(u.value){case Rl:return t=0,!1;case Ol:return t=1,!1;case"at":return f=!0,!1;case ma:return r=0,!1;case Zo:case Ln:return r=1,!1;case tl:case _o:return r=2,!1;case el:return r=3,!1}else if(ta(u)||ci(u))return Array.isArray(r)||(r=[]),r.push(u),!1;return a},A)}if(A){var M=zo(i,o);n.push(M)}}),{size:r,shape:t,stops:n,position:s,type:2}},zl=function(i,e){var t=0,r=3,n=[],s=[];return ea(e).forEach(function(o,c){var A=!0;if(c===0?A=o.reduce(function(M,a){if(oi(a))switch(a.value){case"center":return s.push(ko),!1;case"top":case"left":return s.push(Aa),!1;case"right":case"bottom":return s.push(fa),!1}else if(ci(a)||ta(a))return s.push(a),!1;return M},A):c===1&&(A=o.reduce(function(M,a){if(oi(a))switch(a.value){case Rl:return t=0,!1;case Ol:return t=1,!1;case tl:case ma:return r=0,!1;case Ln:return r=1,!1;case _o:return r=2,!1;case Zo:case el:return r=3,!1}else if(ta(a)||ci(a))return Array.isArray(r)||(r=[]),r.push(a),!1;return M},A)),A){var f=zo(i,o);n.push(f)}}),{size:r,shape:t,stops:n,position:s,type:2}},au=function(i){return i.type===1},Pl=function(i){return i.type===2},Vo={name:"image",parse:function(i,e){if(e.type===22){var t={url:e.value,type:0};return i.cache.addImage(e.value),t}if(e.type===18){var r=Eu[e.name];if(typeof r=="undefined")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(i,e.values)}throw new Error("Unsupported image type "+e.type)}};function Mu(i){return!(i.type===20&&i.value==="none")&&(i.type!==18||!!Eu[i.name])}var Eu={"linear-gradient":zs,"-moz-linear-gradient":Is,"-ms-linear-gradient":Is,"-o-linear-gradient":Is,"-webkit-linear-gradient":Is,"radial-gradient":xu,"-moz-radial-gradient":zl,"-ms-radial-gradient":zl,"-o-radial-gradient":zl,"-webkit-radial-gradient":zl,"-webkit-gradient":sa},sc={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(i,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(r){return ca(r)&&Mu(r)}).map(function(r){return Vo.parse(i,r)})}},C={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(i,e){return e.map(function(t){if(oi(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},h={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(i,e){return ea(e).map(function(t){return t.filter(ci)}).map(fl)}},_={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(i,e){return ea(e).map(function(t){return t.filter(oi).map(function(r){return r.value}).join(" ")}).map(j)}},j=function(i){switch(i){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ie;(function(i){i.AUTO="auto",i.CONTAIN="contain",i.COVER="cover"})(ie||(ie={}));var X={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(i,e){return ea(e).map(function(t){return t.filter(me)})}},me=function(i){return oi(i)||ci(i)},De=function(i){return{name:"border-"+i+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ke=De("top"),et=De("right"),dt=De("bottom"),ft=De("left"),Ct=function(i){return{name:"border-radius-"+i,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return fl(t.filter(ci))}}},Ve=Ct("top-left"),nr=Ct("top-right"),Zt=Ct("bottom-right"),or=Ct("bottom-left"),Lt=function(i){return{name:"border-"+i+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ar=Lt("top"),Ir=Lt("right"),Zr=Lt("bottom"),mn=Lt("left"),Gn=function(i){return{name:"border-"+i+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Xs(t)?t.number:0}}},Jr=Gn("top"),br=Gn("right"),en=Gn("bottom"),In=Gn("left"),Nt={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Wt={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(i,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Cr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(i,e){return e.filter(oi).reduce(function(t,r){return t|ge(r.value)},0)}},ge=function(i){switch(i){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Pe={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(i,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ye={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(i,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},st;(function(i){i.NORMAL="normal",i.STRICT="strict"})(st||(st={}));var ot={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(i,e){switch(e){case"strict":return st.STRICT;case"normal":default:return st.NORMAL}}},gt={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ft=function(i,e){return oi(i)&&i.value==="normal"?1.2*e:i.type===17?e*i.number:ci(i)?ys(i,e):e},er={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(i,e){return e.type===20&&e.value==="none"?null:Vo.parse(i,e)}},je={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(i,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},at={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(i,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ie=function(i){return{name:"margin-"+i,initialValue:"0",prefix:!1,type:4}},bt=Ie("top"),Kt=Ie("right"),Jt=Ie("bottom"),rr=Ie("left"),dr={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(i,e){return e.filter(oi).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Lr={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(i,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Or=function(i){return{name:"padding-"+i,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Mr=Or("top"),Yr=Or("right"),Qn=Or("bottom"),Tr=Or("left"),Qt={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(i,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},ei={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(i,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Yn={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(i,e){return e.length===1&&$s(e[0],"none")?[]:ea(e).map(function(t){for(var r={color:Ya.TRANSPARENT,offsetX:Aa,offsetY:Aa,blur:Aa},n=0,s=0;s<t.length;s++){var o=t[s];ta(o)?(n===0?r.offsetX=o:n===1?r.offsetY=o:r.blur=o,n++):r.color=fs.parse(i,o)}return r})}},Qr={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(i,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},sn={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(i,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=Sn[e.name];if(typeof t=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},rn=function(i){var e=i.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},Vr=function(i){var e=i.filter(function(A){return A.type===17}).map(function(A){return A.number}),t=e[0],r=e[1];e[2],e[3];var n=e[4],s=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var o=e[12],c=e[13];return e[14],e[15],e.length===16?[t,r,n,s,o,c]:null},Sn={matrix:rn,matrix3d:Vr},qn={type:16,number:50,flags:kr},pi=[qn,qn],Qe={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(i,e){var t=e.filter(ci);return t.length!==2?pi:[t[0],t[1]]}},p={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(i,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},S;(function(i){i.NORMAL="normal",i.BREAK_ALL="break-all",i.KEEP_ALL="keep-all"})(S||(S={}));for(var D={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(i,e){switch(e){case"break-all":return S.BREAK_ALL;case"keep-all":return S.KEEP_ALL;case"normal":default:return S.NORMAL}}},V={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(i,e){if(e.type===20)return{auto:!0,order:0};if(li(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},pe={name:"time",parse:function(i,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},Ke={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(i,e){return li(e)?e.number:1}},lt={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yt={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(i,e){return e.filter(oi).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},Ot={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(i,e){var t=[],r=[];return e.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},ir={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},wr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(i,e){if(li(e))return e.number;if(oi(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Sr={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(i,e){return e.filter(oi).map(function(t){return t.value})}},Tn={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(i,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},_r=function(i,e){return(i&e)!==0},kt={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(i,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},wn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(i,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=e.filter(As),s=0;s<n.length;s++){var o=n[s],c=n[s+1];if(o.type===20){var A=c&&li(c)?c.number:1;r.push({counter:o.value,increment:A})}}return r}},xn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(i,e){if(e.length===0)return[];for(var t=[],r=e.filter(As),n=0;n<r.length;n++){var s=r[n],o=r[n+1];if(oi(s)&&s.value!=="none"){var c=o&&li(o)?o.number:0;t.push({counter:s.value,reset:c})}}return t}},kn={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(i,e){return e.filter(Xs).map(function(t){return pe.parse(i,t)})}},pn={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(i,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var r=[],n=e.filter(Ji);if(n.length%2!==0)return null;for(var s=0;s<n.length;s+=2){var o=n[s].value,c=n[s+1].value;r.push({open:o,close:c})}return r}},yi=function(i,e,t){if(!i)return"";var r=i[Math.min(e,i.length-1)];return r?t?r.open:r.close:""},xi={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(i,e){return e.length===1&&$s(e[0],"none")?[]:ea(e).map(function(t){for(var r={color:255,offsetX:Aa,offsetY:Aa,blur:Aa,spread:Aa,inset:!1},n=0,s=0;s<t.length;s++){var o=t[s];$s(o,"inset")?r.inset=!0:ta(o)?(n===0?r.offsetX=o:n===1?r.offsetY=o:n===2?r.blur=o:r.spread=o,n++):r.color=fs.parse(i,o)}return r})}},Fi={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(i,e){var t=[0,1,2],r=[];return e.filter(oi).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},os={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},fi={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(i,e){return Xs(e)?e.number:0}},Es=function(){function i(e,t){var r,n;this.animationDuration=Nn(e,kn,t.animationDuration),this.backgroundClip=Nn(e,El,t.backgroundClip),this.backgroundColor=Nn(e,qo,t.backgroundColor),this.backgroundImage=Nn(e,sc,t.backgroundImage),this.backgroundOrigin=Nn(e,C,t.backgroundOrigin),this.backgroundPosition=Nn(e,h,t.backgroundPosition),this.backgroundRepeat=Nn(e,_,t.backgroundRepeat),this.backgroundSize=Nn(e,X,t.backgroundSize),this.borderTopColor=Nn(e,ke,t.borderTopColor),this.borderRightColor=Nn(e,et,t.borderRightColor),this.borderBottomColor=Nn(e,dt,t.borderBottomColor),this.borderLeftColor=Nn(e,ft,t.borderLeftColor),this.borderTopLeftRadius=Nn(e,Ve,t.borderTopLeftRadius),this.borderTopRightRadius=Nn(e,nr,t.borderTopRightRadius),this.borderBottomRightRadius=Nn(e,Zt,t.borderBottomRightRadius),this.borderBottomLeftRadius=Nn(e,or,t.borderBottomLeftRadius),this.borderTopStyle=Nn(e,ar,t.borderTopStyle),this.borderRightStyle=Nn(e,Ir,t.borderRightStyle),this.borderBottomStyle=Nn(e,Zr,t.borderBottomStyle),this.borderLeftStyle=Nn(e,mn,t.borderLeftStyle),this.borderTopWidth=Nn(e,Jr,t.borderTopWidth),this.borderRightWidth=Nn(e,br,t.borderRightWidth),this.borderBottomWidth=Nn(e,en,t.borderBottomWidth),this.borderLeftWidth=Nn(e,In,t.borderLeftWidth),this.boxShadow=Nn(e,xi,t.boxShadow),this.color=Nn(e,Nt,t.color),this.direction=Nn(e,Wt,t.direction),this.display=Nn(e,Cr,t.display),this.float=Nn(e,Pe,t.cssFloat),this.fontFamily=Nn(e,Ot,t.fontFamily),this.fontSize=Nn(e,ir,t.fontSize),this.fontStyle=Nn(e,Tn,t.fontStyle),this.fontVariant=Nn(e,Sr,t.fontVariant),this.fontWeight=Nn(e,wr,t.fontWeight),this.letterSpacing=Nn(e,Ye,t.letterSpacing),this.lineBreak=Nn(e,ot,t.lineBreak),this.lineHeight=Nn(e,gt,t.lineHeight),this.listStyleImage=Nn(e,er,t.listStyleImage),this.listStylePosition=Nn(e,je,t.listStylePosition),this.listStyleType=Nn(e,at,t.listStyleType),this.marginTop=Nn(e,bt,t.marginTop),this.marginRight=Nn(e,Kt,t.marginRight),this.marginBottom=Nn(e,Jt,t.marginBottom),this.marginLeft=Nn(e,rr,t.marginLeft),this.opacity=Nn(e,Ke,t.opacity);var s=Nn(e,dr,t.overflow);this.overflowX=s[0],this.overflowY=s[s.length>1?1:0],this.overflowWrap=Nn(e,Lr,t.overflowWrap),this.paddingTop=Nn(e,Mr,t.paddingTop),this.paddingRight=Nn(e,Yr,t.paddingRight),this.paddingBottom=Nn(e,Qn,t.paddingBottom),this.paddingLeft=Nn(e,Tr,t.paddingLeft),this.paintOrder=Nn(e,Fi,t.paintOrder),this.position=Nn(e,ei,t.position),this.textAlign=Nn(e,Qt,t.textAlign),this.textDecorationColor=Nn(e,lt,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=Nn(e,yt,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=Nn(e,Yn,t.textShadow),this.textTransform=Nn(e,Qr,t.textTransform),this.transform=Nn(e,sn,t.transform),this.transformOrigin=Nn(e,Qe,t.transformOrigin),this.visibility=Nn(e,p,t.visibility),this.webkitTextStrokeColor=Nn(e,os,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Nn(e,fi,t.webkitTextStrokeWidth),this.wordBreak=Nn(e,D,t.wordBreak),this.zIndex=Nn(e,V,t.zIndex)}return i.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},i.prototype.isTransparent=function(){return ia(this.backgroundColor)},i.prototype.isTransformed=function(){return this.transform!==null},i.prototype.isPositioned=function(){return this.position!==0},i.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},i.prototype.isFloating=function(){return this.float!==0},i.prototype.isInlineLevel=function(){return _r(this.display,4)||_r(this.display,33554432)||_r(this.display,268435456)||_r(this.display,536870912)||_r(this.display,67108864)||_r(this.display,134217728)},i}(),ns=function(){function i(e,t){this.content=Nn(e,kt,t.content),this.quotes=Nn(e,pn,t.quotes)}return i}(),Xi=function(){function i(e,t){this.counterIncrement=Nn(e,wn,t.counterIncrement),this.counterReset=Nn(e,xn,t.counterReset)}return i}(),Nn=function(i,e,t){var r=new la,n=t!==null&&typeof t!="undefined"?t.toString():e.initialValue;r.write(n);var s=new ua(r.read());switch(e.type){case 2:var o=s.parseComponentValue();return e.parse(i,oi(o)?o.value:e.initialValue);case 0:return e.parse(i,s.parseComponentValue());case 1:return e.parse(i,s.parseComponentValues());case 4:return s.parseComponentValue();case 3:switch(e.format){case"angle":return ds.parse(i,s.parseComponentValue());case"color":return fs.parse(i,s.parseComponentValue());case"image":return Vo.parse(i,s.parseComponentValue());case"length":var c=s.parseComponentValue();return ta(c)?c:Aa;case"length-percentage":var A=s.parseComponentValue();return ci(A)?A:Aa;case"time":return pe.parse(i,s.parseComponentValue())}break}},qi="data-html2canvas-debug",Js=function(i){var e=i.getAttribute(qi);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Zi=function(i,e){var t=Js(i);return t===1||e===t},Gi=function(){function i(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,Zi(t,3))debugger;this.styles=new Es(e,window.getComputedStyle(t,null)),Bn(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=g(this.context,t),Zi(t,4)&&(this.flags|=16)}return i}(),hs="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ms="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ls=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ni=0;Ni<Ms.length;Ni++)Ls[Ms.charCodeAt(Ni)]=Ni;for(var Ps=function(i){var e=i.length*.75,t=i.length,r,n=0,s,o,c,A;i[i.length-1]==="="&&(e--,i[i.length-2]==="="&&e--);var f=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(e):new Array(e),M=Array.isArray(f)?f:new Uint8Array(f);for(r=0;r<t;r+=4)s=Ls[i.charCodeAt(r)],o=Ls[i.charCodeAt(r+1)],c=Ls[i.charCodeAt(r+2)],A=Ls[i.charCodeAt(r+3)],M[n++]=s<<2|o>>4,M[n++]=(o&15)<<4|c>>2,M[n++]=(c&3)<<6|A&63;return f},Gs=function(i){for(var e=i.length,t=[],r=0;r<e;r+=2)t.push(i[r+1]<<8|i[r]);return t},ga=function(i){for(var e=i.length,t=[],r=0;r<e;r+=4)t.push(i[r+3]<<24|i[r+2]<<16|i[r+1]<<8|i[r]);return t},oa=5,wa=11,Lo=2,go=wa-oa,Ua=65536>>oa,Qa=1<<oa,xa=Qa-1,ra=1024>>oa,Ns=Ua+ra,Uo=Ns,Co=32,Wo=Uo+Co,Qo=65536>>wa,ou=1<<go,_l=ou-1,bs=function(i,e,t){return i.slice?i.slice(e,t):new Uint16Array(Array.prototype.slice.call(i,e,t))},cs=function(i,e,t){return i.slice?i.slice(e,t):new Uint32Array(Array.prototype.slice.call(i,e,t))},ja=function(i,e){var t=Ps(i),r=Array.isArray(t)?ga(t):new Uint32Array(t),n=Array.isArray(t)?Gs(t):new Uint16Array(t),s=24,o=bs(n,s/2,r[4]/2),c=r[5]===2?bs(n,(s+r[4])/2):cs(r,Math.ceil((s+r[4])/4));return new qs(r[0],r[1],r[2],r[3],o,c)},qs=function(){function i(e,t,r,n,s,o){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=s,this.data=o}return i.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>oa],t=(t<<Lo)+(e&xa),this.data[t];if(e<=65535)return t=this.index[Ua+(e-55296>>oa)],t=(t<<Lo)+(e&xa),this.data[t];if(e<this.highStart)return t=Wo-Qo+(e>>wa),t=this.index[t],t+=e>>oa&_l,t=this.index[t],t=(t<<Lo)+(e&xa),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},i}(),$a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ha=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ra=0;Ra<$a.length;Ra++)Ha[$a.charCodeAt(Ra)]=Ra;var ao=1,Oa=2,So=3,Gl=4,Uu=5,ac=7,Zl=8,Cl=9,rl=10,Qu=11,Yo=12,ju=13,_u=14,Nl=15,to=function(i){for(var e=[],t=0,r=i.length;t<r;){var n=i.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var s=i.charCodeAt(t++);(s&64512)===56320?e.push(((n&1023)<<10)+(s&1023)+65536):(e.push(n),t--)}else e.push(n)}return e},Vl=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,i);var t=i.length;if(!t)return"";for(var r=[],n=-1,s="";++n<t;){var o=i[n];o<=65535?r.push(o):(o-=65536,r.push((o>>10)+55296,o%1024+56320)),(n+1===t||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},kl=ja(hs),vo="\xD7",oo="\xF7",oc=function(i){return kl.get(i)},$u=function(i,e,t){var r=t-2,n=e[r],s=e[t-1],o=e[t];if(s===Oa&&o===So)return vo;if(s===Oa||s===So||s===Gl||o===Oa||o===So||o===Gl)return oo;if(s===Zl&&[Zl,Cl,Qu,Yo].indexOf(o)!==-1||(s===Qu||s===Cl)&&(o===Cl||o===rl)||(s===Yo||s===rl)&&o===rl||o===ju||o===Uu||o===ac||s===ao)return vo;if(s===ju&&o===_u){for(;n===Uu;)n=e[--r];if(n===_u)return vo}if(s===Nl&&o===Nl){for(var c=0;n===Nl;)c++,n=e[--r];if(c%2===0)return vo}return oo},ms=function(i){var e=to(i),t=e.length,r=0,n=0,s=e.map(oc);return{next:function(){if(r>=t)return{done:!0,value:null};for(var o=vo;r<t&&(o=$u(e,s,++r))===vo;);if(o!==vo||r===t){var c=Vl.apply(null,e.slice(n,r));return n=r,{value:c,done:!1}}return{done:!0,value:null}}}},lu=function(i){for(var e=ms(i),t=[],r;!(r=e.next()).done;)r.value&&t.push(r.value.slice());return t},uu=function(i){var e=123;if(i.createRange){var t=i.createRange();if(t.getBoundingClientRect){var r=i.createElement("boundtest");r.style.height=e+"px",r.style.display="block",i.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),s=Math.round(n.height);if(i.body.removeChild(r),s===e)return!0}}return!1},Xo=function(i){var e=i.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",i.body.appendChild(e);var t=i.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var r=e.firstChild,n=T(r.data).map(function(A){return l(A)}),s=0,o={},c=n.every(function(A,f){t.setStart(r,s),t.setEnd(r,s+A.length);var M=t.getBoundingClientRect();s+=A.length;var a=M.x>o.x||M.y>o.y;return o=M,f===0?!0:a});return i.body.removeChild(e),c},Cu=function(){return typeof new Image().crossOrigin!="undefined"},Su=function(){return typeof new XMLHttpRequest().responseType=="string"},Wl=function(i){var e=new Image,t=i.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch(n){return!1}return!0},Yl=function(i){return i[0]===0&&i[1]===255&&i[2]===0&&i[3]===255},lc=function(i){var e=i.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,s=e.toDataURL();n.src=s;var o=cu(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),Au(o).then(function(c){r.drawImage(c,0,0);var A=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var f=i.createElement("div");return f.style.backgroundImage="url("+s+")",f.style.height=t+"px",Yl(A)?Au(cu(t,t,0,0,f)):Promise.reject(!1)}).then(function(c){return r.drawImage(c,0,0),Yl(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},cu=function(i,e,t,r,n){var s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),c=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",i.toString()),o.setAttributeNS(null,"height",e.toString()),c.setAttributeNS(null,"width","100%"),c.setAttributeNS(null,"height","100%"),c.setAttributeNS(null,"x",t.toString()),c.setAttributeNS(null,"y",r.toString()),c.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(c),c.appendChild(n),o},Au=function(i){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(i))})},Ba={get SUPPORT_RANGE_BOUNDS(){var i=uu(document);return Object.defineProperty(Ba,"SUPPORT_RANGE_BOUNDS",{value:i}),i},get SUPPORT_WORD_BREAKING(){var i=Ba.SUPPORT_RANGE_BOUNDS&&Xo(document);return Object.defineProperty(Ba,"SUPPORT_WORD_BREAKING",{value:i}),i},get SUPPORT_SVG_DRAWING(){var i=Wl(document);return Object.defineProperty(Ba,"SUPPORT_SVG_DRAWING",{value:i}),i},get SUPPORT_FOREIGNOBJECT_DRAWING(){var i=typeof Array.from=="function"&&typeof window.fetch=="function"?lc(document):Promise.resolve(!1);return Object.defineProperty(Ba,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:i}),i},get SUPPORT_CORS_IMAGES(){var i=Cu();return Object.defineProperty(Ba,"SUPPORT_CORS_IMAGES",{value:i}),i},get SUPPORT_RESPONSE_TYPE(){var i=Su();return Object.defineProperty(Ba,"SUPPORT_RESPONSE_TYPE",{value:i}),i},get SUPPORT_CORS_XHR(){var i="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ba,"SUPPORT_CORS_XHR",{value:i}),i},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var i=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Ba,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:i}),i}},Bo=function(){function i(e,t){this.text=e,this.bounds=t}return i}(),Sl=function(i,e,t,r){var n=nl(e,t),s=[],o=0;return n.forEach(function(c){if(t.textDecorationLine.length||c.trim().length>0)if(Ba.SUPPORT_RANGE_BOUNDS){var A=ws(r,o,c.length).getClientRects();if(A.length>1){var f=Hs(c),M=0;f.forEach(function(u){s.push(new Bo(u,K.fromDOMRectList(i,ws(r,M+o,u.length).getClientRects()))),M+=u.length})}else s.push(new Bo(c,K.fromDOMRectList(i,A)))}else{var a=r.splitText(c.length);s.push(new Bo(c,Bu(i,r))),r=a}else Ba.SUPPORT_RANGE_BOUNDS||(r=r.splitText(c.length));o+=c.length}),s},Bu=function(i,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var n=e.parentNode;if(n){n.replaceChild(r,e);var s=g(i,r);return r.firstChild&&n.replaceChild(r.firstChild,r),s}}return K.EMPTY},ws=function(i,e,t){var r=i.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(i,e),n.setEnd(i,e+t),n},Hs=function(i){if(Ba.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(i)).map(function(t){return t.segment})}return lu(i)},lo=function(i,e){if(Ba.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(i)).map(function(r){return r.segment})}return Iu(i,e)},nl=function(i,e){return e.letterSpacing!==0?Hs(i):lo(i,e)},il=[32,160,4961,65792,65793,4153,4241],Iu=function(i,e){for(var t=mr(i,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],n,s=function(){if(n.value){var o=n.value.slice(),c=T(o),A="";c.forEach(function(f){il.indexOf(f)===-1?A+=l(f):(A.length&&r.push(A),r.push(l(f)),A="")}),A.length&&r.push(A)}};!(n=t.next()).done;)s();return r},du=function(){function i(e,t,r){this.text=Io(t.data,r.textTransform),this.textBounds=Sl(e,this.text,r,t)}return i}(),Io=function(i,e){switch(e){case 1:return i.toLowerCase();case 3:return i.replace(sl,Ml);case 2:return i.toUpperCase();default:return i}},sl=/(^|\s|:|-|\(|\))([a-z])/g,Ml=function(i,e,t){return i.length>0?e+t.toUpperCase():i},Xl=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return e}(Gi),ml=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return e}(Gi),Tu=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this,s=new XMLSerializer,o=g(t,r);return r.setAttribute("width",o.width+"px"),r.setAttribute("height",o.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(s.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return e}(Gi),fu=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.value=r.value,n}return e}(Gi),uc=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return e}(Gi),Hu=[{type:15,flags:0,unit:"px",number:3}],Oc=[{type:16,flags:0,number:50}],Ku=function(i){return i.width>i.height?new K(i.left+(i.width-i.height)/2,i.top,i.height,i.height):i.width<i.height?new K(i.left,i.top+(i.height-i.width)/2,i.width,i.width):i},cc=function(i){var e=i.type===Ac?new Array(i.value.length+1).join("\u2022"):i.value;return e.length===0?i.placeholder||"":e},Du="checkbox",Jl="radio",Ac="password",Fu=707406591,Lu=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=cc(r),(n.type===Du||n.type===Jl)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=Ku(n.bounds)),n.type){case Du:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Hu;break;case Jl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Oc;break}return n}return e}(Gi),ql=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this,s=r.options[r.selectedIndex||0];return n.value=s&&s.text||"",n}return e}(Gi),yo=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.value=r.value,n}return e}(Gi),hu=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=Ae(t,r.contentWindow.document.documentElement);var s=r.contentWindow.document.documentElement?ka(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Ya.TRANSPARENT,o=r.contentWindow.document.body?ka(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):Ya.TRANSPARENT;n.backgroundColor=ia(s)?ia(o)?n.styles.backgroundColor:o:s}}catch(c){}return n}return e}(Gi),zu=["OL","UL","MENU"],gl=function(i,e,t,r){for(var n=e.firstChild,s=void 0;n;n=s)if(s=n.nextSibling,Er(n)&&n.data.trim().length>0)t.textNodes.push(new du(i,n,t.styles));else if(Gr(n))if(Ru(n)&&n.assignedNodes)n.assignedNodes().forEach(function(c){return gl(i,c,t,r)});else{var o=Bl(i,n);o.styles.isVisible()&&(ht(n,o,r)?o.flags|=4:ur(o.styles)&&(o.flags|=2),zu.indexOf(n.tagName)!==-1&&(o.flags|=8),t.elements.push(o),n.slot,n.shadowRoot?gl(i,n.shadowRoot,o,r):!no(n)&&!Zs(n)&&!Ro(n)&&gl(i,n,o,r))}},Bl=function(i,e){return uo(e)?new Xl(i,e):Ta(e)?new ml(i,e):Zs(e)?new Tu(i,e):Pi(e)?new fu(i,e):ts(e)?new uc(i,e):Ss(e)?new Lu(i,e):Ro(e)?new ql(i,e):no(e)?new yo(i,e):co(e)?new hu(i,e):new Gi(i,e)},Ae=function(i,e){var t=Bl(i,e);return t.flags|=4,gl(i,e,t,t),t},ht=function(i,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Ia(i)&&t.styles.isTransparent()},ur=function(i){return i.isPositioned()||i.isFloating()},Er=function(i){return i.nodeType===Node.TEXT_NODE},Gr=function(i){return i.nodeType===Node.ELEMENT_NODE},Bn=function(i){return Gr(i)&&typeof i.style!="undefined"&&!Jn(i)},Jn=function(i){return typeof i.className=="object"},Pi=function(i){return i.tagName==="LI"},ts=function(i){return i.tagName==="OL"},Ss=function(i){return i.tagName==="INPUT"},xs=function(i){return i.tagName==="HTML"},Zs=function(i){return i.tagName==="svg"},Ia=function(i){return i.tagName==="BODY"},Ta=function(i){return i.tagName==="CANVAS"},ro=function(i){return i.tagName==="VIDEO"},uo=function(i){return i.tagName==="IMG"},co=function(i){return i.tagName==="IFRAME"},Ao=function(i){return i.tagName==="STYLE"},al=function(i){return i.tagName==="SCRIPT"},no=function(i){return i.tagName==="TEXTAREA"},Ro=function(i){return i.tagName==="SELECT"},Ru=function(i){return i.tagName==="SLOT"},Gu=function(i){return i.tagName.indexOf("-")>0},Ou=function(){function i(){this.counters={}}return i.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},i.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},i.prototype.pop=function(e){var t=this;e.forEach(function(r){return t.counters[r].pop()})},i.prototype.parse=function(e){var t=this,r=e.counterIncrement,n=e.counterReset,s=!0;r!==null&&r.forEach(function(c){var A=t.counters[c.counter];A&&c.increment!==0&&(s=!1,A.length||A.push(1),A[Math.max(0,A.length-1)]+=c.increment)});var o=[];return s&&n.forEach(function(c){var A=t.counters[c.counter];o.push(c.counter),A||(A=t.counters[c.counter]=[]),A.push(c.reset)}),o},i}(),Zu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Vu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Wu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},bo={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},io=function(i,e,t,r,n,s){return i<e||i>t?bl(i,n,s.length>0):r.integers.reduce(function(o,c,A){for(;i>=c;)i-=c,o+=r.values[A];return o},"")+s},jo=function(i,e,t,r){var n="";do t||i--,n=r(i)+n,i/=e;while(i*e>=e);return n},Ea=function(i,e,t,r,n){var s=t-e+1;return(i<0?"-":"")+(jo(Math.abs(i),s,r,function(o){return l(Math.floor(o%s)+e)})+n)},Il=function(i,e,t){t===void 0&&(t=". ");var r=e.length;return jo(Math.abs(i),r,!1,function(n){return e[Math.floor(n%r)]})+t},fo=1,Ul=2,vl=4,pu=8,_a=function(i,e,t,r,n,s){if(i<-9999||i>9999)return bl(i,4,n.length>0);var o=Math.abs(i),c=n;if(o===0)return e[0]+c;for(var A=0;o>0&&A<=4;A++){var f=o%10;f===0&&_r(s,fo)&&c!==""?c=e[f]+c:f>1||f===1&&A===0||f===1&&A===1&&_r(s,Ul)||f===1&&A===1&&_r(s,vl)&&i>100||f===1&&A>1&&_r(s,pu)?c=e[f]+(A>0?t[A-1]:"")+c:f===1&&A>0&&(c=t[A-1]+c),o=Math.floor(o/10)}return(i<0?r:"")+c},mu="\u5341\u767E\u5343\u842C",dc="\u62FE\u4F70\u4EDF\u842C",fc="\u30DE\u30A4\u30CA\u30B9",yl="\uB9C8\uC774\uB108\uC2A4",bl=function(i,e,t){var r=t?". ":"",n=t?"\u3001":"",s=t?", ":"",o=t?" ":"";switch(e){case 0:return"\u2022"+o;case 1:return"\u25E6"+o;case 2:return"\u25FE"+o;case 5:var c=Ea(i,48,57,!0,r);return c.length<4?"0"+c:c;case 4:return Il(i,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",n);case 6:return io(i,1,3999,Zu,3,r).toLowerCase();case 7:return io(i,1,3999,Zu,3,r);case 8:return Ea(i,945,969,!1,r);case 9:return Ea(i,97,122,!1,r);case 10:return Ea(i,65,90,!1,r);case 11:return Ea(i,1632,1641,!0,r);case 12:case 49:return io(i,1,9999,Vu,3,r);case 35:return io(i,1,9999,Vu,3,r).toLowerCase();case 13:return Ea(i,2534,2543,!0,r);case 14:case 30:return Ea(i,6112,6121,!0,r);case 15:return Il(i,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",n);case 16:return Il(i,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",n);case 17:case 48:return _a(i,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",mu,"\u8CA0",n,Ul|vl|pu);case 47:return _a(i,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",dc,"\u8CA0",n,fo|Ul|vl|pu);case 42:return _a(i,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",mu,"\u8D1F",n,Ul|vl|pu);case 41:return _a(i,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",dc,"\u8D1F",n,fo|Ul|vl|pu);case 26:return _a(i,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",fc,n,0);case 25:return _a(i,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",fc,n,fo|Ul|vl);case 31:return _a(i,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",yl,s,fo|Ul|vl);case 33:return _a(i,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",yl,s,0);case 32:return _a(i,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",yl,s,fo|Ul|vl);case 18:return Ea(i,2406,2415,!0,r);case 20:return io(i,1,19999,bo,3,r);case 21:return Ea(i,2790,2799,!0,r);case 22:return Ea(i,2662,2671,!0,r);case 22:return io(i,1,10999,Wu,3,r);case 23:return Il(i,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Il(i,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Ea(i,3302,3311,!0,r);case 28:return Il(i,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",n);case 29:return Il(i,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",n);case 34:return Ea(i,3792,3801,!0,r);case 37:return Ea(i,6160,6169,!0,r);case 38:return Ea(i,4160,4169,!0,r);case 39:return Ea(i,2918,2927,!0,r);case 40:return Ea(i,1776,1785,!0,r);case 43:return Ea(i,3046,3055,!0,r);case 44:return Ea(i,3174,3183,!0,r);case 45:return Ea(i,3664,3673,!0,r);case 46:return Ea(i,3872,3881,!0,r);case 3:default:return Ea(i,48,57,!0,r)}},Oo="data-html2canvas-ignore",ho=function(){function i(e,t,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ou,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return i.prototype.toIFrame=function(e,t){var r=this,n=eu(e,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var s=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,c=n.contentWindow,A=c.document,f=Ql(n).then(function(){return Fe(r,void 0,void 0,function(){var M,a;return ae(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(Xu),c&&(c.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(c.scrollY!==t.top||c.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(c.scrollX-t.left,c.scrollY-t.top,0,0))),M=this.options.onclone,a=this.clonedReferenceElement,typeof a=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:A.fonts&&A.fonts.ready?[4,A.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Yu(A)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof M=="function"?[2,Promise.resolve().then(function(){return M(A,a)}).then(function(){return n})]:[2,n]}})})});return A.open(),A.write(To(document.doctype)+"<html></html>"),$o(this.referenceElement.ownerDocument,s,o),A.replaceChild(A.adoptNode(this.documentElement),A.documentElement),A.close(),f},i.prototype.createElementClone=function(e){if(Zi(e,2))debugger;if(Ta(e))return this.createCanvasClone(e);if(ro(e))return this.createVideoClone(e);if(Ao(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return uo(t)&&(uo(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),Gu(t)?this.createCustomElementClone(t):t},i.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return gu(e.style,t),t},i.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(s,o){return o&&typeof o.cssText=="string"?s+o.cssText:s},""),n=e.cloneNode(!1);return n.textContent=r,n}}catch(s){if(this.context.logger.error("Unable to access cssRules property",s),s.name!=="SecurityError")throw s}return e.cloneNode(!1)},i.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch(f){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var s=e.getContext("2d"),o=n.getContext("2d");if(o)if(!this.options.allowTaint&&s)o.putImageData(s.getImageData(0,0,e.width,e.height),0,0);else{var c=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(c){var A=c.getContextAttributes();(A==null?void 0:A.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return n}catch(f){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return n},i.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch(s){this.context.logger.info("Unable to clone video as it is tainted",e)}var n=e.ownerDocument.createElement("canvas");return n.width=e.offsetWidth,n.height=e.offsetHeight,n},i.prototype.appendChildNode=function(e,t,r){(!Gr(t)||!al(t)&&!t.hasAttribute(Oo)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Gr(t)||!Ao(t))&&e.appendChild(this.cloneNode(t,r))},i.prototype.cloneChildNodes=function(e,t,r){for(var n=this,s=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;s;s=s.nextSibling)if(Gr(s)&&Ru(s)&&typeof s.assignedNodes=="function"){var o=s.assignedNodes();o.length&&o.forEach(function(c){return n.appendChildNode(t,c,r)})}else this.appendChildNode(t,s,r)},i.prototype.cloneNode=function(e,t){if(Er(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Gr(e)&&(Bn(e)||Jn(e))){var n=this.createElementClone(e);n.style.transitionProperty="none";var s=r.getComputedStyle(e),o=r.getComputedStyle(e,":before"),c=r.getComputedStyle(e,":after");this.referenceElement===e&&Bn(n)&&(this.clonedReferenceElement=n),Ia(n)&&nu(n);var A=this.counters.parse(new Xi(this.context,s)),f=this.resolvePseudoContent(e,n,o,wl.BEFORE);Gu(e)&&(t=!0),ro(e)||this.cloneChildNodes(e,n,t),f&&n.insertBefore(f,n.firstChild);var M=this.resolvePseudoContent(e,n,c,wl.AFTER);return M&&n.appendChild(M),this.counters.pop(A),(s&&(this.options.copyStyles||Jn(e))&&!co(e)||t)&&gu(s,n),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(no(e)||Ro(e))&&(no(n)||Ro(n))&&(n.value=e.value),n}return e.cloneNode(!1)},i.prototype.resolvePseudoContent=function(e,t,r,n){var s=this;if(r){var o=r.content,c=t.ownerDocument;if(!(!c||!o||o==="none"||o==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Xi(this.context,r));var A=new ns(this.context,r),f=c.createElement("html2canvaspseudoelement");gu(r,f),A.content.forEach(function(a){if(a.type===0)f.appendChild(c.createTextNode(a.value));else if(a.type===22){var u=c.createElement("img");u.src=a.value,u.style.opacity="1",f.appendChild(u)}else if(a.type===18){if(a.name==="attr"){var w=a.values.filter(oi);w.length&&f.appendChild(c.createTextNode(e.getAttribute(w[0].value)||""))}else if(a.name==="counter"){var B=a.values.filter(ca),Y=B[0],oe=B[1];if(Y&&oi(Y)){var xe=s.counters.getCounterValue(Y.value),Ne=oe&&oi(oe)?at.parse(s.context,oe.value):3;f.appendChild(c.createTextNode(bl(xe,Ne,!1)))}}else if(a.name==="counters"){var Me=a.values.filter(ca),Y=Me[0],We=Me[1],oe=Me[2];if(Y&&oi(Y)){var ct=s.counters.getCounterValues(Y.value),xt=oe&&oi(oe)?at.parse(s.context,oe.value):3,wt=We&&We.type===0?We.value:"",Et=ct.map(function(Gt){return bl(Gt,xt,!1)}).join(wt);f.appendChild(c.createTextNode(Et))}}}else if(a.type===20)switch(a.value){case"open-quote":f.appendChild(c.createTextNode(yi(A.quotes,s.quoteDepth++,!0)));break;case"close-quote":f.appendChild(c.createTextNode(yi(A.quotes,--s.quoteDepth,!1)));break;default:f.appendChild(c.createTextNode(a.value))}}),f.className=tu+" "+Dl;var M=n===wl.BEFORE?" "+tu:" "+Dl;return Jn(t)?t.className.baseValue+=M:t.className+=M,f}}},i.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},i}(),wl;(function(i){i[i.BEFORE=0]="BEFORE",i[i.AFTER=1]="AFTER"})(wl||(wl={}));var eu=function(i,e){var t=i.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(Oo,"true"),i.body.appendChild(t),t},Tl=function(i){return new Promise(function(e){if(i.complete){e();return}if(!i.src){e();return}i.onload=e,i.onerror=e})},Yu=function(i){return Promise.all([].slice.call(i.images,0).map(Tl))},Ql=function(i){return new Promise(function(e,t){var r=i.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=i.onload=function(){r.onload=i.onload=null;var s=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(s),e(i))},50)}})},so=["all","d","content"],gu=function(i,e){for(var t=i.length-1;t>=0;t--){var r=i.item(t);so.indexOf(r)===-1&&e.style.setProperty(r,i.getPropertyValue(r))}return e},To=function(i){var e="";return i&&(e+="<!DOCTYPE ",i.name&&(e+=i.name),i.internalSubset&&(e+=i.internalSubset),i.publicId&&(e+='"'+i.publicId+'"'),i.systemId&&(e+='"'+i.systemId+'"'),e+=">"),e},$o=function(i,e,t){i&&i.defaultView&&(e!==i.defaultView.pageXOffset||t!==i.defaultView.pageYOffset)&&i.defaultView.scrollTo(e,t)},Xu=function(i){var e=i[0],t=i[1],r=i[2];e.scrollLeft=t,e.scrollTop=r},hc=":before",pc=":after",tu="___html2canvas___pseudoelement_before",Dl="___html2canvas___pseudoelement_after",ru=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,nu=function(i){Ju(i,"."+tu+hc+ru+`
|
|
|
.`+Dl+pc+ru)},Ju=function(i,e){var t=i.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,i.appendChild(r)}},vu=function(){function i(){}return i.getOrigin=function(e){var t=i._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},i.isSameOrigin=function(e){return i.getOrigin(e)===i._origin},i.setContext=function(e){i._link=e.document.createElement("a"),i._origin=i.getOrigin(e.location.href)},i._origin="about:blank",i}(),jl=function(){function i(e,t){this.context=e,this._options=t,this._cache={}}return i.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Xa(e)||va(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},i.prototype.match=function(e){return this._cache[e]},i.prototype.loadImage=function(e){return Fe(this,void 0,void 0,function(){var t,r,n,s,o=this;return ae(this,function(c){switch(c.label){case 0:return t=vu.isSameOrigin(e),r=!ha(e)&&this._options.useCORS===!0&&Ba.SUPPORT_CORS_IMAGES&&!t,n=!ha(e)&&!t&&!Xa(e)&&typeof this._options.proxy=="string"&&Ba.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!ha(e)&&!Xa(e)&&!n&&!r?[2]:(s=e,n?[4,this.proxy(s)]:[3,2]);case 1:s=c.sent(),c.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(A,f){var M=new Image;M.onload=function(){return A(M)},M.onerror=f,(Ka(s)||r)&&(M.crossOrigin="anonymous"),M.src=s,M.complete===!0&&setTimeout(function(){return A(M)},500),o._options.imageTimeout>0&&setTimeout(function(){return f("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,c.sent()]}})})},i.prototype.has=function(e){return typeof this._cache[e]!="undefined"},i.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},i.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=e.substring(0,256);return new Promise(function(s,o){var c=Ba.SUPPORT_RESPONSE_TYPE?"blob":"text",A=new XMLHttpRequest;A.onload=function(){if(A.status===200)if(c==="text")s(A.response);else{var a=new FileReader;a.addEventListener("load",function(){return s(a.result)},!1),a.addEventListener("error",function(u){return o(u)},!1),a.readAsDataURL(A.response)}else o("Failed to proxy resource "+n+" with status code "+A.status)},A.onerror=o;var f=r.indexOf("?")>-1?"&":"?";if(A.open("GET",""+r+f+"url="+encodeURIComponent(e)+"&responseType="+c),c!=="text"&&A instanceof XMLHttpRequest&&(A.responseType=c),t._options.imageTimeout){var M=t._options.imageTimeout;A.timeout=M,A.ontimeout=function(){return o("Timed out ("+M+"ms) proxying "+n)}}A.send()})},i}(),qu=/^data:image\/svg\+xml/i,ol=/^data:image\/.*;base64,/i,xl=/^data:image\/.*/i,va=function(i){return Ba.SUPPORT_SVG_DRAWING||!$l(i)},ha=function(i){return xl.test(i)},Ka=function(i){return ol.test(i)},Xa=function(i){return i.substr(0,4)==="blob"},$l=function(i){return i.substr(-3).toLowerCase()==="svg"||qu.test(i)},Oi=function(){function i(e,t){this.type=0,this.x=e,this.y=t}return i.prototype.add=function(e,t){return new i(this.x+e,this.y+t)},i}(),ll=function(i,e,t){return new Oi(i.x+(e.x-i.x)*t,i.y+(e.y-i.y)*t)},yu=function(){function i(e,t,r,n){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=n}return i.prototype.subdivide=function(e,t){var r=ll(this.start,this.startControl,e),n=ll(this.startControl,this.endControl,e),s=ll(this.endControl,this.end,e),o=ll(r,n,e),c=ll(n,s,e),A=ll(o,c,e);return t?new i(this.start,r,o,A):new i(A,c,s,this.end)},i.prototype.add=function(e,t){return new i(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},i.prototype.reverse=function(){return new i(this.end,this.endControl,this.startControl,this.start)},i}(),Po=function(i){return i.type===1},bc=function(){function i(e){var t=e.styles,r=e.bounds,n=Sa(t.borderTopLeftRadius,r.width,r.height),s=n[0],o=n[1],c=Sa(t.borderTopRightRadius,r.width,r.height),A=c[0],f=c[1],M=Sa(t.borderBottomRightRadius,r.width,r.height),a=M[0],u=M[1],w=Sa(t.borderBottomLeftRadius,r.width,r.height),B=w[0],Y=w[1],oe=[];oe.push((s+A)/r.width),oe.push((B+a)/r.width),oe.push((o+Y)/r.height),oe.push((f+u)/r.height);var xe=Math.max.apply(Math,oe);xe>1&&(s/=xe,o/=xe,A/=xe,f/=xe,a/=xe,u/=xe,B/=xe,Y/=xe);var Ne=r.width-A,Me=r.height-u,We=r.width-a,ct=r.height-Y,xt=t.borderTopWidth,wt=t.borderRightWidth,Et=t.borderBottomWidth,qt=t.borderLeftWidth,Pt=ys(t.paddingTop,e.bounds.width),Gt=ys(t.paddingRight,e.bounds.width),tr=ys(t.paddingBottom,e.bounds.width),Ur=ys(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=s>0||o>0?Us(r.left+qt/3,r.top+xt/3,s-qt/3,o-xt/3,Ts.TOP_LEFT):new Oi(r.left+qt/3,r.top+xt/3),this.topRightBorderDoubleOuterBox=s>0||o>0?Us(r.left+Ne,r.top+xt/3,A-wt/3,f-xt/3,Ts.TOP_RIGHT):new Oi(r.left+r.width-wt/3,r.top+xt/3),this.bottomRightBorderDoubleOuterBox=a>0||u>0?Us(r.left+We,r.top+Me,a-wt/3,u-Et/3,Ts.BOTTOM_RIGHT):new Oi(r.left+r.width-wt/3,r.top+r.height-Et/3),this.bottomLeftBorderDoubleOuterBox=B>0||Y>0?Us(r.left+qt/3,r.top+ct,B-qt/3,Y-Et/3,Ts.BOTTOM_LEFT):new Oi(r.left+qt/3,r.top+r.height-Et/3),this.topLeftBorderDoubleInnerBox=s>0||o>0?Us(r.left+qt*2/3,r.top+xt*2/3,s-qt*2/3,o-xt*2/3,Ts.TOP_LEFT):new Oi(r.left+qt*2/3,r.top+xt*2/3),this.topRightBorderDoubleInnerBox=s>0||o>0?Us(r.left+Ne,r.top+xt*2/3,A-wt*2/3,f-xt*2/3,Ts.TOP_RIGHT):new Oi(r.left+r.width-wt*2/3,r.top+xt*2/3),this.bottomRightBorderDoubleInnerBox=a>0||u>0?Us(r.left+We,r.top+Me,a-wt*2/3,u-Et*2/3,Ts.BOTTOM_RIGHT):new Oi(r.left+r.width-wt*2/3,r.top+r.height-Et*2/3),this.bottomLeftBorderDoubleInnerBox=B>0||Y>0?Us(r.left+qt*2/3,r.top+ct,B-qt*2/3,Y-Et*2/3,Ts.BOTTOM_LEFT):new Oi(r.left+qt*2/3,r.top+r.height-Et*2/3),this.topLeftBorderStroke=s>0||o>0?Us(r.left+qt/2,r.top+xt/2,s-qt/2,o-xt/2,Ts.TOP_LEFT):new Oi(r.left+qt/2,r.top+xt/2),this.topRightBorderStroke=s>0||o>0?Us(r.left+Ne,r.top+xt/2,A-wt/2,f-xt/2,Ts.TOP_RIGHT):new Oi(r.left+r.width-wt/2,r.top+xt/2),this.bottomRightBorderStroke=a>0||u>0?Us(r.left+We,r.top+Me,a-wt/2,u-Et/2,Ts.BOTTOM_RIGHT):new Oi(r.left+r.width-wt/2,r.top+r.height-Et/2),this.bottomLeftBorderStroke=B>0||Y>0?Us(r.left+qt/2,r.top+ct,B-qt/2,Y-Et/2,Ts.BOTTOM_LEFT):new Oi(r.left+qt/2,r.top+r.height-Et/2),this.topLeftBorderBox=s>0||o>0?Us(r.left,r.top,s,o,Ts.TOP_LEFT):new Oi(r.left,r.top),this.topRightBorderBox=A>0||f>0?Us(r.left+Ne,r.top,A,f,Ts.TOP_RIGHT):new Oi(r.left+r.width,r.top),this.bottomRightBorderBox=a>0||u>0?Us(r.left+We,r.top+Me,a,u,Ts.BOTTOM_RIGHT):new Oi(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=B>0||Y>0?Us(r.left,r.top+ct,B,Y,Ts.BOTTOM_LEFT):new Oi(r.left,r.top+r.height),this.topLeftPaddingBox=s>0||o>0?Us(r.left+qt,r.top+xt,Math.max(0,s-qt),Math.max(0,o-xt),Ts.TOP_LEFT):new Oi(r.left+qt,r.top+xt),this.topRightPaddingBox=A>0||f>0?Us(r.left+Math.min(Ne,r.width-wt),r.top+xt,Ne>r.width+wt?0:Math.max(0,A-wt),Math.max(0,f-xt),Ts.TOP_RIGHT):new Oi(r.left+r.width-wt,r.top+xt),this.bottomRightPaddingBox=a>0||u>0?Us(r.left+Math.min(We,r.width-qt),r.top+Math.min(Me,r.height-Et),Math.max(0,a-wt),Math.max(0,u-Et),Ts.BOTTOM_RIGHT):new Oi(r.left+r.width-wt,r.top+r.height-Et),this.bottomLeftPaddingBox=B>0||Y>0?Us(r.left+qt,r.top+Math.min(ct,r.height-Et),Math.max(0,B-qt),Math.max(0,Y-Et),Ts.BOTTOM_LEFT):new Oi(r.left+qt,r.top+r.height-Et),this.topLeftContentBox=s>0||o>0?Us(r.left+qt+Ur,r.top+xt+Pt,Math.max(0,s-(qt+Ur)),Math.max(0,o-(xt+Pt)),Ts.TOP_LEFT):new Oi(r.left+qt+Ur,r.top+xt+Pt),this.topRightContentBox=A>0||f>0?Us(r.left+Math.min(Ne,r.width+qt+Ur),r.top+xt+Pt,Ne>r.width+qt+Ur?0:A-qt+Ur,f-(xt+Pt),Ts.TOP_RIGHT):new Oi(r.left+r.width-(wt+Gt),r.top+xt+Pt),this.bottomRightContentBox=a>0||u>0?Us(r.left+Math.min(We,r.width-(qt+Ur)),r.top+Math.min(Me,r.height+xt+Pt),Math.max(0,a-(wt+Gt)),u-(Et+tr),Ts.BOTTOM_RIGHT):new Oi(r.left+r.width-(wt+Gt),r.top+r.height-(Et+tr)),this.bottomLeftContentBox=B>0||Y>0?Us(r.left+qt+Ur,r.top+ct,Math.max(0,B-(qt+Ur)),Y-(Et+tr),Ts.BOTTOM_LEFT):new Oi(r.left+qt+Ur,r.top+r.height-(Et+tr))}return i}(),Ts;(function(i){i[i.TOP_LEFT=0]="TOP_LEFT",i[i.TOP_RIGHT=1]="TOP_RIGHT",i[i.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",i[i.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ts||(Ts={}));var Us=function(i,e,t,r,n){var s=4*((Math.sqrt(2)-1)/3),o=t*s,c=r*s,A=i+t,f=e+r;switch(n){case Ts.TOP_LEFT:return new yu(new Oi(i,f),new Oi(i,f-c),new Oi(A-o,e),new Oi(A,e));case Ts.TOP_RIGHT:return new yu(new Oi(i,e),new Oi(i+o,e),new Oi(A,f-c),new Oi(A,f));case Ts.BOTTOM_RIGHT:return new yu(new Oi(A,e),new Oi(A,e+c),new Oi(i+o,f),new Oi(i,f));case Ts.BOTTOM_LEFT:default:return new yu(new Oi(A,f),new Oi(A-o,f),new Oi(i,e+c),new Oi(i,e))}},Pu=function(i){return[i.topLeftBorderBox,i.topRightBorderBox,i.bottomRightBorderBox,i.bottomLeftBorderBox]},mc=function(i){return[i.topLeftContentBox,i.topRightContentBox,i.bottomRightContentBox,i.bottomLeftContentBox]},ec=function(i){return[i.topLeftPaddingBox,i.topRightPaddingBox,i.bottomRightPaddingBox,i.bottomLeftPaddingBox]},wc=function(){function i(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return i}(),bu=function(){function i(e,t){this.path=e,this.target=t,this.type=1}return i}(),Pc=function(){function i(e){this.opacity=e,this.type=2,this.target=6}return i}(),zc=function(i){return i.type===0},xc=function(i){return i.type===1},Nc=function(i){return i.type===2},tc=function(i,e){return i.length===e.length?i.some(function(t,r){return t===e[r]}):!1},kc=function(i,e,t,r,n){return i.map(function(s,o){switch(o){case 0:return s.add(e,t);case 1:return s.add(e+r,t);case 2:return s.add(e+r,t+n);case 3:return s.add(e,t+n)}return s})},Gc=function(){function i(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return i}(),Zc=function(){function i(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new bc(this.container),this.container.styles.opacity<1&&this.effects.push(new Pc(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,s=this.container.styles.transform;this.effects.push(new wc(r,n,s))}if(this.container.styles.overflowX!==0){var o=Pu(this.curves),c=ec(this.curves);tc(o,c)?this.effects.push(new bu(o,6)):(this.effects.push(new bu(o,2)),this.effects.push(new bu(c,4)))}}return i.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var s=r.effects.filter(function(A){return!xc(A)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,s),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var o=Pu(r.curves),c=ec(r.curves);tc(o,c)||n.unshift(new bu(c,6))}}else n.unshift.apply(n,s);r=r.parent}return n.filter(function(A){return _r(A.target,e)})},i}(),Ec=function(i,e,t,r){i.container.elements.forEach(function(n){var s=_r(n.flags,4),o=_r(n.flags,2),c=new Zc(n,i);_r(n.styles.display,2048)&&r.push(c);var A=_r(n.flags,8)?[]:r;if(s||o){var f=s||n.styles.isPositioned()?t:e,M=new Gc(c);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var a=n.styles.zIndex.order;if(a<0){var u=0;f.negativeZIndex.some(function(B,Y){return a>B.element.container.styles.zIndex.order?(u=Y,!1):u>0}),f.negativeZIndex.splice(u,0,M)}else if(a>0){var w=0;f.positiveZIndex.some(function(B,Y){return a>=B.element.container.styles.zIndex.order?(w=Y+1,!1):w>0}),f.positiveZIndex.splice(w,0,M)}else f.zeroOrAutoZIndexOrTransformedOrOpacity.push(M)}else n.styles.isFloating()?f.nonPositionedFloats.push(M):f.nonPositionedInlineLevel.push(M);Ec(c,M,s?M:t,A)}else n.styles.isInlineLevel()?e.inlineLevel.push(c):e.nonInlineLevel.push(c),Ec(c,e,t,A);_r(n.flags,8)&&Vc(n,A)})},Vc=function(i,e){for(var t=i instanceof uc?i.start:1,r=i instanceof uc?i.reversed:!1,n=0;n<e.length;n++){var s=e[n];s.container instanceof fu&&typeof s.container.value=="number"&&s.container.value!==0&&(t=s.container.value),s.listValue=bl(t,s.container.styles.listStyleType,!0),t+=r?-1:1}},iA=function(i){var e=new Zc(i,null),t=new Gc(e),r=[];return Ec(e,t,t,r),Vc(e.container,r),t},Mc=function(i,e){switch(e){case 0:return wo(i.topLeftBorderBox,i.topLeftPaddingBox,i.topRightBorderBox,i.topRightPaddingBox);case 1:return wo(i.topRightBorderBox,i.topRightPaddingBox,i.bottomRightBorderBox,i.bottomRightPaddingBox);case 2:return wo(i.bottomRightBorderBox,i.bottomRightPaddingBox,i.bottomLeftBorderBox,i.bottomLeftPaddingBox);case 3:default:return wo(i.bottomLeftBorderBox,i.bottomLeftPaddingBox,i.topLeftBorderBox,i.topLeftPaddingBox)}},sA=function(i,e){switch(e){case 0:return wo(i.topLeftBorderBox,i.topLeftBorderDoubleOuterBox,i.topRightBorderBox,i.topRightBorderDoubleOuterBox);case 1:return wo(i.topRightBorderBox,i.topRightBorderDoubleOuterBox,i.bottomRightBorderBox,i.bottomRightBorderDoubleOuterBox);case 2:return wo(i.bottomRightBorderBox,i.bottomRightBorderDoubleOuterBox,i.bottomLeftBorderBox,i.bottomLeftBorderDoubleOuterBox);case 3:default:return wo(i.bottomLeftBorderBox,i.bottomLeftBorderDoubleOuterBox,i.topLeftBorderBox,i.topLeftBorderDoubleOuterBox)}},aA=function(i,e){switch(e){case 0:return wo(i.topLeftBorderDoubleInnerBox,i.topLeftPaddingBox,i.topRightBorderDoubleInnerBox,i.topRightPaddingBox);case 1:return wo(i.topRightBorderDoubleInnerBox,i.topRightPaddingBox,i.bottomRightBorderDoubleInnerBox,i.bottomRightPaddingBox);case 2:return wo(i.bottomRightBorderDoubleInnerBox,i.bottomRightPaddingBox,i.bottomLeftBorderDoubleInnerBox,i.bottomLeftPaddingBox);case 3:default:return wo(i.bottomLeftBorderDoubleInnerBox,i.bottomLeftPaddingBox,i.topLeftBorderDoubleInnerBox,i.topLeftPaddingBox)}},Uc=function(i,e){switch(e){case 0:return rc(i.topLeftBorderStroke,i.topRightBorderStroke);case 1:return rc(i.topRightBorderStroke,i.bottomRightBorderStroke);case 2:return rc(i.bottomRightBorderStroke,i.bottomLeftBorderStroke);case 3:default:return rc(i.bottomLeftBorderStroke,i.topLeftBorderStroke)}},rc=function(i,e){var t=[];return Po(i)?t.push(i.subdivide(.5,!1)):t.push(i),Po(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},wo=function(i,e,t,r){var n=[];return Po(i)?n.push(i.subdivide(.5,!1)):n.push(i),Po(t)?n.push(t.subdivide(.5,!0)):n.push(t),Po(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Po(e)?n.push(e.subdivide(.5,!1).reverse()):n.push(e),n},Wc=function(i){var e=i.bounds,t=i.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Nu=function(i){var e=i.styles,t=i.bounds,r=ys(e.paddingLeft,t.width),n=ys(e.paddingRight,t.width),s=ys(e.paddingTop,t.width),o=ys(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,s+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+n),-(e.borderTopWidth+e.borderBottomWidth+s+o))},Yc=function(i,e){return i===0?e.bounds:i===2?Nu(e):Wc(e)},oA=function(i,e){return i===0?e.bounds:i===2?Nu(e):Wc(e)},Qc=function(i,e,t){var r=Yc(No(i.styles.backgroundOrigin,e),i),n=oA(No(i.styles.backgroundClip,e),i),s=iu(No(i.styles.backgroundSize,e),t,r),o=s[0],c=s[1],A=Sa(No(i.styles.backgroundPosition,e),r.width-o,r.height-c),f=Fl(No(i.styles.backgroundRepeat,e),A,s,r,n),M=Math.round(r.left+A[0]),a=Math.round(r.top+A[1]);return[f,M,a,o,c]},nc=function(i){return oi(i)&&i.value===ie.AUTO},gc=function(i){return typeof i=="number"},iu=function(i,e,t){var r=e[0],n=e[1],s=e[2],o=i[0],c=i[1];if(!o)return[0,0];if(ci(o)&&c&&ci(c))return[ys(o,t.width),ys(c,t.height)];var A=gc(s);if(oi(o)&&(o.value===ie.CONTAIN||o.value===ie.COVER)){if(gc(s)){var f=t.width/t.height;return f<s!=(o.value===ie.COVER)?[t.width,t.width/s]:[t.height*s,t.height]}return[t.width,t.height]}var M=gc(r),a=gc(n),u=M||a;if(nc(o)&&(!c||nc(c))){if(M&&a)return[r,n];if(!A&&!u)return[t.width,t.height];if(u&&A){var w=M?r:n*s,B=a?n:r/s;return[w,B]}var Y=M?r:t.width,oe=a?n:t.height;return[Y,oe]}if(A){var xe=0,Ne=0;return ci(o)?xe=ys(o,t.width):ci(c)&&(Ne=ys(c,t.height)),nc(o)?xe=Ne*s:(!c||nc(c))&&(Ne=xe/s),[xe,Ne]}var Me=null,We=null;if(ci(o)?Me=ys(o,t.width):c&&ci(c)&&(We=ys(c,t.height)),Me!==null&&(!c||nc(c))&&(We=M&&a?Me/r*n:t.height),We!==null&&nc(o)&&(Me=M&&a?We/n*r:t.width),Me!==null&&We!==null)return[Me,We];throw new Error("Unable to calculate background-size for element")},No=function(i,e){var t=i[e];return typeof t=="undefined"?i[0]:t},Fl=function(i,e,t,r,n){var s=e[0],o=e[1],c=t[0],A=t[1];switch(i){case 2:return[new Oi(Math.round(r.left),Math.round(r.top+o)),new Oi(Math.round(r.left+r.width),Math.round(r.top+o)),new Oi(Math.round(r.left+r.width),Math.round(A+r.top+o)),new Oi(Math.round(r.left),Math.round(A+r.top+o))];case 3:return[new Oi(Math.round(r.left+s),Math.round(r.top)),new Oi(Math.round(r.left+s+c),Math.round(r.top)),new Oi(Math.round(r.left+s+c),Math.round(r.height+r.top)),new Oi(Math.round(r.left+s),Math.round(r.height+r.top))];case 1:return[new Oi(Math.round(r.left+s),Math.round(r.top+o)),new Oi(Math.round(r.left+s+c),Math.round(r.top+o)),new Oi(Math.round(r.left+s+c),Math.round(r.top+o+A)),new Oi(Math.round(r.left+s),Math.round(r.top+o+A))];default:return[new Oi(Math.round(n.left),Math.round(n.top)),new Oi(Math.round(n.left+n.width),Math.round(n.top)),new Oi(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Oi(Math.round(n.left),Math.round(n.height+n.top))]}},Xc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ic="Hidden Text",wu=function(){function i(e){this._data={},this._document=e}return i.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),s=this._document.createElement("span"),o=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",o.appendChild(r),n.src=Xc,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",s.style.fontFamily=e,s.style.fontSize=t,s.style.margin="0",s.style.padding="0",s.appendChild(this._document.createTextNode(ic)),r.appendChild(s),r.appendChild(n);var c=n.offsetTop-s.offsetTop+2;r.removeChild(s),r.appendChild(this._document.createTextNode(ic)),r.style.lineHeight="normal",n.style.verticalAlign="super";var A=n.offsetTop-r.offsetTop+2;return o.removeChild(r),{baseline:c,middle:A}},i.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]=="undefined"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},i}(),ul=function(){function i(e,t){this.context=e,this.options=t}return i}(),lA=1e4,uA=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new wu(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},e.prototype.applyEffect=function(t){this.ctx.save(),Nc(t)&&(this.ctx.globalAlpha=t.opacity),zc(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),xc(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Fe(this,void 0,void 0,function(){var r;return ae(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Fe(this,void 0,void 0,function(){return ae(this,function(r){switch(r.label){case 0:if(_r(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,n){var s=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var o=Hs(t.text);o.reduce(function(c,A){return s.ctx.fillText(A,c,t.bounds.top+n),c+s.ctx.measureText(A).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(o){return o==="normal"||o==="small-caps"}).join(""),n=cA(t.fontFamily).join(", "),s=Xs(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,s,n].join(" "),n,s]},e.prototype.renderTextNode=function(t,r){return Fe(this,void 0,void 0,function(){var n,s,o,c,A,f,M,a,u=this;return ae(this,function(w){return n=this.createFontStyle(r),s=n[0],o=n[1],c=n[2],this.ctx.font=s,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",A=this.fontMetrics.getMetrics(o,c),f=A.baseline,M=A.middle,a=r.paintOrder,t.textBounds.forEach(function(B){a.forEach(function(Y){switch(Y){case 0:u.ctx.fillStyle=Fs(r.color),u.renderTextWithLetterSpacing(B,r.letterSpacing,f);var oe=r.textShadow;oe.length&&B.text.trim().length&&(oe.slice(0).reverse().forEach(function(xe){u.ctx.shadowColor=Fs(xe.color),u.ctx.shadowOffsetX=xe.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=xe.offsetY.number*u.options.scale,u.ctx.shadowBlur=xe.blur.number,u.renderTextWithLetterSpacing(B,r.letterSpacing,f)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),r.textDecorationLine.length&&(u.ctx.fillStyle=Fs(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(xe){switch(xe){case 1:u.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top+f),B.bounds.width,1);break;case 2:u.ctx.fillRect(B.bounds.left,Math.round(B.bounds.top),B.bounds.width,1);break;case 3:u.ctx.fillRect(B.bounds.left,Math.ceil(B.bounds.top+M),B.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&B.text.trim().length&&(u.ctx.strokeStyle=Fs(r.webkitTextStrokeColor),u.ctx.lineWidth=r.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(B.text,B.bounds.left,B.bounds.top+f)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var s=Nu(t),o=ec(r);this.path(o),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,s.left,s.top,s.width,s.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Fe(this,void 0,void 0,function(){var r,n,s,o,c,A,Ne,Ne,f,M,a,u,We,w,B,ct,Y,oe,xe,Ne,Me,We,ct;return ae(this,function(xt){switch(xt.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,s=r.styles,o=0,c=r.textNodes,xt.label=1;case 1:return o<c.length?(A=c[o],[4,this.renderTextNode(A,s)]):[3,4];case 2:xt.sent(),xt.label=3;case 3:return o++,[3,1];case 4:if(!(r instanceof Xl))return[3,8];xt.label=5;case 5:return xt.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return Ne=xt.sent(),this.renderReplacedElement(r,n,Ne),[3,8];case 7:return xt.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof ml&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Tu))return[3,12];xt.label=9;case 9:return xt.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return Ne=xt.sent(),this.renderReplacedElement(r,n,Ne),[3,12];case 11:return xt.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof hu&&r.tree?(f=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,f.render(r.tree)]):[3,14];case 13:M=xt.sent(),r.width&&r.height&&this.ctx.drawImage(M,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),xt.label=14;case 14:if(r instanceof Lu&&(a=Math.min(r.bounds.width,r.bounds.height),r.type===Du?r.checked&&(this.ctx.save(),this.path([new Oi(r.bounds.left+a*.39363,r.bounds.top+a*.79),new Oi(r.bounds.left+a*.16,r.bounds.top+a*.5549),new Oi(r.bounds.left+a*.27347,r.bounds.top+a*.44071),new Oi(r.bounds.left+a*.39694,r.bounds.top+a*.5649),new Oi(r.bounds.left+a*.72983,r.bounds.top+a*.23),new Oi(r.bounds.left+a*.84,r.bounds.top+a*.34085),new Oi(r.bounds.left+a*.39363,r.bounds.top+a*.79)]),this.ctx.fillStyle=Fs(Fu),this.ctx.fill(),this.ctx.restore()):r.type===Jl&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+a/2,r.bounds.top+a/2,a/4,0,Math.PI*2,!0),this.ctx.fillStyle=Fs(Fu),this.ctx.fill(),this.ctx.restore())),jc(r)&&r.value.length){switch(u=this.createFontStyle(s),We=u[0],w=u[1],B=this.fontMetrics.getMetrics(We,w).baseline,this.ctx.font=We,this.ctx.fillStyle=Fs(s.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Hc(r.styles.textAlign),ct=Nu(r),Y=0,r.styles.textAlign){case 1:Y+=ct.width/2;break;case 2:Y+=ct.width;break}oe=ct.add(Y,0,0,-ct.height/2+1),this.ctx.save(),this.path([new Oi(ct.left,ct.top),new Oi(ct.left+ct.width,ct.top),new Oi(ct.left+ct.width,ct.top+ct.height),new Oi(ct.left,ct.top+ct.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Bo(r.value,oe),s.letterSpacing,B),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!_r(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(xe=r.styles.listStyleImage,xe.type!==0)return[3,18];Ne=void 0,Me=xe.url,xt.label=15;case 15:return xt.trys.push([15,17,,18]),[4,this.context.cache.match(Me)];case 16:return Ne=xt.sent(),this.ctx.drawImage(Ne,r.bounds.left-(Ne.width+10),r.bounds.top),[3,18];case 17:return xt.sent(),this.context.logger.error("Error loading list-style-image "+Me),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(We=this.createFontStyle(s)[0],this.ctx.font=We,this.ctx.fillStyle=Fs(s.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",ct=new K(r.bounds.left,r.bounds.top+ys(r.styles.paddingTop,r.bounds.width),r.bounds.width,Ft(s.lineHeight,s.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Bo(t.listValue,ct),s.letterSpacing,Ft(s.lineHeight,s.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),xt.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return Fe(this,void 0,void 0,function(){var r,n,xe,s,o,xe,c,A,xe,f,M,xe,a,u,xe,w,B,xe,Y,oe,xe;return ae(this,function(Ne){switch(Ne.label){case 0:if(_r(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:Ne.sent(),r=0,n=t.negativeZIndex,Ne.label=2;case 2:return r<n.length?(xe=n[r],[4,this.renderStack(xe)]):[3,5];case 3:Ne.sent(),Ne.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:Ne.sent(),s=0,o=t.nonInlineLevel,Ne.label=7;case 7:return s<o.length?(xe=o[s],[4,this.renderNode(xe)]):[3,10];case 8:Ne.sent(),Ne.label=9;case 9:return s++,[3,7];case 10:c=0,A=t.nonPositionedFloats,Ne.label=11;case 11:return c<A.length?(xe=A[c],[4,this.renderStack(xe)]):[3,14];case 12:Ne.sent(),Ne.label=13;case 13:return c++,[3,11];case 14:f=0,M=t.nonPositionedInlineLevel,Ne.label=15;case 15:return f<M.length?(xe=M[f],[4,this.renderStack(xe)]):[3,18];case 16:Ne.sent(),Ne.label=17;case 17:return f++,[3,15];case 18:a=0,u=t.inlineLevel,Ne.label=19;case 19:return a<u.length?(xe=u[a],[4,this.renderNode(xe)]):[3,22];case 20:Ne.sent(),Ne.label=21;case 21:return a++,[3,19];case 22:w=0,B=t.zeroOrAutoZIndexOrTransformedOrOpacity,Ne.label=23;case 23:return w<B.length?(xe=B[w],[4,this.renderStack(xe)]):[3,26];case 24:Ne.sent(),Ne.label=25;case 25:return w++,[3,23];case 26:Y=0,oe=t.positiveZIndex,Ne.label=27;case 27:return Y<oe.length?(xe=oe[Y],[4,this.renderStack(xe)]):[3,30];case 28:Ne.sent(),Ne.label=29;case 29:return Y++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var r=this;t.forEach(function(n,s){var o=Po(n)?n.start:n;s===0?r.ctx.moveTo(o.x,o.y):r.ctx.lineTo(o.x,o.y),Po(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},e.prototype.renderRepeat=function(t,r,n,s){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,s),this.ctx.fill(),this.ctx.translate(-n,-s)},e.prototype.resizeImage=function(t,r,n){var s;if(t.width===r&&t.height===n)return t;var o=(s=this.canvas.ownerDocument)!==null&&s!==void 0?s:document,c=o.createElement("canvas");c.width=Math.max(1,r),c.height=Math.max(1,n);var A=c.getContext("2d");return A.drawImage(t,0,0,t.width,t.height,0,0,r,n),c},e.prototype.renderBackgroundImage=function(t){return Fe(this,void 0,void 0,function(){var r,n,s,o,c,A;return ae(this,function(f){switch(f.label){case 0:r=t.styles.backgroundImage.length-1,n=function(M){var a,u,w,Pt,An,dn,Ur,Wr,Et,B,Pt,An,dn,Ur,Wr,Y,oe,xe,Ne,Me,We,ct,xt,wt,Et,qt,Pt,Gt,tr,Ur,Wr,zr,An,dn,Wn,jr,Mn,Ii,Ei,Si,Ki,zi;return ae(this,function(ki){switch(ki.label){case 0:if(M.type!==0)return[3,5];a=void 0,u=M.url,ki.label=1;case 1:return ki.trys.push([1,3,,4]),[4,s.context.cache.match(u)];case 2:return a=ki.sent(),[3,4];case 3:return ki.sent(),s.context.logger.error("Error loading background-image "+u),[3,4];case 4:return a&&(w=Qc(t,r,[a.width,a.height,a.width/a.height]),Pt=w[0],An=w[1],dn=w[2],Ur=w[3],Wr=w[4],Et=s.ctx.createPattern(s.resizeImage(a,Ur,Wr),"repeat"),s.renderRepeat(Pt,Et,An,dn)),[3,6];case 5:au(M)?(B=Qc(t,r,[null,null,null]),Pt=B[0],An=B[1],dn=B[2],Ur=B[3],Wr=B[4],Y=Ma(M.angle,Ur,Wr),oe=Y[0],xe=Y[1],Ne=Y[2],Me=Y[3],We=Y[4],ct=document.createElement("canvas"),ct.width=Ur,ct.height=Wr,xt=ct.getContext("2d"),wt=xt.createLinearGradient(xe,Me,Ne,We),pl(M.stops,oe).forEach(function(Qs){return wt.addColorStop(Qs.stop,Fs(Qs.color))}),xt.fillStyle=wt,xt.fillRect(0,0,Ur,Wr),Ur>0&&Wr>0&&(Et=s.ctx.createPattern(ct,"repeat"),s.renderRepeat(Pt,Et,An,dn))):Pl(M)&&(qt=Qc(t,r,[null,null,null]),Pt=qt[0],Gt=qt[1],tr=qt[2],Ur=qt[3],Wr=qt[4],zr=M.position.length===0?[ko]:M.position,An=ys(zr[0],Ur),dn=ys(zr[zr.length-1],Wr),Wn=_s(M,An,dn,Ur,Wr),jr=Wn[0],Mn=Wn[1],jr>0&&Mn>0&&(Ii=s.ctx.createRadialGradient(Gt+An,tr+dn,0,Gt+An,tr+dn,jr),pl(M.stops,jr*2).forEach(function(Qs){return Ii.addColorStop(Qs.stop,Fs(Qs.color))}),s.path(Pt),s.ctx.fillStyle=Ii,jr!==Mn?(Ei=t.bounds.left+.5*t.bounds.width,Si=t.bounds.top+.5*t.bounds.height,Ki=Mn/jr,zi=1/Ki,s.ctx.save(),s.ctx.translate(Ei,Si),s.ctx.transform(1,0,0,Ki,0,0),s.ctx.translate(-Ei,-Si),s.ctx.fillRect(Gt,zi*(tr-Si)+Si,Ur,Wr*zi),s.ctx.restore()):s.ctx.fill())),ki.label=6;case 6:return r--,[2]}})},s=this,o=0,c=t.styles.backgroundImage.slice(0).reverse(),f.label=1;case 1:return o<c.length?(A=c[o],[5,n(A)]):[3,4];case 2:f.sent(),f.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,r,n){return Fe(this,void 0,void 0,function(){return ae(this,function(s){return this.path(Mc(n,r)),this.ctx.fillStyle=Fs(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,r,n,s){return Fe(this,void 0,void 0,function(){var o,c;return ae(this,function(A){switch(A.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,s)]:[3,2];case 1:return A.sent(),[2];case 2:return o=sA(s,n),this.path(o),this.ctx.fillStyle=Fs(t),this.ctx.fill(),c=aA(s,n),this.path(c),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return Fe(this,void 0,void 0,function(){var r,n,s,o,c,A,f,M,a=this;return ae(this,function(u){switch(u.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!ia(r.backgroundColor)||r.backgroundImage.length,s=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],o=$c(No(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),ia(r.backgroundColor)||(this.ctx.fillStyle=Fs(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(w){a.ctx.save();var B=Pu(t.curves),Y=w.inset?0:lA,oe=kc(B,-Y+(w.inset?1:-1)*w.spread.number,(w.inset?1:-1)*w.spread.number,w.spread.number*(w.inset?-2:2),w.spread.number*(w.inset?-2:2));w.inset?(a.path(B),a.ctx.clip(),a.mask(oe)):(a.mask(B),a.ctx.clip(),a.path(oe)),a.ctx.shadowOffsetX=w.offsetX.number+Y,a.ctx.shadowOffsetY=w.offsetY.number,a.ctx.shadowColor=Fs(w.color),a.ctx.shadowBlur=w.blur.number,a.ctx.fillStyle=w.inset?Fs(w.color):"rgba(0,0,0,1)",a.ctx.fill(),a.ctx.restore()}),u.label=2;case 2:c=0,A=0,f=s,u.label=3;case 3:return A<f.length?(M=f[A],M.style!==0&&!ia(M.color)&&M.width>0?M.style!==2?[3,5]:[4,this.renderDashedDottedBorder(M.color,M.width,c,t.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return M.style!==3?[3,7]:[4,this.renderDashedDottedBorder(M.color,M.width,c,t.curves,3)];case 6:return u.sent(),[3,11];case 7:return M.style!==4?[3,9]:[4,this.renderDoubleBorder(M.color,M.width,c,t.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(M.color,c,t.curves)];case 10:u.sent(),u.label=11;case 11:c++,u.label=12;case 12:return A++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,n,s,o){return Fe(this,void 0,void 0,function(){var c,A,f,M,a,u,w,B,Y,oe,xe,Ne,Me,We,ct,xt,ct,xt;return ae(this,function(wt){return this.ctx.save(),c=Uc(s,n),A=Mc(s,n),o===2&&(this.path(A),this.ctx.clip()),Po(A[0])?(f=A[0].start.x,M=A[0].start.y):(f=A[0].x,M=A[0].y),Po(A[1])?(a=A[1].end.x,u=A[1].end.y):(a=A[1].x,u=A[1].y),n===0||n===2?w=Math.abs(f-a):w=Math.abs(M-u),this.ctx.beginPath(),o===3?this.formatPath(c):this.formatPath(A.slice(0,2)),B=r<3?r*3:r*2,Y=r<3?r*2:r,o===3&&(B=r,Y=r),oe=!0,w<=B*2?oe=!1:w<=B*2+Y?(xe=w/(2*B+Y),B*=xe,Y*=xe):(Ne=Math.floor((w+Y)/(B+Y)),Me=(w-Ne*B)/(Ne-1),We=(w-(Ne+1)*B)/Ne,Y=We<=0||Math.abs(Y-Me)<Math.abs(Y-We)?Me:We),oe&&(o===3?this.ctx.setLineDash([0,B+Y]):this.ctx.setLineDash([B,Y])),o===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Fs(t),this.ctx.stroke(),this.ctx.setLineDash([]),o===2&&(Po(A[0])&&(ct=A[3],xt=A[0],this.ctx.beginPath(),this.formatPath([new Oi(ct.end.x,ct.end.y),new Oi(xt.start.x,xt.start.y)]),this.ctx.stroke()),Po(A[1])&&(ct=A[1],xt=A[2],this.ctx.beginPath(),this.formatPath([new Oi(ct.end.x,ct.end.y),new Oi(xt.start.x,xt.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return Fe(this,void 0,void 0,function(){var r;return ae(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Fs(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=iA(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(ul),jc=function(i){return i instanceof yo||i instanceof ql?!0:i instanceof Lu&&i.type!==Jl&&i.type!==Du},$c=function(i,e){switch(i){case 0:return Pu(e);case 2:return mc(e);case 1:default:return ec(e)}},Hc=function(i){switch(i){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Jc=["-apple-system","system-ui"],cA=function(i){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?i.filter(function(e){return Jc.indexOf(e)===-1}):i},_c=function(i){E(e,i);function e(t,r){var n=i.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return e.prototype.render=function(t){return Fe(this,void 0,void 0,function(){var r,n;return ae(this,function(s){switch(s.label){case 0:return r=cu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Cc(r)];case 1:return n=s.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Fs(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(ul),Cc=function(i){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(i))})},vc=function(){function i(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return i.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Re([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},i.prototype.getTime=function(){return Date.now()-this.start},i.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Re([this.id,this.getTime()+"ms"],e))},i.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Re([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},i.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Re([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},i.instances={},i}(),Sc=function(){function i(e,t){var r;this.windowBounds=t,this.instanceName="#"+i.instanceCount++,this.logger=new vc({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new jl(this,e)}return i.instanceCount=1,i}(),Bc=function(i,e){return e===void 0&&(e={}),AA(i,e)};typeof window!="undefined"&&vu.setContext(window);var AA=function(i,e){return Fe(void 0,void 0,void 0,function(){var t,r,n,s,o,c,A,f,M,a,u,w,B,Y,oe,xe,Ne,Me,We,ct,wt,xt,wt,Et,qt,Pt,Gt,tr,Ur,Wr,zr,An,dn,Wn,jr,Mn,Ii,Ei,Si,Ki;return ae(this,function(zi){switch(zi.label){case 0:if(!i||typeof i!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=i.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(Et=e.allowTaint)!==null&&Et!==void 0?Et:!1,imageTimeout:(qt=e.imageTimeout)!==null&&qt!==void 0?qt:15e3,proxy:e.proxy,useCORS:(Pt=e.useCORS)!==null&&Pt!==void 0?Pt:!1},s=le({logging:(Gt=e.logging)!==null&&Gt!==void 0?Gt:!0,cache:e.cache},n),o={windowWidth:(tr=e.windowWidth)!==null&&tr!==void 0?tr:r.innerWidth,windowHeight:(Ur=e.windowHeight)!==null&&Ur!==void 0?Ur:r.innerHeight,scrollX:(Wr=e.scrollX)!==null&&Wr!==void 0?Wr:r.pageXOffset,scrollY:(zr=e.scrollY)!==null&&zr!==void 0?zr:r.pageYOffset},c=new K(o.scrollX,o.scrollY,o.windowWidth,o.windowHeight),A=new Sc(s,c),f=(An=e.foreignObjectRendering)!==null&&An!==void 0?An:!1,M={allowTaint:(dn=e.allowTaint)!==null&&dn!==void 0?dn:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:f,copyStyles:f},A.logger.debug("Starting document clone with size "+c.width+"x"+c.height+" scrolled to "+-c.left+","+-c.top),a=new ho(A,i,M),u=a.clonedReferenceElement,u?[4,a.toIFrame(t,c)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=zi.sent(),B=Ia(u)||xs(u)?R(u.ownerDocument):g(A,u),Y=B.width,oe=B.height,xe=B.left,Ne=B.top,Me=su(A,u,e.backgroundColor),We={canvas:e.canvas,backgroundColor:Me,scale:(jr=(Wn=e.scale)!==null&&Wn!==void 0?Wn:r.devicePixelRatio)!==null&&jr!==void 0?jr:1,x:((Mn=e.x)!==null&&Mn!==void 0?Mn:0)+xe,y:((Ii=e.y)!==null&&Ii!==void 0?Ii:0)+Ne,width:(Ei=e.width)!==null&&Ei!==void 0?Ei:Math.ceil(Y),height:(Si=e.height)!==null&&Si!==void 0?Si:Math.ceil(oe)},f?(A.logger.debug("Document cloned, using foreign object rendering"),wt=new _c(A,We),[4,wt.render(u)]):[3,3];case 2:return ct=zi.sent(),[3,5];case 3:return A.logger.debug("Document cloned, element located at "+xe+","+Ne+" with size "+Y+"x"+oe+" using computed rendering"),A.logger.debug("Starting DOM parsing"),xt=Ae(A,u),Me===xt.styles.backgroundColor&&(xt.styles.backgroundColor=Ya.TRANSPARENT),A.logger.debug("Starting renderer for element at "+We.x+","+We.y+" with size "+We.width+"x"+We.height),wt=new uA(A,We),[4,wt.render(xt)];case 4:ct=zi.sent(),zi.label=5;case 5:return(!((Ki=e.removeContainer)!==null&&Ki!==void 0)||Ki)&&(ho.destroy(w)||A.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),A.logger.debug("Finished rendering"),[2,ct]}})})},su=function(i,e,t){var r=e.ownerDocument,n=r.documentElement?ka(i,getComputedStyle(r.documentElement).backgroundColor):Ya.TRANSPARENT,s=r.body?ka(i,getComputedStyle(r.body).backgroundColor):Ya.TRANSPARENT,o=typeof t=="string"?ka(i,t):t===null?Ya.TRANSPARENT:4294967295;return e===r.documentElement?ia(n)?ia(s)?o:s:n:o};return Bc})},44164:function(tn,Mt,E){var le=E(97671);(function(ae,Re){tn.exports=Re(E(7348),E(64270))})(self,function(Fe,ae){return function(){var Re={"./src/plugin/hyperlinks.js":function(T,l,d){"use strict";d.r(l);var N=d("./node_modules/core-js/modules/web.dom-collections.for-each.js"),v=d.n(N),m=d("./node_modules/core-js/modules/es.string.link.js"),b=d.n(m),I=d("./src/worker.js"),L=d("./src/utils.js"),z=[],P={toContainer:I.default.prototype.toContainer,toPdf:I.default.prototype.toPdf};I.default.prototype.toContainer=function(){return P.toContainer.call(this).then(function(){if(this.opt.enableLinks){var te=this.prop.container,H=te.querySelectorAll("a"),G=(0,L.unitConvert)(te.getBoundingClientRect(),this.prop.pageSize.k);z=[],Array.prototype.forEach.call(H,function(ce){for(var q=ce.getClientRects(),ye=0;ye<q.length;ye++){var _e=(0,L.unitConvert)(q[ye],this.prop.pageSize.k);_e.left-=G.left,_e.top-=G.top;var Le=Math.floor(_e.top/this.prop.pageSize.inner.height)+1,se=this.opt.margin[0]+_e.top%this.prop.pageSize.inner.height,be=this.opt.margin[1]+_e.left;z.push({page:Le,top:se,left:be,clientRect:_e,link:ce})}},this)}})},I.default.prototype.toPdf=function(){return P.toPdf.call(this).then(function(){if(this.opt.enableLinks){z.forEach(function(H){this.prop.pdf.setPage(H.page),this.prop.pdf.link(H.left,H.top,H.clientRect.width,H.clientRect.height,{url:H.link.href})},this);var te=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(te)}})}},"./src/plugin/jspdf-plugin.js":function(T,l,d){"use strict";d.r(l);var N=d("./node_modules/core-js/modules/es.symbol.js"),v=d.n(N),m=d("./node_modules/core-js/modules/es.symbol.description.js"),b=d.n(m),I=d("./node_modules/core-js/modules/es.object.to-string.js"),L=d.n(I),z=d("./node_modules/core-js/modules/es.symbol.iterator.js"),P=d.n(z),$=d("./node_modules/core-js/modules/es.array.iterator.js"),J=d.n($),te=d("./node_modules/core-js/modules/es.string.iterator.js"),H=d.n(te),G=d("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ce=d.n(G),q=d("jspdf"),ye=d.n(q);function _e(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_e=function(be){return typeof be}:_e=function(be){return be&&typeof Symbol=="function"&&be.constructor===Symbol&&be!==Symbol.prototype?"symbol":typeof be},_e(Le)}q.jsPDF.getPageSize=function(Le,se,be){if(_e(Le)==="object"){var O=Le;Le=O.orientation,se=O.unit||se,be=O.format||be}se=se||"mm",be=be||"a4",Le=(""+(Le||"P")).toLowerCase();var Ee=(""+be).toLowerCase(),ue={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(se){case"pt":var he=1;break;case"mm":var he=72/25.4;break;case"cm":var he=72/2.54;break;case"in":var he=72;break;case"px":var he=72/96;break;case"pc":var he=12;break;case"em":var he=12;break;case"ex":var he=6;break;default:throw"Invalid unit: "+se}if(ue.hasOwnProperty(Ee))var ve=ue[Ee][1]/he,F=ue[Ee][0]/he;else try{var ve=be[1],F=be[0]}catch(de){throw new Error("Invalid format: "+be)}if(Le==="p"||Le==="portrait"){if(Le="p",F>ve){var U=F;F=ve,ve=U}}else if(Le==="l"||Le==="landscape"){if(Le="l",ve>F){var U=F;F=ve,ve=U}}else throw"Invalid orientation: "+Le;var ee={width:F,height:ve,unit:se,k:he};return ee},l.default=q.jsPDF},"./src/plugin/pagebreaks.js":function(T,l,d){"use strict";d.r(l);var N=d("./node_modules/core-js/modules/es.array.concat.js"),v=d.n(N),m=d("./node_modules/core-js/modules/es.array.slice.js"),b=d.n(m),I=d("./node_modules/core-js/modules/es.array.join.js"),L=d.n(I),z=d("./node_modules/core-js/modules/web.dom-collections.for-each.js"),P=d.n(z),$=d("./node_modules/core-js/modules/es.object.keys.js"),J=d.n($),te=d("./src/worker.js"),H=d("./src/utils.js"),G={toContainer:te.default.prototype.toContainer};te.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},te.default.prototype.toContainer=function(){return G.toContainer.call(this).then(function(){var ye=this.prop.container,_e=this.prop.pageSize.inner.px.height,Le=[].concat(this.opt.pagebreak.mode),se={avoidAll:Le.indexOf("avoid-all")!==-1,css:Le.indexOf("css")!==-1,legacy:Le.indexOf("legacy")!==-1},be={},O=this;["before","after","avoid"].forEach(function(he){var ve=se.avoidAll&&he==="avoid";be[he]=ve?[]:[].concat(O.opt.pagebreak[he]||[]),be[he].length>0&&(be[he]=Array.prototype.slice.call(ye.querySelectorAll(be[he].join(", "))))});var Ee=ye.querySelectorAll(".html2pdf__page-break");Ee=Array.prototype.slice.call(Ee);var ue=ye.querySelectorAll("*");Array.prototype.forEach.call(ue,function(ve){var F={before:!1,after:se.legacy&&Ee.indexOf(ve)!==-1,avoid:se.avoidAll};if(se.css){var U=window.getComputedStyle(ve),ee=["always","page","left","right"],de=["avoid","avoid-page"];F={before:F.before||ee.indexOf(U.breakBefore||U.pageBreakBefore)!==-1,after:F.after||ee.indexOf(U.breakAfter||U.pageBreakAfter)!==-1,avoid:F.avoid||de.indexOf(U.breakInside||U.pageBreakInside)!==-1}}Object.keys(F).forEach(function(zt){F[zt]=F[zt]||be[zt].indexOf(ve)!==-1});var Xe=ve.getBoundingClientRect();if(F.avoid&&!F.before){var tt=Math.floor(Xe.top/_e),nt=Math.floor(Xe.bottom/_e),_t=Math.abs(Xe.bottom-Xe.top)/_e;nt!==tt&&_t<=1&&(F.before=!0)}if(F.before){var Xt=(0,H.createElement)("div",{style:{display:"block",height:_e-Xe.top%_e+"px"}});ve.parentNode.insertBefore(Xt,ve)}if(F.after){var Xt=(0,H.createElement)("div",{style:{display:"block",height:_e-Xe.bottom%_e+"px"}});ve.parentNode.insertBefore(Xt,ve.nextSibling)}})})}},"./src/utils.js":function(T,l,d){"use strict";d.r(l),d.d(l,{objType:function(){return Le},createElement:function(){return se},cloneNode:function(){return be},unitConvert:function(){return O},toPx:function(){return Ee}});var N=d("./node_modules/core-js/modules/es.number.constructor.js"),v=d.n(N),m=d("./node_modules/core-js/modules/es.symbol.js"),b=d.n(m),I=d("./node_modules/core-js/modules/es.symbol.description.js"),L=d.n(I),z=d("./node_modules/core-js/modules/es.object.to-string.js"),P=d.n(z),$=d("./node_modules/core-js/modules/es.symbol.iterator.js"),J=d.n($),te=d("./node_modules/core-js/modules/es.array.iterator.js"),H=d.n(te),G=d("./node_modules/core-js/modules/es.string.iterator.js"),ce=d.n(G),q=d("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ye=d.n(q);function _e(ue){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_e=function(ve){return typeof ve}:_e=function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},_e(ue)}var Le=function(he){var ve=_e(he);return ve==="undefined"?"undefined":ve==="string"||he instanceof String?"string":ve==="number"||he instanceof Number?"number":ve==="function"||he instanceof Function?"function":he&&he.constructor===Array?"array":he&&he.nodeType===1?"element":ve==="object"?"object":"unknown"},se=function(he,ve){var F=document.createElement(he);if(ve.className&&(F.className=ve.className),ve.innerHTML){F.innerHTML=ve.innerHTML;for(var U=F.getElementsByTagName("script"),ee=U.length;ee-- >0;null)U[ee].parentNode.removeChild(U[ee])}for(var de in ve.style)F.style[de]=ve.style[de];return F},be=function ue(he,ve){for(var F=he.nodeType===3?document.createTextNode(he.nodeValue):he.cloneNode(!1),U=he.firstChild;U;U=U.nextSibling)(ve===!0||U.nodeType!==1||U.nodeName!=="SCRIPT")&&F.appendChild(ue(U,ve));return he.nodeType===1&&(he.nodeName==="CANVAS"?(F.width=he.width,F.height=he.height,F.getContext("2d").drawImage(he,0,0)):(he.nodeName==="TEXTAREA"||he.nodeName==="SELECT")&&(F.value=he.value),F.addEventListener("load",function(){F.scrollTop=he.scrollTop,F.scrollLeft=he.scrollLeft},!0)),F},O=function(he,ve){if(Le(he)==="number")return he*72/96/ve;var F={};for(var U in he)F[U]=he[U]*72/96/ve;return F},Ee=function(he,ve){return Math.floor(he*ve/72*96)}},"./src/worker.js":function(T,l,d){"use strict";d.r(l);var N=d("./node_modules/core-js/modules/es.object.assign.js"),v=d.n(N),m=d("./node_modules/core-js/modules/es.array.map.js"),b=d.n(m),I=d("./node_modules/core-js/modules/es.object.keys.js"),L=d.n(I),z=d("./node_modules/core-js/modules/es.array.concat.js"),P=d.n(z),$=d("./node_modules/core-js/modules/es.object.to-string.js"),J=d.n($),te=d("./node_modules/core-js/modules/es.regexp.to-string.js"),H=d.n(te),G=d("./node_modules/core-js/modules/es.function.name.js"),ce=d.n(G),q=d("./node_modules/core-js/modules/web.dom-collections.for-each.js"),ye=d.n(q),_e=d("jspdf"),Le=d.n(_e),se=d("html2canvas"),be=d.n(se),O=d("./src/utils.js"),Ee=d("./node_modules/es6-promise/dist/es6-promise.js"),ue=d.n(Ee),he=ue().Promise,ve=function F(U){var ee=Object.assign(F.convert(he.resolve()),JSON.parse(JSON.stringify(F.template))),de=F.convert(he.resolve(),ee);return de=de.setProgress(1,F,1,[F]),de=de.set(U),de};ve.prototype=Object.create(he.prototype),ve.prototype.constructor=ve,ve.convert=function(U,ee){return U.__proto__=ee||ve.prototype,U},ve.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},ve.prototype.from=function(U,ee){function de(Xe){switch((0,O.objType)(Xe)){case"string":return"string";case"element":return Xe.nodeName.toLowerCase&&Xe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(ee=ee||de(U),ee){case"string":return this.set({src:(0,O.createElement)("div",{innerHTML:U})});case"element":return this.set({src:U});case"canvas":return this.set({canvas:U});case"img":return this.set({img:U});default:return this.error("Unknown source type.")}})},ve.prototype.to=function(U){switch(U){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},ve.prototype.toContainer=function(){var U=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(U).then(function(){var de={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Xe={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};de.opacity=0;var tt=(0,O.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,O.createElement)("div",{className:"html2pdf__overlay",style:de}),this.prop.container=(0,O.createElement)("div",{className:"html2pdf__container",style:Xe}),this.prop.container.appendChild(tt),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},ve.prototype.toCanvas=function(){var U=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(U).then(function(){var de=Object.assign({},this.opt.html2canvas);return delete de.onrendered,se(this.prop.container,de)}).then(function(de){var Xe=this.opt.html2canvas.onrendered||function(){};Xe(de),this.prop.canvas=de,document.body.removeChild(this.prop.overlay)})},ve.prototype.toImg=function(){var U=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(U).then(function(){var de=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=de})},ve.prototype.toPdf=function(){var U=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(U).then(function(){var de=this.prop.canvas,Xe=this.opt,tt=de.height,nt=Math.floor(de.width*this.prop.pageSize.inner.ratio),_t=Math.ceil(tt/nt),Xt=this.prop.pageSize.inner.height,zt=document.createElement("canvas"),Ze=zt.getContext("2d");zt.width=de.width,zt.height=nt,this.prop.pdf=this.prop.pdf||new _e.jsPDF(Xe.jsPDF);for(var fr=0;fr<_t;fr++){fr===_t-1&&tt%nt!==0&&(zt.height=tt%nt,Xt=zt.height*this.prop.pageSize.inner.width/zt.width);var yr=zt.width,Ar=zt.height;Ze.fillStyle="white",Ze.fillRect(0,0,yr,Ar),Ze.drawImage(de,0,fr*nt,yr,Ar,0,0,yr,Ar),fr&&this.prop.pdf.addPage();var vr=zt.toDataURL("image/"+Xe.image.type,Xe.image.quality);this.prop.pdf.addImage(vr,Xe.image.type,Xe.margin[1],Xe.margin[0],this.prop.pageSize.inner.width,Xt)}})},ve.prototype.output=function(U,ee,de){return de=de||"pdf",de.toLowerCase()==="img"||de.toLowerCase()==="image"?this.outputImg(U,ee):this.outputPdf(U,ee)},ve.prototype.outputPdf=function(U,ee){var de=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(de).then(function(){return this.prop.pdf.output(U,ee)})},ve.prototype.outputImg=function(U,ee){var de=[function(){return this.prop.img||this.toImg()}];return this.thenList(de).then(function(){switch(U){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+U+'" is not supported.'}})},ve.prototype.save=function(U){var ee=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(ee).set(U?{filename:U}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},ve.prototype.set=function(U){if((0,O.objType)(U)!=="object")return this;var ee=Object.keys(U||{}).map(function(de){switch(de){case"margin":return this.setMargin.bind(this,U.margin);case"jsPDF":return function(){return this.opt.jsPDF=U.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,U.pageSize);default:return de in ve.template.prop?function(){this.prop[de]=U[de]}:function(){this.opt[de]=U[de]}}},this);return this.then(function(){return this.thenList(ee)})},ve.prototype.get=function(U,ee){return this.then(function(){var Xe=U in ve.template.prop?this.prop[U]:this.opt[U];return ee?ee(Xe):Xe})},ve.prototype.setMargin=function(U){return this.then(function(){switch((0,O.objType)(U)){case"number":U=[U,U,U,U];case"array":if(U.length===2&&(U=[U[0],U[1],U[0],U[1]]),U.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=U}).then(this.setPageSize)},ve.prototype.setPageSize=function(U){return this.then(function(){U=U||_e.jsPDF.getPageSize(this.opt.jsPDF),U.hasOwnProperty("inner")||(U.inner={width:U.width-this.opt.margin[1]-this.opt.margin[3],height:U.height-this.opt.margin[0]-this.opt.margin[2]},U.inner.px={width:(0,O.toPx)(U.inner.width,U.k),height:(0,O.toPx)(U.inner.height,U.k)},U.inner.ratio=U.inner.height/U.inner.width),this.prop.pageSize=U})},ve.prototype.setProgress=function(U,ee,de,Xe){return U!=null&&(this.progress.val=U),ee!=null&&(this.progress.state=ee),de!=null&&(this.progress.n=de),Xe!=null&&(this.progress.stack=Xe),this.progress.ratio=this.progress.val/this.progress.state,this},ve.prototype.updateProgress=function(U,ee,de,Xe){return this.setProgress(U?this.progress.val+U:null,ee||null,de?this.progress.n+de:null,Xe?this.progress.stack.concat(Xe):null)},ve.prototype.then=function(U,ee){var de=this;return this.thenCore(U,ee,function(tt,nt){return de.updateProgress(null,null,1,[tt]),he.prototype.then.call(this,function(Xt){return de.updateProgress(null,tt),Xt}).then(tt,nt).then(function(Xt){return de.updateProgress(1),Xt})})},ve.prototype.thenCore=function(U,ee,de){de=de||he.prototype.then;var Xe=this;U&&(U=U.bind(Xe)),ee&&(ee=ee.bind(Xe));var tt=he.toString().indexOf("[native code]")!==-1&&he.name==="Promise",nt=tt?Xe:ve.convert(Object.assign({},Xe),he.prototype),_t=de.call(nt,U,ee);return ve.convert(_t,Xe.__proto__)},ve.prototype.thenExternal=function(U,ee){return he.prototype.then.call(this,U,ee)},ve.prototype.thenList=function(U){var ee=this;return U.forEach(function(Xe){ee=ee.thenCore(Xe)}),ee},ve.prototype.catch=function(F){F&&(F=F.bind(this));var U=he.prototype.catch.call(this,F);return ve.convert(U,this)},ve.prototype.catchExternal=function(U){return he.prototype.catch.call(this,U)},ve.prototype.error=function(U){return this.then(function(){throw new Error(U)})},ve.prototype.using=ve.prototype.set,ve.prototype.saveAs=ve.prototype.save,ve.prototype.export=ve.prototype.output,ve.prototype.run=ve.prototype.then,l.default=ve},"./node_modules/core-js/internals/a-function.js":function(T){T.exports=function(l){if(typeof l!="function")throw TypeError(String(l)+" is not a function");return l}},"./node_modules/core-js/internals/a-possible-prototype.js":function(T,l,d){var N=d("./node_modules/core-js/internals/is-object.js");T.exports=function(v){if(!N(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},"./node_modules/core-js/internals/add-to-unscopables.js":function(T,l,d){var N=d("./node_modules/core-js/internals/well-known-symbol.js"),v=d("./node_modules/core-js/internals/object-create.js"),m=d("./node_modules/core-js/internals/object-define-property.js"),b=N("unscopables"),I=Array.prototype;I[b]==null&&m.f(I,b,{configurable:!0,value:v(null)}),T.exports=function(L){I[b][L]=!0}},"./node_modules/core-js/internals/an-object.js":function(T,l,d){var N=d("./node_modules/core-js/internals/is-object.js");T.exports=function(v){if(!N(v))throw TypeError(String(v)+" is not an object");return v}},"./node_modules/core-js/internals/array-for-each.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/array-iteration.js").forEach,v=d("./node_modules/core-js/internals/array-method-is-strict.js"),m=v("forEach");T.exports=m?[].forEach:function(I){return N(this,I,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(T,l,d){var N=d("./node_modules/core-js/internals/to-indexed-object.js"),v=d("./node_modules/core-js/internals/to-length.js"),m=d("./node_modules/core-js/internals/to-absolute-index.js"),b=function(I){return function(L,z,P){var $=N(L),J=v($.length),te=m(P,J),H;if(I&&z!=z){for(;J>te;)if(H=$[te++],H!=H)return!0}else for(;J>te;te++)if((I||te in $)&&$[te]===z)return I||te||0;return!I&&-1}};T.exports={includes:b(!0),indexOf:b(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(T,l,d){var N=d("./node_modules/core-js/internals/function-bind-context.js"),v=d("./node_modules/core-js/internals/indexed-object.js"),m=d("./node_modules/core-js/internals/to-object.js"),b=d("./node_modules/core-js/internals/to-length.js"),I=d("./node_modules/core-js/internals/array-species-create.js"),L=[].push,z=function(P){var $=P==1,J=P==2,te=P==3,H=P==4,G=P==6,ce=P==7,q=P==5||G;return function(ye,_e,Le,se){for(var be=m(ye),O=v(be),Ee=N(_e,Le,3),ue=b(O.length),he=0,ve=se||I,F=$?ve(ye,ue):J||ce?ve(ye,0):void 0,U,ee;ue>he;he++)if((q||he in O)&&(U=O[he],ee=Ee(U,he,be),P))if($)F[he]=ee;else if(ee)switch(P){case 3:return!0;case 5:return U;case 6:return he;case 2:L.call(F,U)}else switch(P){case 4:return!1;case 7:L.call(F,U)}return G?-1:te||H?H:F}};T.exports={forEach:z(0),map:z(1),filter:z(2),some:z(3),every:z(4),find:z(5),findIndex:z(6),filterReject:z(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(T,l,d){var N=d("./node_modules/core-js/internals/fails.js"),v=d("./node_modules/core-js/internals/well-known-symbol.js"),m=d("./node_modules/core-js/internals/engine-v8-version.js"),b=v("species");T.exports=function(I){return m>=51||!N(function(){var L=[],z=L.constructor={};return z[b]=function(){return{foo:1}},L[I](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/fails.js");T.exports=function(v,m){var b=[][v];return!!b&&N(function(){b.call(null,m||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(T,l,d){var N=d("./node_modules/core-js/internals/is-object.js"),v=d("./node_modules/core-js/internals/is-array.js"),m=d("./node_modules/core-js/internals/well-known-symbol.js"),b=m("species");T.exports=function(I){var L;return v(I)&&(L=I.constructor,typeof L=="function"&&(L===Array||v(L.prototype))?L=void 0:N(L)&&(L=L[b],L===null&&(L=void 0))),L===void 0?Array:L}},"./node_modules/core-js/internals/array-species-create.js":function(T,l,d){var N=d("./node_modules/core-js/internals/array-species-constructor.js");T.exports=function(v,m){return new(N(v))(m===0?0:m)}},"./node_modules/core-js/internals/classof-raw.js":function(T){var l={}.toString;T.exports=function(d){return l.call(d).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(T,l,d){var N=d("./node_modules/core-js/internals/to-string-tag-support.js"),v=d("./node_modules/core-js/internals/classof-raw.js"),m=d("./node_modules/core-js/internals/well-known-symbol.js"),b=m("toStringTag"),I=v(function(){return arguments}())=="Arguments",L=function(z,P){try{return z[P]}catch($){}};T.exports=N?v:function(z){var P,$,J;return z===void 0?"Undefined":z===null?"Null":typeof($=L(P=Object(z),b))=="string"?$:I?v(P):(J=v(P))=="Object"&&typeof P.callee=="function"?"Arguments":J}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(T,l,d){var N=d("./node_modules/core-js/internals/has.js"),v=d("./node_modules/core-js/internals/own-keys.js"),m=d("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),b=d("./node_modules/core-js/internals/object-define-property.js");T.exports=function(I,L){for(var z=v(L),P=b.f,$=m.f,J=0;J<z.length;J++){var te=z[J];N(I,te)||P(I,te,$(L,te))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(T,l,d){var N=d("./node_modules/core-js/internals/fails.js");T.exports=!N(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},"./node_modules/core-js/internals/create-html.js":function(T,l,d){var N=d("./node_modules/core-js/internals/require-object-coercible.js"),v=d("./node_modules/core-js/internals/to-string.js"),m=/"/g;T.exports=function(b,I,L,z){var P=v(N(b)),$="<"+I;return L!==""&&($+=" "+L+'="'+v(z).replace(m,""")+'"'),$+">"+P+"</"+I+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,v=d("./node_modules/core-js/internals/object-create.js"),m=d("./node_modules/core-js/internals/create-property-descriptor.js"),b=d("./node_modules/core-js/internals/set-to-string-tag.js"),I=d("./node_modules/core-js/internals/iterators.js"),L=function(){return this};T.exports=function(z,P,$){var J=P+" Iterator";return z.prototype=v(N,{next:m(1,$)}),b(z,J,!1,!0),I[J]=L,z}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(T,l,d){var N=d("./node_modules/core-js/internals/descriptors.js"),v=d("./node_modules/core-js/internals/object-define-property.js"),m=d("./node_modules/core-js/internals/create-property-descriptor.js");T.exports=N?function(b,I,L){return v.f(b,I,m(1,L))}:function(b,I,L){return b[I]=L,b}},"./node_modules/core-js/internals/create-property-descriptor.js":function(T){T.exports=function(l,d){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:d}}},"./node_modules/core-js/internals/create-property.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/to-property-key.js"),v=d("./node_modules/core-js/internals/object-define-property.js"),m=d("./node_modules/core-js/internals/create-property-descriptor.js");T.exports=function(b,I,L){var z=N(I);z in b?v.f(b,z,m(0,L)):b[z]=L}},"./node_modules/core-js/internals/define-iterator.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/create-iterator-constructor.js"),m=d("./node_modules/core-js/internals/object-get-prototype-of.js"),b=d("./node_modules/core-js/internals/object-set-prototype-of.js"),I=d("./node_modules/core-js/internals/set-to-string-tag.js"),L=d("./node_modules/core-js/internals/create-non-enumerable-property.js"),z=d("./node_modules/core-js/internals/redefine.js"),P=d("./node_modules/core-js/internals/well-known-symbol.js"),$=d("./node_modules/core-js/internals/is-pure.js"),J=d("./node_modules/core-js/internals/iterators.js"),te=d("./node_modules/core-js/internals/iterators-core.js"),H=te.IteratorPrototype,G=te.BUGGY_SAFARI_ITERATORS,ce=P("iterator"),q="keys",ye="values",_e="entries",Le=function(){return this};T.exports=function(se,be,O,Ee,ue,he,ve){v(O,be,Ee);var F=function(Ze){if(Ze===ue&&tt)return tt;if(!G&&Ze in de)return de[Ze];switch(Ze){case q:return function(){return new O(this,Ze)};case ye:return function(){return new O(this,Ze)};case _e:return function(){return new O(this,Ze)}}return function(){return new O(this)}},U=be+" Iterator",ee=!1,de=se.prototype,Xe=de[ce]||de["@@iterator"]||ue&&de[ue],tt=!G&&Xe||F(ue),nt=be=="Array"&&de.entries||Xe,_t,Xt,zt;if(nt&&(_t=m(nt.call(new se)),H!==Object.prototype&&_t.next&&(!$&&m(_t)!==H&&(b?b(_t,H):typeof _t[ce]!="function"&&L(_t,ce,Le)),I(_t,U,!0,!0),$&&(J[U]=Le))),ue==ye&&Xe&&Xe.name!==ye&&(ee=!0,tt=function(){return Xe.call(this)}),(!$||ve)&&de[ce]!==tt&&L(de,ce,tt),J[be]=tt,ue)if(Xt={values:F(ye),keys:he?tt:F(q),entries:F(_e)},ve)for(zt in Xt)(G||ee||!(zt in de))&&z(de,zt,Xt[zt]);else N({target:be,proto:!0,forced:G||ee},Xt);return Xt}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(T,l,d){var N=d("./node_modules/core-js/internals/path.js"),v=d("./node_modules/core-js/internals/has.js"),m=d("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),b=d("./node_modules/core-js/internals/object-define-property.js").f;T.exports=function(I){var L=N.Symbol||(N.Symbol={});v(L,I)||b(L,I,{value:m.f(I)})}},"./node_modules/core-js/internals/descriptors.js":function(T,l,d){var N=d("./node_modules/core-js/internals/fails.js");T.exports=!N(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=d("./node_modules/core-js/internals/is-object.js"),m=N.document,b=v(m)&&v(m.createElement);T.exports=function(I){return b?m.createElement(I):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(T){T.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(T,l,d){var N=d("./node_modules/core-js/internals/get-built-in.js");T.exports=N("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=d("./node_modules/core-js/internals/engine-user-agent.js"),m=N.process,b=N.Deno,I=m&&m.versions||b&&b.version,L=I&&I.v8,z,P;L?(z=L.split("."),P=z[0]<4?1:z[0]+z[1]):v&&(z=v.match(/Edge\/(\d+)/),(!z||z[1]>=74)&&(z=v.match(/Chrome\/(\d+)/),z&&(P=z[1]))),T.exports=P&&+P},"./node_modules/core-js/internals/enum-bug-keys.js":function(T){T.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=d("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,m=d("./node_modules/core-js/internals/create-non-enumerable-property.js"),b=d("./node_modules/core-js/internals/redefine.js"),I=d("./node_modules/core-js/internals/set-global.js"),L=d("./node_modules/core-js/internals/copy-constructor-properties.js"),z=d("./node_modules/core-js/internals/is-forced.js");T.exports=function(P,$){var J=P.target,te=P.global,H=P.stat,G,ce,q,ye,_e,Le;if(te?ce=N:H?ce=N[J]||I(J,{}):ce=(N[J]||{}).prototype,ce)for(q in $){if(_e=$[q],P.noTargetGet?(Le=v(ce,q),ye=Le&&Le.value):ye=ce[q],G=z(te?q:J+(H?".":"#")+q,P.forced),!G&&ye!==void 0){if(typeof _e==typeof ye)continue;L(_e,ye)}(P.sham||ye&&ye.sham)&&m(_e,"sham",!0),b(ce,q,_e,P)}}},"./node_modules/core-js/internals/fails.js":function(T){T.exports=function(l){try{return!!l()}catch(d){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(T,l,d){var N=d("./node_modules/core-js/internals/a-function.js");T.exports=function(v,m,b){if(N(v),m===void 0)return v;switch(b){case 0:return function(){return v.call(m)};case 1:return function(I){return v.call(m,I)};case 2:return function(I,L){return v.call(m,I,L)};case 3:return function(I,L,z){return v.call(m,I,L,z)}}return function(){return v.apply(m,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=function(m){return typeof m=="function"?m:void 0};T.exports=function(m,b){return arguments.length<2?v(N[m]):N[m]&&N[m][b]}},"./node_modules/core-js/internals/global.js":function(T){var l=function(d){return d&&d.Math==Math&&d};T.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof E.g=="object"&&E.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(T,l,d){var N=d("./node_modules/core-js/internals/to-object.js"),v={}.hasOwnProperty;T.exports=Object.hasOwn||function(b,I){return v.call(N(b),I)}},"./node_modules/core-js/internals/hidden-keys.js":function(T){T.exports={}},"./node_modules/core-js/internals/html.js":function(T,l,d){var N=d("./node_modules/core-js/internals/get-built-in.js");T.exports=N("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(T,l,d){var N=d("./node_modules/core-js/internals/descriptors.js"),v=d("./node_modules/core-js/internals/fails.js"),m=d("./node_modules/core-js/internals/document-create-element.js");T.exports=!N&&!v(function(){return Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(T,l,d){var N=d("./node_modules/core-js/internals/fails.js"),v=d("./node_modules/core-js/internals/classof-raw.js"),m="".split;T.exports=N(function(){return!Object("z").propertyIsEnumerable(0)})?function(b){return v(b)=="String"?m.call(b,""):Object(b)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(T,l,d){var N=d("./node_modules/core-js/internals/is-object.js"),v=d("./node_modules/core-js/internals/object-set-prototype-of.js");T.exports=function(m,b,I){var L,z;return v&&typeof(L=b.constructor)=="function"&&L!==I&&N(z=L.prototype)&&z!==I.prototype&&v(m,z),m}},"./node_modules/core-js/internals/inspect-source.js":function(T,l,d){var N=d("./node_modules/core-js/internals/shared-store.js"),v=Function.toString;typeof N.inspectSource!="function"&&(N.inspectSource=function(m){return v.call(m)}),T.exports=N.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(T,l,d){var N=d("./node_modules/core-js/internals/native-weak-map.js"),v=d("./node_modules/core-js/internals/global.js"),m=d("./node_modules/core-js/internals/is-object.js"),b=d("./node_modules/core-js/internals/create-non-enumerable-property.js"),I=d("./node_modules/core-js/internals/has.js"),L=d("./node_modules/core-js/internals/shared-store.js"),z=d("./node_modules/core-js/internals/shared-key.js"),P=d("./node_modules/core-js/internals/hidden-keys.js"),$="Object already initialized",J=v.WeakMap,te,H,G,ce=function(O){return G(O)?H(O):te(O,{})},q=function(O){return function(Ee){var ue;if(!m(Ee)||(ue=H(Ee)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return ue}};if(N||L.state){var ye=L.state||(L.state=new J),_e=ye.get,Le=ye.has,se=ye.set;te=function(O,Ee){if(Le.call(ye,O))throw new TypeError($);return Ee.facade=O,se.call(ye,O,Ee),Ee},H=function(O){return _e.call(ye,O)||{}},G=function(O){return Le.call(ye,O)}}else{var be=z("state");P[be]=!0,te=function(O,Ee){if(I(O,be))throw new TypeError($);return Ee.facade=O,b(O,be,Ee),Ee},H=function(O){return I(O,be)?O[be]:{}},G=function(O){return I(O,be)}}T.exports={set:te,get:H,has:G,enforce:ce,getterFor:q}},"./node_modules/core-js/internals/is-array.js":function(T,l,d){var N=d("./node_modules/core-js/internals/classof-raw.js");T.exports=Array.isArray||function(m){return N(m)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(T,l,d){var N=d("./node_modules/core-js/internals/fails.js"),v=/#|\.prototype\./,m=function(P,$){var J=I[b(P)];return J==z?!0:J==L?!1:typeof $=="function"?N($):!!$},b=m.normalize=function(P){return String(P).replace(v,".").toLowerCase()},I=m.data={},L=m.NATIVE="N",z=m.POLYFILL="P";T.exports=m},"./node_modules/core-js/internals/is-object.js":function(T){T.exports=function(l){return typeof l=="object"?l!==null:typeof l=="function"}},"./node_modules/core-js/internals/is-pure.js":function(T){T.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(T,l,d){var N=d("./node_modules/core-js/internals/get-built-in.js"),v=d("./node_modules/core-js/internals/use-symbol-as-uid.js");T.exports=v?function(m){return typeof m=="symbol"}:function(m){var b=N("Symbol");return typeof b=="function"&&Object(m)instanceof b}},"./node_modules/core-js/internals/iterators-core.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/fails.js"),v=d("./node_modules/core-js/internals/object-get-prototype-of.js"),m=d("./node_modules/core-js/internals/create-non-enumerable-property.js"),b=d("./node_modules/core-js/internals/has.js"),I=d("./node_modules/core-js/internals/well-known-symbol.js"),L=d("./node_modules/core-js/internals/is-pure.js"),z=I("iterator"),P=!1,$=function(){return this},J,te,H;[].keys&&(H=[].keys(),"next"in H?(te=v(v(H)),te!==Object.prototype&&(J=te)):P=!0);var G=J==null||N(function(){var ce={};return J[z].call(ce)!==ce});G&&(J={}),(!L||G)&&!b(J,z)&&m(J,z,$),T.exports={IteratorPrototype:J,BUGGY_SAFARI_ITERATORS:P}},"./node_modules/core-js/internals/iterators.js":function(T){T.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(T,l,d){var N=d("./node_modules/core-js/internals/engine-v8-version.js"),v=d("./node_modules/core-js/internals/fails.js");T.exports=!!Object.getOwnPropertySymbols&&!v(function(){var m=Symbol();return!String(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&N&&N<41})},"./node_modules/core-js/internals/native-weak-map.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=d("./node_modules/core-js/internals/inspect-source.js"),m=N.WeakMap;T.exports=typeof m=="function"&&/native code/.test(v(m))},"./node_modules/core-js/internals/object-assign.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/descriptors.js"),v=d("./node_modules/core-js/internals/fails.js"),m=d("./node_modules/core-js/internals/object-keys.js"),b=d("./node_modules/core-js/internals/object-get-own-property-symbols.js"),I=d("./node_modules/core-js/internals/object-property-is-enumerable.js"),L=d("./node_modules/core-js/internals/to-object.js"),z=d("./node_modules/core-js/internals/indexed-object.js"),P=Object.assign,$=Object.defineProperty;T.exports=!P||v(function(){if(N&&P({b:1},P($({},"a",{enumerable:!0,get:function(){$(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var J={},te={},H=Symbol(),G="abcdefghijklmnopqrst";return J[H]=7,G.split("").forEach(function(ce){te[ce]=ce}),P({},J)[H]!=7||m(P({},te)).join("")!=G})?function(te,H){for(var G=L(te),ce=arguments.length,q=1,ye=b.f,_e=I.f;ce>q;)for(var Le=z(arguments[q++]),se=ye?m(Le).concat(ye(Le)):m(Le),be=se.length,O=0,Ee;be>O;)Ee=se[O++],(!N||_e.call(Le,Ee))&&(G[Ee]=Le[Ee]);return G}:P},"./node_modules/core-js/internals/object-create.js":function(T,l,d){var N=d("./node_modules/core-js/internals/an-object.js"),v=d("./node_modules/core-js/internals/object-define-properties.js"),m=d("./node_modules/core-js/internals/enum-bug-keys.js"),b=d("./node_modules/core-js/internals/hidden-keys.js"),I=d("./node_modules/core-js/internals/html.js"),L=d("./node_modules/core-js/internals/document-create-element.js"),z=d("./node_modules/core-js/internals/shared-key.js"),P=">",$="<",J="prototype",te="script",H=z("IE_PROTO"),G=function(){},ce=function(se){return $+te+P+se+$+"/"+te+P},q=function(se){se.write(ce("")),se.close();var be=se.parentWindow.Object;return se=null,be},ye=function(){var se=L("iframe"),be="java"+te+":",O;if(se.style)return se.style.display="none",I.appendChild(se),se.src=String(be),O=se.contentWindow.document,O.open(),O.write(ce("document.F=Object")),O.close(),O.F},_e,Le=function(){try{_e=new ActiveXObject("htmlfile")}catch(be){}Le=document.domain&&_e?q(_e):ye()||q(_e);for(var se=m.length;se--;)delete Le[J][m[se]];return Le()};b[H]=!0,T.exports=Object.create||function(be,O){var Ee;return be!==null?(G[J]=N(be),Ee=new G,G[J]=null,Ee[H]=be):Ee=Le(),O===void 0?Ee:v(Ee,O)}},"./node_modules/core-js/internals/object-define-properties.js":function(T,l,d){var N=d("./node_modules/core-js/internals/descriptors.js"),v=d("./node_modules/core-js/internals/object-define-property.js"),m=d("./node_modules/core-js/internals/an-object.js"),b=d("./node_modules/core-js/internals/object-keys.js");T.exports=N?Object.defineProperties:function(L,z){m(L);for(var P=b(z),$=P.length,J=0,te;$>J;)v.f(L,te=P[J++],z[te]);return L}},"./node_modules/core-js/internals/object-define-property.js":function(T,l,d){var N=d("./node_modules/core-js/internals/descriptors.js"),v=d("./node_modules/core-js/internals/ie8-dom-define.js"),m=d("./node_modules/core-js/internals/an-object.js"),b=d("./node_modules/core-js/internals/to-property-key.js"),I=Object.defineProperty;l.f=N?I:function(z,P,$){if(m(z),P=b(P),m($),v)try{return I(z,P,$)}catch(J){}if("get"in $||"set"in $)throw TypeError("Accessors not supported");return"value"in $&&(z[P]=$.value),z}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(T,l,d){var N=d("./node_modules/core-js/internals/descriptors.js"),v=d("./node_modules/core-js/internals/object-property-is-enumerable.js"),m=d("./node_modules/core-js/internals/create-property-descriptor.js"),b=d("./node_modules/core-js/internals/to-indexed-object.js"),I=d("./node_modules/core-js/internals/to-property-key.js"),L=d("./node_modules/core-js/internals/has.js"),z=d("./node_modules/core-js/internals/ie8-dom-define.js"),P=Object.getOwnPropertyDescriptor;l.f=N?P:function(J,te){if(J=b(J),te=I(te),z)try{return P(J,te)}catch(H){}if(L(J,te))return m(!v.f.call(J,te),J[te])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(T,l,d){var N=d("./node_modules/core-js/internals/to-indexed-object.js"),v=d("./node_modules/core-js/internals/object-get-own-property-names.js").f,m={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],I=function(L){try{return v(L)}catch(z){return b.slice()}};T.exports.f=function(z){return b&&m.call(z)=="[object Window]"?I(z):v(N(z))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(T,l,d){var N=d("./node_modules/core-js/internals/object-keys-internal.js"),v=d("./node_modules/core-js/internals/enum-bug-keys.js"),m=v.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(I){return N(I,m)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(T,l){l.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(T,l,d){var N=d("./node_modules/core-js/internals/has.js"),v=d("./node_modules/core-js/internals/to-object.js"),m=d("./node_modules/core-js/internals/shared-key.js"),b=d("./node_modules/core-js/internals/correct-prototype-getter.js"),I=m("IE_PROTO"),L=Object.prototype;T.exports=b?Object.getPrototypeOf:function(z){return z=v(z),N(z,I)?z[I]:typeof z.constructor=="function"&&z instanceof z.constructor?z.constructor.prototype:z instanceof Object?L:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(T,l,d){var N=d("./node_modules/core-js/internals/has.js"),v=d("./node_modules/core-js/internals/to-indexed-object.js"),m=d("./node_modules/core-js/internals/array-includes.js").indexOf,b=d("./node_modules/core-js/internals/hidden-keys.js");T.exports=function(I,L){var z=v(I),P=0,$=[],J;for(J in z)!N(b,J)&&N(z,J)&&$.push(J);for(;L.length>P;)N(z,J=L[P++])&&(~m($,J)||$.push(J));return $}},"./node_modules/core-js/internals/object-keys.js":function(T,l,d){var N=d("./node_modules/core-js/internals/object-keys-internal.js"),v=d("./node_modules/core-js/internals/enum-bug-keys.js");T.exports=Object.keys||function(b){return N(b,v)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(T,l){"use strict";var d={}.propertyIsEnumerable,N=Object.getOwnPropertyDescriptor,v=N&&!d.call({1:2},1);l.f=v?function(b){var I=N(this,b);return!!I&&I.enumerable}:d},"./node_modules/core-js/internals/object-set-prototype-of.js":function(T,l,d){var N=d("./node_modules/core-js/internals/an-object.js"),v=d("./node_modules/core-js/internals/a-possible-prototype.js");T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,b={},I;try{I=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,I.call(b,[]),m=b instanceof Array}catch(L){}return function(z,P){return N(z),v(P),m?I.call(z,P):z.__proto__=P,z}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/to-string-tag-support.js"),v=d("./node_modules/core-js/internals/classof.js");T.exports=N?{}.toString:function(){return"[object "+v(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(T,l,d){var N=d("./node_modules/core-js/internals/is-object.js");T.exports=function(v,m){var b,I;if(m==="string"&&typeof(b=v.toString)=="function"&&!N(I=b.call(v))||typeof(b=v.valueOf)=="function"&&!N(I=b.call(v))||m!=="string"&&typeof(b=v.toString)=="function"&&!N(I=b.call(v)))return I;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(T,l,d){var N=d("./node_modules/core-js/internals/get-built-in.js"),v=d("./node_modules/core-js/internals/object-get-own-property-names.js"),m=d("./node_modules/core-js/internals/object-get-own-property-symbols.js"),b=d("./node_modules/core-js/internals/an-object.js");T.exports=N("Reflect","ownKeys")||function(L){var z=v.f(b(L)),P=m.f;return P?z.concat(P(L)):z}},"./node_modules/core-js/internals/path.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js");T.exports=N},"./node_modules/core-js/internals/redefine.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=d("./node_modules/core-js/internals/create-non-enumerable-property.js"),m=d("./node_modules/core-js/internals/has.js"),b=d("./node_modules/core-js/internals/set-global.js"),I=d("./node_modules/core-js/internals/inspect-source.js"),L=d("./node_modules/core-js/internals/internal-state.js"),z=L.get,P=L.enforce,$=String(String).split("String");(T.exports=function(J,te,H,G){var ce=G?!!G.unsafe:!1,q=G?!!G.enumerable:!1,ye=G?!!G.noTargetGet:!1,_e;if(typeof H=="function"&&(typeof te=="string"&&!m(H,"name")&&v(H,"name",te),_e=P(H),_e.source||(_e.source=$.join(typeof te=="string"?te:""))),J===N){q?J[te]=H:b(te,H);return}else ce?!ye&&J[te]&&(q=!0):delete J[te];q?J[te]=H:v(J,te,H)})(Function.prototype,"toString",function(){return typeof this=="function"&&z(this).source||I(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/an-object.js");T.exports=function(){var v=N(this),m="";return v.global&&(m+="g"),v.ignoreCase&&(m+="i"),v.multiline&&(m+="m"),v.dotAll&&(m+="s"),v.unicode&&(m+="u"),v.sticky&&(m+="y"),m}},"./node_modules/core-js/internals/require-object-coercible.js":function(T){T.exports=function(l){if(l==null)throw TypeError("Can't call method on "+l);return l}},"./node_modules/core-js/internals/set-global.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js");T.exports=function(v,m){try{Object.defineProperty(N,v,{value:m,configurable:!0,writable:!0})}catch(b){N[v]=m}return m}},"./node_modules/core-js/internals/set-to-string-tag.js":function(T,l,d){var N=d("./node_modules/core-js/internals/object-define-property.js").f,v=d("./node_modules/core-js/internals/has.js"),m=d("./node_modules/core-js/internals/well-known-symbol.js"),b=m("toStringTag");T.exports=function(I,L,z){I&&!v(I=z?I:I.prototype,b)&&N(I,b,{configurable:!0,value:L})}},"./node_modules/core-js/internals/shared-key.js":function(T,l,d){var N=d("./node_modules/core-js/internals/shared.js"),v=d("./node_modules/core-js/internals/uid.js"),m=N("keys");T.exports=function(b){return m[b]||(m[b]=v(b))}},"./node_modules/core-js/internals/shared-store.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=d("./node_modules/core-js/internals/set-global.js"),m="__core-js_shared__",b=N[m]||v(m,{});T.exports=b},"./node_modules/core-js/internals/shared.js":function(T,l,d){var N=d("./node_modules/core-js/internals/is-pure.js"),v=d("./node_modules/core-js/internals/shared-store.js");(T.exports=function(m,b){return v[m]||(v[m]=b!==void 0?b:{})})("versions",[]).push({version:"3.16.0",mode:N?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(T,l,d){var N=d("./node_modules/core-js/internals/fails.js");T.exports=function(v){return N(function(){var m=""[v]('"');return m!==m.toLowerCase()||m.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(T,l,d){var N=d("./node_modules/core-js/internals/to-integer.js"),v=d("./node_modules/core-js/internals/to-string.js"),m=d("./node_modules/core-js/internals/require-object-coercible.js"),b=function(I){return function(L,z){var P=v(m(L)),$=N(z),J=P.length,te,H;return $<0||$>=J?I?"":void 0:(te=P.charCodeAt($),te<55296||te>56319||$+1===J||(H=P.charCodeAt($+1))<56320||H>57343?I?P.charAt($):te:I?P.slice($,$+2):(te-55296<<10)+(H-56320)+65536)}};T.exports={codeAt:b(!1),charAt:b(!0)}},"./node_modules/core-js/internals/string-trim.js":function(T,l,d){var N=d("./node_modules/core-js/internals/require-object-coercible.js"),v=d("./node_modules/core-js/internals/to-string.js"),m=d("./node_modules/core-js/internals/whitespaces.js"),b="["+m+"]",I=RegExp("^"+b+b+"*"),L=RegExp(b+b+"*$"),z=function(P){return function($){var J=v(N($));return P&1&&(J=J.replace(I,"")),P&2&&(J=J.replace(L,"")),J}};T.exports={start:z(1),end:z(2),trim:z(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(T,l,d){var N=d("./node_modules/core-js/internals/to-integer.js"),v=Math.max,m=Math.min;T.exports=function(b,I){var L=N(b);return L<0?v(L+I,0):m(L,I)}},"./node_modules/core-js/internals/to-indexed-object.js":function(T,l,d){var N=d("./node_modules/core-js/internals/indexed-object.js"),v=d("./node_modules/core-js/internals/require-object-coercible.js");T.exports=function(m){return N(v(m))}},"./node_modules/core-js/internals/to-integer.js":function(T){var l=Math.ceil,d=Math.floor;T.exports=function(N){return isNaN(N=+N)?0:(N>0?d:l)(N)}},"./node_modules/core-js/internals/to-length.js":function(T,l,d){var N=d("./node_modules/core-js/internals/to-integer.js"),v=Math.min;T.exports=function(m){return m>0?v(N(m),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(T,l,d){var N=d("./node_modules/core-js/internals/require-object-coercible.js");T.exports=function(v){return Object(N(v))}},"./node_modules/core-js/internals/to-primitive.js":function(T,l,d){var N=d("./node_modules/core-js/internals/is-object.js"),v=d("./node_modules/core-js/internals/is-symbol.js"),m=d("./node_modules/core-js/internals/ordinary-to-primitive.js"),b=d("./node_modules/core-js/internals/well-known-symbol.js"),I=b("toPrimitive");T.exports=function(L,z){if(!N(L)||v(L))return L;var P=L[I],$;if(P!==void 0){if(z===void 0&&(z="default"),$=P.call(L,z),!N($)||v($))return $;throw TypeError("Can't convert object to primitive value")}return z===void 0&&(z="number"),m(L,z)}},"./node_modules/core-js/internals/to-property-key.js":function(T,l,d){var N=d("./node_modules/core-js/internals/to-primitive.js"),v=d("./node_modules/core-js/internals/is-symbol.js");T.exports=function(m){var b=N(m,"string");return v(b)?b:String(b)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(T,l,d){var N=d("./node_modules/core-js/internals/well-known-symbol.js"),v=N("toStringTag"),m={};m[v]="z",T.exports=String(m)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(T,l,d){var N=d("./node_modules/core-js/internals/is-symbol.js");T.exports=function(v){if(N(v))throw TypeError("Cannot convert a Symbol value to a string");return String(v)}},"./node_modules/core-js/internals/uid.js":function(T){var l=0,d=Math.random();T.exports=function(N){return"Symbol("+String(N===void 0?"":N)+")_"+(++l+d).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(T,l,d){var N=d("./node_modules/core-js/internals/native-symbol.js");T.exports=N&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(T,l,d){var N=d("./node_modules/core-js/internals/well-known-symbol.js");l.f=N},"./node_modules/core-js/internals/well-known-symbol.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=d("./node_modules/core-js/internals/shared.js"),m=d("./node_modules/core-js/internals/has.js"),b=d("./node_modules/core-js/internals/uid.js"),I=d("./node_modules/core-js/internals/native-symbol.js"),L=d("./node_modules/core-js/internals/use-symbol-as-uid.js"),z=v("wks"),P=N.Symbol,$=L?P:P&&P.withoutSetter||b;T.exports=function(J){return(!m(z,J)||!(I||typeof z[J]=="string"))&&(I&&m(P,J)?z[J]=P[J]:z[J]=$("Symbol."+J)),z[J]}},"./node_modules/core-js/internals/whitespaces.js":function(T){T.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/fails.js"),m=d("./node_modules/core-js/internals/is-array.js"),b=d("./node_modules/core-js/internals/is-object.js"),I=d("./node_modules/core-js/internals/to-object.js"),L=d("./node_modules/core-js/internals/to-length.js"),z=d("./node_modules/core-js/internals/create-property.js"),P=d("./node_modules/core-js/internals/array-species-create.js"),$=d("./node_modules/core-js/internals/array-method-has-species-support.js"),J=d("./node_modules/core-js/internals/well-known-symbol.js"),te=d("./node_modules/core-js/internals/engine-v8-version.js"),H=J("isConcatSpreadable"),G=9007199254740991,ce="Maximum allowed index exceeded",q=te>=51||!v(function(){var se=[];return se[H]=!1,se.concat()[0]!==se}),ye=$("concat"),_e=function(se){if(!b(se))return!1;var be=se[H];return be!==void 0?!!be:m(se)},Le=!q||!ye;N({target:"Array",proto:!0,forced:Le},{concat:function(be){var O=I(this),Ee=P(O,0),ue=0,he,ve,F,U,ee;for(he=-1,F=arguments.length;he<F;he++)if(ee=he===-1?O:arguments[he],_e(ee)){if(U=L(ee.length),ue+U>G)throw TypeError(ce);for(ve=0;ve<U;ve++,ue++)ve in ee&&z(Ee,ue,ee[ve])}else{if(ue>=G)throw TypeError(ce);z(Ee,ue++,ee)}return Ee.length=ue,Ee}})},"./node_modules/core-js/modules/es.array.iterator.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/to-indexed-object.js"),v=d("./node_modules/core-js/internals/add-to-unscopables.js"),m=d("./node_modules/core-js/internals/iterators.js"),b=d("./node_modules/core-js/internals/internal-state.js"),I=d("./node_modules/core-js/internals/define-iterator.js"),L="Array Iterator",z=b.set,P=b.getterFor(L);T.exports=I(Array,"Array",function($,J){z(this,{type:L,target:N($),index:0,kind:J})},function(){var $=P(this),J=$.target,te=$.kind,H=$.index++;return!J||H>=J.length?($.target=void 0,{value:void 0,done:!0}):te=="keys"?{value:H,done:!1}:te=="values"?{value:J[H],done:!1}:{value:[H,J[H]],done:!1}},"values"),m.Arguments=m.Array,v("keys"),v("values"),v("entries")},"./node_modules/core-js/modules/es.array.join.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/indexed-object.js"),m=d("./node_modules/core-js/internals/to-indexed-object.js"),b=d("./node_modules/core-js/internals/array-method-is-strict.js"),I=[].join,L=v!=Object,z=b("join",",");N({target:"Array",proto:!0,forced:L||!z},{join:function($){return I.call(m(this),$===void 0?",":$)}})},"./node_modules/core-js/modules/es.array.map.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/array-iteration.js").map,m=d("./node_modules/core-js/internals/array-method-has-species-support.js"),b=m("map");N({target:"Array",proto:!0,forced:!b},{map:function(L){return v(this,L,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/is-object.js"),m=d("./node_modules/core-js/internals/is-array.js"),b=d("./node_modules/core-js/internals/to-absolute-index.js"),I=d("./node_modules/core-js/internals/to-length.js"),L=d("./node_modules/core-js/internals/to-indexed-object.js"),z=d("./node_modules/core-js/internals/create-property.js"),P=d("./node_modules/core-js/internals/well-known-symbol.js"),$=d("./node_modules/core-js/internals/array-method-has-species-support.js"),J=$("slice"),te=P("species"),H=[].slice,G=Math.max;N({target:"Array",proto:!0,forced:!J},{slice:function(q,ye){var _e=L(this),Le=I(_e.length),se=b(q,Le),be=b(ye===void 0?Le:ye,Le),O,Ee,ue;if(m(_e)&&(O=_e.constructor,typeof O=="function"&&(O===Array||m(O.prototype))?O=void 0:v(O)&&(O=O[te],O===null&&(O=void 0)),O===Array||O===void 0))return H.call(_e,se,be);for(Ee=new(O===void 0?Array:O)(G(be-se,0)),ue=0;se<be;se++,ue++)se in _e&&z(Ee,ue,_e[se]);return Ee.length=ue,Ee}})},"./node_modules/core-js/modules/es.function.name.js":function(T,l,d){var N=d("./node_modules/core-js/internals/descriptors.js"),v=d("./node_modules/core-js/internals/object-define-property.js").f,m=Function.prototype,b=m.toString,I=/^\s*function ([^ (]*)/,L="name";N&&!(L in m)&&v(m,L,{configurable:!0,get:function(){try{return b.call(this).match(I)[1]}catch(z){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/descriptors.js"),v=d("./node_modules/core-js/internals/global.js"),m=d("./node_modules/core-js/internals/is-forced.js"),b=d("./node_modules/core-js/internals/redefine.js"),I=d("./node_modules/core-js/internals/has.js"),L=d("./node_modules/core-js/internals/classof-raw.js"),z=d("./node_modules/core-js/internals/inherit-if-required.js"),P=d("./node_modules/core-js/internals/is-symbol.js"),$=d("./node_modules/core-js/internals/to-primitive.js"),J=d("./node_modules/core-js/internals/fails.js"),te=d("./node_modules/core-js/internals/object-create.js"),H=d("./node_modules/core-js/internals/object-get-own-property-names.js").f,G=d("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,ce=d("./node_modules/core-js/internals/object-define-property.js").f,q=d("./node_modules/core-js/internals/string-trim.js").trim,ye="Number",_e=v[ye],Le=_e.prototype,se=L(te(Le))==ye,be=function(ve){if(P(ve))throw TypeError("Cannot convert a Symbol value to a number");var F=$(ve,"number"),U,ee,de,Xe,tt,nt,_t,Xt;if(typeof F=="string"&&F.length>2){if(F=q(F),U=F.charCodeAt(0),U===43||U===45){if(ee=F.charCodeAt(2),ee===88||ee===120)return NaN}else if(U===48){switch(F.charCodeAt(1)){case 66:case 98:de=2,Xe=49;break;case 79:case 111:de=8,Xe=55;break;default:return+F}for(tt=F.slice(2),nt=tt.length,_t=0;_t<nt;_t++)if(Xt=tt.charCodeAt(_t),Xt<48||Xt>Xe)return NaN;return parseInt(tt,de)}}return+F};if(m(ye,!_e(" 0o1")||!_e("0b1")||_e("+0x1"))){for(var O=function(F){var U=arguments.length<1?0:F,ee=this;return ee instanceof O&&(se?J(function(){Le.valueOf.call(ee)}):L(ee)!=ye)?z(new _e(be(U)),ee,O):be(U)},Ee=N?H(_e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),ue=0,he;Ee.length>ue;ue++)I(_e,he=Ee[ue])&&!I(O,he)&&ce(O,he,G(_e,he));O.prototype=Le,Le.constructor=O,b(v,ye,O)}},"./node_modules/core-js/modules/es.object.assign.js":function(T,l,d){var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/object-assign.js");N({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},"./node_modules/core-js/modules/es.object.keys.js":function(T,l,d){var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/to-object.js"),m=d("./node_modules/core-js/internals/object-keys.js"),b=d("./node_modules/core-js/internals/fails.js"),I=b(function(){m(1)});N({target:"Object",stat:!0,forced:I},{keys:function(z){return m(v(z))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(T,l,d){var N=d("./node_modules/core-js/internals/to-string-tag-support.js"),v=d("./node_modules/core-js/internals/redefine.js"),m=d("./node_modules/core-js/internals/object-to-string.js");N||v(Object.prototype,"toString",m,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/redefine.js"),v=d("./node_modules/core-js/internals/an-object.js"),m=d("./node_modules/core-js/internals/to-string.js"),b=d("./node_modules/core-js/internals/fails.js"),I=d("./node_modules/core-js/internals/regexp-flags.js"),L="toString",z=RegExp.prototype,P=z[L],$=b(function(){return P.call({source:"a",flags:"b"})!="/a/b"}),J=P.name!=L;($||J)&&N(RegExp.prototype,L,function(){var H=v(this),G=m(H.source),ce=H.flags,q=m(ce===void 0&&H instanceof RegExp&&!("flags"in z)?I.call(H):ce);return"/"+G+"/"+q},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/string-multibyte.js").charAt,v=d("./node_modules/core-js/internals/to-string.js"),m=d("./node_modules/core-js/internals/internal-state.js"),b=d("./node_modules/core-js/internals/define-iterator.js"),I="String Iterator",L=m.set,z=m.getterFor(I);b(String,"String",function(P){L(this,{type:I,string:v(P),index:0})},function(){var $=z(this),J=$.string,te=$.index,H;return te>=J.length?{value:void 0,done:!0}:(H=N(J,te),$.index+=H.length,{value:H,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/create-html.js"),m=d("./node_modules/core-js/internals/string-html-forced.js");N({target:"String",proto:!0,forced:m("link")},{link:function(I){return v(this,"a","href",I)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/descriptors.js"),m=d("./node_modules/core-js/internals/global.js"),b=d("./node_modules/core-js/internals/has.js"),I=d("./node_modules/core-js/internals/is-object.js"),L=d("./node_modules/core-js/internals/object-define-property.js").f,z=d("./node_modules/core-js/internals/copy-constructor-properties.js"),P=m.Symbol;if(v&&typeof P=="function"&&(!("description"in P.prototype)||P().description!==void 0)){var $={},J=function(){var ye=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),_e=this instanceof J?new P(ye):ye===void 0?P():P(ye);return ye===""&&($[_e]=!0),_e};z(J,P);var te=J.prototype=P.prototype;te.constructor=J;var H=te.toString,G=String(P("test"))=="Symbol(test)",ce=/^Symbol\((.*)\)[^)]+$/;L(te,"description",{configurable:!0,get:function(){var ye=I(this)?this.valueOf():this,_e=H.call(ye);if(b($,ye))return"";var Le=G?_e.slice(7,-1):_e.replace(ce,"$1");return Le===""?void 0:Le}}),N({global:!0,forced:!0},{Symbol:J})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(T,l,d){var N=d("./node_modules/core-js/internals/define-well-known-symbol.js");N("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(T,l,d){"use strict";var N=d("./node_modules/core-js/internals/export.js"),v=d("./node_modules/core-js/internals/global.js"),m=d("./node_modules/core-js/internals/get-built-in.js"),b=d("./node_modules/core-js/internals/is-pure.js"),I=d("./node_modules/core-js/internals/descriptors.js"),L=d("./node_modules/core-js/internals/native-symbol.js"),z=d("./node_modules/core-js/internals/fails.js"),P=d("./node_modules/core-js/internals/has.js"),$=d("./node_modules/core-js/internals/is-array.js"),J=d("./node_modules/core-js/internals/is-object.js"),te=d("./node_modules/core-js/internals/is-symbol.js"),H=d("./node_modules/core-js/internals/an-object.js"),G=d("./node_modules/core-js/internals/to-object.js"),ce=d("./node_modules/core-js/internals/to-indexed-object.js"),q=d("./node_modules/core-js/internals/to-property-key.js"),ye=d("./node_modules/core-js/internals/to-string.js"),_e=d("./node_modules/core-js/internals/create-property-descriptor.js"),Le=d("./node_modules/core-js/internals/object-create.js"),se=d("./node_modules/core-js/internals/object-keys.js"),be=d("./node_modules/core-js/internals/object-get-own-property-names.js"),O=d("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ee=d("./node_modules/core-js/internals/object-get-own-property-symbols.js"),ue=d("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),he=d("./node_modules/core-js/internals/object-define-property.js"),ve=d("./node_modules/core-js/internals/object-property-is-enumerable.js"),F=d("./node_modules/core-js/internals/create-non-enumerable-property.js"),U=d("./node_modules/core-js/internals/redefine.js"),ee=d("./node_modules/core-js/internals/shared.js"),de=d("./node_modules/core-js/internals/shared-key.js"),Xe=d("./node_modules/core-js/internals/hidden-keys.js"),tt=d("./node_modules/core-js/internals/uid.js"),nt=d("./node_modules/core-js/internals/well-known-symbol.js"),_t=d("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Xt=d("./node_modules/core-js/internals/define-well-known-symbol.js"),zt=d("./node_modules/core-js/internals/set-to-string-tag.js"),Ze=d("./node_modules/core-js/internals/internal-state.js"),fr=d("./node_modules/core-js/internals/array-iteration.js").forEach,yr=de("hidden"),Ar="Symbol",vr="prototype",Ce=nt("toPrimitive"),It=Ze.set,Z=Ze.getterFor(Ar),x=Object[vr],y=v.Symbol,k=m("JSON","stringify"),fe=ue.f,W=he.f,Q=O.f,re=ve.f,Se=ee("symbols"),Be=ee("op-symbols"),Te=ee("string-to-symbol-registry"),Ge=ee("symbol-to-string-registry"),ut=ee("wks"),$e=v.QObject,Je=!$e||!$e[vr]||!$e[vr].findChild,At=I&&z(function(){return Le(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a!=7})?function(Vt,Ue,it){var Rr=fe(x,Ue);Rr&&delete x[Ue],W(Vt,Ue,it),Rr&&Vt!==x&&W(x,Ue,Rr)}:W,ze=function(Vt,Ue){var it=Se[Vt]=Le(y[vr]);return It(it,{type:Ar,tag:Vt,description:Ue}),I||(it.description=Ue),it},He=function(Ue,it,Rr){Ue===x&&He(Be,it,Rr),H(Ue);var Tt=q(it);return H(Rr),P(Se,Tt)?(Rr.enumerable?(P(Ue,yr)&&Ue[yr][Tt]&&(Ue[yr][Tt]=!1),Rr=Le(Rr,{enumerable:_e(0,!1)})):(P(Ue,yr)||W(Ue,yr,_e(1,{})),Ue[yr][Tt]=!0),At(Ue,Tt,Rr)):W(Ue,Tt,Rr)},vt=function(Ue,it){H(Ue);var Rr=ce(it),Tt=se(Rr).concat(ne(Rr));return fr(Tt,function(Rt){(!I||Dt.call(Rr,Rt))&&He(Ue,Rt,Rr[Rt])}),Ue},jt=function(Ue,it){return it===void 0?Le(Ue):vt(Le(Ue),it)},Dt=function(Ue){var it=q(Ue),Rr=re.call(this,it);return this===x&&P(Se,it)&&!P(Be,it)?!1:Rr||!P(this,it)||!P(Se,it)||P(this,yr)&&this[yr][it]?Rr:!0},lr=function(Ue,it){var Rr=ce(Ue),Tt=q(it);if(!(Rr===x&&P(Se,Tt)&&!P(Be,Tt))){var Rt=fe(Rr,Tt);return Rt&&P(Se,Tt)&&!(P(Rr,yr)&&Rr[yr][Tt])&&(Rt.enumerable=!0),Rt}},gr=function(Ue){var it=Q(ce(Ue)),Rr=[];return fr(it,function(Tt){!P(Se,Tt)&&!P(Xe,Tt)&&Rr.push(Tt)}),Rr},ne=function(Ue){var it=Ue===x,Rr=Q(it?Be:ce(Ue)),Tt=[];return fr(Rr,function(Rt){P(Se,Rt)&&(!it||P(x,Rt))&&Tt.push(Se[Rt])}),Tt};if(L||(y=function(){if(this instanceof y)throw TypeError("Symbol is not a constructor");var Ue=!arguments.length||arguments[0]===void 0?void 0:ye(arguments[0]),it=tt(Ue),Rr=function(Tt){this===x&&Rr.call(Be,Tt),P(this,yr)&&P(this[yr],it)&&(this[yr][it]=!1),At(this,it,_e(1,Tt))};return I&&Je&&At(x,it,{configurable:!0,set:Rr}),ze(it,Ue)},U(y[vr],"toString",function(){return Z(this).tag}),U(y,"withoutSetter",function(Vt){return ze(tt(Vt),Vt)}),ve.f=Dt,he.f=He,ue.f=lr,be.f=O.f=gr,Ee.f=ne,_t.f=function(Vt){return ze(nt(Vt),Vt)},I&&(W(y[vr],"description",{configurable:!0,get:function(){return Z(this).description}}),b||U(x,"propertyIsEnumerable",Dt,{unsafe:!0}))),N({global:!0,wrap:!0,forced:!L,sham:!L},{Symbol:y}),fr(se(ut),function(Vt){Xt(Vt)}),N({target:Ar,stat:!0,forced:!L},{for:function(Vt){var Ue=ye(Vt);if(P(Te,Ue))return Te[Ue];var it=y(Ue);return Te[Ue]=it,Ge[it]=Ue,it},keyFor:function(Ue){if(!te(Ue))throw TypeError(Ue+" is not a symbol");if(P(Ge,Ue))return Ge[Ue]},useSetter:function(){Je=!0},useSimple:function(){Je=!1}}),N({target:"Object",stat:!0,forced:!L,sham:!I},{create:jt,defineProperty:He,defineProperties:vt,getOwnPropertyDescriptor:lr}),N({target:"Object",stat:!0,forced:!L},{getOwnPropertyNames:gr,getOwnPropertySymbols:ne}),N({target:"Object",stat:!0,forced:z(function(){Ee.f(1)})},{getOwnPropertySymbols:function(Ue){return Ee.f(G(Ue))}}),k){var we=!L||z(function(){var Vt=y();return k([Vt])!="[null]"||k({a:Vt})!="{}"||k(Object(Vt))!="{}"});N({target:"JSON",stat:!0,forced:we},{stringify:function(Ue,it,Rr){for(var Tt=[Ue],Rt=1,$t;arguments.length>Rt;)Tt.push(arguments[Rt++]);if($t=it,!(!J(it)&&Ue===void 0||te(Ue)))return $(it)||(it=function(qe,pt){if(typeof $t=="function"&&(pt=$t.call(this,qe,pt)),!te(pt))return pt}),Tt[1]=it,k.apply(null,Tt)}})}y[vr][Ce]||F(y[vr],Ce,y[vr].valueOf),zt(y,Ar),Xe[yr]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=d("./node_modules/core-js/internals/dom-iterables.js"),m=d("./node_modules/core-js/internals/array-for-each.js"),b=d("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var I in v){var L=N[I],z=L&&L.prototype;if(z&&z.forEach!==m)try{b(z,"forEach",m)}catch(P){z.forEach=m}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(T,l,d){var N=d("./node_modules/core-js/internals/global.js"),v=d("./node_modules/core-js/internals/dom-iterables.js"),m=d("./node_modules/core-js/modules/es.array.iterator.js"),b=d("./node_modules/core-js/internals/create-non-enumerable-property.js"),I=d("./node_modules/core-js/internals/well-known-symbol.js"),L=I("iterator"),z=I("toStringTag"),P=m.values;for(var $ in v){var J=N[$],te=J&&J.prototype;if(te){if(te[L]!==P)try{b(te,L,P)}catch(G){te[L]=P}if(te[z]||b(te,z,$),v[$]){for(var H in m)if(te[H]!==m[H])try{b(te,H,m[H])}catch(G){te[H]=m[H]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(T){(function(l,d){T.exports=d()})(this,function(){"use strict";function l($e){var Je=typeof $e;return $e!==null&&(Je==="object"||Je==="function")}function d($e){return typeof $e=="function"}var N=void 0;Array.isArray?N=Array.isArray:N=function($e){return Object.prototype.toString.call($e)==="[object Array]"};var v=N,m=0,b=void 0,I=void 0,L=function(Je,At){se[m]=Je,se[m+1]=At,m+=2,m===2&&(I?I(be):Ee())};function z($e){I=$e}function P($e){L=$e}var $=typeof window!="undefined"?window:void 0,J=$||{},te=J.MutationObserver||J.WebKitMutationObserver,H=typeof self=="undefined"&&typeof le!="undefined"&&{}.toString.call(le)==="[object process]",G=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function ce(){return function(){return le.nextTick(be)}}function q(){return typeof b!="undefined"?function(){b(be)}:Le()}function ye(){var $e=0,Je=new te(be),At=document.createTextNode("");return Je.observe(At,{characterData:!0}),function(){At.data=$e=++$e%2}}function _e(){var $e=new MessageChannel;return $e.port1.onmessage=be,function(){return $e.port2.postMessage(0)}}function Le(){var $e=setTimeout;return function(){return $e(be,1)}}var se=new Array(1e3);function be(){for(var $e=0;$e<m;$e+=2){var Je=se[$e],At=se[$e+1];Je(At),se[$e]=void 0,se[$e+1]=void 0}m=0}function O(){try{var $e=Function("return this")().require("vertx");return b=$e.runOnLoop||$e.runOnContext,q()}catch(Je){return Le()}}var Ee=void 0;H?Ee=ce():te?Ee=ye():G?Ee=_e():$===void 0?Ee=O():Ee=Le();function ue($e,Je){var At=this,ze=new this.constructor(F);ze[ve]===void 0&&k(ze);var He=At._state;if(He){var vt=arguments[He-1];L(function(){return It(He,ze,vt,At._result)})}else vr(At,ze,$e,Je);return ze}function he($e){var Je=this;if($e&&typeof $e=="object"&&$e.constructor===Je)return $e;var At=new Je(F);return Ze(At,$e),At}var ve=Math.random().toString(36).substring(2);function F(){}var U=void 0,ee=1,de=2;function Xe(){return new TypeError("You cannot resolve a promise with itself")}function tt(){return new TypeError("A promises callback cannot return that same promise.")}function nt($e,Je,At,ze){try{$e.call(Je,At,ze)}catch(He){return He}}function _t($e,Je,At){L(function(ze){var He=!1,vt=nt(At,Je,function(jt){He||(He=!0,Je!==jt?Ze(ze,jt):yr(ze,jt))},function(jt){He||(He=!0,Ar(ze,jt))},"Settle: "+(ze._label||" unknown promise"));!He&&vt&&(He=!0,Ar(ze,vt))},$e)}function Xt($e,Je){Je._state===ee?yr($e,Je._result):Je._state===de?Ar($e,Je._result):vr(Je,void 0,function(At){return Ze($e,At)},function(At){return Ar($e,At)})}function zt($e,Je,At){Je.constructor===$e.constructor&&At===ue&&Je.constructor.resolve===he?Xt($e,Je):At===void 0?yr($e,Je):d(At)?_t($e,Je,At):yr($e,Je)}function Ze($e,Je){if($e===Je)Ar($e,Xe());else if(l(Je)){var At=void 0;try{At=Je.then}catch(ze){Ar($e,ze);return}zt($e,Je,At)}else yr($e,Je)}function fr($e){$e._onerror&&$e._onerror($e._result),Ce($e)}function yr($e,Je){$e._state===U&&($e._result=Je,$e._state=ee,$e._subscribers.length!==0&&L(Ce,$e))}function Ar($e,Je){$e._state===U&&($e._state=de,$e._result=Je,L(fr,$e))}function vr($e,Je,At,ze){var He=$e._subscribers,vt=He.length;$e._onerror=null,He[vt]=Je,He[vt+ee]=At,He[vt+de]=ze,vt===0&&$e._state&&L(Ce,$e)}function Ce($e){var Je=$e._subscribers,At=$e._state;if(Je.length!==0){for(var ze=void 0,He=void 0,vt=$e._result,jt=0;jt<Je.length;jt+=3)ze=Je[jt],He=Je[jt+At],ze?It(At,ze,He,vt):He(vt);$e._subscribers.length=0}}function It($e,Je,At,ze){var He=d(At),vt=void 0,jt=void 0,Dt=!0;if(He){try{vt=At(ze)}catch(lr){Dt=!1,jt=lr}if(Je===vt){Ar(Je,tt());return}}else vt=ze;Je._state!==U||(He&&Dt?Ze(Je,vt):Dt===!1?Ar(Je,jt):$e===ee?yr(Je,vt):$e===de&&Ar(Je,vt))}function Z($e,Je){try{Je(function(ze){Ze($e,ze)},function(ze){Ar($e,ze)})}catch(At){Ar($e,At)}}var x=0;function y(){return x++}function k($e){$e[ve]=x++,$e._state=void 0,$e._result=void 0,$e._subscribers=[]}function fe(){return new Error("Array Methods must be provided an Array")}var W=function(){function $e(Je,At){this._instanceConstructor=Je,this.promise=new Je(F),this.promise[ve]||k(this.promise),v(At)?(this.length=At.length,this._remaining=At.length,this._result=new Array(this.length),this.length===0?yr(this.promise,this._result):(this.length=this.length||0,this._enumerate(At),this._remaining===0&&yr(this.promise,this._result))):Ar(this.promise,fe())}return $e.prototype._enumerate=function(At){for(var ze=0;this._state===U&&ze<At.length;ze++)this._eachEntry(At[ze],ze)},$e.prototype._eachEntry=function(At,ze){var He=this._instanceConstructor,vt=He.resolve;if(vt===he){var jt=void 0,Dt=void 0,lr=!1;try{jt=At.then}catch(ne){lr=!0,Dt=ne}if(jt===ue&&At._state!==U)this._settledAt(At._state,ze,At._result);else if(typeof jt!="function")this._remaining--,this._result[ze]=At;else if(He===Ge){var gr=new He(F);lr?Ar(gr,Dt):zt(gr,At,jt),this._willSettleAt(gr,ze)}else this._willSettleAt(new He(function(ne){return ne(At)}),ze)}else this._willSettleAt(vt(At),ze)},$e.prototype._settledAt=function(At,ze,He){var vt=this.promise;vt._state===U&&(this._remaining--,At===de?Ar(vt,He):this._result[ze]=He),this._remaining===0&&yr(vt,this._result)},$e.prototype._willSettleAt=function(At,ze){var He=this;vr(At,void 0,function(vt){return He._settledAt(ee,ze,vt)},function(vt){return He._settledAt(de,ze,vt)})},$e}();function Q($e){return new W(this,$e).promise}function re($e){var Je=this;return v($e)?new Je(function(At,ze){for(var He=$e.length,vt=0;vt<He;vt++)Je.resolve($e[vt]).then(At,ze)}):new Je(function(At,ze){return ze(new TypeError("You must pass an array to race."))})}function Se($e){var Je=this,At=new Je(F);return Ar(At,$e),At}function Be(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Te(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Ge=function(){function $e(Je){this[ve]=y(),this._result=this._state=void 0,this._subscribers=[],F!==Je&&(typeof Je!="function"&&Be(),this instanceof $e?Z(this,Je):Te())}return $e.prototype.catch=function(At){return this.then(null,At)},$e.prototype.finally=function(At){var ze=this,He=ze.constructor;return d(At)?ze.then(function(vt){return He.resolve(At()).then(function(){return vt})},function(vt){return He.resolve(At()).then(function(){throw vt})}):ze.then(At,At)},$e}();Ge.prototype.then=ue,Ge.all=Q,Ge.race=re,Ge.resolve=he,Ge.reject=Se,Ge._setScheduler=z,Ge._setAsap=P,Ge._asap=L;function ut(){var $e=void 0;if(typeof E.g!="undefined")$e=E.g;else if(typeof self!="undefined")$e=self;else try{$e=Function("return this")()}catch(ze){throw new Error("polyfill failed because global object is unavailable in this environment")}var Je=$e.Promise;if(Je){var At=null;try{At=Object.prototype.toString.call(Je.resolve())}catch(ze){}if(At==="[object Promise]"&&!Je.cast)return}$e.Promise=Ge}return Ge.polyfill=ut,Ge.Promise=Ge,Ge})},html2canvas:function(T){"use strict";T.exports=ae},jspdf:function(T){"use strict";T.exports=Fe}},K={};function g(T){var l=K[T];if(l!==void 0)return l.exports;var d=K[T]={exports:{}};return Re[T].call(d.exports,d,d.exports,g),d.exports}(function(){g.n=function(T){var l=T&&T.__esModule?function(){return T.default}:function(){return T};return g.d(l,{a:l}),l}})(),function(){g.d=function(T,l){for(var d in l)g.o(l,d)&&!g.o(T,d)&&Object.defineProperty(T,d,{enumerable:!0,get:l[d]})}}(),function(){g.o=function(T,l){return Object.prototype.hasOwnProperty.call(T,l)}}(),function(){g.r=function(T){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(T,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(T,"__esModule",{value:!0})}}();var R={};return function(){"use strict";g.r(R);var T=g("./src/worker.js"),l=g("./src/plugin/jspdf-plugin.js"),d=g("./src/plugin/pagebreaks.js"),N=g("./src/plugin/hyperlinks.js"),v=function m(b,I){var L=new m.Worker(I);return b?L.from(b).save():L};v.Worker=T.default,R.default=v}(),R=R.default,R}()})},67467:function(tn,Mt){Mt.read=function(E,le,Fe,ae,Re){var K,g,R=Re*8-ae-1,T=(1<<R)-1,l=T>>1,d=-7,N=Fe?Re-1:0,v=Fe?-1:1,m=E[le+N];for(N+=v,K=m&(1<<-d)-1,m>>=-d,d+=R;d>0;K=K*256+E[le+N],N+=v,d-=8);for(g=K&(1<<-d)-1,K>>=-d,d+=ae;d>0;g=g*256+E[le+N],N+=v,d-=8);if(K===0)K=1-l;else{if(K===T)return g?NaN:(m?-1:1)*(1/0);g=g+Math.pow(2,ae),K=K-l}return(m?-1:1)*g*Math.pow(2,K-ae)},Mt.write=function(E,le,Fe,ae,Re,K){var g,R,T,l=K*8-Re-1,d=(1<<l)-1,N=d>>1,v=Re===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=ae?0:K-1,b=ae?1:-1,I=le<0||le===0&&1/le<0?1:0;for(le=Math.abs(le),isNaN(le)||le===1/0?(R=isNaN(le)?1:0,g=d):(g=Math.floor(Math.log(le)/Math.LN2),le*(T=Math.pow(2,-g))<1&&(g--,T*=2),g+N>=1?le+=v/T:le+=v*Math.pow(2,1-N),le*T>=2&&(g++,T/=2),g+N>=d?(R=0,g=d):g+N>=1?(R=(le*T-1)*Math.pow(2,Re),g=g+N):(R=le*Math.pow(2,N-1)*Math.pow(2,Re),g=0));Re>=8;E[Fe+m]=R&255,m+=b,R/=256,Re-=8);for(g=g<<Re|R,l+=Re;l>0;E[Fe+m]=g&255,m+=b,g/=256,l-=8);E[Fe+m-b]|=I*128}},53184:function(tn,Mt,E){"use strict";var le,Fe;function ae(Re,K,g){var R=function(T,l){return Re.js_beautify(T,l)};return R.js=Re.js_beautify,R.css=K.css_beautify,R.html=g.html_beautify,R.js_beautify=Re.js_beautify,R.css_beautify=K.css_beautify,R.html_beautify=g.html_beautify,R}le=[E(58553),E(87804),E(40998)],Fe=function(Re,K,g){return ae(Re,K,g)}.apply(Mt,le),Fe!==void 0&&(tn.exports=Fe)},87804:function(tn,Mt){var E,le;(function(){var Fe;(function(){"use strict";var Re=[,,function(T){function l(v){this.__parent=v,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}l.prototype.clone_empty=function(){var v=new l(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},l.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},l.prototype.has_match=function(v){for(var m=this.__items.length-1;m>=0;m--)if(this.__items[m].match(v))return!0;return!1},l.prototype.set_indent=function(v,m){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=m||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},l.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},l.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(v){this.__items.push(v);var m=v.lastIndexOf(`
|
|
|
`);m!==-1?this.__character_count=v.length-m:this.__character_count+=v.length},l.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function d(v,m){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),m=m||"",v.indent_level>0&&(m=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=m,this.__base_string_length=m.length}d.prototype.get_indent_size=function(v,m){var b=this.__base_string_length;return m=m||0,v<0&&(b=0),b+=v*this.__indent_size,b+=m,b},d.prototype.get_indent_string=function(v,m){var b=this.__base_string;return m=m||0,v<0&&(v=0,b=""),m+=v*this.__indent_size,this.__ensure_cache(m),b+=this.__cache[m],b},d.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},d.prototype.__add_column=function(){var v=this.__cache.length,m=0,b="";this.__indent_size&&v>=this.__indent_size&&(m=Math.floor(v/this.__indent_size),v-=m*this.__indent_size,b=new Array(m+1).join(this.__indent_string)),v&&(b+=new Array(v+1).join(" ")),this.__cache.push(b)};function N(v,m){this.__indent_cache=new d(v,m),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}N.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},N.prototype.get_line_number=function(){return this.__lines.length},N.prototype.get_indent_string=function(v,m){return this.__indent_cache.get_indent_string(v,m)},N.prototype.get_indent_size=function(v,m){return this.__indent_cache.get_indent_size(v,m)},N.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},N.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},N.prototype.get_code=function(v){this.trim(!0);var m=this.current_line.pop();m&&(m[m.length-1]===`
|
|
|
`&&(m=m.replace(/\n+$/g,"")),this.current_line.push(m)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
|
|
|
`);return v!==`
|
|
|
`&&(b=b.replace(/[\n]/g,v)),b},N.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},N.prototype.set_indent=function(v,m){return v=v||0,m=m||0,this.next_line.set_indent(v,m),this.__lines.length>1?(this.current_line.set_indent(v,m),!0):(this.current_line.set_indent(),!1)},N.prototype.add_raw_token=function(v){for(var m=0;m<v.newlines;m++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},N.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},N.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},N.prototype.remove_indent=function(v){for(var m=this.__lines.length;v<m;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},N.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},N.prototype.just_added_newline=function(){return this.current_line.is_empty()},N.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},N.prototype.ensure_empty_line_above=function(v,m){for(var b=this.__lines.length-2;b>=0;){var I=this.__lines[b];if(I.is_empty())break;if(I.item(0).indexOf(v)!==0&&I.item(-1)!==m){this.__lines.splice(b+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},T.exports.Output=N},,,,function(T){function l(v,m){this.raw_options=d(v,m),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}l.prototype._get_array=function(v,m){var b=this.raw_options[v],I=m||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(I=b.concat()):typeof b=="string"&&(I=b.split(/[^a-zA-Z0-9_\/\-]+/)),I},l.prototype._get_boolean=function(v,m){var b=this.raw_options[v],I=b===void 0?!!m:!!b;return I},l.prototype._get_characters=function(v,m){var b=this.raw_options[v],I=m||"";return typeof b=="string"&&(I=b.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),I},l.prototype._get_number=function(v,m){var b=this.raw_options[v];m=parseInt(m,10),isNaN(m)&&(m=0);var I=parseInt(b,10);return isNaN(I)&&(I=m),I},l.prototype._get_selection=function(v,m,b){var I=this._get_selection_list(v,m,b);if(I.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
|
|
|
`+m+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return I[0]},l.prototype._get_selection_list=function(v,m,b){if(!m||m.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[m[0]],!this._is_valid_selection(b,m))throw new Error("Invalid Default Value!");var I=this._get_array(v,b);if(!this._is_valid_selection(I,m))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
|
|
|
`+m+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return I},l.prototype._is_valid_selection=function(v,m){return v.length&&m.length&&!v.some(function(b){return m.indexOf(b)===-1})};function d(v,m){var b={};v=N(v);var I;for(I in v)I!==m&&(b[I]=v[I]);if(m&&v[m])for(I in v[m])b[I]=v[m][I];return b}function N(v){var m={},b;for(b in v){var I=b.replace(/-/g,"_");m[I]=v[b]}return m}T.exports.Options=l,T.exports.normalizeOpts=N,T.exports.mergeOpts=d},,function(T){var l=RegExp.prototype.hasOwnProperty("sticky");function d(N){this.__input=N||"",this.__input_length=this.__input.length,this.__position=0}d.prototype.restart=function(){this.__position=0},d.prototype.back=function(){this.__position>0&&(this.__position-=1)},d.prototype.hasNext=function(){return this.__position<this.__input_length},d.prototype.next=function(){var N=null;return this.hasNext()&&(N=this.__input.charAt(this.__position),this.__position+=1),N},d.prototype.peek=function(N){var v=null;return N=N||0,N+=this.__position,N>=0&&N<this.__input_length&&(v=this.__input.charAt(N)),v},d.prototype.__match=function(N,v){N.lastIndex=v;var m=N.exec(this.__input);return m&&!(l&&N.sticky)&&m.index!==v&&(m=null),m},d.prototype.test=function(N,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(N,v):!1},d.prototype.testChar=function(N,v){var m=this.peek(v);return N.lastIndex=0,m!==null&&N.test(m)},d.prototype.match=function(N){var v=this.__match(N,this.__position);return v?this.__position+=v[0].length:v=null,v},d.prototype.read=function(N,v,m){var b="",I;return N&&(I=this.match(N),I&&(b+=I[0])),v&&(I||!N)&&(b+=this.readUntil(v,m)),b},d.prototype.readUntil=function(N,v){var m="",b=this.__position;N.lastIndex=this.__position;var I=N.exec(this.__input);return I?(b=I.index,v&&(b+=I[0].length)):b=this.__input_length,m=this.__input.substring(this.__position,b),this.__position=b,m},d.prototype.readUntilAfter=function(N){return this.readUntil(N,!0)},d.prototype.get_regexp=function(N,v){var m=null,b="g";return v&&l&&(b="y"),typeof N=="string"&&N!==""?m=new RegExp(N,b):N&&(m=new RegExp(N.source,b)),m},d.prototype.get_literal_regexp=function(N){return RegExp(N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},d.prototype.peekUntilAfter=function(N){var v=this.__position,m=this.readUntilAfter(N);return this.__position=v,m},d.prototype.lookBack=function(N){var v=this.__position-1;return v>=N.length&&this.__input.substring(v-N.length,v).toLowerCase()===N},T.exports.InputScanner=d},,,,,function(T){function l(d,N){d=typeof d=="string"?d:d.source,N=typeof N=="string"?N:N.source,this.__directives_block_pattern=new RegExp(d+/ beautify( \w+[:]\w+)+ /.source+N,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(d+/\sbeautify\signore:end\s/.source+N,"g")}l.prototype.get_directives=function(d){if(!d.match(this.__directives_block_pattern))return null;var N={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(d);v;)N[v[1]]=v[2],v=this.__directive_pattern.exec(d);return N},l.prototype.readIgnored=function(d){return d.readUntilAfter(this.__directives_end_ignore_pattern)},T.exports.Directives=l},,function(T,l,d){var N=d(16).Beautifier,v=d(17).Options;function m(b,I){var L=new N(b,I);return L.beautify()}T.exports=m,T.exports.defaultOptions=function(){return new v}},function(T,l,d){var N=d(17).Options,v=d(2).Output,m=d(8).InputScanner,b=d(13).Directives,I=new b(/\/\*/,/\*\//),L=/\r\n|[\r\n]/,z=/\r\n|[\r\n]/g,P=/\s/,$=/(?:\s|\n)+/g,J=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,te=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function H(G,ce){this._source_text=G||"",this._options=new N(ce),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}H.prototype.eatString=function(G){var ce="";for(this._ch=this._input.next();this._ch;){if(ce+=this._ch,this._ch==="\\")ce+=this._input.next();else if(G.indexOf(this._ch)!==-1||this._ch===`
|
|
|
`)break;this._ch=this._input.next()}return ce},H.prototype.eatWhitespace=function(G){for(var ce=P.test(this._input.peek()),q=0;P.test(this._input.peek());)this._ch=this._input.next(),G&&this._ch===`
|
|
|
`&&(q===0||q<this._options.max_preserve_newlines)&&(q++,this._output.add_new_line(!0));return ce},H.prototype.foundNestedPseudoClass=function(){for(var G=0,ce=1,q=this._input.peek(ce);q;){if(q==="{")return!0;if(q==="(")G+=1;else if(q===")"){if(G===0)return!1;G-=1}else if(q===";"||q==="}")return!1;ce++,q=this._input.peek(ce)}return!1},H.prototype.print_string=function(G){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(G)},H.prototype.preserveSingleSpace=function(G){G&&(this._output.space_before_token=!0)},H.prototype.indent=function(){this._indentLevel++},H.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},H.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var G=this._source_text,ce=this._options.eol;ce==="auto"&&(ce=`
|
|
|
`,G&&L.test(G||"")&&(ce=G.match(L)[0])),G=G.replace(z,`
|
|
|
`);var q=G.match(/^[\t ]*/)[0];this._output=new v(this._options,q),this._input=new m(G),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var ye=0,_e=!1,Le=!1,se=!1,be=!1,O=!1,Ee=this._ch,ue=!1,he,ve,F;he=this._input.read($),ve=he!=="",F=Ee,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Ee=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var U=this._input.read(J),ee=I.get_directives(U);ee&&ee.ignore==="start"&&(U+=I.readIgnored(this._input)),this.print_string(U),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(te)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(ve),this.print_string(this._ch);var de=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);de.match(/[ :]$/)&&(de=this.eatString(": ").replace(/\s+$/,""),this.print_string(de),this._output.space_before_token=!0),ye===0&&de.indexOf(":")!==-1&&(Le=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(ve),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Xe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Xe.match(/[ :]$/)&&(Xe=this.eatString(": ").replace(/\s+$/,""),this.print_string(Xe),this._output.space_before_token=!0),ye===0&&Xe.indexOf(":")!==-1?(Le=!0,this.indent()):Xe in this.NESTED_AT_RULE?(this._nestedLevel+=1,Xe in this.CONDITIONAL_GROUP_RULE&&(se=!0)):ye===0&&!Le&&(be=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(ve),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Le&&(Le=!1,this.outdent()),be=!1,se?(se=!1,_e=this._indentLevel>=this._nestedLevel):_e=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&_e&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(F==="("?this._output.space_before_token=!1:F!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),F==="{"&&this._output.trim(!0),Le&&(this.outdent(),Le=!1),this.print_string(this._ch),_e=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var tt=0;tt<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;tt++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[tt])){ue=!0;break}(_e||se)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!be&&ye===0?(this.print_string(":"),Le||(Le=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var nt=F==='"'||F==="'";this.preserveSingleSpace(nt||ve),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")ue=!1,ye===0?(Le&&(this.outdent(),Le=!1),be=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),ye++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),ye&&(ye--,this.outdent()));else{var _t=!1;this._input.lookBack("with")&&(_t=!0),this.preserveSingleSpace(ve||_t),this.print_string(this._ch),Le&&F==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),O=!0):(this.eatWhitespace(),ye++,this.indent())}else if(this._ch===")")ye&&(ye--,this.outdent()),O&&this._input.peek()===";"&&this._options.selector_separator_newline&&(O=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!Le||O)&&ye===0&&!be?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Le&&ye===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&P.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(ve),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),P.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Xt=F==='"'||F==="'";this.preserveSingleSpace(Xt||ve),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&ue&&this._output.add_new_line()}var zt=this._output.get_code(ce);return zt},T.exports.Beautifier=H},function(T,l,d){var N=d(6).Options;function v(m){N.call(this,m,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var b=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||b;var I=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var L=0;L<I.length;L++)I[L]!=="expand"?this.brace_style="collapse":this.brace_style=I[L]}v.prototype=new N,T.exports.Options=v}],K={};function g(T){var l=K[T];if(l!==void 0)return l.exports;var d=K[T]={exports:{}};return Re[T](d,d.exports,g),d.exports}var R=g(15);Fe=R})();var ae=Fe;E=[],le=function(){return{css_beautify:ae}}.apply(Mt,E),le!==void 0&&(tn.exports=le)})()},40998:function(tn,Mt,E){var le,Fe;(function(){var ae;(function(){"use strict";var R=[,,function(N){function v(I){this.__parent=I,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}v.prototype.clone_empty=function(){var I=new v(this.__parent);return I.set_indent(this.__indent_count,this.__alignment_count),I},v.prototype.item=function(I){return I<0?this.__items[this.__items.length+I]:this.__items[I]},v.prototype.has_match=function(I){for(var L=this.__items.length-1;L>=0;L--)if(this.__items[L].match(I))return!0;return!1},v.prototype.set_indent=function(I,L){this.is_empty()&&(this.__indent_count=I||0,this.__alignment_count=L||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},v.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},v.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},v.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var I=this.__parent.current_line;return I.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),I.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),I.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,I.__items[0]===" "&&(I.__items.splice(0,1),I.__character_count-=1),!0}return!1},v.prototype.is_empty=function(){return this.__items.length===0},v.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},v.prototype.push=function(I){this.__items.push(I);var L=I.lastIndexOf(`
|
|
|
`);L!==-1?this.__character_count=I.length-L:this.__character_count+=I.length},v.prototype.pop=function(){var I=null;return this.is_empty()||(I=this.__items.pop(),this.__character_count-=I.length),I},v.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},v.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},v.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},v.prototype.toString=function(){var I="";return this.is_empty()?this.__parent.indent_empty_lines&&(I=this.__parent.get_indent_string(this.__indent_count)):(I=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),I+=this.__items.join("")),I};function m(I,L){this.__cache=[""],this.__indent_size=I.indent_size,this.__indent_string=I.indent_char,I.indent_with_tabs||(this.__indent_string=new Array(I.indent_size+1).join(I.indent_char)),L=L||"",I.indent_level>0&&(L=new Array(I.indent_level+1).join(this.__indent_string)),this.__base_string=L,this.__base_string_length=L.length}m.prototype.get_indent_size=function(I,L){var z=this.__base_string_length;return L=L||0,I<0&&(z=0),z+=I*this.__indent_size,z+=L,z},m.prototype.get_indent_string=function(I,L){var z=this.__base_string;return L=L||0,I<0&&(I=0,z=""),L+=I*this.__indent_size,this.__ensure_cache(L),z+=this.__cache[L],z},m.prototype.__ensure_cache=function(I){for(;I>=this.__cache.length;)this.__add_column()},m.prototype.__add_column=function(){var I=this.__cache.length,L=0,z="";this.__indent_size&&I>=this.__indent_size&&(L=Math.floor(I/this.__indent_size),I-=L*this.__indent_size,z=new Array(L+1).join(this.__indent_string)),I&&(z+=new Array(I+1).join(" ")),this.__cache.push(z)};function b(I,L){this.__indent_cache=new m(I,L),this.raw=!1,this._end_with_newline=I.end_with_newline,this.indent_size=I.indent_size,this.wrap_line_length=I.wrap_line_length,this.indent_empty_lines=I.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new v(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}b.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},b.prototype.get_line_number=function(){return this.__lines.length},b.prototype.get_indent_string=function(I,L){return this.__indent_cache.get_indent_string(I,L)},b.prototype.get_indent_size=function(I,L){return this.__indent_cache.get_indent_size(I,L)},b.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},b.prototype.add_new_line=function(I){return this.is_empty()||!I&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},b.prototype.get_code=function(I){this.trim(!0);var L=this.current_line.pop();L&&(L[L.length-1]===`
|
|
|
`&&(L=L.replace(/\n+$/g,"")),this.current_line.push(L)),this._end_with_newline&&this.__add_outputline();var z=this.__lines.join(`
|
|
|
`);return I!==`
|
|
|
`&&(z=z.replace(/[\n]/g,I)),z},b.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},b.prototype.set_indent=function(I,L){return I=I||0,L=L||0,this.next_line.set_indent(I,L),this.__lines.length>1?(this.current_line.set_indent(I,L),!0):(this.current_line.set_indent(),!1)},b.prototype.add_raw_token=function(I){for(var L=0;L<I.newlines;L++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(I.whitespace_before),this.current_line.push(I.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},b.prototype.add_token=function(I){this.__add_space_before_token(),this.current_line.push(I),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},b.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},b.prototype.remove_indent=function(I){for(var L=this.__lines.length;I<L;)this.__lines[I]._remove_indent(),I++;this.current_line._remove_wrap_indent()},b.prototype.trim=function(I){for(I=I===void 0?!1:I,this.current_line.trim();I&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},b.prototype.just_added_newline=function(){return this.current_line.is_empty()},b.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},b.prototype.ensure_empty_line_above=function(I,L){for(var z=this.__lines.length-2;z>=0;){var P=this.__lines[z];if(P.is_empty())break;if(P.item(0).indexOf(I)!==0&&P.item(-1)!==L){this.__lines.splice(z+1,0,new v(this)),this.previous_line=this.__lines[this.__lines.length-2];break}z--}},N.exports.Output=b},function(N){function v(m,b,I,L){this.type=m,this.text=b,this.comments_before=null,this.newlines=I||0,this.whitespace_before=L||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}N.exports.Token=v},,,function(N){function v(I,L){this.raw_options=m(I,L),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}v.prototype._get_array=function(I,L){var z=this.raw_options[I],P=L||[];return typeof z=="object"?z!==null&&typeof z.concat=="function"&&(P=z.concat()):typeof z=="string"&&(P=z.split(/[^a-zA-Z0-9_\/\-]+/)),P},v.prototype._get_boolean=function(I,L){var z=this.raw_options[I],P=z===void 0?!!L:!!z;return P},v.prototype._get_characters=function(I,L){var z=this.raw_options[I],P=L||"";return typeof z=="string"&&(P=z.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),P},v.prototype._get_number=function(I,L){var z=this.raw_options[I];L=parseInt(L,10),isNaN(L)&&(L=0);var P=parseInt(z,10);return isNaN(P)&&(P=L),P},v.prototype._get_selection=function(I,L,z){var P=this._get_selection_list(I,L,z);if(P.length!==1)throw new Error("Invalid Option Value: The option '"+I+`' can only be one of the following values:
|
|
|
`+L+`
|
|
|
You passed in: '`+this.raw_options[I]+"'");return P[0]},v.prototype._get_selection_list=function(I,L,z){if(!L||L.length===0)throw new Error("Selection list cannot be empty.");if(z=z||[L[0]],!this._is_valid_selection(z,L))throw new Error("Invalid Default Value!");var P=this._get_array(I,z);if(!this._is_valid_selection(P,L))throw new Error("Invalid Option Value: The option '"+I+`' can contain only the following values:
|
|
|
`+L+`
|
|
|
You passed in: '`+this.raw_options[I]+"'");return P},v.prototype._is_valid_selection=function(I,L){return I.length&&L.length&&!I.some(function(z){return L.indexOf(z)===-1})};function m(I,L){var z={};I=b(I);var P;for(P in I)P!==L&&(z[P]=I[P]);if(L&&I[L])for(P in I[L])z[P]=I[L][P];return z}function b(I){var L={},z;for(z in I){var P=z.replace(/-/g,"_");L[P]=I[z]}return L}N.exports.Options=v,N.exports.normalizeOpts=b,N.exports.mergeOpts=m},,function(N){var v=RegExp.prototype.hasOwnProperty("sticky");function m(b){this.__input=b||"",this.__input_length=this.__input.length,this.__position=0}m.prototype.restart=function(){this.__position=0},m.prototype.back=function(){this.__position>0&&(this.__position-=1)},m.prototype.hasNext=function(){return this.__position<this.__input_length},m.prototype.next=function(){var b=null;return this.hasNext()&&(b=this.__input.charAt(this.__position),this.__position+=1),b},m.prototype.peek=function(b){var I=null;return b=b||0,b+=this.__position,b>=0&&b<this.__input_length&&(I=this.__input.charAt(b)),I},m.prototype.__match=function(b,I){b.lastIndex=I;var L=b.exec(this.__input);return L&&!(v&&b.sticky)&&L.index!==I&&(L=null),L},m.prototype.test=function(b,I){return I=I||0,I+=this.__position,I>=0&&I<this.__input_length?!!this.__match(b,I):!1},m.prototype.testChar=function(b,I){var L=this.peek(I);return b.lastIndex=0,L!==null&&b.test(L)},m.prototype.match=function(b){var I=this.__match(b,this.__position);return I?this.__position+=I[0].length:I=null,I},m.prototype.read=function(b,I,L){var z="",P;return b&&(P=this.match(b),P&&(z+=P[0])),I&&(P||!b)&&(z+=this.readUntil(I,L)),z},m.prototype.readUntil=function(b,I){var L="",z=this.__position;b.lastIndex=this.__position;var P=b.exec(this.__input);return P?(z=P.index,I&&(z+=P[0].length)):z=this.__input_length,L=this.__input.substring(this.__position,z),this.__position=z,L},m.prototype.readUntilAfter=function(b){return this.readUntil(b,!0)},m.prototype.get_regexp=function(b,I){var L=null,z="g";return I&&v&&(z="y"),typeof b=="string"&&b!==""?L=new RegExp(b,z):b&&(L=new RegExp(b.source,z)),L},m.prototype.get_literal_regexp=function(b){return RegExp(b.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},m.prototype.peekUntilAfter=function(b){var I=this.__position,L=this.readUntilAfter(b);return this.__position=I,L},m.prototype.lookBack=function(b){var I=this.__position-1;return I>=b.length&&this.__input.substring(I-b.length,I).toLowerCase()===b},N.exports.InputScanner=m},function(N,v,m){var b=m(8).InputScanner,I=m(3).Token,L=m(10).TokenStream,z=m(11).WhitespacePattern,P={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},$=function(J,te){this._input=new b(J),this._options=te||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new z(this._input)};$.prototype.tokenize=function(){this._input.restart(),this.__tokens=new L,this._reset();for(var J,te=new I(P.START,""),H=null,G=[],ce=new L;te.type!==P.EOF;){for(J=this._get_next_token(te,H);this._is_comment(J);)ce.add(J),J=this._get_next_token(te,H);ce.isEmpty()||(J.comments_before=ce,ce=new L),J.parent=H,this._is_opening(J)?(G.push(H),H=J):H&&this._is_closing(J,H)&&(J.opened=H,H.closed=J,H=G.pop(),J.parent=H),J.previous=te,te.next=J,this.__tokens.add(J),te=J}return this.__tokens},$.prototype._is_first_token=function(){return this.__tokens.isEmpty()},$.prototype._reset=function(){},$.prototype._get_next_token=function(J,te){this._readWhitespace();var H=this._input.read(/.+/g);return H?this._create_token(P.RAW,H):this._create_token(P.EOF,"")},$.prototype._is_comment=function(J){return!1},$.prototype._is_opening=function(J){return!1},$.prototype._is_closing=function(J,te){return!1},$.prototype._create_token=function(J,te){var H=new I(J,te,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return H},$.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},N.exports.Tokenizer=$,N.exports.TOKEN=P},function(N){function v(m){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=m}v.prototype.restart=function(){this.__position=0},v.prototype.isEmpty=function(){return this.__tokens_length===0},v.prototype.hasNext=function(){return this.__position<this.__tokens_length},v.prototype.next=function(){var m=null;return this.hasNext()&&(m=this.__tokens[this.__position],this.__position+=1),m},v.prototype.peek=function(m){var b=null;return m=m||0,m+=this.__position,m>=0&&m<this.__tokens_length&&(b=this.__tokens[m]),b},v.prototype.add=function(m){this.__parent_token&&(m.parent=this.__parent_token),this.__tokens.push(m),this.__tokens_length+=1},N.exports.TokenStream=v},function(N,v,m){var b=m(12).Pattern;function I(L,z){b.call(this,L,z),z?this._line_regexp=this._input.get_regexp(z._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}I.prototype=new b,I.prototype.__set_whitespace_patterns=function(L,z){L+="\\t ",z+="\\n\\r",this._match_pattern=this._input.get_regexp("["+L+z+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+z+"]")},I.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var L=this._input.read(this._match_pattern);if(L===" ")this.whitespace_before_token=" ";else if(L){var z=this.__split(this._newline_regexp,L);this.newline_count=z.length-1,this.whitespace_before_token=z[this.newline_count]}return L},I.prototype.matching=function(L,z){var P=this._create();return P.__set_whitespace_patterns(L,z),P._update(),P},I.prototype._create=function(){return new I(this._input,this)},I.prototype.__split=function(L,z){L.lastIndex=0;for(var P=0,$=[],J=L.exec(z);J;)$.push(z.substring(P,J.index)),P=J.index+J[0].length,J=L.exec(z);return P<z.length?$.push(z.substring(P,z.length)):$.push(""),$},N.exports.WhitespacePattern=I},function(N){function v(m,b){this._input=m,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,b&&(this._starting_pattern=this._input.get_regexp(b._starting_pattern,!0),this._match_pattern=this._input.get_regexp(b._match_pattern,!0),this._until_pattern=this._input.get_regexp(b._until_pattern),this._until_after=b._until_after)}v.prototype.read=function(){var m=this._input.read(this._starting_pattern);return(!this._starting_pattern||m)&&(m+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),m},v.prototype.read_match=function(){return this._input.match(this._match_pattern)},v.prototype.until_after=function(m){var b=this._create();return b._until_after=!0,b._until_pattern=this._input.get_regexp(m),b._update(),b},v.prototype.until=function(m){var b=this._create();return b._until_after=!1,b._until_pattern=this._input.get_regexp(m),b._update(),b},v.prototype.starting_with=function(m){var b=this._create();return b._starting_pattern=this._input.get_regexp(m,!0),b._update(),b},v.prototype.matching=function(m){var b=this._create();return b._match_pattern=this._input.get_regexp(m,!0),b._update(),b},v.prototype._create=function(){return new v(this._input,this)},v.prototype._update=function(){},N.exports.Pattern=v},function(N){function v(m,b){m=typeof m=="string"?m:m.source,b=typeof b=="string"?b:b.source,this.__directives_block_pattern=new RegExp(m+/ beautify( \w+[:]\w+)+ /.source+b,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(m+/\sbeautify\signore:end\s/.source+b,"g")}v.prototype.get_directives=function(m){if(!m.match(this.__directives_block_pattern))return null;var b={};this.__directive_pattern.lastIndex=0;for(var I=this.__directive_pattern.exec(m);I;)b[I[1]]=I[2],I=this.__directive_pattern.exec(m);return b},v.prototype.readIgnored=function(m){return m.readUntilAfter(this.__directives_end_ignore_pattern)},N.exports.Directives=v},function(N,v,m){var b=m(12).Pattern,I={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function L(z,P){b.call(this,z,P),this.__template_pattern=null,this._disabled=Object.assign({},I),this._excluded=Object.assign({},I),P&&(this.__template_pattern=this._input.get_regexp(P.__template_pattern),this._excluded=Object.assign(this._excluded,P._excluded),this._disabled=Object.assign(this._disabled,P._disabled));var $=new b(z);this.__patterns={handlebars_comment:$.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:$.starting_with(/{{{/).until_after(/}}}/),handlebars:$.starting_with(/{{/).until_after(/}}/),php:$.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:$.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:$.starting_with(/{%/).until_after(/%}/),django_value:$.starting_with(/{{/).until_after(/}}/),django_comment:$.starting_with(/{#/).until_after(/#}/),smarty:$.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:$.starting_with(/{\*/).until_after(/\*}/),smarty_literal:$.starting_with(/{literal}/).until_after(/{\/literal}/)}}L.prototype=new b,L.prototype._create=function(){return new L(this._input,this)},L.prototype._update=function(){this.__set_templated_pattern()},L.prototype.disable=function(z){var P=this._create();return P._disabled[z]=!0,P._update(),P},L.prototype.read_options=function(z){var P=this._create();for(var $ in I)P._disabled[$]=z.templating.indexOf($)===-1;return P._update(),P},L.prototype.exclude=function(z){var P=this._create();return P._excluded[z]=!0,P._update(),P},L.prototype.read=function(){var z="";this._match_pattern?z=this._input.read(this._starting_pattern):z=this._input.read(this._starting_pattern,this.__template_pattern);for(var P=this._read_template();P;)this._match_pattern?P+=this._input.read(this._match_pattern):P+=this._input.readUntil(this.__template_pattern),z+=P,P=this._read_template();return this._until_after&&(z+=this._input.readUntilAfter(this._until_pattern)),z},L.prototype.__set_templated_pattern=function(){var z=[];this._disabled.php||z.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||z.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||z.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||z.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(z.push(this.__patterns.django._starting_pattern.source),z.push(this.__patterns.django_value._starting_pattern.source),z.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||z.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&z.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+z.join("|")+")")},L.prototype._read_template=function(){var z="",P=this._input.peek();if(P==="<"){var $=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&$==="?"&&(z=z||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&$==="%"&&(z=z||this.__patterns.erb.read())}else P==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(z=z||this.__patterns.handlebars_comment.read(),z=z||this.__patterns.handlebars_unescaped.read(),z=z||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(z=z||this.__patterns.django_value.read()),this._excluded.django||(z=z||this.__patterns.django_comment.read(),z=z||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(z=z||this.__patterns.smarty_comment.read(),z=z||this.__patterns.smarty_literal.read(),z=z||this.__patterns.smarty.read()));return z},N.exports.TemplatablePattern=L},,,,function(N,v,m){var b=m(19).Beautifier,I=m(20).Options;function L(z,P,$,J){var te=new b(z,P,$,J);return te.beautify()}N.exports=L,N.exports.defaultOptions=function(){return new I}},function(N,v,m){var b=m(20).Options,I=m(2).Output,L=m(21).Tokenizer,z=m(21).TOKEN,P=/\r\n|[\r\n]/,$=/\r\n|[\r\n]/g,J=function(be,O){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=be.max_preserve_newlines,this.preserve_newlines=be.preserve_newlines,this._output=new I(be,O)};J.prototype.current_line_has_match=function(be){return this._output.current_line.has_match(be)},J.prototype.set_space_before_token=function(be,O){this._output.space_before_token=be,this._output.non_breaking_space=O},J.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},J.prototype.add_raw_token=function(be){this._output.add_raw_token(be)},J.prototype.print_preserved_newlines=function(be){var O=0;be.type!==z.TEXT&&be.previous.type!==z.TEXT&&(O=be.newlines?1:0),this.preserve_newlines&&(O=be.newlines<this.max_preserve_newlines+1?be.newlines:this.max_preserve_newlines+1);for(var Ee=0;Ee<O;Ee++)this.print_newline(Ee>0);return O!==0},J.prototype.traverse_whitespace=function(be){return be.whitespace_before||be.newlines?(this.print_preserved_newlines(be)||(this._output.space_before_token=!0),!0):!1},J.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},J.prototype.print_newline=function(be){this._output.add_new_line(be)},J.prototype.print_token=function(be){be.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(be.text))},J.prototype.indent=function(){this.indent_level++},J.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},J.prototype.get_full_indent=function(be){return be=this.indent_level+(be||0),be<1?"":this._output.get_indent_string(be)};var te=function(be){for(var O=null,Ee=be.next;Ee.type!==z.EOF&&be.closed!==Ee;){if(Ee.type===z.ATTRIBUTE&&Ee.text==="type"){Ee.next&&Ee.next.type===z.EQUALS&&Ee.next.next&&Ee.next.next.type===z.VALUE&&(O=Ee.next.next.text);break}Ee=Ee.next}return O},H=function(be,O){var Ee=null,ue=null;return O.closed?(be==="script"?Ee="text/javascript":be==="style"&&(Ee="text/css"),Ee=te(O)||Ee,Ee.search("text/css")>-1?ue="css":Ee.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?ue="javascript":Ee.search(/(text|application|dojo)\/(x-)?(html)/)>-1?ue="html":Ee.search(/test\/null/)>-1&&(ue="null"),ue):null};function G(be,O){return O.indexOf(be)!==-1}function ce(be,O,Ee){this.parent=be||null,this.tag=O?O.tag_name:"",this.indent_level=Ee||0,this.parser_token=O||null}function q(be){this._printer=be,this._current_frame=null}q.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},q.prototype.record_tag=function(be){var O=new ce(this._current_frame,be,this._printer.indent_level);this._current_frame=O},q.prototype._try_pop_frame=function(be){var O=null;return be&&(O=be.parser_token,this._printer.indent_level=be.indent_level,this._current_frame=be.parent),O},q.prototype._get_frame=function(be,O){for(var Ee=this._current_frame;Ee&&be.indexOf(Ee.tag)===-1;){if(O&&O.indexOf(Ee.tag)!==-1){Ee=null;break}Ee=Ee.parent}return Ee},q.prototype.try_pop=function(be,O){var Ee=this._get_frame([be],O);return this._try_pop_frame(Ee)},q.prototype.indent_to_tag=function(be){var O=this._get_frame(be);O&&(this._printer.indent_level=O.indent_level)};function ye(be,O,Ee,ue){this._source_text=be||"",O=O||{},this._js_beautify=Ee,this._css_beautify=ue,this._tag_stack=null;var he=new b(O,"html");this._options=he,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}ye.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var be=this._source_text,O=this._options.eol;this._options.eol==="auto"&&(O=`
|
|
|
`,be&&P.test(be)&&(O=be.match(P)[0])),be=be.replace($,`
|
|
|
`);var Ee=be.match(/^[\t ]*/)[0],ue={text:"",type:""},he=new _e(this._options),ve=new J(this._options,Ee),F=new L(be,this._options).tokenize();this._tag_stack=new q(ve);for(var U=null,ee=F.next();ee.type!==z.EOF;)ee.type===z.TAG_OPEN||ee.type===z.COMMENT?(U=this._handle_tag_open(ve,ee,he,ue,F),he=U):ee.type===z.ATTRIBUTE||ee.type===z.EQUALS||ee.type===z.VALUE||ee.type===z.TEXT&&!he.tag_complete?U=this._handle_inside_tag(ve,ee,he,ue):ee.type===z.TAG_CLOSE?U=this._handle_tag_close(ve,ee,he):ee.type===z.TEXT?U=this._handle_text(ve,ee,he):ee.type===z.CONTROL_FLOW_OPEN?U=this._handle_control_flow_open(ve,ee):ee.type===z.CONTROL_FLOW_CLOSE?U=this._handle_control_flow_close(ve,ee):ve.add_raw_token(ee),ue=U,ee=F.next();var de=ve._output.get_code(O);return de},ye.prototype._handle_control_flow_open=function(be,O){var Ee={text:O.text,type:O.type};return be.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),O.newlines?be.print_preserved_newlines(O):be.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),be.print_token(O),be.indent(),Ee},ye.prototype._handle_control_flow_close=function(be,O){var Ee={text:O.text,type:O.type};return be.deindent(),O.newlines?be.print_preserved_newlines(O):be.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),be.print_token(O),Ee},ye.prototype._handle_tag_close=function(be,O,Ee){var ue={text:O.text,type:O.type};return be.alignment_size=0,Ee.tag_complete=!0,be.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),Ee.is_unformatted?be.add_raw_token(O):(Ee.tag_start_char==="<"&&(be.set_space_before_token(O.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&Ee.has_wrapped_attrs&&be.print_newline(!1)),be.print_token(O)),Ee.indent_content&&!(Ee.is_unformatted||Ee.is_content_unformatted)&&(be.indent(),Ee.indent_content=!1),!Ee.is_inline_element&&!(Ee.is_unformatted||Ee.is_content_unformatted)&&be.set_wrap_point(),ue},ye.prototype._handle_inside_tag=function(be,O,Ee,ue){var he=Ee.has_wrapped_attrs,ve={text:O.text,type:O.type};return be.set_space_before_token(O.newlines||O.whitespace_before!=="",!0),Ee.is_unformatted?be.add_raw_token(O):Ee.tag_start_char==="{"&&O.type===z.TEXT?be.print_preserved_newlines(O)?(O.newlines=0,be.add_raw_token(O)):be.print_token(O):(O.type===z.ATTRIBUTE?be.set_space_before_token(!0):(O.type===z.EQUALS||O.type===z.VALUE&&O.previous.type===z.EQUALS)&&be.set_space_before_token(!1),O.type===z.ATTRIBUTE&&Ee.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(be.traverse_whitespace(O),he=he||O.newlines!==0),this._is_wrap_attributes_force&&Ee.attr_count>=this._options.wrap_attributes_min_attrs&&(ue.type!==z.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(be.print_newline(!1),he=!0)),be.print_token(O),he=he||be.previous_token_wrapped(),Ee.has_wrapped_attrs=he),ve},ye.prototype._handle_text=function(be,O,Ee){var ue={text:O.text,type:"TK_CONTENT"};return Ee.custom_beautifier_name?this._print_custom_beatifier_text(be,O,Ee):Ee.is_unformatted||Ee.is_content_unformatted?be.add_raw_token(O):(be.traverse_whitespace(O),be.print_token(O)),ue},ye.prototype._print_custom_beatifier_text=function(be,O,Ee){var ue=this;if(O.text!==""){var he=O.text,ve,F=1,U="",ee="";Ee.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?ve=this._js_beautify:Ee.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?ve=this._css_beautify:Ee.custom_beautifier_name==="html"&&(ve=function(Xt,zt){var Ze=new ye(Xt,zt,ue._js_beautify,ue._css_beautify);return Ze.beautify()}),this._options.indent_scripts==="keep"?F=0:this._options.indent_scripts==="separate"&&(F=-be.indent_level);var de=be.get_full_indent(F);if(he=he.replace(/\n[ \t]*$/,""),Ee.custom_beautifier_name!=="html"&&he[0]==="<"&&he.match(/^(<!--|<!\[CDATA\[)/)){var Xe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(he);if(!Xe){be.add_raw_token(O);return}U=de+Xe[1]+`
|
|
|
`,he=Xe[4],Xe[5]&&(ee=de+Xe[5]),he=he.replace(/\n[ \t]*$/,""),(Xe[2]||Xe[3].indexOf(`
|
|
|
`)!==-1)&&(Xe=Xe[3].match(/[ \t]+$/),Xe&&(O.whitespace_before=Xe[0]))}if(he)if(ve){var tt=function(){this.eol=`
|
|
|
`};tt.prototype=this._options.raw_options;var nt=new tt;he=ve(de+he,nt)}else{var _t=O.whitespace_before;_t&&(he=he.replace(new RegExp(`
|
|
|
(`+_t+")?","g"),`
|
|
|
`)),he=de+he.replace(/\n/g,`
|
|
|
`+de)}U&&(he?he=U+he+`
|
|
|
`+ee:he=U+ee),be.print_newline(!1),he&&(O.text=he,O.whitespace_before="",O.newlines=0,be.add_raw_token(O),be.print_newline(!0))}},ye.prototype._handle_tag_open=function(be,O,Ee,ue,he){var ve=this._get_tag_open_token(O);if((Ee.is_unformatted||Ee.is_content_unformatted)&&!Ee.is_empty_element&&O.type===z.TAG_OPEN&&!ve.is_start_tag?(be.add_raw_token(O),ve.start_tag_token=this._tag_stack.try_pop(ve.tag_name)):(be.traverse_whitespace(O),this._set_tag_position(be,O,ve,Ee,ue),ve.is_inline_element||be.set_wrap_point(),be.print_token(O)),ve.is_start_tag&&this._is_wrap_attributes_force){var F=0,U;do U=he.peek(F),U.type===z.ATTRIBUTE&&(ve.attr_count+=1),F+=1;while(U.type!==z.EOF&&U.type!==z.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(ve.alignment_size=O.text.length+1),!ve.tag_complete&&!ve.is_unformatted&&(be.alignment_size=ve.alignment_size),ve};var _e=function(be,O,Ee){if(this.parent=O||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!Ee)this.tag_complete=!0;else{var ue;this.tag_start_char=Ee.text[0],this.text=Ee.text,this.tag_start_char==="<"?(ue=Ee.text.match(/^<([^\s>]*)/),this.tag_check=ue?ue[1]:""):(ue=Ee.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=ue?ue[1]:"",(Ee.text.startsWith("{{#>")||Ee.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&Ee.next!==null?this.tag_check=Ee.next.text.split(" ")[0]:this.tag_check=Ee.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),Ee.type===z.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||Ee.closed&&Ee.closed.text==="/>";var he=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(he=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!be.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(he)))}};ye.prototype._get_tag_open_token=function(be){var O=new _e(this._options,this._tag_stack.get_parser_token(),be);return O.alignment_size=this._options.wrap_attributes_indent_size,O.is_end_tag=O.is_end_tag||G(O.tag_check,this._options.void_elements),O.is_empty_element=O.tag_complete||O.is_start_tag&&O.is_end_tag,O.is_unformatted=!O.tag_complete&&G(O.tag_check,this._options.unformatted),O.is_content_unformatted=!O.is_empty_element&&G(O.tag_check,this._options.content_unformatted),O.is_inline_element=G(O.tag_name,this._options.inline)||this._options.inline_custom_elements&&O.tag_name.includes("-")||O.tag_start_char==="{",O},ye.prototype._set_tag_position=function(be,O,Ee,ue,he){if(Ee.is_empty_element||(Ee.is_end_tag?Ee.start_tag_token=this._tag_stack.try_pop(Ee.tag_name):(this._do_optional_end_element(Ee)&&(Ee.is_inline_element||be.print_newline(!1)),this._tag_stack.record_tag(Ee),(Ee.tag_name==="script"||Ee.tag_name==="style")&&!(Ee.is_unformatted||Ee.is_content_unformatted)&&(Ee.custom_beautifier_name=H(Ee.tag_check,O)))),G(Ee.tag_check,this._options.extra_liners)&&(be.print_newline(!1),be._output.just_added_blankline()||be.print_newline(!0)),Ee.is_empty_element){if(Ee.tag_start_char==="{"&&Ee.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),Ee.indent_content=!0;var ve=be.current_line_has_match(/{{#if/);ve||be.print_newline(!1)}Ee.tag_name==="!--"&&he.type===z.TAG_CLOSE&&ue.is_end_tag&&Ee.text.indexOf(`
|
|
|
`)===-1||(Ee.is_inline_element||Ee.is_unformatted||be.print_newline(!1),this._calcluate_parent_multiline(be,Ee))}else if(Ee.is_end_tag){var F=!1;F=Ee.start_tag_token&&Ee.start_tag_token.multiline_content,F=F||!Ee.is_inline_element&&!(ue.is_inline_element||ue.is_unformatted)&&!(he.type===z.TAG_CLOSE&&Ee.start_tag_token===ue)&&he.type!=="TK_CONTENT",(Ee.is_content_unformatted||Ee.is_unformatted)&&(F=!1),F&&be.print_newline(!1)}else Ee.indent_content=!Ee.custom_beautifier_name,Ee.tag_start_char==="<"&&(Ee.tag_name==="html"?Ee.indent_content=this._options.indent_inner_html:Ee.tag_name==="head"?Ee.indent_content=this._options.indent_head_inner_html:Ee.tag_name==="body"&&(Ee.indent_content=this._options.indent_body_inner_html)),!(Ee.is_inline_element||Ee.is_unformatted)&&(he.type!=="TK_CONTENT"||Ee.is_content_unformatted)&&be.print_newline(!1),this._calcluate_parent_multiline(be,Ee)},ye.prototype._calcluate_parent_multiline=function(be,O){O.parent&&be._output.just_added_newline()&&!((O.is_inline_element||O.is_unformatted)&&O.parent.is_inline_element)&&(O.parent.multiline_content=!0)};var Le=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],se=["a","audio","del","ins","map","noscript","video"];ye.prototype._do_optional_end_element=function(be){var O=null;if(!(be.is_empty_element||!be.is_start_tag||!be.parent)){if(be.tag_name==="body")O=O||this._tag_stack.try_pop("head");else if(be.tag_name==="li")O=O||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(be.tag_name==="dd"||be.tag_name==="dt")O=O||this._tag_stack.try_pop("dt",["dl"]),O=O||this._tag_stack.try_pop("dd",["dl"]);else if(be.parent.tag_name==="p"&&Le.indexOf(be.tag_name)!==-1){var Ee=be.parent.parent;(!Ee||se.indexOf(Ee.tag_name)===-1)&&(O=O||this._tag_stack.try_pop("p"))}else be.tag_name==="rp"||be.tag_name==="rt"?(O=O||this._tag_stack.try_pop("rt",["ruby","rtc"]),O=O||this._tag_stack.try_pop("rp",["ruby","rtc"])):be.tag_name==="optgroup"?O=O||this._tag_stack.try_pop("optgroup",["select"]):be.tag_name==="option"?O=O||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):be.tag_name==="colgroup"?O=O||this._tag_stack.try_pop("caption",["table"]):be.tag_name==="thead"?(O=O||this._tag_stack.try_pop("caption",["table"]),O=O||this._tag_stack.try_pop("colgroup",["table"])):be.tag_name==="tbody"||be.tag_name==="tfoot"?(O=O||this._tag_stack.try_pop("caption",["table"]),O=O||this._tag_stack.try_pop("colgroup",["table"]),O=O||this._tag_stack.try_pop("thead",["table"]),O=O||this._tag_stack.try_pop("tbody",["table"])):be.tag_name==="tr"?(O=O||this._tag_stack.try_pop("caption",["table"]),O=O||this._tag_stack.try_pop("colgroup",["table"]),O=O||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(be.tag_name==="th"||be.tag_name==="td")&&(O=O||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),O=O||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return be.parent=this._tag_stack.get_parser_token(),O}},N.exports.Beautifier=ye},function(N,v,m){var b=m(6).Options;function I(L){b.call(this,L,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}I.prototype=new b,N.exports.Options=I},function(N,v,m){var b=m(9).Tokenizer,I=m(9).TOKEN,L=m(13).Directives,z=m(14).TemplatablePattern,P=m(12).Pattern,$={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:I.START,RAW:I.RAW,EOF:I.EOF},J=new L(/<\!--/,/-->/),te=function(H,G){b.call(this,H,G),this._current_tag_name="";var ce=new z(this._input).read_options(this._options),q=new P(this._input);if(this.__patterns={word:ce.until(/[\n\r\t <]/),word_control_flow_close_excluded:ce.until(/[\n\r\t <}]/),single_quote:ce.until_after(/'/),double_quote:ce.until_after(/"/),attribute:ce.until(/[\n\r\t =>]|\/>/),element_name:ce.until(/[\n\r\t >\/]/),angular_control_flow_start:q.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:q.starting_with(/{{!--/).until_after(/--}}/),handlebars:q.starting_with(/{{/).until_after(/}}/),handlebars_open:q.until(/[\n\r\t }]/),handlebars_raw_close:q.until(/}}/),comment:q.starting_with(/<!--/).until_after(/-->/),cdata:q.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:q.starting_with(/<!\[/).until_after(/]>/),processing:q.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var ye=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=q.matching(ye).until_after(ye)}};te.prototype=new b,te.prototype._is_comment=function(H){return!1},te.prototype._is_opening=function(H){return H.type===$.TAG_OPEN||H.type===$.CONTROL_FLOW_OPEN},te.prototype._is_closing=function(H,G){return H.type===$.TAG_CLOSE&&G&&((H.text===">"||H.text==="/>")&&G.text[0]==="<"||H.text==="}}"&&G.text[0]==="{"&&G.text[1]==="{")||H.type===$.CONTROL_FLOW_CLOSE&&H.text==="}"&&G.text.endsWith("{")},te.prototype._reset=function(){this._current_tag_name=""},te.prototype._get_next_token=function(H,G){var ce=null;this._readWhitespace();var q=this._input.peek();return q===null?this._create_token($.EOF,""):(ce=ce||this._read_open_handlebars(q,G),ce=ce||this._read_attribute(q,H,G),ce=ce||this._read_close(q,G),ce=ce||this._read_script_and_style(q,H),ce=ce||this._read_control_flows(q,G),ce=ce||this._read_raw_content(q,H,G),ce=ce||this._read_content_word(q,G),ce=ce||this._read_comment_or_cdata(q),ce=ce||this._read_processing(q),ce=ce||this._read_open(q,G),ce=ce||this._create_token($.UNKNOWN,this._input.next()),ce)},te.prototype._read_comment_or_cdata=function(H){var G=null,ce=null,q=null;if(H==="<"){var ye=this._input.peek(1);ye==="!"&&(ce=this.__patterns.comment.read(),ce?(q=J.get_directives(ce),q&&q.ignore==="start"&&(ce+=J.readIgnored(this._input))):ce=this.__patterns.cdata.read()),ce&&(G=this._create_token($.COMMENT,ce),G.directives=q)}return G},te.prototype._read_processing=function(H){var G=null,ce=null,q=null;if(H==="<"){var ye=this._input.peek(1);(ye==="!"||ye==="?")&&(ce=this.__patterns.conditional_comment.read(),ce=ce||this.__patterns.processing.read()),ce&&(G=this._create_token($.COMMENT,ce),G.directives=q)}return G},te.prototype._read_open=function(H,G){var ce=null,q=null;return(!G||G.type===$.CONTROL_FLOW_OPEN)&&H==="<"&&(ce=this._input.next(),this._input.peek()==="/"&&(ce+=this._input.next()),ce+=this.__patterns.element_name.read(),q=this._create_token($.TAG_OPEN,ce)),q},te.prototype._read_open_handlebars=function(H,G){var ce=null,q=null;return(!G||G.type===$.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&H==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(ce=this.__patterns.handlebars_comment.read(),ce=ce||this.__patterns.handlebars.read(),q=this._create_token($.COMMENT,ce)):(ce=this.__patterns.handlebars_open.read(),q=this._create_token($.TAG_OPEN,ce))),q},te.prototype._read_control_flows=function(H,G){var ce="",q=null;if(!this._options.templating.includes("angular"))return q;if(H==="@"){if(ce=this.__patterns.angular_control_flow_start.read(),ce==="")return q;for(var ye=ce.endsWith("(")?1:0,_e=0;!(ce.endsWith("{")&&ye===_e);){var Le=this._input.next();if(Le===null)break;Le==="("?ye++:Le===")"&&_e++,ce+=Le}q=this._create_token($.CONTROL_FLOW_OPEN,ce)}else H==="}"&&G&&G.type===$.CONTROL_FLOW_OPEN&&(ce=this._input.next(),q=this._create_token($.CONTROL_FLOW_CLOSE,ce));return q},te.prototype._read_close=function(H,G){var ce=null,q=null;return G&&G.type===$.TAG_OPEN&&(G.text[0]==="<"&&(H===">"||H==="/"&&this._input.peek(1)===">")?(ce=this._input.next(),H==="/"&&(ce+=this._input.next()),q=this._create_token($.TAG_CLOSE,ce)):G.text[0]==="{"&&H==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),q=this._create_token($.TAG_CLOSE,"}}"))),q},te.prototype._read_attribute=function(H,G,ce){var q=null,ye="";if(ce&&ce.text[0]==="<")if(H==="=")q=this._create_token($.EQUALS,this._input.next());else if(H==='"'||H==="'"){var _e=this._input.next();H==='"'?_e+=this.__patterns.double_quote.read():_e+=this.__patterns.single_quote.read(),q=this._create_token($.VALUE,_e)}else ye=this.__patterns.attribute.read(),ye&&(G.type===$.EQUALS?q=this._create_token($.VALUE,ye):q=this._create_token($.ATTRIBUTE,ye));return q},te.prototype._is_content_unformatted=function(H){return this._options.void_elements.indexOf(H)===-1&&(this._options.content_unformatted.indexOf(H)!==-1||this._options.unformatted.indexOf(H)!==-1)},te.prototype._read_raw_content=function(H,G,ce){var q="";if(ce&&ce.text[0]==="{")q=this.__patterns.handlebars_raw_close.read();else if(G.type===$.TAG_CLOSE&&G.opened.text[0]==="<"&&G.text[0]!=="/"){var ye=G.opened.text.substr(1).toLowerCase();this._is_content_unformatted(ye)&&(q=this._input.readUntil(new RegExp("</"+ye+"[\\n\\r\\t ]*?>","ig")))}return q?this._create_token($.TEXT,q):null},te.prototype._read_script_and_style=function(H,G){if(G.type===$.TAG_CLOSE&&G.opened.text[0]==="<"&&G.text[0]!=="/"){var ce=G.opened.text.substr(1).toLowerCase();if(ce==="script"||ce==="style"){var q=this._read_comment_or_cdata(H);if(q)return q.type=$.TEXT,q;var ye=this._input.readUntil(new RegExp("</"+ce+"[\\n\\r\\t ]*?>","ig"));if(ye)return this._create_token($.TEXT,ye)}}return null},te.prototype._read_content_word=function(H,G){var ce="";return this._options.unformatted_content_delimiter&&H===this._options.unformatted_content_delimiter[0]&&(ce=this.__patterns.unformatted_content_delimiter.read()),ce||(ce=G&&G.type===$.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),ce?this._create_token($.TEXT,ce):null},N.exports.Tokenizer=te,N.exports.TOKEN=$}],T={};function l(N){var v=T[N];if(v!==void 0)return v.exports;var m=T[N]={exports:{}};return R[N](m,m.exports,l),m.exports}var d=l(18);ae=d})();var Re=ae;if(1)le=[E,E(58553),E(87804)],Fe=function(R){var T=E(58553),l=E(87804);return{html_beautify:function(d,N){return Re(d,N,T.js_beautify,l.css_beautify)}}}.apply(Mt,le),Fe!==void 0&&(tn.exports=Fe);else var K,g})()},58553:function(tn,Mt){var E,le;(function(){var Fe;(function(){"use strict";var Re=[function(T,l,d){var N=d(1).Beautifier,v=d(5).Options;function m(b,I){var L=new N(b,I);return L.beautify()}T.exports=m,T.exports.defaultOptions=function(){return new v}},function(T,l,d){var N=d(2).Output,v=d(3).Token,m=d(4),b=d(5).Options,I=d(7).Tokenizer,L=d(7).line_starters,z=d(7).positionable_operators,P=d(7).TOKEN;function $(U,ee){return ee.indexOf(U)!==-1}function J(U){return U.replace(/^\s+/g,"")}function te(U){for(var ee={},de=0;de<U.length;de++)ee[U[de].replace(/-/g,"_")]=U[de];return ee}function H(U,ee){return U&&U.type===P.RESERVED&&U.text===ee}function G(U,ee){return U&&U.type===P.RESERVED&&$(U.text,ee)}var ce=["case","return","do","if","throw","else","await","break","continue","async"],q=["before-newline","after-newline","preserve-newline"],ye=te(q),_e=[ye.before_newline,ye.preserve_newline],Le={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function se(U,ee){ee.multiline_frame||ee.mode===Le.ForInitializer||ee.mode===Le.Conditional||U.remove_indent(ee.start_line_index)}function be(U){U=U.replace(m.allLineBreaks,`
|
|
|
`);for(var ee=[],de=U.indexOf(`
|
|
|
`);de!==-1;)ee.push(U.substring(0,de)),U=U.substring(de+1),de=U.indexOf(`
|
|
|
`);return U.length&&ee.push(U),ee}function O(U){return U===Le.ArrayLiteral}function Ee(U){return $(U,[Le.Expression,Le.ForInitializer,Le.Conditional])}function ue(U,ee){for(var de=0;de<U.length;de++){var Xe=U[de].trim();if(Xe.charAt(0)!==ee)return!1}return!0}function he(U,ee){for(var de=0,Xe=U.length,tt;de<Xe;de++)if(tt=U[de],tt&&tt.indexOf(ee)!==0)return!1;return!0}function ve(U,ee){ee=ee||{},this._source_text=U||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new b(ee)}ve.prototype.create_flags=function(U,ee){var de=0;U&&(de=U.indentation_level,!this._output.just_added_newline()&&U.line_indent_level>de&&(de=U.line_indent_level));var Xe={mode:ee,parent:U,last_token:U?U.last_token:new v(P.START_BLOCK,""),last_word:U?U.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:de,alignment:0,line_indent_level:U?U.line_indent_level:de,start_line_index:this._output.get_line_number(),ternary_depth:0};return Xe},ve.prototype._reset=function(U){var ee=U.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new N(this._options,ee),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Le.BlockStatement);var de=new I(U,this._options);return this._tokens=de.tokenize(),U},ve.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var U,ee=this._reset(this._source_text),de=this._options.eol;this._options.eol==="auto"&&(de=`
|
|
|
`,ee&&m.lineBreak.test(ee||"")&&(de=ee.match(m.lineBreak)[0]));for(var Xe=this._tokens.next();Xe;)this.handle_token(Xe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Xe,Xe=this._tokens.next();return U=this._output.get_code(de),U},ve.prototype.handle_token=function(U,ee){U.type===P.START_EXPR?this.handle_start_expr(U):U.type===P.END_EXPR?this.handle_end_expr(U):U.type===P.START_BLOCK?this.handle_start_block(U):U.type===P.END_BLOCK?this.handle_end_block(U):U.type===P.WORD?this.handle_word(U):U.type===P.RESERVED?this.handle_word(U):U.type===P.SEMICOLON?this.handle_semicolon(U):U.type===P.STRING?this.handle_string(U):U.type===P.EQUALS?this.handle_equals(U):U.type===P.OPERATOR?this.handle_operator(U):U.type===P.COMMA?this.handle_comma(U):U.type===P.BLOCK_COMMENT?this.handle_block_comment(U,ee):U.type===P.COMMENT?this.handle_comment(U,ee):U.type===P.DOT?this.handle_dot(U):U.type===P.EOF?this.handle_eof(U):U.type===P.UNKNOWN?this.handle_unknown(U,ee):this.handle_unknown(U,ee)},ve.prototype.handle_whitespace_and_comments=function(U,ee){var de=U.newlines,Xe=this._options.keep_array_indentation&&O(this._flags.mode);if(U.comments_before)for(var tt=U.comments_before.next();tt;)this.handle_whitespace_and_comments(tt,ee),this.handle_token(tt,ee),tt=U.comments_before.next();if(Xe)for(var nt=0;nt<de;nt+=1)this.print_newline(nt>0,ee);else if(this._options.max_preserve_newlines&&de>this._options.max_preserve_newlines&&(de=this._options.max_preserve_newlines),this._options.preserve_newlines&&de>1){this.print_newline(!1,ee);for(var _t=1;_t<de;_t+=1)this.print_newline(!0,ee)}};var F=["async","break","continue","return","throw","yield"];ve.prototype.allow_wrap_or_preserved_newline=function(U,ee){if(ee=ee===void 0?!1:ee,!this._output.just_added_newline()){var de=this._options.preserve_newlines&&U.newlines||ee,Xe=$(this._flags.last_token.text,z)||$(U.text,z);if(Xe){var tt=$(this._flags.last_token.text,z)&&$(this._options.operator_position,_e)||$(U.text,z);de=de&&tt}if(de)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(G(this._flags.last_token,F))return;this._output.set_wrap_point()}}},ve.prototype.print_newline=function(U,ee){if(!ee&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var de=this._tokens.peek();this._flags.mode===Le.Statement&&!(this._flags.if_block&&H(de,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(U)&&(this._flags.multiline_frame=!0)},ve.prototype.print_token_line_indentation=function(U){this._output.just_added_newline()&&(this._options.keep_array_indentation&&U.newlines&&(U.text==="["||O(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(U.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},ve.prototype.print_token=function(U){if(this._output.raw){this._output.add_raw_token(U);return}if(this._options.comma_first&&U.previous&&U.previous.type===P.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var ee=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(ee),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(U),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(U),this._output.non_breaking_space=!0,this._output.add_token(U.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},ve.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ve.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ve.prototype.set_mode=function(U){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,U),this._flags=this.create_flags(this._previous_flags,U),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},ve.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Le.Statement&&se(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},ve.prototype.start_of_object_property=function(){return this._flags.parent.mode===Le.ObjectLiteral&&this._flags.mode===Le.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||G(this._flags.last_token,["get","set"]))},ve.prototype.start_of_statement=function(U){var ee=!1;return ee=ee||G(this._flags.last_token,["var","let","const"])&&U.type===P.WORD,ee=ee||H(this._flags.last_token,"do"),ee=ee||!(this._flags.parent.mode===Le.ObjectLiteral&&this._flags.mode===Le.Statement)&&G(this._flags.last_token,F)&&!U.newlines,ee=ee||H(this._flags.last_token,"else")&&!(H(U,"if")&&!U.comments_before),ee=ee||this._flags.last_token.type===P.END_EXPR&&(this._previous_flags.mode===Le.ForInitializer||this._previous_flags.mode===Le.Conditional),ee=ee||this._flags.last_token.type===P.WORD&&this._flags.mode===Le.BlockStatement&&!this._flags.in_case&&!(U.text==="--"||U.text==="++")&&this._last_last_text!=="function"&&U.type!==P.WORD&&U.type!==P.RESERVED,ee=ee||this._flags.mode===Le.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||G(this._flags.last_token,["get","set"])),ee?(this.set_mode(Le.Statement),this.indent(),this.handle_whitespace_and_comments(U,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(U,G(U,["do","for","if","while"])),!0):!1},ve.prototype.handle_start_expr=function(U){this.start_of_statement(U)||this.handle_whitespace_and_comments(U);var ee=Le.Expression;if(U.text==="["){if(this._flags.last_token.type===P.WORD||this._flags.last_token.text===")"){G(this._flags.last_token,L)&&(this._output.space_before_token=!0),this.print_token(U),this.set_mode(ee),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}ee=Le.ArrayLiteral,O(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),$(this._flags.last_token.type,[P.START_EXPR,P.END_EXPR,P.WORD,P.OPERATOR,P.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===P.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,ee=Le.ForInitializer):$(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,ee=Le.Conditional):$(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&U.whitespace_before===""?this._output.space_before_token=!1:($(this._flags.last_token.text,L)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(U);else if(this._flags.last_token.type===P.WORD){this._output.space_before_token=!1;var de=this._tokens.peek(-3);if(this._options.space_after_named_function&&de){var Xe=this._tokens.peek(-4);G(de,["async","function"])||de.text==="*"&&G(Xe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Le.ObjectLiteral?(de.text==="{"||de.text===","||de.text==="*"&&(Xe.text==="{"||Xe.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(U);(this._flags.last_token.type===P.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&($(this._last_last_text,["function","yield"])||this._flags.mode===Le.ObjectLiteral&&$(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===P.START_BLOCK?this.print_newline():(this._flags.last_token.type===P.END_EXPR||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===P.COMMA)&&this.allow_wrap_or_preserved_newline(U,U.newlines),this.print_token(U),this.set_mode(ee),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},ve.prototype.handle_end_expr=function(U){for(;this._flags.mode===Le.Statement;)this.restore_mode();this.handle_whitespace_and_comments(U),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(U,U.text==="]"&&O(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===P.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(U),this.restore_mode(),se(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Le.Conditional&&(this._previous_flags.mode=Le.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},ve.prototype.handle_start_block=function(U){this.handle_whitespace_and_comments(U);var ee=this._tokens.peek(),de=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===P.END_EXPR?(this.set_mode(Le.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Le.BlockStatement):de&&($(de.text,[":",","])&&$(ee.type,[P.STRING,P.WORD,P.RESERVED])||$(ee.text,["get","set","..."])&&$(de.type,[P.WORD,P.RESERVED]))?$(this._last_last_text,["class","interface"])&&!$(de.text,[":",","])?this.set_mode(Le.BlockStatement):this.set_mode(Le.ObjectLiteral):this._flags.last_token.type===P.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Le.BlockStatement):$(this._flags.last_token.type,[P.EQUALS,P.START_EXPR,P.COMMA,P.OPERATOR])||G(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Le.ObjectLiteral):this.set_mode(Le.BlockStatement),this._flags.last_token&&G(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Xe=!ee.comments_before&&ee.text==="}",tt=Xe&&this._flags.last_word==="function"&&this._flags.last_token.type===P.END_EXPR;if(this._options.brace_preserve_inline){var nt=0,_t=null;this._flags.inline_frame=!0;do if(nt+=1,_t=this._tokens.peek(nt-1),_t.newlines){this._flags.inline_frame=!1;break}while(_t.type!==P.EOF&&!(_t.type===P.END_BLOCK&&_t.opened===U))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&U.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==P.OPERATOR&&(tt||this._flags.last_token.type===P.EQUALS||G(this._flags.last_token,ce)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(O(this._previous_flags.mode)&&(this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.COMMA)&&((this._flags.last_token.type===P.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(U),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==P.OPERATOR&&this._flags.last_token.type!==P.START_EXPR&&($(this._flags.last_token.type,[P.START_BLOCK,P.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(U),this.indent(),!Xe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},ve.prototype.handle_end_block=function(U){for(this.handle_whitespace_and_comments(U);this._flags.mode===Le.Statement;)this.restore_mode();var ee=this._flags.last_token.type===P.START_BLOCK;this._flags.inline_frame&&!ee?this._output.space_before_token=!0:this._options.brace_style==="expand"?ee||this.print_newline():ee||(O(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(U)},ve.prototype.handle_word=function(U){if(U.type===P.RESERVED){if($(U.text,["set","get"])&&this._flags.mode!==Le.ObjectLiteral)U.type=P.WORD;else if(U.text==="import"&&$(this._tokens.peek().text,["(","."]))U.type=P.WORD;else if($(U.text,["as","from"])&&!this._flags.import_block)U.type=P.WORD;else if(this._flags.mode===Le.ObjectLiteral){var ee=this._tokens.peek();ee.text===":"&&(U.type=P.WORD)}}if(this.start_of_statement(U)?G(this._flags.last_token,["var","let","const"])&&U.type===P.WORD&&(this._flags.declaration_statement=!0):U.newlines&&!Ee(this._flags.mode)&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==P.EQUALS&&(this._options.preserve_newlines||!G(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(U),this.print_newline()):this.handle_whitespace_and_comments(U),this._flags.do_block&&!this._flags.do_while)if(H(U,"while")){this._output.space_before_token=!0,this.print_token(U),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&H(U,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Le.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&G(U,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(U),this._flags.in_case=!0;return}if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)&&!this.start_of_object_property()&&!($(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Le.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(U),H(U,"function")){($(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!($(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===P.OPERATOR))&&!this._output.just_added_blankline()&&!U.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD?G(this._flags.last_token,["get","set","new","export"])||G(this._flags.last_token,F)?this._output.space_before_token=!0:H(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===P.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Ee(this._flags.mode)||O(this._flags.mode))||this.print_newline(),this.print_token(U),this._flags.last_word=U.text;return}var de="NONE";if(this._flags.last_token.type===P.END_BLOCK?this._previous_flags.inline_frame?de="SPACE":G(U,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&U.newlines?de="NEWLINE":(de="SPACE",this._output.space_before_token=!0):de="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&this._flags.mode===Le.BlockStatement?de="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&Ee(this._flags.mode)?de="SPACE":this._flags.last_token.type===P.STRING?de="NEWLINE":this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.last_token.text==="*"&&($(this._last_last_text,["function","yield"])||this._flags.mode===Le.ObjectLiteral&&$(this._last_last_text,["{",","]))?de="SPACE":this._flags.last_token.type===P.START_BLOCK?this._flags.inline_frame?de="SPACE":de="NEWLINE":this._flags.last_token.type===P.END_EXPR&&(this._output.space_before_token=!0,de="NEWLINE"),G(U,L)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?de="SPACE":de="NEWLINE"),G(U,["else","catch","finally"]))if((!(this._flags.last_token.type===P.END_BLOCK&&this._previous_flags.mode===Le.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&U.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Xe=this._output.current_line;Xe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else de==="NEWLINE"?G(this._flags.last_token,ce)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&G(U,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==P.END_EXPR?(this._flags.last_token.type!==P.START_EXPR||!G(U,["var","let","const"]))&&this._flags.last_token.text!==":"&&(H(U,"if")&&H(U.previous,"else")?this._output.space_before_token=!0:this.print_newline()):G(U,L)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&O(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():de==="SPACE"&&(this._output.space_before_token=!0);U.previous&&(U.previous.type===P.WORD||U.previous.type===P.RESERVED)&&(this._output.space_before_token=!0),this.print_token(U),this._flags.last_word=U.text,U.type===P.RESERVED&&(U.text==="do"?this._flags.do_block=!0:U.text==="if"?this._flags.if_block=!0:U.text==="import"?this._flags.import_block=!0:this._flags.import_block&&H(U,"from")&&(this._flags.import_block=!1))},ve.prototype.handle_semicolon=function(U){this.start_of_statement(U)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(U);for(var ee=this._tokens.peek();this._flags.mode===Le.Statement&&!(this._flags.if_block&&H(ee,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(U)},ve.prototype.handle_string=function(U){U.text.startsWith("`")&&U.newlines===0&&U.whitespace_before===""&&(U.previous.text===")"||this._flags.last_token.type===P.WORD)||(this.start_of_statement(U)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(U),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(U):U.text.startsWith("`")&&this._flags.last_token.type===P.END_EXPR&&(U.previous.text==="]"||U.previous.text===")")&&U.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(U)},ve.prototype.handle_equals=function(U){this.start_of_statement(U)||this.handle_whitespace_and_comments(U),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(U),this._output.space_before_token=!0},ve.prototype.handle_comma=function(U){this.handle_whitespace_and_comments(U,!0),this.print_token(U),this._output.space_before_token=!0,this._flags.declaration_statement?(Ee(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(U)):this._flags.mode===Le.ObjectLiteral||this._flags.mode===Le.Statement&&this._flags.parent.mode===Le.ObjectLiteral?(this._flags.mode===Le.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(U)},ve.prototype.handle_operator=function(U){var ee=U.text==="*"&&(G(this._flags.last_token,["function","yield"])||$(this._flags.last_token.type,[P.START_BLOCK,P.COMMA,P.END_BLOCK,P.SEMICOLON])),de=$(U.text,["-","+"])&&($(this._flags.last_token.type,[P.START_BLOCK,P.START_EXPR,P.EQUALS,P.OPERATOR])||$(this._flags.last_token.text,L)||this._flags.last_token.text===",");if(!this.start_of_statement(U)){var Xe=!ee;this.handle_whitespace_and_comments(U,Xe)}if(U.text==="*"&&this._flags.last_token.type===P.DOT){this.print_token(U);return}if(U.text==="::"){this.print_token(U);return}if($(U.text,["-","+"])&&this.start_of_object_property()){this.print_token(U);return}if(this._flags.last_token.type===P.OPERATOR&&$(this._options.operator_position,_e)&&this.allow_wrap_or_preserved_newline(U),U.text===":"&&this._flags.in_case){this.print_token(U),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==P.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var tt=!0,nt=!0,_t=!1;if(U.text===":"?this._flags.ternary_depth===0?tt=!1:(this._flags.ternary_depth-=1,_t=!0):U.text==="?"&&(this._flags.ternary_depth+=1),!de&&!ee&&this._options.preserve_newlines&&$(U.text,z)){var Xt=U.text===":",zt=Xt&&_t,Ze=Xt&&!_t;switch(this._options.operator_position){case ye.before_newline:this._output.space_before_token=!Ze,this.print_token(U),(!Xt||zt)&&this.allow_wrap_or_preserved_newline(U),this._output.space_before_token=!0;return;case ye.after_newline:this._output.space_before_token=!0,!Xt||zt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(U):this._output.space_before_token=!1,this.print_token(U),this._output.space_before_token=!0;return;case ye.preserve_newline:Ze||this.allow_wrap_or_preserved_newline(U),tt=!(this._output.just_added_newline()||Ze),this._output.space_before_token=tt,this.print_token(U),this._output.space_before_token=!0;return}}if(ee){this.allow_wrap_or_preserved_newline(U),tt=!1;var fr=this._tokens.peek();nt=fr&&$(fr.type,[P.WORD,P.RESERVED])}else if(U.text==="...")this.allow_wrap_or_preserved_newline(U),tt=this._flags.last_token.type===P.START_BLOCK,nt=!1;else if($(U.text,["--","++","!","~"])||de){if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR)&&this.allow_wrap_or_preserved_newline(U),tt=!1,nt=!1,U.newlines&&(U.text==="--"||U.text==="++"||U.text==="~")){var yr=G(this._flags.last_token,ce)&&U.newlines;yr&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(yr,!0)}this._flags.last_token.text===";"&&Ee(this._flags.mode)&&(tt=!0),this._flags.last_token.type===P.RESERVED?tt=!0:this._flags.last_token.type===P.END_EXPR?tt=!(this._flags.last_token.text==="]"&&(U.text==="--"||U.text==="++")):this._flags.last_token.type===P.OPERATOR&&(tt=$(U.text,["--","-","++","+"])&&$(this._flags.last_token.text,["--","-","++","+"]),$(U.text,["+","-"])&&$(this._flags.last_token.text,["--","++"])&&(nt=!0)),(this._flags.mode===Le.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Le.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||tt,this.print_token(U),this._output.space_before_token=nt},ve.prototype.handle_block_comment=function(U,ee){if(this._output.raw){this._output.add_raw_token(U),U.directives&&U.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(U.directives){this.print_newline(!1,ee),this.print_token(U),U.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!m.newline.test(U.text)&&!U.newlines){this._output.space_before_token=!0,this.print_token(U),this._output.space_before_token=!0;return}else this.print_block_commment(U,ee)},ve.prototype.print_block_commment=function(U,ee){var de=be(U.text),Xe,tt=!1,nt=!1,_t=U.whitespace_before,Xt=_t.length;if(this.print_newline(!1,ee),this.print_token_line_indentation(U),this._output.add_token(de[0]),this.print_newline(!1,ee),de.length>1){for(de=de.slice(1),tt=ue(de,"*"),nt=he(de,_t),tt&&(this._flags.alignment=1),Xe=0;Xe<de.length;Xe++)tt?(this.print_token_line_indentation(U),this._output.add_token(J(de[Xe]))):nt&&de[Xe]?(this.print_token_line_indentation(U),this._output.add_token(de[Xe].substring(Xt))):(this._output.current_line.set_indent(-1),this._output.add_token(de[Xe])),this.print_newline(!1,ee);this._flags.alignment=0}},ve.prototype.handle_comment=function(U,ee){U.newlines?this.print_newline(!1,ee):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(U),this.print_newline(!1,ee)},ve.prototype.handle_dot=function(U){this.start_of_statement(U)||this.handle_whitespace_and_comments(U,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),G(this._flags.last_token,ce)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(U,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(U)},ve.prototype.handle_unknown=function(U,ee){this.print_token(U),U.text[U.text.length-1]===`
|
|
|
`&&this.print_newline(!1,ee)},ve.prototype.handle_eof=function(U){for(;this._flags.mode===Le.Statement;)this.restore_mode();this.handle_whitespace_and_comments(U)},T.exports.Beautifier=ve},function(T){function l(v){this.__parent=v,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}l.prototype.clone_empty=function(){var v=new l(this.__parent);return v.set_indent(this.__indent_count,this.__alignment_count),v},l.prototype.item=function(v){return v<0?this.__items[this.__items.length+v]:this.__items[v]},l.prototype.has_match=function(v){for(var m=this.__items.length-1;m>=0;m--)if(this.__items[m].match(v))return!0;return!1},l.prototype.set_indent=function(v,m){this.is_empty()&&(this.__indent_count=v||0,this.__alignment_count=m||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},l.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},l.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},l.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var v=this.__parent.current_line;return v.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),v.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),v.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,v.__items[0]===" "&&(v.__items.splice(0,1),v.__character_count-=1),!0}return!1},l.prototype.is_empty=function(){return this.__items.length===0},l.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},l.prototype.push=function(v){this.__items.push(v);var m=v.lastIndexOf(`
|
|
|
`);m!==-1?this.__character_count=v.length-m:this.__character_count+=v.length},l.prototype.pop=function(){var v=null;return this.is_empty()||(v=this.__items.pop(),this.__character_count-=v.length),v},l.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},l.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},l.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},l.prototype.toString=function(){var v="";return this.is_empty()?this.__parent.indent_empty_lines&&(v=this.__parent.get_indent_string(this.__indent_count)):(v=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),v+=this.__items.join("")),v};function d(v,m){this.__cache=[""],this.__indent_size=v.indent_size,this.__indent_string=v.indent_char,v.indent_with_tabs||(this.__indent_string=new Array(v.indent_size+1).join(v.indent_char)),m=m||"",v.indent_level>0&&(m=new Array(v.indent_level+1).join(this.__indent_string)),this.__base_string=m,this.__base_string_length=m.length}d.prototype.get_indent_size=function(v,m){var b=this.__base_string_length;return m=m||0,v<0&&(b=0),b+=v*this.__indent_size,b+=m,b},d.prototype.get_indent_string=function(v,m){var b=this.__base_string;return m=m||0,v<0&&(v=0,b=""),m+=v*this.__indent_size,this.__ensure_cache(m),b+=this.__cache[m],b},d.prototype.__ensure_cache=function(v){for(;v>=this.__cache.length;)this.__add_column()},d.prototype.__add_column=function(){var v=this.__cache.length,m=0,b="";this.__indent_size&&v>=this.__indent_size&&(m=Math.floor(v/this.__indent_size),v-=m*this.__indent_size,b=new Array(m+1).join(this.__indent_string)),v&&(b+=new Array(v+1).join(" ")),this.__cache.push(b)};function N(v,m){this.__indent_cache=new d(v,m),this.raw=!1,this._end_with_newline=v.end_with_newline,this.indent_size=v.indent_size,this.wrap_line_length=v.wrap_line_length,this.indent_empty_lines=v.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new l(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}N.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},N.prototype.get_line_number=function(){return this.__lines.length},N.prototype.get_indent_string=function(v,m){return this.__indent_cache.get_indent_string(v,m)},N.prototype.get_indent_size=function(v,m){return this.__indent_cache.get_indent_size(v,m)},N.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},N.prototype.add_new_line=function(v){return this.is_empty()||!v&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},N.prototype.get_code=function(v){this.trim(!0);var m=this.current_line.pop();m&&(m[m.length-1]===`
|
|
|
`&&(m=m.replace(/\n+$/g,"")),this.current_line.push(m)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
|
|
|
`);return v!==`
|
|
|
`&&(b=b.replace(/[\n]/g,v)),b},N.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},N.prototype.set_indent=function(v,m){return v=v||0,m=m||0,this.next_line.set_indent(v,m),this.__lines.length>1?(this.current_line.set_indent(v,m),!0):(this.current_line.set_indent(),!1)},N.prototype.add_raw_token=function(v){for(var m=0;m<v.newlines;m++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(v.whitespace_before),this.current_line.push(v.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},N.prototype.add_token=function(v){this.__add_space_before_token(),this.current_line.push(v),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},N.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},N.prototype.remove_indent=function(v){for(var m=this.__lines.length;v<m;)this.__lines[v]._remove_indent(),v++;this.current_line._remove_wrap_indent()},N.prototype.trim=function(v){for(v=v===void 0?!1:v,this.current_line.trim();v&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},N.prototype.just_added_newline=function(){return this.current_line.is_empty()},N.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},N.prototype.ensure_empty_line_above=function(v,m){for(var b=this.__lines.length-2;b>=0;){var I=this.__lines[b];if(I.is_empty())break;if(I.item(0).indexOf(v)!==0&&I.item(-1)!==m){this.__lines.splice(b+1,0,new l(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},T.exports.Output=N},function(T){function l(d,N,v,m){this.type=d,this.text=N,this.comments_before=null,this.newlines=v||0,this.whitespace_before=m||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}T.exports.Token=l},function(T,l){var d="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",N="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",v="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",m="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",b="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",I="(?:"+b+"|["+d+v+"])",L="(?:"+b+"|["+N+v+m+"])*";l.identifier=new RegExp(I+L,"g"),l.identifierStart=new RegExp(I),l.identifierMatch=new RegExp("(?:"+b+"|["+N+v+m+"])+");var z=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;l.newline=/[\n\r\u2028\u2029]/,l.lineBreak=new RegExp(`\r
|
|
|
|`+l.newline.source),l.allLineBreaks=new RegExp(l.lineBreak.source,"g")},function(T,l,d){var N=d(6).Options,v=["before-newline","after-newline","preserve-newline"];function m(b){N.call(this,b,"js");var I=this.raw_options.brace_style||null;I==="expand-strict"?this.raw_options.brace_style="expand":I==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var L=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var z=0;z<L.length;z++)L[z]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=L[z];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",v),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}m.prototype=new N,T.exports.Options=m},function(T){function l(v,m){this.raw_options=d(v,m),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}l.prototype._get_array=function(v,m){var b=this.raw_options[v],I=m||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(I=b.concat()):typeof b=="string"&&(I=b.split(/[^a-zA-Z0-9_\/\-]+/)),I},l.prototype._get_boolean=function(v,m){var b=this.raw_options[v],I=b===void 0?!!m:!!b;return I},l.prototype._get_characters=function(v,m){var b=this.raw_options[v],I=m||"";return typeof b=="string"&&(I=b.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),I},l.prototype._get_number=function(v,m){var b=this.raw_options[v];m=parseInt(m,10),isNaN(m)&&(m=0);var I=parseInt(b,10);return isNaN(I)&&(I=m),I},l.prototype._get_selection=function(v,m,b){var I=this._get_selection_list(v,m,b);if(I.length!==1)throw new Error("Invalid Option Value: The option '"+v+`' can only be one of the following values:
|
|
|
`+m+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return I[0]},l.prototype._get_selection_list=function(v,m,b){if(!m||m.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[m[0]],!this._is_valid_selection(b,m))throw new Error("Invalid Default Value!");var I=this._get_array(v,b);if(!this._is_valid_selection(I,m))throw new Error("Invalid Option Value: The option '"+v+`' can contain only the following values:
|
|
|
`+m+`
|
|
|
You passed in: '`+this.raw_options[v]+"'");return I},l.prototype._is_valid_selection=function(v,m){return v.length&&m.length&&!v.some(function(b){return m.indexOf(b)===-1})};function d(v,m){var b={};v=N(v);var I;for(I in v)I!==m&&(b[I]=v[I]);if(m&&v[m])for(I in v[m])b[I]=v[m][I];return b}function N(v){var m={},b;for(b in v){var I=b.replace(/-/g,"_");m[I]=v[b]}return m}T.exports.Options=l,T.exports.normalizeOpts=N,T.exports.mergeOpts=d},function(T,l,d){var N=d(8).InputScanner,v=d(9).Tokenizer,m=d(9).TOKEN,b=d(13).Directives,I=d(4),L=d(12).Pattern,z=d(14).TemplatablePattern;function P(ue,he){return he.indexOf(ue)!==-1}var $={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:m.START,RAW:m.RAW,EOF:m.EOF},J=new b(/\/\*/,/\*\//),te=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,H=/[0-9]/,G=/[^\d\.]/,ce=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),q=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";q=q.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),q="\\?\\.(?!\\d) "+q,q=q.replace(/ /g,"|");var ye=new RegExp(q),_e="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Le=_e.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),se=new RegExp("^(?:"+Le.join("|")+")$"),be,O=function(ue,he){v.call(this,ue,he),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var ve=new L(this._input),F=new z(this._input).read_options(this._options);this.__patterns={template:F,identifier:F.starting_with(I.identifier).matching(I.identifierMatch),number:ve.matching(te),punct:ve.matching(ye),comment:ve.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:ve.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:ve.matching(/<!--/),html_comment_end:ve.matching(/-->/),include:ve.starting_with(/#include/).until_after(I.lineBreak),shebang:ve.starting_with(/#!/).until_after(I.lineBreak),xml:ve.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:F.until(/['\\\n\r\u2028\u2029]/),double_quote:F.until(/["\\\n\r\u2028\u2029]/),template_text:F.until(/[`\\$]/),template_expression:F.until(/[`}\\]/)}};O.prototype=new v,O.prototype._is_comment=function(ue){return ue.type===$.COMMENT||ue.type===$.BLOCK_COMMENT||ue.type===$.UNKNOWN},O.prototype._is_opening=function(ue){return ue.type===$.START_BLOCK||ue.type===$.START_EXPR},O.prototype._is_closing=function(ue,he){return(ue.type===$.END_BLOCK||ue.type===$.END_EXPR)&&he&&(ue.text==="]"&&he.text==="["||ue.text===")"&&he.text==="("||ue.text==="}"&&he.text==="{")},O.prototype._reset=function(){be=!1},O.prototype._get_next_token=function(ue,he){var ve=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token($.EOF,""):(ve=ve||this._read_non_javascript(F),ve=ve||this._read_string(F),ve=ve||this._read_pair(F,this._input.peek(1)),ve=ve||this._read_word(ue),ve=ve||this._read_singles(F),ve=ve||this._read_comment(F),ve=ve||this._read_regexp(F,ue),ve=ve||this._read_xml(F,ue),ve=ve||this._read_punctuation(),ve=ve||this._create_token($.UNKNOWN,this._input.next()),ve)},O.prototype._read_word=function(ue){var he;if(he=this.__patterns.identifier.read(),he!=="")return he=he.replace(I.allLineBreaks,`
|
|
|
`),!(ue.type===$.DOT||ue.type===$.RESERVED&&(ue.text==="set"||ue.text==="get"))&&se.test(he)?(he==="in"||he==="of")&&(ue.type===$.WORD||ue.type===$.STRING)?this._create_token($.OPERATOR,he):this._create_token($.RESERVED,he):this._create_token($.WORD,he);if(he=this.__patterns.number.read(),he!=="")return this._create_token($.WORD,he)},O.prototype._read_singles=function(ue){var he=null;return ue==="("||ue==="["?he=this._create_token($.START_EXPR,ue):ue===")"||ue==="]"?he=this._create_token($.END_EXPR,ue):ue==="{"?he=this._create_token($.START_BLOCK,ue):ue==="}"?he=this._create_token($.END_BLOCK,ue):ue===";"?he=this._create_token($.SEMICOLON,ue):ue==="."&&G.test(this._input.peek(1))?he=this._create_token($.DOT,ue):ue===","&&(he=this._create_token($.COMMA,ue)),he&&this._input.next(),he},O.prototype._read_pair=function(ue,he){var ve=null;return ue==="#"&&he==="{"&&(ve=this._create_token($.START_BLOCK,ue+he)),ve&&(this._input.next(),this._input.next()),ve},O.prototype._read_punctuation=function(){var ue=this.__patterns.punct.read();if(ue!=="")return ue==="="?this._create_token($.EQUALS,ue):ue==="?."?this._create_token($.DOT,ue):this._create_token($.OPERATOR,ue)},O.prototype._read_non_javascript=function(ue){var he="";if(ue==="#"){if(this._is_first_token()&&(he=this.__patterns.shebang.read(),he))return this._create_token($.UNKNOWN,he.trim()+`
|
|
|
`);if(he=this.__patterns.include.read(),he)return this._create_token($.UNKNOWN,he.trim()+`
|
|
|
`);ue=this._input.next();var ve="#";if(this._input.hasNext()&&this._input.testChar(H)){do ue=this._input.next(),ve+=ue;while(this._input.hasNext()&&ue!=="#"&&ue!=="=");return ue==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(ve+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(ve+="{}",this._input.next(),this._input.next())),this._create_token($.WORD,ve)}this._input.back()}else if(ue==="<"&&this._is_first_token()){if(he=this.__patterns.html_comment_start.read(),he){for(;this._input.hasNext()&&!this._input.testChar(I.newline);)he+=this._input.next();return be=!0,this._create_token($.COMMENT,he)}}else if(be&&ue==="-"&&(he=this.__patterns.html_comment_end.read(),he))return be=!1,this._create_token($.COMMENT,he);return null},O.prototype._read_comment=function(ue){var he=null;if(ue==="/"){var ve="";if(this._input.peek(1)==="*"){ve=this.__patterns.block_comment.read();var F=J.get_directives(ve);F&&F.ignore==="start"&&(ve+=J.readIgnored(this._input)),ve=ve.replace(I.allLineBreaks,`
|
|
|
`),he=this._create_token($.BLOCK_COMMENT,ve),he.directives=F}else this._input.peek(1)==="/"&&(ve=this.__patterns.comment.read(),he=this._create_token($.COMMENT,ve))}return he},O.prototype._read_string=function(ue){if(ue==="`"||ue==="'"||ue==='"'){var he=this._input.next();return this.has_char_escapes=!1,ue==="`"?he+=this._read_string_recursive("`",!0,"${"):he+=this._read_string_recursive(ue),this.has_char_escapes&&this._options.unescape_strings&&(he=Ee(he)),this._input.peek()===ue&&(he+=this._input.next()),he=he.replace(I.allLineBreaks,`
|
|
|
`),this._create_token($.STRING,he)}return null},O.prototype._allow_regexp_or_xml=function(ue){return ue.type===$.RESERVED&&P(ue.text,["return","case","throw","else","do","typeof","yield"])||ue.type===$.END_EXPR&&ue.text===")"&&ue.opened.previous.type===$.RESERVED&&P(ue.opened.previous.text,["if","while","for"])||P(ue.type,[$.COMMENT,$.START_EXPR,$.START_BLOCK,$.START,$.END_BLOCK,$.OPERATOR,$.EQUALS,$.EOF,$.SEMICOLON,$.COMMA])},O.prototype._read_regexp=function(ue,he){if(ue==="/"&&this._allow_regexp_or_xml(he)){for(var ve=this._input.next(),F=!1,U=!1;this._input.hasNext()&&(F||U||this._input.peek()!==ue)&&!this._input.testChar(I.newline);)ve+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?U=!0:this._input.peek()==="]"&&(U=!1)),this._input.next();return this._input.peek()===ue&&(ve+=this._input.next(),ve+=this._input.read(I.identifier)),this._create_token($.STRING,ve)}return null},O.prototype._read_xml=function(ue,he){if(this._options.e4x&&ue==="<"&&this._allow_regexp_or_xml(he)){var ve="",F=this.__patterns.xml.read_match();if(F){for(var U=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),ee=U.indexOf("{")===0,de=0;F;){var Xe=!!F[1],tt=F[2],nt=!!F[F.length-1]||tt.slice(0,8)==="![CDATA[";if(!nt&&(tt===U||ee&&tt.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Xe?--de:++de),ve+=F[0],de<=0)break;F=this.__patterns.xml.read_match()}return F||(ve+=this._input.match(/[\s\S]*/g)[0]),ve=ve.replace(I.allLineBreaks,`
|
|
|
`),this._create_token($.STRING,ve)}}return null};function Ee(ue){for(var he="",ve=0,F=new N(ue),U=null;F.hasNext();)if(U=F.match(/([\s]|[^\\]|\\\\)+/g),U&&(he+=U[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")U=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")U=F.match(/u([0-9A-Fa-f]{4})/g),U||(U=F.match(/u\{([0-9A-Fa-f]+)\}/g));else{he+="\\",F.hasNext()&&(he+=F.next());continue}if(!U||(ve=parseInt(U[1],16),ve>126&&ve<=255&&U[0].indexOf("x")===0))return ue;ve>=0&&ve<32||ve>1114111?he+="\\"+U[0]:ve===34||ve===39||ve===92?he+="\\"+String.fromCharCode(ve):he+=String.fromCharCode(ve)}return he}O.prototype._read_string_recursive=function(ue,he,ve){var F,U;ue==="'"?U=this.__patterns.single_quote:ue==='"'?U=this.__patterns.double_quote:ue==="`"?U=this.__patterns.template_text:ue==="}"&&(U=this.__patterns.template_expression);for(var ee=U.read(),de="";this._input.hasNext();){if(de=this._input.next(),de===ue||!he&&I.newline.test(de)){this._input.back();break}else de==="\\"&&this._input.hasNext()?(F=this._input.peek(),F==="x"||F==="u"?this.has_char_escapes=!0:F==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),de+=this._input.next()):ve&&(ve==="${"&&de==="$"&&this._input.peek()==="{"&&(de+=this._input.next()),ve===de&&(ue==="`"?de+=this._read_string_recursive("}",he,"`"):de+=this._read_string_recursive("`",he,"${"),this._input.hasNext()&&(de+=this._input.next())));de+=U.read(),ee+=de}return ee},T.exports.Tokenizer=O,T.exports.TOKEN=$,T.exports.positionable_operators=ce.slice(),T.exports.line_starters=_e.slice()},function(T){var l=RegExp.prototype.hasOwnProperty("sticky");function d(N){this.__input=N||"",this.__input_length=this.__input.length,this.__position=0}d.prototype.restart=function(){this.__position=0},d.prototype.back=function(){this.__position>0&&(this.__position-=1)},d.prototype.hasNext=function(){return this.__position<this.__input_length},d.prototype.next=function(){var N=null;return this.hasNext()&&(N=this.__input.charAt(this.__position),this.__position+=1),N},d.prototype.peek=function(N){var v=null;return N=N||0,N+=this.__position,N>=0&&N<this.__input_length&&(v=this.__input.charAt(N)),v},d.prototype.__match=function(N,v){N.lastIndex=v;var m=N.exec(this.__input);return m&&!(l&&N.sticky)&&m.index!==v&&(m=null),m},d.prototype.test=function(N,v){return v=v||0,v+=this.__position,v>=0&&v<this.__input_length?!!this.__match(N,v):!1},d.prototype.testChar=function(N,v){var m=this.peek(v);return N.lastIndex=0,m!==null&&N.test(m)},d.prototype.match=function(N){var v=this.__match(N,this.__position);return v?this.__position+=v[0].length:v=null,v},d.prototype.read=function(N,v,m){var b="",I;return N&&(I=this.match(N),I&&(b+=I[0])),v&&(I||!N)&&(b+=this.readUntil(v,m)),b},d.prototype.readUntil=function(N,v){var m="",b=this.__position;N.lastIndex=this.__position;var I=N.exec(this.__input);return I?(b=I.index,v&&(b+=I[0].length)):b=this.__input_length,m=this.__input.substring(this.__position,b),this.__position=b,m},d.prototype.readUntilAfter=function(N){return this.readUntil(N,!0)},d.prototype.get_regexp=function(N,v){var m=null,b="g";return v&&l&&(b="y"),typeof N=="string"&&N!==""?m=new RegExp(N,b):N&&(m=new RegExp(N.source,b)),m},d.prototype.get_literal_regexp=function(N){return RegExp(N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},d.prototype.peekUntilAfter=function(N){var v=this.__position,m=this.readUntilAfter(N);return this.__position=v,m},d.prototype.lookBack=function(N){var v=this.__position-1;return v>=N.length&&this.__input.substring(v-N.length,v).toLowerCase()===N},T.exports.InputScanner=d},function(T,l,d){var N=d(8).InputScanner,v=d(3).Token,m=d(10).TokenStream,b=d(11).WhitespacePattern,I={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},L=function(z,P){this._input=new N(z),this._options=P||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new b(this._input)};L.prototype.tokenize=function(){this._input.restart(),this.__tokens=new m,this._reset();for(var z,P=new v(I.START,""),$=null,J=[],te=new m;P.type!==I.EOF;){for(z=this._get_next_token(P,$);this._is_comment(z);)te.add(z),z=this._get_next_token(P,$);te.isEmpty()||(z.comments_before=te,te=new m),z.parent=$,this._is_opening(z)?(J.push($),$=z):$&&this._is_closing(z,$)&&(z.opened=$,$.closed=z,$=J.pop(),z.parent=$),z.previous=P,P.next=z,this.__tokens.add(z),P=z}return this.__tokens},L.prototype._is_first_token=function(){return this.__tokens.isEmpty()},L.prototype._reset=function(){},L.prototype._get_next_token=function(z,P){this._readWhitespace();var $=this._input.read(/.+/g);return $?this._create_token(I.RAW,$):this._create_token(I.EOF,"")},L.prototype._is_comment=function(z){return!1},L.prototype._is_opening=function(z){return!1},L.prototype._is_closing=function(z,P){return!1},L.prototype._create_token=function(z,P){var $=new v(z,P,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return $},L.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},T.exports.Tokenizer=L,T.exports.TOKEN=I},function(T){function l(d){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=d}l.prototype.restart=function(){this.__position=0},l.prototype.isEmpty=function(){return this.__tokens_length===0},l.prototype.hasNext=function(){return this.__position<this.__tokens_length},l.prototype.next=function(){var d=null;return this.hasNext()&&(d=this.__tokens[this.__position],this.__position+=1),d},l.prototype.peek=function(d){var N=null;return d=d||0,d+=this.__position,d>=0&&d<this.__tokens_length&&(N=this.__tokens[d]),N},l.prototype.add=function(d){this.__parent_token&&(d.parent=this.__parent_token),this.__tokens.push(d),this.__tokens_length+=1},T.exports.TokenStream=l},function(T,l,d){var N=d(12).Pattern;function v(m,b){N.call(this,m,b),b?this._line_regexp=this._input.get_regexp(b._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}v.prototype=new N,v.prototype.__set_whitespace_patterns=function(m,b){m+="\\t ",b+="\\n\\r",this._match_pattern=this._input.get_regexp("["+m+b+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+b+"]")},v.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var m=this._input.read(this._match_pattern);if(m===" ")this.whitespace_before_token=" ";else if(m){var b=this.__split(this._newline_regexp,m);this.newline_count=b.length-1,this.whitespace_before_token=b[this.newline_count]}return m},v.prototype.matching=function(m,b){var I=this._create();return I.__set_whitespace_patterns(m,b),I._update(),I},v.prototype._create=function(){return new v(this._input,this)},v.prototype.__split=function(m,b){m.lastIndex=0;for(var I=0,L=[],z=m.exec(b);z;)L.push(b.substring(I,z.index)),I=z.index+z[0].length,z=m.exec(b);return I<b.length?L.push(b.substring(I,b.length)):L.push(""),L},T.exports.WhitespacePattern=v},function(T){function l(d,N){this._input=d,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,N&&(this._starting_pattern=this._input.get_regexp(N._starting_pattern,!0),this._match_pattern=this._input.get_regexp(N._match_pattern,!0),this._until_pattern=this._input.get_regexp(N._until_pattern),this._until_after=N._until_after)}l.prototype.read=function(){var d=this._input.read(this._starting_pattern);return(!this._starting_pattern||d)&&(d+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),d},l.prototype.read_match=function(){return this._input.match(this._match_pattern)},l.prototype.until_after=function(d){var N=this._create();return N._until_after=!0,N._until_pattern=this._input.get_regexp(d),N._update(),N},l.prototype.until=function(d){var N=this._create();return N._until_after=!1,N._until_pattern=this._input.get_regexp(d),N._update(),N},l.prototype.starting_with=function(d){var N=this._create();return N._starting_pattern=this._input.get_regexp(d,!0),N._update(),N},l.prototype.matching=function(d){var N=this._create();return N._match_pattern=this._input.get_regexp(d,!0),N._update(),N},l.prototype._create=function(){return new l(this._input,this)},l.prototype._update=function(){},T.exports.Pattern=l},function(T){function l(d,N){d=typeof d=="string"?d:d.source,N=typeof N=="string"?N:N.source,this.__directives_block_pattern=new RegExp(d+/ beautify( \w+[:]\w+)+ /.source+N,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(d+/\sbeautify\signore:end\s/.source+N,"g")}l.prototype.get_directives=function(d){if(!d.match(this.__directives_block_pattern))return null;var N={};this.__directive_pattern.lastIndex=0;for(var v=this.__directive_pattern.exec(d);v;)N[v[1]]=v[2],v=this.__directive_pattern.exec(d);return N},l.prototype.readIgnored=function(d){return d.readUntilAfter(this.__directives_end_ignore_pattern)},T.exports.Directives=l},function(T,l,d){var N=d(12).Pattern,v={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function m(b,I){N.call(this,b,I),this.__template_pattern=null,this._disabled=Object.assign({},v),this._excluded=Object.assign({},v),I&&(this.__template_pattern=this._input.get_regexp(I.__template_pattern),this._excluded=Object.assign(this._excluded,I._excluded),this._disabled=Object.assign(this._disabled,I._disabled));var L=new N(b);this.__patterns={handlebars_comment:L.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:L.starting_with(/{{{/).until_after(/}}}/),handlebars:L.starting_with(/{{/).until_after(/}}/),php:L.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:L.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:L.starting_with(/{%/).until_after(/%}/),django_value:L.starting_with(/{{/).until_after(/}}/),django_comment:L.starting_with(/{#/).until_after(/#}/),smarty:L.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:L.starting_with(/{\*/).until_after(/\*}/),smarty_literal:L.starting_with(/{literal}/).until_after(/{\/literal}/)}}m.prototype=new N,m.prototype._create=function(){return new m(this._input,this)},m.prototype._update=function(){this.__set_templated_pattern()},m.prototype.disable=function(b){var I=this._create();return I._disabled[b]=!0,I._update(),I},m.prototype.read_options=function(b){var I=this._create();for(var L in v)I._disabled[L]=b.templating.indexOf(L)===-1;return I._update(),I},m.prototype.exclude=function(b){var I=this._create();return I._excluded[b]=!0,I._update(),I},m.prototype.read=function(){var b="";this._match_pattern?b=this._input.read(this._starting_pattern):b=this._input.read(this._starting_pattern,this.__template_pattern);for(var I=this._read_template();I;)this._match_pattern?I+=this._input.read(this._match_pattern):I+=this._input.readUntil(this.__template_pattern),b+=I,I=this._read_template();return this._until_after&&(b+=this._input.readUntilAfter(this._until_pattern)),b},m.prototype.__set_templated_pattern=function(){var b=[];this._disabled.php||b.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||b.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(b.push(this.__patterns.django._starting_pattern.source),b.push(this.__patterns.django_value._starting_pattern.source),b.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||b.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&b.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+b.join("|")+")")},m.prototype._read_template=function(){var b="",I=this._input.peek();if(I==="<"){var L=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&L==="?"&&(b=b||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&L==="%"&&(b=b||this.__patterns.erb.read())}else I==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(b=b||this.__patterns.handlebars_comment.read(),b=b||this.__patterns.handlebars_unescaped.read(),b=b||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(b=b||this.__patterns.django_value.read()),this._excluded.django||(b=b||this.__patterns.django_comment.read(),b=b||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(b=b||this.__patterns.smarty_comment.read(),b=b||this.__patterns.smarty_literal.read(),b=b||this.__patterns.smarty.read()));return b},T.exports.TemplatablePattern=m}],K={};function g(T){var l=K[T];if(l!==void 0)return l.exports;var d=K[T]={exports:{}};return Re[T](d,d.exports,g),d.exports}var R=g(0);Fe=R})();var ae=Fe;E=[],le=function(){return{js_beautify:ae}}.apply(Mt,E),le!==void 0&&(tn.exports=le)})()},7348:function(tn,Mt,E){"use strict";E.r(Mt),E.d(Mt,{AcroForm:function(){return Aa},AcroFormAppearance:function(){return ci},AcroFormButton:function(){return Ji},AcroFormCheckBox:function(){return ea},AcroFormChoiceField:function(){return ua},AcroFormComboBox:function(){return li},AcroFormEditBox:function(){return oi},AcroFormListBox:function(){return Xs},AcroFormPasswordField:function(){return ta},AcroFormPushButton:function(){return $s},AcroFormRadioButton:function(){return As},AcroFormTextField:function(){return Va},GState:function(){return ps},ShadingPattern:function(){return vs},TilingPattern:function(){return ss},default:function(){return gi},jsPDF:function(){return gi}});var le=E(62853),Fe={},ae=function(C,h,_,j,ie){var X=new Worker(Fe[h]||(Fe[h]=URL.createObjectURL(new Blob([C+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return X.onmessage=function(me){var De=me.data,ke=De.$e$;if(ke){var et=new Error(ke[0]);et.code=ke[1],et.stack=ke[2],ie(et,null)}else ie(null,De)},X.postMessage(_,j),X},Re=Uint8Array,K=Uint16Array,g=Int32Array,R=new Re([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),T=new Re([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new Re([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=function(C,h){for(var _=new K(31),j=0;j<31;++j)_[j]=h+=1<<C[j-1];for(var ie=new g(_[30]),j=1;j<30;++j)for(var X=_[j];X<_[j+1];++X)ie[X]=X-_[j]<<5|j;return{b:_,r:ie}},N=d(R,2),v=N.b,m=N.r;v[28]=258,m[258]=28;for(var b=d(T,0),I=b.b,L=b.r,z=new K(32768),P=0;P<32768;++P){var $=(P&43690)>>1|(P&21845)<<1;$=($&52428)>>2|($&13107)<<2,$=($&61680)>>4|($&3855)<<4,z[P]=(($&65280)>>8|($&255)<<8)>>1}for(var J=function(C,h,_){for(var j=C.length,ie=0,X=new K(h);ie<j;++ie)C[ie]&&++X[C[ie]-1];var me=new K(h);for(ie=1;ie<h;++ie)me[ie]=me[ie-1]+X[ie-1]<<1;var De;if(_){De=new K(1<<h);var ke=15-h;for(ie=0;ie<j;++ie)if(C[ie])for(var et=ie<<4|C[ie],dt=h-C[ie],ft=me[C[ie]-1]++<<dt,Ct=ft|(1<<dt)-1;ft<=Ct;++ft)De[z[ft]>>ke]=et}else for(De=new K(j),ie=0;ie<j;++ie)C[ie]&&(De[ie]=z[me[C[ie]-1]++]>>15-C[ie]);return De},te=new Re(288),P=0;P<144;++P)te[P]=8;for(var P=144;P<256;++P)te[P]=9;for(var P=256;P<280;++P)te[P]=7;for(var P=280;P<288;++P)te[P]=8;for(var H=new Re(32),P=0;P<32;++P)H[P]=5;var G=J(te,9,0),ce=J(te,9,1),q=J(H,5,0),ye=J(H,5,1),_e=function(C){for(var h=C[0],_=1;_<C.length;++_)C[_]>h&&(h=C[_]);return h},Le=function(C,h,_){var j=h/8|0;return(C[j]|C[j+1]<<8)>>(h&7)&_},se=function(C,h){var _=h/8|0;return(C[_]|C[_+1]<<8|C[_+2]<<16)>>(h&7)},be=function(C){return(C+7)/8|0},O=function(C,h,_){return(h==null||h<0)&&(h=0),(_==null||_>C.length)&&(_=C.length),new Re(C.subarray(h,_))},Ee={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},ue=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],he=function(C,h,_){var j=new Error(h||ue[C]);if(j.code=C,Error.captureStackTrace&&Error.captureStackTrace(j,he),!_)throw j;return j},ve=function(C,h,_,j){var ie=C.length,X=j?j.length:0;if(!ie||h.f&&!h.l)return _||new Re(0);var me=!_,De=me||h.i!=2,ke=h.i;me&&(_=new Re(ie*3));var et=function(Or){var Mr=_.length;if(Or>Mr){var Yr=new Re(Math.max(Mr*2,Or));Yr.set(_),_=Yr}},dt=h.f||0,ft=h.p||0,Ct=h.b||0,Ve=h.l,nr=h.d,Zt=h.m,or=h.n,Lt=ie*8;do{if(!Ve){dt=Le(C,ft,1);var ar=Le(C,ft+1,3);if(ft+=3,ar)if(ar==1)Ve=ce,nr=ye,Zt=9,or=5;else if(ar==2){var Gn=Le(C,ft,31)+257,Jr=Le(C,ft+10,15)+4,br=Gn+Le(C,ft+5,31)+1;ft+=14;for(var en=new Re(br),In=new Re(19),Nt=0;Nt<Jr;++Nt)In[l[Nt]]=Le(C,ft+Nt*3,7);ft+=Jr*3;for(var Wt=_e(In),Cr=(1<<Wt)-1,ge=J(In,Wt,1),Nt=0;Nt<br;){var Pe=ge[Le(C,ft,Cr)];ft+=Pe&15;var Ir=Pe>>4;if(Ir<16)en[Nt++]=Ir;else{var Ye=0,st=0;for(Ir==16?(st=3+Le(C,ft,3),ft+=2,Ye=en[Nt-1]):Ir==17?(st=3+Le(C,ft,7),ft+=3):Ir==18&&(st=11+Le(C,ft,127),ft+=7);st--;)en[Nt++]=Ye}}var ot=en.subarray(0,Gn),gt=en.subarray(Gn);Zt=_e(ot),or=_e(gt),Ve=J(ot,Zt,1),nr=J(gt,or,1)}else he(1);else{var Ir=be(ft)+4,Zr=C[Ir-4]|C[Ir-3]<<8,mn=Ir+Zr;if(mn>ie){ke&&he(0);break}De&&et(Ct+Zr),_.set(C.subarray(Ir,mn),Ct),h.b=Ct+=Zr,h.p=ft=mn*8,h.f=dt;continue}if(ft>Lt){ke&&he(0);break}}De&&et(Ct+131072);for(var Ft=(1<<Zt)-1,er=(1<<or)-1,je=ft;;je=ft){var Ye=Ve[se(C,ft)&Ft],at=Ye>>4;if(ft+=Ye&15,ft>Lt){ke&&he(0);break}if(Ye||he(2),at<256)_[Ct++]=at;else if(at==256){je=ft,Ve=null;break}else{var Ie=at-254;if(at>264){var Nt=at-257,bt=R[Nt];Ie=Le(C,ft,(1<<bt)-1)+v[Nt],ft+=bt}var Kt=nr[se(C,ft)&er],Jt=Kt>>4;Kt||he(3),ft+=Kt&15;var gt=I[Jt];if(Jt>3){var bt=T[Jt];gt+=se(C,ft)&(1<<bt)-1,ft+=bt}if(ft>Lt){ke&&he(0);break}De&&et(Ct+131072);var rr=Ct+Ie;if(Ct<gt){var dr=X-gt,Lr=Math.min(gt,rr);for(dr+Ct<0&&he(3);Ct<Lr;++Ct)_[Ct]=j[dr+Ct]}for(;Ct<rr;++Ct)_[Ct]=_[Ct-gt]}}h.l=Ve,h.p=je,h.b=Ct,h.f=dt,Ve&&(dt=1,h.m=Zt,h.d=nr,h.n=or)}while(!dt);return Ct!=_.length&&me?O(_,0,Ct):_.subarray(0,Ct)},F=function(C,h,_){_<<=h&7;var j=h/8|0;C[j]|=_,C[j+1]|=_>>8},U=function(C,h,_){_<<=h&7;var j=h/8|0;C[j]|=_,C[j+1]|=_>>8,C[j+2]|=_>>16},ee=function(C,h){for(var _=[],j=0;j<C.length;++j)C[j]&&_.push({s:j,f:C[j]});var ie=_.length,X=_.slice();if(!ie)return{t:zt,l:0};if(ie==1){var me=new Re(_[0].s+1);return me[_[0].s]=1,{t:me,l:1}}_.sort(function(mn,Gn){return mn.f-Gn.f}),_.push({s:-1,f:25001});var De=_[0],ke=_[1],et=0,dt=1,ft=2;for(_[0]={s:-1,f:De.f+ke.f,l:De,r:ke};dt!=ie-1;)De=_[_[et].f<_[ft].f?et++:ft++],ke=_[et!=dt&&_[et].f<_[ft].f?et++:ft++],_[dt++]={s:-1,f:De.f+ke.f,l:De,r:ke};for(var Ct=X[0].s,j=1;j<ie;++j)X[j].s>Ct&&(Ct=X[j].s);var Ve=new K(Ct+1),nr=de(_[dt-1],Ve,0);if(nr>h){var j=0,Zt=0,or=nr-h,Lt=1<<or;for(X.sort(function(Gn,Jr){return Ve[Jr.s]-Ve[Gn.s]||Gn.f-Jr.f});j<ie;++j){var ar=X[j].s;if(Ve[ar]>h)Zt+=Lt-(1<<nr-Ve[ar]),Ve[ar]=h;else break}for(Zt>>=or;Zt>0;){var Ir=X[j].s;Ve[Ir]<h?Zt-=1<<h-Ve[Ir]++-1:++j}for(;j>=0&&Zt;--j){var Zr=X[j].s;Ve[Zr]==h&&(--Ve[Zr],++Zt)}nr=h}return{t:new Re(Ve),l:nr}},de=function(C,h,_){return C.s==-1?Math.max(de(C.l,h,_+1),de(C.r,h,_+1)):h[C.s]=_},Xe=function(C){for(var h=C.length;h&&!C[--h];);for(var _=new K(++h),j=0,ie=C[0],X=1,me=function(ke){_[j++]=ke},De=1;De<=h;++De)if(C[De]==ie&&De!=h)++X;else{if(!ie&&X>2){for(;X>138;X-=138)me(32754);X>2&&(me(X>10?X-11<<5|28690:X-3<<5|12305),X=0)}else if(X>3){for(me(ie),--X;X>6;X-=6)me(8304);X>2&&(me(X-3<<5|8208),X=0)}for(;X--;)me(ie);X=1,ie=C[De]}return{c:_.subarray(0,j),n:h}},tt=function(C,h){for(var _=0,j=0;j<h.length;++j)_+=C[j]*h[j];return _},nt=function(C,h,_){var j=_.length,ie=be(h+2);C[ie]=j&255,C[ie+1]=j>>8,C[ie+2]=C[ie]^255,C[ie+3]=C[ie+1]^255;for(var X=0;X<j;++X)C[ie+X+4]=_[X];return(ie+4+j)*8},_t=function(C,h,_,j,ie,X,me,De,ke,et,dt){F(h,dt++,_),++ie[256];for(var ft=ee(ie,15),Ct=ft.t,Ve=ft.l,nr=ee(X,15),Zt=nr.t,or=nr.l,Lt=Xe(Ct),ar=Lt.c,Ir=Lt.n,Zr=Xe(Zt),mn=Zr.c,Gn=Zr.n,Jr=new K(19),br=0;br<ar.length;++br)++Jr[ar[br]&31];for(var br=0;br<mn.length;++br)++Jr[mn[br]&31];for(var en=ee(Jr,7),In=en.t,Nt=en.l,Wt=19;Wt>4&&!In[l[Wt-1]];--Wt);var Cr=et+5<<3,ge=tt(ie,te)+tt(X,H)+me,Pe=tt(ie,Ct)+tt(X,Zt)+me+14+3*Wt+tt(Jr,In)+2*Jr[16]+3*Jr[17]+7*Jr[18];if(ke>=0&&Cr<=ge&&Cr<=Pe)return nt(h,dt,C.subarray(ke,ke+et));var Ye,st,ot,gt;if(F(h,dt,1+(Pe<ge)),dt+=2,Pe<ge){Ye=J(Ct,Ve,0),st=Ct,ot=J(Zt,or,0),gt=Zt;var Ft=J(In,Nt,0);F(h,dt,Ir-257),F(h,dt+5,Gn-1),F(h,dt+10,Wt-4),dt+=14;for(var br=0;br<Wt;++br)F(h,dt+3*br,In[l[br]]);dt+=3*Wt;for(var er=[ar,mn],je=0;je<2;++je)for(var at=er[je],br=0;br<at.length;++br){var Ie=at[br]&31;F(h,dt,Ft[Ie]),dt+=In[Ie],Ie>15&&(F(h,dt,at[br]>>5&127),dt+=at[br]>>12)}}else Ye=G,st=te,ot=q,gt=H;for(var br=0;br<De;++br){var bt=j[br];if(bt>255){var Ie=bt>>18&31;U(h,dt,Ye[Ie+257]),dt+=st[Ie+257],Ie>7&&(F(h,dt,bt>>23&31),dt+=R[Ie]);var Kt=bt&31;U(h,dt,ot[Kt]),dt+=gt[Kt],Kt>3&&(U(h,dt,bt>>5&8191),dt+=T[Kt])}else U(h,dt,Ye[bt]),dt+=st[bt]}return U(h,dt,Ye[256]),dt+st[256]},Xt=new g([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),zt=new Re(0),Ze=function(C,h,_,j,ie,X){var me=X.z||C.length,De=new Re(j+me+5*(1+Math.ceil(me/7e3))+ie),ke=De.subarray(j,De.length-ie),et=X.l,dt=(X.r||0)&7;if(h){dt&&(ke[0]=X.r>>3);for(var ft=Xt[h-1],Ct=ft>>13,Ve=ft&8191,nr=(1<<_)-1,Zt=X.p||new K(32768),or=X.h||new K(nr+1),Lt=Math.ceil(_/3),ar=2*Lt,Ir=function(Qn){return(C[Qn]^C[Qn+1]<<Lt^C[Qn+2]<<ar)&nr},Zr=new g(25e3),mn=new K(288),Gn=new K(32),Jr=0,br=0,en=X.i||0,In=0,Nt=X.w||0,Wt=0;en+2<me;++en){var Cr=Ir(en),ge=en&32767,Pe=or[Cr];if(Zt[ge]=Pe,or[Cr]=ge,Nt<=en){var Ye=me-en;if((Jr>7e3||In>24576)&&(Ye>423||!et)){dt=_t(C,ke,0,Zr,mn,Gn,br,In,Wt,en-Wt,dt),In=Jr=br=0,Wt=en;for(var st=0;st<286;++st)mn[st]=0;for(var st=0;st<30;++st)Gn[st]=0}var ot=2,gt=0,Ft=Ve,er=ge-Pe&32767;if(Ye>2&&Cr==Ir(en-er))for(var je=Math.min(Ct,Ye)-1,at=Math.min(32767,en),Ie=Math.min(258,Ye);er<=at&&--Ft&&ge!=Pe;){if(C[en+ot]==C[en+ot-er]){for(var bt=0;bt<Ie&&C[en+bt]==C[en+bt-er];++bt);if(bt>ot){if(ot=bt,gt=er,bt>je)break;for(var Kt=Math.min(er,bt-2),Jt=0,st=0;st<Kt;++st){var rr=en-er+st&32767,dr=Zt[rr],Lr=rr-dr&32767;Lr>Jt&&(Jt=Lr,Pe=rr)}}}ge=Pe,Pe=Zt[ge],er+=ge-Pe&32767}if(gt){Zr[In++]=268435456|m[ot]<<18|L[gt];var Or=m[ot]&31,Mr=L[gt]&31;br+=R[Or]+T[Mr],++mn[257+Or],++Gn[Mr],Nt=en+ot,++Jr}else Zr[In++]=C[en],++mn[C[en]]}}for(en=Math.max(en,Nt);en<me;++en)Zr[In++]=C[en],++mn[C[en]];dt=_t(C,ke,et,Zr,mn,Gn,br,In,Wt,en-Wt,dt),et||(X.r=dt&7|ke[dt/8|0]<<3,dt-=7,X.h=or,X.p=Zt,X.i=en,X.w=Nt)}else{for(var en=X.w||0;en<me+et;en+=65535){var Yr=en+65535;Yr>=me&&(ke[dt/8|0]=et,Yr=me),dt=nt(ke,dt+1,C.subarray(en,Yr))}X.i=me}return O(De,0,j+be(dt)+ie)},fr=null,yr=function(){var C=-1;return{p:function(h){for(var _=C,j=0;j<h.length;++j)_=fr[_&255^h[j]]^_>>>8;C=_},d:function(){return~C}}},Ar=function(){var C=1,h=0;return{p:function(_){for(var j=C,ie=h,X=_.length|0,me=0;me!=X;){for(var De=Math.min(me+2655,X);me<De;++me)ie+=j+=_[me];j=(j&65535)+15*(j>>16),ie=(ie&65535)+15*(ie>>16)}C=j,h=ie},d:function(){return C%=65521,h%=65521,(C&255)<<24|(C&65280)<<8|(h&255)<<8|h>>8}}},vr=function(C,h,_,j,ie){if(!ie&&(ie={l:1},h.dictionary)){var X=h.dictionary.subarray(-32768),me=new Re(X.length+C.length);me.set(X),me.set(C,X.length),C=me,ie.w=X.length}return Ze(C,h.level==null?6:h.level,h.mem==null?ie.l?Math.ceil(Math.max(8,Math.min(13,Math.log(C.length)))*1.5):20:12+h.mem,_,j,ie)},Ce=function(C,h){var _={};for(var j in C)_[j]=C[j];for(var j in h)_[j]=h[j];return _},It=function(C,h,_){for(var j=C(),ie=C.toString(),X=ie.slice(ie.indexOf("[")+1,ie.lastIndexOf("]")).replace(/\s+/g,"").split(","),me=0;me<j.length;++me){var De=j[me],ke=X[me];if(typeof De=="function"){h+=";"+ke+"=";var et=De.toString();if(De.prototype)if(et.indexOf("[native code]")!=-1){var dt=et.indexOf(" ",8)+1;h+=et.slice(dt,et.indexOf("(",dt))}else{h+=et;for(var ft in De.prototype)h+=";"+ke+".prototype."+ft+"="+De.prototype[ft].toString()}else h+=et}else _[ke]=De}return h},Z=null,x=function(C){var h=[];for(var _ in C)C[_].buffer&&h.push((C[_]=new C[_].constructor(C[_])).buffer);return h},y=function(C,h,_,j){if(!Z[_]){for(var ie="",X={},me=C.length-1,De=0;De<me;++De)ie=It(C[De],ie,X);Z[_]={c:It(C[me],ie,X),e:X}}var ke=Ce({},Z[_].e);return ae(Z[_].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+h.toString()+"}",_,ke,x(ke),j)},k=function(){return[Re,K,g,R,T,l,v,I,ce,ye,z,ue,J,_e,Le,se,be,O,he,ve,qe,Be,Te]},fe=function(){return[Re,K,g,R,T,l,m,L,G,te,q,H,z,Xt,zt,J,F,U,ee,de,Xe,tt,nt,_t,be,O,Ze,vr,Rr,Be]},W=function(){return[vt,lr,He,yr,fr]},Q=function(){return[jt,Dt]},re=function(){return[gr,He,Ar]},Se=function(){return[ne]},Be=function(C){return postMessage(C,[C.buffer])},Te=function(C){return C&&{out:C.size&&new Re(C.size),dictionary:C.dictionary}},Ge=function(C,h,_,j,ie,X){var me=y(_,j,ie,function(De,ke){me.terminate(),X(De,ke)});return me.postMessage([C,h],h.consume?[C.buffer]:[]),function(){me.terminate()}},ut=function(C){return C.ondata=function(h,_){return postMessage([h,_],[h.buffer])},function(h){h.data.length?(C.push(h.data[0],h.data[1]),postMessage([h.data[0].length])):C.flush()}},$e=function(C,h,_,j,ie,X,me){var De,ke=y(C,j,ie,function(et,dt){et?(ke.terminate(),h.ondata.call(h,et)):Array.isArray(dt)?dt.length==1?(h.queuedSize-=dt[0],h.ondrain&&h.ondrain(dt[0])):(dt[1]&&ke.terminate(),h.ondata.call(h,et,dt[0],dt[1])):me(dt)});ke.postMessage(_),h.queuedSize=0,h.push=function(et,dt){h.ondata||he(5),De&&h.ondata(he(4,0,1),null,!!dt),h.queuedSize+=et.length,ke.postMessage([et,De=dt],[et.buffer])},h.terminate=function(){ke.terminate()},X&&(h.flush=function(){ke.postMessage([])})},Je=function(C,h){return C[h]|C[h+1]<<8},At=function(C,h){return(C[h]|C[h+1]<<8|C[h+2]<<16|C[h+3]<<24)>>>0},ze=function(C,h){return At(C,h)+At(C,h+4)*4294967296},He=function(C,h,_){for(;_;++h)C[h]=_,_>>>=8},vt=function(C,h){var _=h.filename;if(C[0]=31,C[1]=139,C[2]=8,C[8]=h.level<2?4:h.level==9?2:0,C[9]=3,h.mtime!=0&&He(C,4,Math.floor(new Date(h.mtime||Date.now())/1e3)),_){C[3]=8;for(var j=0;j<=_.length;++j)C[j+10]=_.charCodeAt(j)}},jt=function(C){(C[0]!=31||C[1]!=139||C[2]!=8)&&he(6,"invalid gzip data");var h=C[3],_=10;h&4&&(_+=(C[10]|C[11]<<8)+2);for(var j=(h>>3&1)+(h>>4&1);j>0;j-=!C[_++]);return _+(h&2)},Dt=function(C){var h=C.length;return(C[h-4]|C[h-3]<<8|C[h-2]<<16|C[h-1]<<24)>>>0},lr=function(C){return 10+(C.filename?C.filename.length+1:0)},gr=function(C,h){var _=h.level,j=_==0?0:_<6?1:_==9?3:2;if(C[0]=120,C[1]=j<<6|(h.dictionary&&32),C[1]|=31-(C[0]<<8|C[1])%31,h.dictionary){var ie=Ar();ie.p(h.dictionary),He(C,2,ie.d())}},ne=function(C,h){return((C[0]&15)!=8||C[0]>>4>7||(C[0]<<8|C[1])%31)&&he(6,"invalid zlib data"),(C[1]>>5&1)==+!h&&he(6,"invalid zlib data: "+(C[1]&32?"need":"unexpected")+" dictionary"),(C[1]>>3&4)+2};function we(C,h){return typeof C=="function"&&(h=C,C={}),this.ondata=h,C}var Vt=null,Ue=null;function it(C,h,_){return _||(_=h,h={}),typeof _!="function"&&he(7),Ge(C,h,[fe],function(j){return Be(Rr(j.data[0],j.data[1]))},0,_)}function Rr(C,h){return vr(C,h||{},0,0)}var Tt=null,Rt=null;function $t(C,h,_){return _||(_=h,h={}),typeof _!="function"&&he(7),Ge(C,h,[k],function(j){return Be(qe(j.data[0],Te(j.data[1])))},1,_)}function qe(C,h){return ve(C,{i:2},h&&h.out,h&&h.dictionary)}var pt=null,rt=null;function Ht(C,h,_){return _||(_=h,h={}),typeof _!="function"&&he(7),Ge(C,h,[fe,W,function(){return[Oe]}],function(j){return Be(Oe(j.data[0],j.data[1]))},2,_)}function Oe(C,h){h||(h={});var _=yr(),j=C.length;_.p(C);var ie=vr(C,h,lr(h),8),X=ie.length;return vt(ie,h),He(ie,X-8,_.d()),He(ie,X-4,j),ie}var $r=null,Bt=null;function gn(C,h,_){return _||(_=h,h={}),typeof _!="function"&&he(7),Ge(C,h,[k,Q,function(){return[On]}],function(j){return Be(On(j.data[0],j.data[1]))},3,_)}function On(C,h){var _=jt(C);return _+8>C.length&&he(6,"invalid gzip data"),ve(C.subarray(_,-8),{i:2},h&&h.out||new Re(Dt(C)),h&&h.dictionary)}var hi=null,ti=null;function En(C,h,_){return _||(_=h,h={}),typeof _!="function"&&he(7),Ge(C,h,[fe,re,function(){return[Dn]}],function(j){return Be(Dn(j.data[0],j.data[1]))},4,_)}function Dn(C,h){h||(h={});var _=Ar();_.p(C);var j=vr(C,h,h.dictionary?6:2,4);return gr(j,h),He(j,j.length-4,_.d()),j}var Ut=null,Dr=null;function Pr(C,h,_){return _||(_=h,h={}),typeof _!="function"&&he(7),Ge(C,h,[k,Se,function(){return[St]}],function(j){return Be(St(j.data[0],Te(j.data[1])))},5,_)}function St(C,h){return ve(C.subarray(ne(C,h&&h.dictionary),-4),{i:2},h&&h.out,h&&h.dictionary)}var mt=null,mr=null;function xr(C,h,_){return _||(_=h,h={}),typeof _!="function"&&he(7),C[0]==31&&C[1]==139&&C[2]==8?gn(C,h,_):(C[0]&15)!=8||C[0]>>4>7||(C[0]<<8|C[1])%31?$t(C,h,_):Pr(C,h,_)}function on(C,h){return C[0]==31&&C[1]==139&&C[2]==8?On(C,h):(C[0]&15)!=8||C[0]>>4>7||(C[0]<<8|C[1])%31?qe(C,h):St(C,h)}var kr=function(C,h,_,j){for(var ie in C){var X=C[ie],me=h+ie,De=j;Array.isArray(X)&&(De=Ce(j,X[1]),X=X[0]),X instanceof Re?_[me]=[X,De]:(_[me+="/"]=[new Re(0),De],kr(X,me,_,j))}},un=typeof TextEncoder!="undefined"&&new TextEncoder,nn=typeof TextDecoder!="undefined"&&new TextDecoder,_n=0;try{nn.decode(zt,{stream:!0}),_n=1}catch(C){}var Un=function(C){for(var h="",_=0;;){var j=C[_++],ie=(j>127)+(j>223)+(j>239);if(_+ie>C.length)return{s:h,r:O(C,_-1)};ie?ie==3?(j=((j&15)<<18|(C[_++]&63)<<12|(C[_++]&63)<<6|C[_++]&63)-65536,h+=String.fromCharCode(55296|j>>10,56320|j&1023)):ie&1?h+=String.fromCharCode((j&31)<<6|C[_++]&63):h+=String.fromCharCode((j&15)<<12|(C[_++]&63)<<6|C[_++]&63):h+=String.fromCharCode(j)}},vn=null,Hr=null;function Kr(C,h){if(h){for(var _=new Re(C.length),j=0;j<C.length;++j)_[j]=C.charCodeAt(j);return _}if(un)return un.encode(C);for(var ie=C.length,X=new Re(C.length+(C.length>>1)),me=0,De=function(dt){X[me++]=dt},j=0;j<ie;++j){if(me+5>X.length){var ke=new Re(me+8+(ie-j<<1));ke.set(X),X=ke}var et=C.charCodeAt(j);et<128||h?De(et):et<2048?(De(192|et>>6),De(128|et&63)):et>55295&&et<57344?(et=65536+(et&1047552)|C.charCodeAt(++j)&1023,De(240|et>>18),De(128|et>>12&63),De(128|et>>6&63),De(128|et&63)):(De(224|et>>12),De(128|et>>6&63),De(128|et&63))}return O(X,0,me)}function qr(C,h){if(h){for(var _="",j=0;j<C.length;j+=16384)_+=String.fromCharCode.apply(null,C.subarray(j,j+16384));return _}else{if(nn)return nn.decode(C);var ie=Un(C),X=ie.s,_=ie.r;return _.length&&he(8),X}}var bn=function(C){return C==1?3:C<6?2:C==9?1:0},ln=function(C,h){return h+30+Je(C,h+26)+Je(C,h+28)},ui=function(C,h,_){var j=Je(C,h+28),ie=qr(C.subarray(h+46,h+46+j),!(Je(C,h+8)&2048)),X=h+46+j,me=At(C,h+20),De=_&&me==4294967295?jn(C,X):[me,At(C,h+24),At(C,h+42)],ke=De[0],et=De[1],dt=De[2];return[Je(C,h+10),ke,et,ie,X+Je(C,h+30)+Je(C,h+32),dt]},jn=function(C,h){for(;Je(C,h)!=1;h+=4+Je(C,h+2));return[ze(C,h+12),ze(C,h+4),ze(C,h+20)]},cn=function(C){var h=0;if(C)for(var _ in C){var j=C[_].length;j>65535&&he(9),h+=j+4}return h},sr=function(C,h,_,j,ie,X,me,De){var ke=j.length,et=_.extra,dt=De&&De.length,ft=cn(et);He(C,h,me!=null?33639248:67324752),h+=4,me!=null&&(C[h++]=20,C[h++]=_.os),C[h]=20,h+=2,C[h++]=_.flag<<1|(X<0&&8),C[h++]=ie&&8,C[h++]=_.compression&255,C[h++]=_.compression>>8;var Ct=new Date(_.mtime==null?Date.now():_.mtime),Ve=Ct.getFullYear()-1980;if((Ve<0||Ve>119)&&he(10),He(C,h,Ve<<25|Ct.getMonth()+1<<21|Ct.getDate()<<16|Ct.getHours()<<11|Ct.getMinutes()<<5|Ct.getSeconds()>>1),h+=4,X!=-1&&(He(C,h,_.crc),He(C,h+4,X<0?-X-2:X),He(C,h+8,_.size)),He(C,h+12,ke),He(C,h+14,ft),h+=16,me!=null&&(He(C,h,dt),He(C,h+6,_.attrs),He(C,h+10,me),h+=14),C.set(j,h),h+=ke,ft)for(var nr in et){var Zt=et[nr],or=Zt.length;He(C,h,+nr),He(C,h+2,or),C.set(Zt,h+4),h+=4+or}return dt&&(C.set(De,h),h+=dt),h},cr=function(C,h,_,j,ie){He(C,h,101010256),He(C,h+8,_),He(C,h+10,_),He(C,h+12,j),He(C,h+16,ie)},pr=null,Fr=null,Br=null,fn=null;function Nr(C,h,_){_||(_=h,h={}),typeof _!="function"&&he(7);var j={};kr(C,"",j,h);var ie=Object.keys(j),X=ie.length,me=0,De=0,ke=X,et=new Array(X),dt=[],ft=function(){for(var or=0;or<dt.length;++or)dt[or]()},Ct=function(or,Lt){mi(function(){_(or,Lt)})};mi(function(){Ct=_});var Ve=function(){var or=new Re(De+22),Lt=me,ar=De-me;De=0;for(var Ir=0;Ir<ke;++Ir){var Zr=et[Ir];try{var mn=Zr.c.length;sr(or,De,Zr,Zr.f,Zr.u,mn);var Gn=30+Zr.f.length+cn(Zr.extra),Jr=De+Gn;or.set(Zr.c,Jr),sr(or,me,Zr,Zr.f,Zr.u,mn,De,Zr.m),me+=16+Gn+(Zr.m?Zr.m.length:0),De=Jr+mn}catch(br){return Ct(br,null)}}cr(or,me,et.length,ar,Lt),Ct(null,or)};X||Ve();for(var nr=function(or){var Lt=ie[or],ar=j[Lt],Ir=ar[0],Zr=ar[1],mn=yr(),Gn=Ir.length;mn.p(Ir);var Jr=Kr(Lt),br=Jr.length,en=Zr.comment,In=en&&Kr(en),Nt=In&&In.length,Wt=cn(Zr.extra),Cr=Zr.level==0?0:8,ge=function(Pe,Ye){if(Pe)ft(),Ct(Pe,null);else{var st=Ye.length;et[or]=Ce(Zr,{size:Gn,crc:mn.d(),c:Ye,f:Jr,m:In,u:br!=Lt.length||In&&en.length!=Nt,compression:Cr}),me+=30+br+Wt+st,De+=76+2*(br+Wt)+(Nt||0)+st,--X||Ve()}};if(br>65535&&ge(he(11,0,1),null),!Cr)ge(null,Ir);else if(Gn<16e4)try{ge(null,Rr(Ir,Zr))}catch(Pe){ge(Pe,null)}else dt.push(it(Ir,Zr,ge))},Zt=0;Zt<ke;++Zt)nr(Zt);return ft}function Cn(C,h){h||(h={});var _={},j=[];kr(C,"",_,h);var ie=0,X=0;for(var me in _){var De=_[me],ke=De[0],et=De[1],dt=et.level==0?0:8,ft=Kr(me),Ct=ft.length,Ve=et.comment,nr=Ve&&Kr(Ve),Zt=nr&&nr.length,or=cn(et.extra);Ct>65535&&he(11);var Lt=dt?Rr(ke,et):ke,ar=Lt.length,Ir=yr();Ir.p(ke),j.push(Ce(et,{size:ke.length,crc:Ir.d(),c:Lt,f:ft,m:nr,u:Ct!=me.length||nr&&Ve.length!=Zt,o:ie,compression:dt})),ie+=30+Ct+or+ar,X+=76+2*(Ct+or)+(Zt||0)+ar}for(var Zr=new Re(X+22),mn=ie,Gn=X-ie,Jr=0;Jr<j.length;++Jr){var ft=j[Jr];sr(Zr,ft.o,ft,ft.f,ft.u,ft.c.length);var br=30+ft.f.length+cn(ft.extra);Zr.set(ft.c,ft.o+br),sr(Zr,ie,ft,ft.f,ft.u,ft.c.length,ft.o,ft.m),ie+=16+br+(ft.m?ft.m.length:0)}return cr(Zr,ie,j.length,Gn,mn),Zr}var Rn=null,Kn=null,Ai=null,ni=null,mi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(C){C()};function hr(C,h,_){_||(_=h,h={}),typeof _!="function"&&he(7);var j=[],ie=function(){for(var or=0;or<j.length;++or)j[or]()},X={},me=function(or,Lt){mi(function(){_(or,Lt)})};mi(function(){me=_});for(var De=C.length-22;At(C,De)!=101010256;--De)if(!De||C.length-De>65558)return me(he(13,0,1),null),ie;var ke=Je(C,De+8);if(ke){var et=ke,dt=At(C,De+16),ft=dt==4294967295||et==65535;if(ft){var Ct=At(C,De-12);ft=At(C,Ct)==101075792,ft&&(et=ke=At(C,Ct+32),dt=At(C,Ct+48))}for(var Ve=h&&h.filter,nr=function(or){var Lt=ui(C,dt,ft),ar=Lt[0],Ir=Lt[1],Zr=Lt[2],mn=Lt[3],Gn=Lt[4],Jr=Lt[5],br=ln(C,Jr);dt=Gn;var en=function(Nt,Wt){Nt?(ie(),me(Nt,null)):(Wt&&(X[mn]=Wt),--ke||me(null,X))};if(!Ve||Ve({name:mn,size:Ir,originalSize:Zr,compression:ar}))if(!ar)en(null,O(C,br,br+Ir));else if(ar==8){var In=C.subarray(br,br+Ir);if(Zr<524288||Ir>.8*Zr)try{en(null,qe(In,{out:new Re(Zr)}))}catch(Nt){en(Nt,null)}else j.push($t(In,{size:Zr},en))}else en(he(14,"unknown compression type "+ar,1),null);else en(null,null)},Zt=0;Zt<et;++Zt)nr(Zt)}else me(null,{});return ie}function an(C,h){for(var _={},j=C.length-22;At(C,j)!=101010256;--j)(!j||C.length-j>65558)&&he(13);var ie=Je(C,j+8);if(!ie)return{};var X=At(C,j+16),me=X==4294967295||ie==65535;if(me){var De=At(C,j-12);me=At(C,De)==101075792,me&&(ie=At(C,De+32),X=At(C,De+48))}for(var ke=h&&h.filter,et=0;et<ie;++et){var dt=ui(C,X,me),ft=dt[0],Ct=dt[1],Ve=dt[2],nr=dt[3],Zt=dt[4],or=dt[5],Lt=ln(C,or);X=Zt,(!ke||ke({name:nr,size:Ct,originalSize:Ve,compression:ft}))&&(ft?ft==8?_[nr]=qe(C.subarray(Lt,Lt+Ct),{out:new Re(Ve)}):he(14,"unknown compression type "+ft):_[nr]=O(C,Lt,Lt+Ct))}return _}var Xr=function(){return typeof window!="undefined"?window:typeof E.g!="undefined"?E.g:typeof self!="undefined"?self:this}();function ri(){Xr.console&&typeof Xr.console.log=="function"&&Xr.console.log.apply(Xr.console,arguments)}var zn={log:ri,warn:function(C){Xr.console&&(typeof Xr.console.warn=="function"?Xr.console.warn.apply(Xr.console,arguments):ri.call(null,arguments))},error:function(C){Xr.console&&(typeof Xr.console.error=="function"?Xr.console.error.apply(Xr.console,arguments):ri(C))}};function Hn(C,h,_){var j=new XMLHttpRequest;j.open("GET",C),j.responseType="blob",j.onload=function(){ji(j.response,h,_)},j.onerror=function(){zn.error("could not download file")},j.send()}function Xn(C){var h=new XMLHttpRequest;h.open("HEAD",C,!1);try{h.send()}catch(_){}return h.status>=200&&h.status<=299}function di(C){try{C.dispatchEvent(new MouseEvent("click"))}catch(_){var h=document.createEvent("MouseEvents");h.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),C.dispatchEvent(h)}}var si,_i,ji=Xr.saveAs||((typeof window=="undefined"?"undefined":(0,le.Z)(window))!=="object"||window!==Xr?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(C,h,_){var j=Xr.URL||Xr.webkitURL,ie=document.createElement("a");h=h||C.name||"download",ie.download=h,ie.rel="noopener",typeof C=="string"?(ie.href=C,ie.origin!==location.origin?Xn(ie.href)?Hn(C,h,_):di(ie,ie.target="_blank"):di(ie)):(ie.href=j.createObjectURL(C),setTimeout(function(){j.revokeObjectURL(ie.href)},4e4),setTimeout(function(){di(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(C,h,_){if(h=h||C.name||"download",typeof C=="string")if(Xn(C))Hn(C,h,_);else{var j=document.createElement("a");j.href=C,j.target="_blank",setTimeout(function(){di(j)})}else navigator.msSaveOrOpenBlob(function(ie,X){return X===void 0?X={autoBom:!1}:(0,le.Z)(X)!=="object"&&(zn.warn("Deprecated: Expected third argument to be a object"),X={autoBom:!X}),X.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ie.type)?new Blob(["\uFEFF",ie],{type:ie.type}):ie}(C,_),h)}:function(C,h,_,j){if((j=j||open("","_blank"))&&(j.document.title=j.document.body.innerText="downloading..."),typeof C=="string")return Hn(C,h,_);var ie=C.type==="application/octet-stream",X=/constructor/i.test(Xr.HTMLElement)||Xr.safari,me=/CriOS\/[\d]+/.test(navigator.userAgent);if((me||ie&&X)&&(typeof FileReader=="undefined"?"undefined":(0,le.Z)(FileReader))==="object"){var De=new FileReader;De.onloadend=function(){var dt=De.result;dt=me?dt:dt.replace(/^data:[^;]*;/,"data:attachment/file;"),j?j.location.href=dt:location=dt,j=null},De.readAsDataURL(C)}else{var ke=Xr.URL||Xr.webkitURL,et=ke.createObjectURL(C);j?j.location=et:location.href=et,j=null,setTimeout(function(){ke.revokeObjectURL(et)},4e4)}});function ii(C){var h;C=C||"",this.ok=!1,C.charAt(0)=="#"&&(C=C.substr(1,6)),C={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[C=(C=C.replace(/ /g,"")).toLowerCase()]||C;for(var _=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(De){return[parseInt(De[1]),parseInt(De[2]),parseInt(De[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(De){return[parseInt(De[1],16),parseInt(De[2],16),parseInt(De[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(De){return[parseInt(De[1]+De[1],16),parseInt(De[2]+De[2],16),parseInt(De[3]+De[3],16)]}}],j=0;j<_.length;j++){var ie=_[j].re,X=_[j].process,me=ie.exec(C);me&&(h=X(me),this.r=h[0],this.g=h[1],this.b=h[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var De=this.r.toString(16),ke=this.g.toString(16),et=this.b.toString(16);return De.length==1&&(De="0"+De),ke.length==1&&(ke="0"+ke),et.length==1&&(et="0"+et),"#"+De+ke+et}}function yn(C,h){var _=C[0],j=C[1],ie=C[2],X=C[3];_=hn(_,j,ie,X,h[0],7,-680876936),X=hn(X,_,j,ie,h[1],12,-389564586),ie=hn(ie,X,_,j,h[2],17,606105819),j=hn(j,ie,X,_,h[3],22,-1044525330),_=hn(_,j,ie,X,h[4],7,-176418897),X=hn(X,_,j,ie,h[5],12,1200080426),ie=hn(ie,X,_,j,h[6],17,-1473231341),j=hn(j,ie,X,_,h[7],22,-45705983),_=hn(_,j,ie,X,h[8],7,1770035416),X=hn(X,_,j,ie,h[9],12,-1958414417),ie=hn(ie,X,_,j,h[10],17,-42063),j=hn(j,ie,X,_,h[11],22,-1990404162),_=hn(_,j,ie,X,h[12],7,1804603682),X=hn(X,_,j,ie,h[13],12,-40341101),ie=hn(ie,X,_,j,h[14],17,-1502002290),_=Fn(_,j=hn(j,ie,X,_,h[15],22,1236535329),ie,X,h[1],5,-165796510),X=Fn(X,_,j,ie,h[6],9,-1069501632),ie=Fn(ie,X,_,j,h[11],14,643717713),j=Fn(j,ie,X,_,h[0],20,-373897302),_=Fn(_,j,ie,X,h[5],5,-701558691),X=Fn(X,_,j,ie,h[10],9,38016083),ie=Fn(ie,X,_,j,h[15],14,-660478335),j=Fn(j,ie,X,_,h[4],20,-405537848),_=Fn(_,j,ie,X,h[9],5,568446438),X=Fn(X,_,j,ie,h[14],9,-1019803690),ie=Fn(ie,X,_,j,h[3],14,-187363961),j=Fn(j,ie,X,_,h[8],20,1163531501),_=Fn(_,j,ie,X,h[13],5,-1444681467),X=Fn(X,_,j,ie,h[2],9,-51403784),ie=Fn(ie,X,_,j,h[7],14,1735328473),_=$n(_,j=Fn(j,ie,X,_,h[12],20,-1926607734),ie,X,h[5],4,-378558),X=$n(X,_,j,ie,h[8],11,-2022574463),ie=$n(ie,X,_,j,h[11],16,1839030562),j=$n(j,ie,X,_,h[14],23,-35309556),_=$n(_,j,ie,X,h[1],4,-1530992060),X=$n(X,_,j,ie,h[4],11,1272893353),ie=$n(ie,X,_,j,h[7],16,-155497632),j=$n(j,ie,X,_,h[10],23,-1094730640),_=$n(_,j,ie,X,h[13],4,681279174),X=$n(X,_,j,ie,h[0],11,-358537222),ie=$n(ie,X,_,j,h[3],16,-722521979),j=$n(j,ie,X,_,h[6],23,76029189),_=$n(_,j,ie,X,h[9],4,-640364487),X=$n(X,_,j,ie,h[12],11,-421815835),ie=$n(ie,X,_,j,h[15],16,530742520),_=bi(_,j=$n(j,ie,X,_,h[2],23,-995338651),ie,X,h[0],6,-198630844),X=bi(X,_,j,ie,h[7],10,1126891415),ie=bi(ie,X,_,j,h[14],15,-1416354905),j=bi(j,ie,X,_,h[5],21,-57434055),_=bi(_,j,ie,X,h[12],6,1700485571),X=bi(X,_,j,ie,h[3],10,-1894986606),ie=bi(ie,X,_,j,h[10],15,-1051523),j=bi(j,ie,X,_,h[1],21,-2054922799),_=bi(_,j,ie,X,h[8],6,1873313359),X=bi(X,_,j,ie,h[15],10,-30611744),ie=bi(ie,X,_,j,h[6],15,-1560198380),j=bi(j,ie,X,_,h[13],21,1309151649),_=bi(_,j,ie,X,h[4],6,-145523070),X=bi(X,_,j,ie,h[11],10,-1120210379),ie=bi(ie,X,_,j,h[2],15,718787259),j=bi(j,ie,X,_,h[9],21,-343485551),C[0]=Mi(_,C[0]),C[1]=Mi(j,C[1]),C[2]=Mi(ie,C[2]),C[3]=Mi(X,C[3])}function Yt(C,h,_,j,ie,X){return h=Mi(Mi(h,C),Mi(j,X)),Mi(h<<ie|h>>>32-ie,_)}function hn(C,h,_,j,ie,X,me){return Yt(h&_|~h&j,C,h,ie,X,me)}function Fn(C,h,_,j,ie,X,me){return Yt(h&j|_&~j,C,h,ie,X,me)}function $n(C,h,_,j,ie,X,me){return Yt(h^_^j,C,h,ie,X,me)}function bi(C,h,_,j,ie,X,me){return Yt(_^(h|~j),C,h,ie,X,me)}function Hi(C){var h,_=C.length,j=[1732584193,-271733879,-1732584194,271733878];for(h=64;h<=C.length;h+=64)yn(j,rs(C.substring(h-64,h)));C=C.substring(h-64);var ie=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(h=0;h<C.length;h++)ie[h>>2]|=C.charCodeAt(h)<<(h%4<<3);if(ie[h>>2]|=128<<(h%4<<3),h>55)for(yn(j,ie),h=0;h<16;h++)ie[h]=0;return ie[14]=8*_,yn(j,ie),j}function rs(C){var h,_=[];for(h=0;h<64;h+=4)_[h>>2]=C.charCodeAt(h)+(C.charCodeAt(h+1)<<8)+(C.charCodeAt(h+2)<<16)+(C.charCodeAt(h+3)<<24);return _}si=Xr.atob.bind(Xr),_i=Xr.btoa.bind(Xr);var Ci="0123456789abcdef".split("");function is(C){for(var h="",_=0;_<4;_++)h+=Ci[C>>8*_+4&15]+Ci[C>>8*_&15];return h}function ai(C){return String.fromCharCode((255&C)>>0,(65280&C)>>8,(16711680&C)>>16,(4278190080&C)>>24)}function Zn(C){return Hi(C).map(ai).join("")}var Li=function(C){for(var h=0;h<C.length;h++)C[h]=is(C[h]);return C.join("")}(Hi("hello"))!="5d41402abc4b2a76b9719d911017c592";function Mi(C,h){if(Li){var _=(65535&C)+(65535&h);return(C>>16)+(h>>16)+(_>>16)<<16|65535&_}return C+h&4294967295}function ls(C,h){var _,j,ie,X;if(C!==_){for(var me=(ie=C,X=1+(256/C.length>>0),new Array(X+1).join(ie)),De=[],ke=0;ke<256;ke++)De[ke]=ke;var et=0;for(ke=0;ke<256;ke++){var dt=De[ke];et=(et+dt+me.charCodeAt(ke))%256,De[ke]=De[et],De[et]=dt}_=C,j=De}else De=j;var ft=h.length,Ct=0,Ve=0,nr="";for(ke=0;ke<ft;ke++)Ve=(Ve+(dt=De[Ct=(Ct+1)%256]))%256,De[Ct]=De[Ve],De[Ve]=dt,me=De[(De[Ct]+De[Ve])%256],nr+=String.fromCharCode(h.charCodeAt(ke)^me);return nr}var js={print:4,modify:8,copy:16,"annot-forms":32};function Vn(C,h,_,j){this.v=1,this.r=2;var ie=192;C.forEach(function(De){if(js.perm!==void 0)throw new Error("Invalid permission: "+De);ie+=js[De]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var X=(h+this.padding).substr(0,32),me=(_+this.padding).substr(0,32);this.O=this.processOwnerPassword(X,me),this.P=-(1+(255^ie)),this.encryptionKey=Zn(X+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(j)).substr(0,5),this.U=ls(this.encryptionKey,this.padding)}function us(C){if(/[^\u0000-\u00ff]/.test(C))throw new Error("Invalid PDF Name Object: "+C+", Only accept ASCII characters.");for(var h="",_=C.length,j=0;j<_;j++){var ie=C.charCodeAt(j);ie<33||ie===35||ie===37||ie===40||ie===41||ie===47||ie===60||ie===62||ie===91||ie===93||ie===123||ie===125||ie>126?h+="#"+("0"+ie.toString(16)).slice(-2):h+=C[j]}return h}function Wi(C){if((0,le.Z)(C)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var h={};this.subscribe=function(_,j,ie){if(ie=ie||!1,typeof _!="string"||typeof j!="function"||typeof ie!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");h.hasOwnProperty(_)||(h[_]={});var X=Math.random().toString(35);return h[_][X]=[j,!!ie],X},this.unsubscribe=function(_){for(var j in h)if(h[j][_])return delete h[j][_],Object.keys(h[j]).length===0&&delete h[j],!0;return!1},this.publish=function(_){if(h.hasOwnProperty(_)){var j=Array.prototype.slice.call(arguments,1),ie=[];for(var X in h[_]){var me=h[_][X];try{me[0].apply(C,j)}catch(De){Xr.console&&zn.error("jsPDF PubSub Error",De.message,De)}me[1]&&ie.push(X)}ie.length&&ie.forEach(this.unsubscribe)}},this.getTopics=function(){return h}}function ps(C){if(!(this instanceof ps))return new ps(C);var h="opacity,stroke-opacity".split(",");for(var _ in C)C.hasOwnProperty(_)&&h.indexOf(_)>=0&&(this[_]=C[_]);this.id="",this.objectNumber=-1}function Vs(C,h){this.gState=C,this.matrix=h,this.id="",this.objectNumber=-1}function vs(C,h,_,j,ie){if(!(this instanceof vs))return new vs(C,h,_,j,ie);this.type=C==="axial"?2:3,this.coords=h,this.colors=_,Vs.call(this,j,ie)}function ss(C,h,_,j,ie){if(!(this instanceof ss))return new ss(C,h,_,j,ie);this.boundingBox=C,this.xStep=h,this.yStep=_,this.stream="",this.cloneIndex=0,Vs.call(this,j,ie)}function gi(C){var h,_=typeof arguments[0]=="string"?arguments[0]:"p",j=arguments[1],ie=arguments[2],X=arguments[3],me=[],De=1,ke=16,et="S",dt=null;(0,le.Z)(C=C||{})==="object"&&(_=C.orientation,j=C.unit||j,ie=C.format||ie,X=C.compress||C.compressPdf||X,(dt=C.encryption||null)!==null&&(dt.userPassword=dt.userPassword||"",dt.ownerPassword=dt.ownerPassword||"",dt.userPermissions=dt.userPermissions||[]),De=typeof C.userUnit=="number"?Math.abs(C.userUnit):1,C.precision!==void 0&&(h=C.precision),C.floatPrecision!==void 0&&(ke=C.floatPrecision),et=C.defaultPathOperation||"S"),me=C.filters||(X===!0?["FlateEncode"]:me),j=j||"mm",_=(""+(_||"P")).toLowerCase();var ft=C.putOnlyUsedFonts||!1,Ct={},Ve={internal:{},__private__:{}};Ve.__private__.PubSub=Wi;var nr="1.3",Zt=Ve.__private__.getPdfVersion=function(){return nr};Ve.__private__.setPdfVersion=function(Ae){nr=Ae};var or={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};Ve.__private__.getPageFormats=function(){return or};var Lt=Ve.__private__.getPageFormat=function(Ae){return or[Ae]};ie=ie||"a4";var ar={COMPAT:"compat",ADVANCED:"advanced"},Ir=ar.COMPAT;function Zr(){this.saveGraphicsState(),Qt(new fi(pe,0,0,-pe,0,gl()*pe).toString()+" cm"),this.setFontSize(this.getFontSize()/pe),et="n",Ir=ar.ADVANCED}function mn(){this.restoreGraphicsState(),et="S",Ir=ar.COMPAT}var Gn=Ve.__private__.combineFontStyleAndFontWeight=function(Ae,ht){if(Ae=="bold"&&ht=="normal"||Ae=="bold"&&ht==400||Ae=="normal"&&ht=="italic"||Ae=="bold"&&ht=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return ht&&(Ae=ht==400||ht==="normal"?Ae==="italic"?"italic":"normal":ht!=700&&ht!=="bold"||Ae!=="normal"?(ht==700?"bold":ht)+""+Ae:"bold"),Ae};Ve.advancedAPI=function(Ae){var ht=Ir===ar.COMPAT;return ht&&Zr.call(this),typeof Ae!="function"||(Ae(this),ht&&mn.call(this)),this},Ve.compatAPI=function(Ae){var ht=Ir===ar.ADVANCED;return ht&&mn.call(this),typeof Ae!="function"||(Ae(this),ht&&Zr.call(this)),this},Ve.isAdvancedAPI=function(){return Ir===ar.ADVANCED};var Jr,br=function(Ae){if(Ir!==ar.ADVANCED)throw new Error(Ae+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},en=Ve.roundToPrecision=Ve.__private__.roundToPrecision=function(Ae,ht){var ur=h||ht;if(isNaN(Ae)||isNaN(ur))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ae.toFixed(ur).replace(/0+$/,"")};Jr=Ve.hpf=Ve.__private__.hpf=typeof ke=="number"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return en(Ae,ke)}:ke==="smart"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return en(Ae,Ae>-1&&Ae<1?16:5)}:function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return en(Ae,16)};var In=Ve.f2=Ve.__private__.f2=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f2");return en(Ae,2)},Nt=Ve.__private__.f3=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f3");return en(Ae,3)},Wt=Ve.scale=Ve.__private__.scale=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.scale");return Ir===ar.COMPAT?Ae*pe:Ir===ar.ADVANCED?Ae:void 0},Cr=function(Ae){return Ir===ar.COMPAT?gl()-Ae:Ir===ar.ADVANCED?Ae:void 0},ge=function(Ae){return Wt(Cr(Ae))};Ve.__private__.setPrecision=Ve.setPrecision=function(Ae){typeof parseInt(Ae,10)=="number"&&(h=parseInt(Ae,10))};var Pe,Ye="00000000000000000000000000000000",st=Ve.__private__.getFileId=function(){return Ye},ot=Ve.__private__.setFileId=function(Ae){return Ye=Ae!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ae)?Ae.toUpperCase():Ye.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),dt!==null&&(oo=new Vn(dt.userPermissions,dt.userPassword,dt.ownerPassword,Ye)),Ye};Ve.setFileId=function(Ae){return ot(Ae),this},Ve.getFileId=function(){return st()};var gt=Ve.__private__.convertDateToPDFDate=function(Ae){var ht=Ae.getTimezoneOffset(),ur=ht<0?"+":"-",Er=Math.floor(Math.abs(ht/60)),Gr=Math.abs(ht%60),Bn=[ur,Ie(Er),"'",Ie(Gr),"'"].join("");return["D:",Ae.getFullYear(),Ie(Ae.getMonth()+1),Ie(Ae.getDate()),Ie(Ae.getHours()),Ie(Ae.getMinutes()),Ie(Ae.getSeconds()),Bn].join("")},Ft=Ve.__private__.convertPDFDateToDate=function(Ae){var ht=parseInt(Ae.substr(2,4),10),ur=parseInt(Ae.substr(6,2),10)-1,Er=parseInt(Ae.substr(8,2),10),Gr=parseInt(Ae.substr(10,2),10),Bn=parseInt(Ae.substr(12,2),10),Jn=parseInt(Ae.substr(14,2),10);return new Date(ht,ur,Er,Gr,Bn,Jn,0)},er=Ve.__private__.setCreationDate=function(Ae){var ht;if(Ae===void 0&&(Ae=new Date),Ae instanceof Date)ht=gt(Ae);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(Ae))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ht=Ae}return Pe=ht},je=Ve.__private__.getCreationDate=function(Ae){var ht=Pe;return Ae==="jsDate"&&(ht=Ft(Pe)),ht};Ve.setCreationDate=function(Ae){return er(Ae),this},Ve.getCreationDate=function(Ae){return je(Ae)};var at,Ie=Ve.__private__.padd2=function(Ae){return("0"+parseInt(Ae)).slice(-2)},bt=Ve.__private__.padd2Hex=function(Ae){return("00"+(Ae=Ae.toString())).substr(Ae.length)},Kt=0,Jt=[],rr=[],dr=0,Lr=[],Or=[],Mr=!1,Yr=rr,Qn=function(){Kt=0,dr=0,rr=[],Jt=[],Lr=[],Gi=qi(),hs=qi()};Ve.__private__.setCustomOutputDestination=function(Ae){Mr=!0,Yr=Ae};var Tr=function(Ae){Mr||(Yr=Ae)};Ve.__private__.resetCustomOutputDestination=function(){Mr=!1,Yr=rr};var Qt=Ve.__private__.out=function(Ae){return Ae=Ae.toString(),dr+=Ae.length+1,Yr.push(Ae),Yr},ei=Ve.__private__.write=function(Ae){return Qt(arguments.length===1?Ae.toString():Array.prototype.join.call(arguments," "))},Yn=Ve.__private__.getArrayBuffer=function(Ae){for(var ht=Ae.length,ur=new ArrayBuffer(ht),Er=new Uint8Array(ur);ht--;)Er[ht]=Ae.charCodeAt(ht);return ur},Qr=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];Ve.__private__.getStandardFonts=function(){return Qr};var sn=C.fontSize||16;Ve.__private__.setFontSize=Ve.setFontSize=function(Ae){return sn=Ir===ar.ADVANCED?Ae/pe:Ae,this};var rn,Vr=Ve.__private__.getFontSize=Ve.getFontSize=function(){return Ir===ar.COMPAT?sn:sn*pe},Sn=C.R2L||!1;Ve.__private__.setR2L=Ve.setR2L=function(Ae){return Sn=Ae,this},Ve.__private__.getR2L=Ve.getR2L=function(){return Sn};var qn,pi=Ve.__private__.setZoomMode=function(Ae){var ht=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ae))rn=Ae;else if(isNaN(Ae)){if(ht.indexOf(Ae)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ae+'" is not recognized.');rn=Ae}else rn=parseInt(Ae,10)};Ve.__private__.getZoomMode=function(){return rn};var Qe,p=Ve.__private__.setPageMode=function(Ae){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ae)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ae+'" is not recognized.');qn=Ae};Ve.__private__.getPageMode=function(){return qn};var S=Ve.__private__.setLayoutMode=function(Ae){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ae)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ae+'" is not recognized.');Qe=Ae};Ve.__private__.getLayoutMode=function(){return Qe},Ve.__private__.setDisplayMode=Ve.setDisplayMode=function(Ae,ht,ur){return pi(Ae),S(ht),p(ur),this};var D={title:"",subject:"",author:"",keywords:"",creator:""};Ve.__private__.getDocumentProperty=function(Ae){if(Object.keys(D).indexOf(Ae)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return D[Ae]},Ve.__private__.getDocumentProperties=function(){return D},Ve.__private__.setDocumentProperties=Ve.setProperties=Ve.setDocumentProperties=function(Ae){for(var ht in D)D.hasOwnProperty(ht)&&Ae[ht]&&(D[ht]=Ae[ht]);return this},Ve.__private__.setDocumentProperty=function(Ae,ht){if(Object.keys(D).indexOf(Ae)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return D[Ae]=ht};var V,pe,Ke,lt,yt,Ot={},ir={},wr=[],Sr={},Tn={},_r={},kt={},wn=null,xn=0,kn=[],pn=new Wi(Ve),yi=C.hotfixes||[],xi={},Fi={},os=[],fi=function Ae(ht,ur,Er,Gr,Bn,Jn){if(!(this instanceof Ae))return new Ae(ht,ur,Er,Gr,Bn,Jn);isNaN(ht)&&(ht=1),isNaN(ur)&&(ur=0),isNaN(Er)&&(Er=0),isNaN(Gr)&&(Gr=1),isNaN(Bn)&&(Bn=0),isNaN(Jn)&&(Jn=0),this._matrix=[ht,ur,Er,Gr,Bn,Jn]};Object.defineProperty(fi.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(fi.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(fi.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(fi.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(fi.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(fi.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(fi.prototype,"a",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(fi.prototype,"b",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(fi.prototype,"c",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(fi.prototype,"d",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(fi.prototype,"e",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(fi.prototype,"f",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(fi.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(fi.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(fi.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(fi.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),fi.prototype.join=function(Ae){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Jr).join(Ae)},fi.prototype.multiply=function(Ae){var ht=Ae.sx*this.sx+Ae.shy*this.shx,ur=Ae.sx*this.shy+Ae.shy*this.sy,Er=Ae.shx*this.sx+Ae.sy*this.shx,Gr=Ae.shx*this.shy+Ae.sy*this.sy,Bn=Ae.tx*this.sx+Ae.ty*this.shx+this.tx,Jn=Ae.tx*this.shy+Ae.ty*this.sy+this.ty;return new fi(ht,ur,Er,Gr,Bn,Jn)},fi.prototype.decompose=function(){var Ae=this.sx,ht=this.shy,ur=this.shx,Er=this.sy,Gr=this.tx,Bn=this.ty,Jn=Math.sqrt(Ae*Ae+ht*ht),Pi=(Ae/=Jn)*ur+(ht/=Jn)*Er;ur-=Ae*Pi,Er-=ht*Pi;var ts=Math.sqrt(ur*ur+Er*Er);return Pi/=ts,Ae*(Er/=ts)<ht*(ur/=ts)&&(Ae=-Ae,ht=-ht,Pi=-Pi,Jn=-Jn),{scale:new fi(Jn,0,0,ts,0,0),translate:new fi(1,0,0,1,Gr,Bn),rotate:new fi(Ae,ht,-ht,Ae,0,0),skew:new fi(1,0,Pi,1,0,0)}},fi.prototype.toString=function(Ae){return this.join(" ")},fi.prototype.inversed=function(){var Ae=this.sx,ht=this.shy,ur=this.shx,Er=this.sy,Gr=this.tx,Bn=this.ty,Jn=1/(Ae*Er-ht*ur),Pi=Er*Jn,ts=-ht*Jn,Ss=-ur*Jn,xs=Ae*Jn;return new fi(Pi,ts,Ss,xs,-Pi*Gr-Ss*Bn,-ts*Gr-xs*Bn)},fi.prototype.applyToPoint=function(Ae){var ht=Ae.x*this.sx+Ae.y*this.shx+this.tx,ur=Ae.x*this.shy+Ae.y*this.sy+this.ty;return new Jl(ht,ur)},fi.prototype.applyToRectangle=function(Ae){var ht=this.applyToPoint(Ae),ur=this.applyToPoint(new Jl(Ae.x+Ae.w,Ae.y+Ae.h));return new Ac(ht.x,ht.y,ur.x-ht.x,ur.y-ht.y)},fi.prototype.clone=function(){var Ae=this.sx,ht=this.shy,ur=this.shx,Er=this.sy,Gr=this.tx,Bn=this.ty;return new fi(Ae,ht,ur,Er,Gr,Bn)},Ve.Matrix=fi;var Es=Ve.matrixMult=function(Ae,ht){return ht.multiply(Ae)},ns=new fi(1,0,0,1,0,0);Ve.unitMatrix=Ve.identityMatrix=ns;var Xi=function(Ae,ht){if(!Tn[Ae]){var ur=(ht instanceof vs?"Sh":"P")+(Object.keys(Sr).length+1).toString(10);ht.id=ur,Tn[Ae]=ur,Sr[ur]=ht,pn.publish("addPattern",ht)}};Ve.ShadingPattern=vs,Ve.TilingPattern=ss,Ve.addShadingPattern=function(Ae,ht){return br("addShadingPattern()"),Xi(Ae,ht),this},Ve.beginTilingPattern=function(Ae){br("beginTilingPattern()"),Lu(Ae.boundingBox[0],Ae.boundingBox[1],Ae.boundingBox[2]-Ae.boundingBox[0],Ae.boundingBox[3]-Ae.boundingBox[1],Ae.matrix)},Ve.endTilingPattern=function(Ae,ht){br("endTilingPattern()"),ht.stream=Or[at].join(`
|
|
|
`),Xi(Ae,ht),pn.publish("endTilingPattern",ht),os.pop().restore()};var Nn=Ve.__private__.newObject=function(){var Ae=qi();return Js(Ae,!0),Ae},qi=Ve.__private__.newObjectDeferred=function(){return Kt++,Jt[Kt]=function(){return dr},Kt},Js=function(Ae,ht){return ht=typeof ht=="boolean"&&ht,Jt[Ae]=dr,ht&&Qt(Ae+" 0 obj"),Ae},Zi=Ve.__private__.newAdditionalObject=function(){var Ae={objId:qi(),content:""};return Lr.push(Ae),Ae},Gi=qi(),hs=qi(),Ms=Ve.__private__.decodeColorString=function(Ae){var ht=Ae.split(" ");if(ht.length!==2||ht[1]!=="g"&&ht[1]!=="G")ht.length===5&&(ht[4]==="k"||ht[4]==="K")&&(ht=[(1-ht[0])*(1-ht[3]),(1-ht[1])*(1-ht[3]),(1-ht[2])*(1-ht[3]),"r"]);else{var ur=parseFloat(ht[0]);ht=[ur,ur,ur,"r"]}for(var Er="#",Gr=0;Gr<3;Gr++)Er+=("0"+Math.floor(255*parseFloat(ht[Gr])).toString(16)).slice(-2);return Er},Ls=Ve.__private__.encodeColorString=function(Ae){var ht;typeof Ae=="string"&&(Ae={ch1:Ae});var ur=Ae.ch1,Er=Ae.ch2,Gr=Ae.ch3,Bn=Ae.ch4,Jn=Ae.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ur=="string"&&ur.charAt(0)!=="#"){var Pi=new ii(ur);if(Pi.ok)ur=Pi.toHex();else if(!/^\d*\.?\d*$/.test(ur))throw new Error('Invalid color "'+ur+'" passed to jsPDF.encodeColorString.')}if(typeof ur=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ur)&&(ur="#"+ur[1]+ur[1]+ur[2]+ur[2]+ur[3]+ur[3]),typeof ur=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ur)){var ts=parseInt(ur.substr(1),16);ur=ts>>16&255,Er=ts>>8&255,Gr=255&ts}if(Er===void 0||Bn===void 0&&ur===Er&&Er===Gr)if(typeof ur=="string")ht=ur+" "+Jn[0];else switch(Ae.precision){case 2:ht=In(ur/255)+" "+Jn[0];break;case 3:default:ht=Nt(ur/255)+" "+Jn[0]}else if(Bn===void 0||(0,le.Z)(Bn)==="object"){if(Bn&&!isNaN(Bn.a)&&Bn.a===0)return ht=["1.","1.","1.",Jn[1]].join(" ");if(typeof ur=="string")ht=[ur,Er,Gr,Jn[1]].join(" ");else switch(Ae.precision){case 2:ht=[In(ur/255),In(Er/255),In(Gr/255),Jn[1]].join(" ");break;default:case 3:ht=[Nt(ur/255),Nt(Er/255),Nt(Gr/255),Jn[1]].join(" ")}}else if(typeof ur=="string")ht=[ur,Er,Gr,Bn,Jn[2]].join(" ");else switch(Ae.precision){case 2:ht=[In(ur),In(Er),In(Gr),In(Bn),Jn[2]].join(" ");break;case 3:default:ht=[Nt(ur),Nt(Er),Nt(Gr),Nt(Bn),Jn[2]].join(" ")}return ht},Ni=Ve.__private__.getFilters=function(){return me},Ps=Ve.__private__.putStream=function(Ae){var ht=(Ae=Ae||{}).data||"",ur=Ae.filters||Ni(),Er=Ae.alreadyAppliedFilters||[],Gr=Ae.addLength1||!1,Bn=ht.length,Jn=Ae.objectId,Pi=function(uo){return uo};if(dt!==null&&Jn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");dt!==null&&(Pi=oo.encryptor(Jn,0));var ts={};ur===!0&&(ur=["FlateEncode"]);var Ss=Ae.additionalKeyValues||[],xs=(ts=gi.API.processDataByFilters!==void 0?gi.API.processDataByFilters(ht,ur):{data:ht,reverseChain:[]}).reverseChain+(Array.isArray(Er)?Er.join(" "):Er.toString());if(ts.data.length!==0&&(Ss.push({key:"Length",value:ts.data.length}),Gr===!0&&Ss.push({key:"Length1",value:Bn})),xs.length!=0)if(xs.split("/").length-1==1)Ss.push({key:"Filter",value:xs});else{Ss.push({key:"Filter",value:"["+xs+"]"});for(var Zs=0;Zs<Ss.length;Zs+=1)if(Ss[Zs].key==="DecodeParms"){for(var Ia=[],Ta=0;Ta<ts.reverseChain.split("/").length-1;Ta+=1)Ia.push("null");Ia.push(Ss[Zs].value),Ss[Zs].value="["+Ia.join(" ")+"]"}}Qt("<<");for(var ro=0;ro<Ss.length;ro++)Qt("/"+Ss[ro].key+" "+Ss[ro].value);Qt(">>"),ts.data.length!==0&&(Qt("stream"),Qt(Pi(ts.data)),Qt("endstream"))},Gs=Ve.__private__.putPage=function(Ae){var ht=Ae.number,ur=Ae.data,Er=Ae.objId,Gr=Ae.contentsObjId;Js(Er,!0),Qt("<</Type /Page"),Qt("/Parent "+Ae.rootDictionaryObjId+" 0 R"),Qt("/Resources "+Ae.resourceDictionaryObjId+" 0 R"),Qt("/MediaBox ["+parseFloat(Jr(Ae.mediaBox.bottomLeftX))+" "+parseFloat(Jr(Ae.mediaBox.bottomLeftY))+" "+Jr(Ae.mediaBox.topRightX)+" "+Jr(Ae.mediaBox.topRightY)+"]"),Ae.cropBox!==null&&Qt("/CropBox ["+Jr(Ae.cropBox.bottomLeftX)+" "+Jr(Ae.cropBox.bottomLeftY)+" "+Jr(Ae.cropBox.topRightX)+" "+Jr(Ae.cropBox.topRightY)+"]"),Ae.bleedBox!==null&&Qt("/BleedBox ["+Jr(Ae.bleedBox.bottomLeftX)+" "+Jr(Ae.bleedBox.bottomLeftY)+" "+Jr(Ae.bleedBox.topRightX)+" "+Jr(Ae.bleedBox.topRightY)+"]"),Ae.trimBox!==null&&Qt("/TrimBox ["+Jr(Ae.trimBox.bottomLeftX)+" "+Jr(Ae.trimBox.bottomLeftY)+" "+Jr(Ae.trimBox.topRightX)+" "+Jr(Ae.trimBox.topRightY)+"]"),Ae.artBox!==null&&Qt("/ArtBox ["+Jr(Ae.artBox.bottomLeftX)+" "+Jr(Ae.artBox.bottomLeftY)+" "+Jr(Ae.artBox.topRightX)+" "+Jr(Ae.artBox.topRightY)+"]"),typeof Ae.userUnit=="number"&&Ae.userUnit!==1&&Qt("/UserUnit "+Ae.userUnit),pn.publish("putPage",{objId:Er,pageContext:kn[ht],pageNumber:ht,page:ur}),Qt("/Contents "+Gr+" 0 R"),Qt(">>"),Qt("endobj");var Bn=ur.join(`
|
|
|
`);return Ir===ar.ADVANCED&&(Bn+=`
|
|
|
Q`),Js(Gr,!0),Ps({data:Bn,filters:Ni(),objectId:Gr}),Qt("endobj"),Er},ga=Ve.__private__.putPages=function(){var Ae,ht,ur=[];for(Ae=1;Ae<=xn;Ae++)kn[Ae].objId=qi(),kn[Ae].contentsObjId=qi();for(Ae=1;Ae<=xn;Ae++)ur.push(Gs({number:Ae,data:Or[Ae],objId:kn[Ae].objId,contentsObjId:kn[Ae].contentsObjId,mediaBox:kn[Ae].mediaBox,cropBox:kn[Ae].cropBox,bleedBox:kn[Ae].bleedBox,trimBox:kn[Ae].trimBox,artBox:kn[Ae].artBox,userUnit:kn[Ae].userUnit,rootDictionaryObjId:Gi,resourceDictionaryObjId:hs}));Js(Gi,!0),Qt("<</Type /Pages");var Er="/Kids [";for(ht=0;ht<xn;ht++)Er+=ur[ht]+" 0 R ";Qt(Er+"]"),Qt("/Count "+xn),Qt(">>"),Qt("endobj"),pn.publish("postPutPages")},oa=function(Ae){pn.publish("putFont",{font:Ae,out:Qt,newObject:Nn,putStream:Ps}),Ae.isAlreadyPutted!==!0&&(Ae.objectNumber=Nn(),Qt("<<"),Qt("/Type /Font"),Qt("/BaseFont /"+us(Ae.postScriptName)),Qt("/Subtype /Type1"),typeof Ae.encoding=="string"&&Qt("/Encoding /"+Ae.encoding),Qt("/FirstChar 32"),Qt("/LastChar 255"),Qt(">>"),Qt("endobj"))},wa=function(){for(var Ae in Ot)Ot.hasOwnProperty(Ae)&&(ft===!1||ft===!0&&Ct.hasOwnProperty(Ae))&&oa(Ot[Ae])},Lo=function(Ae){Ae.objectNumber=Nn();var ht=[];ht.push({key:"Type",value:"/XObject"}),ht.push({key:"Subtype",value:"/Form"}),ht.push({key:"BBox",value:"["+[Jr(Ae.x),Jr(Ae.y),Jr(Ae.x+Ae.width),Jr(Ae.y+Ae.height)].join(" ")+"]"}),ht.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"});var ur=Ae.pages[1].join(`
|
|
|
`);Ps({data:ur,additionalKeyValues:ht,objectId:Ae.objectNumber}),Qt("endobj")},go=function(){for(var Ae in xi)xi.hasOwnProperty(Ae)&&Lo(xi[Ae])},Ua=function(Ae,ht){var ur,Er=[],Gr=1/(ht-1);for(ur=0;ur<1;ur+=Gr)Er.push(ur);if(Er.push(1),Ae[0].offset!=0){var Bn={offset:0,color:Ae[0].color};Ae.unshift(Bn)}if(Ae[Ae.length-1].offset!=1){var Jn={offset:1,color:Ae[Ae.length-1].color};Ae.push(Jn)}for(var Pi="",ts=0,Ss=0;Ss<Er.length;Ss++){for(ur=Er[Ss];ur>Ae[ts+1].offset;)ts++;var xs=Ae[ts].offset,Zs=(ur-xs)/(Ae[ts+1].offset-xs),Ia=Ae[ts].color,Ta=Ae[ts+1].color;Pi+=bt(Math.round((1-Zs)*Ia[0]+Zs*Ta[0]).toString(16))+bt(Math.round((1-Zs)*Ia[1]+Zs*Ta[1]).toString(16))+bt(Math.round((1-Zs)*Ia[2]+Zs*Ta[2]).toString(16))}return Pi.trim()},Qa=function(Ae,ht){ht||(ht=21);var ur=Nn(),Er=Ua(Ae.colors,ht),Gr=[];Gr.push({key:"FunctionType",value:"0"}),Gr.push({key:"Domain",value:"[0.0 1.0]"}),Gr.push({key:"Size",value:"["+ht+"]"}),Gr.push({key:"BitsPerSample",value:"8"}),Gr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Gr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ps({data:Er,additionalKeyValues:Gr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ur}),Qt("endobj"),Ae.objectNumber=Nn(),Qt("<< /ShadingType "+Ae.type),Qt("/ColorSpace /DeviceRGB");var Bn="/Coords ["+Jr(parseFloat(Ae.coords[0]))+" "+Jr(parseFloat(Ae.coords[1]))+" ";Ae.type===2?Bn+=Jr(parseFloat(Ae.coords[2]))+" "+Jr(parseFloat(Ae.coords[3])):Bn+=Jr(parseFloat(Ae.coords[2]))+" "+Jr(parseFloat(Ae.coords[3]))+" "+Jr(parseFloat(Ae.coords[4]))+" "+Jr(parseFloat(Ae.coords[5])),Qt(Bn+="]"),Ae.matrix&&Qt("/Matrix ["+Ae.matrix.toString()+"]"),Qt("/Function "+ur+" 0 R"),Qt("/Extend [true true]"),Qt(">>"),Qt("endobj")},xa=function(Ae,ht){var ur=qi(),Er=Nn();ht.push({resourcesOid:ur,objectOid:Er}),Ae.objectNumber=Er;var Gr=[];Gr.push({key:"Type",value:"/Pattern"}),Gr.push({key:"PatternType",value:"1"}),Gr.push({key:"PaintType",value:"1"}),Gr.push({key:"TilingType",value:"1"}),Gr.push({key:"BBox",value:"["+Ae.boundingBox.map(Jr).join(" ")+"]"}),Gr.push({key:"XStep",value:Jr(Ae.xStep)}),Gr.push({key:"YStep",value:Jr(Ae.yStep)}),Gr.push({key:"Resources",value:ur+" 0 R"}),Ae.matrix&&Gr.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"}),Ps({data:Ae.stream,additionalKeyValues:Gr,objectId:Ae.objectNumber}),Qt("endobj")},ra=function(Ae){var ht;for(ht in Sr)Sr.hasOwnProperty(ht)&&(Sr[ht]instanceof vs?Qa(Sr[ht]):Sr[ht]instanceof ss&&xa(Sr[ht],Ae))},Ns=function(Ae){for(var ht in Ae.objectNumber=Nn(),Qt("<<"),Ae)switch(ht){case"opacity":Qt("/ca "+In(Ae[ht]));break;case"stroke-opacity":Qt("/CA "+In(Ae[ht]))}Qt(">>"),Qt("endobj")},Uo=function(){var Ae;for(Ae in _r)_r.hasOwnProperty(Ae)&&Ns(_r[Ae])},Co=function(){for(var Ae in Qt("/XObject <<"),xi)xi.hasOwnProperty(Ae)&&xi[Ae].objectNumber>=0&&Qt("/"+Ae+" "+xi[Ae].objectNumber+" 0 R");pn.publish("putXobjectDict"),Qt(">>")},Wo=function(){oo.oid=Nn(),Qt("<<"),Qt("/Filter /Standard"),Qt("/V "+oo.v),Qt("/R "+oo.r),Qt("/U <"+oo.toHexString(oo.U)+">"),Qt("/O <"+oo.toHexString(oo.O)+">"),Qt("/P "+oo.P),Qt(">>"),Qt("endobj")},Qo=function(){for(var Ae in Qt("/Font <<"),Ot)Ot.hasOwnProperty(Ae)&&(ft===!1||ft===!0&&Ct.hasOwnProperty(Ae))&&Qt("/"+Ae+" "+Ot[Ae].objectNumber+" 0 R");Qt(">>")},ou=function(){if(Object.keys(Sr).length>0){for(var Ae in Qt("/Shading <<"),Sr)Sr.hasOwnProperty(Ae)&&Sr[Ae]instanceof vs&&Sr[Ae].objectNumber>=0&&Qt("/"+Ae+" "+Sr[Ae].objectNumber+" 0 R");pn.publish("putShadingPatternDict"),Qt(">>")}},_l=function(Ae){if(Object.keys(Sr).length>0){for(var ht in Qt("/Pattern <<"),Sr)Sr.hasOwnProperty(ht)&&Sr[ht]instanceof Ve.TilingPattern&&Sr[ht].objectNumber>=0&&Sr[ht].objectNumber<Ae&&Qt("/"+ht+" "+Sr[ht].objectNumber+" 0 R");pn.publish("putTilingPatternDict"),Qt(">>")}},bs=function(){if(Object.keys(_r).length>0){var Ae;for(Ae in Qt("/ExtGState <<"),_r)_r.hasOwnProperty(Ae)&&_r[Ae].objectNumber>=0&&Qt("/"+Ae+" "+_r[Ae].objectNumber+" 0 R");pn.publish("putGStateDict"),Qt(">>")}},cs=function(Ae){Js(Ae.resourcesOid,!0),Qt("<<"),Qt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Qo(),ou(),_l(Ae.objectOid),bs(),Co(),Qt(">>"),Qt("endobj")},ja=function(){var Ae=[];wa(),Uo(),go(),ra(Ae),pn.publish("putResources"),Ae.forEach(cs),cs({resourcesOid:hs,objectOid:Number.MAX_SAFE_INTEGER}),pn.publish("postPutResources")},qs=function(){pn.publish("putAdditionalObjects");for(var Ae=0;Ae<Lr.length;Ae++){var ht=Lr[Ae];Js(ht.objId,!0),Qt(ht.content),Qt("endobj")}pn.publish("postPutAdditionalObjects")},$a=function(Ae){ir[Ae.fontName]=ir[Ae.fontName]||{},ir[Ae.fontName][Ae.fontStyle]=Ae.id},Ha=function(Ae,ht,ur,Er,Gr){var Bn={id:"F"+(Object.keys(Ot).length+1).toString(10),postScriptName:Ae,fontName:ht,fontStyle:ur,encoding:Er,isStandardFont:Gr||!1,metadata:{}};return pn.publish("addFont",{font:Bn,instance:this}),Ot[Bn.id]=Bn,$a(Bn),Bn.id},Ra=function(Ae){for(var ht=0,ur=Qr.length;ht<ur;ht++){var Er=Ha.call(this,Ae[ht][0],Ae[ht][1],Ae[ht][2],Qr[ht][3],!0);ft===!1&&(Ct[Er]=!0);var Gr=Ae[ht][0].split("-");$a({id:Er,fontName:Gr[0],fontStyle:Gr[1]||""})}pn.publish("addFonts",{fonts:Ot,dictionary:ir})},ao=function(Ae){return Ae.foo=function(){try{return Ae.apply(this,arguments)}catch(Er){var ht=Er.stack||"";~ht.indexOf(" at ")&&(ht=ht.split(" at ")[1]);var ur="Error in function "+ht.split(`
|
|
|
`)[0].split("<")[0]+": "+Er.message;if(!Xr.console)throw new Error(ur);Xr.console.error(ur,Er),Xr.alert&&alert(ur)}},Ae.foo.bar=Ae,Ae.foo},Oa=function(Ae,ht){var ur,Er,Gr,Bn,Jn,Pi,ts,Ss,xs;if(Gr=(ht=ht||{}).sourceEncoding||"Unicode",Jn=ht.outputEncoding,(ht.autoencode||Jn)&&Ot[V].metadata&&Ot[V].metadata[Gr]&&Ot[V].metadata[Gr].encoding&&(Bn=Ot[V].metadata[Gr].encoding,!Jn&&Ot[V].encoding&&(Jn=Ot[V].encoding),!Jn&&Bn.codePages&&(Jn=Bn.codePages[0]),typeof Jn=="string"&&(Jn=Bn[Jn]),Jn)){for(ts=!1,Pi=[],ur=0,Er=Ae.length;ur<Er;ur++)(Ss=Jn[Ae.charCodeAt(ur)])?Pi.push(String.fromCharCode(Ss)):Pi.push(Ae[ur]),Pi[ur].charCodeAt(0)>>8&&(ts=!0);Ae=Pi.join("")}for(ur=Ae.length;ts===void 0&&ur!==0;)Ae.charCodeAt(ur-1)>>8&&(ts=!0),ur--;if(!ts)return Ae;for(Pi=ht.noBOM?[]:[254,255],ur=0,Er=Ae.length;ur<Er;ur++){if((xs=(Ss=Ae.charCodeAt(ur))>>8)>>8)throw new Error("Character at position "+ur+" of string '"+Ae+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Pi.push(xs),Pi.push(Ss-(xs<<8))}return String.fromCharCode.apply(void 0,Pi)},So=Ve.__private__.pdfEscape=Ve.pdfEscape=function(Ae,ht){return Oa(Ae,ht).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Gl=Ve.__private__.beginPage=function(Ae){Or[++xn]=[],kn[xn]={objId:0,contentsObjId:0,userUnit:Number(De),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ae[0]),topRightY:Number(Ae[1])}},Zl(xn),Tr(Or[at])},Uu=function(Ae,ht){var ur,Er,Gr;switch(_=ht||_,typeof Ae=="string"&&(ur=Lt(Ae.toLowerCase()),Array.isArray(ur)&&(Er=ur[0],Gr=ur[1])),Array.isArray(Ae)&&(Er=Ae[0]*pe,Gr=Ae[1]*pe),isNaN(Er)&&(Er=ie[0],Gr=ie[1]),(Er>14400||Gr>14400)&&(zn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Er=Math.min(14400,Er),Gr=Math.min(14400,Gr)),ie=[Er,Gr],_.substr(0,1)){case"l":Gr>Er&&(ie=[Gr,Er]);break;case"p":Er>Gr&&(ie=[Gr,Er])}Gl(ie),nl(Hs),Qt(ml),Ku!==0&&Qt(Ku+" J"),cc!==0&&Qt(cc+" j"),pn.publish("addPage",{pageNumber:xn})},ac=function(Ae){Ae>0&&Ae<=xn&&(Or.splice(Ae,1),kn.splice(Ae,1),xn--,at>xn&&(at=xn),this.setPage(at))},Zl=function(Ae){Ae>0&&Ae<=xn&&(at=Ae)},Cl=Ve.__private__.getNumberOfPages=Ve.getNumberOfPages=function(){return Or.length-1},rl=function(Ae,ht,ur){var Er,Gr=void 0;return ur=ur||{},Ae=Ae!==void 0?Ae:Ot[V].fontName,ht=ht!==void 0?ht:Ot[V].fontStyle,Er=Ae.toLowerCase(),ir[Er]!==void 0&&ir[Er][ht]!==void 0?Gr=ir[Er][ht]:ir[Ae]!==void 0&&ir[Ae][ht]!==void 0?Gr=ir[Ae][ht]:ur.disableWarning===!1&&zn.warn("Unable to look up font label for font '"+Ae+"', '"+ht+"'. Refer to getFontList() for available fonts."),Gr||ur.noFallback||(Gr=ir.times[ht])==null&&(Gr=ir.times.normal),Gr},Qu=Ve.__private__.putInfo=function(){var Ae=Nn(),ht=function(Er){return Er};for(var ur in dt!==null&&(ht=oo.encryptor(Ae,0)),Qt("<<"),Qt("/Producer ("+So(ht("jsPDF "+gi.version))+")"),D)D.hasOwnProperty(ur)&&D[ur]&&Qt("/"+ur.substr(0,1).toUpperCase()+ur.substr(1)+" ("+So(ht(D[ur]))+")");Qt("/CreationDate ("+So(ht(Pe))+")"),Qt(">>"),Qt("endobj")},Yo=Ve.__private__.putCatalog=function(Ae){var ht=(Ae=Ae||{}).rootDictionaryObjId||Gi;switch(Nn(),Qt("<<"),Qt("/Type /Catalog"),Qt("/Pages "+ht+" 0 R"),rn||(rn="fullwidth"),rn){case"fullwidth":Qt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Qt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Qt("/OpenAction [3 0 R /Fit]");break;case"original":Qt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ur=""+rn;ur.substr(ur.length-1)==="%"&&(rn=parseInt(rn)/100),typeof rn=="number"&&Qt("/OpenAction [3 0 R /XYZ null null "+In(rn)+"]")}switch(Qe||(Qe="continuous"),Qe){case"continuous":Qt("/PageLayout /OneColumn");break;case"single":Qt("/PageLayout /SinglePage");break;case"two":case"twoleft":Qt("/PageLayout /TwoColumnLeft");break;case"tworight":Qt("/PageLayout /TwoColumnRight")}qn&&Qt("/PageMode /"+qn),pn.publish("putCatalog"),Qt(">>"),Qt("endobj")},ju=Ve.__private__.putTrailer=function(){Qt("trailer"),Qt("<<"),Qt("/Size "+(Kt+1)),Qt("/Root "+Kt+" 0 R"),Qt("/Info "+(Kt-1)+" 0 R"),dt!==null&&Qt("/Encrypt "+oo.oid+" 0 R"),Qt("/ID [ <"+Ye+"> <"+Ye+"> ]"),Qt(">>")},_u=Ve.__private__.putHeader=function(){Qt("%PDF-"+nr),Qt("%\xBA\xDF\xAC\xE0")},Nl=Ve.__private__.putXRef=function(){var Ae="0000000000";Qt("xref"),Qt("0 "+(Kt+1)),Qt("0000000000 65535 f ");for(var ht=1;ht<=Kt;ht++)typeof Jt[ht]=="function"?Qt((Ae+Jt[ht]()).slice(-10)+" 00000 n "):Jt[ht]!==void 0?Qt((Ae+Jt[ht]).slice(-10)+" 00000 n "):Qt("0000000000 00000 n ")},to=Ve.__private__.buildDocument=function(){Qn(),Tr(rr),pn.publish("buildDocument"),_u(),ga(),qs(),ja(),dt!==null&&Wo(),Qu(),Yo();var Ae=dr;return Nl(),ju(),Qt("startxref"),Qt(""+Ae),Qt("%%EOF"),Tr(Or[at]),rr.join(`
|
|
|
`)},Vl=Ve.__private__.getBlob=function(Ae){return new Blob([Yn(Ae)],{type:"application/pdf"})},kl=Ve.output=Ve.__private__.output=ao(function(Ae,ht){switch(typeof(ht=ht||{})=="string"?ht={filename:ht}:ht.filename=ht.filename||"generated.pdf",Ae){case void 0:return to();case"save":Ve.save(ht.filename);break;case"arraybuffer":return Yn(to());case"blob":return Vl(to());case"bloburi":case"bloburl":if(Xr.URL!==void 0&&typeof Xr.URL.createObjectURL=="function")return Xr.URL&&Xr.URL.createObjectURL(Vl(to()))||void 0;zn.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ur="",Er=to();try{ur=_i(Er)}catch(Ta){ur=_i(unescape(encodeURIComponent(Er)))}return"data:application/pdf;filename="+ht.filename+";base64,"+ur;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Xr)==="[object Window]"){var Gr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Bn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';ht.pdfObjectUrl&&(Gr=ht.pdfObjectUrl,Bn="");var Jn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Gr+'"'+Bn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(ht)+");<\/script></body></html>",Pi=Xr.open();return Pi!==null&&Pi.document.write(Jn),Pi}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Xr)==="[object Window]"){var ts='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(ht.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+ht.filename+'" width="500px" height="400px" /></body></html>',Ss=Xr.open();if(Ss!==null){Ss.document.write(ts);var xs=this;Ss.document.documentElement.querySelector("#pdfViewer").onload=function(){Ss.document.title=ht.filename,Ss.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(xs.output("bloburl"))}}return Ss}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Xr)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Zs='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",ht)+'"></iframe></body></html>',Ia=Xr.open();if(Ia!==null&&(Ia.document.write(Zs),Ia.document.title=ht.filename),Ia||typeof safari=="undefined")return Ia;break;case"datauri":case"dataurl":return Xr.document.location.href=this.output("datauristring",ht);default:return null}}),vo=function(Ae){return Array.isArray(yi)===!0&&yi.indexOf(Ae)>-1};switch(j){case"pt":pe=1;break;case"mm":pe=72/25.4;break;case"cm":pe=72/2.54;break;case"in":pe=72;break;case"px":pe=vo("px_scaling")==1?.75:96/72;break;case"pc":case"em":pe=12;break;case"ex":pe=6;break;default:if(typeof j!="number")throw new Error("Invalid unit: "+j);pe=j}var oo=null;er(),ot();var oc=function(Ae){return dt!==null?oo.encryptor(Ae,0):function(ht){return ht}},$u=Ve.__private__.getPageInfo=Ve.getPageInfo=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:kn[Ae].objId,pageNumber:Ae,pageContext:kn[Ae]}},ms=Ve.__private__.getPageInfoByObjId=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var ht in kn)if(kn[ht].objId===Ae)break;return $u(ht)},lu=Ve.__private__.getCurrentPageInfo=Ve.getCurrentPageInfo=function(){return{objId:kn[at].objId,pageNumber:at,pageContext:kn[at]}};Ve.addPage=function(){return Uu.apply(this,arguments),this},Ve.setPage=function(){return Zl.apply(this,arguments),Tr.call(this,Or[at]),this},Ve.insertPage=function(Ae){return this.addPage(),this.movePage(at,Ae),this},Ve.movePage=function(Ae,ht){var ur,Er;if(Ae>ht){ur=Or[Ae],Er=kn[Ae];for(var Gr=Ae;Gr>ht;Gr--)Or[Gr]=Or[Gr-1],kn[Gr]=kn[Gr-1];Or[ht]=ur,kn[ht]=Er,this.setPage(ht)}else if(Ae<ht){ur=Or[Ae],Er=kn[Ae];for(var Bn=Ae;Bn<ht;Bn++)Or[Bn]=Or[Bn+1],kn[Bn]=kn[Bn+1];Or[ht]=ur,kn[ht]=Er,this.setPage(ht)}return this},Ve.deletePage=function(){return ac.apply(this,arguments),this},Ve.__private__.text=Ve.text=function(Ae,ht,ur,Er,Gr){var Bn,Jn,Pi,ts,Ss,xs,Zs,Ia,Ta,ro=(Er=Er||{}).scope||this;if(typeof Ae=="number"&&typeof ht=="number"&&(typeof ur=="string"||Array.isArray(ur))){var uo=ur;ur=ht,ht=Ae,Ae=uo}if(arguments[3]instanceof fi?(br("The transform parameter of text() with a Matrix value"),Ta=Gr):(Pi=arguments[4],ts=arguments[5],(0,le.Z)(Zs=arguments[3])==="object"&&Zs!==null||(typeof Pi=="string"&&(ts=Pi,Pi=null),typeof Zs=="string"&&(ts=Zs,Zs=null),typeof Zs=="number"&&(Pi=Zs,Zs=null),Er={flags:Zs,angle:Pi,align:ts})),isNaN(ht)||isNaN(ur)||Ae==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ae.length===0)return ro;var co="",Ao=!1,al=typeof Er.lineHeightFactor=="number"?Er.lineHeightFactor:ws,no=ro.internal.scaleFactor;function Ro(va){return va=va.split(" ").join(Array(Er.TabLen||9).join(" ")),So(va,Zs)}function Ru(va){for(var ha,Ka=va.concat(),Xa=[],$l=Ka.length;$l--;)typeof(ha=Ka.shift())=="string"?Xa.push(ha):Array.isArray(va)&&(ha.length===1||ha[1]===void 0&&ha[2]===void 0)?Xa.push(ha[0]):Xa.push([ha[0],ha[1],ha[2]]);return Xa}function Gu(va,ha){var Ka;if(typeof va=="string")Ka=ha(va)[0];else if(Array.isArray(va)){for(var Xa,$l,Oi=va.concat(),ll=[],yu=Oi.length;yu--;)typeof(Xa=Oi.shift())=="string"?ll.push(ha(Xa)[0]):Array.isArray(Xa)&&typeof Xa[0]=="string"&&($l=ha(Xa[0],Xa[1],Xa[2]),ll.push([$l[0],$l[1],$l[2]]));Ka=ll}return Ka}var Ou=!1,Zu=!0;if(typeof Ae=="string")Ou=!0;else if(Array.isArray(Ae)){var Vu=Ae.concat();Jn=[];for(var Wu,bo=Vu.length;bo--;)(typeof(Wu=Vu.shift())!="string"||Array.isArray(Wu)&&typeof Wu[0]!="string")&&(Zu=!1);Ou=Zu}if(Ou===!1)throw new Error('Type of text must be string or Array. "'+Ae+'" is not recognized.');typeof Ae=="string"&&(Ae=Ae.match(/[\r?\n]/)?Ae.split(/\r\n|\r|\n/g):[Ae]);var io=sn/ro.internal.scaleFactor,jo=io*(al-1);switch(Er.baseline){case"bottom":ur-=jo;break;case"top":ur+=io-jo;break;case"hanging":ur+=io-2*jo;break;case"middle":ur+=io/2-jo}if((xs=Er.maxWidth||0)>0&&(typeof Ae=="string"?Ae=ro.splitTextToSize(Ae,xs):Object.prototype.toString.call(Ae)==="[object Array]"&&(Ae=Ae.reduce(function(va,ha){return va.concat(ro.splitTextToSize(ha,xs))},[]))),Bn={text:Ae,x:ht,y:ur,options:Er,mutex:{pdfEscape:So,activeFontKey:V,fonts:Ot,activeFontSize:sn}},pn.publish("preProcessText",Bn),Ae=Bn.text,Pi=(Er=Bn.options).angle,!(Ta instanceof fi)&&Pi&&typeof Pi=="number"){Pi*=Math.PI/180,Er.rotationDirection===0&&(Pi=-Pi),Ir===ar.ADVANCED&&(Pi=-Pi);var Ea=Math.cos(Pi),Il=Math.sin(Pi);Ta=new fi(Ea,Il,-Il,Ea,0,0)}else Pi&&Pi instanceof fi&&(Ta=Pi);Ir!==ar.ADVANCED||Ta||(Ta=ns),(Ss=Er.charSpace||Hu)!==void 0&&(co+=Jr(Wt(Ss))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Ia=Er.horizontalScale)!==void 0&&(co+=Jr(100*Ia)+` Tz
|
|
|
`),Er.lang;var fo=-1,Ul=Er.renderingMode!==void 0?Er.renderingMode:Er.stroke,vl=ro.internal.getCurrentPageInfo().pageContext;switch(Ul){case 0:case!1:case"fill":fo=0;break;case 1:case!0:case"stroke":fo=1;break;case 2:case"fillThenStroke":fo=2;break;case 3:case"invisible":fo=3;break;case 4:case"fillAndAddForClipping":fo=4;break;case 5:case"strokeAndAddPathForClipping":fo=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":fo=6;break;case 7:case"addToPathForClipping":fo=7}var pu=vl.usedRenderingMode!==void 0?vl.usedRenderingMode:-1;fo!==-1?co+=fo+` Tr
|
|
|
`:pu!==-1&&(co+=`0 Tr
|
|
|
`),fo!==-1&&(vl.usedRenderingMode=fo),ts=Er.align||"left";var _a,mu=sn*al,dc=ro.internal.pageSize.getWidth(),fc=Ot[V];Ss=Er.charSpace||Hu,xs=Er.maxWidth||0,Zs=Object.assign({autoencode:!0,noBOM:!0},Er.flags);var yl=[],bl=function(va){return ro.getStringUnitWidth(va,{font:fc,charSpace:Ss,fontSize:sn,doKerning:!1})*sn/no};if(Object.prototype.toString.call(Ae)==="[object Array]"){var Oo;Jn=Ru(Ae),ts!=="left"&&(_a=Jn.map(bl));var ho,wl=0;if(ts==="right"){ht-=_a[0],Ae=[],bo=Jn.length;for(var eu=0;eu<bo;eu++)eu===0?(ho=Io(ht),Oo=sl(ur)):(ho=Wt(wl-_a[eu]),Oo=-mu),Ae.push([Jn[eu],ho,Oo]),wl=_a[eu]}else if(ts==="center"){ht-=_a[0]/2,Ae=[],bo=Jn.length;for(var Tl=0;Tl<bo;Tl++)Tl===0?(ho=Io(ht),Oo=sl(ur)):(ho=Wt((wl-_a[Tl])/2),Oo=-mu),Ae.push([Jn[Tl],ho,Oo]),wl=_a[Tl]}else if(ts==="left"){Ae=[],bo=Jn.length;for(var Yu=0;Yu<bo;Yu++)Ae.push(Jn[Yu])}else if(ts==="justify"&&fc.encoding==="Identity-H"){Ae=[],bo=Jn.length,xs=xs!==0?xs:dc;for(var Ql=0,so=0;so<bo;so++)if(Oo=so===0?sl(ur):-mu,ho=so===0?Io(ht):Ql,so<bo-1){var gu=Wt((xs-_a[so])/(Jn[so].split(" ").length-1)),To=Jn[so].split(" ");Ae.push([To[0]+" ",ho,Oo]),Ql=0;for(var $o=1;$o<To.length;$o++){var Xu=(bl(To[$o-1]+" "+To[$o])-bl(To[$o]))*no+gu;$o==To.length-1?Ae.push([To[$o],Xu,0]):Ae.push([To[$o]+" ",Xu,0]),Ql-=Xu}}else Ae.push([Jn[so],ho,Oo]);Ae.push(["",Ql,0])}else{if(ts!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Ae=[],bo=Jn.length,xs=xs!==0?xs:dc,so=0;so<bo;so++)Oo=so===0?sl(ur):-mu,ho=so===0?Io(ht):0,so<bo-1?yl.push(Jr(Wt((xs-_a[so])/(Jn[so].split(" ").length-1)))):yl.push(0),Ae.push([Jn[so],ho,Oo])}}var hc=typeof Er.R2L=="boolean"?Er.R2L:Sn;hc===!0&&(Ae=Gu(Ae,function(va,ha,Ka){return[va.split("").reverse().join(""),ha,Ka]})),Bn={text:Ae,x:ht,y:ur,options:Er,mutex:{pdfEscape:So,activeFontKey:V,fonts:Ot,activeFontSize:sn}},pn.publish("postProcessText",Bn),Ae=Bn.text,Ao=Bn.mutex.isHex||!1;var pc=Ot[V].encoding;pc!=="WinAnsiEncoding"&&pc!=="StandardEncoding"||(Ae=Gu(Ae,function(va,ha,Ka){return[Ro(va),ha,Ka]})),Jn=Ru(Ae),Ae=[];for(var tu,Dl,ru,nu=0,Ju=1,vu=Array.isArray(Jn[0])?Ju:nu,jl="",qu=function(va,ha,Ka){var Xa="";return Ka instanceof fi?(Ka=typeof Er.angle=="number"?Es(Ka,new fi(1,0,0,1,va,ha)):Es(new fi(1,0,0,1,va,ha),Ka),Ir===ar.ADVANCED&&(Ka=Es(new fi(1,0,0,-1,0,0),Ka)),Xa=Ka.join(" ")+` Tm
|
|
|
`):Xa=Jr(va)+" "+Jr(ha)+` Td
|
|
|
`,Xa},ol=0;ol<Jn.length;ol++){switch(jl="",vu){case Ju:ru=(Ao?"<":"(")+Jn[ol][0]+(Ao?">":")"),tu=parseFloat(Jn[ol][1]),Dl=parseFloat(Jn[ol][2]);break;case nu:ru=(Ao?"<":"(")+Jn[ol]+(Ao?">":")"),tu=Io(ht),Dl=sl(ur)}yl!==void 0&&yl[ol]!==void 0&&(jl=yl[ol]+` Tw
|
|
|
`),ol===0?Ae.push(jl+qu(tu,Dl,Ta)+ru):vu===nu?Ae.push(jl+ru):vu===Ju&&Ae.push(jl+qu(tu,Dl,Ta)+ru)}Ae=vu===nu?Ae.join(` Tj
|
|
|
T* `):Ae.join(` Tj
|
|
|
`),Ae+=` Tj
|
|
|
`;var xl=`BT
|
|
|
/`;return xl+=V+" "+sn+` Tf
|
|
|
`,xl+=Jr(sn*al)+` TL
|
|
|
`,xl+=fu+`
|
|
|
`,xl+=co,xl+=Ae,Qt(xl+="ET"),Ct[V]=!0,ro};var uu=Ve.__private__.clip=Ve.clip=function(Ae){return Qt(Ae==="evenodd"?"W*":"W"),this};Ve.clipEvenOdd=function(){return uu("evenodd")},Ve.__private__.discardPath=Ve.discardPath=function(){return Qt("n"),this};var Xo=Ve.__private__.isValidStyle=function(Ae){var ht=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ae)!==-1&&(ht=!0),ht};Ve.__private__.setDefaultPathOperation=Ve.setDefaultPathOperation=function(Ae){return Xo(Ae)&&(et=Ae),this};var Cu=Ve.__private__.getStyle=Ve.getStyle=function(Ae){var ht=et;switch(Ae){case"D":case"S":ht="S";break;case"F":ht="f";break;case"FD":case"DF":ht="B";break;case"f":case"f*":case"B":case"B*":ht=Ae}return ht},Su=Ve.close=function(){return Qt("h"),this};Ve.stroke=function(){return Qt("S"),this},Ve.fill=function(Ae){return Wl("f",Ae),this},Ve.fillEvenOdd=function(Ae){return Wl("f*",Ae),this},Ve.fillStroke=function(Ae){return Wl("B",Ae),this},Ve.fillStrokeEvenOdd=function(Ae){return Wl("B*",Ae),this};var Wl=function(Ae,ht){(0,le.Z)(ht)==="object"?cu(ht,Ae):Qt(Ae)},Yl=function(Ae){Ae===null||Ir===ar.ADVANCED&&Ae===void 0||(Ae=Cu(Ae),Qt(Ae))};function lc(Ae,ht,ur,Er,Gr){var Bn=new ss(ht||this.boundingBox,ur||this.xStep,Er||this.yStep,this.gState,Gr||this.matrix);Bn.stream=this.stream;var Jn=Ae+"$$"+this.cloneIndex+++"$$";return Xi(Jn,Bn),Bn}var cu=function(Ae,ht){var ur=Tn[Ae.key],Er=Sr[ur];if(Er instanceof vs)Qt("q"),Qt(Au(ht)),Er.gState&&Ve.setGState(Er.gState),Qt(Ae.matrix.toString()+" cm"),Qt("/"+ur+" sh"),Qt("Q");else if(Er instanceof ss){var Gr=new fi(1,0,0,-1,0,gl());Ae.matrix&&(Gr=Gr.multiply(Ae.matrix||ns),ur=lc.call(Er,Ae.key,Ae.boundingBox,Ae.xStep,Ae.yStep,Gr).id),Qt("q"),Qt("/Pattern cs"),Qt("/"+ur+" scn"),Er.gState&&Ve.setGState(Er.gState),Qt(ht),Qt("Q")}},Au=function(Ae){switch(Ae){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Ba=Ve.moveTo=function(Ae,ht){return Qt(Jr(Wt(Ae))+" "+Jr(ge(ht))+" m"),this},Bo=Ve.lineTo=function(Ae,ht){return Qt(Jr(Wt(Ae))+" "+Jr(ge(ht))+" l"),this},Sl=Ve.curveTo=function(Ae,ht,ur,Er,Gr,Bn){return Qt([Jr(Wt(Ae)),Jr(ge(ht)),Jr(Wt(ur)),Jr(ge(Er)),Jr(Wt(Gr)),Jr(ge(Bn)),"c"].join(" ")),this};Ve.__private__.line=Ve.line=function(Ae,ht,ur,Er,Gr){if(isNaN(Ae)||isNaN(ht)||isNaN(ur)||isNaN(Er)||!Xo(Gr))throw new Error("Invalid arguments passed to jsPDF.line");return Ir===ar.COMPAT?this.lines([[ur-Ae,Er-ht]],Ae,ht,[1,1],Gr||"S"):this.lines([[ur-Ae,Er-ht]],Ae,ht,[1,1]).stroke()},Ve.__private__.lines=Ve.lines=function(Ae,ht,ur,Er,Gr,Bn){var Jn,Pi,ts,Ss,xs,Zs,Ia,Ta,ro,uo,co,Ao;if(typeof Ae=="number"&&(Ao=ur,ur=ht,ht=Ae,Ae=Ao),Er=Er||[1,1],Bn=Bn||!1,isNaN(ht)||isNaN(ur)||!Array.isArray(Ae)||!Array.isArray(Er)||!Xo(Gr)||typeof Bn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ba(ht,ur),Jn=Er[0],Pi=Er[1],Ss=Ae.length,uo=ht,co=ur,ts=0;ts<Ss;ts++)(xs=Ae[ts]).length===2?(uo=xs[0]*Jn+uo,co=xs[1]*Pi+co,Bo(uo,co)):(Zs=xs[0]*Jn+uo,Ia=xs[1]*Pi+co,Ta=xs[2]*Jn+uo,ro=xs[3]*Pi+co,uo=xs[4]*Jn+uo,co=xs[5]*Pi+co,Sl(Zs,Ia,Ta,ro,uo,co));return Bn&&Su(),Yl(Gr),this},Ve.path=function(Ae){for(var ht=0;ht<Ae.length;ht++){var ur=Ae[ht],Er=ur.c;switch(ur.op){case"m":Ba(Er[0],Er[1]);break;case"l":Bo(Er[0],Er[1]);break;case"c":Sl.apply(this,Er);break;case"h":Su()}}return this},Ve.__private__.rect=Ve.rect=function(Ae,ht,ur,Er,Gr){if(isNaN(Ae)||isNaN(ht)||isNaN(ur)||isNaN(Er)||!Xo(Gr))throw new Error("Invalid arguments passed to jsPDF.rect");return Ir===ar.COMPAT&&(Er=-Er),Qt([Jr(Wt(Ae)),Jr(ge(ht)),Jr(Wt(ur)),Jr(Wt(Er)),"re"].join(" ")),Yl(Gr),this},Ve.__private__.triangle=Ve.triangle=function(Ae,ht,ur,Er,Gr,Bn,Jn){if(isNaN(Ae)||isNaN(ht)||isNaN(ur)||isNaN(Er)||isNaN(Gr)||isNaN(Bn)||!Xo(Jn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ur-Ae,Er-ht],[Gr-ur,Bn-Er],[Ae-Gr,ht-Bn]],Ae,ht,[1,1],Jn,!0),this},Ve.__private__.roundedRect=Ve.roundedRect=function(Ae,ht,ur,Er,Gr,Bn,Jn){if(isNaN(Ae)||isNaN(ht)||isNaN(ur)||isNaN(Er)||isNaN(Gr)||isNaN(Bn)||!Xo(Jn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Pi=4/3*(Math.SQRT2-1);return Gr=Math.min(Gr,.5*ur),Bn=Math.min(Bn,.5*Er),this.lines([[ur-2*Gr,0],[Gr*Pi,0,Gr,Bn-Bn*Pi,Gr,Bn],[0,Er-2*Bn],[0,Bn*Pi,-Gr*Pi,Bn,-Gr,Bn],[2*Gr-ur,0],[-Gr*Pi,0,-Gr,-Bn*Pi,-Gr,-Bn],[0,2*Bn-Er],[0,-Bn*Pi,Gr*Pi,-Bn,Gr,-Bn]],Ae+Gr,ht,[1,1],Jn,!0),this},Ve.__private__.ellipse=Ve.ellipse=function(Ae,ht,ur,Er,Gr){if(isNaN(Ae)||isNaN(ht)||isNaN(ur)||isNaN(Er)||!Xo(Gr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Bn=4/3*(Math.SQRT2-1)*ur,Jn=4/3*(Math.SQRT2-1)*Er;return Ba(Ae+ur,ht),Sl(Ae+ur,ht-Jn,Ae+Bn,ht-Er,Ae,ht-Er),Sl(Ae-Bn,ht-Er,Ae-ur,ht-Jn,Ae-ur,ht),Sl(Ae-ur,ht+Jn,Ae-Bn,ht+Er,Ae,ht+Er),Sl(Ae+Bn,ht+Er,Ae+ur,ht+Jn,Ae+ur,ht),Yl(Gr),this},Ve.__private__.circle=Ve.circle=function(Ae,ht,ur,Er){if(isNaN(Ae)||isNaN(ht)||isNaN(ur)||!Xo(Er))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ae,ht,ur,ur,Er)},Ve.setFont=function(Ae,ht,ur){return ur&&(ht=Gn(ht,ur)),V=rl(Ae,ht,{disableWarning:!1}),this};var Bu=Ve.__private__.getFont=Ve.getFont=function(){return Ot[rl.apply(Ve,arguments)]};Ve.__private__.getFontList=Ve.getFontList=function(){var Ae,ht,ur={};for(Ae in ir)if(ir.hasOwnProperty(Ae))for(ht in ur[Ae]=[],ir[Ae])ir[Ae].hasOwnProperty(ht)&&ur[Ae].push(ht);return ur},Ve.addFont=function(Ae,ht,ur,Er,Gr){var Bn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Bn.indexOf(arguments[3])!==-1?Gr=arguments[3]:arguments[3]&&Bn.indexOf(arguments[3])==-1&&(ur=Gn(ur,Er)),Gr=Gr||"Identity-H",Ha.call(this,Ae,ht,ur,Gr)};var ws,Hs=C.lineWidth||.200025,lo=Ve.__private__.getLineWidth=Ve.getLineWidth=function(){return Hs},nl=Ve.__private__.setLineWidth=Ve.setLineWidth=function(Ae){return Hs=Ae,Qt(Jr(Wt(Ae))+" w"),this};Ve.__private__.setLineDash=gi.API.setLineDash=gi.API.setLineDashPattern=function(Ae,ht){if(Ae=Ae||[],ht=ht||0,isNaN(ht)||!Array.isArray(Ae))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ae=Ae.map(function(ur){return Jr(Wt(ur))}).join(" "),ht=Jr(Wt(ht)),Qt("["+Ae+"] "+ht+" d"),this};var il=Ve.__private__.getLineHeight=Ve.getLineHeight=function(){return sn*ws};Ve.__private__.getLineHeight=Ve.getLineHeight=function(){return sn*ws};var Iu=Ve.__private__.setLineHeightFactor=Ve.setLineHeightFactor=function(Ae){return typeof(Ae=Ae||1.15)=="number"&&(ws=Ae),this},du=Ve.__private__.getLineHeightFactor=Ve.getLineHeightFactor=function(){return ws};Iu(C.lineHeight);var Io=Ve.__private__.getHorizontalCoordinate=function(Ae){return Wt(Ae)},sl=Ve.__private__.getVerticalCoordinate=function(Ae){return Ir===ar.ADVANCED?Ae:kn[at].mediaBox.topRightY-kn[at].mediaBox.bottomLeftY-Wt(Ae)},Ml=Ve.__private__.getHorizontalCoordinateString=Ve.getHorizontalCoordinateString=function(Ae){return Jr(Io(Ae))},Xl=Ve.__private__.getVerticalCoordinateString=Ve.getVerticalCoordinateString=function(Ae){return Jr(sl(Ae))},ml=C.strokeColor||"0 G";Ve.__private__.getStrokeColor=Ve.getDrawColor=function(){return Ms(ml)},Ve.__private__.setStrokeColor=Ve.setDrawColor=function(Ae,ht,ur,Er){return ml=Ls({ch1:Ae,ch2:ht,ch3:ur,ch4:Er,pdfColorType:"draw",precision:2}),Qt(ml),this};var Tu=C.fillColor||"0 g";Ve.__private__.getFillColor=Ve.getFillColor=function(){return Ms(Tu)},Ve.__private__.setFillColor=Ve.setFillColor=function(Ae,ht,ur,Er){return Tu=Ls({ch1:Ae,ch2:ht,ch3:ur,ch4:Er,pdfColorType:"fill",precision:2}),Qt(Tu),this};var fu=C.textColor||"0 g",uc=Ve.__private__.getTextColor=Ve.getTextColor=function(){return Ms(fu)};Ve.__private__.setTextColor=Ve.setTextColor=function(Ae,ht,ur,Er){return fu=Ls({ch1:Ae,ch2:ht,ch3:ur,ch4:Er,pdfColorType:"text",precision:3}),this};var Hu=C.charSpace,Oc=Ve.__private__.getCharSpace=Ve.getCharSpace=function(){return parseFloat(Hu||0)};Ve.__private__.setCharSpace=Ve.setCharSpace=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Hu=Ae,this};var Ku=0;Ve.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},Ve.__private__.setLineCap=Ve.setLineCap=function(Ae){var ht=Ve.CapJoinStyles[Ae];if(ht===void 0)throw new Error("Line cap style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ku=ht,Qt(ht+" J"),this};var cc=0;Ve.__private__.setLineJoin=Ve.setLineJoin=function(Ae){var ht=Ve.CapJoinStyles[Ae];if(ht===void 0)throw new Error("Line join style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return cc=ht,Qt(ht+" j"),this},Ve.__private__.setLineMiterLimit=Ve.__private__.setMiterLimit=Ve.setLineMiterLimit=Ve.setMiterLimit=function(Ae){if(Ae=Ae||0,isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Qt(Jr(Wt(Ae))+" M"),this},Ve.GState=ps,Ve.setGState=function(Ae){(Ae=typeof Ae=="string"?_r[kt[Ae]]:Du(null,Ae)).equals(wn)||(Qt("/"+Ae.id+" gs"),wn=Ae)};var Du=function(Ae,ht){if(!Ae||!kt[Ae]){var ur=!1;for(var Er in _r)if(_r.hasOwnProperty(Er)&&_r[Er].equals(ht)){ur=!0;break}if(ur)ht=_r[Er];else{var Gr="GS"+(Object.keys(_r).length+1).toString(10);_r[Gr]=ht,ht.id=Gr}return Ae&&(kt[Ae]=ht.id),pn.publish("addGState",ht),ht}};Ve.addGState=function(Ae,ht){return Du(Ae,ht),this},Ve.saveGraphicsState=function(){return Qt("q"),wr.push({key:V,size:sn,color:fu}),this},Ve.restoreGraphicsState=function(){Qt("Q");var Ae=wr.pop();return V=Ae.key,sn=Ae.size,fu=Ae.color,wn=null,this},Ve.setCurrentTransformationMatrix=function(Ae){return Qt(Ae.toString()+" cm"),this},Ve.comment=function(Ae){return Qt("#"+Ae),this};var Jl=function(Ae,ht){var ur=Ae||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ur},set:function(Bn){isNaN(Bn)||(ur=parseFloat(Bn))}});var Er=ht||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Er},set:function(Bn){isNaN(Bn)||(Er=parseFloat(Bn))}});var Gr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Gr},set:function(Bn){Gr=Bn.toString()}}),this},Ac=function(Ae,ht,ur,Er){Jl.call(this,Ae,ht),this.type="rect";var Gr=ur||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Gr},set:function(Jn){isNaN(Jn)||(Gr=parseFloat(Jn))}});var Bn=Er||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Bn},set:function(Jn){isNaN(Jn)||(Bn=parseFloat(Jn))}}),this},Fu=function(){this.page=xn,this.currentPage=at,this.pages=Or.slice(0),this.pagesContext=kn.slice(0),this.x=Ke,this.y=lt,this.matrix=yt,this.width=hu(at),this.height=gl(at),this.outputDestination=Yr,this.id="",this.objectNumber=-1};Fu.prototype.restore=function(){xn=this.page,at=this.currentPage,kn=this.pagesContext,Or=this.pages,Ke=this.x,lt=this.y,yt=this.matrix,zu(at,this.width),Bl(at,this.height),Yr=this.outputDestination};var Lu=function(Ae,ht,ur,Er,Gr){os.push(new Fu),xn=at=0,Or=[],Ke=Ae,lt=ht,yt=Gr,Gl([ur,Er])},ql=function(Ae){if(Fi[Ae])os.pop().restore();else{var ht=new Fu,ur="Xo"+(Object.keys(xi).length+1).toString(10);ht.id=ur,Fi[Ae]=ur,xi[ur]=ht,pn.publish("addFormObject",ht),os.pop().restore()}};for(var yo in Ve.beginFormObject=function(Ae,ht,ur,Er,Gr){return Lu(Ae,ht,ur,Er,Gr),this},Ve.endFormObject=function(Ae){return ql(Ae),this},Ve.doFormObject=function(Ae,ht){var ur=xi[Fi[Ae]];return Qt("q"),Qt(ht.toString()+" cm"),Qt("/"+ur.id+" Do"),Qt("Q"),this},Ve.getFormObject=function(Ae){var ht=xi[Fi[Ae]];return{x:ht.x,y:ht.y,width:ht.width,height:ht.height,matrix:ht.matrix}},Ve.save=function(Ae,ht){return Ae=Ae||"generated.pdf",(ht=ht||{}).returnPromise=ht.returnPromise||!1,ht.returnPromise===!1?(ji(Vl(to()),Ae),typeof ji.unload=="function"&&Xr.setTimeout&&setTimeout(ji.unload,911),this):new Promise(function(ur,Er){try{var Gr=ji(Vl(to()),Ae);typeof ji.unload=="function"&&Xr.setTimeout&&setTimeout(ji.unload,911),ur(Gr)}catch(Bn){Er(Bn.message)}})},gi.API)gi.API.hasOwnProperty(yo)&&(yo==="events"&&gi.API.events.length?function(Ae,ht){var ur,Er,Gr;for(Gr=ht.length-1;Gr!==-1;Gr--)ur=ht[Gr][0],Er=ht[Gr][1],Ae.subscribe.apply(Ae,[ur].concat(typeof Er=="function"?[Er]:Er))}(pn,gi.API.events):Ve[yo]=gi.API[yo]);var hu=Ve.getPageWidth=function(Ae){return(kn[Ae=Ae||at].mediaBox.topRightX-kn[Ae].mediaBox.bottomLeftX)/pe},zu=Ve.setPageWidth=function(Ae,ht){kn[Ae].mediaBox.topRightX=ht*pe+kn[Ae].mediaBox.bottomLeftX},gl=Ve.getPageHeight=function(Ae){return(kn[Ae=Ae||at].mediaBox.topRightY-kn[Ae].mediaBox.bottomLeftY)/pe},Bl=Ve.setPageHeight=function(Ae,ht){kn[Ae].mediaBox.topRightY=ht*pe+kn[Ae].mediaBox.bottomLeftY};return Ve.internal={pdfEscape:So,getStyle:Cu,getFont:Bu,getFontSize:Vr,getCharSpace:Oc,getTextColor:uc,getLineHeight:il,getLineHeightFactor:du,getLineWidth:lo,write:ei,getHorizontalCoordinate:Io,getVerticalCoordinate:sl,getCoordinateString:Ml,getVerticalCoordinateString:Xl,collections:{},newObject:Nn,newAdditionalObject:Zi,newObjectDeferred:qi,newObjectDeferredBegin:Js,getFilters:Ni,putStream:Ps,events:pn,scaleFactor:pe,pageSize:{getWidth:function(){return hu(at)},setWidth:function(Ae){zu(at,Ae)},getHeight:function(){return gl(at)},setHeight:function(Ae){Bl(at,Ae)}},encryptionOptions:dt,encryption:oo,getEncryptor:oc,output:kl,getNumberOfPages:Cl,pages:Or,out:Qt,f2:In,f3:Nt,getPageInfo:$u,getPageInfoByObjId:ms,getCurrentPageInfo:lu,getPDFVersion:Zt,Point:Jl,Rectangle:Ac,Matrix:fi,hasHotfix:vo},Object.defineProperty(Ve.internal.pageSize,"width",{get:function(){return hu(at)},set:function(Ae){zu(at,Ae)},enumerable:!0,configurable:!0}),Object.defineProperty(Ve.internal.pageSize,"height",{get:function(){return gl(at)},set:function(Ae){Bl(at,Ae)},enumerable:!0,configurable:!0}),Ra.call(Ve,Qr),V="F1",Uu(ie,_),pn.publish("initialized"),Ve}Vn.prototype.lsbFirstWord=function(C){return String.fromCharCode(C>>0&255,C>>8&255,C>>16&255,C>>24&255)},Vn.prototype.toHexString=function(C){return C.split("").map(function(h){return("0"+(255&h.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Vn.prototype.hexToBytes=function(C){for(var h=[],_=0;_<C.length;_+=2)h.push(String.fromCharCode(parseInt(C.substr(_,2),16)));return h.join("")},Vn.prototype.processOwnerPassword=function(C,h){return ls(Zn(h).substr(0,5),C)},Vn.prototype.encryptor=function(C,h){var _=Zn(this.encryptionKey+String.fromCharCode(255&C,C>>8&255,C>>16&255,255&h,h>>8&255)).substr(0,10);return function(j){return ls(_,j)}},ps.prototype.equals=function(C){var h,_="id,objectNumber,equals";if(!C||(0,le.Z)(C)!==(0,le.Z)(this))return!1;var j=0;for(h in this)if(!(_.indexOf(h)>=0)){if(this.hasOwnProperty(h)&&!C.hasOwnProperty(h)||this[h]!==C[h])return!1;j++}for(h in C)C.hasOwnProperty(h)&&_.indexOf(h)<0&&j--;return j===0},gi.API={events:[]},gi.version="3.0.1";var Ui=gi.API,Ws=1,Ti=function(C){return C.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ds=function(C){return C.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ri=function(C){return C.toFixed(2)},ks=function(C){return C.toFixed(5)};Ui.__acroform__={};var $i=function(C,h){C.prototype=Object.create(h.prototype),C.prototype.constructor=C},Pa=function(C){return C*Ws},aa=function(C){var h=new Ys,_=ci.internal.getHeight(C)||0,j=ci.internal.getWidth(C)||0;return h.BBox=[0,0,Number(Ri(j)),Number(Ri(_))],h},Na=Ui.__acroform__.setBit=function(C,h){if(C=C||0,h=h||0,isNaN(C)||isNaN(h))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return C|=1<<h},Vi=Ui.__acroform__.clearBit=function(C,h){if(C=C||0,h=h||0,isNaN(C)||isNaN(h))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return C&=~(1<<h)},Ga=Ui.__acroform__.getBit=function(C,h){if(isNaN(C)||isNaN(h))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return C&1<<h?1:0},Rs=Ui.__acroform__.getBitForPdf=function(C,h){if(isNaN(C)||isNaN(h))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ga(C,h-1)},Pn=Ui.__acroform__.setBitForPdf=function(C,h){if(isNaN(C)||isNaN(h))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Na(C,h-1)},as=Ui.__acroform__.clearBitForPdf=function(C,h){if(isNaN(C)||isNaN(h))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Vi(C,h-1)},Ca=Ui.__acroform__.calculateCoordinates=function(C,h){var _=h.internal.getHorizontalCoordinate,j=h.internal.getVerticalCoordinate,ie=C[0],X=C[1],me=C[2],De=C[3],ke={};return ke.lowerLeft_X=_(ie)||0,ke.lowerLeft_Y=j(X+De)||0,ke.upperRight_X=_(ie+me)||0,ke.upperRight_Y=j(X)||0,[Number(Ri(ke.lowerLeft_X)),Number(Ri(ke.lowerLeft_Y)),Number(Ri(ke.upperRight_X)),Number(Ri(ke.upperRight_Y))]},Bi=function(C){if(C.appearanceStreamContent)return C.appearanceStreamContent;if(C.V||C.DV){var h=[],_=C._V||C.DV,j=Di(C,_),ie=C.scope.internal.getFont(C.fontName,C.fontStyle).id;h.push("/Tx BMC"),h.push("q"),h.push("BT"),h.push(C.scope.__private__.encodeColorString(C.color)),h.push("/"+ie+" "+Ri(j.fontSize)+" Tf"),h.push("1 0 0 1 0 0 Tm"),h.push(j.text),h.push("ET"),h.push("Q"),h.push("EMC");var X=aa(C);return X.scope=C.scope,X.stream=h.join(`
|
|
|
`),X}},Di=function(C,h){var _=C.fontSize===0?C.maxFontSize:C.fontSize,j={text:"",fontSize:""},ie=(h=(h=h.substr(0,1)=="("?h.substr(1):h).substr(h.length-1)==")"?h.substr(0,h.length-1):h).split(" ");ie=C.multiline?ie.map(function(Nt){return Nt.split(`
|
|
|
`)}):ie.map(function(Nt){return[Nt]});var X=_,me=ci.internal.getHeight(C)||0;me=me<0?-me:me;var De=ci.internal.getWidth(C)||0;De=De<0?-De:De;var ke=function(Nt,Wt,Cr){if(Nt+1<ie.length){var ge=Wt+" "+ie[Nt+1][0];return wi(ge,C,Cr).width<=De-4}return!1};X++;e:for(;X>0;){h="",X--;var et,dt,ft=wi("3",C,X).height,Ct=C.multiline?me-X:(me-ft)/2,Ve=Ct+=2,nr=0,Zt=0,or=0;if(X<=0){h=`(...) Tj
|
|
|
`,h+="% Width of Text: "+wi(h,C,X=12).width+", FieldWidth:"+De+`
|
|
|
`;break}for(var Lt="",ar=0,Ir=0;Ir<ie.length;Ir++)if(ie.hasOwnProperty(Ir)){var Zr=!1;if(ie[Ir].length!==1&&or!==ie[Ir].length-1){if((ft+2)*(ar+2)+2>me)continue e;Lt+=ie[Ir][or],Zr=!0,Zt=Ir,Ir--}else{Lt=(Lt+=ie[Ir][or]+" ").substr(Lt.length-1)==" "?Lt.substr(0,Lt.length-1):Lt;var mn=parseInt(Ir),Gn=ke(mn,Lt,X),Jr=Ir>=ie.length-1;if(Gn&&!Jr){Lt+=" ",or=0;continue}if(Gn||Jr){if(Jr)Zt=mn;else if(C.multiline&&(ft+2)*(ar+2)+2>me)continue e}else{if(!C.multiline||(ft+2)*(ar+2)+2>me)continue e;Zt=mn}}for(var br="",en=nr;en<=Zt;en++){var In=ie[en];if(C.multiline){if(en===Zt){br+=In[or]+" ",or=(or+1)%In.length;continue}if(en===nr){br+=In[In.length-1]+" ";continue}}br+=In[0]+" "}switch(br=br.substr(br.length-1)==" "?br.substr(0,br.length-1):br,dt=wi(br,C,X).width,C.textAlign){case"right":et=De-dt-2;break;case"center":et=(De-dt)/2;break;case"left":default:et=2}h+=Ri(et)+" "+Ri(Ve)+` Td
|
|
|
`,h+="("+Ti(br)+`) Tj
|
|
|
`,h+=-Ri(et)+` 0 Td
|
|
|
`,Ve=-(X+2),dt=0,nr=Zr?Zt:Zt+1,ar++,Lt=""}break}return j.text=h,j.fontSize=X,j},wi=function(C,h,_){var j=h.scope.internal.getFont(h.fontName,h.fontStyle),ie=h.scope.getStringUnitWidth(C,{font:j,fontSize:parseFloat(_),charSpace:0})*parseFloat(_);return{height:h.scope.getStringUnitWidth("3",{font:j,fontSize:parseFloat(_),charSpace:0})*parseFloat(_)*1.5,width:ie}},vi={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Yi=function(C,h){var _={type:"reference",object:C};h.internal.getPageInfo(C.page).pageContext.annotations.find(function(j){return j.type===_.type&&j.object===_.object})===void 0&&h.internal.getPageInfo(C.page).pageContext.annotations.push(_)},gs=function(C,h){for(var _ in C)if(C.hasOwnProperty(_)){var j=_,ie=C[_];h.internal.newObjectDeferredBegin(ie.objId,!0),(0,le.Z)(ie)==="object"&&typeof ie.putStream=="function"&&ie.putStream(),delete C[j]}},na=function(C,h){if(h.scope=C,C.internal!==void 0&&(C.internal.acroformPlugin===void 0||C.internal.acroformPlugin.isInitialized===!1)){if(la.FieldNum=0,C.internal.acroformPlugin=JSON.parse(JSON.stringify(vi)),C.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ws=C.internal.scaleFactor,C.internal.acroformPlugin.acroFormDictionaryRoot=new Za,C.internal.acroformPlugin.acroFormDictionaryRoot.scope=C,C.internal.acroformPlugin.acroFormDictionaryRoot._eventID=C.internal.events.subscribe("postPutResources",function(){(function(_){_.internal.events.unsubscribe(_.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete _.internal.acroformPlugin.acroFormDictionaryRoot._eventID,_.internal.acroformPlugin.printedOut=!0})(C)}),C.internal.events.subscribe("buildDocument",function(){(function(_){_.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var j=_.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ie in j)if(j.hasOwnProperty(ie)){var X=j[ie];X.objId=void 0,X.hasAnnotation&&Yi(X,_)}})(C)}),C.internal.events.subscribe("putCatalog",function(){(function(_){if(_.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");_.internal.write("/AcroForm "+_.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(C)}),C.internal.events.subscribe("postPutPages",function(_){(function(j,ie){var X=!j;for(var me in j||(ie.internal.newObjectDeferredBegin(ie.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ie.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),j=j||ie.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(j.hasOwnProperty(me)){var De=j[me],ke=[],et=De.Rect;if(De.Rect&&(De.Rect=Ca(De.Rect,ie)),ie.internal.newObjectDeferredBegin(De.objId,!0),De.DA=ci.createDefaultAppearanceStream(De),(0,le.Z)(De)==="object"&&typeof De.getKeyValueListForStream=="function"&&(ke=De.getKeyValueListForStream()),De.Rect=et,De.hasAppearanceStream&&!De.appearanceStreamContent){var dt=Bi(De);ke.push({key:"AP",value:"<</N "+dt+">>"}),ie.internal.acroformPlugin.xForms.push(dt)}if(De.appearanceStreamContent){var ft="";for(var Ct in De.appearanceStreamContent)if(De.appearanceStreamContent.hasOwnProperty(Ct)){var Ve=De.appearanceStreamContent[Ct];if(ft+="/"+Ct+" ",ft+="<<",Object.keys(Ve).length>=1||Array.isArray(Ve)){for(var me in Ve)if(Ve.hasOwnProperty(me)){var nr=Ve[me];typeof nr=="function"&&(nr=nr.call(ie,De)),ft+="/"+me+" "+nr+" ",ie.internal.acroformPlugin.xForms.indexOf(nr)>=0||ie.internal.acroformPlugin.xForms.push(nr)}}else typeof(nr=Ve)=="function"&&(nr=nr.call(ie,De)),ft+="/"+me+" "+nr,ie.internal.acroformPlugin.xForms.indexOf(nr)>=0||ie.internal.acroformPlugin.xForms.push(nr);ft+=">>"}ke.push({key:"AP",value:`<<
|
|
|
`+ft+">>"})}ie.internal.putStream({additionalKeyValues:ke,objectId:De.objId}),ie.internal.out("endobj")}X&&gs(ie.internal.acroformPlugin.xForms,ie)})(_,C)}),C.internal.acroformPlugin.isInitialized=!0}},Ks=Ui.__acroform__.arrayToPdfArray=function(C,h,_){var j=function(me){return me};if(Array.isArray(C)){for(var ie="[",X=0;X<C.length;X++)switch(X!==0&&(ie+=" "),(0,le.Z)(C[X])){case"boolean":case"number":case"object":ie+=C[X].toString();break;case"string":C[X].substr(0,1)!=="/"?(h!==void 0&&_&&(j=_.internal.getEncryptor(h)),ie+="("+Ti(j(C[X].toString()))+")"):ie+=C[X].toString()}return ie+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Os=function(C,h,_){var j=function(ie){return ie};return h!==void 0&&_&&(j=_.internal.getEncryptor(h)),(C=C||"").toString(),C="("+Ti(j(C))+")"},Qi=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(C){this._objId=C}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Qi.prototype.toString=function(){return this.objId+" 0 R"},Qi.prototype.putStream=function(){var C=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:C,objectId:this.objId}),this.scope.internal.out("endobj")},Qi.prototype.getKeyValueListForStream=function(){var C=[],h=Object.getOwnPropertyNames(this).filter(function(X){return X!="content"&&X!="appearanceStreamContent"&&X!="scope"&&X!="objId"&&X.substring(0,1)!="_"});for(var _ in h)if(Object.getOwnPropertyDescriptor(this,h[_]).configurable===!1){var j=h[_],ie=this[j];ie&&(Array.isArray(ie)?C.push({key:j,value:Ks(ie,this.objId,this.scope)}):ie instanceof Qi?(ie.scope=this.scope,C.push({key:j,value:ie.objId+" 0 R"})):typeof ie!="function"&&C.push({key:j,value:ie}))}return C};var Ys=function(){Qi.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var C,h=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return h},set:function(_){h=_}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(_){C=_.trim()},get:function(){return C||null}})};$i(Ys,Qi);var Za=function(){Qi.call(this);var C,h=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return h.length>0?h:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return h}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(C){var _=function(j){return j};return this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),"("+Ti(_(C))+")"}},set:function(_){C=_}})};$i(Za,Qi);var la=function C(){Qi.call(this);var h=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return h},set:function(Lt){if(isNaN(Lt))throw new Error('Invalid value "'+Lt+'" for attribute F supplied.');h=Lt}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Rs(h,3)},set:function(Lt){Lt?this.F=Pn(h,3):this.F=as(h,3)}});var _=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return _},set:function(Lt){if(isNaN(Lt))throw new Error('Invalid value "'+Lt+'" for attribute Ff supplied.');_=Lt}});var j=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(j.length!==0)return j},set:function(Lt){j=Lt!==void 0?Lt:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!j||isNaN(j[0])?0:j[0]},set:function(Lt){j[0]=Lt}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!j||isNaN(j[1])?0:j[1]},set:function(Lt){j[1]=Lt}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!j||isNaN(j[2])?0:j[2]},set:function(Lt){j[2]=Lt}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!j||isNaN(j[3])?0:j[3]},set:function(Lt){j[3]=Lt}});var ie="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return ie},set:function(Lt){switch(Lt){case"/Btn":case"/Tx":case"/Ch":case"/Sig":ie=Lt;break;default:throw new Error('Invalid value "'+Lt+'" for attribute FT supplied.')}}});var X=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!X||X.length<1){if(this instanceof ca)return;X="FieldObject"+C.FieldNum++}var Lt=function(ar){return ar};return this.scope&&(Lt=this.scope.internal.getEncryptor(this.objId)),"("+Ti(Lt(X))+")"},set:function(Lt){X=Lt.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return X},set:function(Lt){X=Lt}});var me="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return me},set:function(Lt){me=Lt}});var De="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return De},set:function(Lt){De=Lt}});var ke=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ke},set:function(Lt){ke=Lt}});var et=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return et===void 0?50/Ws:et},set:function(Lt){et=Lt}});var dt="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return dt},set:function(Lt){dt=Lt}});var ft="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!ft||this instanceof ca||this instanceof Va))return Os(ft,this.objId,this.scope)},set:function(Lt){Lt=Lt.toString(),ft=Lt}});var Ct=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Ct)return this instanceof Ji?Ct:Os(Ct,this.objId,this.scope)},set:function(Lt){Lt=Lt.toString(),Ct=this instanceof Ji?Lt:Lt.substr(0,1)==="("?Ds(Lt.substr(1,Lt.length-2)):Ds(Lt)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ji?Ds(Ct.substr(1,Ct.length-1)):Ct},set:function(Lt){Lt=Lt.toString(),Ct=this instanceof Ji?"/"+Lt:Lt}});var Ve=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Ve)return Ve},set:function(Lt){this.V=Lt}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Ve)return this instanceof Ji?Ve:Os(Ve,this.objId,this.scope)},set:function(Lt){Lt=Lt.toString(),Ve=this instanceof Ji?Lt:Lt.substr(0,1)==="("?Ds(Lt.substr(1,Lt.length-2)):Ds(Lt)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ji?Ds(Ve.substr(1,Ve.length-1)):Ve},set:function(Lt){Lt=Lt.toString(),Ve=this instanceof Ji?"/"+Lt:Lt}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var nr,Zt=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Zt},set:function(Lt){Lt=!!Lt,Zt=Lt}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(nr)return nr},set:function(Lt){nr=Lt}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,1)},set:function(Lt){Lt?this.Ff=Pn(this.Ff,1):this.Ff=as(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,2)},set:function(Lt){Lt?this.Ff=Pn(this.Ff,2):this.Ff=as(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,3)},set:function(Lt){Lt?this.Ff=Pn(this.Ff,3):this.Ff=as(this.Ff,3)}});var or=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(or!==null)return or},set:function(Lt){if([0,1,2].indexOf(Lt)===-1)throw new Error('Invalid value "'+Lt+'" for attribute Q supplied.');or=Lt}}),Object.defineProperty(this,"textAlign",{get:function(){var Lt;switch(or){case 0:default:Lt="left";break;case 1:Lt="center";break;case 2:Lt="right"}return Lt},configurable:!0,enumerable:!0,set:function(Lt){switch(Lt){case"right":case 2:or=2;break;case"center":case 1:or=1;break;case"left":case 0:default:or=0}}})};$i(la,Qi);var ua=function(){la.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var C=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return C},set:function(_){C=_}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return C},set:function(_){C=_}});var h=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ks(h,this.objId,this.scope)},set:function(_){var j,ie;ie=[],typeof(j=_)=="string"&&(ie=function(X,me,De){De||(De=1);for(var ke,et=[];ke=me.exec(X);)et.push(ke[De]);return et}(j,/\((.*?)\)/g)),h=ie}}),this.getOptions=function(){return h},this.setOptions=function(_){h=_,this.sort&&h.sort()},this.addOption=function(_){_=(_=_||"").toString(),h.push(_),this.sort&&h.sort()},this.removeOption=function(_,j){for(j=j||!1,_=(_=_||"").toString();h.indexOf(_)!==-1&&(h.splice(h.indexOf(_),1),j!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,18)},set:function(_){_?this.Ff=Pn(this.Ff,18):this.Ff=as(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,19)},set:function(_){this.combo===!0&&(_?this.Ff=Pn(this.Ff,19):this.Ff=as(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,20)},set:function(_){_?(this.Ff=Pn(this.Ff,20),h.sort()):this.Ff=as(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,22)},set:function(_){_?this.Ff=Pn(this.Ff,22):this.Ff=as(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,23)},set:function(_){_?this.Ff=Pn(this.Ff,23):this.Ff=as(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,27)},set:function(_){_?this.Ff=Pn(this.Ff,27):this.Ff=as(this.Ff,27)}}),this.hasAppearanceStream=!1};$i(ua,la);var Xs=function(){ua.call(this),this.fontName="helvetica",this.combo=!1};$i(Xs,ua);var li=function(){Xs.call(this),this.combo=!0};$i(li,Xs);var oi=function(){li.call(this),this.edit=!0};$i(oi,li);var Ji=function(){la.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,15)},set:function(_){_?this.Ff=Pn(this.Ff,15):this.Ff=as(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,16)},set:function(_){_?this.Ff=Pn(this.Ff,16):this.Ff=as(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,17)},set:function(_){_?this.Ff=Pn(this.Ff,17):this.Ff=as(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,26)},set:function(_){_?this.Ff=Pn(this.Ff,26):this.Ff=as(this.Ff,26)}});var C,h={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var _=function(X){return X};if(this.scope&&(_=this.scope.internal.getEncryptor(this.objId)),Object.keys(h).length!==0){var j,ie=[];for(j in ie.push("<<"),h)ie.push("/"+j+" ("+Ti(_(h[j]))+")");return ie.push(">>"),ie.join(`
|
|
|
`)}},set:function(_){(0,le.Z)(_)==="object"&&(h=_)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return h.CA||""},set:function(_){typeof _=="string"&&(h.CA=_)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return C},set:function(_){C=_}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return C.substr(1,C.length-1)},set:function(_){C="/"+_}})};$i(Ji,la);var $s=function(){Ji.call(this),this.pushButton=!0};$i($s,Ji);var As=function(){Ji.call(this),this.radio=!0,this.pushButton=!1;var C=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return C},set:function(h){C=h!==void 0?h:[]}})};$i(As,Ji);var ca=function(){var C,h;la.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return C},set:function(ie){C=ie}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return h},set:function(ie){h=ie}});var _,j={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ie=function(De){return De};this.scope&&(ie=this.scope.internal.getEncryptor(this.objId));var X,me=[];for(X in me.push("<<"),j)me.push("/"+X+" ("+Ti(ie(j[X]))+")");return me.push(">>"),me.join(`
|
|
|
`)},set:function(ie){(0,le.Z)(ie)==="object"&&(j=ie)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return j.CA||""},set:function(ie){typeof ie=="string"&&(j.CA=ie)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return _},set:function(ie){_=ie}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return _.substr(1,_.length-1)},set:function(ie){_="/"+ie}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ci.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};$i(ca,la),As.prototype.setAppearance=function(C){if(!("createAppearanceStream"in C)||!("getCA"in C))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var h in this.Kids)if(this.Kids.hasOwnProperty(h)){var _=this.Kids[h];_.appearanceStreamContent=C.createAppearanceStream(_.optionName),_.caption=C.getCA()}},As.prototype.createOption=function(C){var h=new ca;return h.Parent=this,h.optionName=C,this.Kids.push(h),fl.call(this.scope,h),h};var ea=function(){Ji.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ci.CheckBox.createAppearanceStream()};$i(ea,Ji);var Va=function(){la.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,13)},set:function(h){h?this.Ff=Pn(this.Ff,13):this.Ff=as(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,21)},set:function(h){h?this.Ff=Pn(this.Ff,21):this.Ff=as(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,23)},set:function(h){h?this.Ff=Pn(this.Ff,23):this.Ff=as(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,24)},set:function(h){h?this.Ff=Pn(this.Ff,24):this.Ff=as(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,25)},set:function(h){h?this.Ff=Pn(this.Ff,25):this.Ff=as(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,26)},set:function(h){h?this.Ff=Pn(this.Ff,26):this.Ff=as(this.Ff,26)}});var C=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return C},set:function(h){C=h}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return C},set:function(h){Number.isInteger(h)&&(C=h)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};$i(Va,la);var ta=function(){Va.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Rs(this.Ff,14)},set:function(C){C?this.Ff=Pn(this.Ff,14):this.Ff=as(this.Ff,14)}}),this.password=!0};$i(ta,Va);var ci={CheckBox:{createAppearanceStream:function(){return{N:{On:ci.CheckBox.YesNormal},D:{On:ci.CheckBox.YesPushDown,Off:ci.CheckBox.OffPushDown}}},YesPushDown:function(C){var h=aa(C);h.scope=C.scope;var _=[],j=C.scope.internal.getFont(C.fontName,C.fontStyle).id,ie=C.scope.__private__.encodeColorString(C.color),X=Di(C,C.caption);return _.push("0.749023 g"),_.push("0 0 "+Ri(ci.internal.getWidth(C))+" "+Ri(ci.internal.getHeight(C))+" re"),_.push("f"),_.push("BMC"),_.push("q"),_.push("0 0 1 rg"),_.push("/"+j+" "+Ri(X.fontSize)+" Tf "+ie),_.push("BT"),_.push(X.text),_.push("ET"),_.push("Q"),_.push("EMC"),h.stream=_.join(`
|
|
|
`),h},YesNormal:function(C){var h=aa(C);h.scope=C.scope;var _=C.scope.internal.getFont(C.fontName,C.fontStyle).id,j=C.scope.__private__.encodeColorString(C.color),ie=[],X=ci.internal.getHeight(C),me=ci.internal.getWidth(C),De=Di(C,C.caption);return ie.push("1 g"),ie.push("0 0 "+Ri(me)+" "+Ri(X)+" re"),ie.push("f"),ie.push("q"),ie.push("0 0 1 rg"),ie.push("0 0 "+Ri(me-1)+" "+Ri(X-1)+" re"),ie.push("W"),ie.push("n"),ie.push("0 g"),ie.push("BT"),ie.push("/"+_+" "+Ri(De.fontSize)+" Tf "+j),ie.push(De.text),ie.push("ET"),ie.push("Q"),h.stream=ie.join(`
|
|
|
`),h},OffPushDown:function(C){var h=aa(C);h.scope=C.scope;var _=[];return _.push("0.749023 g"),_.push("0 0 "+Ri(ci.internal.getWidth(C))+" "+Ri(ci.internal.getHeight(C))+" re"),_.push("f"),h.stream=_.join(`
|
|
|
`),h}},RadioButton:{Circle:{createAppearanceStream:function(C){var h={D:{Off:ci.RadioButton.Circle.OffPushDown},N:{}};return h.N[C]=ci.RadioButton.Circle.YesNormal,h.D[C]=ci.RadioButton.Circle.YesPushDown,h},getCA:function(){return"l"},YesNormal:function(C){var h=aa(C);h.scope=C.scope;var _=[],j=ci.internal.getWidth(C)<=ci.internal.getHeight(C)?ci.internal.getWidth(C)/4:ci.internal.getHeight(C)/4;j=Number((.9*j).toFixed(5));var ie=ci.internal.Bezier_C,X=Number((j*ie).toFixed(5));return _.push("q"),_.push("1 0 0 1 "+ks(ci.internal.getWidth(C)/2)+" "+ks(ci.internal.getHeight(C)/2)+" cm"),_.push(j+" 0 m"),_.push(j+" "+X+" "+X+" "+j+" 0 "+j+" c"),_.push("-"+X+" "+j+" -"+j+" "+X+" -"+j+" 0 c"),_.push("-"+j+" -"+X+" -"+X+" -"+j+" 0 -"+j+" c"),_.push(X+" -"+j+" "+j+" -"+X+" "+j+" 0 c"),_.push("f"),_.push("Q"),h.stream=_.join(`
|
|
|
`),h},YesPushDown:function(C){var h=aa(C);h.scope=C.scope;var _=[],j=ci.internal.getWidth(C)<=ci.internal.getHeight(C)?ci.internal.getWidth(C)/4:ci.internal.getHeight(C)/4;j=Number((.9*j).toFixed(5));var ie=Number((2*j).toFixed(5)),X=Number((ie*ci.internal.Bezier_C).toFixed(5)),me=Number((j*ci.internal.Bezier_C).toFixed(5));return _.push("0.749023 g"),_.push("q"),_.push("1 0 0 1 "+ks(ci.internal.getWidth(C)/2)+" "+ks(ci.internal.getHeight(C)/2)+" cm"),_.push(ie+" 0 m"),_.push(ie+" "+X+" "+X+" "+ie+" 0 "+ie+" c"),_.push("-"+X+" "+ie+" -"+ie+" "+X+" -"+ie+" 0 c"),_.push("-"+ie+" -"+X+" -"+X+" -"+ie+" 0 -"+ie+" c"),_.push(X+" -"+ie+" "+ie+" -"+X+" "+ie+" 0 c"),_.push("f"),_.push("Q"),_.push("0 g"),_.push("q"),_.push("1 0 0 1 "+ks(ci.internal.getWidth(C)/2)+" "+ks(ci.internal.getHeight(C)/2)+" cm"),_.push(j+" 0 m"),_.push(j+" "+me+" "+me+" "+j+" 0 "+j+" c"),_.push("-"+me+" "+j+" -"+j+" "+me+" -"+j+" 0 c"),_.push("-"+j+" -"+me+" -"+me+" -"+j+" 0 -"+j+" c"),_.push(me+" -"+j+" "+j+" -"+me+" "+j+" 0 c"),_.push("f"),_.push("Q"),h.stream=_.join(`
|
|
|
`),h},OffPushDown:function(C){var h=aa(C);h.scope=C.scope;var _=[],j=ci.internal.getWidth(C)<=ci.internal.getHeight(C)?ci.internal.getWidth(C)/4:ci.internal.getHeight(C)/4;j=Number((.9*j).toFixed(5));var ie=Number((2*j).toFixed(5)),X=Number((ie*ci.internal.Bezier_C).toFixed(5));return _.push("0.749023 g"),_.push("q"),_.push("1 0 0 1 "+ks(ci.internal.getWidth(C)/2)+" "+ks(ci.internal.getHeight(C)/2)+" cm"),_.push(ie+" 0 m"),_.push(ie+" "+X+" "+X+" "+ie+" 0 "+ie+" c"),_.push("-"+X+" "+ie+" -"+ie+" "+X+" -"+ie+" 0 c"),_.push("-"+ie+" -"+X+" -"+X+" -"+ie+" 0 -"+ie+" c"),_.push(X+" -"+ie+" "+ie+" -"+X+" "+ie+" 0 c"),_.push("f"),_.push("Q"),h.stream=_.join(`
|
|
|
`),h}},Cross:{createAppearanceStream:function(C){var h={D:{Off:ci.RadioButton.Cross.OffPushDown},N:{}};return h.N[C]=ci.RadioButton.Cross.YesNormal,h.D[C]=ci.RadioButton.Cross.YesPushDown,h},getCA:function(){return"8"},YesNormal:function(C){var h=aa(C);h.scope=C.scope;var _=[],j=ci.internal.calculateCross(C);return _.push("q"),_.push("1 1 "+Ri(ci.internal.getWidth(C)-2)+" "+Ri(ci.internal.getHeight(C)-2)+" re"),_.push("W"),_.push("n"),_.push(Ri(j.x1.x)+" "+Ri(j.x1.y)+" m"),_.push(Ri(j.x2.x)+" "+Ri(j.x2.y)+" l"),_.push(Ri(j.x4.x)+" "+Ri(j.x4.y)+" m"),_.push(Ri(j.x3.x)+" "+Ri(j.x3.y)+" l"),_.push("s"),_.push("Q"),h.stream=_.join(`
|
|
|
`),h},YesPushDown:function(C){var h=aa(C);h.scope=C.scope;var _=ci.internal.calculateCross(C),j=[];return j.push("0.749023 g"),j.push("0 0 "+Ri(ci.internal.getWidth(C))+" "+Ri(ci.internal.getHeight(C))+" re"),j.push("f"),j.push("q"),j.push("1 1 "+Ri(ci.internal.getWidth(C)-2)+" "+Ri(ci.internal.getHeight(C)-2)+" re"),j.push("W"),j.push("n"),j.push(Ri(_.x1.x)+" "+Ri(_.x1.y)+" m"),j.push(Ri(_.x2.x)+" "+Ri(_.x2.y)+" l"),j.push(Ri(_.x4.x)+" "+Ri(_.x4.y)+" m"),j.push(Ri(_.x3.x)+" "+Ri(_.x3.y)+" l"),j.push("s"),j.push("Q"),h.stream=j.join(`
|
|
|
`),h},OffPushDown:function(C){var h=aa(C);h.scope=C.scope;var _=[];return _.push("0.749023 g"),_.push("0 0 "+Ri(ci.internal.getWidth(C))+" "+Ri(ci.internal.getHeight(C))+" re"),_.push("f"),h.stream=_.join(`
|
|
|
`),h}}},createDefaultAppearanceStream:function(C){var h=C.scope.internal.getFont(C.fontName,C.fontStyle).id,_=C.scope.__private__.encodeColorString(C.color);return"/"+h+" "+C.fontSize+" Tf "+_}};ci.internal={Bezier_C:.551915024494,calculateCross:function(C){var h=ci.internal.getWidth(C),_=ci.internal.getHeight(C),j=Math.min(h,_);return{x1:{x:(h-j)/2,y:(_-j)/2+j},x2:{x:(h-j)/2+j,y:(_-j)/2},x3:{x:(h-j)/2,y:(_-j)/2},x4:{x:(h-j)/2+j,y:(_-j)/2+j}}}},ci.internal.getWidth=function(C){var h=0;return(0,le.Z)(C)==="object"&&(h=Pa(C.Rect[2])),h},ci.internal.getHeight=function(C){var h=0;return(0,le.Z)(C)==="object"&&(h=Pa(C.Rect[3])),h};var fl=Ui.addField=function(C){if(na(this,C),!(C instanceof la))throw new Error("Invalid argument passed to jsPDF.addField.");var h;return(h=C).scope.internal.acroformPlugin.printedOut&&(h.scope.internal.acroformPlugin.printedOut=!1,h.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),h.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(h),C.page=C.scope.internal.getCurrentPageInfo().pageNumber,this};Ui.AcroFormChoiceField=ua,Ui.AcroFormListBox=Xs,Ui.AcroFormComboBox=li,Ui.AcroFormEditBox=oi,Ui.AcroFormButton=Ji,Ui.AcroFormPushButton=$s,Ui.AcroFormRadioButton=As,Ui.AcroFormCheckBox=ea,Ui.AcroFormTextField=Va,Ui.AcroFormPasswordField=ta,Ui.AcroFormAppearance=ci,Ui.AcroForm={ChoiceField:ua,ListBox:Xs,ComboBox:li,EditBox:oi,Button:Ji,PushButton:$s,RadioButton:As,CheckBox:ea,TextField:Va,PasswordField:ta,Appearance:ci},gi.AcroForm={ChoiceField:ua,ListBox:Xs,ComboBox:li,EditBox:oi,Button:Ji,PushButton:$s,RadioButton:As,CheckBox:ea,TextField:Va,PasswordField:ta,Appearance:ci};var Aa=gi.AcroForm;function ko(C){return C.reduce(function(h,_,j){return h[_]=j,h},{})}(function(C){C.__addimage__={};var h="UNKNOWN",_={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},j=C.__addimage__.getImageFileTypeByImageData=function(Nt,Wt){var Cr,ge,Pe,Ye,st,ot=h;if((Wt=Wt||h)==="RGBA"||Nt.data!==void 0&&Nt.data instanceof Uint8ClampedArray&&"height"in Nt&&"width"in Nt)return"RGBA";if(Gn(Nt))for(st in _)for(Pe=_[st],Cr=0;Cr<Pe.length;Cr+=1){for(Ye=!0,ge=0;ge<Pe[Cr].length;ge+=1)if(Pe[Cr][ge]!==void 0&&Pe[Cr][ge]!==Nt[ge]){Ye=!1;break}if(Ye===!0){ot=st;break}}else for(st in _)for(Pe=_[st],Cr=0;Cr<Pe.length;Cr+=1){for(Ye=!0,ge=0;ge<Pe[Cr].length;ge+=1)if(Pe[Cr][ge]!==void 0&&Pe[Cr][ge]!==Nt.charCodeAt(ge)){Ye=!1;break}if(Ye===!0){ot=st;break}}return ot===h&&Wt!==h&&(ot=Wt),ot},ie=function Nt(Wt){for(var Cr=this.internal.write,ge=this.internal.putStream,Pe=(0,this.internal.getFilters)();Pe.indexOf("FlateEncode")!==-1;)Pe.splice(Pe.indexOf("FlateEncode"),1);Wt.objectId=this.internal.newObject();var Ye=[];if(Ye.push({key:"Type",value:"/XObject"}),Ye.push({key:"Subtype",value:"/Image"}),Ye.push({key:"Width",value:Wt.width}),Ye.push({key:"Height",value:Wt.height}),Wt.colorSpace===or.INDEXED?Ye.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Wt.palette.length/3-1)+" "+("sMask"in Wt&&Wt.sMask!==void 0?Wt.objectId+2:Wt.objectId+1)+" 0 R]"}):(Ye.push({key:"ColorSpace",value:"/"+Wt.colorSpace}),Wt.colorSpace===or.DEVICE_CMYK&&Ye.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Ye.push({key:"BitsPerComponent",value:Wt.bitsPerComponent}),"decodeParameters"in Wt&&Wt.decodeParameters!==void 0&&Ye.push({key:"DecodeParms",value:"<<"+Wt.decodeParameters+">>"}),"transparency"in Wt&&Array.isArray(Wt.transparency)){for(var st="",ot=0,gt=Wt.transparency.length;ot<gt;ot++)st+=Wt.transparency[ot]+" "+Wt.transparency[ot]+" ";Ye.push({key:"Mask",value:"["+st+"]"})}Wt.sMask!==void 0&&Ye.push({key:"SMask",value:Wt.objectId+1+" 0 R"});var Ft=Wt.filter!==void 0?["/"+Wt.filter]:void 0;if(ge({data:Wt.data,additionalKeyValues:Ye,alreadyAppliedFilters:Ft,objectId:Wt.objectId}),Cr("endobj"),"sMask"in Wt&&Wt.sMask!==void 0){var er="/Predictor "+Wt.predictor+" /Colors 1 /BitsPerComponent "+Wt.bitsPerComponent+" /Columns "+Wt.width,je={width:Wt.width,height:Wt.height,colorSpace:"DeviceGray",bitsPerComponent:Wt.bitsPerComponent,decodeParameters:er,data:Wt.sMask};"filter"in Wt&&(je.filter=Wt.filter),Nt.call(this,je)}if(Wt.colorSpace===or.INDEXED){var at=this.internal.newObject();ge({data:br(new Uint8Array(Wt.palette)),objectId:at}),Cr("endobj")}},X=function(){var Nt=this.internal.collections.addImage_images;for(var Wt in Nt)ie.call(this,Nt[Wt])},me=function(){var Nt,Wt=this.internal.collections.addImage_images,Cr=this.internal.write;for(var ge in Wt)Cr("/I"+(Nt=Wt[ge]).index,Nt.objectId,"0","R")},De=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",X),this.internal.events.subscribe("putXobjectDict",me))},ke=function(){var Nt=this.internal.collections.addImage_images;return De.call(this),Nt},et=function(){return Object.keys(this.internal.collections.addImage_images).length},dt=function(Nt){return typeof C["process"+Nt.toUpperCase()]=="function"},ft=function(Nt){return(0,le.Z)(Nt)==="object"&&Nt.nodeType===1},Ct=function(Nt,Wt){if(Nt.nodeName==="IMG"&&Nt.hasAttribute("src")){var Cr=""+Nt.getAttribute("src");if(Cr.indexOf("data:image/")===0)return si(unescape(Cr).split("base64,").pop());var ge=C.loadFile(Cr,!0);if(ge!==void 0)return ge}if(Nt.nodeName==="CANVAS"){if(Nt.width===0||Nt.height===0)throw new Error("Given canvas must have data. Canvas width: "+Nt.width+", height: "+Nt.height);var Pe;switch(Wt){case"PNG":Pe="image/png";break;case"WEBP":Pe="image/webp";break;case"JPEG":case"JPG":default:Pe="image/jpeg"}return si(Nt.toDataURL(Pe,1).split("base64,").pop())}},Ve=function(Nt){var Wt=this.internal.collections.addImage_images;if(Wt){for(var Cr in Wt)if(Nt===Wt[Cr].alias)return Wt[Cr]}},nr=function(Nt,Wt,Cr){return Nt||Wt||(Nt=-96,Wt=-96),Nt<0&&(Nt=-1*Cr.width*72/Nt/this.internal.scaleFactor),Wt<0&&(Wt=-1*Cr.height*72/Wt/this.internal.scaleFactor),Nt===0&&(Nt=Wt*Cr.width/Cr.height),Wt===0&&(Wt=Nt*Cr.height/Cr.width),[Nt,Wt]},Zt=function(Nt,Wt,Cr,ge,Pe,Ye){var st=nr.call(this,Cr,ge,Pe),ot=this.internal.getCoordinateString,gt=this.internal.getVerticalCoordinateString,Ft=ke.call(this);if(Cr=st[0],ge=st[1],Ft[Pe.index]=Pe,Ye){Ye*=Math.PI/180;var er=Math.cos(Ye),je=Math.sin(Ye),at=function(bt){return bt.toFixed(4)},Ie=[at(er),at(je),at(-1*je),at(er),0,0,"cm"]}this.internal.write("q"),Ye?(this.internal.write([1,"0","0",1,ot(Nt),gt(Wt+ge),"cm"].join(" ")),this.internal.write(Ie.join(" ")),this.internal.write([ot(Cr),"0","0",ot(ge),"0","0","cm"].join(" "))):this.internal.write([ot(Cr),"0","0",ot(ge),ot(Nt),gt(Wt+ge),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Pe.index+" Do"),this.internal.write("Q")},or=C.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};C.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Lt=C.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},ar=C.__addimage__.sHashCode=function(Nt){var Wt,Cr,ge=0;if(typeof Nt=="string")for(Cr=Nt.length,Wt=0;Wt<Cr;Wt++)ge=(ge<<5)-ge+Nt.charCodeAt(Wt),ge|=0;else if(Gn(Nt))for(Cr=Nt.byteLength/2,Wt=0;Wt<Cr;Wt++)ge=(ge<<5)-ge+Nt[Wt],ge|=0;return ge},Ir=C.__addimage__.validateStringAsBase64=function(Nt){(Nt=Nt||"").toString().trim();var Wt=!0;return Nt.length===0&&(Wt=!1),Nt.length%4!=0&&(Wt=!1),/^[A-Za-z0-9+/]+$/.test(Nt.substr(0,Nt.length-2))===!1&&(Wt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Nt.substr(-2))===!1&&(Wt=!1),Wt},Zr=C.__addimage__.extractImageFromDataUrl=function(Nt){if(Nt==null||!(Nt=Nt.trim()).startsWith("data:"))return null;var Wt=Nt.indexOf(",");return Wt<0?null:Nt.substring(0,Wt).trim().endsWith("base64")?Nt.substring(Wt+1):null},mn=C.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};C.__addimage__.isArrayBuffer=function(Nt){return mn()&&Nt instanceof ArrayBuffer};var Gn=C.__addimage__.isArrayBufferView=function(Nt){return mn()&&typeof Uint32Array!="undefined"&&(Nt instanceof Int8Array||Nt instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Nt instanceof Uint8ClampedArray||Nt instanceof Int16Array||Nt instanceof Uint16Array||Nt instanceof Int32Array||Nt instanceof Uint32Array||Nt instanceof Float32Array||Nt instanceof Float64Array)},Jr=C.__addimage__.binaryStringToUint8Array=function(Nt){for(var Wt=Nt.length,Cr=new Uint8Array(Wt),ge=0;ge<Wt;ge++)Cr[ge]=Nt.charCodeAt(ge);return Cr},br=C.__addimage__.arrayBufferToBinaryString=function(Nt){for(var Wt="",Cr=Gn(Nt)?Nt:new Uint8Array(Nt),ge=0;ge<Cr.length;ge+=8192)Wt+=String.fromCharCode.apply(null,Cr.subarray(ge,ge+8192));return Wt};C.addImage=function(){var Nt,Wt,Cr,ge,Pe,Ye,st,ot,gt;if(typeof arguments[1]=="number"?(Wt=h,Cr=arguments[1],ge=arguments[2],Pe=arguments[3],Ye=arguments[4],st=arguments[5],ot=arguments[6],gt=arguments[7]):(Wt=arguments[1],Cr=arguments[2],ge=arguments[3],Pe=arguments[4],Ye=arguments[5],st=arguments[6],ot=arguments[7],gt=arguments[8]),(0,le.Z)(Nt=arguments[0])==="object"&&!ft(Nt)&&"imageData"in Nt){var Ft=Nt;Nt=Ft.imageData,Wt=Ft.format||Wt||h,Cr=Ft.x||Cr||0,ge=Ft.y||ge||0,Pe=Ft.w||Ft.width||Pe,Ye=Ft.h||Ft.height||Ye,st=Ft.alias||st,ot=Ft.compression||ot,gt=Ft.rotation||Ft.angle||gt}var er=this.internal.getFilters();if(ot===void 0&&er.indexOf("FlateEncode")!==-1&&(ot="SLOW"),isNaN(Cr)||isNaN(ge))throw new Error("Invalid coordinates passed to jsPDF.addImage");De.call(this);var je=en.call(this,Nt,Wt,st,ot);return Zt.call(this,Cr,ge,Pe,Ye,je,gt),this};var en=function(Nt,Wt,Cr,ge){var Pe,Ye,st;if(typeof Nt=="string"&&j(Nt)===h){Nt=unescape(Nt);var ot=In(Nt,!1);(ot!==""||(ot=C.loadFile(Nt,!0))!==void 0)&&(Nt=ot)}if(ft(Nt)&&(Nt=Ct(Nt,Wt)),Wt=j(Nt,Wt),!dt(Wt))throw new Error("addImage does not support files of type '"+Wt+"', please ensure that a plugin for '"+Wt+"' support is added.");if(((st=Cr)==null||st.length===0)&&(Cr=function(gt){return typeof gt=="string"||Gn(gt)?ar(gt):Gn(gt.data)?ar(gt.data):null}(Nt)),(Pe=Ve.call(this,Cr))||(mn()&&(Nt instanceof Uint8Array||Wt==="RGBA"||(Ye=Nt,Nt=Jr(Nt))),Pe=this["process"+Wt.toUpperCase()](Nt,et.call(this),Cr,function(gt){return gt&&typeof gt=="string"&&(gt=gt.toUpperCase()),gt in C.image_compression?gt:Lt.NONE}(ge),Ye)),!Pe)throw new Error("An unknown error occurred whilst processing the image.");return Pe},In=C.__addimage__.convertBase64ToBinaryString=function(Nt,Wt){Wt=typeof Wt!="boolean"||Wt;var Cr,ge="";if(typeof Nt=="string"){var Pe;Cr=(Pe=Zr(Nt))!==null&&Pe!==void 0?Pe:Nt;try{ge=si(Cr)}catch(Ye){if(Wt)throw Ir(Cr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Ye.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ge};C.getImageProperties=function(Nt){var Wt,Cr,ge="";if(ft(Nt)&&(Nt=Ct(Nt)),typeof Nt=="string"&&j(Nt)===h&&((ge=In(Nt,!1))===""&&(ge=C.loadFile(Nt)||""),Nt=ge),Cr=j(Nt),!dt(Cr))throw new Error("addImage does not support files of type '"+Cr+"', please ensure that a plugin for '"+Cr+"' support is added.");if(!mn()||Nt instanceof Uint8Array||(Nt=Jr(Nt)),!(Wt=this["process"+Cr.toUpperCase()](Nt)))throw new Error("An unknown error occurred whilst processing the image");return Wt.fileType=Cr,Wt}})(gi.API),function(C){var h=function(_){if(_!==void 0&&_!="")return!0};gi.API.events.push(["addPage",function(_){this.internal.getPageInfo(_.pageNumber).pageContext.annotations=[]}]),C.events.push(["putPage",function(_){for(var j,ie,X,me=this.internal.getCoordinateString,De=this.internal.getVerticalCoordinateString,ke=this.internal.getPageInfoByObjId(_.objId),et=_.pageContext.annotations,dt=!1,ft=0;ft<et.length&&!dt;ft++)switch((j=et[ft]).type){case"link":(h(j.options.url)||h(j.options.pageNumber))&&(dt=!0);break;case"reference":case"text":case"freetext":dt=!0}if(dt!=0){this.internal.write("/Annots [");for(var Ct=0;Ct<et.length;Ct++){j=et[Ct];var Ve=this.internal.pdfEscape,nr=this.internal.getEncryptor(_.objId);switch(j.type){case"reference":this.internal.write(" "+j.object.objId+" 0 R ");break;case"text":var Zt=this.internal.newAdditionalObject(),or=this.internal.newAdditionalObject(),Lt=this.internal.getEncryptor(Zt.objId),ar=j.title||"Note";X="<</Type /Annot /Subtype /Text "+(ie="/Rect ["+me(j.bounds.x)+" "+De(j.bounds.y+j.bounds.h)+" "+me(j.bounds.x+j.bounds.w)+" "+De(j.bounds.y)+"] ")+"/Contents ("+Ve(Lt(j.contents))+")",X+=" /Popup "+or.objId+" 0 R",X+=" /P "+ke.objId+" 0 R",X+=" /T ("+Ve(Lt(ar))+") >>",Zt.content=X;var Ir=Zt.objId+" 0 R";X="<</Type /Annot /Subtype /Popup "+(ie="/Rect ["+me(j.bounds.x+30)+" "+De(j.bounds.y+j.bounds.h)+" "+me(j.bounds.x+j.bounds.w+30)+" "+De(j.bounds.y)+"] ")+" /Parent "+Ir,j.open&&(X+=" /Open true"),X+=" >>",or.content=X,this.internal.write(Zt.objId,"0 R",or.objId,"0 R");break;case"freetext":ie="/Rect ["+me(j.bounds.x)+" "+De(j.bounds.y)+" "+me(j.bounds.x+j.bounds.w)+" "+De(j.bounds.y+j.bounds.h)+"] ";var Zr=j.color||"#000000";X="<</Type /Annot /Subtype /FreeText "+ie+"/Contents ("+Ve(nr(j.contents))+")",X+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Zr+")",X+=" /Border [0 0 0]",X+=" >>",this.internal.write(X);break;case"link":if(j.options.name){var mn=this.annotations._nameMap[j.options.name];j.options.pageNumber=mn.page,j.options.top=mn.y}else j.options.top||(j.options.top=0);if(ie="/Rect ["+j.finalBounds.x+" "+j.finalBounds.y+" "+j.finalBounds.w+" "+j.finalBounds.h+"] ",X="",j.options.url)X="<</Type /Annot /Subtype /Link "+ie+"/Border [0 0 0] /A <</S /URI /URI ("+Ve(nr(j.options.url))+") >>";else if(j.options.pageNumber)switch(X="<</Type /Annot /Subtype /Link "+ie+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(j.options.pageNumber).objId+" 0 R",j.options.magFactor=j.options.magFactor||"XYZ",j.options.magFactor){case"Fit":X+=" /Fit]";break;case"FitH":X+=" /FitH "+j.options.top+"]";break;case"FitV":j.options.left=j.options.left||0,X+=" /FitV "+j.options.left+"]";break;case"XYZ":default:var Gn=De(j.options.top);j.options.left=j.options.left||0,j.options.zoom===void 0&&(j.options.zoom=0),X+=" /XYZ "+j.options.left+" "+Gn+" "+j.options.zoom+"]"}X!=""&&(X+=" >>",this.internal.write(X))}}this.internal.write("]")}}]),C.createAnnotation=function(_){var j=this.internal.getCurrentPageInfo();switch(_.type){case"link":this.link(_.bounds.x,_.bounds.y,_.bounds.w,_.bounds.h,_);break;case"text":case"freetext":j.pageContext.annotations.push(_)}},C.link=function(_,j,ie,X,me){var De=this.internal.getCurrentPageInfo(),ke=this.internal.getCoordinateString,et=this.internal.getVerticalCoordinateString;De.pageContext.annotations.push({finalBounds:{x:ke(_),y:et(j),w:ke(_+ie),h:et(j+X)},options:me,type:"link"})},C.textWithLink=function(_,j,ie,X){var me,De,ke=this.getTextWidth(_),et=this.internal.getLineHeight()/this.internal.scaleFactor;if(X.maxWidth!==void 0){De=X.maxWidth;var dt=this.splitTextToSize(_,De).length;me=Math.ceil(et*dt)}else De=ke,me=et;return this.text(_,j,ie,X),ie+=.2*et,X.align==="center"&&(j-=ke/2),X.align==="right"&&(j-=ke),this.link(j,ie-et,De,me,X),ke},C.getTextWidth=function(_){var j=this.internal.getFontSize();return this.getStringUnitWidth(_)*j/this.internal.scaleFactor}}(gi.API),function(C){var h={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},_={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},j={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ie=[1570,1571,1573,1575];C.__arabicParser__={};var X=C.__arabicParser__.isInArabicSubstitutionA=function(Zt){return h[Zt.charCodeAt(0)]!==void 0},me=C.__arabicParser__.isArabicLetter=function(Zt){return typeof Zt=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Zt)},De=C.__arabicParser__.isArabicEndLetter=function(Zt){return me(Zt)&&X(Zt)&&h[Zt.charCodeAt(0)].length<=2},ke=C.__arabicParser__.isArabicAlfLetter=function(Zt){return me(Zt)&&ie.indexOf(Zt.charCodeAt(0))>=0};C.__arabicParser__.arabicLetterHasIsolatedForm=function(Zt){return me(Zt)&&X(Zt)&&h[Zt.charCodeAt(0)].length>=1};var et=C.__arabicParser__.arabicLetterHasFinalForm=function(Zt){return me(Zt)&&X(Zt)&&h[Zt.charCodeAt(0)].length>=2};C.__arabicParser__.arabicLetterHasInitialForm=function(Zt){return me(Zt)&&X(Zt)&&h[Zt.charCodeAt(0)].length>=3};var dt=C.__arabicParser__.arabicLetterHasMedialForm=function(Zt){return me(Zt)&&X(Zt)&&h[Zt.charCodeAt(0)].length==4},ft=C.__arabicParser__.resolveLigatures=function(Zt){var or=0,Lt=_,ar="",Ir=0;for(or=0;or<Zt.length;or+=1)Lt[Zt.charCodeAt(or)]!==void 0?(Ir++,typeof(Lt=Lt[Zt.charCodeAt(or)])=="number"&&(ar+=String.fromCharCode(Lt),Lt=_,Ir=0),or===Zt.length-1&&(Lt=_,ar+=Zt.charAt(or-(Ir-1)),or-=Ir-1,Ir=0)):(Lt=_,ar+=Zt.charAt(or-Ir),or-=Ir,Ir=0);return ar};C.__arabicParser__.isArabicDiacritic=function(Zt){return Zt!==void 0&&j[Zt.charCodeAt(0)]!==void 0};var Ct=C.__arabicParser__.getCorrectForm=function(Zt,or,Lt){return me(Zt)?X(Zt)===!1?-1:!et(Zt)||!me(or)&&!me(Lt)||!me(Lt)&&De(or)||De(Zt)&&!me(or)||De(Zt)&&ke(or)||De(Zt)&&De(or)?0:dt(Zt)&&me(or)&&!De(or)&&me(Lt)&&et(Lt)?3:De(Zt)||!me(Lt)?1:2:-1},Ve=function(Zt){var or=0,Lt=0,ar=0,Ir="",Zr="",mn="",Gn=(Zt=Zt||"").split("\\s+"),Jr=[];for(or=0;or<Gn.length;or+=1){for(Jr.push(""),Lt=0;Lt<Gn[or].length;Lt+=1)Ir=Gn[or][Lt],Zr=Gn[or][Lt-1],mn=Gn[or][Lt+1],me(Ir)?(ar=Ct(Ir,Zr,mn),Jr[or]+=ar!==-1?String.fromCharCode(h[Ir.charCodeAt(0)][ar]):Ir):Jr[or]+=Ir;Jr[or]=ft(Jr[or])}return Jr.join(" ")},nr=C.__arabicParser__.processArabic=C.processArabic=function(){var Zt,or=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Lt=[];if(Array.isArray(or)){var ar=0;for(Lt=[],ar=0;ar<or.length;ar+=1)Array.isArray(or[ar])?Lt.push([Ve(or[ar][0]),or[ar][1],or[ar][2]]):Lt.push([Ve(or[ar])]);Zt=Lt}else Zt=Ve(or);return typeof arguments[0]=="string"?Zt:(arguments[0].text=Zt,arguments[0])};C.events.push(["preProcessText",nr])}(gi.API),gi.API.autoPrint=function(C){var h;switch((C=C||{}).variant=C.variant||"non-conform",C.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){h=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+h+" 0 R")})}return this},function(C){var h=function(){var _=void 0;Object.defineProperty(this,"pdf",{get:function(){return _},set:function(De){_=De}});var j=150;Object.defineProperty(this,"width",{get:function(){return j},set:function(De){j=isNaN(De)||Number.isInteger(De)===!1||De<0?150:De,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=j+1)}});var ie=300;Object.defineProperty(this,"height",{get:function(){return ie},set:function(De){ie=isNaN(De)||Number.isInteger(De)===!1||De<0?300:De,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ie+1)}});var X=[];Object.defineProperty(this,"childNodes",{get:function(){return X},set:function(De){X=De}});var me={};Object.defineProperty(this,"style",{get:function(){return me},set:function(De){me=De}}),Object.defineProperty(this,"parentNode",{})};h.prototype.getContext=function(_,j){var ie;if((_=_||"2d")!=="2d")return null;for(ie in j)this.pdf.context2d.hasOwnProperty(ie)&&(this.pdf.context2d[ie]=j[ie]);return this.pdf.context2d._canvas=this,this.pdf.context2d},h.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},C.events.push(["initialized",function(){this.canvas=new h,this.canvas.pdf=this}])}(gi.API),function(C){var h={left:0,top:0,bottom:0,right:0},_=!1,j=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},h),this.internal.__cell__.margins.width=this.getPageWidth(),ie.call(this))},ie=function(){this.internal.__cell__.lastCell=new X,this.internal.__cell__.pages=1},X=function(){var ke=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ke},set:function(Zt){ke=Zt}});var et=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return et},set:function(Zt){et=Zt}});var dt=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return dt},set:function(Zt){dt=Zt}});var ft=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return ft},set:function(Zt){ft=Zt}});var Ct=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Ct},set:function(Zt){Ct=Zt}});var Ve=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Ve},set:function(Zt){Ve=Zt}});var nr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return nr},set:function(Zt){nr=Zt}}),this};X.prototype.clone=function(){return new X(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},X.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},C.setHeaderFunction=function(ke){return j.call(this),this.internal.__cell__.headerFunction=typeof ke=="function"?ke:void 0,this},C.getTextDimensions=function(ke,et){j.call(this);var dt=(et=et||{}).fontSize||this.getFontSize(),ft=et.font||this.getFont(),Ct=et.scaleFactor||this.internal.scaleFactor,Ve=0,nr=0,Zt=0,or=this;if(!Array.isArray(ke)&&typeof ke!="string"){if(typeof ke!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ke=String(ke)}var Lt=et.maxWidth;Lt>0?typeof ke=="string"?ke=this.splitTextToSize(ke,Lt):Object.prototype.toString.call(ke)==="[object Array]"&&(ke=ke.reduce(function(Ir,Zr){return Ir.concat(or.splitTextToSize(Zr,Lt))},[])):ke=Array.isArray(ke)?ke:[ke];for(var ar=0;ar<ke.length;ar++)Ve<(Zt=this.getStringUnitWidth(ke[ar],{font:ft})*dt)&&(Ve=Zt);return Ve!==0&&(nr=ke.length),{w:Ve/=Ct,h:Math.max((nr*dt*this.getLineHeightFactor()-dt*(this.getLineHeightFactor()-1))/Ct,0)}},C.cellAddPage=function(){j.call(this),this.addPage();var ke=this.internal.__cell__.margins||h;return this.internal.__cell__.lastCell=new X(ke.left,ke.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var me=C.cell=function(){var ke;ke=arguments[0]instanceof X?arguments[0]:new X(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),j.call(this);var et=this.internal.__cell__.lastCell,dt=this.internal.__cell__.padding,ft=this.internal.__cell__.margins||h,Ct=this.internal.__cell__.tableHeaderRow,Ve=this.internal.__cell__.printHeaders;return et.lineNumber!==void 0&&(et.lineNumber===ke.lineNumber?(ke.x=(et.x||0)+(et.width||0),ke.y=et.y||0):et.y+et.height+ke.height+ft.bottom>this.getPageHeight()?(this.cellAddPage(),ke.y=ft.top,Ve&&Ct&&(this.printHeaderRow(ke.lineNumber,!0),ke.y+=Ct[0].height)):ke.y=et.y+et.height||ke.y),ke.text[0]!==void 0&&(this.rect(ke.x,ke.y,ke.width,ke.height,_===!0?"FD":void 0),ke.align==="right"?this.text(ke.text,ke.x+ke.width-dt,ke.y+dt,{align:"right",baseline:"top"}):ke.align==="center"?this.text(ke.text,ke.x+ke.width/2,ke.y+dt,{align:"center",baseline:"top",maxWidth:ke.width-dt-dt}):this.text(ke.text,ke.x+dt,ke.y+dt,{align:"left",baseline:"top",maxWidth:ke.width-dt-dt})),this.internal.__cell__.lastCell=ke,this};C.table=function(ke,et,dt,ft,Ct){if(j.call(this),!dt)throw new Error("No data for PDF table.");var Ve,nr,Zt,or,Lt=[],ar=[],Ir=[],Zr={},mn={},Gn=[],Jr=[],br=(Ct=Ct||{}).autoSize||!1,en=Ct.printHeaders!==!1,In=Ct.css&&Ct.css["font-size"]!==void 0?16*Ct.css["font-size"]:Ct.fontSize||12,Nt=Ct.margins||Object.assign({width:this.getPageWidth()},h),Wt=typeof Ct.padding=="number"?Ct.padding:3,Cr=Ct.headerBackgroundColor||"#c8c8c8",ge=Ct.headerTextColor||"#000";if(ie.call(this),this.internal.__cell__.printHeaders=en,this.internal.__cell__.margins=Nt,this.internal.__cell__.table_font_size=In,this.internal.__cell__.padding=Wt,this.internal.__cell__.headerBackgroundColor=Cr,this.internal.__cell__.headerTextColor=ge,this.setFontSize(In),ft==null)ar=Lt=Object.keys(dt[0]),Ir=Lt.map(function(){return"left"});else if(Array.isArray(ft)&&(0,le.Z)(ft[0])==="object")for(Lt=ft.map(function(Ft){return Ft.name}),ar=ft.map(function(Ft){return Ft.prompt||Ft.name||""}),Ir=ft.map(function(Ft){return Ft.align||"left"}),Ve=0;Ve<ft.length;Ve+=1)mn[ft[Ve].name]=ft[Ve].width*(19.049976/25.4);else Array.isArray(ft)&&typeof ft[0]=="string"&&(ar=Lt=ft,Ir=Lt.map(function(){return"left"}));if(br||Array.isArray(ft)&&typeof ft[0]=="string")for(Ve=0;Ve<Lt.length;Ve+=1){for(Zr[or=Lt[Ve]]=dt.map(function(Ft){return Ft[or]}),this.setFont(void 0,"bold"),Gn.push(this.getTextDimensions(ar[Ve],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),nr=Zr[or],this.setFont(void 0,"normal"),Zt=0;Zt<nr.length;Zt+=1)Gn.push(this.getTextDimensions(nr[Zt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);mn[or]=Math.max.apply(null,Gn)+Wt+Wt,Gn=[]}if(en){var Pe={};for(Ve=0;Ve<Lt.length;Ve+=1)Pe[Lt[Ve]]={},Pe[Lt[Ve]].text=ar[Ve],Pe[Lt[Ve]].align=Ir[Ve];var Ye=De.call(this,Pe,mn);Jr=Lt.map(function(Ft){return new X(ke,et,mn[Ft],Ye,Pe[Ft].text,void 0,Pe[Ft].align)}),this.setTableHeaderRow(Jr),this.printHeaderRow(1,!1)}var st=ft.reduce(function(Ft,er){return Ft[er.name]=er.align,Ft},{});for(Ve=0;Ve<dt.length;Ve+=1){"rowStart"in Ct&&Ct.rowStart instanceof Function&&Ct.rowStart({row:Ve,data:dt[Ve]},this);var ot=De.call(this,dt[Ve],mn);for(Zt=0;Zt<Lt.length;Zt+=1){var gt=dt[Ve][Lt[Zt]];"cellStart"in Ct&&Ct.cellStart instanceof Function&&Ct.cellStart({row:Ve,col:Zt,data:gt},this),me.call(this,new X(ke,et,mn[Lt[Zt]],ot,gt,Ve+2,st[Lt[Zt]]))}}return this.internal.__cell__.table_x=ke,this.internal.__cell__.table_y=et,this};var De=function(ke,et){var dt=this.internal.__cell__.padding,ft=this.internal.__cell__.table_font_size,Ct=this.internal.scaleFactor;return Object.keys(ke).map(function(Ve){var nr=ke[Ve];return this.splitTextToSize(nr.hasOwnProperty("text")?nr.text:nr,et[Ve]-dt-dt)},this).map(function(Ve){return this.getLineHeightFactor()*Ve.length*ft/Ct+dt+dt},this).reduce(function(Ve,nr){return Math.max(Ve,nr)},0)};C.setTableHeaderRow=function(ke){j.call(this),this.internal.__cell__.tableHeaderRow=ke},C.printHeaderRow=function(ke,et){if(j.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var dt;if(_=!0,typeof this.internal.__cell__.headerFunction=="function"){var ft=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new X(ft[0],ft[1],ft[2],ft[3],void 0,-1)}this.setFont(void 0,"bold");for(var Ct=[],Ve=0;Ve<this.internal.__cell__.tableHeaderRow.length;Ve+=1){dt=this.internal.__cell__.tableHeaderRow[Ve].clone(),et&&(dt.y=this.internal.__cell__.margins.top||0,Ct.push(dt)),dt.lineNumber=ke;var nr=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),me.call(this,dt),this.setTextColor(nr)}Ct.length>0&&this.setTableHeaderRow(Ct),this.setFont(void 0,"normal"),_=!1}}(gi.API);var fa={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Sa=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],ys=ko(Sa),Ho=[100,200,300,400,500,600,700,800,900],Ko=ko(Ho);function Fo(C){var h=C.family.replace(/"|'/g,"").toLowerCase(),_=function(X){return fa[X=X||"normal"]?X:"normal"}(C.style),j=function(X){if(!X)return 400;if(typeof X=="number")return X>=100&&X<=900&&X%100==0?X:400;if(/^\d00$/.test(X))return parseInt(X);switch(X){case"bold":return 700;case"normal":default:return 400}}(C.weight),ie=function(X){return typeof ys[X=X||"normal"]=="number"?X:"normal"}(C.stretch);return{family:h,style:_,weight:j,stretch:ie,src:C.src||[],ref:C.ref||{name:h,style:[ie,_,j].join(" ")}}}function mo(C,h,_,j){var ie;for(ie=_;ie>=0&&ie<h.length;ie+=j)if(C[h[ie]])return C[h[ie]];for(ie=_;ie>=0&&ie<h.length;ie-=j)if(C[h[ie]])return C[h[ie]]}var ds={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},es={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function pa(C){return[C.stretch,C.style,C.weight,C.family].join(" ")}function Bs(C,h,_){for(var j=(_=_||{}).defaultFontFamily||"times",ie=Object.assign({},ds,_.genericFontFamilies||{}),X=null,me=null,De=0;De<h.length;++De)if(ie[(X=Fo(h[De])).family]&&(X.family=ie[X.family]),C.hasOwnProperty(X.family)){me=C[X.family];break}if(!(me=me||C[j]))throw new Error("Could not find a font-family for the rule '"+pa(X)+"' and default family '"+j+"'.");if(me=function(ke,et){if(et[ke])return et[ke];var dt=ys[ke],ft=dt<=ys.normal?-1:1,Ct=mo(et,Sa,dt,ft);if(!Ct)throw new Error("Could not find a matching font-stretch value for "+ke);return Ct}(X.stretch,me),me=function(ke,et){if(et[ke])return et[ke];for(var dt=fa[ke],ft=0;ft<dt.length;++ft)if(et[dt[ft]])return et[dt[ft]];throw new Error("Could not find a matching font-style for "+ke)}(X.style,me),!(me=function(ke,et){if(et[ke])return et[ke];if(ke===400&&et[500])return et[500];if(ke===500&&et[400])return et[400];var dt=Ko[ke],ft=mo(et,Ho,dt,ke<400?-1:1);if(!ft)throw new Error("Could not find a matching font-weight for value "+ke);return ft}(X.weight,me)))throw new Error("Failed to resolve a font for the rule '"+pa(X)+"'.");return me}function fs(C){return C.trimLeft()}function ia(C,h){for(var _=0;_<C.length;){if(C.charAt(_)===h)return[C.substring(0,_),C.substring(_+1)];_+=1}return null}function Fs(C){var h=C.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return h===null?null:[h[0],C.substring(h[0].length)]}var da,Wa,Mo,qa=["times"];(function(C){var h,_,j,ie,X,me,De,ke,et,dt=function(je){return je=je||{},this.isStrokeTransparent=je.isStrokeTransparent||!1,this.strokeOpacity=je.strokeOpacity||1,this.strokeStyle=je.strokeStyle||"#000000",this.fillStyle=je.fillStyle||"#000000",this.isFillTransparent=je.isFillTransparent||!1,this.fillOpacity=je.fillOpacity||1,this.font=je.font||"10px sans-serif",this.textBaseline=je.textBaseline||"alphabetic",this.textAlign=je.textAlign||"left",this.lineWidth=je.lineWidth||1,this.lineJoin=je.lineJoin||"miter",this.lineCap=je.lineCap||"butt",this.path=je.path||[],this.transform=je.transform!==void 0?je.transform.clone():new ke,this.globalCompositeOperation=je.globalCompositeOperation||"normal",this.globalAlpha=je.globalAlpha||1,this.clip_path=je.clip_path||[],this.currentPoint=je.currentPoint||new me,this.miterLimit=je.miterLimit||10,this.lastPoint=je.lastPoint||new me,this.lineDashOffset=je.lineDashOffset||0,this.lineDash=je.lineDash||[],this.margin=je.margin||[0,0,0,0],this.prevPageLastElemOffset=je.prevPageLastElemOffset||0,this.ignoreClearRect=typeof je.ignoreClearRect!="boolean"||je.ignoreClearRect,this};C.events.push(["initialized",function(){this.context2d=new ft(this),h=this.internal.f2,_=this.internal.getCoordinateString,j=this.internal.getVerticalCoordinateString,ie=this.internal.getHorizontalCoordinate,X=this.internal.getVerticalCoordinate,me=this.internal.Point,De=this.internal.Rectangle,ke=this.internal.Matrix,et=new dt}]);var ft=function(je){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var at=je;Object.defineProperty(this,"pdf",{get:function(){return at}});var Ie=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ie},set:function(Tr){Ie=!!Tr}});var bt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return bt},set:function(Tr){bt=!!Tr}});var Kt=0;Object.defineProperty(this,"posX",{get:function(){return Kt},set:function(Tr){isNaN(Tr)||(Kt=Tr)}});var Jt=0;Object.defineProperty(this,"posY",{get:function(){return Jt},set:function(Tr){isNaN(Tr)||(Jt=Tr)}}),Object.defineProperty(this,"margin",{get:function(){return et.margin},set:function(Tr){var Qt;typeof Tr=="number"?Qt=[Tr,Tr,Tr,Tr]:((Qt=new Array(4))[0]=Tr[0],Qt[1]=Tr.length>=2?Tr[1]:Qt[0],Qt[2]=Tr.length>=3?Tr[2]:Qt[0],Qt[3]=Tr.length>=4?Tr[3]:Qt[1]),et.margin=Qt}});var rr=!1;Object.defineProperty(this,"autoPaging",{get:function(){return rr},set:function(Tr){rr=Tr}});var dr=0;Object.defineProperty(this,"lastBreak",{get:function(){return dr},set:function(Tr){dr=Tr}});var Lr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Lr},set:function(Tr){Lr=Tr}}),Object.defineProperty(this,"ctx",{get:function(){return et},set:function(Tr){Tr instanceof dt&&(et=Tr)}}),Object.defineProperty(this,"path",{get:function(){return et.path},set:function(Tr){et.path=Tr}});var Or=[];Object.defineProperty(this,"ctxStack",{get:function(){return Or},set:function(Tr){Or=Tr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Tr){var Qt;Qt=Ct(Tr),this.ctx.fillStyle=Qt.style,this.ctx.isFillTransparent=Qt.a===0,this.ctx.fillOpacity=Qt.a,this.pdf.setFillColor(Qt.r,Qt.g,Qt.b,{a:Qt.a}),this.pdf.setTextColor(Qt.r,Qt.g,Qt.b,{a:Qt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Tr){var Qt=Ct(Tr);this.ctx.strokeStyle=Qt.style,this.ctx.isStrokeTransparent=Qt.a===0,this.ctx.strokeOpacity=Qt.a,Qt.a===0?this.pdf.setDrawColor(255,255,255):(Qt.a,this.pdf.setDrawColor(Qt.r,Qt.g,Qt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Tr){["butt","round","square"].indexOf(Tr)!==-1&&(this.ctx.lineCap=Tr,this.pdf.setLineCap(Tr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Tr){isNaN(Tr)||(this.ctx.lineWidth=Tr,this.pdf.setLineWidth(Tr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Tr){["bevel","round","miter"].indexOf(Tr)!==-1&&(this.ctx.lineJoin=Tr,this.pdf.setLineJoin(Tr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Tr){isNaN(Tr)||(this.ctx.miterLimit=Tr,this.pdf.setMiterLimit(Tr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Tr){this.ctx.textBaseline=Tr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Tr){["right","end","center","left","start"].indexOf(Tr)!==-1&&(this.ctx.textAlign=Tr)}});var Mr=null;function Yr(Tr,Qt){if(Mr===null){var ei=function(Yn){var Qr=[];return Object.keys(Yn).forEach(function(sn){Yn[sn].forEach(function(rn){var Vr=null;switch(rn){case"bold":Vr={family:sn,weight:"bold"};break;case"italic":Vr={family:sn,style:"italic"};break;case"bolditalic":Vr={family:sn,weight:"bold",style:"italic"};break;case"":case"normal":Vr={family:sn}}Vr!==null&&(Vr.ref={name:sn,style:rn},Qr.push(Vr))})}),Qr}(Tr.getFontList());Mr=function(Yn){for(var Qr={},sn=0;sn<Yn.length;++sn){var rn=Fo(Yn[sn]),Vr=rn.family,Sn=rn.stretch,qn=rn.style,pi=rn.weight;Qr[Vr]=Qr[Vr]||{},Qr[Vr][Sn]=Qr[Vr][Sn]||{},Qr[Vr][Sn][qn]=Qr[Vr][Sn][qn]||{},Qr[Vr][Sn][qn][pi]=rn}return Qr}(ei.concat(Qt))}return Mr}var Qn=null;Object.defineProperty(this,"fontFaces",{get:function(){return Qn},set:function(Tr){Mr=null,Qn=Tr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Tr){var Qt;if(this.ctx.font=Tr,(Qt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(Tr))!==null){var ei=Qt[1];Qt[2];var Yn=Qt[3],Qr=Qt[4];Qt[5];var sn=Qt[6],rn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Qr)[2];Qr=Math.floor(rn==="px"?parseFloat(Qr)*this.pdf.internal.scaleFactor:rn==="em"?parseFloat(Qr)*this.pdf.getFontSize():parseFloat(Qr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Qr);var Vr=function(D){var V,pe,Ke=[],lt=D.trim();if(lt==="")return qa;if(lt in es)return[es[lt]];for(;lt!=="";){switch(pe=null,V=(lt=fs(lt)).charAt(0)){case'"':case"'":pe=ia(lt.substring(1),V);break;default:pe=Fs(lt)}if(pe===null||(Ke.push(pe[0]),(lt=fs(pe[1]))!==""&<.charAt(0)!==","))return qa;lt=lt.replace(/^,/,"")}return Ke}(sn);if(this.fontFaces){var Sn=Bs(Yr(this.pdf,this.fontFaces),Vr.map(function(D){return{family:D,stretch:"normal",weight:Yn,style:ei}}));this.pdf.setFont(Sn.ref.name,Sn.ref.style)}else{var qn="";(Yn==="bold"||parseInt(Yn,10)>=700||ei==="bold")&&(qn="bold"),ei==="italic"&&(qn+="italic"),qn.length===0&&(qn="normal");for(var pi="",Qe={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},p=0;p<Vr.length;p++){if(this.pdf.internal.getFont(Vr[p],qn,{noFallback:!0,disableWarning:!0})!==void 0){pi=Vr[p];break}if(qn==="bolditalic"&&this.pdf.internal.getFont(Vr[p],"bold",{noFallback:!0,disableWarning:!0})!==void 0)pi=Vr[p],qn="bold";else if(this.pdf.internal.getFont(Vr[p],"normal",{noFallback:!0,disableWarning:!0})!==void 0){pi=Vr[p],qn="normal";break}}if(pi===""){for(var S=0;S<Vr.length;S++)if(Qe[Vr[S]]){pi=Qe[Vr[S]];break}}pi=pi===""?"Times":pi,this.pdf.setFont(pi,qn)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Tr){this.ctx.globalCompositeOperation=Tr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Tr){this.ctx.globalAlpha=Tr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Tr){this.ctx.lineDashOffset=Tr,er.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Tr){this.ctx.lineDash=Tr,er.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Tr){this.ctx.ignoreClearRect=!!Tr}})};ft.prototype.setLineDash=function(je){this.lineDash=je},ft.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},ft.prototype.fill=function(){Zr.call(this,"fill",!1)},ft.prototype.stroke=function(){Zr.call(this,"stroke",!1)},ft.prototype.beginPath=function(){this.path=[{type:"begin"}]},ft.prototype.moveTo=function(je,at){if(isNaN(je)||isNaN(at))throw zn.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Ie=this.ctx.transform.applyToPoint(new me(je,at));this.path.push({type:"mt",x:Ie.x,y:Ie.y}),this.ctx.lastPoint=new me(je,at)},ft.prototype.closePath=function(){var je=new me(0,0),at=0;for(at=this.path.length-1;at!==-1;at--)if(this.path[at].type==="begin"&&(0,le.Z)(this.path[at+1])==="object"&&typeof this.path[at+1].x=="number"){je=new me(this.path[at+1].x,this.path[at+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new me(je.x,je.y)},ft.prototype.lineTo=function(je,at){if(isNaN(je)||isNaN(at))throw zn.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Ie=this.ctx.transform.applyToPoint(new me(je,at));this.path.push({type:"lt",x:Ie.x,y:Ie.y}),this.ctx.lastPoint=new me(Ie.x,Ie.y)},ft.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Zr.call(this,null,!0)},ft.prototype.quadraticCurveTo=function(je,at,Ie,bt){if(isNaN(Ie)||isNaN(bt)||isNaN(je)||isNaN(at))throw zn.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Kt=this.ctx.transform.applyToPoint(new me(Ie,bt)),Jt=this.ctx.transform.applyToPoint(new me(je,at));this.path.push({type:"qct",x1:Jt.x,y1:Jt.y,x:Kt.x,y:Kt.y}),this.ctx.lastPoint=new me(Kt.x,Kt.y)},ft.prototype.bezierCurveTo=function(je,at,Ie,bt,Kt,Jt){if(isNaN(Kt)||isNaN(Jt)||isNaN(je)||isNaN(at)||isNaN(Ie)||isNaN(bt))throw zn.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var rr=this.ctx.transform.applyToPoint(new me(Kt,Jt)),dr=this.ctx.transform.applyToPoint(new me(je,at)),Lr=this.ctx.transform.applyToPoint(new me(Ie,bt));this.path.push({type:"bct",x1:dr.x,y1:dr.y,x2:Lr.x,y2:Lr.y,x:rr.x,y:rr.y}),this.ctx.lastPoint=new me(rr.x,rr.y)},ft.prototype.arc=function(je,at,Ie,bt,Kt,Jt){if(isNaN(je)||isNaN(at)||isNaN(Ie)||isNaN(bt)||isNaN(Kt))throw zn.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Jt=!!Jt,!this.ctx.transform.isIdentity){var rr=this.ctx.transform.applyToPoint(new me(je,at));je=rr.x,at=rr.y;var dr=this.ctx.transform.applyToPoint(new me(0,Ie)),Lr=this.ctx.transform.applyToPoint(new me(0,0));Ie=Math.sqrt(Math.pow(dr.x-Lr.x,2)+Math.pow(dr.y-Lr.y,2))}Math.abs(Kt-bt)>=2*Math.PI&&(bt=0,Kt=2*Math.PI),this.path.push({type:"arc",x:je,y:at,radius:Ie,startAngle:bt,endAngle:Kt,counterclockwise:Jt})},ft.prototype.arcTo=function(je,at,Ie,bt,Kt){throw new Error("arcTo not implemented.")},ft.prototype.rect=function(je,at,Ie,bt){if(isNaN(je)||isNaN(at)||isNaN(Ie)||isNaN(bt))throw zn.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(je,at),this.lineTo(je+Ie,at),this.lineTo(je+Ie,at+bt),this.lineTo(je,at+bt),this.lineTo(je,at),this.lineTo(je+Ie,at),this.lineTo(je,at)},ft.prototype.fillRect=function(je,at,Ie,bt){if(isNaN(je)||isNaN(at)||isNaN(Ie)||isNaN(bt))throw zn.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ve.call(this)){var Kt={};this.lineCap!=="butt"&&(Kt.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Kt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(je,at,Ie,bt),this.fill(),Kt.hasOwnProperty("lineCap")&&(this.lineCap=Kt.lineCap),Kt.hasOwnProperty("lineJoin")&&(this.lineJoin=Kt.lineJoin)}},ft.prototype.strokeRect=function(je,at,Ie,bt){if(isNaN(je)||isNaN(at)||isNaN(Ie)||isNaN(bt))throw zn.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");nr.call(this)||(this.beginPath(),this.rect(je,at,Ie,bt),this.stroke())},ft.prototype.clearRect=function(je,at,Ie,bt){if(isNaN(je)||isNaN(at)||isNaN(Ie)||isNaN(bt))throw zn.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(je,at,Ie,bt))},ft.prototype.save=function(je){je=typeof je!="boolean"||je;for(var at=this.pdf.internal.getCurrentPageInfo().pageNumber,Ie=0;Ie<this.pdf.internal.getNumberOfPages();Ie++)this.pdf.setPage(Ie+1),this.pdf.internal.out("q");if(this.pdf.setPage(at),je){this.ctx.fontSize=this.pdf.internal.getFontSize();var bt=new dt(this.ctx);this.ctxStack.push(this.ctx),this.ctx=bt}},ft.prototype.restore=function(je){je=typeof je!="boolean"||je;for(var at=this.pdf.internal.getCurrentPageInfo().pageNumber,Ie=0;Ie<this.pdf.internal.getNumberOfPages();Ie++)this.pdf.setPage(Ie+1),this.pdf.internal.out("Q");this.pdf.setPage(at),je&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},ft.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Ct=function(je){var at,Ie,bt,Kt;if(je.isCanvasGradient===!0&&(je=je.getColor()),!je)return{r:0,g:0,b:0,a:0,style:je};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(je))at=0,Ie=0,bt=0,Kt=0;else{var Jt=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(je);if(Jt!==null)at=parseInt(Jt[1]),Ie=parseInt(Jt[2]),bt=parseInt(Jt[3]),Kt=1;else if((Jt=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(je))!==null)at=parseInt(Jt[1]),Ie=parseInt(Jt[2]),bt=parseInt(Jt[3]),Kt=parseFloat(Jt[4]);else{if(Kt=1,typeof je=="string"&&je.charAt(0)!=="#"){var rr=new ii(je);je=rr.ok?rr.toHex():"#000000"}je.length===4?(at=je.substring(1,2),at+=at,Ie=je.substring(2,3),Ie+=Ie,bt=je.substring(3,4),bt+=bt):(at=je.substring(1,3),Ie=je.substring(3,5),bt=je.substring(5,7)),at=parseInt(at,16),Ie=parseInt(Ie,16),bt=parseInt(bt,16)}}return{r:at,g:Ie,b:bt,a:Kt,style:je}},Ve=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},nr=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};ft.prototype.fillText=function(je,at,Ie,bt){if(isNaN(at)||isNaN(Ie)||typeof je!="string")throw zn.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(bt=isNaN(bt)?void 0:bt,!Ve.call(this)){var Kt=ot(this.ctx.transform.rotation),Jt=this.ctx.transform.scaleX;Wt.call(this,{text:je,x:at,y:Ie,scale:Jt,angle:Kt,align:this.textAlign,maxWidth:bt})}},ft.prototype.strokeText=function(je,at,Ie,bt){if(isNaN(at)||isNaN(Ie)||typeof je!="string")throw zn.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!nr.call(this)){bt=isNaN(bt)?void 0:bt;var Kt=ot(this.ctx.transform.rotation),Jt=this.ctx.transform.scaleX;Wt.call(this,{text:je,x:at,y:Ie,scale:Jt,renderingMode:"stroke",angle:Kt,align:this.textAlign,maxWidth:bt})}},ft.prototype.measureText=function(je){if(typeof je!="string")throw zn.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var at=this.pdf,Ie=this.pdf.internal.scaleFactor,bt=at.internal.getFontSize(),Kt=at.getStringUnitWidth(je)*bt/at.internal.scaleFactor,Jt=function(rr){var dr=(rr=rr||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return dr}}),this};return new Jt({width:Kt*=Math.round(96*Ie/72*1e4)/1e4})},ft.prototype.scale=function(je,at){if(isNaN(je)||isNaN(at))throw zn.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Ie=new ke(je,0,0,at,0,0);this.ctx.transform=this.ctx.transform.multiply(Ie)},ft.prototype.rotate=function(je){if(isNaN(je))throw zn.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var at=new ke(Math.cos(je),Math.sin(je),-Math.sin(je),Math.cos(je),0,0);this.ctx.transform=this.ctx.transform.multiply(at)},ft.prototype.translate=function(je,at){if(isNaN(je)||isNaN(at))throw zn.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Ie=new ke(1,0,0,1,je,at);this.ctx.transform=this.ctx.transform.multiply(Ie)},ft.prototype.transform=function(je,at,Ie,bt,Kt,Jt){if(isNaN(je)||isNaN(at)||isNaN(Ie)||isNaN(bt)||isNaN(Kt)||isNaN(Jt))throw zn.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var rr=new ke(je,at,Ie,bt,Kt,Jt);this.ctx.transform=this.ctx.transform.multiply(rr)},ft.prototype.setTransform=function(je,at,Ie,bt,Kt,Jt){je=isNaN(je)?1:je,at=isNaN(at)?0:at,Ie=isNaN(Ie)?0:Ie,bt=isNaN(bt)?1:bt,Kt=isNaN(Kt)?0:Kt,Jt=isNaN(Jt)?0:Jt,this.ctx.transform=new ke(je,at,Ie,bt,Kt,Jt)};var Zt=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};ft.prototype.drawImage=function(je,at,Ie,bt,Kt,Jt,rr,dr,Lr){var Or=this.pdf.getImageProperties(je),Mr=1,Yr=1,Qn=1,Tr=1;bt!==void 0&&dr!==void 0&&(Qn=dr/bt,Tr=Lr/Kt,Mr=Or.width/bt*dr/bt,Yr=Or.height/Kt*Lr/Kt),Jt===void 0&&(Jt=at,rr=Ie,at=0,Ie=0),bt!==void 0&&dr===void 0&&(dr=bt,Lr=Kt),bt===void 0&&dr===void 0&&(dr=Or.width,Lr=Or.height);for(var Qt,ei=this.ctx.transform.decompose(),Yn=ot(ei.rotate.shx),Qr=new ke,sn=(Qr=(Qr=(Qr=Qr.multiply(ei.translate)).multiply(ei.skew)).multiply(ei.scale)).applyToRectangle(new De(Jt-at*Qn,rr-Ie*Tr,bt*Mr,Kt*Yr)),rn=or.call(this,sn),Vr=[],Sn=0;Sn<rn.length;Sn+=1)Vr.indexOf(rn[Sn])===-1&&Vr.push(rn[Sn]);if(Ir(Vr),this.autoPaging)for(var qn=Vr[0],pi=Vr[Vr.length-1],Qe=qn;Qe<pi+1;Qe++){this.pdf.setPage(Qe);var p=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],S=Qe===1?this.posY+this.margin[0]:this.margin[0],D=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],V=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],pe=Qe===1?0:D+(Qe-2)*V;if(this.ctx.clip_path.length!==0){var Ke=this.path;Qt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ar(Qt,this.posX+this.margin[3],-pe+S+this.ctx.prevPageLastElemOffset),mn.call(this,"fill",!0),this.path=Ke}var lt=JSON.parse(JSON.stringify(sn));lt=ar([lt],this.posX+this.margin[3],-pe+S+this.ctx.prevPageLastElemOffset)[0];var yt=(Qe>qn||Qe<pi)&&Zt.call(this);yt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],p,V,null).clip().discardPath()),this.pdf.addImage(je,"JPEG",lt.x,lt.y,lt.w,lt.h,null,null,Yn),yt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(je,"JPEG",sn.x,sn.y,sn.w,sn.h,null,null,Yn)};var or=function(je,at,Ie){var bt=[];at=at||this.pdf.internal.pageSize.width,Ie=Ie||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Kt=this.posY+this.ctx.prevPageLastElemOffset;switch(je.type){default:case"mt":case"lt":bt.push(Math.floor((je.y+Kt)/Ie)+1);break;case"arc":bt.push(Math.floor((je.y+Kt-je.radius)/Ie)+1),bt.push(Math.floor((je.y+Kt+je.radius)/Ie)+1);break;case"qct":var Jt=gt(this.ctx.lastPoint.x,this.ctx.lastPoint.y,je.x1,je.y1,je.x,je.y);bt.push(Math.floor((Jt.y+Kt)/Ie)+1),bt.push(Math.floor((Jt.y+Jt.h+Kt)/Ie)+1);break;case"bct":var rr=Ft(this.ctx.lastPoint.x,this.ctx.lastPoint.y,je.x1,je.y1,je.x2,je.y2,je.x,je.y);bt.push(Math.floor((rr.y+Kt)/Ie)+1),bt.push(Math.floor((rr.y+rr.h+Kt)/Ie)+1);break;case"rect":bt.push(Math.floor((je.y+Kt)/Ie)+1),bt.push(Math.floor((je.y+je.h+Kt)/Ie)+1)}for(var dr=0;dr<bt.length;dr+=1)for(;this.pdf.internal.getNumberOfPages()<bt[dr];)Lt.call(this);return bt},Lt=function(){var je=this.fillStyle,at=this.strokeStyle,Ie=this.font,bt=this.lineCap,Kt=this.lineWidth,Jt=this.lineJoin;this.pdf.addPage(),this.fillStyle=je,this.strokeStyle=at,this.font=Ie,this.lineCap=bt,this.lineWidth=Kt,this.lineJoin=Jt},ar=function(je,at,Ie){for(var bt=0;bt<je.length;bt++)switch(je[bt].type){case"bct":je[bt].x2+=at,je[bt].y2+=Ie;case"qct":je[bt].x1+=at,je[bt].y1+=Ie;case"mt":case"lt":case"arc":default:je[bt].x+=at,je[bt].y+=Ie}return je},Ir=function(je){return je.sort(function(at,Ie){return at-Ie})},Zr=function(je,at){for(var Ie,bt,Kt=this.fillStyle,Jt=this.strokeStyle,rr=this.lineCap,dr=this.lineWidth,Lr=Math.abs(dr*this.ctx.transform.scaleX),Or=this.lineJoin,Mr=JSON.parse(JSON.stringify(this.path)),Yr=JSON.parse(JSON.stringify(this.path)),Qn=[],Tr=0;Tr<Yr.length;Tr++)if(Yr[Tr].x!==void 0)for(var Qt=or.call(this,Yr[Tr]),ei=0;ei<Qt.length;ei+=1)Qn.indexOf(Qt[ei])===-1&&Qn.push(Qt[ei]);for(var Yn=0;Yn<Qn.length;Yn++)for(;this.pdf.internal.getNumberOfPages()<Qn[Yn];)Lt.call(this);if(Ir(Qn),this.autoPaging)for(var Qr=Qn[0],sn=Qn[Qn.length-1],rn=Qr;rn<sn+1;rn++){this.pdf.setPage(rn),this.fillStyle=Kt,this.strokeStyle=Jt,this.lineCap=rr,this.lineWidth=Lr,this.lineJoin=Or;var Vr=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Sn=rn===1?this.posY+this.margin[0]:this.margin[0],qn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],pi=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Qe=rn===1?0:qn+(rn-2)*pi;if(this.ctx.clip_path.length!==0){var p=this.path;Ie=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ar(Ie,this.posX+this.margin[3],-Qe+Sn+this.ctx.prevPageLastElemOffset),mn.call(this,je,!0),this.path=p}if(bt=JSON.parse(JSON.stringify(Mr)),this.path=ar(bt,this.posX+this.margin[3],-Qe+Sn+this.ctx.prevPageLastElemOffset),at===!1||rn===0){var S=(rn>Qr||rn<sn)&&Zt.call(this);S&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Vr,pi,null).clip().discardPath()),mn.call(this,je,at),S&&this.pdf.restoreGraphicsState()}this.lineWidth=dr}else this.lineWidth=Lr,mn.call(this,je,at),this.lineWidth=dr;this.path=Mr},mn=function(je,at){if((je!=="stroke"||at||!nr.call(this))&&(je==="stroke"||at||!Ve.call(this))){for(var Ie,bt,Kt=[],Jt=this.path,rr=0;rr<Jt.length;rr++){var dr=Jt[rr];switch(dr.type){case"begin":Kt.push({begin:!0});break;case"close":Kt.push({close:!0});break;case"mt":Kt.push({start:dr,deltas:[],abs:[]});break;case"lt":var Lr=Kt.length;if(Jt[rr-1]&&!isNaN(Jt[rr-1].x)&&(Ie=[dr.x-Jt[rr-1].x,dr.y-Jt[rr-1].y],Lr>0)){for(;Lr>=0;Lr--)if(Kt[Lr-1].close!==!0&&Kt[Lr-1].begin!==!0){Kt[Lr-1].deltas.push(Ie),Kt[Lr-1].abs.push(dr);break}}break;case"bct":Ie=[dr.x1-Jt[rr-1].x,dr.y1-Jt[rr-1].y,dr.x2-Jt[rr-1].x,dr.y2-Jt[rr-1].y,dr.x-Jt[rr-1].x,dr.y-Jt[rr-1].y],Kt[Kt.length-1].deltas.push(Ie);break;case"qct":var Or=Jt[rr-1].x+2/3*(dr.x1-Jt[rr-1].x),Mr=Jt[rr-1].y+2/3*(dr.y1-Jt[rr-1].y),Yr=dr.x+2/3*(dr.x1-dr.x),Qn=dr.y+2/3*(dr.y1-dr.y),Tr=dr.x,Qt=dr.y;Ie=[Or-Jt[rr-1].x,Mr-Jt[rr-1].y,Yr-Jt[rr-1].x,Qn-Jt[rr-1].y,Tr-Jt[rr-1].x,Qt-Jt[rr-1].y],Kt[Kt.length-1].deltas.push(Ie);break;case"arc":Kt.push({deltas:[],abs:[],arc:!0}),Array.isArray(Kt[Kt.length-1].abs)&&Kt[Kt.length-1].abs.push(dr)}}bt=at?null:je==="stroke"?"stroke":"fill";for(var ei=!1,Yn=0;Yn<Kt.length;Yn++)if(Kt[Yn].arc)for(var Qr=Kt[Yn].abs,sn=0;sn<Qr.length;sn++){var rn=Qr[sn];rn.type==="arc"?br.call(this,rn.x,rn.y,rn.radius,rn.startAngle,rn.endAngle,rn.counterclockwise,void 0,at,!ei):Cr.call(this,rn.x,rn.y),ei=!0}else if(Kt[Yn].close===!0)this.pdf.internal.out("h"),ei=!1;else if(Kt[Yn].begin!==!0){var Vr=Kt[Yn].start.x,Sn=Kt[Yn].start.y;ge.call(this,Kt[Yn].deltas,Vr,Sn),ei=!0}bt&&en.call(this,bt),at&&In.call(this)}},Gn=function(je){var at=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ie=at*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return je-Ie;case"top":return je+at-Ie;case"hanging":return je+at-2*Ie;case"middle":return je+at/2-Ie;case"ideographic":return je;case"alphabetic":default:return je}},Jr=function(je){return je+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};ft.prototype.createLinearGradient=function(){var je=function(){};return je.colorStops=[],je.addColorStop=function(at,Ie){this.colorStops.push([at,Ie])},je.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},je.isCanvasGradient=!0,je},ft.prototype.createPattern=function(){return this.createLinearGradient()},ft.prototype.createRadialGradient=function(){return this.createLinearGradient()};var br=function(je,at,Ie,bt,Kt,Jt,rr,dr,Lr){for(var Or=Ye.call(this,Ie,bt,Kt,Jt),Mr=0;Mr<Or.length;Mr++){var Yr=Or[Mr];Mr===0&&(Lr?Nt.call(this,Yr.x1+je,Yr.y1+at):Cr.call(this,Yr.x1+je,Yr.y1+at)),Pe.call(this,je,at,Yr.x2,Yr.y2,Yr.x3,Yr.y3,Yr.x4,Yr.y4)}dr?In.call(this):en.call(this,rr)},en=function(je){switch(je){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},In=function(){this.pdf.clip(),this.pdf.discardPath()},Nt=function(je,at){this.pdf.internal.out(_(je)+" "+j(at)+" m")},Wt=function(je){var at;switch(je.align){case"right":case"end":at="right";break;case"center":at="center";break;case"left":case"start":default:at="left"}var Ie=this.pdf.getTextDimensions(je.text),bt=Gn.call(this,je.y),Kt=Jr.call(this,bt)-Ie.h,Jt=this.ctx.transform.applyToPoint(new me(je.x,bt)),rr=this.ctx.transform.decompose(),dr=new ke;dr=(dr=(dr=dr.multiply(rr.translate)).multiply(rr.skew)).multiply(rr.scale);for(var Lr,Or,Mr,Yr=this.ctx.transform.applyToRectangle(new De(je.x,bt,Ie.w,Ie.h)),Qn=dr.applyToRectangle(new De(je.x,Kt,Ie.w,Ie.h)),Tr=or.call(this,Qn),Qt=[],ei=0;ei<Tr.length;ei+=1)Qt.indexOf(Tr[ei])===-1&&Qt.push(Tr[ei]);if(Ir(Qt),this.autoPaging)for(var Yn=Qt[0],Qr=Qt[Qt.length-1],sn=Yn;sn<Qr+1;sn++){this.pdf.setPage(sn);var rn=sn===1?this.posY+this.margin[0]:this.margin[0],Vr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Sn=this.pdf.internal.pageSize.height-this.margin[2],qn=Sn-this.margin[0],pi=this.pdf.internal.pageSize.width-this.margin[1],Qe=pi-this.margin[3],p=sn===1?0:Vr+(sn-2)*qn;if(this.ctx.clip_path.length!==0){var S=this.path;Lr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=ar(Lr,this.posX+this.margin[3],-1*p+rn),mn.call(this,"fill",!0),this.path=S}var D=ar([JSON.parse(JSON.stringify(Qn))],this.posX+this.margin[3],-p+rn+this.ctx.prevPageLastElemOffset)[0];je.scale>=.01&&(Or=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Or*je.scale),Mr=this.lineWidth,this.lineWidth=Mr*je.scale);var V=this.autoPaging!=="text";if(V||D.y+D.h<=Sn){if(V||D.y>=rn&&D.x<=pi){var pe=V?je.text:this.pdf.splitTextToSize(je.text,je.maxWidth||pi-D.x)[0],Ke=ar([JSON.parse(JSON.stringify(Yr))],this.posX+this.margin[3],-p+rn+this.ctx.prevPageLastElemOffset)[0],lt=V&&(sn>Yn||sn<Qr)&&Zt.call(this);lt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Qe,qn,null).clip().discardPath()),this.pdf.text(pe,Ke.x,Ke.y,{angle:je.angle,align:at,renderingMode:je.renderingMode}),lt&&this.pdf.restoreGraphicsState()}}else D.y<Sn&&(this.ctx.prevPageLastElemOffset+=Sn-D.y);je.scale>=.01&&(this.pdf.setFontSize(Or),this.lineWidth=Mr)}else je.scale>=.01&&(Or=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Or*je.scale),Mr=this.lineWidth,this.lineWidth=Mr*je.scale),this.pdf.text(je.text,Jt.x+this.posX,Jt.y+this.posY,{angle:je.angle,align:at,renderingMode:je.renderingMode,maxWidth:je.maxWidth}),je.scale>=.01&&(this.pdf.setFontSize(Or),this.lineWidth=Mr)},Cr=function(je,at,Ie,bt){Ie=Ie||0,bt=bt||0,this.pdf.internal.out(_(je+Ie)+" "+j(at+bt)+" l")},ge=function(je,at,Ie){return this.pdf.lines(je,at,Ie,null,null)},Pe=function(je,at,Ie,bt,Kt,Jt,rr,dr){this.pdf.internal.out([h(ie(Ie+je)),h(X(bt+at)),h(ie(Kt+je)),h(X(Jt+at)),h(ie(rr+je)),h(X(dr+at)),"c"].join(" "))},Ye=function(je,at,Ie,bt){for(var Kt=2*Math.PI,Jt=Math.PI/2;at>Ie;)at-=Kt;var rr=Math.abs(Ie-at);rr<Kt&&bt&&(rr=Kt-rr);for(var dr=[],Lr=bt?-1:1,Or=at;rr>1e-5;){var Mr=Or+Lr*Math.min(rr,Jt);dr.push(st.call(this,je,Or,Mr)),rr-=Math.abs(Mr-Or),Or=Mr}return dr},st=function(je,at,Ie){var bt=(Ie-at)/2,Kt=je*Math.cos(bt),Jt=je*Math.sin(bt),rr=Kt,dr=-Jt,Lr=rr*rr+dr*dr,Or=Lr+rr*Kt+dr*Jt,Mr=4/3*(Math.sqrt(2*Lr*Or)-Or)/(rr*Jt-dr*Kt),Yr=rr-Mr*dr,Qn=dr+Mr*rr,Tr=Yr,Qt=-Qn,ei=bt+at,Yn=Math.cos(ei),Qr=Math.sin(ei);return{x1:je*Math.cos(at),y1:je*Math.sin(at),x2:Yr*Yn-Qn*Qr,y2:Yr*Qr+Qn*Yn,x3:Tr*Yn-Qt*Qr,y3:Tr*Qr+Qt*Yn,x4:je*Math.cos(Ie),y4:je*Math.sin(Ie)}},ot=function(je){return 180*je/Math.PI},gt=function(je,at,Ie,bt,Kt,Jt){var rr=je+.5*(Ie-je),dr=at+.5*(bt-at),Lr=Kt+.5*(Ie-Kt),Or=Jt+.5*(bt-Jt),Mr=Math.min(je,Kt,rr,Lr),Yr=Math.max(je,Kt,rr,Lr),Qn=Math.min(at,Jt,dr,Or),Tr=Math.max(at,Jt,dr,Or);return new De(Mr,Qn,Yr-Mr,Tr-Qn)},Ft=function(je,at,Ie,bt,Kt,Jt,rr,dr){var Lr,Or,Mr,Yr,Qn,Tr,Qt,ei,Yn,Qr,sn,rn,Vr,Sn,qn=Ie-je,pi=bt-at,Qe=Kt-Ie,p=Jt-bt,S=rr-Kt,D=dr-Jt;for(Or=0;Or<41;Or++)Yn=(Qt=(Mr=je+(Lr=Or/40)*qn)+Lr*((Qn=Ie+Lr*Qe)-Mr))+Lr*(Qn+Lr*(Kt+Lr*S-Qn)-Qt),Qr=(ei=(Yr=at+Lr*pi)+Lr*((Tr=bt+Lr*p)-Yr))+Lr*(Tr+Lr*(Jt+Lr*D-Tr)-ei),Or==0?(sn=Yn,rn=Qr,Vr=Yn,Sn=Qr):(sn=Math.min(sn,Yn),rn=Math.min(rn,Qr),Vr=Math.max(Vr,Yn),Sn=Math.max(Sn,Qr));return new De(Math.round(sn),Math.round(rn),Math.round(Vr-sn),Math.round(Sn-rn))},er=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var je,at,Ie=(je=this.ctx.lineDash,at=this.ctx.lineDashOffset,JSON.stringify({lineDash:je,lineDashOffset:at}));this.prevLineDash!==Ie&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ie)}}})(gi.API),function(C){var h=function(X){var me,De,ke,et,dt,ft,Ct,Ve,nr,Zt;for(/[^\x00-\xFF]/.test(X),De=[],ke=0,et=(X+=me="\0\0\0\0".slice(X.length%4||4)).length;et>ke;ke+=4)(dt=(X.charCodeAt(ke)<<24)+(X.charCodeAt(ke+1)<<16)+(X.charCodeAt(ke+2)<<8)+X.charCodeAt(ke+3))!==0?(ft=(dt=((dt=((dt=((dt=(dt-(Zt=dt%85))/85)-(nr=dt%85))/85)-(Ve=dt%85))/85)-(Ct=dt%85))/85)%85,De.push(ft+33,Ct+33,Ve+33,nr+33,Zt+33)):De.push(122);return function(or,Lt){for(var ar=Lt;ar>0;ar--)or.pop()}(De,me.length),String.fromCharCode.apply(String,De)+"~>"},_=function(X){var me,De,ke,et,dt,ft=String,Ct="length",Ve=255,nr="charCodeAt",Zt="slice",or="replace";for(X[Zt](-2),X=X[Zt](0,-2)[or](/\s/g,"")[or]("z","!!!!!"),ke=[],et=0,dt=(X+=me="uuuuu"[Zt](X[Ct]%5||5))[Ct];dt>et;et+=5)De=52200625*(X[nr](et)-33)+614125*(X[nr](et+1)-33)+7225*(X[nr](et+2)-33)+85*(X[nr](et+3)-33)+(X[nr](et+4)-33),ke.push(Ve&De>>24,Ve&De>>16,Ve&De>>8,Ve&De);return function(Lt,ar){for(var Ir=ar;Ir>0;Ir--)Lt.pop()}(ke,me[Ct]),ft.fromCharCode.apply(ft,ke)},j=function(X){var me=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((X=X.replace(/\s/g,"")).indexOf(">")!==-1&&(X=X.substr(0,X.indexOf(">"))),X.length%2&&(X+="0"),me.test(X)===!1)return"";for(var De="",ke=0;ke<X.length;ke+=2)De+=String.fromCharCode("0x"+(X[ke]+X[ke+1]));return De},ie=function(X){for(var me=new Uint8Array(X.length),De=X.length;De--;)me[De]=X.charCodeAt(De);return X=(me=Dn(me)).reduce(function(ke,et){return ke+String.fromCharCode(et)},"")};C.processDataByFilters=function(X,me){var De=0,ke=X||"",et=[];for(typeof(me=me||[])=="string"&&(me=[me]),De=0;De<me.length;De+=1)switch(me[De]){case"ASCII85Decode":case"/ASCII85Decode":ke=_(ke),et.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ke=h(ke),et.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ke=j(ke),et.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ke=ke.split("").map(function(dt){return("0"+dt.charCodeAt().toString(16)).slice(-2)}).join("")+">",et.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ke=ie(ke),et.push("/FlateDecode");break;default:throw new Error('The filter: "'+me[De]+'" is not implemented')}return{data:ke,reverseChain:et.reverse().join(" ")}}}(gi.API),function(C){C.loadFile=function(h,_,j){return function(ie,X,me){X=X!==!1,me=typeof me=="function"?me:function(){};var De=void 0;try{De=function(ke,et,dt){var ft=new XMLHttpRequest,Ct=0,Ve=function(nr){var Zt=nr.length,or=[],Lt=String.fromCharCode;for(Ct=0;Ct<Zt;Ct+=1)or.push(Lt(255&nr.charCodeAt(Ct)));return or.join("")};if(ft.open("GET",ke,!et),ft.overrideMimeType("text/plain; charset=x-user-defined"),et===!1&&(ft.onload=function(){ft.status===200?dt(Ve(this.responseText)):dt(void 0)}),ft.send(null),et&&ft.status===200)return Ve(ft.responseText)}(ie,X,me)}catch(ke){}return De}(h,_,j)},C.loadImageFile=C.loadFile}(gi.API),function(C){function h(){return(Xr.html2canvas?Promise.resolve(Xr.html2canvas):Promise.resolve().then(E.t.bind(E,64270,23))).catch(function(me){return Promise.reject(new Error("Could not load html2canvas: "+me))}).then(function(me){return me.default?me.default:me})}function _(){return(Xr.DOMPurify?Promise.resolve(Xr.DOMPurify):E.e(7631).then(E.bind(E,87631))).catch(function(me){return Promise.reject(new Error("Could not load dompurify: "+me))}).then(function(me){return me.default?me.default:me})}var j=function(me){var De=(0,le.Z)(me);return De==="undefined"?"undefined":De==="string"||me instanceof String?"string":De==="number"||me instanceof Number?"number":De==="function"||me instanceof Function?"function":me&&me.constructor===Array?"array":me&&me.nodeType===1?"element":De==="object"?"object":"unknown"},ie=function(me,De){var ke=document.createElement(me);for(var et in De.className&&(ke.className=De.className),De.innerHTML&&De.dompurify&&(ke.innerHTML=De.dompurify.sanitize(De.innerHTML)),De.style)ke.style[et]=De.style[et];return ke},X=function me(De){var ke=Object.assign(me.convert(Promise.resolve()),JSON.parse(JSON.stringify(me.template))),et=me.convert(Promise.resolve(),ke);return et=(et=et.setProgress(1,me,1,[me])).set(De)};(X.prototype=Object.create(Promise.prototype)).constructor=X,X.convert=function(me,De){return me.__proto__=De||X.prototype,me},X.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},X.prototype.from=function(me,De){return this.then(function(){switch(De=De||function(ke){switch(j(ke)){case"string":return"string";case"element":return ke.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(me)){case"string":return this.then(_).then(function(ke){return this.set({src:ie("div",{innerHTML:me,dompurify:ke})})});case"element":return this.set({src:me});case"canvas":return this.set({canvas:me});case"img":return this.set({img:me});default:return this.error("Unknown source type.")}})},X.prototype.to=function(me){switch(me){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},X.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var me={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},De=function ke(et,dt){for(var ft=et.nodeType===3?document.createTextNode(et.nodeValue):et.cloneNode(!1),Ct=et.firstChild;Ct;Ct=Ct.nextSibling)dt!==!0&&Ct.nodeType===1&&Ct.nodeName==="SCRIPT"||ft.appendChild(ke(Ct,dt));return et.nodeType===1&&(et.nodeName==="CANVAS"?(ft.width=et.width,ft.height=et.height,ft.getContext("2d").drawImage(et,0,0)):et.nodeName!=="TEXTAREA"&&et.nodeName!=="SELECT"||(ft.value=et.value),ft.addEventListener("load",function(){ft.scrollTop=et.scrollTop,ft.scrollLeft=et.scrollLeft},!0)),ft}(this.prop.src,this.opt.html2canvas.javascriptEnabled);De.tagName==="BODY"&&(me.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=ie("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=ie("div",{className:"html2pdf__container",style:me}),this.prop.container.appendChild(De),this.prop.container.firstChild.appendChild(ie("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},X.prototype.toCanvas=function(){var me=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(me).then(h).then(function(De){var ke=Object.assign({},this.opt.html2canvas);return delete ke.onrendered,De(this.prop.container,ke)}).then(function(De){(this.opt.html2canvas.onrendered||function(){})(De),this.prop.canvas=De,document.body.removeChild(this.prop.overlay)})},X.prototype.toContext2d=function(){var me=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(me).then(h).then(function(De){var ke=this.opt.jsPDF,et=this.opt.fontFaces,dt=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,ft=Object.assign({async:!0,allowTaint:!0,scale:dt,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete ft.onrendered,ke.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ke.context2d.posX=this.opt.x,ke.context2d.posY=this.opt.y,ke.context2d.margin=this.opt.margin,ke.context2d.fontFaces=et,et)for(var Ct=0;Ct<et.length;++Ct){var Ve=et[Ct],nr=Ve.src.find(function(Zt){return Zt.format==="truetype"});nr&&ke.addFont(nr.url,Ve.ref.name,Ve.ref.style)}return ft.windowHeight=ft.windowHeight||0,ft.windowHeight=ft.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):ft.windowHeight,ke.context2d.save(!0),De(this.prop.container,ft)}).then(function(De){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(De),this.prop.canvas=De,document.body.removeChild(this.prop.overlay)})},X.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var me=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=me})},X.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},X.prototype.output=function(me,De,ke){return(ke=ke||"pdf").toLowerCase()==="img"||ke.toLowerCase()==="image"?this.outputImg(me,De):this.outputPdf(me,De)},X.prototype.outputPdf=function(me,De){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(me,De)})},X.prototype.outputImg=function(me){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(me){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+me+'" is not supported.'}})},X.prototype.save=function(me){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(me?{filename:me}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},X.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},X.prototype.set=function(me){if(j(me)!=="object")return this;var De=Object.keys(me||{}).map(function(ke){if(ke in X.template.prop)return function(){this.prop[ke]=me[ke]};switch(ke){case"margin":return this.setMargin.bind(this,me.margin);case"jsPDF":return function(){return this.opt.jsPDF=me.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,me.pageSize);default:return function(){this.opt[ke]=me[ke]}}},this);return this.then(function(){return this.thenList(De)})},X.prototype.get=function(me,De){return this.then(function(){var ke=me in X.template.prop?this.prop[me]:this.opt[me];return De?De(ke):ke})},X.prototype.setMargin=function(me){return this.then(function(){switch(j(me)){case"number":me=[me,me,me,me];case"array":if(me.length===2&&(me=[me[0],me[1],me[0],me[1]]),me.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=me}).then(this.setPageSize)},X.prototype.setPageSize=function(me){function De(ke,et){return Math.floor(ke*et/72*96)}return this.then(function(){(me=me||gi.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(me.inner={width:me.width-this.opt.margin[1]-this.opt.margin[3],height:me.height-this.opt.margin[0]-this.opt.margin[2]},me.inner.px={width:De(me.inner.width,me.k),height:De(me.inner.height,me.k)},me.inner.ratio=me.inner.height/me.inner.width),this.prop.pageSize=me})},X.prototype.setProgress=function(me,De,ke,et){return me!=null&&(this.progress.val=me),De!=null&&(this.progress.state=De),ke!=null&&(this.progress.n=ke),et!=null&&(this.progress.stack=et),this.progress.ratio=this.progress.val/this.progress.state,this},X.prototype.updateProgress=function(me,De,ke,et){return this.setProgress(me?this.progress.val+me:null,De||null,ke?this.progress.n+ke:null,et?this.progress.stack.concat(et):null)},X.prototype.then=function(me,De){var ke=this;return this.thenCore(me,De,function(et,dt){return ke.updateProgress(null,null,1,[et]),Promise.prototype.then.call(this,function(ft){return ke.updateProgress(null,et),ft}).then(et,dt).then(function(ft){return ke.updateProgress(1),ft})})},X.prototype.thenCore=function(me,De,ke){ke=ke||Promise.prototype.then,me&&(me=me.bind(this)),De&&(De=De.bind(this));var et=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:X.convert(Object.assign({},this),Promise.prototype),dt=ke.call(et,me,De);return X.convert(dt,this.__proto__)},X.prototype.thenExternal=function(me,De){return Promise.prototype.then.call(this,me,De)},X.prototype.thenList=function(me){var De=this;return me.forEach(function(ke){De=De.thenCore(ke)}),De},X.prototype.catch=function(me){me&&(me=me.bind(this));var De=Promise.prototype.catch.call(this,me);return X.convert(De,this)},X.prototype.catchExternal=function(me){return Promise.prototype.catch.call(this,me)},X.prototype.error=function(me){return this.then(function(){throw new Error(me)})},X.prototype.using=X.prototype.set,X.prototype.saveAs=X.prototype.save,X.prototype.export=X.prototype.output,X.prototype.run=X.prototype.then,gi.getPageSize=function(me,De,ke){if((0,le.Z)(me)==="object"){var et=me;me=et.orientation,De=et.unit||De,ke=et.format||ke}De=De||"mm",ke=ke||"a4",me=(""+(me||"P")).toLowerCase();var dt,ft=(""+ke).toLowerCase(),Ct={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(De){case"pt":dt=1;break;case"mm":dt=72/25.4;break;case"cm":dt=72/2.54;break;case"in":dt=72;break;case"px":dt=.75;break;case"pc":case"em":dt=12;break;case"ex":dt=6;break;default:throw"Invalid unit: "+De}var Ve,nr=0,Zt=0;if(Ct.hasOwnProperty(ft))nr=Ct[ft][1]/dt,Zt=Ct[ft][0]/dt;else try{nr=ke[1],Zt=ke[0]}catch(or){throw new Error("Invalid format: "+ke)}if(me==="p"||me==="portrait")me="p",Zt>nr&&(Ve=Zt,Zt=nr,nr=Ve);else{if(me!=="l"&&me!=="landscape")throw"Invalid orientation: "+me;me="l",nr>Zt&&(Ve=Zt,Zt=nr,nr=Ve)}return{width:Zt,height:nr,unit:De,k:dt,orientation:me}},C.html=function(me,De){(De=De||{}).callback=De.callback||function(){},De.html2canvas=De.html2canvas||{},De.html2canvas.canvas=De.html2canvas.canvas||this.canvas,De.jsPDF=De.jsPDF||this,De.fontFaces=De.fontFaces?De.fontFaces.map(Fo):null;var ke=new X(De);return De.worker?ke:ke.from(me).doCallback()}}(gi.API),gi.API.addJS=function(C){return Mo=C,this.internal.events.subscribe("postPutResources",function(){da=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(da+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Wa=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Mo+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){da!==void 0&&Wa!==void 0&&this.internal.out("/Names <</JavaScript "+da+" 0 R>>")}),this},function(C){var h;C.events.push(["postPutResources",function(){var _=this,j=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ie=_.outline.render().split(/\r\n/),X=0;X<ie.length;X++){var me=ie[X],De=j.exec(me);if(De!=null){var ke=De[1];_.internal.newObjectDeferredBegin(ke,!1)}_.internal.write(me)}if(this.outline.createNamedDestinations){var et=this.internal.pages.length,dt=[];for(X=0;X<et;X++){var ft=_.internal.newObject();dt.push(ft);var Ct=_.internal.getPageInfo(X+1);_.internal.write("<< /D["+Ct.objId+" 0 R /XYZ null null null]>> endobj")}var Ve=_.internal.newObject();for(_.internal.write("<< /Names [ "),X=0;X<dt.length;X++)_.internal.write("(page_"+(X+1)+")"+dt[X]+" 0 R");_.internal.write(" ] >>","endobj"),h=_.internal.newObject(),_.internal.write("<< /Dests "+Ve+" 0 R"),_.internal.write(">>","endobj")}}]),C.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+h+" 0 R"))}]),C.events.push(["initialized",function(){var _=this;_.outline={createNamedDestinations:!1,root:{children:[]}},_.outline.add=function(j,ie,X){var me={title:ie,options:X,children:[]};return j==null&&(j=this.root),j.children.push(me),me},_.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=_,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},_.outline.genIds_r=function(j){j.id=_.internal.newObjectDeferred();for(var ie=0;ie<j.children.length;ie++)this.genIds_r(j.children[ie])},_.outline.renderRoot=function(j){this.objStart(j),this.line("/Type /Outlines"),j.children.length>0&&(this.line("/First "+this.makeRef(j.children[0])),this.line("/Last "+this.makeRef(j.children[j.children.length-1]))),this.line("/Count "+this.count_r({count:0},j)),this.objEnd()},_.outline.renderItems=function(j){for(var ie=this.ctx.pdf.internal.getVerticalCoordinateString,X=0;X<j.children.length;X++){var me=j.children[X];this.objStart(me),this.line("/Title "+this.makeString(me.title)),this.line("/Parent "+this.makeRef(j)),X>0&&this.line("/Prev "+this.makeRef(j.children[X-1])),X<j.children.length-1&&this.line("/Next "+this.makeRef(j.children[X+1])),me.children.length>0&&(this.line("/First "+this.makeRef(me.children[0])),this.line("/Last "+this.makeRef(me.children[me.children.length-1])));var De=this.count=this.count_r({count:0},me);if(De>0&&this.line("/Count "+De),me.options&&me.options.pageNumber){var ke=_.internal.getPageInfo(me.options.pageNumber);this.line("/Dest ["+ke.objId+" 0 R /XYZ 0 "+ie(0)+" 0]")}this.objEnd()}for(var et=0;et<j.children.length;et++)this.renderItems(j.children[et])},_.outline.line=function(j){this.ctx.val+=j+`\r
|
|
|
`},_.outline.makeRef=function(j){return j.id+" 0 R"},_.outline.makeString=function(j){return"("+_.internal.pdfEscape(j)+")"},_.outline.objStart=function(j){this.ctx.val+=`\r
|
|
|
`+j.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},_.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},_.outline.count_r=function(j,ie){for(var X=0;X<ie.children.length;X++)j.count++,this.count_r(j,ie.children[X]);return j.count}}])}(gi.API),function(C){var h=[192,193,194,195,196,197,198,199];C.processJPEG=function(_,j,ie,X,me,De){var ke,et=this.decode.DCT_DECODE,dt=null;if(typeof _=="string"||this.__addimage__.isArrayBuffer(_)||this.__addimage__.isArrayBufferView(_)){switch(_=me||_,_=this.__addimage__.isArrayBuffer(_)?new Uint8Array(_):_,(ke=function(ft){for(var Ct,Ve=256*ft.charCodeAt(4)+ft.charCodeAt(5),nr=ft.length,Zt={width:0,height:0,numcomponents:1},or=4;or<nr;or+=2){if(or+=Ve,h.indexOf(ft.charCodeAt(or+1))!==-1){Ct=256*ft.charCodeAt(or+5)+ft.charCodeAt(or+6),Zt={width:256*ft.charCodeAt(or+7)+ft.charCodeAt(or+8),height:Ct,numcomponents:ft.charCodeAt(or+9)};break}Ve=256*ft.charCodeAt(or+2)+ft.charCodeAt(or+3)}return Zt}(_=this.__addimage__.isArrayBufferView(_)?this.__addimage__.arrayBufferToBinaryString(_):_)).numcomponents){case 1:De=this.color_spaces.DEVICE_GRAY;break;case 4:De=this.color_spaces.DEVICE_CMYK;break;case 3:De=this.color_spaces.DEVICE_RGB}dt={data:_,width:ke.width,height:ke.height,colorSpace:De,bitsPerComponent:8,filter:et,index:j,alias:ie}}return dt}}(gi.API);var Eo,hl,ka,Ya,El,qo=function(){var C,h,_;function j(X){var me,De,ke,et,dt,ft,Ct,Ve,nr,Zt,or,Lt,ar,Ir;for(this.data=X,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},ft=null;;){switch(me=this.readUInt32(),nr=function(){var Zr,mn;for(mn=[],Zr=0;Zr<4;++Zr)mn.push(String.fromCharCode(this.data[this.pos++]));return mn}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(me);break;case"fcTL":ft&&this.animation.frames.push(ft),this.pos+=4,ft={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},dt=this.readUInt16(),et=this.readUInt16()||100,ft.delay=1e3*dt/et,ft.disposeOp=this.data[this.pos++],ft.blendOp=this.data[this.pos++],ft.data=[];break;case"IDAT":case"fdAT":for(nr==="fdAT"&&(this.pos+=4,me-=4),X=(ft!=null?ft.data:void 0)||this.imgData,Lt=0;0<=me?Lt<me:Lt>me;0<=me?++Lt:--Lt)X.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ke=this.palette.length/3,this.transparency.indexed=this.read(me),this.transparency.indexed.length>ke)throw new Error("More transparent colors than palette size");if((Zt=ke-this.transparency.indexed.length)>0)for(ar=0;0<=Zt?ar<Zt:ar>Zt;0<=Zt?++ar:--ar)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(me)[0];break;case 2:this.transparency.rgb=this.read(me)}break;case"tEXt":Ct=(or=this.read(me)).indexOf(0),Ve=String.fromCharCode.apply(String,or.slice(0,Ct)),this.text[Ve]=String.fromCharCode.apply(String,or.slice(Ct+1));break;case"IEND":return ft&&this.animation.frames.push(ft),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(Ir=this.colorType)===4||Ir===6,De=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*De,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=me}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}j.prototype.read=function(X){var me,De;for(De=[],me=0;0<=X?me<X:me>X;0<=X?++me:--me)De.push(this.data[this.pos++]);return De},j.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},j.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},j.prototype.decodePixels=function(X){var me=this.pixelBitlength/8,De=new Uint8Array(this.width*this.height*me),ke=0,et=this;if(X==null&&(X=this.imgData),X.length===0)return new Uint8Array(0);function dt(ft,Ct,Ve,nr){var Zt,or,Lt,ar,Ir,Zr,mn,Gn,Jr,br,en,In,Nt,Wt,Cr,ge,Pe,Ye,st,ot,gt,Ft=Math.ceil((et.width-ft)/Ve),er=Math.ceil((et.height-Ct)/nr),je=et.width==Ft&&et.height==er;for(Wt=me*Ft,In=je?De:new Uint8Array(Wt*er),Zr=X.length,Nt=0,or=0;Nt<er&&ke<Zr;){switch(X[ke++]){case 0:for(ar=Pe=0;Pe<Wt;ar=Pe+=1)In[or++]=X[ke++];break;case 1:for(ar=Ye=0;Ye<Wt;ar=Ye+=1)Zt=X[ke++],Ir=ar<me?0:In[or-me],In[or++]=(Zt+Ir)%256;break;case 2:for(ar=st=0;st<Wt;ar=st+=1)Zt=X[ke++],Lt=(ar-ar%me)/me,Cr=Nt&&In[(Nt-1)*Wt+Lt*me+ar%me],In[or++]=(Cr+Zt)%256;break;case 3:for(ar=ot=0;ot<Wt;ar=ot+=1)Zt=X[ke++],Lt=(ar-ar%me)/me,Ir=ar<me?0:In[or-me],Cr=Nt&&In[(Nt-1)*Wt+Lt*me+ar%me],In[or++]=(Zt+Math.floor((Ir+Cr)/2))%256;break;case 4:for(ar=gt=0;gt<Wt;ar=gt+=1)Zt=X[ke++],Lt=(ar-ar%me)/me,Ir=ar<me?0:In[or-me],Nt===0?Cr=ge=0:(Cr=In[(Nt-1)*Wt+Lt*me+ar%me],ge=Lt&&In[(Nt-1)*Wt+(Lt-1)*me+ar%me]),mn=Ir+Cr-ge,Gn=Math.abs(mn-Ir),br=Math.abs(mn-Cr),en=Math.abs(mn-ge),Jr=Gn<=br&&Gn<=en?Ir:br<=en?Cr:ge,In[or++]=(Zt+Jr)%256;break;default:throw new Error("Invalid filter algorithm: "+X[ke-1])}if(!je){var at=((Ct+Nt*nr)*et.width+ft)*me,Ie=Nt*Wt;for(ar=0;ar<Ft;ar+=1){for(var bt=0;bt<me;bt+=1)De[at++]=In[Ie++];at+=(Ve-1)*me}}Nt++}}return X=St(X),et.interlaceMethod==1?(dt(0,0,8,8),dt(4,0,8,8),dt(0,4,4,8),dt(2,0,4,4),dt(0,2,2,4),dt(1,0,2,2),dt(0,1,1,2)):dt(0,0,1,1),De},j.prototype.decodePalette=function(){var X,me,De,ke,et,dt,ft,Ct,Ve;for(De=this.palette,dt=this.transparency.indexed||[],et=new Uint8Array((dt.length||0)+De.length),ke=0,X=0,me=ft=0,Ct=De.length;ft<Ct;me=ft+=3)et[ke++]=De[me],et[ke++]=De[me+1],et[ke++]=De[me+2],et[ke++]=(Ve=dt[X++])!=null?Ve:255;return et},j.prototype.copyToImageData=function(X,me){var De,ke,et,dt,ft,Ct,Ve,nr,Zt,or,Lt;if(ke=this.colors,Zt=null,De=this.hasAlphaChannel,this.palette.length&&(Zt=(Lt=this._decodedPalette)!=null?Lt:this._decodedPalette=this.decodePalette(),ke=4,De=!0),nr=(et=X.data||X).length,ft=Zt||me,dt=Ct=0,ke===1)for(;dt<nr;)Ve=Zt?4*me[dt/4]:Ct,or=ft[Ve++],et[dt++]=or,et[dt++]=or,et[dt++]=or,et[dt++]=De?ft[Ve++]:255,Ct=Ve;else for(;dt<nr;)Ve=Zt?4*me[dt/4]:Ct,et[dt++]=ft[Ve++],et[dt++]=ft[Ve++],et[dt++]=ft[Ve++],et[dt++]=De?ft[Ve++]:255,Ct=Ve},j.prototype.decode=function(){var X;return X=new Uint8Array(this.width*this.height*4),this.copyToImageData(X,this.decodePixels()),X};var ie=function(){if(Object.prototype.toString.call(Xr)==="[object Window]"){try{h=Xr.document.createElement("canvas"),_=h.getContext("2d")}catch(X){return!1}return!0}return!1};return ie(),C=function(X){var me;if(ie()===!0)return _.width=X.width,_.height=X.height,_.clearRect(0,0,X.width,X.height),_.putImageData(X,0,0),(me=new Image).src=h.toDataURL(),me;throw new Error("This method requires a Browser with Canvas-capability.")},j.prototype.decodeFrames=function(X){var me,De,ke,et,dt,ft,Ct,Ve;if(this.animation){for(Ve=[],De=dt=0,ft=(Ct=this.animation.frames).length;dt<ft;De=++dt)me=Ct[De],ke=X.createImageData(me.width,me.height),et=this.decodePixels(new Uint8Array(me.data)),this.copyToImageData(ke,et),me.imageData=ke,Ve.push(me.image=C(ke));return Ve}},j.prototype.renderFrame=function(X,me){var De,ke,et;return De=(ke=this.animation.frames)[me],et=ke[me-1],me===0&&X.clearRect(0,0,this.width,this.height),(et!=null?et.disposeOp:void 0)===1?X.clearRect(et.xOffset,et.yOffset,et.width,et.height):(et!=null?et.disposeOp:void 0)===2&&X.putImageData(et.imageData,et.xOffset,et.yOffset),De.blendOp===0&&X.clearRect(De.xOffset,De.yOffset,De.width,De.height),X.drawImage(De.image,De.xOffset,De.yOffset)},j.prototype.animate=function(X){var me,De,ke,et,dt,ft,Ct=this;return De=0,ft=this.animation,et=ft.numFrames,ke=ft.frames,dt=ft.numPlays,(me=function(){var Ve,nr;if(Ve=De++%et,nr=ke[Ve],Ct.renderFrame(X,Ve),et>1&&De/et<dt)return Ct.animation._timeout=setTimeout(me,nr.delay)})()},j.prototype.stopAnimation=function(){var X;return clearTimeout((X=this.animation)!=null?X._timeout:void 0)},j.prototype.render=function(X){var me,De;return X._png&&X._png.stopAnimation(),X._png=this,X.width=this.width,X.height=this.height,me=X.getContext("2d"),this.animation?(this.decodeFrames(me),this.animate(me)):(De=me.createImageData(this.width,this.height),this.copyToImageData(De,this.decodePixels()),me.putImageData(De,0,0))},j}();function zo(C){var h=0;if(C[h++]!==71||C[h++]!==73||C[h++]!==70||C[h++]!==56||(C[h++]+1&253)!=56||C[h++]!==97)throw new Error("Invalid GIF 87a/89a header.");var _=C[h++]|C[h++]<<8,j=C[h++]|C[h++]<<8,ie=C[h++],X=ie>>7,me=1<<(7&ie)+1;C[h++],C[h++];var De=null,ke=null;X&&(De=h,ke=me,h+=3*me);var et=!0,dt=[],ft=0,Ct=null,Ve=0,nr=null;for(this.width=_,this.height=j;et&&h<C.length;)switch(C[h++]){case 33:switch(C[h++]){case 255:if(C[h]!==11||C[h+1]==78&&C[h+2]==69&&C[h+3]==84&&C[h+4]==83&&C[h+5]==67&&C[h+6]==65&&C[h+7]==80&&C[h+8]==69&&C[h+9]==50&&C[h+10]==46&&C[h+11]==48&&C[h+12]==3&&C[h+13]==1&&C[h+16]==0)h+=14,nr=C[h++]|C[h++]<<8,h++;else for(h+=12;;){if(!((Nt=C[h++])>=0))throw Error("Invalid block size");if(Nt===0)break;h+=Nt}break;case 249:if(C[h++]!==4||C[h+4]!==0)throw new Error("Invalid graphics extension block.");var Zt=C[h++];ft=C[h++]|C[h++]<<8,Ct=C[h++],!(1&Zt)&&(Ct=null),Ve=Zt>>2&7,h++;break;case 254:for(;;){if(!((Nt=C[h++])>=0))throw Error("Invalid block size");if(Nt===0)break;h+=Nt}break;default:throw new Error("Unknown graphic control label: 0x"+C[h-1].toString(16))}break;case 44:var or=C[h++]|C[h++]<<8,Lt=C[h++]|C[h++]<<8,ar=C[h++]|C[h++]<<8,Ir=C[h++]|C[h++]<<8,Zr=C[h++],mn=Zr>>6&1,Gn=1<<(7&Zr)+1,Jr=De,br=ke,en=!1;Zr>>7&&(en=!0,Jr=h,br=Gn,h+=3*Gn);var In=h;for(h++;;){var Nt;if(!((Nt=C[h++])>=0))throw Error("Invalid block size");if(Nt===0)break;h+=Nt}dt.push({x:or,y:Lt,width:ar,height:Ir,has_local_palette:en,palette_offset:Jr,palette_size:br,data_offset:In,data_length:h-In,transparent_index:Ct,interlaced:!!mn,delay:ft,disposal:Ve});break;case 59:et=!1;break;default:throw new Error("Unknown gif block: 0x"+C[h-1].toString(16))}this.numFrames=function(){return dt.length},this.loopCount=function(){return nr},this.frameInfo=function(Wt){if(Wt<0||Wt>=dt.length)throw new Error("Frame index out of range.");return dt[Wt]},this.decodeAndBlitFrameBGRA=function(Wt,Cr){var ge=this.frameInfo(Wt),Pe=ge.width*ge.height,Ye=new Uint8Array(Pe);pl(C,ge.data_offset,Ye,Pe);var st=ge.palette_offset,ot=ge.transparent_index;ot===null&&(ot=256);var gt=ge.width,Ft=_-gt,er=gt,je=4*(ge.y*_+ge.x),at=4*((ge.y+ge.height)*_+ge.x),Ie=je,bt=4*Ft;ge.interlaced===!0&&(bt+=4*_*7);for(var Kt=8,Jt=0,rr=Ye.length;Jt<rr;++Jt){var dr=Ye[Jt];if(er===0&&(er=gt,(Ie+=bt)>=at&&(bt=4*Ft+4*_*(Kt-1),Ie=je+(gt+Ft)*(Kt<<1),Kt>>=1)),dr===ot)Ie+=4;else{var Lr=C[st+3*dr],Or=C[st+3*dr+1],Mr=C[st+3*dr+2];Cr[Ie++]=Mr,Cr[Ie++]=Or,Cr[Ie++]=Lr,Cr[Ie++]=255}--er}},this.decodeAndBlitFrameRGBA=function(Wt,Cr){var ge=this.frameInfo(Wt),Pe=ge.width*ge.height,Ye=new Uint8Array(Pe);pl(C,ge.data_offset,Ye,Pe);var st=ge.palette_offset,ot=ge.transparent_index;ot===null&&(ot=256);var gt=ge.width,Ft=_-gt,er=gt,je=4*(ge.y*_+ge.x),at=4*((ge.y+ge.height)*_+ge.x),Ie=je,bt=4*Ft;ge.interlaced===!0&&(bt+=4*_*7);for(var Kt=8,Jt=0,rr=Ye.length;Jt<rr;++Jt){var dr=Ye[Jt];if(er===0&&(er=gt,(Ie+=bt)>=at&&(bt=4*Ft+4*_*(Kt-1),Ie=je+(gt+Ft)*(Kt<<1),Kt>>=1)),dr===ot)Ie+=4;else{var Lr=C[st+3*dr],Or=C[st+3*dr+1],Mr=C[st+3*dr+2];Cr[Ie++]=Lr,Cr[Ie++]=Or,Cr[Ie++]=Mr,Cr[Ie++]=255}--er}}}function pl(C,h,_,j){for(var ie=C[h++],X=1<<ie,me=X+1,De=me+1,ke=ie+1,et=(1<<ke)-1,dt=0,ft=0,Ct=0,Ve=C[h++],nr=new Int32Array(4096),Zt=null;;){for(;dt<16&&Ve!==0;)ft|=C[h++]<<dt,dt+=8,Ve===1?Ve=C[h++]:--Ve;if(dt<ke)break;var or=ft&et;if(ft>>=ke,dt-=ke,or!==X){if(or===me)break;for(var Lt=or<De?or:Zt,ar=0,Ir=Lt;Ir>X;)Ir=nr[Ir]>>8,++ar;var Zr=Ir;if(Ct+ar+(Lt!==or?1:0)>j)return void zn.log("Warning, gif stream longer than expected.");_[Ct++]=Zr;var mn=Ct+=ar;for(Lt!==or&&(_[Ct++]=Zr),Ir=Lt;ar--;)Ir=nr[Ir],_[--mn]=255&Ir,Ir>>=8;Zt!==null&&De<4096&&(nr[De++]=Zt<<8|Zr,De>=et+1&&ke<12&&(++ke,et=et<<1|1)),Zt=or}else De=me+1,et=(1<<(ke=ie+1))-1,Zt=null}return Ct!==j&&zn.log("Warning, gif stream shorter than expected."),_}function Go(C){var h,_,j,ie,X,me=Math.floor,De=new Array(64),ke=new Array(64),et=new Array(64),dt=new Array(64),ft=new Array(65535),Ct=new Array(65535),Ve=new Array(64),nr=new Array(64),Zt=[],or=0,Lt=7,ar=new Array(64),Ir=new Array(64),Zr=new Array(64),mn=new Array(256),Gn=new Array(2048),Jr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],br=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],en=[0,1,2,3,4,5,6,7,8,9,10,11],In=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Nt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Wt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Cr=[0,1,2,3,4,5,6,7,8,9,10,11],ge=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Pe=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Ye(je,at){for(var Ie=0,bt=0,Kt=new Array,Jt=1;Jt<=16;Jt++){for(var rr=1;rr<=je[Jt];rr++)Kt[at[bt]]=[],Kt[at[bt]][0]=Ie,Kt[at[bt]][1]=Jt,bt++,Ie++;Ie*=2}return Kt}function st(je){for(var at=je[0],Ie=je[1]-1;Ie>=0;)at&1<<Ie&&(or|=1<<Lt),Ie--,--Lt<0&&(or==255?(ot(255),ot(0)):ot(or),Lt=7,or=0)}function ot(je){Zt.push(je)}function gt(je){ot(je>>8&255),ot(255&je)}function Ft(je,at,Ie,bt,Kt){for(var Jt,rr=Kt[0],dr=Kt[240],Lr=function(Qr,sn){var rn,Vr,Sn,qn,pi,Qe,p,S,D,V,pe=0;for(D=0;D<8;++D){rn=Qr[pe],Vr=Qr[pe+1],Sn=Qr[pe+2],qn=Qr[pe+3],pi=Qr[pe+4],Qe=Qr[pe+5],p=Qr[pe+6];var Ke=rn+(S=Qr[pe+7]),lt=rn-S,yt=Vr+p,Ot=Vr-p,ir=Sn+Qe,wr=Sn-Qe,Sr=qn+pi,Tn=qn-pi,_r=Ke+Sr,kt=Ke-Sr,wn=yt+ir,xn=yt-ir;Qr[pe]=_r+wn,Qr[pe+4]=_r-wn;var kn=.707106781*(xn+kt);Qr[pe+2]=kt+kn,Qr[pe+6]=kt-kn;var pn=.382683433*((_r=Tn+wr)-(xn=Ot+lt)),yi=.5411961*_r+pn,xi=1.306562965*xn+pn,Fi=.707106781*(wn=wr+Ot),os=lt+Fi,fi=lt-Fi;Qr[pe+5]=fi+yi,Qr[pe+3]=fi-yi,Qr[pe+1]=os+xi,Qr[pe+7]=os-xi,pe+=8}for(pe=0,D=0;D<8;++D){rn=Qr[pe],Vr=Qr[pe+8],Sn=Qr[pe+16],qn=Qr[pe+24],pi=Qr[pe+32],Qe=Qr[pe+40],p=Qr[pe+48];var Es=rn+(S=Qr[pe+56]),ns=rn-S,Xi=Vr+p,Nn=Vr-p,qi=Sn+Qe,Js=Sn-Qe,Zi=qn+pi,Gi=qn-pi,hs=Es+Zi,Ms=Es-Zi,Ls=Xi+qi,Ni=Xi-qi;Qr[pe]=hs+Ls,Qr[pe+32]=hs-Ls;var Ps=.707106781*(Ni+Ms);Qr[pe+16]=Ms+Ps,Qr[pe+48]=Ms-Ps;var Gs=.382683433*((hs=Gi+Js)-(Ni=Nn+ns)),ga=.5411961*hs+Gs,oa=1.306562965*Ni+Gs,wa=.707106781*(Ls=Js+Nn),Lo=ns+wa,go=ns-wa;Qr[pe+40]=go+ga,Qr[pe+24]=go-ga,Qr[pe+8]=Lo+oa,Qr[pe+56]=Lo-oa,pe++}for(D=0;D<64;++D)V=Qr[D]*sn[D],Ve[D]=V>0?V+.5|0:V-.5|0;return Ve}(je,at),Or=0;Or<64;++Or)nr[Jr[Or]]=Lr[Or];var Mr=nr[0]-Ie;Ie=nr[0],Mr==0?st(bt[0]):(st(bt[Ct[Jt=32767+Mr]]),st(ft[Jt]));for(var Yr=63;Yr>0&&nr[Yr]==0;)Yr--;if(Yr==0)return st(rr),Ie;for(var Qn,Tr=1;Tr<=Yr;){for(var Qt=Tr;nr[Tr]==0&&Tr<=Yr;)++Tr;var ei=Tr-Qt;if(ei>=16){Qn=ei>>4;for(var Yn=1;Yn<=Qn;++Yn)st(dr);ei&=15}Jt=32767+nr[Tr],st(Kt[(ei<<4)+Ct[Jt]]),st(ft[Jt]),Tr++}return Yr!=63&&st(rr),Ie}function er(je){je=Math.min(Math.max(je,1),100),X!=je&&(function(at){for(var Ie=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],bt=0;bt<64;bt++){var Kt=me((Ie[bt]*at+50)/100);Kt=Math.min(Math.max(Kt,1),255),De[Jr[bt]]=Kt}for(var Jt=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],rr=0;rr<64;rr++){var dr=me((Jt[rr]*at+50)/100);dr=Math.min(Math.max(dr,1),255),ke[Jr[rr]]=dr}for(var Lr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Or=0,Mr=0;Mr<8;Mr++)for(var Yr=0;Yr<8;Yr++)et[Or]=1/(De[Jr[Or]]*Lr[Mr]*Lr[Yr]*8),dt[Or]=1/(ke[Jr[Or]]*Lr[Mr]*Lr[Yr]*8),Or++}(je<50?Math.floor(5e3/je):Math.floor(200-2*je)),X=je)}this.encode=function(je,at){at&&er(at),Zt=new Array,or=0,Lt=7,gt(65496),gt(65504),gt(16),ot(74),ot(70),ot(73),ot(70),ot(0),ot(1),ot(1),ot(0),gt(1),gt(1),ot(0),ot(0),function(){gt(65499),gt(132),ot(0);for(var Vr=0;Vr<64;Vr++)ot(De[Vr]);ot(1);for(var Sn=0;Sn<64;Sn++)ot(ke[Sn])}(),function(Vr,Sn){gt(65472),gt(17),ot(8),gt(Sn),gt(Vr),ot(3),ot(1),ot(17),ot(0),ot(2),ot(17),ot(1),ot(3),ot(17),ot(1)}(je.width,je.height),function(){gt(65476),gt(418),ot(0);for(var Vr=0;Vr<16;Vr++)ot(br[Vr+1]);for(var Sn=0;Sn<=11;Sn++)ot(en[Sn]);ot(16);for(var qn=0;qn<16;qn++)ot(In[qn+1]);for(var pi=0;pi<=161;pi++)ot(Nt[pi]);ot(1);for(var Qe=0;Qe<16;Qe++)ot(Wt[Qe+1]);for(var p=0;p<=11;p++)ot(Cr[p]);ot(17);for(var S=0;S<16;S++)ot(ge[S+1]);for(var D=0;D<=161;D++)ot(Pe[D])}(),gt(65498),gt(12),ot(3),ot(1),ot(0),ot(2),ot(17),ot(3),ot(17),ot(0),ot(63),ot(0);var Ie=0,bt=0,Kt=0;or=0,Lt=7,this.encode.displayName="_encode_";for(var Jt,rr,dr,Lr,Or,Mr,Yr,Qn,Tr,Qt=je.data,ei=je.width,Yn=je.height,Qr=4*ei,sn=0;sn<Yn;){for(Jt=0;Jt<Qr;){for(Or=Qr*sn+Jt,Yr=-1,Qn=0,Tr=0;Tr<64;Tr++)Mr=Or+(Qn=Tr>>3)*Qr+(Yr=4*(7&Tr)),sn+Qn>=Yn&&(Mr-=Qr*(sn+1+Qn-Yn)),Jt+Yr>=Qr&&(Mr-=Jt+Yr-Qr+4),rr=Qt[Mr++],dr=Qt[Mr++],Lr=Qt[Mr++],ar[Tr]=(Gn[rr]+Gn[dr+256>>0]+Gn[Lr+512>>0]>>16)-128,Ir[Tr]=(Gn[rr+768>>0]+Gn[dr+1024>>0]+Gn[Lr+1280>>0]>>16)-128,Zr[Tr]=(Gn[rr+1280>>0]+Gn[dr+1536>>0]+Gn[Lr+1792>>0]>>16)-128;Ie=Ft(ar,et,Ie,h,j),bt=Ft(Ir,dt,bt,_,ie),Kt=Ft(Zr,dt,Kt,_,ie),Jt+=32}sn+=8}if(Lt>=0){var rn=[];rn[1]=Lt+1,rn[0]=(1<<Lt+1)-1,st(rn)}return gt(65497),new Uint8Array(Zt)},C=C||50,function(){for(var je=String.fromCharCode,at=0;at<256;at++)mn[at]=je(at)}(),h=Ye(br,en),_=Ye(Wt,Cr),j=Ye(In,Nt),ie=Ye(ge,Pe),function(){for(var je=1,at=2,Ie=1;Ie<=15;Ie++){for(var bt=je;bt<at;bt++)Ct[32767+bt]=Ie,ft[32767+bt]=[],ft[32767+bt][1]=Ie,ft[32767+bt][0]=bt;for(var Kt=-(at-1);Kt<=-je;Kt++)Ct[32767+Kt]=Ie,ft[32767+Kt]=[],ft[32767+Kt][1]=Ie,ft[32767+Kt][0]=at-1+Kt;je<<=1,at<<=1}}(),function(){for(var je=0;je<256;je++)Gn[je]=19595*je,Gn[je+256>>0]=38470*je,Gn[je+512>>0]=7471*je+32768,Gn[je+768>>0]=-11059*je,Gn[je+1024>>0]=-21709*je,Gn[je+1280>>0]=32768*je+8421375,Gn[je+1536>>0]=-27439*je,Gn[je+1792>>0]=-5329*je}(),er(C)}function Ma(C,h){if(this.pos=0,this.buffer=C,this.datav=new DataView(C.buffer),this.is_with_alpha=!!h,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ba(C){function h(br){if(!br)throw Error("assert :P")}function _(br,en,In){for(var Nt=0;4>Nt;Nt++)if(br[en+Nt]!=In.charCodeAt(Nt))return!0;return!1}function j(br,en,In,Nt,Wt){for(var Cr=0;Cr<Wt;Cr++)br[en+Cr]=In[Nt+Cr]}function ie(br,en,In,Nt){for(var Wt=0;Wt<Nt;Wt++)br[en+Wt]=In}function X(br){return new Int32Array(br)}function me(br,en){for(var In=[],Nt=0;Nt<br;Nt++)In.push(new en);return In}function De(br,en){var In=[];return function Nt(Wt,Cr,ge){for(var Pe=ge[Cr],Ye=0;Ye<Pe&&(Wt.push(ge.length>Cr+1?[]:new en),!(ge.length<Cr+1));Ye++)Nt(Wt[Ye],Cr+1,ge)}(In,0,br),In}var ke=function(){var br=this;function en(a,u){for(var w=1<<u-1>>>0;a&w;)w>>>=1;return w?(a&w-1)+w:a}function In(a,u,w,B,Y){h(!(B%w));do a[u+(B-=w)]=Y;while(0<B)}function Nt(a,u,w,B,Y){if(h(2328>=Y),512>=Y)var oe=X(512);else if((oe=X(Y))==null)return 0;return function(xe,Ne,Me,We,ct,xt){var wt,Et,qt=Ne,Pt=1<<Me,Gt=X(16),tr=X(16);for(h(ct!=0),h(We!=null),h(xe!=null),h(0<Me),Et=0;Et<ct;++Et){if(15<We[Et])return 0;++Gt[We[Et]]}if(Gt[0]==ct)return 0;for(tr[1]=0,wt=1;15>wt;++wt){if(Gt[wt]>1<<wt)return 0;tr[wt+1]=tr[wt]+Gt[wt]}for(Et=0;Et<ct;++Et)wt=We[Et],0<We[Et]&&(xt[tr[wt]++]=Et);if(tr[15]==1)return(We=new Wt).g=0,We.value=xt[0],In(xe,qt,1,Pt,We),Pt;var Ur,Wr=-1,zr=Pt-1,An=0,dn=1,Wn=1,jr=1<<Me;for(Et=0,wt=1,ct=2;wt<=Me;++wt,ct<<=1){if(dn+=Wn<<=1,0>(Wn-=Gt[wt]))return 0;for(;0<Gt[wt];--Gt[wt])(We=new Wt).g=wt,We.value=xt[Et++],In(xe,qt+An,ct,jr,We),An=en(An,wt)}for(wt=Me+1,ct=2;15>=wt;++wt,ct<<=1){if(dn+=Wn<<=1,0>(Wn-=Gt[wt]))return 0;for(;0<Gt[wt];--Gt[wt]){if(We=new Wt,(An&zr)!=Wr){for(qt+=jr,Ur=1<<(Wr=wt)-Me;15>Wr&&!(0>=(Ur-=Gt[Wr]));)++Wr,Ur<<=1;Pt+=jr=1<<(Ur=Wr-Me),xe[Ne+(Wr=An&zr)].g=Ur+Me,xe[Ne+Wr].value=qt-Ne-Wr}We.g=wt-Me,We.value=xt[Et++],In(xe,qt+(An>>Me),ct,jr,We),An=en(An,wt)}}return dn!=2*tr[15]-1?0:Pt}(a,u,w,B,Y,oe)}function Wt(){this.value=this.g=0}function Cr(){this.value=this.g=0}function ge(){this.G=me(5,Wt),this.H=X(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=me(bo,Cr)}function Pe(a,u,w,B){h(a!=null),h(u!=null),h(2147483648>B),a.Ca=254,a.I=0,a.b=-8,a.Ka=0,a.oa=u,a.pa=w,a.Jd=u,a.Yc=w+B,a.Zc=4<=B?w+B-4+1:w,Jt(a)}function Ye(a,u){for(var w=0;0<u--;)w|=dr(a,128)<<u;return w}function st(a,u){var w=Ye(a,u);return rr(a)?-w:w}function ot(a,u,w,B){var Y,oe=0;for(h(a!=null),h(u!=null),h(4294967288>B),a.Sb=B,a.Ra=0,a.u=0,a.h=0,4<B&&(B=4),Y=0;Y<B;++Y)oe+=u[w+Y]<<8*Y;a.Ra=oe,a.bb=B,a.oa=u,a.pa=w}function gt(a){for(;8<=a.u&&a.bb<a.Sb;)a.Ra>>>=8,a.Ra+=a.oa[a.pa+a.bb]<<Ea-8>>>0,++a.bb,a.u-=8;Ie(a)&&(a.h=1,a.u=0)}function Ft(a,u){if(h(0<=u),!a.h&&u<=jo){var w=at(a)&io[u];return a.u+=u,gt(a),w}return a.h=1,a.u=0}function er(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function je(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function at(a){return a.Ra>>>(a.u&Ea-1)>>>0}function Ie(a){return h(a.bb<=a.Sb),a.h||a.bb==a.Sb&&a.u>Ea}function bt(a,u){a.u=u,a.h=Ie(a)}function Kt(a){a.u>=Il&&(h(a.u>=Il),gt(a))}function Jt(a){h(a!=null&&a.oa!=null),a.pa<a.Zc?(a.I=(a.oa[a.pa++]|a.I<<8)>>>0,a.b+=8):(h(a!=null&&a.oa!=null),a.pa<a.Yc?(a.b+=8,a.I=a.oa[a.pa++]|a.I<<8):a.Ka?a.b=0:(a.I<<=8,a.b+=8,a.Ka=1))}function rr(a){return Ye(a,1)}function dr(a,u){var w=a.Ca;0>a.b&&Jt(a);var B=a.b,Y=w*u>>>8,oe=(a.I>>>B>Y)+0;for(oe?(w-=Y,a.I-=Y+1<<B>>>0):w=Y+1,B=w,Y=0;256<=B;)Y+=8,B>>=8;return B=7^Y+fo[B],a.b-=B,a.Ca=(w<<B)-1,oe}function Lr(a,u,w){a[u+0]=w>>24&255,a[u+1]=w>>16&255,a[u+2]=w>>8&255,a[u+3]=w>>0&255}function Or(a,u){return a[u+0]<<0|a[u+1]<<8}function Mr(a,u){return Or(a,u)|a[u+2]<<16}function Yr(a,u){return Or(a,u)|Or(a,u+2)<<16}function Qn(a,u){var w=1<<u;return h(a!=null),h(0<u),a.X=X(w),a.X==null?0:(a.Mb=32-u,a.Xa=u,1)}function Tr(a,u){h(a!=null),h(u!=null),h(a.Xa==u.Xa),j(u.X,0,a.X,0,1<<u.Xa)}function Qt(){this.X=[],this.Xa=this.Mb=0}function ei(a,u,w,B){h(w!=null),h(B!=null);var Y=w[0],oe=B[0];return Y==0&&(Y=(a*oe+u/2)/u),oe==0&&(oe=(u*Y+a/2)/a),0>=Y||0>=oe?0:(w[0]=Y,B[0]=oe,1)}function Yn(a,u){return a+(1<<u)-1>>>u}function Qr(a,u){return((4278255360&a)+(4278255360&u)>>>0&4278255360)+((16711935&a)+(16711935&u)>>>0&16711935)>>>0}function sn(a,u){br[u]=function(w,B,Y,oe,xe,Ne,Me){var We;for(We=0;We<xe;++We){var ct=br[a](Ne[Me+We-1],Y,oe+We);Ne[Me+We]=Qr(w[B+We],ct)}}}function rn(){this.ud=this.hd=this.jd=0}function Vr(a,u){return((4278124286&(a^u))>>>1)+(a&u)>>>0}function Sn(a){return 0<=a&&256>a?a:0>a?0:255<a?255:void 0}function qn(a,u){return Sn(a+(a-u+.5>>1))}function pi(a,u,w){return Math.abs(u-w)-Math.abs(a-w)}function Qe(a,u,w,B,Y,oe,xe){for(B=oe[xe-1],w=0;w<Y;++w)oe[xe+w]=B=Qr(a[u+w],B)}function p(a,u,w,B,Y){var oe;for(oe=0;oe<w;++oe){var xe=a[u+oe],Ne=xe>>8&255,Me=16711935&(Me=(Me=16711935&xe)+((Ne<<16)+Ne));B[Y+oe]=(4278255360&xe)+Me>>>0}}function S(a,u){u.jd=a>>0&255,u.hd=a>>8&255,u.ud=a>>16&255}function D(a,u,w,B,Y,oe){var xe;for(xe=0;xe<B;++xe){var Ne=u[w+xe],Me=Ne>>>8,We=Ne,ct=255&(ct=(ct=Ne>>>16)+((a.jd<<24>>24)*(Me<<24>>24)>>>5));We=255&(We=(We=We+((a.hd<<24>>24)*(Me<<24>>24)>>>5))+((a.ud<<24>>24)*(ct<<24>>24)>>>5)),Y[oe+xe]=(4278255360&Ne)+(ct<<16)+We}}function V(a,u,w,B,Y){br[u]=function(oe,xe,Ne,Me,We,ct,xt,wt,Et){for(Me=xt;Me<wt;++Me)for(xt=0;xt<Et;++xt)We[ct++]=Y(Ne[B(oe[xe++])])},br[a]=function(oe,xe,Ne,Me,We,ct,xt){var wt=8>>oe.b,Et=oe.Ea,qt=oe.K[0],Pt=oe.w;if(8>wt)for(oe=(1<<oe.b)-1,Pt=(1<<wt)-1;xe<Ne;++xe){var Gt,tr=0;for(Gt=0;Gt<Et;++Gt)Gt&oe||(tr=B(Me[We++])),ct[xt++]=Y(qt[tr&Pt]),tr>>=wt}else br["VP8LMapColor"+w](Me,We,qt,Pt,ct,xt,xe,Ne,Et)}}function pe(a,u,w,B,Y){for(w=u+w;u<w;){var oe=a[u++];B[Y++]=oe>>16&255,B[Y++]=oe>>8&255,B[Y++]=oe>>0&255}}function Ke(a,u,w,B,Y){for(w=u+w;u<w;){var oe=a[u++];B[Y++]=oe>>16&255,B[Y++]=oe>>8&255,B[Y++]=oe>>0&255,B[Y++]=oe>>24&255}}function lt(a,u,w,B,Y){for(w=u+w;u<w;){var oe=(xe=a[u++])>>16&240|xe>>12&15,xe=xe>>0&240|xe>>28&15;B[Y++]=oe,B[Y++]=xe}}function yt(a,u,w,B,Y){for(w=u+w;u<w;){var oe=(xe=a[u++])>>16&248|xe>>13&7,xe=xe>>5&224|xe>>3&31;B[Y++]=oe,B[Y++]=xe}}function Ot(a,u,w,B,Y){for(w=u+w;u<w;){var oe=a[u++];B[Y++]=oe>>0&255,B[Y++]=oe>>8&255,B[Y++]=oe>>16&255}}function ir(a,u,w,B,Y,oe){if(oe==0)for(w=u+w;u<w;)Lr(B,((oe=a[u++])[0]>>24|oe[1]>>8&65280|oe[2]<<8&16711680|oe[3]<<24)>>>0),Y+=32;else j(B,Y,a,u,w)}function wr(a,u){br[u][0]=br[a+"0"],br[u][1]=br[a+"1"],br[u][2]=br[a+"2"],br[u][3]=br[a+"3"],br[u][4]=br[a+"4"],br[u][5]=br[a+"5"],br[u][6]=br[a+"6"],br[u][7]=br[a+"7"],br[u][8]=br[a+"8"],br[u][9]=br[a+"9"],br[u][10]=br[a+"10"],br[u][11]=br[a+"11"],br[u][12]=br[a+"12"],br[u][13]=br[a+"13"],br[u][14]=br[a+"0"],br[u][15]=br[a+"0"]}function Sr(a){return a==xc||a==Nc||a==tc||a==kc}function Tn(){this.eb=[],this.size=this.A=this.fb=0}function _r(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function kt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Tn,this.f.kb=new _r,this.sd=null}function wn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function xn(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function kn(a){return alert("todo:WebPSamplerProcessPlane"),a.T}function pn(a,u){var w=a.T,B=u.ba.f.RGBA,Y=B.eb,oe=B.fb+a.ka*B.A,xe=ul[u.ba.S],Ne=a.y,Me=a.O,We=a.f,ct=a.N,xt=a.ea,wt=a.W,Et=u.cc,qt=u.dc,Pt=u.Mc,Gt=u.Nc,tr=a.ka,Ur=a.ka+a.T,Wr=a.U,zr=Wr+1>>1;for(tr==0?xe(Ne,Me,null,null,We,ct,xt,wt,We,ct,xt,wt,Y,oe,null,null,Wr):(xe(u.ec,u.fc,Ne,Me,Et,qt,Pt,Gt,We,ct,xt,wt,Y,oe-B.A,Y,oe,Wr),++w);tr+2<Ur;tr+=2)Et=We,qt=ct,Pt=xt,Gt=wt,ct+=a.Rc,wt+=a.Rc,oe+=2*B.A,xe(Ne,(Me+=2*a.fa)-a.fa,Ne,Me,Et,qt,Pt,Gt,We,ct,xt,wt,Y,oe-B.A,Y,oe,Wr);return Me+=a.fa,a.j+Ur<a.o?(j(u.ec,u.fc,Ne,Me,Wr),j(u.cc,u.dc,We,ct,zr),j(u.Mc,u.Nc,xt,wt,zr),w--):1&Ur||xe(Ne,Me,null,null,We,ct,xt,wt,We,ct,xt,wt,Y,oe+B.A,null,null,Wr),w}function yi(a,u,w){var B=a.F,Y=[a.J];if(B!=null){var oe=a.U,xe=u.ba.S,Ne=xe==bu||xe==tc;u=u.ba.f.RGBA;var Me=[0],We=a.ka;Me[0]=a.T,a.Kb&&(We==0?--Me[0]:(--We,Y[0]-=a.width),a.j+a.ka+a.T==a.o&&(Me[0]=a.o-a.j-We));var ct=u.eb;We=u.fb+We*u.A,a=ha(B,Y[0],a.width,oe,Me,ct,We+(Ne?0:3),u.A),h(w==Me),a&&Sr(xe)&&xl(ct,We,Ne,oe,Me,u.A)}return 0}function xi(a){var u=a.ma,w=u.ba.S,B=11>w,Y=w==mc||w==wc||w==bu||w==Pc||w==12||Sr(w);if(u.memory=null,u.Ib=null,u.Jb=null,u.Nd=null,!Zu(u.Oa,a,Y?11:12))return 0;if(Y&&Sr(w)&&Jn(),a.da)alert("todo:use_scaling");else{if(B){if(u.Ib=kn,a.Kb){if(w=a.U+1>>1,u.memory=X(a.U+2*w),u.memory==null)return 0;u.ec=u.memory,u.fc=0,u.cc=u.ec,u.dc=u.fc+a.U,u.Mc=u.cc,u.Nc=u.dc+w,u.Ib=pn,Jn()}}else alert("todo:EmitYUV");Y&&(u.Jb=yi,B&&Gr())}if(B&&!su){for(a=0;256>a;++a)i[a]=89858*(a-128)+Cc>>_c,r[a]=-22014*(a-128)+Cc,t[a]=-45773*(a-128),e[a]=113618*(a-128)+Cc>>_c;for(a=vc;a<Sc;++a)u=76283*(a-16)+Cc>>_c,n[a-vc]=al(u,255),s[a-vc]=al(u+8>>4,15);su=1}return 1}function Fi(a){var u=a.ma,w=a.U,B=a.T;return h(!(1&a.ka)),0>=w||0>=B?0:(w=u.Ib(a,u),u.Jb!=null&&u.Jb(a,u,w),u.Dc+=w,1)}function os(a){a.ma.memory=null}function fi(a,u,w,B){return Ft(a,8)!=47?0:(u[0]=Ft(a,14)+1,w[0]=Ft(a,14)+1,B[0]=Ft(a,1),Ft(a,3)!=0?0:!a.h)}function Es(a,u){if(4>a)return a+1;var w=a-2>>1;return(2+(1&a)<<w)+Ft(u,w)+1}function ns(a,u){return 120<u?u-120:1<=(w=((w=Mc[u-1])>>4)*a+(8-(15&w)))?w:1;var w}function Xi(a,u,w){var B=at(w),Y=a[u+=255&B].g-8;return 0<Y&&(bt(w,w.u+8),B=at(w),u+=a[u].value,u+=B&(1<<Y)-1),bt(w,w.u+a[u].g),a[u].value}function Nn(a,u,w){return w.g+=a.g,w.value+=a.value<<u>>>0,h(8>=w.g),a.g}function qi(a,u,w){var B=a.xc;return h((u=B==0?0:a.vc[a.md*(w>>B)+(u>>B)])<a.Wb),a.Ya[u]}function Js(a,u,w,B){var Y=a.ab,oe=a.c*u,xe=a.C;u=xe+u;var Ne=w,Me=B;for(B=a.Ta,w=a.Ua;0<Y--;){var We=a.gc[Y],ct=xe,xt=u,wt=Ne,Et=Me,qt=(Me=B,Ne=w,We.Ea);switch(h(ct<xt),h(xt<=We.nc),We.hc){case 2:pu(wt,Et,(xt-ct)*qt,Me,Ne);break;case 0:var Pt=ct,Gt=xt,tr=Me,Ur=Ne,Wr=(jr=We).Ea;Pt==0&&(Ul(wt,Et,null,null,1,tr,Ur),Qe(wt,Et+1,0,0,Wr-1,tr,Ur+1),Et+=Wr,Ur+=Wr,++Pt);for(var zr=1<<jr.b,An=zr-1,dn=Yn(Wr,jr.b),Wn=jr.K,jr=jr.w+(Pt>>jr.b)*dn;Pt<Gt;){var Mn=Wn,Ii=jr,Ei=1;for(vl(wt,Et,tr,Ur-Wr,1,tr,Ur);Ei<Wr;){var Si=(Ei&~An)+zr;Si>Wr&&(Si=Wr),(0,yl[Mn[Ii++]>>8&15])(wt,Et+ +Ei,tr,Ur+Ei-Wr,Si-Ei,tr,Ur+Ei),Ei=Si}Et+=Wr,Ur+=Wr,++Pt&An||(jr+=dn)}xt!=We.nc&&j(Me,Ne-qt,Me,Ne+(xt-ct-1)*qt,qt);break;case 1:for(qt=wt,Gt=Et,Wr=(wt=We.Ea)-(Ur=wt&~(tr=(Et=1<<We.b)-1)),Pt=Yn(wt,We.b),zr=We.K,We=We.w+(ct>>We.b)*Pt;ct<xt;){for(An=zr,dn=We,Wn=new rn,jr=Gt+Ur,Mn=Gt+wt;Gt<jr;)S(An[dn++],Wn),bl(Wn,qt,Gt,Et,Me,Ne),Gt+=Et,Ne+=Et;Gt<Mn&&(S(An[dn++],Wn),bl(Wn,qt,Gt,Wr,Me,Ne),Gt+=Wr,Ne+=Wr),++ct&tr||(We+=Pt)}break;case 3:if(wt==Me&&Et==Ne&&0<We.b){for(Gt=Me,wt=qt=Ne+(xt-ct)*qt-(Ur=(xt-ct)*Yn(We.Ea,We.b)),Et=Me,tr=Ne,Pt=[],Ur=(Wr=Ur)-1;0<=Ur;--Ur)Pt[Ur]=Et[tr+Ur];for(Ur=Wr-1;0<=Ur;--Ur)Gt[wt+Ur]=Pt[Ur];_a(We,ct,xt,Me,qt,Me,Ne)}else _a(We,ct,xt,wt,Et,Me,Ne)}Ne=B,Me=w}Me!=w&&j(B,w,Ne,Me,oe)}function Zi(a,u){var w=a.V,B=a.Ba+a.c*a.C,Y=u-a.C;if(h(u<=a.l.o),h(16>=Y),0<Y){var oe=a.l,xe=a.Ta,Ne=a.Ua,Me=oe.width;if(Js(a,Y,w,B),Y=Ne=[Ne],h((w=a.C)<(B=u)),h(oe.v<oe.va),B>oe.o&&(B=oe.o),w<oe.j){var We=oe.j-w;w=oe.j,Y[0]+=We*Me}if(w>=B?w=0:(Y[0]+=4*oe.v,oe.ka=w-oe.j,oe.U=oe.va-oe.v,oe.T=B-w,w=1),w){if(Ne=Ne[0],11>(w=a.ca).S){var ct=w.f.RGBA,xt=(B=w.S,Y=oe.U,oe=oe.T,We=ct.eb,ct.A),wt=oe;for(ct=ct.fb+a.Ma*ct.A;0<wt--;){var Et=xe,qt=Ne,Pt=Y,Gt=We,tr=ct;switch(B){case Pu:Oo(Et,qt,Pt,Gt,tr);break;case mc:ho(Et,qt,Pt,Gt,tr);break;case xc:ho(Et,qt,Pt,Gt,tr),xl(Gt,tr,0,Pt,1,0);break;case ec:Tl(Et,qt,Pt,Gt,tr);break;case wc:ir(Et,qt,Pt,Gt,tr,1);break;case Nc:ir(Et,qt,Pt,Gt,tr,1),xl(Gt,tr,0,Pt,1,0);break;case bu:ir(Et,qt,Pt,Gt,tr,0);break;case tc:ir(Et,qt,Pt,Gt,tr,0),xl(Gt,tr,1,Pt,1,0);break;case Pc:wl(Et,qt,Pt,Gt,tr);break;case kc:wl(Et,qt,Pt,Gt,tr),va(Gt,tr,Pt,1,0);break;case zc:eu(Et,qt,Pt,Gt,tr);break;default:h(0)}Ne+=Me,ct+=xt}a.Ma+=oe}else alert("todo:EmitRescaledRowsYUVA");h(a.Ma<=w.height)}}a.C=u,h(a.C<=a.i)}function Gi(a){var u;if(0<a.ua)return 0;for(u=0;u<a.Wb;++u){var w=a.Ya[u].G,B=a.Ya[u].H;if(0<w[1][B[1]+0].g||0<w[2][B[2]+0].g||0<w[3][B[3]+0].g)return 0}return 1}function hs(a,u,w,B,Y,oe){if(a.Z!=0){var xe=a.qd,Ne=a.rd;for(h(wu[a.Z]!=null);u<w;++u)wu[a.Z](xe,Ne,B,Y,B,Y,oe),xe=B,Ne=Y,Y+=oe;a.qd=xe,a.rd=Ne}}function Ms(a,u){var w=a.l.ma,B=w.Z==0||w.Z==1?a.l.j:a.C;if(B=a.C<B?B:a.C,h(u<=a.l.o),u>B){var Y=a.l.width,oe=w.ca,xe=w.tb+Y*B,Ne=a.V,Me=a.Ba+a.c*B,We=a.gc;h(a.ab==1),h(We[0].hc==3),dc(We[0],B,u,Ne,Me,oe,xe),hs(w,B,u,oe,xe,Y)}a.C=a.Ma=u}function Ls(a,u,w,B,Y,oe,xe){var Ne=a.$/B,Me=a.$%B,We=a.m,ct=a.s,xt=w+a.$,wt=xt;Y=w+B*Y;var Et=w+B*oe,qt=280+ct.ua,Pt=a.Pb?Ne:16777216,Gt=0<ct.ua?ct.Wa:null,tr=ct.wc,Ur=xt<Et?qi(ct,Me,Ne):null;h(a.C<oe),h(Et<=Y);var Wr=!1;e:for(;;){for(;Wr||xt<Et;){var zr=0;if(Ne>=Pt){var An=xt-w;h((Pt=a).Pb),Pt.wd=Pt.m,Pt.xd=An,0<Pt.s.ua&&Tr(Pt.s.Wa,Pt.s.vb),Pt=Ne+aA}if(Me&tr||(Ur=qi(ct,Me,Ne)),h(Ur!=null),Ur.Qb&&(u[xt]=Ur.qb,Wr=!0),!Wr)if(Kt(We),Ur.jc){zr=We,An=u;var dn=xt,Wn=Ur.pd[at(zr)&bo-1];h(Ur.jc),256>Wn.g?(bt(zr,zr.u+Wn.g),An[dn]=Wn.value,zr=0):(bt(zr,zr.u+Wn.g-256),h(256<=Wn.value),zr=Wn.value),zr==0&&(Wr=!0)}else zr=Xi(Ur.G[0],Ur.H[0],We);if(We.h)break;if(Wr||256>zr){if(!Wr)if(Ur.nd)u[xt]=(Ur.qb|zr<<8)>>>0;else{if(Kt(We),Wr=Xi(Ur.G[1],Ur.H[1],We),Kt(We),An=Xi(Ur.G[2],Ur.H[2],We),dn=Xi(Ur.G[3],Ur.H[3],We),We.h)break;u[xt]=(dn<<24|Wr<<16|zr<<8|An)>>>0}if(Wr=!1,++xt,++Me>=B&&(Me=0,++Ne,xe!=null&&Ne<=oe&&!(Ne%16)&&xe(a,Ne),Gt!=null))for(;wt<xt;)zr=u[wt++],Gt.X[(506832829*zr&4294967295)>>>Gt.Mb]=zr}else if(280>zr){if(zr=Es(zr-256,We),An=Xi(Ur.G[4],Ur.H[4],We),Kt(We),An=ns(B,An=Es(An,We)),We.h)break;if(xt-w<An||Y-xt<zr)break e;for(dn=0;dn<zr;++dn)u[xt+dn]=u[xt+dn-An];for(xt+=zr,Me+=zr;Me>=B;)Me-=B,++Ne,xe!=null&&Ne<=oe&&!(Ne%16)&&xe(a,Ne);if(h(xt<=Y),Me&tr&&(Ur=qi(ct,Me,Ne)),Gt!=null)for(;wt<xt;)zr=u[wt++],Gt.X[(506832829*zr&4294967295)>>>Gt.Mb]=zr}else{if(!(zr<qt))break e;for(Wr=zr-280,h(Gt!=null);wt<xt;)zr=u[wt++],Gt.X[(506832829*zr&4294967295)>>>Gt.Mb]=zr;zr=xt,h(!(Wr>>>(An=Gt).Xa)),u[zr]=An.X[Wr],Wr=!0}Wr||h(We.h==Ie(We))}if(a.Pb&&We.h&&xt<Y)h(a.m.h),a.a=5,a.m=a.wd,a.$=a.xd,0<a.s.ua&&Tr(a.s.vb,a.s.Wa);else{if(We.h)break e;xe!=null&&xe(a,Ne>oe?oe:Ne),a.a=0,a.$=xt-w}return 1}return a.a=3,0}function Ni(a){h(a!=null),a.vc=null,a.yc=null,a.Ya=null;var u=a.Wa;u!=null&&(u.X=null),a.vb=null,h(a!=null)}function Ps(){var a=new ql;return a==null?null:(a.a=0,a.xb=ic,wr("Predictor","VP8LPredictors"),wr("Predictor","VP8LPredictors_C"),wr("PredictorAdd","VP8LPredictorsAdd"),wr("PredictorAdd","VP8LPredictorsAdd_C"),pu=p,bl=D,Oo=pe,ho=Ke,wl=lt,eu=yt,Tl=Ot,br.VP8LMapColor32b=mu,br.VP8LMapColor8b=fc,a)}function Gs(a,u,w,B,Y){var oe=1,xe=[a],Ne=[u],Me=B.m,We=B.s,ct=null,xt=0;e:for(;;){if(w)for(;oe&&Ft(Me,1);){var wt=xe,Et=Ne,qt=B,Pt=1,Gt=qt.m,tr=qt.gc[qt.ab],Ur=Ft(Gt,2);if(qt.Oc&1<<Ur)oe=0;else{switch(qt.Oc|=1<<Ur,tr.hc=Ur,tr.Ea=wt[0],tr.nc=Et[0],tr.K=[null],++qt.ab,h(4>=qt.ab),Ur){case 0:case 1:tr.b=Ft(Gt,3)+2,Pt=Gs(Yn(tr.Ea,tr.b),Yn(tr.nc,tr.b),0,qt,tr.K),tr.K=tr.K[0];break;case 3:var Wr,zr=Ft(Gt,8)+1,An=16<zr?0:4<zr?1:2<zr?2:3;if(wt[0]=Yn(tr.Ea,An),tr.b=An,Wr=Pt=Gs(zr,1,0,qt,tr.K)){var dn,Wn=zr,jr=tr,Mn=1<<(8>>jr.b),Ii=X(Mn);if(Ii==null)Wr=0;else{var Ei=jr.K[0],Si=jr.w;for(Ii[0]=jr.K[0][0],dn=1;dn<1*Wn;++dn)Ii[dn]=Qr(Ei[Si+dn],Ii[dn-1]);for(;dn<4*Mn;++dn)Ii[dn]=0;jr.K[0]=null,jr.K[0]=Ii,Wr=1}}Pt=Wr;break;case 2:break;default:h(0)}oe=Pt}}if(xe=xe[0],Ne=Ne[0],oe&&Ft(Me,1)&&!(oe=1<=(xt=Ft(Me,4))&&11>=xt)){B.a=3;break e}var Ki;if(Ki=oe)t:{var zi,ki,Qs,Da=B,Fa=xe,cl=Ne,ya=xt,Ll=w,Al=Da.m,xo=Da.s,Jo=[null],Cs=1,La=0,po=sA[ya];r:for(;;){if(Ll&&Ft(Al,1)){var Ja=Ft(Al,3)+2,Do=Yn(Fa,Ja),Hl=Yn(cl,Ja),Kl=Do*Hl;if(!Gs(Do,Hl,0,Da,Jo))break r;for(Jo=Jo[0],xo.xc=Ja,zi=0;zi<Kl;++zi){var ku=Jo[zi]>>8&65535;Jo[zi]=ku,ku>=Cs&&(Cs=ku+1)}}if(Al.h)break r;for(ki=0;5>ki;++ki){var za=Ec[ki];!ki&&0<ya&&(za+=1<<ya),La<za&&(La=za)}var qc=me(Cs*po,Wt),Ic=Cs,dA=me(Ic,ge);if(dA==null)var eA=null;else h(65536>=Ic),eA=dA;var Tc=X(La);if(eA==null||Tc==null||qc==null){Da.a=1;break r}var Kc=qc;for(zi=Qs=0;zi<Cs;++zi){var dl=eA[zi],tA=dl.G,rA=dl.H,LA=0,mA=1,RA=0;for(ki=0;5>ki;++ki){za=Ec[ki],tA[ki]=Kc,rA[ki]=Qs,!ki&&0<ya&&(za+=1<<ya);i:{var gA,_A=za,vA=Da,fA=Tc,VA=Kc,WA=Qs,CA=0,Dc=vA.m,YA=Ft(Dc,1);if(ie(fA,0,0,_A),YA){var XA=Ft(Dc,1)+1,JA=Ft(Dc,1),OA=Ft(Dc,JA==0?1:8);fA[OA]=1,XA==2&&(fA[OA=Ft(Dc,8)]=1);var yA=1}else{var PA=X(19),NA=Ft(Dc,4)+4;if(19<NA){vA.a=3;var bA=0;break i}for(gA=0;gA<NA;++gA)PA[iA[gA]]=Ft(Dc,3);var SA=void 0,hA=void 0,kA=vA,qA=PA,wA=_A,MA=fA,BA=0,Fc=kA.m,UA=8,QA=me(128,Wt);n:for(;Nt(QA,0,7,qA,19);){if(Ft(Fc,1)){var ed=2+2*Ft(Fc,3);if((SA=2+Ft(Fc,ed))>wA)break n}else SA=wA;for(hA=0;hA<wA&&SA--;){Kt(Fc);var jA=QA[0+(127&at(Fc))];bt(Fc,Fc.u+jA.g);var nA=jA.value;if(16>nA)MA[hA++]=nA,nA!=0&&(UA=nA);else{var td=nA==16,$A=nA-16,rd=Zc[$A],HA=Ft(Fc,Gc[$A])+rd;if(hA+HA>wA)break n;for(var nd=td?UA:0;0<HA--;)MA[hA++]=nd}}BA=1;break n}BA||(kA.a=3),yA=BA}(yA=yA&&!Dc.h)&&(CA=Nt(VA,WA,8,fA,_A)),yA&&CA!=0?bA=CA:(vA.a=3,bA=0)}if(bA==0)break r;if(mA&&Vc[ki]==1&&(mA=Kc[Qs].g==0),LA+=Kc[Qs].g,Qs+=bA,3>=ki){var pA,IA=Tc[0];for(pA=1;pA<za;++pA)Tc[pA]>IA&&(IA=Tc[pA]);RA+=IA}}if(dl.nd=mA,dl.Qb=0,mA&&(dl.qb=(tA[3][rA[3]+0].value<<24|tA[1][rA[1]+0].value<<16|tA[2][rA[2]+0].value)>>>0,LA==0&&256>tA[0][rA[0]+0].value&&(dl.Qb=1,dl.qb+=tA[0][rA[0]+0].value<<8)),dl.jc=!dl.Qb&&6>RA,dl.jc){var xA,yc=dl;for(xA=0;xA<bo;++xA){var Lc=xA,Rc=yc.pd[Lc],EA=yc.G[0][yc.H[0]+Lc];256<=EA.value?(Rc.g=EA.g+256,Rc.value=EA.value):(Rc.g=0,Rc.value=0,Lc>>=Nn(EA,8,Rc),Lc>>=Nn(yc.G[1][yc.H[1]+Lc],16,Rc),Lc>>=Nn(yc.G[2][yc.H[2]+Lc],0,Rc),Nn(yc.G[3][yc.H[3]+Lc],24,Rc))}}}xo.vc=Jo,xo.Wb=Cs,xo.Ya=eA,xo.yc=qc,Ki=1;break t}Ki=0}if(!(oe=Ki)){B.a=3;break e}if(0<xt){if(We.ua=1<<xt,!Qn(We.Wa,xt)){B.a=1,oe=0;break e}}else We.ua=0;var TA=B,KA=xe,id=Ne,DA=TA.s,FA=DA.xc;if(TA.c=KA,TA.i=id,DA.md=Yn(KA,FA),DA.wc=FA==0?-1:(1<<FA)-1,w){B.xb=Xc;break e}if((ct=X(xe*Ne))==null){B.a=1,oe=0;break e}oe=(oe=Ls(B,ct,0,xe,Ne,Ne,null))&&!Me.h;break e}return oe?(Y!=null?Y[0]=ct:(h(ct==null),h(w)),B.$=0,w||Ni(We)):Ni(We),oe}function ga(a,u){var w=a.c*a.i,B=w+u+16*u;return h(a.c<=u),a.V=X(B),a.V==null?(a.Ta=null,a.Ua=0,a.a=1,0):(a.Ta=a.V,a.Ua=a.Ba+w+u,1)}function oa(a,u){var w=a.C,B=u-w,Y=a.V,oe=a.Ba+a.c*w;for(h(u<=a.l.o);0<B;){var xe=16<B?16:B,Ne=a.l.ma,Me=a.l.width,We=Me*xe,ct=Ne.ca,xt=Ne.tb+Me*w,wt=a.Ta,Et=a.Ua;Js(a,xe,Y,oe),Ka(wt,Et,ct,xt,We),hs(Ne,w,w+xe,ct,xt,Me),B-=xe,Y+=xe*a.c,w+=xe}h(w==u),a.C=a.Ma=u}function wa(){this.ub=this.yd=this.td=this.Rb=0}function Lo(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function go(){this.Fb=this.Bb=this.Cb=0,this.Zb=X(4),this.Lb=X(4)}function Ua(){this.Yb=function(){var a=[];return function u(w,B,Y){for(var oe=Y[B],xe=0;xe<oe&&(w.push(Y.length>B+1?[]:0),!(Y.length<B+1));xe++)u(w[xe],B+1,Y)}(a,0,[3,11]),a}()}function Qa(){this.jb=X(3),this.Wc=De([4,8],Ua),this.Xc=De([4,17],Ua)}function xa(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new X(4),this.od=new X(4)}function ra(){this.ld=this.La=this.dd=this.tc=0}function Ns(){this.Na=this.la=0}function Uo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Co(){this.ad=X(384),this.Za=0,this.Ob=X(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Wo(){this.uc=this.M=this.Nb=0,this.wa=Array(new ra),this.Y=0,this.ya=Array(new Co),this.aa=0,this.l=new _l}function Qo(){this.y=X(16),this.f=X(8),this.ea=X(8)}function ou(){this.cb=this.a=0,this.sc="",this.m=new er,this.Od=new wa,this.Kc=new Lo,this.ed=new xa,this.Qa=new go,this.Ic=this.$c=this.Aa=0,this.D=new Wo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=me(8,er),this.ia=0,this.pb=me(4,Uo),this.Pa=new Qa,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Qo),this.Hd=0,this.rb=Array(new Ns),this.sb=0,this.wa=Array(new ra),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Co),this.L=this.aa=0,this.gd=De([4,2],ra),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function _l(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function bs(){var a=new ou;return a!=null&&(a.a=0,a.sc="OK",a.cb=0,a.Xb=0,wo||(wo=$a)),a}function cs(a,u,w){return a.a==0&&(a.a=u,a.sc=w,a.cb=0),0}function ja(a,u,w){return 3<=w&&a[u+0]==157&&a[u+1]==1&&a[u+2]==42}function qs(a,u){if(a==null)return 0;if(a.a=0,a.sc="OK",u==null)return cs(a,2,"null VP8Io passed to VP8GetHeaders()");var w=u.data,B=u.w,Y=u.ha;if(4>Y)return cs(a,7,"Truncated header.");var oe=w[B+0]|w[B+1]<<8|w[B+2]<<16,xe=a.Od;if(xe.Rb=!(1&oe),xe.td=oe>>1&7,xe.yd=oe>>4&1,xe.ub=oe>>5,3<xe.td)return cs(a,3,"Incorrect keyframe parameters.");if(!xe.yd)return cs(a,4,"Frame not displayable.");B+=3,Y-=3;var Ne=a.Kc;if(xe.Rb){if(7>Y)return cs(a,7,"cannot parse picture header");if(!ja(w,B,Y))return cs(a,3,"Bad code word");Ne.c=16383&(w[B+4]<<8|w[B+3]),Ne.Td=w[B+4]>>6,Ne.i=16383&(w[B+6]<<8|w[B+5]),Ne.Ud=w[B+6]>>6,B+=7,Y-=7,a.za=Ne.c+15>>4,a.Ub=Ne.i+15>>4,u.width=Ne.c,u.height=Ne.i,u.Da=0,u.j=0,u.v=0,u.va=u.width,u.o=u.height,u.da=0,u.ib=u.width,u.hb=u.height,u.U=u.width,u.T=u.height,ie((oe=a.Pa).jb,0,255,oe.jb.length),h((oe=a.Qa)!=null),oe.Cb=0,oe.Bb=0,oe.Fb=1,ie(oe.Zb,0,0,oe.Zb.length),ie(oe.Lb,0,0,oe.Lb)}if(xe.ub>Y)return cs(a,7,"bad partition length");Pe(oe=a.m,w,B,xe.ub),B+=xe.ub,Y-=xe.ub,xe.Rb&&(Ne.Ld=rr(oe),Ne.Kd=rr(oe)),Ne=a.Qa;var Me,We=a.Pa;if(h(oe!=null),h(Ne!=null),Ne.Cb=rr(oe),Ne.Cb){if(Ne.Bb=rr(oe),rr(oe)){for(Ne.Fb=rr(oe),Me=0;4>Me;++Me)Ne.Zb[Me]=rr(oe)?st(oe,7):0;for(Me=0;4>Me;++Me)Ne.Lb[Me]=rr(oe)?st(oe,6):0}if(Ne.Bb)for(Me=0;3>Me;++Me)We.jb[Me]=rr(oe)?Ye(oe,8):255}else Ne.Bb=0;if(oe.Ka)return cs(a,3,"cannot parse segment header");if((Ne=a.ed).zd=rr(oe),Ne.Tb=Ye(oe,6),Ne.wb=Ye(oe,3),Ne.Pc=rr(oe),Ne.Pc&&rr(oe)){for(We=0;4>We;++We)rr(oe)&&(Ne.vd[We]=st(oe,6));for(We=0;4>We;++We)rr(oe)&&(Ne.od[We]=st(oe,6))}if(a.L=Ne.Tb==0?0:Ne.zd?1:2,oe.Ka)return cs(a,3,"cannot parse filter header");var ct=Y;if(Y=Me=B,B=Me+ct,Ne=ct,a.Xb=(1<<Ye(a.m,2))-1,ct<3*(We=a.Xb))w=7;else{for(Me+=3*We,Ne-=3*We,ct=0;ct<We;++ct){var xt=w[Y+0]|w[Y+1]<<8|w[Y+2]<<16;xt>Ne&&(xt=Ne),Pe(a.Jc[+ct],w,Me,xt),Me+=xt,Ne-=xt,Y+=3}Pe(a.Jc[+We],w,Me,Ne),w=Me<B?0:5}if(w!=0)return cs(a,w,"cannot parse partitions");for(w=Ye(Me=a.m,7),Y=rr(Me)?st(Me,4):0,B=rr(Me)?st(Me,4):0,Ne=rr(Me)?st(Me,4):0,We=rr(Me)?st(Me,4):0,Me=rr(Me)?st(Me,4):0,ct=a.Qa,xt=0;4>xt;++xt){if(ct.Cb){var wt=ct.Zb[xt];ct.Fb||(wt+=w)}else{if(0<xt){a.pb[xt]=a.pb[0];continue}wt=w}var Et=a.pb[xt];Et.Sc[0]=Uc[al(wt+Y,127)],Et.Sc[1]=rc[al(wt+0,127)],Et.Eb[0]=2*Uc[al(wt+B,127)],Et.Eb[1]=101581*rc[al(wt+Ne,127)]>>16,8>Et.Eb[1]&&(Et.Eb[1]=8),Et.Qc[0]=Uc[al(wt+We,117)],Et.Qc[1]=rc[al(wt+Me,127)],Et.lc=wt+Me}if(!xe.Rb)return cs(a,4,"Not a key frame.");for(rr(oe),xe=a.Pa,w=0;4>w;++w){for(Y=0;8>Y;++Y)for(B=0;3>B;++B)for(Ne=0;11>Ne;++Ne)We=dr(oe,nc[w][Y][B][Ne])?Ye(oe,8):oA[w][Y][B][Ne],xe.Wc[w][Y].Yb[B][Ne]=We;for(Y=0;17>Y;++Y)xe.Xc[w][Y]=xe.Wc[w][gc[Y]]}return a.kc=rr(oe),a.kc&&(a.Bd=Ye(oe,8)),a.cb=1}function $a(a,u,w,B,Y,oe,xe){var Ne=u[Y].Yb[w];for(w=0;16>Y;++Y){if(!dr(a,Ne[w+0]))return Y;for(;!dr(a,Ne[w+1]);)if(Ne=u[++Y].Yb[0],w=0,Y==16)return 16;var Me=u[Y+1].Yb;if(dr(a,Ne[w+2])){var We=a,ct=0;if(dr(We,(wt=Ne)[(xt=w)+3]))if(dr(We,wt[xt+6])){for(Ne=0,xt=2*(ct=dr(We,wt[xt+8]))+(wt=dr(We,wt[xt+9+ct])),ct=0,wt=Wc[xt];wt[Ne];++Ne)ct+=ct+dr(We,wt[Ne]);ct+=3+(8<<xt)}else dr(We,wt[xt+7])?(ct=7+2*dr(We,165),ct+=dr(We,145)):ct=5+dr(We,159);else ct=dr(We,wt[xt+4])?3+dr(We,wt[xt+5]):2;Ne=Me[2]}else ct=1,Ne=Me[1];Me=xe+Nu[Y],0>(We=a).b&&Jt(We);var xt,wt=We.b,Et=(xt=We.Ca>>1)-(We.I>>wt)>>31;--We.b,We.Ca+=Et,We.Ca|=1,We.I-=(xt+1&Et)<<wt,oe[Me]=((ct^Et)-Et)*B[(0<Y)+0]}return 16}function Ha(a){var u=a.rb[a.sb-1];u.la=0,u.Na=0,ie(a.zc,0,0,a.zc.length),a.ja=0}function Ra(a,u){if(a==null)return 0;if(u==null)return cs(a,2,"NULL VP8Io parameter in VP8Decode().");if(!a.cb&&!qs(a,u))return 0;if(h(a.cb),u.ac==null||u.ac(u)){u.ob&&(a.L=0);var w=c[a.L];if(a.L==2?(a.yb=0,a.zb=0):(a.yb=u.v-w>>4,a.zb=u.j-w>>4,0>a.yb&&(a.yb=0),0>a.zb&&(a.zb=0)),a.Va=u.o+15+w>>4,a.Hb=u.va+15+w>>4,a.Hb>a.za&&(a.Hb=a.za),a.Va>a.Ub&&(a.Va=a.Ub),0<a.L){var B=a.ed;for(w=0;4>w;++w){var Y;if(a.Qa.Cb){var oe=a.Qa.Lb[w];a.Qa.Fb||(oe+=B.Tb)}else oe=B.Tb;for(Y=0;1>=Y;++Y){var xe=a.gd[w][Y],Ne=oe;if(B.Pc&&(Ne+=B.vd[0],Y&&(Ne+=B.od[0])),0<(Ne=0>Ne?0:63<Ne?63:Ne)){var Me=Ne;0<B.wb&&(Me=4<B.wb?Me>>2:Me>>1)>9-B.wb&&(Me=9-B.wb),1>Me&&(Me=1),xe.dd=Me,xe.tc=2*Ne+Me,xe.ld=40<=Ne?2:15<=Ne?1:0}else xe.tc=0;xe.La=Y}}}w=0}else cs(a,6,"Frame setup failed"),w=a.a;if(w=w==0){if(w){a.$c=0,0<a.Aa||(a.Ic=f);e:{w=a.Ic,B=4*(Me=a.za);var We=32*Me,ct=Me+1,xt=0<a.L?Me*(0<a.Aa?2:1):0,wt=(a.Aa==2?2:1)*Me;if((xe=B+832+(Y=3*(16*w+c[a.L])/2*We)+(oe=a.Fa!=null&&0<a.Fa.length?a.Kc.c*a.Kc.i:0))!=xe)w=0;else{if(xe>a.Vb){if(a.Vb=0,a.Ec=X(xe),a.Fc=0,a.Ec==null){w=cs(a,1,"no memory during frame initialization.");break e}a.Vb=xe}xe=a.Ec,Ne=a.Fc,a.Ac=xe,a.Bc=Ne,Ne+=B,a.Gd=me(We,Qo),a.Hd=0,a.rb=me(ct+1,Ns),a.sb=1,a.wa=xt?me(xt,ra):null,a.Y=0,a.D.Nb=0,a.D.wa=a.wa,a.D.Y=a.Y,0<a.Aa&&(a.D.Y+=Me),h(!0),a.oc=xe,a.pc=Ne,Ne+=832,a.ya=me(wt,Co),a.aa=0,a.D.ya=a.ya,a.D.aa=a.aa,a.Aa==2&&(a.D.aa+=Me),a.R=16*Me,a.B=8*Me,Me=(We=c[a.L])*a.R,We=We/2*a.B,a.sa=xe,a.ta=Ne+Me,a.qa=a.sa,a.ra=a.ta+16*w*a.R+We,a.Ha=a.qa,a.Ia=a.ra+8*w*a.B+We,a.$c=0,Ne+=Y,a.mb=oe?xe:null,a.nb=oe?Ne:null,h(Ne+oe<=a.Fc+a.Vb),Ha(a),ie(a.Ac,a.Bc,0,B),w=1}}if(w){if(u.ka=0,u.y=a.sa,u.O=a.ta,u.f=a.qa,u.N=a.ra,u.ea=a.Ha,u.Vd=a.Ia,u.fa=a.R,u.Rc=a.B,u.F=null,u.J=0,!yu){for(w=-255;255>=w;++w)Xa[255+w]=0>w?-w:w;for(w=-1020;1020>=w;++w)$l[1020+w]=-128>w?-128:127<w?127:w;for(w=-112;112>=w;++w)Oi[112+w]=-16>w?-16:15<w?15:w;for(w=-255;510>=w;++w)ll[255+w]=0>w?0:255<w?255:w;yu=1}Yu=Qu,Ql=ac,gu=Zl,To=Cl,$o=rl,so=Uu,Xu=Tu,hc=fu,pc=Oc,tu=Ku,Dl=uc,ru=Hu,nu=cc,Ju=Du,vu=du,jl=Io,qu=sl,ol=Ml,No[0]=Xo,No[1]=ju,No[2]=lu,No[3]=uu,No[4]=Cu,No[5]=Wl,No[6]=Su,No[7]=Yl,No[8]=cu,No[9]=lc,iu[0]=vo,iu[1]=Nl,iu[2]=to,iu[3]=Vl,iu[4]=oo,iu[5]=oc,iu[6]=$u,Fl[0]=Sl,Fl[1]=_u,Fl[2]=Au,Fl[3]=Ba,Fl[4]=ws,Fl[5]=Bu,Fl[6]=Hs,w=1}else w=0}w&&(w=function(Et,qt){for(Et.M=0;Et.M<Et.Va;++Et.M){var Pt,Gt=Et.Jc[Et.M&Et.Xb],tr=Et.m,Ur=Et;for(Pt=0;Pt<Ur.za;++Pt){var Wr=tr,zr=Ur,An=zr.Ac,dn=zr.Bc+4*Pt,Wn=zr.zc,jr=zr.ya[zr.aa+Pt];if(zr.Qa.Bb?jr.$b=dr(Wr,zr.Pa.jb[0])?2+dr(Wr,zr.Pa.jb[2]):dr(Wr,zr.Pa.jb[1]):jr.$b=0,zr.kc&&(jr.Ad=dr(Wr,zr.Bd)),jr.Za=!dr(Wr,145)+0,jr.Za){var Mn=jr.Ob,Ii=0;for(zr=0;4>zr;++zr){var Ei,Si=Wn[0+zr];for(Ei=0;4>Ei;++Ei){Si=Qc[An[dn+Ei]][Si];for(var Ki=Yc[dr(Wr,Si[0])];0<Ki;)Ki=Yc[2*Ki+dr(Wr,Si[Ki])];Si=-Ki,An[dn+Ei]=Si}j(Mn,Ii,An,dn,4),Ii+=4,Wn[0+zr]=Si}}else Si=dr(Wr,156)?dr(Wr,128)?1:3:dr(Wr,163)?2:0,jr.Ob[0]=Si,ie(An,dn,Si,4),ie(Wn,0,Si,4);jr.Dd=dr(Wr,142)?dr(Wr,114)?dr(Wr,183)?1:3:2:0}if(Ur.m.Ka)return cs(Et,7,"Premature end-of-partition0 encountered.");for(;Et.ja<Et.za;++Et.ja){if(Ur=Gt,Wr=(tr=Et).rb[tr.sb-1],An=tr.rb[tr.sb+tr.ja],Pt=tr.ya[tr.aa+tr.ja],dn=tr.kc?Pt.Ad:0)Wr.la=An.la=0,Pt.Za||(Wr.Na=An.Na=0),Pt.Hc=0,Pt.Gc=0,Pt.ia=0;else{var zi,ki;if(Wr=An,An=Ur,dn=tr.Pa.Xc,Wn=tr.ya[tr.aa+tr.ja],jr=tr.pb[Wn.$b],zr=Wn.ad,Mn=0,Ii=tr.rb[tr.sb-1],Si=Ei=0,ie(zr,Mn,0,384),Wn.Za)var Qs=0,Da=dn[3];else{Ki=X(16);var Fa=Wr.Na+Ii.Na;if(Fa=wo(An,dn[1],Fa,jr.Eb,0,Ki,0),Wr.Na=Ii.Na=(0<Fa)+0,1<Fa)Yu(Ki,0,zr,Mn);else{var cl=Ki[0]+3>>3;for(Ki=0;256>Ki;Ki+=16)zr[Mn+Ki]=cl}Qs=1,Da=dn[0]}var ya=15&Wr.la,Ll=15&Ii.la;for(Ki=0;4>Ki;++Ki){var Al=1⋘for(cl=ki=0;4>cl;++cl)ya=ya>>1|(Al=(Fa=wo(An,Da,Fa=Al+(1&ya),jr.Sc,Qs,zr,Mn))>Qs)<<7,ki=ki<<2|(3<Fa?3:1<Fa?2:zr[Mn+0]!=0),Mn+=16;ya>>=4,Ll=Ll>>1|Al<<7,Ei=(Ei<<8|ki)>>>0}for(Da=ya,Qs=Ll>>4,zi=0;4>zi;zi+=2){for(ki=0,ya=Wr.la>>4+zi,Ll=Ii.la>>4+zi,Ki=0;2>Ki;++Ki){for(Al=1&Ll,cl=0;2>cl;++cl)Fa=Al+(1&ya),ya=ya>>1|(Al=0<(Fa=wo(An,dn[2],Fa,jr.Qc,0,zr,Mn)))<<3,ki=ki<<2|(3<Fa?3:1<Fa?2:zr[Mn+0]!=0),Mn+=16;ya>>=2,Ll=Ll>>1|Al<<5}Si|=ki<<4*zi,Da|=ya<<4<<zi,Qs|=(240&Ll)<<zi}Wr.la=Da,Ii.la=Qs,Wn.Hc=Ei,Wn.Gc=Si,Wn.ia=43690&Si?0:jr.ia,dn=!(Ei|Si)}if(0<tr.L&&(tr.wa[tr.Y+tr.ja]=tr.gd[Pt.$b][Pt.Za],tr.wa[tr.Y+tr.ja].La|=!dn),Ur.Ka)return cs(Et,7,"Premature end-of-file encountered.")}if(Ha(Et),tr=qt,Ur=1,Pt=(Gt=Et).D,Wr=0<Gt.L&&Gt.M>=Gt.zb&&Gt.M<=Gt.Va,Gt.Aa==0)e:{if(Pt.M=Gt.M,Pt.uc=Wr,Gu(Gt,Pt),Ur=1,Pt=(ki=Gt.D).Nb,Wr=(Si=c[Gt.L])*Gt.R,An=Si/2*Gt.B,Ki=16*Pt*Gt.R,cl=8*Pt*Gt.B,dn=Gt.sa,Wn=Gt.ta-Wr+Ki,jr=Gt.qa,zr=Gt.ra-An+cl,Mn=Gt.Ha,Ii=Gt.Ia-An+cl,Ll=(ya=ki.M)==0,Ei=ya>=Gt.Va-1,Gt.Aa==2&&Gu(Gt,ki),ki.uc)for(Al=(Fa=Gt).D.M,h(Fa.D.uc),ki=Fa.yb;ki<Fa.Hb;++ki){Qs=ki,Da=Al;var xo=(Jo=(za=Fa).D).Nb;zi=za.R;var Jo=Jo.wa[Jo.Y+Qs],Cs=za.sa,La=za.ta+16*xo*zi+16*Qs,po=Jo.dd,Ja=Jo.tc;if(Ja!=0)if(h(3<=Ja),za.L==1)0<Qs&&jl(Cs,La,zi,Ja+4),Jo.La&&ol(Cs,La,zi,Ja),0<Da&&vu(Cs,La,zi,Ja+4),Jo.La&&qu(Cs,La,zi,Ja);else{var Do=za.B,Hl=za.qa,Kl=za.ra+8*xo*Do+8*Qs,ku=za.Ha,za=za.Ia+8*xo*Do+8*Qs;xo=Jo.ld,0<Qs&&(hc(Cs,La,zi,Ja+4,po,xo),tu(Hl,Kl,ku,za,Do,Ja+4,po,xo)),Jo.La&&(ru(Cs,La,zi,Ja,po,xo),Ju(Hl,Kl,ku,za,Do,Ja,po,xo)),0<Da&&(Xu(Cs,La,zi,Ja+4,po,xo),pc(Hl,Kl,ku,za,Do,Ja+4,po,xo)),Jo.La&&(Dl(Cs,La,zi,Ja,po,xo),nu(Hl,Kl,ku,za,Do,Ja,po,xo))}}if(Gt.ia&&alert("todo:DitherRow"),tr.put!=null){if(ki=16*ya,ya=16*(ya+1),Ll?(tr.y=Gt.sa,tr.O=Gt.ta+Ki,tr.f=Gt.qa,tr.N=Gt.ra+cl,tr.ea=Gt.Ha,tr.W=Gt.Ia+cl):(ki-=Si,tr.y=dn,tr.O=Wn,tr.f=jr,tr.N=zr,tr.ea=Mn,tr.W=Ii),Ei||(ya-=Si),ya>tr.o&&(ya=tr.o),tr.F=null,tr.J=null,Gt.Fa!=null&&0<Gt.Fa.length&&ki<ya&&(tr.J=Bl(Gt,tr,ki,ya-ki),tr.F=Gt.mb,tr.F==null&&tr.F.length==0)){Ur=cs(Gt,3,"Could not decode alpha data.");break e}ki<tr.j&&(Si=tr.j-ki,ki=tr.j,h(!(1&Si)),tr.O+=Gt.R*Si,tr.N+=Gt.B*(Si>>1),tr.W+=Gt.B*(Si>>1),tr.F!=null&&(tr.J+=tr.width*Si)),ki<ya&&(tr.O+=tr.v,tr.N+=tr.v>>1,tr.W+=tr.v>>1,tr.F!=null&&(tr.J+=tr.v),tr.ka=ki-tr.j,tr.U=tr.va-tr.v,tr.T=ya-ki,Ur=tr.put(tr))}Pt+1!=Gt.Ic||Ei||(j(Gt.sa,Gt.ta-Wr,dn,Wn+16*Gt.R,Wr),j(Gt.qa,Gt.ra-An,jr,zr+8*Gt.B,An),j(Gt.Ha,Gt.Ia-An,Mn,Ii+8*Gt.B,An))}if(!Ur)return cs(Et,6,"Output aborted.")}return 1}(a,u)),u.bc!=null&&u.bc(u),w&=1}return w?(a.cb=0,w):0}function ao(a,u,w,B,Y){Y=a[u+w+32*B]+(Y>>3),a[u+w+32*B]=-256&Y?0>Y?0:255:Y}function Oa(a,u,w,B,Y,oe){ao(a,u,0,w,B+Y),ao(a,u,1,w,B+oe),ao(a,u,2,w,B-oe),ao(a,u,3,w,B-Y)}function So(a){return(20091*a>>16)+a}function Gl(a,u,w,B){var Y,oe=0,xe=X(16);for(Y=0;4>Y;++Y){var Ne=a[u+0]+a[u+8],Me=a[u+0]-a[u+8],We=(35468*a[u+4]>>16)-So(a[u+12]),ct=So(a[u+4])+(35468*a[u+12]>>16);xe[oe+0]=Ne+ct,xe[oe+1]=Me+We,xe[oe+2]=Me-We,xe[oe+3]=Ne-ct,oe+=4,u++}for(Y=oe=0;4>Y;++Y)Ne=(a=xe[oe+0]+4)+xe[oe+8],Me=a-xe[oe+8],We=(35468*xe[oe+4]>>16)-So(xe[oe+12]),ao(w,B,0,0,Ne+(ct=So(xe[oe+4])+(35468*xe[oe+12]>>16))),ao(w,B,1,0,Me+We),ao(w,B,2,0,Me-We),ao(w,B,3,0,Ne-ct),oe++,B+=32}function Uu(a,u,w,B){var Y=a[u+0]+4,oe=35468*a[u+4]>>16,xe=So(a[u+4]),Ne=35468*a[u+1]>>16;Oa(w,B,0,Y+xe,a=So(a[u+1]),Ne),Oa(w,B,1,Y+oe,a,Ne),Oa(w,B,2,Y-oe,a,Ne),Oa(w,B,3,Y-xe,a,Ne)}function ac(a,u,w,B,Y){Gl(a,u,w,B),Y&&Gl(a,u+16,w,B+4)}function Zl(a,u,w,B){Ql(a,u+0,w,B,1),Ql(a,u+32,w,B+128,1)}function Cl(a,u,w,B){var Y;for(a=a[u+0]+4,Y=0;4>Y;++Y)for(u=0;4>u;++u)ao(w,B,u,Y,a)}function rl(a,u,w,B){a[u+0]&&To(a,u+0,w,B),a[u+16]&&To(a,u+16,w,B+4),a[u+32]&&To(a,u+32,w,B+128),a[u+48]&&To(a,u+48,w,B+128+4)}function Qu(a,u,w,B){var Y,oe=X(16);for(Y=0;4>Y;++Y){var xe=a[u+0+Y]+a[u+12+Y],Ne=a[u+4+Y]+a[u+8+Y],Me=a[u+4+Y]-a[u+8+Y],We=a[u+0+Y]-a[u+12+Y];oe[0+Y]=xe+Ne,oe[8+Y]=xe-Ne,oe[4+Y]=We+Me,oe[12+Y]=We-Me}for(Y=0;4>Y;++Y)xe=(a=oe[0+4*Y]+3)+oe[3+4*Y],Ne=oe[1+4*Y]+oe[2+4*Y],Me=oe[1+4*Y]-oe[2+4*Y],We=a-oe[3+4*Y],w[B+0]=xe+Ne>>3,w[B+16]=We+Me>>3,w[B+32]=xe-Ne>>3,w[B+48]=We-Me>>3,B+=64}function Yo(a,u,w){var B,Y=u-32,oe=Ts,xe=255-a[Y-1];for(B=0;B<w;++B){var Ne,Me=oe,We=xe+a[u-1];for(Ne=0;Ne<w;++Ne)a[u+Ne]=Me[We+a[Y+Ne]];u+=32}}function ju(a,u){Yo(a,u,4)}function _u(a,u){Yo(a,u,8)}function Nl(a,u){Yo(a,u,16)}function to(a,u){var w;for(w=0;16>w;++w)j(a,u+32*w,a,u-32,16)}function Vl(a,u){var w;for(w=16;0<w;--w)ie(a,u,a[u-1],16),u+=32}function kl(a,u,w){var B;for(B=0;16>B;++B)ie(u,w+32*B,a,16)}function vo(a,u){var w,B=16;for(w=0;16>w;++w)B+=a[u-1+32*w]+a[u+w-32];kl(B>>5,a,u)}function oo(a,u){var w,B=8;for(w=0;16>w;++w)B+=a[u-1+32*w];kl(B>>4,a,u)}function oc(a,u){var w,B=8;for(w=0;16>w;++w)B+=a[u+w-32];kl(B>>4,a,u)}function $u(a,u){kl(128,a,u)}function ms(a,u,w){return a+2*u+w+2>>2}function lu(a,u){var w,B=u-32;for(B=new Uint8Array([ms(a[B-1],a[B+0],a[B+1]),ms(a[B+0],a[B+1],a[B+2]),ms(a[B+1],a[B+2],a[B+3]),ms(a[B+2],a[B+3],a[B+4])]),w=0;4>w;++w)j(a,u+32*w,B,0,B.length)}function uu(a,u){var w=a[u-1],B=a[u-1+32],Y=a[u-1+64],oe=a[u-1+96];Lr(a,u+0,16843009*ms(a[u-1-32],w,B)),Lr(a,u+32,16843009*ms(w,B,Y)),Lr(a,u+64,16843009*ms(B,Y,oe)),Lr(a,u+96,16843009*ms(Y,oe,oe))}function Xo(a,u){var w,B=4;for(w=0;4>w;++w)B+=a[u+w-32]+a[u-1+32*w];for(B>>=3,w=0;4>w;++w)ie(a,u+32*w,B,4)}function Cu(a,u){var w=a[u-1+0],B=a[u-1+32],Y=a[u-1+64],oe=a[u-1-32],xe=a[u+0-32],Ne=a[u+1-32],Me=a[u+2-32],We=a[u+3-32];a[u+0+96]=ms(B,Y,a[u-1+96]),a[u+1+96]=a[u+0+64]=ms(w,B,Y),a[u+2+96]=a[u+1+64]=a[u+0+32]=ms(oe,w,B),a[u+3+96]=a[u+2+64]=a[u+1+32]=a[u+0+0]=ms(xe,oe,w),a[u+3+64]=a[u+2+32]=a[u+1+0]=ms(Ne,xe,oe),a[u+3+32]=a[u+2+0]=ms(Me,Ne,xe),a[u+3+0]=ms(We,Me,Ne)}function Su(a,u){var w=a[u+1-32],B=a[u+2-32],Y=a[u+3-32],oe=a[u+4-32],xe=a[u+5-32],Ne=a[u+6-32],Me=a[u+7-32];a[u+0+0]=ms(a[u+0-32],w,B),a[u+1+0]=a[u+0+32]=ms(w,B,Y),a[u+2+0]=a[u+1+32]=a[u+0+64]=ms(B,Y,oe),a[u+3+0]=a[u+2+32]=a[u+1+64]=a[u+0+96]=ms(Y,oe,xe),a[u+3+32]=a[u+2+64]=a[u+1+96]=ms(oe,xe,Ne),a[u+3+64]=a[u+2+96]=ms(xe,Ne,Me),a[u+3+96]=ms(Ne,Me,Me)}function Wl(a,u){var w=a[u-1+0],B=a[u-1+32],Y=a[u-1+64],oe=a[u-1-32],xe=a[u+0-32],Ne=a[u+1-32],Me=a[u+2-32],We=a[u+3-32];a[u+0+0]=a[u+1+64]=oe+xe+1>>1,a[u+1+0]=a[u+2+64]=xe+Ne+1>>1,a[u+2+0]=a[u+3+64]=Ne+Me+1>>1,a[u+3+0]=Me+We+1>>1,a[u+0+96]=ms(Y,B,w),a[u+0+64]=ms(B,w,oe),a[u+0+32]=a[u+1+96]=ms(w,oe,xe),a[u+1+32]=a[u+2+96]=ms(oe,xe,Ne),a[u+2+32]=a[u+3+96]=ms(xe,Ne,Me),a[u+3+32]=ms(Ne,Me,We)}function Yl(a,u){var w=a[u+0-32],B=a[u+1-32],Y=a[u+2-32],oe=a[u+3-32],xe=a[u+4-32],Ne=a[u+5-32],Me=a[u+6-32],We=a[u+7-32];a[u+0+0]=w+B+1>>1,a[u+1+0]=a[u+0+64]=B+Y+1>>1,a[u+2+0]=a[u+1+64]=Y+oe+1>>1,a[u+3+0]=a[u+2+64]=oe+xe+1>>1,a[u+0+32]=ms(w,B,Y),a[u+1+32]=a[u+0+96]=ms(B,Y,oe),a[u+2+32]=a[u+1+96]=ms(Y,oe,xe),a[u+3+32]=a[u+2+96]=ms(oe,xe,Ne),a[u+3+64]=ms(xe,Ne,Me),a[u+3+96]=ms(Ne,Me,We)}function lc(a,u){var w=a[u-1+0],B=a[u-1+32],Y=a[u-1+64],oe=a[u-1+96];a[u+0+0]=w+B+1>>1,a[u+2+0]=a[u+0+32]=B+Y+1>>1,a[u+2+32]=a[u+0+64]=Y+oe+1>>1,a[u+1+0]=ms(w,B,Y),a[u+3+0]=a[u+1+32]=ms(B,Y,oe),a[u+3+32]=a[u+1+64]=ms(Y,oe,oe),a[u+3+64]=a[u+2+64]=a[u+0+96]=a[u+1+96]=a[u+2+96]=a[u+3+96]=oe}function cu(a,u){var w=a[u-1+0],B=a[u-1+32],Y=a[u-1+64],oe=a[u-1+96],xe=a[u-1-32],Ne=a[u+0-32],Me=a[u+1-32],We=a[u+2-32];a[u+0+0]=a[u+2+32]=w+xe+1>>1,a[u+0+32]=a[u+2+64]=B+w+1>>1,a[u+0+64]=a[u+2+96]=Y+B+1>>1,a[u+0+96]=oe+Y+1>>1,a[u+3+0]=ms(Ne,Me,We),a[u+2+0]=ms(xe,Ne,Me),a[u+1+0]=a[u+3+32]=ms(w,xe,Ne),a[u+1+32]=a[u+3+64]=ms(B,w,xe),a[u+1+64]=a[u+3+96]=ms(Y,B,w),a[u+1+96]=ms(oe,Y,B)}function Au(a,u){var w;for(w=0;8>w;++w)j(a,u+32*w,a,u-32,8)}function Ba(a,u){var w;for(w=0;8>w;++w)ie(a,u,a[u-1],8),u+=32}function Bo(a,u,w){var B;for(B=0;8>B;++B)ie(u,w+32*B,a,8)}function Sl(a,u){var w,B=8;for(w=0;8>w;++w)B+=a[u+w-32]+a[u-1+32*w];Bo(B>>4,a,u)}function Bu(a,u){var w,B=4;for(w=0;8>w;++w)B+=a[u+w-32];Bo(B>>3,a,u)}function ws(a,u){var w,B=4;for(w=0;8>w;++w)B+=a[u-1+32*w];Bo(B>>3,a,u)}function Hs(a,u){Bo(128,a,u)}function lo(a,u,w){var B=a[u-w],Y=a[u+0],oe=3*(Y-B)+Po[1020+a[u-2*w]-a[u+w]],xe=bc[112+(oe+4>>3)];a[u-w]=Ts[255+B+bc[112+(oe+3>>3)]],a[u+0]=Ts[255+Y-xe]}function nl(a,u,w,B){var Y=a[u+0],oe=a[u+w];return Us[255+a[u-2*w]-a[u-w]]>B||Us[255+oe-Y]>B}function il(a,u,w,B){return 4*Us[255+a[u-w]-a[u+0]]+Us[255+a[u-2*w]-a[u+w]]<=B}function Iu(a,u,w,B,Y){var oe=a[u-3*w],xe=a[u-2*w],Ne=a[u-w],Me=a[u+0],We=a[u+w],ct=a[u+2*w],xt=a[u+3*w];return 4*Us[255+Ne-Me]+Us[255+xe-We]>B?0:Us[255+a[u-4*w]-oe]<=Y&&Us[255+oe-xe]<=Y&&Us[255+xe-Ne]<=Y&&Us[255+xt-ct]<=Y&&Us[255+ct-We]<=Y&&Us[255+We-Me]<=Y}function du(a,u,w,B){var Y=2*B+1;for(B=0;16>B;++B)il(a,u+B,w,Y)&&lo(a,u+B,w)}function Io(a,u,w,B){var Y=2*B+1;for(B=0;16>B;++B)il(a,u+B*w,1,Y)&&lo(a,u+B*w,1)}function sl(a,u,w,B){var Y;for(Y=3;0<Y;--Y)du(a,u+=4*w,w,B)}function Ml(a,u,w,B){var Y;for(Y=3;0<Y;--Y)Io(a,u+=4,w,B)}function Xl(a,u,w,B,Y,oe,xe,Ne){for(oe=2*oe+1;0<Y--;){if(Iu(a,u,w,oe,xe))if(nl(a,u,w,Ne))lo(a,u,w);else{var Me=a,We=u,ct=w,xt=Me[We-2*ct],wt=Me[We-ct],Et=Me[We+0],qt=Me[We+ct],Pt=Me[We+2*ct],Gt=27*(Ur=Po[1020+3*(Et-wt)+Po[1020+xt-qt]])+63>>7,tr=18*Ur+63>>7,Ur=9*Ur+63>>7;Me[We-3*ct]=Ts[255+Me[We-3*ct]+Ur],Me[We-2*ct]=Ts[255+xt+tr],Me[We-ct]=Ts[255+wt+Gt],Me[We+0]=Ts[255+Et-Gt],Me[We+ct]=Ts[255+qt-tr],Me[We+2*ct]=Ts[255+Pt-Ur]}u+=B}}function ml(a,u,w,B,Y,oe,xe,Ne){for(oe=2*oe+1;0<Y--;){if(Iu(a,u,w,oe,xe))if(nl(a,u,w,Ne))lo(a,u,w);else{var Me=a,We=u,ct=w,xt=Me[We-ct],wt=Me[We+0],Et=Me[We+ct],qt=bc[112+((Pt=3*(wt-xt))+4>>3)],Pt=bc[112+(Pt+3>>3)],Gt=qt+1>>1;Me[We-2*ct]=Ts[255+Me[We-2*ct]+Gt],Me[We-ct]=Ts[255+xt+Pt],Me[We+0]=Ts[255+wt-qt],Me[We+ct]=Ts[255+Et-Gt]}u+=B}}function Tu(a,u,w,B,Y,oe){Xl(a,u,w,1,16,B,Y,oe)}function fu(a,u,w,B,Y,oe){Xl(a,u,1,w,16,B,Y,oe)}function uc(a,u,w,B,Y,oe){var xe;for(xe=3;0<xe;--xe)ml(a,u+=4*w,w,1,16,B,Y,oe)}function Hu(a,u,w,B,Y,oe){var xe;for(xe=3;0<xe;--xe)ml(a,u+=4,1,w,16,B,Y,oe)}function Oc(a,u,w,B,Y,oe,xe,Ne){Xl(a,u,Y,1,8,oe,xe,Ne),Xl(w,B,Y,1,8,oe,xe,Ne)}function Ku(a,u,w,B,Y,oe,xe,Ne){Xl(a,u,1,Y,8,oe,xe,Ne),Xl(w,B,1,Y,8,oe,xe,Ne)}function cc(a,u,w,B,Y,oe,xe,Ne){ml(a,u+4*Y,Y,1,8,oe,xe,Ne),ml(w,B+4*Y,Y,1,8,oe,xe,Ne)}function Du(a,u,w,B,Y,oe,xe,Ne){ml(a,u+4,1,Y,8,oe,xe,Ne),ml(w,B+4,1,Y,8,oe,xe,Ne)}function Jl(){this.ba=new kt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new xn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ac(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Fu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Lu(){this.ua=0,this.Wa=new Qt,this.vb=new Qt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ge,this.yc=new Wt}function ql(){this.xb=this.a=0,this.l=new _l,this.ca=new kt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new je,this.Pb=0,this.wd=new je,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Lu,this.ab=0,this.gc=me(4,Fu),this.Oc=0}function yo(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new _l,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function hu(a,u,w,B,Y,oe,xe){for(a=a==null?0:a[u+0],u=0;u<xe;++u)Y[oe+u]=a+w[B+u]&255,a=Y[oe+u]}function zu(a,u,w,B,Y,oe,xe){var Ne;if(a==null)hu(null,null,w,B,Y,oe,xe);else for(Ne=0;Ne<xe;++Ne)Y[oe+Ne]=a[u+Ne]+w[B+Ne]&255}function gl(a,u,w,B,Y,oe,xe){if(a==null)hu(null,null,w,B,Y,oe,xe);else{var Ne,Me=a[u+0],We=Me,ct=Me;for(Ne=0;Ne<xe;++Ne)We=ct+(Me=a[u+Ne])-We,ct=w[B+Ne]+(-256&We?0>We?0:255:We)&255,We=Me,Y[oe+Ne]=ct}}function Bl(a,u,w,B){var Y=u.width,oe=u.o;if(h(a!=null&&u!=null),0>w||0>=B||w+B>oe)return null;if(!a.Cc){if(a.ga==null){var xe;if(a.ga=new yo,(xe=a.ga==null)||(xe=u.width*u.o,h(a.Gb.length==0),a.Gb=X(xe),a.Uc=0,a.Gb==null?xe=0:(a.mb=a.Gb,a.nb=a.Uc,a.rc=null,xe=1),xe=!xe),!xe){xe=a.ga;var Ne=a.Fa,Me=a.P,We=a.qc,ct=a.mb,xt=a.nb,wt=Me+1,Et=We-1,qt=xe.l;if(h(Ne!=null&&ct!=null&&u!=null),wu[0]=null,wu[1]=hu,wu[2]=zu,wu[3]=gl,xe.ca=ct,xe.tb=xt,xe.c=u.width,xe.i=u.height,h(0<xe.c&&0<xe.i),1>=We)u=0;else if(xe.$a=Ne[Me+0]>>0&3,xe.Z=Ne[Me+0]>>2&3,xe.Lc=Ne[Me+0]>>4&3,Me=Ne[Me+0]>>6&3,0>xe.$a||1<xe.$a||4<=xe.Z||1<xe.Lc||Me)u=0;else if(qt.put=Fi,qt.ac=xi,qt.bc=os,qt.ma=xe,qt.width=u.width,qt.height=u.height,qt.Da=u.Da,qt.v=u.v,qt.va=u.va,qt.j=u.j,qt.o=u.o,xe.$a)e:{h(xe.$a==1),u=Ps();t:for(;;){if(u==null){u=0;break e}if(h(xe!=null),xe.mc=u,u.c=xe.c,u.i=xe.i,u.l=xe.l,u.l.ma=xe,u.l.width=xe.c,u.l.height=xe.i,u.a=0,ot(u.m,Ne,wt,Et),!Gs(xe.c,xe.i,1,u,null)||(u.ab==1&&u.gc[0].hc==3&&Gi(u.s)?(xe.ic=1,Ne=u.c*u.i,u.Ta=null,u.Ua=0,u.V=X(Ne),u.Ba=0,u.V==null?(u.a=1,u=0):u=1):(xe.ic=0,u=ga(u,xe.c)),!u))break t;u=1;break e}xe.mc=null,u=0}else u=Et>=xe.c*xe.i;xe=!u}if(xe)return null;a.ga.Lc!=1?a.Ga=0:B=oe-w}h(a.ga!=null),h(w+B<=oe);e:{if(u=(Ne=a.ga).c,oe=Ne.l.o,Ne.$a==0){if(wt=a.rc,Et=a.Vc,qt=a.Fa,Me=a.P+1+w*u,We=a.mb,ct=a.nb+w*u,h(Me<=a.P+a.qc),Ne.Z!=0)for(h(wu[Ne.Z]!=null),xe=0;xe<B;++xe)wu[Ne.Z](wt,Et,qt,Me,We,ct,u),wt=We,Et=ct,ct+=u,Me+=u;else for(xe=0;xe<B;++xe)j(We,ct,qt,Me,u),wt=We,Et=ct,ct+=u,Me+=u;a.rc=wt,a.Vc=Et}else{if(h(Ne.mc!=null),u=w+B,h((xe=Ne.mc)!=null),h(u<=xe.i),xe.C>=u)u=1;else if(Ne.ic||Gr(),Ne.ic){Ne=xe.V,wt=xe.Ba,Et=xe.c;var Pt=xe.i,Gt=(qt=1,Me=xe.$/Et,We=xe.$%Et,ct=xe.m,xt=xe.s,xe.$),tr=Et*Pt,Ur=Et*u,Wr=xt.wc,zr=Gt<Ur?qi(xt,We,Me):null;h(Gt<=tr),h(u<=Pt),h(Gi(xt));t:for(;;){for(;!ct.h&&Gt<Ur;){if(We&Wr||(zr=qi(xt,We,Me)),h(zr!=null),Kt(ct),256>(Pt=Xi(zr.G[0],zr.H[0],ct)))Ne[wt+Gt]=Pt,++Gt,++We>=Et&&(We=0,++Me<=u&&!(Me%16)&&Ms(xe,Me));else{if(!(280>Pt)){qt=0;break t}Pt=Es(Pt-256,ct);var An,dn=Xi(zr.G[4],zr.H[4],ct);if(Kt(ct),!(Gt>=(dn=ns(Et,dn=Es(dn,ct)))&&tr-Gt>=Pt)){qt=0;break t}for(An=0;An<Pt;++An)Ne[wt+Gt+An]=Ne[wt+Gt+An-dn];for(Gt+=Pt,We+=Pt;We>=Et;)We-=Et,++Me<=u&&!(Me%16)&&Ms(xe,Me);Gt<Ur&&We&Wr&&(zr=qi(xt,We,Me))}h(ct.h==Ie(ct))}Ms(xe,Me>u?u:Me);break t}!qt||ct.h&&Gt<tr?(qt=0,xe.a=ct.h?5:3):xe.$=Gt,u=qt}else u=Ls(xe,xe.V,xe.Ba,xe.c,xe.i,u,oa);if(!u){B=0;break e}}w+B>=oe&&(a.Cc=1),B=1}if(!B)return null;if(a.Cc&&((B=a.ga)!=null&&(B.mc=null),a.ga=null,0<a.Ga))return alert("todo:WebPDequantizeLevels"),null}return a.nb+w*Y}function Ae(a,u,w,B,Y,oe){for(;0<Y--;){var xe,Ne=a,Me=u+(w?1:0),We=a,ct=u+(w?0:3);for(xe=0;xe<B;++xe){var xt=We[ct+4*xe];xt!=255&&(xt*=32897,Ne[Me+4*xe+0]=Ne[Me+4*xe+0]*xt>>23,Ne[Me+4*xe+1]=Ne[Me+4*xe+1]*xt>>23,Ne[Me+4*xe+2]=Ne[Me+4*xe+2]*xt>>23)}u+=oe}}function ht(a,u,w,B,Y){for(;0<B--;){var oe;for(oe=0;oe<w;++oe){var xe=a[u+2*oe+0],Ne=15&(We=a[u+2*oe+1]),Me=4369*Ne,We=(240&We|We>>4)*Me>>16;a[u+2*oe+0]=(240&xe|xe>>4)*Me>>16&240|(15&xe|xe<<4)*Me>>16>>4&15,a[u+2*oe+1]=240&We|Ne}u+=Y}}function ur(a,u,w,B,Y,oe,xe,Ne){var Me,We,ct=255;for(We=0;We<Y;++We){for(Me=0;Me<B;++Me){var xt=a[u+Me];oe[xe+4*Me]=xt,ct&=xt}u+=w,xe+=Ne}return ct!=255}function Er(a,u,w,B,Y){var oe;for(oe=0;oe<Y;++oe)w[B+oe]=a[u+oe]>>8}function Gr(){xl=Ae,va=ht,ha=ur,Ka=Er}function Bn(a,u,w){br[a]=function(B,Y,oe,xe,Ne,Me,We,ct,xt,wt,Et,qt,Pt,Gt,tr,Ur,Wr){var zr,An=Wr-1>>1,dn=Ne[Me+0]|We[ct+0]<<16,Wn=xt[wt+0]|Et[qt+0]<<16;h(B!=null);var jr=3*dn+Wn+131074>>2;for(u(B[Y+0],255&jr,jr>>16,Pt,Gt),oe!=null&&(jr=3*Wn+dn+131074>>2,u(oe[xe+0],255&jr,jr>>16,tr,Ur)),zr=1;zr<=An;++zr){var Mn=Ne[Me+zr]|We[ct+zr]<<16,Ii=xt[wt+zr]|Et[qt+zr]<<16,Ei=dn+Mn+Wn+Ii+524296,Si=Ei+2*(Mn+Wn)>>3;jr=Si+dn>>1,dn=(Ei=Ei+2*(dn+Ii)>>3)+Mn>>1,u(B[Y+2*zr-1],255&jr,jr>>16,Pt,Gt+(2*zr-1)*w),u(B[Y+2*zr-0],255&dn,dn>>16,Pt,Gt+(2*zr-0)*w),oe!=null&&(jr=Ei+Wn>>1,dn=Si+Ii>>1,u(oe[xe+2*zr-1],255&jr,jr>>16,tr,Ur+(2*zr-1)*w),u(oe[xe+2*zr+0],255&dn,dn>>16,tr,Ur+(2*zr+0)*w)),dn=Mn,Wn=Ii}1&Wr||(jr=3*dn+Wn+131074>>2,u(B[Y+Wr-1],255&jr,jr>>16,Pt,Gt+(Wr-1)*w),oe!=null&&(jr=3*Wn+dn+131074>>2,u(oe[xe+Wr-1],255&jr,jr>>16,tr,Ur+(Wr-1)*w)))}}function Jn(){ul[Pu]=lA,ul[mc]=jc,ul[ec]=uA,ul[wc]=$c,ul[bu]=Hc,ul[Pc]=Jc,ul[zc]=cA,ul[xc]=jc,ul[Nc]=$c,ul[tc]=Hc,ul[kc]=Jc}function Pi(a){return a&~AA?0>a?0:255:a>>Bc}function ts(a,u){return Pi((19077*a>>8)+(26149*u>>8)-14234)}function Ss(a,u,w){return Pi((19077*a>>8)-(6419*u>>8)-(13320*w>>8)+8708)}function xs(a,u){return Pi((19077*a>>8)+(33050*u>>8)-17685)}function Zs(a,u,w,B,Y){B[Y+0]=ts(a,w),B[Y+1]=Ss(a,u,w),B[Y+2]=xs(a,u)}function Ia(a,u,w,B,Y){B[Y+0]=xs(a,u),B[Y+1]=Ss(a,u,w),B[Y+2]=ts(a,w)}function Ta(a,u,w,B,Y){var oe=Ss(a,u,w);u=oe<<3&224|xs(a,u)>>3,B[Y+0]=248&ts(a,w)|oe>>5,B[Y+1]=u}function ro(a,u,w,B,Y){var oe=240&xs(a,u)|15;B[Y+0]=240&ts(a,w)|Ss(a,u,w)>>4,B[Y+1]=oe}function uo(a,u,w,B,Y){B[Y+0]=255,Zs(a,u,w,B,Y+1)}function co(a,u,w,B,Y){Ia(a,u,w,B,Y),B[Y+3]=255}function Ao(a,u,w,B,Y){Zs(a,u,w,B,Y),B[Y+3]=255}function al(a,u){return 0>a?0:a>u?u:a}function no(a,u,w){br[a]=function(B,Y,oe,xe,Ne,Me,We,ct,xt){for(var wt=ct+(-2&xt)*w;ct!=wt;)u(B[Y+0],oe[xe+0],Ne[Me+0],We,ct),u(B[Y+1],oe[xe+0],Ne[Me+0],We,ct+w),Y+=2,++xe,++Me,ct+=2*w;1&xt&&u(B[Y+0],oe[xe+0],Ne[Me+0],We,ct)}}function Ro(a,u,w){return w==0?a==0?u==0?6:5:u==0?4:0:w}function Ru(a,u,w,B,Y){switch(a>>>30){case 3:Ql(u,w,B,Y,0);break;case 2:so(u,w,B,Y);break;case 1:To(u,w,B,Y)}}function Gu(a,u){var w,B,Y=u.M,oe=u.Nb,xe=a.oc,Ne=a.pc+40,Me=a.oc,We=a.pc+584,ct=a.oc,xt=a.pc+600;for(w=0;16>w;++w)xe[Ne+32*w-1]=129;for(w=0;8>w;++w)Me[We+32*w-1]=129,ct[xt+32*w-1]=129;for(0<Y?xe[Ne-1-32]=Me[We-1-32]=ct[xt-1-32]=129:(ie(xe,Ne-32-1,127,21),ie(Me,We-32-1,127,9),ie(ct,xt-32-1,127,9)),B=0;B<a.za;++B){var wt=u.ya[u.aa+B];if(0<B){for(w=-1;16>w;++w)j(xe,Ne+32*w-4,xe,Ne+32*w+12,4);for(w=-1;8>w;++w)j(Me,We+32*w-4,Me,We+32*w+4,4),j(ct,xt+32*w-4,ct,xt+32*w+4,4)}var Et=a.Gd,qt=a.Hd+B,Pt=wt.ad,Gt=wt.Hc;if(0<Y&&(j(xe,Ne-32,Et[qt].y,0,16),j(Me,We-32,Et[qt].f,0,8),j(ct,xt-32,Et[qt].ea,0,8)),wt.Za){var tr=xe,Ur=Ne-32+16;for(0<Y&&(B>=a.za-1?ie(tr,Ur,Et[qt].y[15],4):j(tr,Ur,Et[qt+1].y,0,4)),w=0;4>w;w++)tr[Ur+128+w]=tr[Ur+256+w]=tr[Ur+384+w]=tr[Ur+0+w];for(w=0;16>w;++w,Gt<<=2)tr=xe,Ur=Ne+o[w],No[wt.Ob[w]](tr,Ur),Ru(Gt,Pt,16*+w,tr,Ur)}else if(tr=Ro(B,Y,wt.Ob[0]),iu[tr](xe,Ne),Gt!=0)for(w=0;16>w;++w,Gt<<=2)Ru(Gt,Pt,16*+w,xe,Ne+o[w]);for(w=wt.Gc,tr=Ro(B,Y,wt.Dd),Fl[tr](Me,We),Fl[tr](ct,xt),Gt=Pt,tr=Me,Ur=We,255&(wt=w>>0)&&(170&wt?gu(Gt,256,tr,Ur):$o(Gt,256,tr,Ur)),wt=ct,Gt=xt,255&(w>>=8)&&(170&w?gu(Pt,320,wt,Gt):$o(Pt,320,wt,Gt)),Y<a.Ub-1&&(j(Et[qt].y,0,xe,Ne+480,16),j(Et[qt].f,0,Me,We+224,8),j(Et[qt].ea,0,ct,xt+224,8)),w=8*oe*a.B,Et=a.sa,qt=a.ta+16*B+16*oe*a.R,Pt=a.qa,wt=a.ra+8*B+w,Gt=a.Ha,tr=a.Ia+8*B+w,w=0;16>w;++w)j(Et,qt+w*a.R,xe,Ne+32*w,16);for(w=0;8>w;++w)j(Pt,wt+w*a.B,Me,We+32*w,8),j(Gt,tr+w*a.B,ct,xt+32*w,8)}}function Ou(a,u,w,B,Y,oe,xe,Ne,Me){var We=[0],ct=[0],xt=0,wt=Me!=null?Me.kd:0,Et=Me!=null?Me:new Ac;if(a==null||12>w)return 7;Et.data=a,Et.w=u,Et.ha=w,u=[u],w=[w],Et.gb=[Et.gb];e:{var qt=u,Pt=w,Gt=Et.gb;if(h(a!=null),h(Pt!=null),h(Gt!=null),Gt[0]=0,12<=Pt[0]&&!_(a,qt[0],"RIFF")){if(_(a,qt[0]+8,"WEBP")){Gt=3;break e}var tr=Yr(a,qt[0]+4);if(12>tr||4294967286<tr){Gt=3;break e}if(wt&&tr>Pt[0]-8){Gt=7;break e}Gt[0]=tr,qt[0]+=12,Pt[0]-=12}Gt=0}if(Gt!=0)return Gt;for(tr=0<Et.gb[0],w=w[0];;){e:{var Ur=a;Pt=u,Gt=w;var Wr=We,zr=ct,An=qt=[0];if((jr=xt=[xt])[0]=0,8>Gt[0])Gt=7;else{if(!_(Ur,Pt[0],"VP8X")){if(Yr(Ur,Pt[0]+4)!=10){Gt=3;break e}if(18>Gt[0]){Gt=7;break e}var dn=Yr(Ur,Pt[0]+8),Wn=1+Mr(Ur,Pt[0]+12);if(2147483648<=Wn*(Ur=1+Mr(Ur,Pt[0]+15))){Gt=3;break e}An!=null&&(An[0]=dn),Wr!=null&&(Wr[0]=Wn),zr!=null&&(zr[0]=Ur),Pt[0]+=18,Gt[0]-=18,jr[0]=1}Gt=0}}if(xt=xt[0],qt=qt[0],Gt!=0)return Gt;if(Pt=!!(2&qt),!tr&&xt)return 3;if(oe!=null&&(oe[0]=!!(16&qt)),xe!=null&&(xe[0]=Pt),Ne!=null&&(Ne[0]=0),xe=We[0],qt=ct[0],xt&&Pt&&Me==null){Gt=0;break}if(4>w){Gt=7;break}if(tr&&xt||!tr&&!xt&&!_(a,u[0],"ALPH")){w=[w],Et.na=[Et.na],Et.P=[Et.P],Et.Sa=[Et.Sa];e:{dn=a,Gt=u,tr=w;var jr=Et.gb;Wr=Et.na,zr=Et.P,An=Et.Sa,Wn=22,h(dn!=null),h(tr!=null),Ur=Gt[0];var Mn=tr[0];for(h(Wr!=null),h(An!=null),Wr[0]=null,zr[0]=null,An[0]=0;;){if(Gt[0]=Ur,tr[0]=Mn,8>Mn){Gt=7;break e}var Ii=Yr(dn,Ur+4);if(4294967286<Ii){Gt=3;break e}var Ei=8+Ii+1&-2;if(Wn+=Ei,0<jr&&Wn>jr){Gt=3;break e}if(!_(dn,Ur,"VP8 ")||!_(dn,Ur,"VP8L")){Gt=0;break e}if(Mn[0]<Ei){Gt=7;break e}_(dn,Ur,"ALPH")||(Wr[0]=dn,zr[0]=Ur+8,An[0]=Ii),Ur+=Ei,Mn-=Ei}}if(w=w[0],Et.na=Et.na[0],Et.P=Et.P[0],Et.Sa=Et.Sa[0],Gt!=0)break}w=[w],Et.Ja=[Et.Ja],Et.xa=[Et.xa];e:if(jr=a,Gt=u,tr=w,Wr=Et.gb[0],zr=Et.Ja,An=Et.xa,dn=Gt[0],Ur=!_(jr,dn,"VP8 "),Wn=!_(jr,dn,"VP8L"),h(jr!=null),h(tr!=null),h(zr!=null),h(An!=null),8>tr[0])Gt=7;else{if(Ur||Wn){if(jr=Yr(jr,dn+4),12<=Wr&&jr>Wr-12){Gt=3;break e}if(wt&&jr>tr[0]-8){Gt=7;break e}zr[0]=jr,Gt[0]+=8,tr[0]-=8,An[0]=Wn}else An[0]=5<=tr[0]&&jr[dn+0]==47&&!(jr[dn+4]>>5),zr[0]=tr[0];Gt=0}if(w=w[0],Et.Ja=Et.Ja[0],Et.xa=Et.xa[0],u=u[0],Gt!=0)break;if(4294967286<Et.Ja)return 3;if(Ne==null||Pt||(Ne[0]=Et.xa?2:1),xe=[xe],qt=[qt],Et.xa){if(5>w){Gt=7;break}Ne=xe,wt=qt,Pt=oe,a==null||5>w?a=0:5<=w&&a[u+0]==47&&!(a[u+4]>>5)?(tr=[0],jr=[0],Wr=[0],ot(zr=new je,a,u,w),fi(zr,tr,jr,Wr)?(Ne!=null&&(Ne[0]=tr[0]),wt!=null&&(wt[0]=jr[0]),Pt!=null&&(Pt[0]=Wr[0]),a=1):a=0):a=0}else{if(10>w){Gt=7;break}Ne=qt,a==null||10>w||!ja(a,u+3,w-3)?a=0:(wt=a[u+0]|a[u+1]<<8|a[u+2]<<16,Pt=16383&(a[u+7]<<8|a[u+6]),a=16383&(a[u+9]<<8|a[u+8]),1&wt||3<(wt>>1&7)||!(wt>>4&1)||wt>>5>=Et.Ja||!Pt||!a?a=0:(xe&&(xe[0]=Pt),Ne&&(Ne[0]=a),a=1))}if(!a||(xe=xe[0],qt=qt[0],xt&&(We[0]!=xe||ct[0]!=qt)))return 3;Me!=null&&(Me[0]=Et,Me.offset=u-Me.w,h(4294967286>u-Me.w),h(Me.offset==Me.ha-w));break}return Gt==0||Gt==7&&xt&&Me==null?(oe!=null&&(oe[0]|=Et.na!=null&&0<Et.na.length),B!=null&&(B[0]=xe),Y!=null&&(Y[0]=qt),0):Gt}function Zu(a,u,w){var B=u.width,Y=u.height,oe=0,xe=0,Ne=B,Me=Y;if(u.Da=a!=null&&0<a.Da,u.Da&&(Ne=a.cd,Me=a.bd,oe=a.v,xe=a.j,11>w||(oe&=-2,xe&=-2),0>oe||0>xe||0>=Ne||0>=Me||oe+Ne>B||xe+Me>Y))return 0;if(u.v=oe,u.j=xe,u.va=oe+Ne,u.o=xe+Me,u.U=Ne,u.T=Me,u.da=a!=null&&0<a.da,u.da){if(!ei(Ne,Me,w=[a.ib],oe=[a.hb]))return 0;u.ib=w[0],u.hb=oe[0]}return u.ob=a!=null&&a.ob,u.Kb=a==null||!a.Sd,u.da&&(u.ob=u.ib<3*B/4&&u.hb<3*Y/4,u.Kb=0),1}function Vu(a){if(a==null)return 2;if(11>a.S){var u=a.f.RGBA;u.fb+=(a.height-1)*u.A,u.A=-u.A}else u=a.f.kb,a=a.height,u.O+=(a-1)*u.fa,u.fa=-u.fa,u.N+=(a-1>>1)*u.Ab,u.Ab=-u.Ab,u.W+=(a-1>>1)*u.Db,u.Db=-u.Db,u.F!=null&&(u.J+=(a-1)*u.lb,u.lb=-u.lb);return 0}function Wu(a,u,w,B){if(B==null||0>=a||0>=u)return 2;if(w!=null){if(w.Da){var Y=w.cd,oe=w.bd,xe=-2&w.v,Ne=-2&w.j;if(0>xe||0>Ne||0>=Y||0>=oe||xe+Y>a||Ne+oe>u)return 2;a=Y,u=oe}if(w.da){if(!ei(a,u,Y=[w.ib],oe=[w.hb]))return 2;a=Y[0],u=oe[0]}}B.width=a,B.height=u;e:{var Me=B.width,We=B.height;if(a=B.S,0>=Me||0>=We||!(a>=Pu&&13>a))a=2;else{if(0>=B.Rd&&B.sd==null){xe=oe=Y=u=0;var ct=(Ne=Me*M[a])*We;if(11>a||(oe=(We+1)/2*(u=(Me+1)/2),a==12&&(xe=(Y=Me)*We)),(We=X(ct+2*oe+xe))==null){a=1;break e}B.sd=We,11>a?((Me=B.f.RGBA).eb=We,Me.fb=0,Me.A=Ne,Me.size=ct):((Me=B.f.kb).y=We,Me.O=0,Me.fa=Ne,Me.Fd=ct,Me.f=We,Me.N=0+ct,Me.Ab=u,Me.Cd=oe,Me.ea=We,Me.W=0+ct+oe,Me.Db=u,Me.Ed=oe,a==12&&(Me.F=We,Me.J=0+ct+2*oe),Me.Tc=xe,Me.lb=Y)}if(u=1,Y=B.S,oe=B.width,xe=B.height,Y>=Pu&&13>Y)if(11>Y)a=B.f.RGBA,u&=(Ne=Math.abs(a.A))*(xe-1)+oe<=a.size,u&=Ne>=oe*M[Y],u&=a.eb!=null;else{a=B.f.kb,Ne=(oe+1)/2,ct=(xe+1)/2,Me=Math.abs(a.fa),We=Math.abs(a.Ab);var xt=Math.abs(a.Db),wt=Math.abs(a.lb),Et=wt*(xe-1)+oe;u&=Me*(xe-1)+oe<=a.Fd,u&=We*(ct-1)+Ne<=a.Cd,u=(u&=xt*(ct-1)+Ne<=a.Ed)&Me>=oe&We>=Ne&xt>=Ne,u&=a.y!=null,u&=a.f!=null,u&=a.ea!=null,Y==12&&(u&=wt>=oe,u&=Et<=a.Tc,u&=a.F!=null)}else u=0;a=u?0:2}}return a!=0||w!=null&&w.fd&&(a=Vu(B)),a}var bo=64,io=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],jo=24,Ea=32,Il=8,fo=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];sn("Predictor0","PredictorAdd0"),br.Predictor0=function(){return 4278190080},br.Predictor1=function(a){return a},br.Predictor2=function(a,u,w){return u[w+0]},br.Predictor3=function(a,u,w){return u[w+1]},br.Predictor4=function(a,u,w){return u[w-1]},br.Predictor5=function(a,u,w){return Vr(Vr(a,u[w+1]),u[w+0])},br.Predictor6=function(a,u,w){return Vr(a,u[w-1])},br.Predictor7=function(a,u,w){return Vr(a,u[w+0])},br.Predictor8=function(a,u,w){return Vr(u[w-1],u[w+0])},br.Predictor9=function(a,u,w){return Vr(u[w+0],u[w+1])},br.Predictor10=function(a,u,w){return Vr(Vr(a,u[w-1]),Vr(u[w+0],u[w+1]))},br.Predictor11=function(a,u,w){var B=u[w+0];return 0>=pi(B>>24&255,a>>24&255,(u=u[w-1])>>24&255)+pi(B>>16&255,a>>16&255,u>>16&255)+pi(B>>8&255,a>>8&255,u>>8&255)+pi(255&B,255&a,255&u)?B:a},br.Predictor12=function(a,u,w){var B=u[w+0];return(Sn((a>>24&255)+(B>>24&255)-((u=u[w-1])>>24&255))<<24|Sn((a>>16&255)+(B>>16&255)-(u>>16&255))<<16|Sn((a>>8&255)+(B>>8&255)-(u>>8&255))<<8|Sn((255&a)+(255&B)-(255&u)))>>>0},br.Predictor13=function(a,u,w){var B=u[w-1];return(qn((a=Vr(a,u[w+0]))>>24&255,B>>24&255)<<24|qn(a>>16&255,B>>16&255)<<16|qn(a>>8&255,B>>8&255)<<8|qn(a>>0&255,B>>0&255))>>>0};var Ul=br.PredictorAdd0;br.PredictorAdd1=Qe,sn("Predictor2","PredictorAdd2"),sn("Predictor3","PredictorAdd3"),sn("Predictor4","PredictorAdd4"),sn("Predictor5","PredictorAdd5"),sn("Predictor6","PredictorAdd6"),sn("Predictor7","PredictorAdd7"),sn("Predictor8","PredictorAdd8"),sn("Predictor9","PredictorAdd9"),sn("Predictor10","PredictorAdd10"),sn("Predictor11","PredictorAdd11"),sn("Predictor12","PredictorAdd12"),sn("Predictor13","PredictorAdd13");var vl=br.PredictorAdd2;V("ColorIndexInverseTransform","MapARGB","32b",function(a){return a>>8&255},function(a){return a}),V("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(a){return a},function(a){return a>>8&255});var pu,_a=br.ColorIndexInverseTransform,mu=br.MapARGB,dc=br.VP8LColorIndexInverseTransformAlpha,fc=br.MapAlpha,yl=br.VP8LPredictorsAdd=[];yl.length=16,(br.VP8LPredictors=[]).length=16,(br.VP8LPredictorsAdd_C=[]).length=16,(br.VP8LPredictors_C=[]).length=16;var bl,Oo,ho,wl,eu,Tl,Yu,Ql,so,gu,To,$o,Xu,hc,pc,tu,Dl,ru,nu,Ju,vu,jl,qu,ol,xl,va,ha,Ka,Xa=X(511),$l=X(2041),Oi=X(225),ll=X(767),yu=0,Po=$l,bc=Oi,Ts=ll,Us=Xa,Pu=0,mc=1,ec=2,wc=3,bu=4,Pc=5,zc=6,xc=7,Nc=8,tc=9,kc=10,Gc=[2,3,7],Zc=[3,3,11],Ec=[280,256,256,256,40],Vc=[0,1,1,1,0],iA=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Mc=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],sA=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],aA=8,Uc=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,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,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],rc=[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,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],wo=null,Wc=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Nu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Yc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],oA=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Qc=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],nc=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],gc=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],iu=[],No=[],Fl=[],Xc=1,ic=2,wu=[],ul=[];Bn("UpsampleRgbLinePair",Zs,3),Bn("UpsampleBgrLinePair",Ia,3),Bn("UpsampleRgbaLinePair",Ao,4),Bn("UpsampleBgraLinePair",co,4),Bn("UpsampleArgbLinePair",uo,4),Bn("UpsampleRgba4444LinePair",ro,2),Bn("UpsampleRgb565LinePair",Ta,2);var lA=br.UpsampleRgbLinePair,uA=br.UpsampleBgrLinePair,jc=br.UpsampleRgbaLinePair,$c=br.UpsampleBgraLinePair,Hc=br.UpsampleArgbLinePair,Jc=br.UpsampleRgba4444LinePair,cA=br.UpsampleRgb565LinePair,_c=16,Cc=1<<_c-1,vc=-227,Sc=482,Bc=6,AA=(256<<Bc)-1,su=0,i=X(256),e=X(256),t=X(256),r=X(256),n=X(Sc-vc),s=X(Sc-vc);no("YuvToRgbRow",Zs,3),no("YuvToBgrRow",Ia,3),no("YuvToRgbaRow",Ao,4),no("YuvToBgraRow",co,4),no("YuvToArgbRow",uo,4),no("YuvToRgba4444Row",ro,2),no("YuvToRgb565Row",Ta,2);var o=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],c=[0,2,8],A=[8,7,6,4,4,2,2,2,1,1,1,1],f=1;this.WebPDecodeRGBA=function(a,u,w,B,Y){var oe=mc,xe=new Jl,Ne=new kt;xe.ba=Ne,Ne.S=oe,Ne.width=[Ne.width],Ne.height=[Ne.height];var Me=Ne.width,We=Ne.height,ct=new wn;if(ct==null||a==null)var xt=2;else h(ct!=null),xt=Ou(a,u,w,ct.width,ct.height,ct.Pd,ct.Qd,ct.format,null);if(xt!=0?Me=0:(Me!=null&&(Me[0]=ct.width[0]),We!=null&&(We[0]=ct.height[0]),Me=1),Me){Ne.width=Ne.width[0],Ne.height=Ne.height[0],B!=null&&(B[0]=Ne.width),Y!=null&&(Y[0]=Ne.height);e:{if(B=new _l,(Y=new Ac).data=a,Y.w=u,Y.ha=w,Y.kd=1,u=[0],h(Y!=null),((a=Ou(Y.data,Y.w,Y.ha,null,null,null,u,null,Y))==0||a==7)&&u[0]&&(a=4),(u=a)==0){if(h(xe!=null),B.data=Y.data,B.w=Y.w+Y.offset,B.ha=Y.ha-Y.offset,B.put=Fi,B.ac=xi,B.bc=os,B.ma=xe,Y.xa){if((a=Ps())==null){xe=1;break e}if(function(wt,Et){var qt=[0],Pt=[0],Gt=[0];t:for(;;){if(wt==null)return 0;if(Et==null)return wt.a=2,0;if(wt.l=Et,wt.a=0,ot(wt.m,Et.data,Et.w,Et.ha),!fi(wt.m,qt,Pt,Gt)){wt.a=3;break t}if(wt.xb=ic,Et.width=qt[0],Et.height=Pt[0],!Gs(qt[0],Pt[0],1,wt,null))break t;return 1}return h(wt.a!=0),0}(a,B)){if(B=(u=Wu(B.width,B.height,xe.Oa,xe.ba))==0){t:{B=a;r:for(;;){if(B==null){B=0;break t}if(h(B.s.yc!=null),h(B.s.Ya!=null),h(0<B.s.Wb),h((w=B.l)!=null),h((Y=w.ma)!=null),B.xb!=0){if(B.ca=Y.ba,B.tb=Y.tb,h(B.ca!=null),!Zu(Y.Oa,w,wc)){B.a=2;break r}if(!ga(B,w.width)||w.da)break r;if((w.da||Sr(B.ca.S))&&Gr(),11>B.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),B.ca.f.kb.F!=null&&Gr()),B.Pb&&0<B.s.ua&&B.s.vb.X==null&&!Qn(B.s.vb,B.s.Wa.Xa)){B.a=1;break r}B.xb=0}if(!Ls(B,B.V,B.Ba,B.c,B.i,w.o,Zi))break r;Y.Dc=B.Ma,B=1;break t}h(B.a!=0),B=0}B=!B}B&&(u=a.a)}else u=a.a}else{if((a=new bs)==null){xe=1;break e}if(a.Fa=Y.na,a.P=Y.P,a.qc=Y.Sa,qs(a,B)){if((u=Wu(B.width,B.height,xe.Oa,xe.ba))==0){if(a.Aa=0,w=xe.Oa,h((Y=a)!=null),w!=null){if(0<(Me=0>(Me=w.Md)?0:100<Me?255:255*Me/100)){for(We=ct=0;4>We;++We)12>(xt=Y.pb[We]).lc&&(xt.ia=Me*A[0>xt.lc?0:xt.lc]>>3),ct|=xt.ia;ct&&(alert("todo:VP8InitRandom"),Y.ia=1)}Y.Ga=w.Id,100<Y.Ga?Y.Ga=100:0>Y.Ga&&(Y.Ga=0)}Ra(a,B)||(u=a.a)}}else u=a.a}u==0&&xe.Oa!=null&&xe.Oa.fd&&(u=Vu(xe.ba))}xe=u}oe=xe!=0?null:11>oe?Ne.f.RGBA.eb:Ne.f.kb.y}else oe=null;return oe};var M=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function et(br,en){for(var In="",Nt=0;Nt<4;Nt++)In+=String.fromCharCode(br[en++]);return In}function dt(br,en){return(br[en+0]<<0|br[en+1]<<8|br[en+2]<<16)>>>0}function ft(br,en){return(br[en+0]<<0|br[en+1]<<8|br[en+2]<<16|br[en+3]<<24)>>>0}new ke;var Ct=[0],Ve=[0],nr=[],Zt=new ke,or=C,Lt=function(br,en){var In={},Nt=0,Wt=!1,Cr=0,ge=0;if(In.frames=[],!function(at,Ie,bt,Kt){for(var Jt=0;Jt<Kt;Jt++)if(at[Ie+Jt]!=bt.charCodeAt(Jt))return!0;return!1}(br,en,"RIFF",4)){for(ft(br,en+=4),en+=8;en<br.length;){var Pe=et(br,en),Ye=ft(br,en+=4);en+=4;var st=Ye+(1&Ye);switch(Pe){case"VP8 ":case"VP8L":In.frames[Nt]===void 0&&(In.frames[Nt]={}),(Ft=In.frames[Nt]).src_off=Wt?ge:en-8,Ft.src_size=Cr+Ye+8,Nt++,Wt&&(Wt=!1,Cr=0,ge=0);break;case"VP8X":(Ft=In.header={}).feature_flags=br[en];var ot=en+4;Ft.canvas_width=1+dt(br,ot),ot+=3,Ft.canvas_height=1+dt(br,ot),ot+=3;break;case"ALPH":Wt=!0,Cr=st+8,ge=en-8;break;case"ANIM":(Ft=In.header).bgcolor=ft(br,en),ot=en+4,Ft.loop_count=(er=br)[(je=ot)+0]<<0|er[je+1]<<8,ot+=2;break;case"ANMF":var gt,Ft;(Ft=In.frames[Nt]={}).offset_x=2*dt(br,en),en+=3,Ft.offset_y=2*dt(br,en),en+=3,Ft.width=1+dt(br,en),en+=3,Ft.height=1+dt(br,en),en+=3,Ft.duration=dt(br,en),en+=3,gt=br[en++],Ft.dispose=1>,Ft.blend=gt>>1&1}Pe!="ANMF"&&(en+=st)}var er,je;return In}}(or,0);Lt.response=or,Lt.rgbaoutput=!0,Lt.dataurl=!1;var ar=Lt.header?Lt.header:null,Ir=Lt.frames?Lt.frames:null;if(ar){ar.loop_counter=ar.loop_count,Ct=[ar.canvas_height],Ve=[ar.canvas_width];for(var Zr=0;Zr<Ir.length&&Ir[Zr].blend!=0;Zr++);}var mn=Ir[0],Gn=Zt.WebPDecodeRGBA(or,mn.src_off,mn.src_size,Ve,Ct);mn.rgba=Gn,mn.imgwidth=Ve[0],mn.imgheight=Ct[0];for(var Jr=0;Jr<Ve[0]*Ct[0]*4;Jr++)nr[Jr]=Gn[Jr];return this.width=Ve,this.height=Ct,this.data=nr,this}(function(C){var h=function(){return typeof Dn=="function"},_=function(Ct,Ve,nr,Zt){var or=4,Lt=me;switch(Zt){case C.image_compression.FAST:or=1,Lt=X;break;case C.image_compression.MEDIUM:or=6,Lt=De;break;case C.image_compression.SLOW:or=9,Lt=ke}Ct=j(Ct,Ve,nr,Lt);var ar=Dn(Ct,{level:or});return C.__addimage__.arrayBufferToBinaryString(ar)},j=function(Ct,Ve,nr,Zt){for(var or,Lt,ar,Ir=Ct.length/Ve,Zr=new Uint8Array(Ct.length+Ir),mn=dt(),Gn=0;Gn<Ir;Gn+=1){if(ar=Gn*Ve,or=Ct.subarray(ar,ar+Ve),Zt)Zr.set(Zt(or,nr,Lt),ar+Gn);else{for(var Jr,br=mn.length,en=[];Jr<br;Jr+=1)en[Jr]=mn[Jr](or,nr,Lt);var In=ft(en.concat());Zr.set(en[In],ar+Gn)}Lt=or}return Zr},ie=function(Ct){var Ve=Array.apply([],Ct);return Ve.unshift(0),Ve},X=function(Ct,Ve){var nr,Zt=[],or=Ct.length;Zt[0]=1;for(var Lt=0;Lt<or;Lt+=1)nr=Ct[Lt-Ve]||0,Zt[Lt+1]=Ct[Lt]-nr+256&255;return Zt},me=function(Ct,Ve,nr){var Zt,or=[],Lt=Ct.length;or[0]=2;for(var ar=0;ar<Lt;ar+=1)Zt=nr&&nr[ar]||0,or[ar+1]=Ct[ar]-Zt+256&255;return or},De=function(Ct,Ve,nr){var Zt,or,Lt=[],ar=Ct.length;Lt[0]=3;for(var Ir=0;Ir<ar;Ir+=1)Zt=Ct[Ir-Ve]||0,or=nr&&nr[Ir]||0,Lt[Ir+1]=Ct[Ir]+256-(Zt+or>>>1)&255;return Lt},ke=function(Ct,Ve,nr){var Zt,or,Lt,ar,Ir=[],Zr=Ct.length;Ir[0]=4;for(var mn=0;mn<Zr;mn+=1)Zt=Ct[mn-Ve]||0,or=nr&&nr[mn]||0,Lt=nr&&nr[mn-Ve]||0,ar=et(Zt,or,Lt),Ir[mn+1]=Ct[mn]-ar+256&255;return Ir},et=function(Ct,Ve,nr){if(Ct===Ve&&Ve===nr)return Ct;var Zt=Math.abs(Ve-nr),or=Math.abs(Ct-nr),Lt=Math.abs(Ct+Ve-nr-nr);return Zt<=or&&Zt<=Lt?Ct:or<=Lt?Ve:nr},dt=function(){return[ie,X,me,De,ke]},ft=function(Ct){var Ve=Ct.map(function(nr){return nr.reduce(function(Zt,or){return Zt+Math.abs(or)},0)});return Ve.indexOf(Math.min.apply(null,Ve))};C.processPNG=function(Ct,Ve,nr,Zt){var or,Lt,ar,Ir,Zr,mn,Gn,Jr,br,en,In,Nt,Wt,Cr,ge,Pe=this.decode.FLATE_DECODE,Ye="";if(this.__addimage__.isArrayBuffer(Ct)&&(Ct=new Uint8Array(Ct)),this.__addimage__.isArrayBufferView(Ct)){if(Ct=(ar=new qo(Ct)).imgData,Lt=ar.bits,or=ar.colorSpace,Zr=ar.colors,[4,6].indexOf(ar.colorType)!==-1){if(ar.bits===8){br=(Jr=ar.pixelBitlength==32?new Uint32Array(ar.decodePixels().buffer):ar.pixelBitlength==16?new Uint16Array(ar.decodePixels().buffer):new Uint8Array(ar.decodePixels().buffer)).length,In=new Uint8Array(br*ar.colors),en=new Uint8Array(br);var st,ot=ar.pixelBitlength-ar.bits;for(Cr=0,ge=0;Cr<br;Cr++){for(Wt=Jr[Cr],st=0;st<ot;)In[ge++]=Wt>>>st&255,st+=ar.bits;en[Cr]=Wt>>>st&255}}if(ar.bits===16){br=(Jr=new Uint32Array(ar.decodePixels().buffer)).length,In=new Uint8Array(br*(32/ar.pixelBitlength)*ar.colors),en=new Uint8Array(br*(32/ar.pixelBitlength)),Nt=ar.colors>1,Cr=0,ge=0;for(var gt=0;Cr<br;)Wt=Jr[Cr++],In[ge++]=Wt>>>0&255,Nt&&(In[ge++]=Wt>>>16&255,Wt=Jr[Cr++],In[ge++]=Wt>>>0&255),en[gt++]=Wt>>>16&255;Lt=8}Zt!==C.image_compression.NONE&&h()?(Ct=_(In,ar.width*ar.colors,ar.colors,Zt),Gn=_(en,ar.width,1,Zt)):(Ct=In,Gn=en,Pe=void 0)}if(ar.colorType===3&&(or=this.color_spaces.INDEXED,mn=ar.palette,ar.transparency.indexed)){var Ft=ar.transparency.indexed,er=0;for(Cr=0,br=Ft.length;Cr<br;++Cr)er+=Ft[Cr];if((er/=255)===br-1&&Ft.indexOf(0)!==-1)Ir=[Ft.indexOf(0)];else if(er!==br){for(Jr=ar.decodePixels(),en=new Uint8Array(Jr.length),Cr=0,br=Jr.length;Cr<br;Cr++)en[Cr]=Ft[Jr[Cr]];Gn=_(en,ar.width,1)}}var je=function(at){var Ie;switch(at){case C.image_compression.FAST:Ie=11;break;case C.image_compression.MEDIUM:Ie=13;break;case C.image_compression.SLOW:Ie=14;break;default:Ie=12}return Ie}(Zt);return Pe===this.decode.FLATE_DECODE&&(Ye="/Predictor "+je+" "),Ye+="/Colors "+Zr+" /BitsPerComponent "+Lt+" /Columns "+ar.width,(this.__addimage__.isArrayBuffer(Ct)||this.__addimage__.isArrayBufferView(Ct))&&(Ct=this.__addimage__.arrayBufferToBinaryString(Ct)),(Gn&&this.__addimage__.isArrayBuffer(Gn)||this.__addimage__.isArrayBufferView(Gn))&&(Gn=this.__addimage__.arrayBufferToBinaryString(Gn)),{alias:nr,data:Ct,index:Ve,filter:Pe,decodeParameters:Ye,transparency:Ir,palette:mn,sMask:Gn,predictor:je,width:ar.width,height:ar.height,bitsPerComponent:Lt,colorSpace:or}}}})(gi.API),function(C){C.processGIF89A=function(h,_,j,ie){var X=new zo(h),me=X.width,De=X.height,ke=[];X.decodeAndBlitFrameRGBA(0,ke);var et={data:ke,width:me,height:De},dt=new Go(100).encode(et,100);return C.processJPEG.call(this,dt,_,j,ie)},C.processGIF87A=C.processGIF89A}(gi.API),Ma.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var C=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(C);for(var h=0;h<C;h++){var _=this.datav.getUint8(this.pos++,!0),j=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),X=this.datav.getUint8(this.pos++,!0);this.palette[h]={red:ie,green:j,blue:_,quad:X}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ma.prototype.parseBGR=function(){this.pos=this.offset;try{var C="bit"+this.bitPP,h=this.width*this.height*4;this.data=new Uint8Array(h),this[C]()}catch(_){zn.log("bit decode error:"+_)}},Ma.prototype.bit1=function(){var C,h=Math.ceil(this.width/8),_=h%4;for(C=this.height-1;C>=0;C--){for(var j=this.bottom_up?C:this.height-1-C,ie=0;ie<h;ie++)for(var X=this.datav.getUint8(this.pos++,!0),me=j*this.width*4+8*ie*4,De=0;De<8&&8*ie+De<this.width;De++){var ke=this.palette[X>>7-De&1];this.data[me+4*De]=ke.blue,this.data[me+4*De+1]=ke.green,this.data[me+4*De+2]=ke.red,this.data[me+4*De+3]=255}_!==0&&(this.pos+=4-_)}},Ma.prototype.bit4=function(){for(var C=Math.ceil(this.width/2),h=C%4,_=this.height-1;_>=0;_--){for(var j=this.bottom_up?_:this.height-1-_,ie=0;ie<C;ie++){var X=this.datav.getUint8(this.pos++,!0),me=j*this.width*4+2*ie*4,De=X>>4,ke=15&X,et=this.palette[De];if(this.data[me]=et.blue,this.data[me+1]=et.green,this.data[me+2]=et.red,this.data[me+3]=255,2*ie+1>=this.width)break;et=this.palette[ke],this.data[me+4]=et.blue,this.data[me+4+1]=et.green,this.data[me+4+2]=et.red,this.data[me+4+3]=255}h!==0&&(this.pos+=4-h)}},Ma.prototype.bit8=function(){for(var C=this.width%4,h=this.height-1;h>=0;h--){for(var _=this.bottom_up?h:this.height-1-h,j=0;j<this.width;j++){var ie=this.datav.getUint8(this.pos++,!0),X=_*this.width*4+4*j;if(ie<this.palette.length){var me=this.palette[ie];this.data[X]=me.red,this.data[X+1]=me.green,this.data[X+2]=me.blue,this.data[X+3]=255}else this.data[X]=255,this.data[X+1]=255,this.data[X+2]=255,this.data[X+3]=255}C!==0&&(this.pos+=4-C)}},Ma.prototype.bit15=function(){for(var C=this.width%3,h=parseInt("11111",2),_=this.height-1;_>=0;_--){for(var j=this.bottom_up?_:this.height-1-_,ie=0;ie<this.width;ie++){var X=this.datav.getUint16(this.pos,!0);this.pos+=2;var me=(X&h)/h*255|0,De=(X>>5&h)/h*255|0,ke=(X>>10&h)/h*255|0,et=X>>15?255:0,dt=j*this.width*4+4*ie;this.data[dt]=ke,this.data[dt+1]=De,this.data[dt+2]=me,this.data[dt+3]=et}this.pos+=C}},Ma.prototype.bit16=function(){for(var C=this.width%3,h=parseInt("11111",2),_=parseInt("111111",2),j=this.height-1;j>=0;j--){for(var ie=this.bottom_up?j:this.height-1-j,X=0;X<this.width;X++){var me=this.datav.getUint16(this.pos,!0);this.pos+=2;var De=(me&h)/h*255|0,ke=(me>>5&_)/_*255|0,et=(me>>11)/h*255|0,dt=ie*this.width*4+4*X;this.data[dt]=et,this.data[dt+1]=ke,this.data[dt+2]=De,this.data[dt+3]=255}this.pos+=C}},Ma.prototype.bit24=function(){for(var C=this.height-1;C>=0;C--){for(var h=this.bottom_up?C:this.height-1-C,_=0;_<this.width;_++){var j=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),X=this.datav.getUint8(this.pos++,!0),me=h*this.width*4+4*_;this.data[me]=X,this.data[me+1]=ie,this.data[me+2]=j,this.data[me+3]=255}this.pos+=this.width%4}},Ma.prototype.bit32=function(){for(var C=this.height-1;C>=0;C--)for(var h=this.bottom_up?C:this.height-1-C,_=0;_<this.width;_++){var j=this.datav.getUint8(this.pos++,!0),ie=this.datav.getUint8(this.pos++,!0),X=this.datav.getUint8(this.pos++,!0),me=this.datav.getUint8(this.pos++,!0),De=h*this.width*4+4*_;this.data[De]=X,this.data[De+1]=ie,this.data[De+2]=j,this.data[De+3]=me}},Ma.prototype.getData=function(){return this.data},function(C){C.processBMP=function(h,_,j,ie){var X=new Ma(h,!1),me=X.width,De=X.height,ke={data:X.getData(),width:me,height:De},et=new Go(100).encode(ke,100);return C.processJPEG.call(this,et,_,j,ie)}}(gi.API),ba.prototype.getData=function(){return this.data},function(C){C.processWEBP=function(h,_,j,ie){var X=new ba(h),me=X.width,De=X.height,ke={data:X.getData(),width:me,height:De},et=new Go(100).encode(ke,100);return C.processJPEG.call(this,et,_,j,ie)}}(gi.API),gi.API.processRGBA=function(C,h,_){for(var j=C.data,ie=j.length,X=new Uint8Array(ie/4*3),me=new Uint8Array(ie/4),De=0,ke=0,et=0;et<ie;et+=4){var dt=j[et],ft=j[et+1],Ct=j[et+2],Ve=j[et+3];X[De++]=dt,X[De++]=ft,X[De++]=Ct,me[ke++]=Ve}var nr=this.__addimage__.arrayBufferToBinaryString(X);return{alpha:this.__addimage__.arrayBufferToBinaryString(me),data:nr,index:h,alias:_,colorSpace:"DeviceRGB",bitsPerComponent:8,width:C.width,height:C.height}},gi.API.setLanguage=function(C){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[C]!==void 0&&(this.internal.languageSettings.languageCode=C,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Eo=gi.API,hl=Eo.getCharWidthsArray=function(C,h){var _,j,ie=(h=h||{}).font||this.internal.getFont(),X=h.fontSize||this.internal.getFontSize(),me=h.charSpace||this.internal.getCharSpace(),De=h.widths?h.widths:ie.metadata.Unicode.widths,ke=De.fof?De.fof:1,et=h.kerning?h.kerning:ie.metadata.Unicode.kerning,dt=et.fof?et.fof:1,ft=h.doKerning!==!1,Ct=0,Ve=C.length,nr=0,Zt=De[0]||ke,or=[];for(_=0;_<Ve;_++)j=C.charCodeAt(_),typeof ie.metadata.widthOfString=="function"?or.push((ie.metadata.widthOfGlyph(ie.metadata.characterToGlyph(j))+me*(1e3/X)||0)/1e3):(Ct=ft&&(0,le.Z)(et[j])==="object"&&!isNaN(parseInt(et[j][nr],10))?et[j][nr]/dt:0,or.push((De[j]||Zt)/ke+Ct)),nr=j;return or},ka=Eo.getStringUnitWidth=function(C,h){var _=(h=h||{}).fontSize||this.internal.getFontSize(),j=h.font||this.internal.getFont(),ie=h.charSpace||this.internal.getCharSpace();return Eo.processArabic&&(C=Eo.processArabic(C)),typeof j.metadata.widthOfString=="function"?j.metadata.widthOfString(C,_,ie)/_:hl.apply(this,arguments).reduce(function(X,me){return X+me},0)},Ya=function(C,h,_,j){for(var ie=[],X=0,me=C.length,De=0;X!==me&&De+h[X]<_;)De+=h[X],X++;ie.push(C.slice(0,X));var ke=X;for(De=0;X!==me;)De+h[X]>j&&(ie.push(C.slice(ke,X)),De=0,ke=X),De+=h[X],X++;return ke!==X&&ie.push(C.slice(ke,X)),ie},El=function(C,h,_){_||(_={});var j,ie,X,me,De,ke,et,dt=[],ft=[dt],Ct=_.textIndent||0,Ve=0,nr=0,Zt=C.split(" "),or=hl.apply(this,[" ",_])[0];if(ke=_.lineIndent===-1?Zt[0].length+2:_.lineIndent||0){var Lt=Array(ke).join(" "),ar=[];Zt.map(function(Zr){(Zr=Zr.split(/\s*\n/)).length>1?ar=ar.concat(Zr.map(function(mn,Gn){return(Gn&&mn.length?`
|
|
|
`:"")+mn})):ar.push(Zr[0])}),Zt=ar,ke=ka.apply(this,[Lt,_])}for(X=0,me=Zt.length;X<me;X++){var Ir=0;if(j=Zt[X],ke&&j[0]==`
|
|
|
`&&(j=j.substr(1),Ir=1),Ct+Ve+(nr=(ie=hl.apply(this,[j,_])).reduce(function(Zr,mn){return Zr+mn},0))>h||Ir){if(nr>h){for(De=Ya.apply(this,[j,ie,h-(Ct+Ve),h]),dt.push(De.shift()),dt=[De.pop()];De.length;)ft.push([De.shift()]);nr=ie.slice(j.length-(dt[0]?dt[0].length:0)).reduce(function(Zr,mn){return Zr+mn},0)}else dt=[j];ft.push(dt),Ct=nr+ke,Ve=or}else dt.push(j),Ct+=Ve+nr,Ve=or}return et=ke?function(Zr,mn){return(mn?Lt:"")+Zr.join(" ")}:function(Zr){return Zr.join(" ")},ft.map(et)},Eo.splitTextToSize=function(C,h,_){var j,ie=(_=_||{}).fontSize||this.internal.getFontSize(),X=function(dt){if(dt.widths&&dt.kerning)return{widths:dt.widths,kerning:dt.kerning};var ft=this.internal.getFont(dt.fontName,dt.fontStyle);return ft.metadata.Unicode?{widths:ft.metadata.Unicode.widths||{0:1},kerning:ft.metadata.Unicode.kerning||{}}:{font:ft.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,_);j=Array.isArray(C)?C:String(C).split(/\r?\n/);var me=1*this.internal.scaleFactor*h/ie;X.textIndent=_.textIndent?1*_.textIndent*this.internal.scaleFactor/ie:0,X.lineIndent=_.lineIndent;var De,ke,et=[];for(De=0,ke=j.length;De<ke;De++)et=et.concat(El.apply(this,[j[De],me,X]));return et},function(C){C.__fontmetrics__=C.__fontmetrics__||{};for(var h="klmnopqrstuvwxyz",_={},j={},ie=0;ie<h.length;ie++)_[h[ie]]="0123456789abcdef"[ie],j["0123456789abcdef"[ie]]=h[ie];var X=function(ft){return"0x"+parseInt(ft,10).toString(16)},me=C.__fontmetrics__.compress=function(ft){var Ct,Ve,nr,Zt,or=["{"];for(var Lt in ft){if(Ct=ft[Lt],isNaN(parseInt(Lt,10))?Ve="'"+Lt+"'":(Lt=parseInt(Lt,10),Ve=(Ve=X(Lt).slice(2)).slice(0,-1)+j[Ve.slice(-1)]),typeof Ct=="number")Ct<0?(nr=X(Ct).slice(3),Zt="-"):(nr=X(Ct).slice(2),Zt=""),nr=Zt+nr.slice(0,-1)+j[nr.slice(-1)];else{if((0,le.Z)(Ct)!=="object")throw new Error("Don't know what to do with value type "+(0,le.Z)(Ct)+".");nr=me(Ct)}or.push(Ve+nr)}return or.push("}"),or.join("")},De=C.__fontmetrics__.uncompress=function(ft){if(typeof ft!="string")throw new Error("Invalid argument passed to uncompress.");for(var Ct,Ve,nr,Zt,or={},Lt=1,ar=or,Ir=[],Zr="",mn="",Gn=ft.length-1,Jr=1;Jr<Gn;Jr+=1)(Zt=ft[Jr])=="'"?Ct?(nr=Ct.join(""),Ct=void 0):Ct=[]:Ct?Ct.push(Zt):Zt=="{"?(Ir.push([ar,nr]),ar={},nr=void 0):Zt=="}"?((Ve=Ir.pop())[0][Ve[1]]=ar,nr=void 0,ar=Ve[0]):Zt=="-"?Lt=-1:nr===void 0?_.hasOwnProperty(Zt)?(Zr+=_[Zt],nr=parseInt(Zr,16)*Lt,Lt=1,Zr=""):Zr+=Zt:_.hasOwnProperty(Zt)?(mn+=_[Zt],ar[nr]=parseInt(mn,16)*Lt,Lt=1,nr=void 0,mn=""):mn+=Zt;return or},ke={codePages:["WinAnsiEncoding"],WinAnsiEncoding:De("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},et={Unicode:{Courier:ke,"Courier-Bold":ke,"Courier-BoldOblique":ke,"Courier-Oblique":ke,Helvetica:ke,"Helvetica-Bold":ke,"Helvetica-BoldOblique":ke,"Helvetica-Oblique":ke,"Times-Roman":ke,"Times-Bold":ke,"Times-BoldItalic":ke,"Times-Italic":ke}},dt={Unicode:{"Courier-Oblique":De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":De("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":De("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":De("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:De("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:De("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":De("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:De("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":De("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":De("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":De("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":De("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};C.events.push(["addFont",function(ft){var Ct=ft.font,Ve=dt.Unicode[Ct.postScriptName];Ve&&(Ct.metadata.Unicode={},Ct.metadata.Unicode.widths=Ve.widths,Ct.metadata.Unicode.kerning=Ve.kerning);var nr=et.Unicode[Ct.postScriptName];nr&&(Ct.metadata.Unicode.encoding=nr,Ct.encoding=nr.codePages[0])}])}(gi.API),function(C){var h=function(_){for(var j=_.length,ie=new Uint8Array(j),X=0;X<j;X++)ie[X]=_.charCodeAt(X);return ie};C.API.events.push(["addFont",function(_){var j=void 0,ie=_.font,X=_.instance;if(!ie.isStandardFont){if(X===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ie.postScriptName+"').");if(typeof(j=X.existsFileInVFS(ie.postScriptName)===!1?X.loadFile(ie.postScriptName):X.getFileFromVFS(ie.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ie.postScriptName+"').");(function(me,De){De=/^\x00\x01\x00\x00/.test(De)?h(De):h(si(De)),me.metadata=C.API.TTFFont.open(De),me.metadata.Unicode=me.metadata.Unicode||{encoding:{},kerning:{},widths:[]},me.metadata.glyIdsUsed=[0]})(ie,j)}}])}(gi),function(C){function h(){return(Xr.canvg?Promise.resolve(Xr.canvg):E.e(3754).then(E.bind(E,63754))).catch(function(_){return Promise.reject(new Error("Could not load canvg: "+_))}).then(function(_){return _.default?_.default:_})}gi.API.addSvgAsImage=function(_,j,ie,X,me,De,ke,et){if(isNaN(j)||isNaN(ie))throw zn.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(X)||isNaN(me))throw zn.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var dt=document.createElement("canvas");dt.width=X,dt.height=me;var ft=dt.getContext("2d");ft.fillStyle="#fff",ft.fillRect(0,0,dt.width,dt.height);var Ct={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ve=this;return h().then(function(nr){return nr.fromString(ft,_,Ct)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(nr){return nr.render(Ct)}).then(function(){Ve.addImage(dt.toDataURL("image/jpeg",1),j,ie,X,me,ke,et)})}}(),gi.API.putTotalPages=function(C){var h,_=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(h=new RegExp(C,"g"),_=this.internal.getNumberOfPages()):(h=new RegExp(this.pdfEscape16(C,this.internal.getFont()),"g"),_=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var j=1;j<=this.internal.getNumberOfPages();j++)for(var ie=0;ie<this.internal.pages[j].length;ie++)this.internal.pages[j][ie]=this.internal.pages[j][ie].replace(h,_);return this},gi.API.viewerPreferences=function(C,h){var _;C=C||{},h=h||!1;var j,ie,X,me={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},De=Object.keys(me),ke=[],et=0,dt=0,ft=0;function Ct(nr,Zt){var or,Lt=!1;for(or=0;or<nr.length;or+=1)nr[or]===Zt&&(Lt=!0);return Lt}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(me)),this.internal.viewerpreferences.isSubscribed=!1),_=this.internal.viewerpreferences.configuration,C==="reset"||h===!0){var Ve=De.length;for(ft=0;ft<Ve;ft+=1)_[De[ft]].value=_[De[ft]].defaultValue,_[De[ft]].explicitSet=!1}if((0,le.Z)(C)==="object"){for(ie in C)if(X=C[ie],Ct(De,ie)&&X!==void 0){if(_[ie].type==="boolean"&&typeof X=="boolean")_[ie].value=X;else if(_[ie].type==="name"&&Ct(_[ie].valueSet,X))_[ie].value=X;else if(_[ie].type==="integer"&&Number.isInteger(X))_[ie].value=X;else if(_[ie].type==="array"){for(et=0;et<X.length;et+=1)if(j=!0,X[et].length===1&&typeof X[et][0]=="number")ke.push(String(X[et]-1));else if(X[et].length>1){for(dt=0;dt<X[et].length;dt+=1)typeof X[et][dt]!="number"&&(j=!1);j===!0&&ke.push([X[et][0]-1,X[et][1]-1].join(" "))}_[ie].value="["+ke.join(" ")+"]"}else _[ie].value=_[ie].defaultValue;_[ie].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var nr,Zt=[];for(nr in _)_[nr].explicitSet===!0&&(_[nr].type==="name"?Zt.push("/"+nr+" /"+_[nr].value):Zt.push("/"+nr+" "+_[nr].value));Zt.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+Zt.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=_,this},function(C){var h=function(){var j='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',ie=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),X=unescape(encodeURIComponent(j)),me=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),De=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ke=unescape(encodeURIComponent("</x:xmpmeta>")),et=X.length+me.length+De.length+ie.length+ke.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+et+" >>"),this.internal.write("stream"),this.internal.write(ie+X+me+De+ke),this.internal.write("endstream"),this.internal.write("endobj")},_=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};C.addMetadata=function(j,ie){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:j,namespaceuri:ie||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",_),this.internal.events.subscribe("postPutResources",h)),this}}(gi.API),function(C){var h=C.API,_=h.pdfEscape16=function(X,me){for(var De,ke=me.metadata.Unicode.widths,et=["","0","00","000","0000"],dt=[""],ft=0,Ct=X.length;ft<Ct;++ft){if(De=me.metadata.characterToGlyph(X.charCodeAt(ft)),me.metadata.glyIdsUsed.push(De),me.metadata.toUnicode[De]=X.charCodeAt(ft),ke.indexOf(De)==-1&&(ke.push(De),ke.push([parseInt(me.metadata.widthOfGlyph(De),10)])),De=="0")return dt.join("");De=De.toString(16),dt.push(et[4-De.length],De)}return dt.join("")},j=function(X){var me,De,ke,et,dt,ft,Ct;for(dt=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,ke=[],ft=0,Ct=(De=Object.keys(X).sort(function(Ve,nr){return Ve-nr})).length;ft<Ct;ft++)me=De[ft],ke.length>=100&&(dt+=`
|
|
|
`+ke.length+` beginbfchar
|
|
|
`+ke.join(`
|
|
|
`)+`
|
|
|
endbfchar`,ke=[]),X[me]!==void 0&&X[me]!==null&&typeof X[me].toString=="function"&&(et=("0000"+X[me].toString(16)).slice(-4),me=("0000"+(+me).toString(16)).slice(-4),ke.push("<"+me+"><"+et+">"));return ke.length&&(dt+=`
|
|
|
`+ke.length+` beginbfchar
|
|
|
`+ke.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),dt+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};h.events.push(["putFont",function(X){(function(me){var De=me.font,ke=me.out,et=me.newObject,dt=me.putStream;if(De.metadata instanceof C.API.TTFFont&&De.encoding==="Identity-H"){for(var ft=De.metadata.Unicode.widths,Ct=De.metadata.subset.encode(De.metadata.glyIdsUsed,1),Ve="",nr=0;nr<Ct.length;nr++)Ve+=String.fromCharCode(Ct[nr]);var Zt=et();dt({data:Ve,addLength1:!0,objectId:Zt}),ke("endobj");var or=et();dt({data:j(De.metadata.toUnicode),addLength1:!0,objectId:or}),ke("endobj");var Lt=et();ke("<<"),ke("/Type /FontDescriptor"),ke("/FontName /"+us(De.fontName)),ke("/FontFile2 "+Zt+" 0 R"),ke("/FontBBox "+C.API.PDFObject.convert(De.metadata.bbox)),ke("/Flags "+De.metadata.flags),ke("/StemV "+De.metadata.stemV),ke("/ItalicAngle "+De.metadata.italicAngle),ke("/Ascent "+De.metadata.ascender),ke("/Descent "+De.metadata.decender),ke("/CapHeight "+De.metadata.capHeight),ke(">>"),ke("endobj");var ar=et();ke("<<"),ke("/Type /Font"),ke("/BaseFont /"+us(De.fontName)),ke("/FontDescriptor "+Lt+" 0 R"),ke("/W "+C.API.PDFObject.convert(ft)),ke("/CIDToGIDMap /Identity"),ke("/DW 1000"),ke("/Subtype /CIDFontType2"),ke("/CIDSystemInfo"),ke("<<"),ke("/Supplement 0"),ke("/Registry (Adobe)"),ke("/Ordering ("+De.encoding+")"),ke(">>"),ke(">>"),ke("endobj"),De.objectNumber=et(),ke("<<"),ke("/Type /Font"),ke("/Subtype /Type0"),ke("/ToUnicode "+or+" 0 R"),ke("/BaseFont /"+us(De.fontName)),ke("/Encoding /"+De.encoding),ke("/DescendantFonts ["+ar+" 0 R]"),ke(">>"),ke("endobj"),De.isAlreadyPutted=!0}})(X)}]),h.events.push(["putFont",function(X){(function(me){var De=me.font,ke=me.out,et=me.newObject,dt=me.putStream;if(De.metadata instanceof C.API.TTFFont&&De.encoding==="WinAnsiEncoding"){for(var ft=De.metadata.rawData,Ct="",Ve=0;Ve<ft.length;Ve++)Ct+=String.fromCharCode(ft[Ve]);var nr=et();dt({data:Ct,addLength1:!0,objectId:nr}),ke("endobj");var Zt=et();dt({data:j(De.metadata.toUnicode),addLength1:!0,objectId:Zt}),ke("endobj");var or=et();ke("<<"),ke("/Descent "+De.metadata.decender),ke("/CapHeight "+De.metadata.capHeight),ke("/StemV "+De.metadata.stemV),ke("/Type /FontDescriptor"),ke("/FontFile2 "+nr+" 0 R"),ke("/Flags 96"),ke("/FontBBox "+C.API.PDFObject.convert(De.metadata.bbox)),ke("/FontName /"+us(De.fontName)),ke("/ItalicAngle "+De.metadata.italicAngle),ke("/Ascent "+De.metadata.ascender),ke(">>"),ke("endobj"),De.objectNumber=et();for(var Lt=0;Lt<De.metadata.hmtx.widths.length;Lt++)De.metadata.hmtx.widths[Lt]=parseInt(De.metadata.hmtx.widths[Lt]*(1e3/De.metadata.head.unitsPerEm));ke("<</Subtype/TrueType/Type/Font/ToUnicode "+Zt+" 0 R/BaseFont/"+us(De.fontName)+"/FontDescriptor "+or+" 0 R/Encoding/"+De.encoding+" /FirstChar 29 /LastChar 255 /Widths "+C.API.PDFObject.convert(De.metadata.hmtx.widths)+">>"),ke("endobj"),De.isAlreadyPutted=!0}})(X)}]);var ie=function(X){var me,De=X.text||"",ke=X.x,et=X.y,dt=X.options||{},ft=X.mutex||{},Ct=ft.pdfEscape,Ve=ft.activeFontKey,nr=ft.fonts,Zt=Ve,or="",Lt=0,ar="",Ir=nr[Zt].encoding;if(nr[Zt].encoding!=="Identity-H")return{text:De,x:ke,y:et,options:dt,mutex:ft};for(ar=De,Zt=Ve,Array.isArray(De)&&(ar=De[0]),Lt=0;Lt<ar.length;Lt+=1)nr[Zt].metadata.hasOwnProperty("cmap")&&(me=nr[Zt].metadata.cmap.unicode.codeMap[ar[Lt].charCodeAt(0)]),me||ar[Lt].charCodeAt(0)<256&&nr[Zt].metadata.hasOwnProperty("Unicode")?or+=ar[Lt]:or+="";var Zr="";return parseInt(Zt.slice(1))<14||Ir==="WinAnsiEncoding"?Zr=Ct(or,Zt).split("").map(function(mn){return mn.charCodeAt(0).toString(16)}).join(""):Ir==="Identity-H"&&(Zr=_(or,nr[Zt])),ft.isHex=!0,{text:Zr,x:ke,y:et,options:dt,mutex:ft}};h.events.push(["postProcessText",function(X){var me=X.text||"",De=[],ke={text:me,x:X.x,y:X.y,options:X.options,mutex:X.mutex};if(Array.isArray(me)){var et=0;for(et=0;et<me.length;et+=1)Array.isArray(me[et])&&me[et].length===3?De.push([ie(Object.assign({},ke,{text:me[et][0]})).text,me[et][1],me[et][2]]):De.push(ie(Object.assign({},ke,{text:me[et]})).text);X.text=De}else X.text=ie(Object.assign({},ke,{text:me})).text}])}(gi),function(C){var h=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};C.existsFileInVFS=function(_){return h.call(this),this.internal.vFS[_]!==void 0},C.addFileToVFS=function(_,j){return h.call(this),this.internal.vFS[_]=j,this},C.getFileFromVFS=function(_){return h.call(this),this.internal.vFS[_]!==void 0?this.internal.vFS[_]:null}}(gi.API),function(C){C.__bidiEngine__=C.prototype.__bidiEngine__=function(j){var ie,X,me,De,ke,et,dt,ft=h,Ct=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],Ve=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],nr={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Zt={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},or=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],Lt=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),ar=!1,Ir=0;this.__bidiEngine__={};var Zr=function(Nt){var Wt=Nt.charCodeAt(),Cr=Wt>>8,ge=Zt[Cr];return ge!==void 0?ft[256*ge+(255&Wt)]:Cr===252||Cr===253?"AL":Lt.test(Cr)?"L":Cr===8?"R":"N"},mn=function(Nt){for(var Wt,Cr=0;Cr<Nt.length;Cr++){if((Wt=Zr(Nt.charAt(Cr)))==="L")return!1;if(Wt==="R")return!0}return!1},Gn=function(Nt,Wt,Cr,ge){var Pe,Ye,st,ot,gt=Wt[ge];switch(gt){case"L":case"R":ar=!1;break;case"N":case"AN":break;case"EN":ar&&(gt="AN");break;case"AL":ar=!0,gt="R";break;case"WS":gt="N";break;case"CS":ge<1||ge+1>=Wt.length||(Pe=Cr[ge-1])!=="EN"&&Pe!=="AN"||(Ye=Wt[ge+1])!=="EN"&&Ye!=="AN"?gt="N":ar&&(Ye="AN"),gt=Ye===Pe?Ye:"N";break;case"ES":gt=(Pe=ge>0?Cr[ge-1]:"B")==="EN"&&ge+1<Wt.length&&Wt[ge+1]==="EN"?"EN":"N";break;case"ET":if(ge>0&&Cr[ge-1]==="EN"){gt="EN";break}if(ar){gt="N";break}for(st=ge+1,ot=Wt.length;st<ot&&Wt[st]==="ET";)st++;gt=st<ot&&Wt[st]==="EN"?"EN":"N";break;case"NSM":if(me&&!De){for(ot=Wt.length,st=ge+1;st<ot&&Wt[st]==="NSM";)st++;if(st<ot){var Ft=Nt[ge],er=Ft>=1425&&Ft<=2303||Ft===64286;if(Pe=Wt[st],er&&(Pe==="R"||Pe==="AL")){gt="R";break}}}gt=ge<1||(Pe=Wt[ge-1])==="B"?"N":Cr[ge-1];break;case"B":ar=!1,ie=!0,gt=Ir;break;case"S":X=!0,gt="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":ar=!1;break;case"BN":gt="N"}return gt},Jr=function(Nt,Wt,Cr){var ge=Nt.split("");return Cr&&br(ge,Cr,{hiLevel:Ir}),ge.reverse(),Wt&&Wt.reverse(),ge.join("")},br=function(Nt,Wt,Cr){var ge,Pe,Ye,st,ot,gt=-1,Ft=Nt.length,er=0,je=[],at=Ir?Ve:Ct,Ie=[];for(ar=!1,ie=!1,X=!1,Pe=0;Pe<Ft;Pe++)Ie[Pe]=Zr(Nt[Pe]);for(Ye=0;Ye<Ft;Ye++){if(ot=er,je[Ye]=Gn(Nt,Ie,je,Ye),ge=240&(er=at[ot][nr[je[Ye]]]),er&=15,Wt[Ye]=st=at[er][5],ge>0)if(ge===16){for(Pe=gt;Pe<Ye;Pe++)Wt[Pe]=1;gt=-1}else gt=-1;if(at[er][6])gt===-1&&(gt=Ye);else if(gt>-1){for(Pe=gt;Pe<Ye;Pe++)Wt[Pe]=st;gt=-1}Ie[Ye]==="B"&&(Wt[Ye]=0),Cr.hiLevel|=st}X&&function(bt,Kt,Jt){for(var rr=0;rr<Jt;rr++)if(bt[rr]==="S"){Kt[rr]=Ir;for(var dr=rr-1;dr>=0&&bt[dr]==="WS";dr--)Kt[dr]=Ir}}(Ie,Wt,Ft)},en=function(Nt,Wt,Cr,ge,Pe){if(!(Pe.hiLevel<Nt)){if(Nt===1&&Ir===1&&!ie)return Wt.reverse(),void(Cr&&Cr.reverse());for(var Ye,st,ot,gt,Ft=Wt.length,er=0;er<Ft;){if(ge[er]>=Nt){for(ot=er+1;ot<Ft&&ge[ot]>=Nt;)ot++;for(gt=er,st=ot-1;gt<st;gt++,st--)Ye=Wt[gt],Wt[gt]=Wt[st],Wt[st]=Ye,Cr&&(Ye=Cr[gt],Cr[gt]=Cr[st],Cr[st]=Ye);er=ot}er++}}},In=function(Nt,Wt,Cr){var ge=Nt.split(""),Pe={hiLevel:Ir};return Cr||(Cr=[]),br(ge,Cr,Pe),function(Ye,st,ot){if(ot.hiLevel!==0&&dt)for(var gt,Ft=0;Ft<Ye.length;Ft++)st[Ft]===1&&(gt=or.indexOf(Ye[Ft]))>=0&&(Ye[Ft]=or[gt+1])}(ge,Cr,Pe),en(2,ge,Wt,Cr,Pe),en(1,ge,Wt,Cr,Pe),ge.join("")};return this.__bidiEngine__.doBidiReorder=function(Nt,Wt,Cr){if(function(Pe,Ye){if(Ye)for(var st=0;st<Pe.length;st++)Ye[st]=st;De===void 0&&(De=mn(Pe)),et===void 0&&(et=mn(Pe))}(Nt,Wt),me||!ke||et)if(me&&ke&&De^et)Ir=De?1:0,Nt=Jr(Nt,Wt,Cr);else if(!me&&ke&&et)Ir=De?1:0,Nt=In(Nt,Wt,Cr),Nt=Jr(Nt,Wt);else if(!me||De||ke||et){if(me&&!ke&&De^et)Nt=Jr(Nt,Wt),De?(Ir=0,Nt=In(Nt,Wt,Cr)):(Ir=1,Nt=In(Nt,Wt,Cr),Nt=Jr(Nt,Wt));else if(me&&De&&!ke&&et)Ir=1,Nt=In(Nt,Wt,Cr),Nt=Jr(Nt,Wt);else if(!me&&!ke&&De^et){var ge=dt;De?(Ir=1,Nt=In(Nt,Wt,Cr),Ir=0,dt=!1,Nt=In(Nt,Wt,Cr),dt=ge):(Ir=0,Nt=In(Nt,Wt,Cr),Nt=Jr(Nt,Wt),Ir=1,dt=!1,Nt=In(Nt,Wt,Cr),dt=ge,Nt=Jr(Nt,Wt))}}else Ir=0,Nt=In(Nt,Wt,Cr);else Ir=De?1:0,Nt=In(Nt,Wt,Cr);return Nt},this.__bidiEngine__.setOptions=function(Nt){Nt&&(me=Nt.isInputVisual,ke=Nt.isOutputVisual,De=Nt.isInputRtl,et=Nt.isOutputRtl,dt=Nt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(j),this.__bidiEngine__};var h=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],_=new C.__bidiEngine__({isInputVisual:!0});C.API.events.push(["postProcessText",function(j){var ie=j.text;j.x,j.y;var X=j.options||{};j.mutex,X.lang;var me=[];if(X.isInputVisual=typeof X.isInputVisual!="boolean"||X.isInputVisual,_.setOptions(X),Object.prototype.toString.call(ie)==="[object Array]"){var De=0;for(me=[],De=0;De<ie.length;De+=1)Object.prototype.toString.call(ie[De])==="[object Array]"?me.push([_.doBidiReorder(ie[De][0]),ie[De][1],ie[De][2]]):me.push([_.doBidiReorder(ie[De])]);j.text=me}else j.text=_.doBidiReorder(ie);_.setOptions({isInputVisual:!0})}])}(gi),gi.API.TTFFont=function(){function C(h){var _;if(this.rawData=h,_=this.contents=new _s(h),this.contents.pos=4,_.readString(4)==="ttcf")throw new Error("TTCF not supported.");_.pos=0,this.parse(),this.subset=new sc(this),this.registerTTF()}return C.open=function(h){return new C(h)},C.prototype.parse=function(){return this.directory=new zs(this.contents),this.head=new ma(this),this.name=new tl(this),this.cmap=new _o(this),this.toUnicode={},this.hhea=new el(this),this.maxp=new xu(this),this.hmtx=new zl(this),this.post=new Ol(this),this.os2=new Rl(this),this.loca=new Eu(this),this.glyf=new Pl(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},C.prototype.registerTTF=function(){var h,_,j,ie,X;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var me,De,ke,et;for(et=[],me=0,De=(ke=this.bbox).length;me<De;me++)h=ke[me],et.push(Math.round(h*this.scaleFactor));return et}.call(this),this.stemV=0,this.post.exists?(j=255&(ie=this.post.italic_angle),32768&(_=ie>>16)&&(_=-(1+(65535^_))),this.italicAngle=+(_+"."+j)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(X=this.familyClass)===1||X===2||X===3||X===4||X===5||X===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},C.prototype.characterToGlyph=function(h){var _;return((_=this.cmap.unicode)!=null?_.codeMap[h]:void 0)||0},C.prototype.widthOfGlyph=function(h){var _;return _=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(h).advance*_},C.prototype.widthOfString=function(h,_,j){var ie,X,me,De;for(me=0,X=0,De=(h=""+h).length;0<=De?X<De:X>De;X=0<=De?++X:--X)ie=h.charCodeAt(X),me+=this.widthOfGlyph(this.characterToGlyph(ie))+j*(1e3/_)||0;return me*(_/1e3)},C.prototype.lineHeight=function(h,_){var j;return _==null&&(_=!1),j=_?this.lineGap:0,(this.ascender+j-this.decender)/1e3*h},C}();var eo,_s=function(){function C(h){this.data=h!=null?h:[],this.pos=0,this.length=this.data.length}return C.prototype.readByte=function(){return this.data[this.pos++]},C.prototype.writeByte=function(h){return this.data[this.pos++]=h},C.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},C.prototype.writeUInt32=function(h){return this.writeByte(h>>>24&255),this.writeByte(h>>16&255),this.writeByte(h>>8&255),this.writeByte(255&h)},C.prototype.readInt32=function(){var h;return(h=this.readUInt32())>=2147483648?h-4294967296:h},C.prototype.writeInt32=function(h){return h<0&&(h+=4294967296),this.writeUInt32(h)},C.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},C.prototype.writeUInt16=function(h){return this.writeByte(h>>8&255),this.writeByte(255&h)},C.prototype.readInt16=function(){var h;return(h=this.readUInt16())>=32768?h-65536:h},C.prototype.writeInt16=function(h){return h<0&&(h+=65536),this.writeUInt16(h)},C.prototype.readString=function(h){var _,j;for(j=[],_=0;0<=h?_<h:_>h;_=0<=h?++_:--_)j[_]=String.fromCharCode(this.readByte());return j.join("")},C.prototype.writeString=function(h){var _,j,ie;for(ie=[],_=0,j=h.length;0<=j?_<j:_>j;_=0<=j?++_:--_)ie.push(this.writeByte(h.charCodeAt(_)));return ie},C.prototype.readShort=function(){return this.readInt16()},C.prototype.writeShort=function(h){return this.writeInt16(h)},C.prototype.readLongLong=function(){var h,_,j,ie,X,me,De,ke;return h=this.readByte(),_=this.readByte(),j=this.readByte(),ie=this.readByte(),X=this.readByte(),me=this.readByte(),De=this.readByte(),ke=this.readByte(),128&h?-1*(72057594037927940*(255^h)+281474976710656*(255^_)+1099511627776*(255^j)+4294967296*(255^ie)+16777216*(255^X)+65536*(255^me)+256*(255^De)+(255^ke)+1):72057594037927940*h+281474976710656*_+1099511627776*j+4294967296*ie+16777216*X+65536*me+256*De+ke},C.prototype.writeLongLong=function(h){var _,j;return _=Math.floor(h/4294967296),j=4294967295&h,this.writeByte(_>>24&255),this.writeByte(_>>16&255),this.writeByte(_>>8&255),this.writeByte(255&_),this.writeByte(j>>24&255),this.writeByte(j>>16&255),this.writeByte(j>>8&255),this.writeByte(255&j)},C.prototype.readInt=function(){return this.readInt32()},C.prototype.writeInt=function(h){return this.writeInt32(h)},C.prototype.read=function(h){var _,j;for(_=[],j=0;0<=h?j<h:j>h;j=0<=h?++j:--j)_.push(this.readByte());return _},C.prototype.write=function(h){var _,j,ie,X;for(X=[],j=0,ie=h.length;j<ie;j++)_=h[j],X.push(this.writeByte(_));return X},C}(),zs=function(){var C;function h(_){var j,ie,X;for(this.scalarType=_.readInt(),this.tableCount=_.readShort(),this.searchRange=_.readShort(),this.entrySelector=_.readShort(),this.rangeShift=_.readShort(),this.tables={},ie=0,X=this.tableCount;0<=X?ie<X:ie>X;ie=0<=X?++ie:--ie)j={tag:_.readString(4),checksum:_.readInt(),offset:_.readInt(),length:_.readInt()},this.tables[j.tag]=j}return h.prototype.encode=function(_){var j,ie,X,me,De,ke,et,dt,ft,Ct,Ve,nr,Zt;for(Zt in Ve=Object.keys(_).length,ke=Math.log(2),ft=16*Math.floor(Math.log(Ve)/ke),me=Math.floor(ft/ke),dt=16*Ve-ft,(ie=new _s).writeInt(this.scalarType),ie.writeShort(Ve),ie.writeShort(ft),ie.writeShort(me),ie.writeShort(dt),X=16*Ve,et=ie.pos+X,De=null,nr=[],_)for(Ct=_[Zt],ie.writeString(Zt),ie.writeInt(C(Ct)),ie.writeInt(et),ie.writeInt(Ct.length),nr=nr.concat(Ct),Zt==="head"&&(De=et),et+=Ct.length;et%4;)nr.push(0),et++;return ie.write(nr),j=2981146554-C(ie.data),ie.pos=De+8,ie.writeUInt32(j),ie.data},C=function(_){var j,ie,X,me;for(_=au.call(_);_.length%4;)_.push(0);for(X=new _s(_),ie=0,j=0,me=_.length;j<me;j=j+=4)ie+=X.readUInt32();return 4294967295&ie},h}(),Is={}.hasOwnProperty,sa=function(C,h){for(var _ in h)Is.call(h,_)&&(C[_]=h[_]);function j(){this.constructor=C}return j.prototype=h.prototype,C.prototype=new j,C.__super__=h.prototype,C};eo=function(){function C(h){var _;this.file=h,_=this.file.directory.tables[this.tag],this.exists=!!_,_&&(this.offset=_.offset,this.length=_.length,this.parse(this.file.contents))}return C.prototype.parse=function(){},C.prototype.encode=function(){},C.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},C}();var ma=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="head",h.prototype.parse=function(_){return _.pos=this.offset,this.version=_.readInt(),this.revision=_.readInt(),this.checkSumAdjustment=_.readInt(),this.magicNumber=_.readInt(),this.flags=_.readShort(),this.unitsPerEm=_.readShort(),this.created=_.readLongLong(),this.modified=_.readLongLong(),this.xMin=_.readShort(),this.yMin=_.readShort(),this.xMax=_.readShort(),this.yMax=_.readShort(),this.macStyle=_.readShort(),this.lowestRecPPEM=_.readShort(),this.fontDirectionHint=_.readShort(),this.indexToLocFormat=_.readShort(),this.glyphDataFormat=_.readShort()},h.prototype.encode=function(_){var j;return(j=new _s).writeInt(this.version),j.writeInt(this.revision),j.writeInt(this.checkSumAdjustment),j.writeInt(this.magicNumber),j.writeShort(this.flags),j.writeShort(this.unitsPerEm),j.writeLongLong(this.created),j.writeLongLong(this.modified),j.writeShort(this.xMin),j.writeShort(this.yMin),j.writeShort(this.xMax),j.writeShort(this.yMax),j.writeShort(this.macStyle),j.writeShort(this.lowestRecPPEM),j.writeShort(this.fontDirectionHint),j.writeShort(_),j.writeShort(this.glyphDataFormat),j.data},h}(),Ln=function(){function C(h,_){var j,ie,X,me,De,ke,et,dt,ft,Ct,Ve,nr,Zt,or,Lt,ar,Ir;switch(this.platformID=h.readUInt16(),this.encodingID=h.readShort(),this.offset=_+h.readInt(),ft=h.pos,h.pos=this.offset,this.format=h.readUInt16(),this.length=h.readUInt16(),this.language=h.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(ke=0;ke<256;++ke)this.codeMap[ke]=h.readByte();break;case 4:for(Ve=h.readUInt16(),Ct=Ve/2,h.pos+=6,X=function(){var Zr,mn;for(mn=[],ke=Zr=0;0<=Ct?Zr<Ct:Zr>Ct;ke=0<=Ct?++Zr:--Zr)mn.push(h.readUInt16());return mn}(),h.pos+=2,Zt=function(){var Zr,mn;for(mn=[],ke=Zr=0;0<=Ct?Zr<Ct:Zr>Ct;ke=0<=Ct?++Zr:--Zr)mn.push(h.readUInt16());return mn}(),et=function(){var Zr,mn;for(mn=[],ke=Zr=0;0<=Ct?Zr<Ct:Zr>Ct;ke=0<=Ct?++Zr:--Zr)mn.push(h.readUInt16());return mn}(),dt=function(){var Zr,mn;for(mn=[],ke=Zr=0;0<=Ct?Zr<Ct:Zr>Ct;ke=0<=Ct?++Zr:--Zr)mn.push(h.readUInt16());return mn}(),ie=(this.length-h.pos+this.offset)/2,De=function(){var Zr,mn;for(mn=[],ke=Zr=0;0<=ie?Zr<ie:Zr>ie;ke=0<=ie?++Zr:--Zr)mn.push(h.readUInt16());return mn}(),ke=Lt=0,Ir=X.length;Lt<Ir;ke=++Lt)for(or=X[ke],j=ar=nr=Zt[ke];nr<=or?ar<=or:ar>=or;j=nr<=or?++ar:--ar)dt[ke]===0?me=j+et[ke]:(me=De[dt[ke]/2+(j-nr)-(Ct-ke)]||0)!==0&&(me+=et[ke]),this.codeMap[j]=65535&me}h.pos=ft}return C.encode=function(h,_){var j,ie,X,me,De,ke,et,dt,ft,Ct,Ve,nr,Zt,or,Lt,ar,Ir,Zr,mn,Gn,Jr,br,en,In,Nt,Wt,Cr,ge,Pe,Ye,st,ot,gt,Ft,er,je,at,Ie,bt,Kt,Jt,rr,dr,Lr,Or,Mr;switch(ge=new _s,me=Object.keys(h).sort(function(Yr,Qn){return Yr-Qn}),_){case"macroman":for(Zt=0,or=function(){var Yr=[];for(nr=0;nr<256;++nr)Yr.push(0);return Yr}(),ar={0:0},X={},Pe=0,gt=me.length;Pe<gt;Pe++)ar[dr=h[ie=me[Pe]]]==null&&(ar[dr]=++Zt),X[ie]={old:h[ie],new:ar[h[ie]]},or[ie]=ar[h[ie]];return ge.writeUInt16(1),ge.writeUInt16(0),ge.writeUInt32(12),ge.writeUInt16(0),ge.writeUInt16(262),ge.writeUInt16(0),ge.write(or),{charMap:X,subtable:ge.data,maxGlyphID:Zt+1};case"unicode":for(Wt=[],ft=[],Ir=0,ar={},j={},Lt=et=null,Ye=0,Ft=me.length;Ye<Ft;Ye++)ar[mn=h[ie=me[Ye]]]==null&&(ar[mn]=++Ir),j[ie]={old:mn,new:ar[mn]},De=ar[mn]-ie,Lt!=null&&De===et||(Lt&&ft.push(Lt),Wt.push(ie),et=De),Lt=ie;for(Lt&&ft.push(Lt),ft.push(65535),Wt.push(65535),In=2*(en=Wt.length),br=2*Math.pow(Math.log(en)/Math.LN2,2),Ct=Math.log(br/2)/Math.LN2,Jr=2*en-br,ke=[],Gn=[],Ve=[],nr=st=0,er=Wt.length;st<er;nr=++st){if(Nt=Wt[nr],dt=ft[nr],Nt===65535){ke.push(0),Gn.push(0);break}if(Nt-(Cr=j[Nt].new)>=32768)for(ke.push(0),Gn.push(2*(Ve.length+en-nr)),ie=ot=Nt;Nt<=dt?ot<=dt:ot>=dt;ie=Nt<=dt?++ot:--ot)Ve.push(j[ie].new);else ke.push(Cr-Nt),Gn.push(0)}for(ge.writeUInt16(3),ge.writeUInt16(1),ge.writeUInt32(12),ge.writeUInt16(4),ge.writeUInt16(16+8*en+2*Ve.length),ge.writeUInt16(0),ge.writeUInt16(In),ge.writeUInt16(br),ge.writeUInt16(Ct),ge.writeUInt16(Jr),Jt=0,je=ft.length;Jt<je;Jt++)ie=ft[Jt],ge.writeUInt16(ie);for(ge.writeUInt16(0),rr=0,at=Wt.length;rr<at;rr++)ie=Wt[rr],ge.writeUInt16(ie);for(Lr=0,Ie=ke.length;Lr<Ie;Lr++)De=ke[Lr],ge.writeUInt16(De);for(Or=0,bt=Gn.length;Or<bt;Or++)Zr=Gn[Or],ge.writeUInt16(Zr);for(Mr=0,Kt=Ve.length;Mr<Kt;Mr++)Zt=Ve[Mr],ge.writeUInt16(Zt);return{charMap:j,subtable:ge.data,maxGlyphID:Ir+1}}},C}(),_o=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="cmap",h.prototype.parse=function(_){var j,ie,X;for(_.pos=this.offset,this.version=_.readUInt16(),X=_.readUInt16(),this.tables=[],this.unicode=null,ie=0;0<=X?ie<X:ie>X;ie=0<=X?++ie:--ie)j=new Ln(_,this.offset),this.tables.push(j),j.isUnicode&&this.unicode==null&&(this.unicode=j);return!0},h.encode=function(_,j){var ie,X;return j==null&&(j="macroman"),ie=Ln.encode(_,j),(X=new _s).writeUInt16(0),X.writeUInt16(1),ie.table=X.data.concat(ie.subtable),ie},h}(),el=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="hhea",h.prototype.parse=function(_){return _.pos=this.offset,this.version=_.readInt(),this.ascender=_.readShort(),this.decender=_.readShort(),this.lineGap=_.readShort(),this.advanceWidthMax=_.readShort(),this.minLeftSideBearing=_.readShort(),this.minRightSideBearing=_.readShort(),this.xMaxExtent=_.readShort(),this.caretSlopeRise=_.readShort(),this.caretSlopeRun=_.readShort(),this.caretOffset=_.readShort(),_.pos+=8,this.metricDataFormat=_.readShort(),this.numberOfMetrics=_.readUInt16()},h}(),Rl=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="OS/2",h.prototype.parse=function(_){if(_.pos=this.offset,this.version=_.readUInt16(),this.averageCharWidth=_.readShort(),this.weightClass=_.readUInt16(),this.widthClass=_.readUInt16(),this.type=_.readShort(),this.ySubscriptXSize=_.readShort(),this.ySubscriptYSize=_.readShort(),this.ySubscriptXOffset=_.readShort(),this.ySubscriptYOffset=_.readShort(),this.ySuperscriptXSize=_.readShort(),this.ySuperscriptYSize=_.readShort(),this.ySuperscriptXOffset=_.readShort(),this.ySuperscriptYOffset=_.readShort(),this.yStrikeoutSize=_.readShort(),this.yStrikeoutPosition=_.readShort(),this.familyClass=_.readShort(),this.panose=function(){var j,ie;for(ie=[],j=0;j<10;++j)ie.push(_.readByte());return ie}(),this.charRange=function(){var j,ie;for(ie=[],j=0;j<4;++j)ie.push(_.readInt());return ie}(),this.vendorID=_.readString(4),this.selection=_.readShort(),this.firstCharIndex=_.readShort(),this.lastCharIndex=_.readShort(),this.version>0&&(this.ascent=_.readShort(),this.descent=_.readShort(),this.lineGap=_.readShort(),this.winAscent=_.readShort(),this.winDescent=_.readShort(),this.codePageRange=function(){var j,ie;for(ie=[],j=0;j<2;j=++j)ie.push(_.readInt());return ie}(),this.version>1))return this.xHeight=_.readShort(),this.capHeight=_.readShort(),this.defaultChar=_.readShort(),this.breakChar=_.readShort(),this.maxContext=_.readShort()},h}(),Ol=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="post",h.prototype.parse=function(_){var j,ie,X;switch(_.pos=this.offset,this.format=_.readInt(),this.italicAngle=_.readInt(),this.underlinePosition=_.readShort(),this.underlineThickness=_.readShort(),this.isFixedPitch=_.readInt(),this.minMemType42=_.readInt(),this.maxMemType42=_.readInt(),this.minMemType1=_.readInt(),this.maxMemType1=_.readInt(),this.format){case 65536:break;case 131072:var me;for(ie=_.readUInt16(),this.glyphNameIndex=[],me=0;0<=ie?me<ie:me>ie;me=0<=ie?++me:--me)this.glyphNameIndex.push(_.readUInt16());for(this.names=[],X=[];_.pos<this.offset+this.length;)j=_.readByte(),X.push(this.names.push(_.readString(j)));return X;case 151552:return ie=_.readUInt16(),this.offsets=_.read(ie);case 196608:break;case 262144:return this.map=function(){var De,ke,et;for(et=[],me=De=0,ke=this.file.maxp.numGlyphs;0<=ke?De<ke:De>ke;me=0<=ke?++De:--De)et.push(_.readUInt32());return et}.call(this)}},h}(),Zo=function(C,h){this.raw=C,this.length=C.length,this.platformID=h.platformID,this.encodingID=h.encodingID,this.languageID=h.languageID},tl=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="name",h.prototype.parse=function(_){var j,ie,X,me,De,ke,et,dt,ft,Ct,Ve;for(_.pos=this.offset,_.readShort(),j=_.readShort(),ke=_.readShort(),ie=[],me=0;0<=j?me<j:me>j;me=0<=j?++me:--me)ie.push({platformID:_.readShort(),encodingID:_.readShort(),languageID:_.readShort(),nameID:_.readShort(),length:_.readShort(),offset:this.offset+ke+_.readShort()});for(et={},me=ft=0,Ct=ie.length;ft<Ct;me=++ft)X=ie[me],_.pos=X.offset,dt=_.readString(X.length),De=new Zo(dt,X),et[Ve=X.nameID]==null&&(et[Ve]=[]),et[X.nameID].push(De);this.strings=et,this.copyright=et[0],this.fontFamily=et[1],this.fontSubfamily=et[2],this.uniqueSubfamily=et[3],this.fontName=et[4],this.version=et[5];try{this.postscriptName=et[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(nr){this.postscriptName=et[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=et[7],this.manufacturer=et[8],this.designer=et[9],this.description=et[10],this.vendorUrl=et[11],this.designerUrl=et[12],this.license=et[13],this.licenseUrl=et[14],this.preferredFamily=et[15],this.preferredSubfamily=et[17],this.compatibleFull=et[18],this.sampleText=et[19]},h}(),xu=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="maxp",h.prototype.parse=function(_){return _.pos=this.offset,this.version=_.readInt(),this.numGlyphs=_.readUInt16(),this.maxPoints=_.readUInt16(),this.maxContours=_.readUInt16(),this.maxCompositePoints=_.readUInt16(),this.maxComponentContours=_.readUInt16(),this.maxZones=_.readUInt16(),this.maxTwilightPoints=_.readUInt16(),this.maxStorage=_.readUInt16(),this.maxFunctionDefs=_.readUInt16(),this.maxInstructionDefs=_.readUInt16(),this.maxStackElements=_.readUInt16(),this.maxSizeOfInstructions=_.readUInt16(),this.maxComponentElements=_.readUInt16(),this.maxComponentDepth=_.readUInt16()},h}(),zl=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="hmtx",h.prototype.parse=function(_){var j,ie,X,me,De,ke,et;for(_.pos=this.offset,this.metrics=[],j=0,ke=this.file.hhea.numberOfMetrics;0<=ke?j<ke:j>ke;j=0<=ke?++j:--j)this.metrics.push({advance:_.readUInt16(),lsb:_.readInt16()});for(X=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var dt,ft;for(ft=[],j=dt=0;0<=X?dt<X:dt>X;j=0<=X?++dt:--dt)ft.push(_.readInt16());return ft}(),this.widths=function(){var dt,ft,Ct,Ve;for(Ve=[],dt=0,ft=(Ct=this.metrics).length;dt<ft;dt++)me=Ct[dt],Ve.push(me.advance);return Ve}.call(this),ie=this.widths[this.widths.length-1],et=[],j=De=0;0<=X?De<X:De>X;j=0<=X?++De:--De)et.push(this.widths.push(ie));return et},h.prototype.forGlyph=function(_){return _ in this.metrics?this.metrics[_]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[_-this.metrics.length]}},h}(),au=[].slice,Pl=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="glyf",h.prototype.parse=function(){return this.cache={}},h.prototype.glyphFor=function(_){var j,ie,X,me,De,ke,et,dt,ft,Ct;return _ in this.cache?this.cache[_]:(me=this.file.loca,j=this.file.contents,ie=me.indexOf(_),(X=me.lengthOf(_))===0?this.cache[_]=null:(j.pos=this.offset+ie,De=(ke=new _s(j.read(X))).readShort(),dt=ke.readShort(),Ct=ke.readShort(),et=ke.readShort(),ft=ke.readShort(),this.cache[_]=De===-1?new Mu(ke,dt,Ct,et,ft):new Vo(ke,De,dt,Ct,et,ft),this.cache[_]))},h.prototype.encode=function(_,j,ie){var X,me,De,ke,et;for(De=[],me=[],ke=0,et=j.length;ke<et;ke++)X=_[j[ke]],me.push(De.length),X&&(De=De.concat(X.encode(ie)));return me.push(De.length),{table:De,offsets:me}},h}(),Vo=function(){function C(h,_,j,ie,X,me){this.raw=h,this.numberOfContours=_,this.xMin=j,this.yMin=ie,this.xMax=X,this.yMax=me,this.compound=!1}return C.prototype.encode=function(){return this.raw.data},C}(),Mu=function(){function C(h,_,j,ie,X){var me,De;for(this.raw=h,this.xMin=_,this.yMin=j,this.xMax=ie,this.yMax=X,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],me=this.raw;De=me.readShort(),this.glyphOffsets.push(me.pos),this.glyphIDs.push(me.readUInt16()),32&De;)me.pos+=1&De?4:2,128&De?me.pos+=8:64&De?me.pos+=4:8&De&&(me.pos+=2)}return C.prototype.encode=function(){var h,_,j;for(_=new _s(au.call(this.raw.data)),h=0,j=this.glyphIDs.length;h<j;++h)_.pos=this.glyphOffsets[h];return _.data},C}(),Eu=function(C){function h(){return h.__super__.constructor.apply(this,arguments)}return sa(h,eo),h.prototype.tag="loca",h.prototype.parse=function(_){var j,ie;return _.pos=this.offset,j=this.file.head.indexToLocFormat,this.offsets=j===0?function(){var X,me;for(me=[],ie=0,X=this.length;ie<X;ie+=2)me.push(2*_.readUInt16());return me}.call(this):function(){var X,me;for(me=[],ie=0,X=this.length;ie<X;ie+=4)me.push(_.readUInt32());return me}.call(this)},h.prototype.indexOf=function(_){return this.offsets[_]},h.prototype.lengthOf=function(_){return this.offsets[_+1]-this.offsets[_]},h.prototype.encode=function(_,j){for(var ie=new Uint32Array(this.offsets.length),X=0,me=0,De=0;De<ie.length;++De)if(ie[De]=X,me<j.length&&j[me]==De){++me,ie[De]=X;var ke=this.offsets[De],et=this.offsets[De+1]-ke;et>0&&(X+=et)}for(var dt=new Array(4*ie.length),ft=0;ft<ie.length;++ft)dt[4*ft+3]=255&ie[ft],dt[4*ft+2]=(65280&ie[ft])>>8,dt[4*ft+1]=(16711680&ie[ft])>>16,dt[4*ft]=(4278190080&ie[ft])>>24;return dt},h}(),sc=function(){function C(h){this.font=h,this.subset={},this.unicodes={},this.next=33}return C.prototype.generateCmap=function(){var h,_,j,ie,X;for(_ in ie=this.font.cmap.tables[0].codeMap,h={},X=this.subset)j=X[_],h[_]=ie[j];return h},C.prototype.glyphsFor=function(h){var _,j,ie,X,me,De,ke;for(ie={},me=0,De=h.length;me<De;me++)ie[X=h[me]]=this.font.glyf.glyphFor(X);for(X in _=[],ie)(j=ie[X])!=null&&j.compound&&_.push.apply(_,j.glyphIDs);if(_.length>0)for(X in ke=this.glyphsFor(_))j=ke[X],ie[X]=j;return ie},C.prototype.encode=function(h,_){var j,ie,X,me,De,ke,et,dt,ft,Ct,Ve,nr,Zt,or,Lt;for(ie in j=_o.encode(this.generateCmap(),"unicode"),me=this.glyphsFor(h),Ve={0:0},Lt=j.charMap)Ve[(ke=Lt[ie]).old]=ke.new;for(nr in Ct=j.maxGlyphID,me)nr in Ve||(Ve[nr]=Ct++);return dt=function(ar){var Ir,Zr;for(Ir in Zr={},ar)Zr[ar[Ir]]=Ir;return Zr}(Ve),ft=Object.keys(dt).sort(function(ar,Ir){return ar-Ir}),Zt=function(){var ar,Ir,Zr;for(Zr=[],ar=0,Ir=ft.length;ar<Ir;ar++)De=ft[ar],Zr.push(dt[De]);return Zr}(),X=this.font.glyf.encode(me,Zt,Ve),et=this.font.loca.encode(X.offsets,Zt),or={cmap:this.font.cmap.raw(),glyf:X.table,loca:et,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(_)},this.font.os2.exists&&(or["OS/2"]=this.font.os2.raw()),this.font.directory.encode(or)},C}();gi.API.PDFObject=function(){var C;function h(){}return C=function(_,j){return(Array(j+1).join("0")+_).slice(-j)},h.convert=function(_){var j,ie,X,me;if(Array.isArray(_))return"["+function(){var De,ke,et;for(et=[],De=0,ke=_.length;De<ke;De++)j=_[De],et.push(h.convert(j));return et}().join(" ")+"]";if(typeof _=="string")return"/"+_;if(_!=null&&_.isString)return"("+_+")";if(_ instanceof Date)return"(D:"+C(_.getUTCFullYear(),4)+C(_.getUTCMonth(),2)+C(_.getUTCDate(),2)+C(_.getUTCHours(),2)+C(_.getUTCMinutes(),2)+C(_.getUTCSeconds(),2)+"Z)";if({}.toString.call(_)==="[object Object]"){for(ie in X=["<<"],_)me=_[ie],X.push("/"+ie+" "+h.convert(me));return X.push(">>"),X.join(`
|
|
|
`)}return""+_},h}()},86129:function(tn,Mt,E){var le=E(19208).lW,Fe=E(97671);(function(ae){tn.exports=ae()})(function(){return function ae(Re,K,g){function R(d,N){if(!K[d]){if(!Re[d]){var v=void 0;if(!N&&v)return require(d,!0);if(T)return T(d,!0);var m=new Error("Cannot find module '"+d+"'");throw m.code="MODULE_NOT_FOUND",m}var b=K[d]={exports:{}};Re[d][0].call(b.exports,function(I){var L=Re[d][1][I];return R(L||I)},b,b.exports,ae,Re,K,g)}return K[d].exports}for(var T=void 0,l=0;l<g.length;l++)R(g[l]);return R}({1:[function(ae,Re,K){"use strict";var g=ae("./utils"),R=ae("./support"),T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";K.encode=function(l){for(var d,N,v,m,b,I,L,z=[],P=0,$=l.length,J=$,te=g.getTypeOf(l)!=="string";P<l.length;)J=$-P,v=te?(d=l[P++],N=P<$?l[P++]:0,P<$?l[P++]:0):(d=l.charCodeAt(P++),N=P<$?l.charCodeAt(P++):0,P<$?l.charCodeAt(P++):0),m=d>>2,b=(3&d)<<4|N>>4,I=1<J?(15&N)<<2|v>>6:64,L=2<J?63&v:64,z.push(T.charAt(m)+T.charAt(b)+T.charAt(I)+T.charAt(L));return z.join("")},K.decode=function(l){var d,N,v,m,b,I,L=0,z=0,P="data:";if(l.substr(0,P.length)===P)throw new Error("Invalid base64 input, it looks like a data url.");var $,J=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===T.charAt(64)&&J--,l.charAt(l.length-2)===T.charAt(64)&&J--,J%1!=0)throw new Error("Invalid base64 input, bad content length.");for($=R.uint8array?new Uint8Array(0|J):new Array(0|J);L<l.length;)d=T.indexOf(l.charAt(L++))<<2|(m=T.indexOf(l.charAt(L++)))>>4,N=(15&m)<<4|(b=T.indexOf(l.charAt(L++)))>>2,v=(3&b)<<6|(I=T.indexOf(l.charAt(L++))),$[z++]=d,b!==64&&($[z++]=N),I!==64&&($[z++]=v);return $}},{"./support":30,"./utils":32}],2:[function(ae,Re,K){"use strict";var g=ae("./external"),R=ae("./stream/DataWorker"),T=ae("./stream/Crc32Probe"),l=ae("./stream/DataLengthProbe");function d(N,v,m,b,I){this.compressedSize=N,this.uncompressedSize=v,this.crc32=m,this.compression=b,this.compressedContent=I}d.prototype={getContentWorker:function(){var N=new R(g.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),v=this;return N.on("end",function(){if(this.streamInfo.data_length!==v.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),N},getCompressedWorker:function(){return new R(g.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(N,v,m){return N.pipe(new T).pipe(new l("uncompressedSize")).pipe(v.compressWorker(m)).pipe(new l("compressedSize")).withStreamInfo("compression",v)},Re.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(ae,Re,K){"use strict";var g=ae("./stream/GenericWorker");K.STORE={magic:"\0\0",compressWorker:function(){return new g("STORE compression")},uncompressWorker:function(){return new g("STORE decompression")}},K.DEFLATE=ae("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(ae,Re,K){"use strict";var g=ae("./utils"),R=function(){for(var T,l=[],d=0;d<256;d++){T=d;for(var N=0;N<8;N++)T=1&T?3988292384^T>>>1:T>>>1;l[d]=T}return l}();Re.exports=function(T,l){return T!==void 0&&T.length?g.getTypeOf(T)!=="string"?function(d,N,v,m){var b=R,I=m+v;d^=-1;for(var L=m;L<I;L++)d=d>>>8^b[255&(d^N[L])];return-1^d}(0|l,T,T.length,0):function(d,N,v,m){var b=R,I=m+v;d^=-1;for(var L=m;L<I;L++)d=d>>>8^b[255&(d^N.charCodeAt(L))];return-1^d}(0|l,T,T.length,0):0}},{"./utils":32}],5:[function(ae,Re,K){"use strict";K.base64=!1,K.binary=!1,K.dir=!1,K.createFolders=!0,K.date=null,K.compression=null,K.compressionOptions=null,K.comment=null,K.unixPermissions=null,K.dosPermissions=null},{}],6:[function(ae,Re,K){"use strict";var g=null;g=typeof Promise!="undefined"?Promise:ae("lie"),Re.exports={Promise:g}},{lie:37}],7:[function(ae,Re,K){"use strict";var g=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",R=ae("pako"),T=ae("./utils"),l=ae("./stream/GenericWorker"),d=g?"uint8array":"array";function N(v,m){l.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=m,this.meta={}}K.magic="\b\0",T.inherits(N,l),N.prototype.processChunk=function(v){this.meta=v.meta,this._pako===null&&this._createPako(),this._pako.push(T.transformTo(d,v.data),!1)},N.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},N.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},N.prototype._createPako=function(){this._pako=new R[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var v=this;this._pako.onData=function(m){v.push({data:m,meta:v.meta})}},K.compressWorker=function(v){return new N("Deflate",v)},K.uncompressWorker=function(){return new N("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(ae,Re,K){"use strict";function g(b,I){var L,z="";for(L=0;L<I;L++)z+=String.fromCharCode(255&b),b>>>=8;return z}function R(b,I,L,z,P,$){var J,te,H=b.file,G=b.compression,ce=$!==d.utf8encode,q=T.transformTo("string",$(H.name)),ye=T.transformTo("string",d.utf8encode(H.name)),_e=H.comment,Le=T.transformTo("string",$(_e)),se=T.transformTo("string",d.utf8encode(_e)),be=ye.length!==H.name.length,O=se.length!==_e.length,Ee="",ue="",he="",ve=H.dir,F=H.date,U={crc32:0,compressedSize:0,uncompressedSize:0};I&&!L||(U.crc32=b.crc32,U.compressedSize=b.compressedSize,U.uncompressedSize=b.uncompressedSize);var ee=0;I&&(ee|=8),ce||!be&&!O||(ee|=2048);var de=0,Xe=0;ve&&(de|=16),P==="UNIX"?(Xe=798,de|=function(nt,_t){var Xt=nt;return nt||(Xt=_t?16893:33204),(65535&Xt)<<16}(H.unixPermissions,ve)):(Xe=20,de|=function(nt){return 63&(nt||0)}(H.dosPermissions)),J=F.getUTCHours(),J<<=6,J|=F.getUTCMinutes(),J<<=5,J|=F.getUTCSeconds()/2,te=F.getUTCFullYear()-1980,te<<=4,te|=F.getUTCMonth()+1,te<<=5,te|=F.getUTCDate(),be&&(ue=g(1,1)+g(N(q),4)+ye,Ee+="up"+g(ue.length,2)+ue),O&&(he=g(1,1)+g(N(Le),4)+se,Ee+="uc"+g(he.length,2)+he);var tt="";return tt+=`
|
|
|
\0`,tt+=g(ee,2),tt+=G.magic,tt+=g(J,2),tt+=g(te,2),tt+=g(U.crc32,4),tt+=g(U.compressedSize,4),tt+=g(U.uncompressedSize,4),tt+=g(q.length,2),tt+=g(Ee.length,2),{fileRecord:v.LOCAL_FILE_HEADER+tt+q+Ee,dirRecord:v.CENTRAL_FILE_HEADER+g(Xe,2)+tt+g(Le.length,2)+"\0\0\0\0"+g(de,4)+g(z,4)+q+Ee+Le}}var T=ae("../utils"),l=ae("../stream/GenericWorker"),d=ae("../utf8"),N=ae("../crc32"),v=ae("../signature");function m(b,I,L,z){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=L,this.encodeFileName=z,this.streamFiles=b,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}T.inherits(m,l),m.prototype.push=function(b){var I=b.meta.percent||0,L=this.entriesCount,z=this._sources.length;this.accumulate?this.contentBuffer.push(b):(this.bytesWritten+=b.data.length,l.prototype.push.call(this,{data:b.data,meta:{currentFile:this.currentFile,percent:L?(I+100*(L-z-1))/L:100}}))},m.prototype.openedSource=function(b){this.currentSourceOffset=this.bytesWritten,this.currentFile=b.file.name;var I=this.streamFiles&&!b.file.dir;if(I){var L=R(b,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:L.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(b){this.accumulate=!1;var I=this.streamFiles&&!b.file.dir,L=R(b,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(L.dirRecord),I)this.push({data:function(z){return v.DATA_DESCRIPTOR+g(z.crc32,4)+g(z.compressedSize,4)+g(z.uncompressedSize,4)}(b),meta:{percent:100}});else for(this.push({data:L.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var b=this.bytesWritten,I=0;I<this.dirRecords.length;I++)this.push({data:this.dirRecords[I],meta:{percent:100}});var L=this.bytesWritten-b,z=function(P,$,J,te,H){var G=T.transformTo("string",H(te));return v.CENTRAL_DIRECTORY_END+"\0\0\0\0"+g(P,2)+g(P,2)+g($,4)+g(J,4)+g(G.length,2)+G}(this.dirRecords.length,L,b,this.zipComment,this.encodeFileName);this.push({data:z,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(b){this._sources.push(b);var I=this;return b.on("data",function(L){I.processChunk(L)}),b.on("end",function(){I.closedSource(I.previous.streamInfo),I._sources.length?I.prepareNextSource():I.end()}),b.on("error",function(L){I.error(L)}),this},m.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(b){var I=this._sources;if(!l.prototype.error.call(this,b))return!1;for(var L=0;L<I.length;L++)try{I[L].error(b)}catch(z){}return!0},m.prototype.lock=function(){l.prototype.lock.call(this);for(var b=this._sources,I=0;I<b.length;I++)b[I].lock()},Re.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(ae,Re,K){"use strict";var g=ae("../compressions"),R=ae("./ZipFileWorker");K.generateWorker=function(T,l,d){var N=new R(l.streamFiles,d,l.platform,l.encodeFileName),v=0;try{T.forEach(function(m,b){v++;var I=function($,J){var te=$||J,H=g[te];if(!H)throw new Error(te+" is not a valid compression method !");return H}(b.options.compression,l.compression),L=b.options.compressionOptions||l.compressionOptions||{},z=b.dir,P=b.date;b._compressWorker(I,L).withStreamInfo("file",{name:m,dir:z,date:P,comment:b.comment||"",unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions}).pipe(N)}),N.entriesCount=v}catch(m){N.error(m)}return N}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(ae,Re,K){"use strict";function g(){if(!(this instanceof g))return new g;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var R=new g;for(var T in this)typeof this[T]!="function"&&(R[T]=this[T]);return R}}(g.prototype=ae("./object")).loadAsync=ae("./load"),g.support=ae("./support"),g.defaults=ae("./defaults"),g.version="3.10.1",g.loadAsync=function(R,T){return new g().loadAsync(R,T)},g.external=ae("./external"),Re.exports=g},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(ae,Re,K){"use strict";var g=ae("./utils"),R=ae("./external"),T=ae("./utf8"),l=ae("./zipEntries"),d=ae("./stream/Crc32Probe"),N=ae("./nodejsUtils");function v(m){return new R.Promise(function(b,I){var L=m.decompressed.getContentWorker().pipe(new d);L.on("error",function(z){I(z)}).on("end",function(){L.streamInfo.crc32!==m.decompressed.crc32?I(new Error("Corrupted zip : CRC32 mismatch")):b()}).resume()})}Re.exports=function(m,b){var I=this;return b=g.extend(b||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:T.utf8decode}),N.isNode&&N.isStream(m)?R.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):g.prepareContent("the loaded zip file",m,!0,b.optimizedBinaryString,b.base64).then(function(L){var z=new l(b);return z.load(L),z}).then(function(L){var z=[R.Promise.resolve(L)],P=L.files;if(b.checkCRC32)for(var $=0;$<P.length;$++)z.push(v(P[$]));return R.Promise.all(z)}).then(function(L){for(var z=L.shift(),P=z.files,$=0;$<P.length;$++){var J=P[$],te=J.fileNameStr,H=g.resolve(J.fileNameStr);I.file(H,J.decompressed,{binary:!0,optimizedBinaryString:!0,date:J.date,dir:J.dir,comment:J.fileCommentStr.length?J.fileCommentStr:null,unixPermissions:J.unixPermissions,dosPermissions:J.dosPermissions,createFolders:b.createFolders}),J.dir||(I.file(H).unsafeOriginalName=te)}return z.zipComment.length&&(I.comment=z.zipComment),I})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(ae,Re,K){"use strict";var g=ae("../utils"),R=ae("../stream/GenericWorker");function T(l,d){R.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(d)}g.inherits(T,R),T.prototype._bindStream=function(l){var d=this;(this._stream=l).pause(),l.on("data",function(N){d.push({data:N,meta:{percent:0}})}).on("error",function(N){d.isPaused?this.generatedError=N:d.error(N)}).on("end",function(){d.isPaused?d._upstreamEnded=!0:d.end()})},T.prototype.pause=function(){return!!R.prototype.pause.call(this)&&(this._stream.pause(),!0)},T.prototype.resume=function(){return!!R.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Re.exports=T},{"../stream/GenericWorker":28,"../utils":32}],13:[function(ae,Re,K){"use strict";var g=ae("readable-stream").Readable;function R(T,l,d){g.call(this,l),this._helper=T;var N=this;T.on("data",function(v,m){N.push(v)||N._helper.pause(),d&&d(m)}).on("error",function(v){N.emit("error",v)}).on("end",function(){N.push(null)})}ae("../utils").inherits(R,g),R.prototype._read=function(){this._helper.resume()},Re.exports=R},{"../utils":32,"readable-stream":16}],14:[function(ae,Re,K){"use strict";Re.exports={isNode:typeof le!="undefined",newBufferFrom:function(g,R){if(le.from&&le.from!==Uint8Array.from)return le.from(g,R);if(typeof g=="number")throw new Error('The "data" argument must not be a number');return new le(g,R)},allocBuffer:function(g){if(le.alloc)return le.alloc(g);var R=new le(g);return R.fill(0),R},isBuffer:function(g){return le.isBuffer(g)},isStream:function(g){return g&&typeof g.on=="function"&&typeof g.pause=="function"&&typeof g.resume=="function"}}},{}],15:[function(ae,Re,K){"use strict";function g(H,G,ce){var q,ye=T.getTypeOf(G),_e=T.extend(ce||{},N);_e.date=_e.date||new Date,_e.compression!==null&&(_e.compression=_e.compression.toUpperCase()),typeof _e.unixPermissions=="string"&&(_e.unixPermissions=parseInt(_e.unixPermissions,8)),_e.unixPermissions&&16384&_e.unixPermissions&&(_e.dir=!0),_e.dosPermissions&&16&_e.dosPermissions&&(_e.dir=!0),_e.dir&&(H=P(H)),_e.createFolders&&(q=z(H))&&$.call(this,q,!0);var Le=ye==="string"&&_e.binary===!1&&_e.base64===!1;ce&&ce.binary!==void 0||(_e.binary=!Le),(G instanceof v&&G.uncompressedSize===0||_e.dir||!G||G.length===0)&&(_e.base64=!1,_e.binary=!0,G="",_e.compression="STORE",ye="string");var se=null;se=G instanceof v||G instanceof l?G:I.isNode&&I.isStream(G)?new L(H,G):T.prepareContent(H,G,_e.binary,_e.optimizedBinaryString,_e.base64);var be=new m(H,se,_e);this.files[H]=be}var R=ae("./utf8"),T=ae("./utils"),l=ae("./stream/GenericWorker"),d=ae("./stream/StreamHelper"),N=ae("./defaults"),v=ae("./compressedObject"),m=ae("./zipObject"),b=ae("./generate"),I=ae("./nodejsUtils"),L=ae("./nodejs/NodejsStreamInputAdapter"),z=function(H){H.slice(-1)==="/"&&(H=H.substring(0,H.length-1));var G=H.lastIndexOf("/");return 0<G?H.substring(0,G):""},P=function(H){return H.slice(-1)!=="/"&&(H+="/"),H},$=function(H,G){return G=G!==void 0?G:N.createFolders,H=P(H),this.files[H]||g.call(this,H,null,{dir:!0,createFolders:G}),this.files[H]};function J(H){return Object.prototype.toString.call(H)==="[object RegExp]"}var te={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(H){var G,ce,q;for(G in this.files)q=this.files[G],(ce=G.slice(this.root.length,G.length))&&G.slice(0,this.root.length)===this.root&&H(ce,q)},filter:function(H){var G=[];return this.forEach(function(ce,q){H(ce,q)&&G.push(q)}),G},file:function(H,G,ce){if(arguments.length!==1)return H=this.root+H,g.call(this,H,G,ce),this;if(J(H)){var q=H;return this.filter(function(_e,Le){return!Le.dir&&q.test(_e)})}var ye=this.files[this.root+H];return ye&&!ye.dir?ye:null},folder:function(H){if(!H)return this;if(J(H))return this.filter(function(ye,_e){return _e.dir&&H.test(ye)});var G=this.root+H,ce=$.call(this,G),q=this.clone();return q.root=ce.name,q},remove:function(H){H=this.root+H;var G=this.files[H];if(G||(H.slice(-1)!=="/"&&(H+="/"),G=this.files[H]),G&&!G.dir)delete this.files[H];else for(var ce=this.filter(function(ye,_e){return _e.name.slice(0,H.length)===H}),q=0;q<ce.length;q++)delete this.files[ce[q].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(H){var G,ce={};try{if((ce=T.extend(H||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:R.utf8encode})).type=ce.type.toLowerCase(),ce.compression=ce.compression.toUpperCase(),ce.type==="binarystring"&&(ce.type="string"),!ce.type)throw new Error("No output type specified.");T.checkSupport(ce.type),ce.platform!=="darwin"&&ce.platform!=="freebsd"&&ce.platform!=="linux"&&ce.platform!=="sunos"||(ce.platform="UNIX"),ce.platform==="win32"&&(ce.platform="DOS");var q=ce.comment||this.comment||"";G=b.generateWorker(this,ce,q)}catch(ye){(G=new l("error")).error(ye)}return new d(G,ce.type||"string",ce.mimeType)},generateAsync:function(H,G){return this.generateInternalStream(H).accumulate(G)},generateNodeStream:function(H,G){return(H=H||{}).type||(H.type="nodebuffer"),this.generateInternalStream(H).toNodejsStream(G)}};Re.exports=te},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(ae,Re,K){"use strict";Re.exports=ae("stream")},{stream:void 0}],17:[function(ae,Re,K){"use strict";var g=ae("./DataReader");function R(T){g.call(this,T);for(var l=0;l<this.data.length;l++)T[l]=255&T[l]}ae("../utils").inherits(R,g),R.prototype.byteAt=function(T){return this.data[this.zero+T]},R.prototype.lastIndexOfSignature=function(T){for(var l=T.charCodeAt(0),d=T.charCodeAt(1),N=T.charCodeAt(2),v=T.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===l&&this.data[m+1]===d&&this.data[m+2]===N&&this.data[m+3]===v)return m-this.zero;return-1},R.prototype.readAndCheckSignature=function(T){var l=T.charCodeAt(0),d=T.charCodeAt(1),N=T.charCodeAt(2),v=T.charCodeAt(3),m=this.readData(4);return l===m[0]&&d===m[1]&&N===m[2]&&v===m[3]},R.prototype.readData=function(T){if(this.checkOffset(T),T===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+T);return this.index+=T,l},Re.exports=R},{"../utils":32,"./DataReader":18}],18:[function(ae,Re,K){"use strict";var g=ae("../utils");function R(T){this.data=T,this.length=T.length,this.index=0,this.zero=0}R.prototype={checkOffset:function(T){this.checkIndex(this.index+T)},checkIndex:function(T){if(this.length<this.zero+T||T<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+T+"). Corrupted zip ?")},setIndex:function(T){this.checkIndex(T),this.index=T},skip:function(T){this.setIndex(this.index+T)},byteAt:function(){},readInt:function(T){var l,d=0;for(this.checkOffset(T),l=this.index+T-1;l>=this.index;l--)d=(d<<8)+this.byteAt(l);return this.index+=T,d},readString:function(T){return g.transformTo("string",this.readData(T))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var T=this.readInt(4);return new Date(Date.UTC(1980+(T>>25&127),(T>>21&15)-1,T>>16&31,T>>11&31,T>>5&63,(31&T)<<1))}},Re.exports=R},{"../utils":32}],19:[function(ae,Re,K){"use strict";var g=ae("./Uint8ArrayReader");function R(T){g.call(this,T)}ae("../utils").inherits(R,g),R.prototype.readData=function(T){this.checkOffset(T);var l=this.data.slice(this.zero+this.index,this.zero+this.index+T);return this.index+=T,l},Re.exports=R},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(ae,Re,K){"use strict";var g=ae("./DataReader");function R(T){g.call(this,T)}ae("../utils").inherits(R,g),R.prototype.byteAt=function(T){return this.data.charCodeAt(this.zero+T)},R.prototype.lastIndexOfSignature=function(T){return this.data.lastIndexOf(T)-this.zero},R.prototype.readAndCheckSignature=function(T){return T===this.readData(4)},R.prototype.readData=function(T){this.checkOffset(T);var l=this.data.slice(this.zero+this.index,this.zero+this.index+T);return this.index+=T,l},Re.exports=R},{"../utils":32,"./DataReader":18}],21:[function(ae,Re,K){"use strict";var g=ae("./ArrayReader");function R(T){g.call(this,T)}ae("../utils").inherits(R,g),R.prototype.readData=function(T){if(this.checkOffset(T),T===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+T);return this.index+=T,l},Re.exports=R},{"../utils":32,"./ArrayReader":17}],22:[function(ae,Re,K){"use strict";var g=ae("../utils"),R=ae("../support"),T=ae("./ArrayReader"),l=ae("./StringReader"),d=ae("./NodeBufferReader"),N=ae("./Uint8ArrayReader");Re.exports=function(v){var m=g.getTypeOf(v);return g.checkSupport(m),m!=="string"||R.uint8array?m==="nodebuffer"?new d(v):R.uint8array?new N(g.transformTo("uint8array",v)):new T(g.transformTo("array",v)):new l(v)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(ae,Re,K){"use strict";K.LOCAL_FILE_HEADER="PK",K.CENTRAL_FILE_HEADER="PK",K.CENTRAL_DIRECTORY_END="PK",K.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",K.ZIP64_CENTRAL_DIRECTORY_END="PK",K.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(ae,Re,K){"use strict";var g=ae("./GenericWorker"),R=ae("../utils");function T(l){g.call(this,"ConvertWorker to "+l),this.destType=l}R.inherits(T,g),T.prototype.processChunk=function(l){this.push({data:R.transformTo(this.destType,l.data),meta:l.meta})},Re.exports=T},{"../utils":32,"./GenericWorker":28}],25:[function(ae,Re,K){"use strict";var g=ae("./GenericWorker"),R=ae("../crc32");function T(){g.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}ae("../utils").inherits(T,g),T.prototype.processChunk=function(l){this.streamInfo.crc32=R(l.data,this.streamInfo.crc32||0),this.push(l)},Re.exports=T},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(ae,Re,K){"use strict";var g=ae("../utils"),R=ae("./GenericWorker");function T(l){R.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}g.inherits(T,R),T.prototype.processChunk=function(l){if(l){var d=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=d+l.data.length}R.prototype.processChunk.call(this,l)},Re.exports=T},{"../utils":32,"./GenericWorker":28}],27:[function(ae,Re,K){"use strict";var g=ae("../utils"),R=ae("./GenericWorker");function T(l){R.call(this,"DataWorker");var d=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(N){d.dataIsReady=!0,d.data=N,d.max=N&&N.length||0,d.type=g.getTypeOf(N),d.isPaused||d._tickAndRepeat()},function(N){d.error(N)})}g.inherits(T,R),T.prototype.cleanUp=function(){R.prototype.cleanUp.call(this),this.data=null},T.prototype.resume=function(){return!!R.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,g.delay(this._tickAndRepeat,[],this)),!0)},T.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(g.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},T.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,d=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,d);break;case"uint8array":l=this.data.subarray(this.index,d);break;case"array":case"nodebuffer":l=this.data.slice(this.index,d)}return this.index=d,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},Re.exports=T},{"../utils":32,"./GenericWorker":28}],28:[function(ae,Re,K){"use strict";function g(R){this.name=R||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}g.prototype={push:function(R){this.emit("data",R)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(R){this.emit("error",R)}return!0},error:function(R){return!this.isFinished&&(this.isPaused?this.generatedError=R:(this.isFinished=!0,this.emit("error",R),this.previous&&this.previous.error(R),this.cleanUp()),!0)},on:function(R,T){return this._listeners[R].push(T),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(R,T){if(this._listeners[R])for(var l=0;l<this._listeners[R].length;l++)this._listeners[R][l].call(this,T)},pipe:function(R){return R.registerPrevious(this)},registerPrevious:function(R){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=R.streamInfo,this.mergeStreamInfo(),this.previous=R;var T=this;return R.on("data",function(l){T.processChunk(l)}),R.on("end",function(){T.end()}),R.on("error",function(l){T.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var R=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),R=!0),this.previous&&this.previous.resume(),!R},flush:function(){},processChunk:function(R){this.push(R)},withStreamInfo:function(R,T){return this.extraStreamInfo[R]=T,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var R in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,R)&&(this.streamInfo[R]=this.extraStreamInfo[R])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var R="Worker "+this.name;return this.previous?this.previous+" -> "+R:R}},Re.exports=g},{}],29:[function(ae,Re,K){"use strict";var g=ae("../utils"),R=ae("./ConvertWorker"),T=ae("./GenericWorker"),l=ae("../base64"),d=ae("../support"),N=ae("../external"),v=null;if(d.nodestream)try{v=ae("../nodejs/NodejsStreamOutputAdapter")}catch(I){}function m(I,L){return new N.Promise(function(z,P){var $=[],J=I._internalType,te=I._outputType,H=I._mimeType;I.on("data",function(G,ce){$.push(G),L&&L(ce)}).on("error",function(G){$=[],P(G)}).on("end",function(){try{var G=function(ce,q,ye){switch(ce){case"blob":return g.newBlob(g.transformTo("arraybuffer",q),ye);case"base64":return l.encode(q);default:return g.transformTo(ce,q)}}(te,function(ce,q){var ye,_e=0,Le=null,se=0;for(ye=0;ye<q.length;ye++)se+=q[ye].length;switch(ce){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":for(Le=new Uint8Array(se),ye=0;ye<q.length;ye++)Le.set(q[ye],_e),_e+=q[ye].length;return Le;case"nodebuffer":return le.concat(q);default:throw new Error("concat : unsupported type '"+ce+"'")}}(J,$),H);z(G)}catch(ce){P(ce)}$=[]}).resume()})}function b(I,L,z){var P=L;switch(L){case"blob":case"arraybuffer":P="uint8array";break;case"base64":P="string"}try{this._internalType=P,this._outputType=L,this._mimeType=z,g.checkSupport(P),this._worker=I.pipe(new R(P)),I.lock()}catch($){this._worker=new T("error"),this._worker.error($)}}b.prototype={accumulate:function(I){return m(this,I)},on:function(I,L){var z=this;return I==="data"?this._worker.on(I,function(P){L.call(z,P.data,P.meta)}):this._worker.on(I,function(){g.delay(L,arguments,z)}),this},resume:function(){return g.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(I){if(g.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new v(this,{objectMode:this._outputType!=="nodebuffer"},I)}},Re.exports=b},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(ae,Re,K){"use strict";if(K.base64=!0,K.array=!0,K.string=!0,K.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",K.nodebuffer=typeof le!="undefined",K.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")K.blob=!1;else{var g=new ArrayBuffer(0);try{K.blob=new Blob([g],{type:"application/zip"}).size===0}catch(T){try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);R.append(g),K.blob=R.getBlob("application/zip").size===0}catch(l){K.blob=!1}}}try{K.nodestream=!!ae("readable-stream").Readable}catch(T){K.nodestream=!1}},{"readable-stream":16}],31:[function(ae,Re,K){"use strict";for(var g=ae("./utils"),R=ae("./support"),T=ae("./nodejsUtils"),l=ae("./stream/GenericWorker"),d=new Array(256),N=0;N<256;N++)d[N]=252<=N?6:248<=N?5:240<=N?4:224<=N?3:192<=N?2:1;d[254]=d[254]=1;function v(){l.call(this,"utf-8 decode"),this.leftOver=null}function m(){l.call(this,"utf-8 encode")}K.utf8encode=function(b){return R.nodebuffer?T.newBufferFrom(b,"utf-8"):function(I){var L,z,P,$,J,te=I.length,H=0;for($=0;$<te;$++)(64512&(z=I.charCodeAt($)))==55296&&$+1<te&&(64512&(P=I.charCodeAt($+1)))==56320&&(z=65536+(z-55296<<10)+(P-56320),$++),H+=z<128?1:z<2048?2:z<65536?3:4;for(L=R.uint8array?new Uint8Array(H):new Array(H),$=J=0;J<H;$++)(64512&(z=I.charCodeAt($)))==55296&&$+1<te&&(64512&(P=I.charCodeAt($+1)))==56320&&(z=65536+(z-55296<<10)+(P-56320),$++),z<128?L[J++]=z:(z<2048?L[J++]=192|z>>>6:(z<65536?L[J++]=224|z>>>12:(L[J++]=240|z>>>18,L[J++]=128|z>>>12&63),L[J++]=128|z>>>6&63),L[J++]=128|63&z);return L}(b)},K.utf8decode=function(b){return R.nodebuffer?g.transformTo("nodebuffer",b).toString("utf-8"):function(I){var L,z,P,$,J=I.length,te=new Array(2*J);for(L=z=0;L<J;)if((P=I[L++])<128)te[z++]=P;else if(4<($=d[P]))te[z++]=65533,L+=$-1;else{for(P&=$===2?31:$===3?15:7;1<$&&L<J;)P=P<<6|63&I[L++],$--;1<$?te[z++]=65533:P<65536?te[z++]=P:(P-=65536,te[z++]=55296|P>>10&1023,te[z++]=56320|1023&P)}return te.length!==z&&(te.subarray?te=te.subarray(0,z):te.length=z),g.applyFromCharCode(te)}(b=g.transformTo(R.uint8array?"uint8array":"array",b))},g.inherits(v,l),v.prototype.processChunk=function(b){var I=g.transformTo(R.uint8array?"uint8array":"array",b.data);if(this.leftOver&&this.leftOver.length){if(R.uint8array){var L=I;(I=new Uint8Array(L.length+this.leftOver.length)).set(this.leftOver,0),I.set(L,this.leftOver.length)}else I=this.leftOver.concat(I);this.leftOver=null}var z=function($,J){var te;for((J=J||$.length)>$.length&&(J=$.length),te=J-1;0<=te&&(192&$[te])==128;)te--;return te<0||te===0?J:te+d[$[te]]>J?te:J}(I),P=I;z!==I.length&&(R.uint8array?(P=I.subarray(0,z),this.leftOver=I.subarray(z,I.length)):(P=I.slice(0,z),this.leftOver=I.slice(z,I.length))),this.push({data:K.utf8decode(P),meta:b.meta})},v.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:K.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},K.Utf8DecodeWorker=v,g.inherits(m,l),m.prototype.processChunk=function(b){this.push({data:K.utf8encode(b.data),meta:b.meta})},K.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(ae,Re,K){"use strict";var g=ae("./support"),R=ae("./base64"),T=ae("./nodejsUtils"),l=ae("./external");function d(L){return L}function N(L,z){for(var P=0;P<L.length;++P)z[P]=255&L.charCodeAt(P);return z}ae("setimmediate"),K.newBlob=function(L,z){K.checkSupport("blob");try{return new Blob([L],{type:z})}catch($){try{var P=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return P.append(L),P.getBlob(z)}catch(J){throw new Error("Bug : can't construct the Blob.")}}};var v={stringifyByChunk:function(L,z,P){var $=[],J=0,te=L.length;if(te<=P)return String.fromCharCode.apply(null,L);for(;J<te;)z==="array"||z==="nodebuffer"?$.push(String.fromCharCode.apply(null,L.slice(J,Math.min(J+P,te)))):$.push(String.fromCharCode.apply(null,L.subarray(J,Math.min(J+P,te)))),J+=P;return $.join("")},stringifyByChar:function(L){for(var z="",P=0;P<L.length;P++)z+=String.fromCharCode(L[P]);return z},applyCanBeUsed:{uint8array:function(){try{return g.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(L){return!1}}(),nodebuffer:function(){try{return g.nodebuffer&&String.fromCharCode.apply(null,T.allocBuffer(1)).length===1}catch(L){return!1}}()}};function m(L){var z=65536,P=K.getTypeOf(L),$=!0;if(P==="uint8array"?$=v.applyCanBeUsed.uint8array:P==="nodebuffer"&&($=v.applyCanBeUsed.nodebuffer),$)for(;1<z;)try{return v.stringifyByChunk(L,P,z)}catch(J){z=Math.floor(z/2)}return v.stringifyByChar(L)}function b(L,z){for(var P=0;P<L.length;P++)z[P]=L[P];return z}K.applyFromCharCode=m;var I={};I.string={string:d,array:function(L){return N(L,new Array(L.length))},arraybuffer:function(L){return I.string.uint8array(L).buffer},uint8array:function(L){return N(L,new Uint8Array(L.length))},nodebuffer:function(L){return N(L,T.allocBuffer(L.length))}},I.array={string:m,array:d,arraybuffer:function(L){return new Uint8Array(L).buffer},uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return T.newBufferFrom(L)}},I.arraybuffer={string:function(L){return m(new Uint8Array(L))},array:function(L){return b(new Uint8Array(L),new Array(L.byteLength))},arraybuffer:d,uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return T.newBufferFrom(new Uint8Array(L))}},I.uint8array={string:m,array:function(L){return b(L,new Array(L.length))},arraybuffer:function(L){return L.buffer},uint8array:d,nodebuffer:function(L){return T.newBufferFrom(L)}},I.nodebuffer={string:m,array:function(L){return b(L,new Array(L.length))},arraybuffer:function(L){return I.nodebuffer.uint8array(L).buffer},uint8array:function(L){return b(L,new Uint8Array(L.length))},nodebuffer:d},K.transformTo=function(L,z){if(z=z||"",!L)return z;K.checkSupport(L);var P=K.getTypeOf(z);return I[P][L](z)},K.resolve=function(L){for(var z=L.split("/"),P=[],$=0;$<z.length;$++){var J=z[$];J==="."||J===""&&$!==0&&$!==z.length-1||(J===".."?P.pop():P.push(J))}return P.join("/")},K.getTypeOf=function(L){return typeof L=="string"?"string":Object.prototype.toString.call(L)==="[object Array]"?"array":g.nodebuffer&&T.isBuffer(L)?"nodebuffer":g.uint8array&&L instanceof Uint8Array?"uint8array":g.arraybuffer&&L instanceof ArrayBuffer?"arraybuffer":void 0},K.checkSupport=function(L){if(!g[L.toLowerCase()])throw new Error(L+" is not supported by this platform")},K.MAX_VALUE_16BITS=65535,K.MAX_VALUE_32BITS=-1,K.pretty=function(L){var z,P,$="";for(P=0;P<(L||"").length;P++)$+="\\x"+((z=L.charCodeAt(P))<16?"0":"")+z.toString(16).toUpperCase();return $},K.delay=function(L,z,P){setImmediate(function(){L.apply(P||null,z||[])})},K.inherits=function(L,z){function P(){}P.prototype=z.prototype,L.prototype=new P},K.extend=function(){var L,z,P={};for(L=0;L<arguments.length;L++)for(z in arguments[L])Object.prototype.hasOwnProperty.call(arguments[L],z)&&P[z]===void 0&&(P[z]=arguments[L][z]);return P},K.prepareContent=function(L,z,P,$,J){return l.Promise.resolve(z).then(function(te){return g.blob&&(te instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(te))!==-1)&&typeof FileReader!="undefined"?new l.Promise(function(H,G){var ce=new FileReader;ce.onload=function(q){H(q.target.result)},ce.onerror=function(q){G(q.target.error)},ce.readAsArrayBuffer(te)}):te}).then(function(te){var H=K.getTypeOf(te);return H?(H==="arraybuffer"?te=K.transformTo("uint8array",te):H==="string"&&(J?te=R.decode(te):P&&$!==!0&&(te=function(G){return N(G,g.uint8array?new Uint8Array(G.length):new Array(G.length))}(te))),te):l.Promise.reject(new Error("Can't read the data of '"+L+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(ae,Re,K){"use strict";var g=ae("./reader/readerFor"),R=ae("./utils"),T=ae("./signature"),l=ae("./zipEntry"),d=ae("./support");function N(v){this.files=[],this.loadOptions=v}N.prototype={checkSignature:function(v){if(!this.reader.readAndCheckSignature(v)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+R.pretty(m)+", expected "+R.pretty(v)+")")}},isSignature:function(v,m){var b=this.reader.index;this.reader.setIndex(v);var I=this.reader.readString(4)===m;return this.reader.setIndex(b),I},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var v=this.reader.readData(this.zipCommentLength),m=d.uint8array?"uint8array":"array",b=R.transformTo(m,v);this.zipComment=this.loadOptions.decodeFileName(b)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var v,m,b,I=this.zip64EndOfCentralSize-44;0<I;)v=this.reader.readInt(2),m=this.reader.readInt(4),b=this.reader.readData(m),this.zip64ExtensibleData[v]={id:v,length:m,value:b}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var v,m;for(v=0;v<this.files.length;v++)m=this.files[v],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(T.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var v;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(T.CENTRAL_FILE_HEADER);)(v=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(v);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var v=this.reader.lastIndexOfSignature(T.CENTRAL_DIRECTORY_END);if(v<0)throw this.isSignature(0,T.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(v);var m=v;if(this.checkSignature(T.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===R.MAX_VALUE_16BITS||this.diskWithCentralDirStart===R.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===R.MAX_VALUE_16BITS||this.centralDirRecords===R.MAX_VALUE_16BITS||this.centralDirSize===R.MAX_VALUE_32BITS||this.centralDirOffset===R.MAX_VALUE_32BITS){if(this.zip64=!0,(v=this.reader.lastIndexOfSignature(T.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(v),this.checkSignature(T.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,T.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(T.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(T.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var b=this.centralDirOffset+this.centralDirSize;this.zip64&&(b+=20,b+=12+this.zip64EndOfCentralSize);var I=m-b;if(0<I)this.isSignature(m,T.CENTRAL_FILE_HEADER)||(this.reader.zero=I);else if(I<0)throw new Error("Corrupted zip: missing "+Math.abs(I)+" bytes.")},prepareReader:function(v){this.reader=g(v)},load:function(v){this.prepareReader(v),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Re.exports=N},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(ae,Re,K){"use strict";var g=ae("./reader/readerFor"),R=ae("./utils"),T=ae("./compressedObject"),l=ae("./crc32"),d=ae("./utf8"),N=ae("./compressions"),v=ae("./support");function m(b,I){this.options=b,this.loadOptions=I}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(b){var I,L;if(b.skip(22),this.fileNameLength=b.readInt(2),L=b.readInt(2),this.fileName=b.readData(this.fileNameLength),b.skip(L),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((I=function(z){for(var P in N)if(Object.prototype.hasOwnProperty.call(N,P)&&N[P].magic===z)return N[P];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+R.pretty(this.compressionMethod)+" unknown (inner file : "+R.transformTo("string",this.fileName)+")");this.decompressed=new T(this.compressedSize,this.uncompressedSize,this.crc32,I,b.readData(this.compressedSize))},readCentralPart:function(b){this.versionMadeBy=b.readInt(2),b.skip(2),this.bitFlag=b.readInt(2),this.compressionMethod=b.readString(2),this.date=b.readDate(),this.crc32=b.readInt(4),this.compressedSize=b.readInt(4),this.uncompressedSize=b.readInt(4);var I=b.readInt(2);if(this.extraFieldsLength=b.readInt(2),this.fileCommentLength=b.readInt(2),this.diskNumberStart=b.readInt(2),this.internalFileAttributes=b.readInt(2),this.externalFileAttributes=b.readInt(4),this.localHeaderOffset=b.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");b.skip(I),this.readExtraFields(b),this.parseZIP64ExtraField(b),this.fileComment=b.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var b=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),b==0&&(this.dosPermissions=63&this.externalFileAttributes),b==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var b=g(this.extraFields[1].value);this.uncompressedSize===R.MAX_VALUE_32BITS&&(this.uncompressedSize=b.readInt(8)),this.compressedSize===R.MAX_VALUE_32BITS&&(this.compressedSize=b.readInt(8)),this.localHeaderOffset===R.MAX_VALUE_32BITS&&(this.localHeaderOffset=b.readInt(8)),this.diskNumberStart===R.MAX_VALUE_32BITS&&(this.diskNumberStart=b.readInt(4))}},readExtraFields:function(b){var I,L,z,P=b.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});b.index+4<P;)I=b.readInt(2),L=b.readInt(2),z=b.readData(L),this.extraFields[I]={id:I,length:L,value:z};b.setIndex(P)},handleUTF8:function(){var b=v.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=d.utf8decode(this.fileName),this.fileCommentStr=d.utf8decode(this.fileComment);else{var I=this.findExtraFieldUnicodePath();if(I!==null)this.fileNameStr=I;else{var L=R.transformTo(b,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(L)}var z=this.findExtraFieldUnicodeComment();if(z!==null)this.fileCommentStr=z;else{var P=R.transformTo(b,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(P)}}},findExtraFieldUnicodePath:function(){var b=this.extraFields[28789];if(b){var I=g(b.value);return I.readInt(1)!==1||l(this.fileName)!==I.readInt(4)?null:d.utf8decode(I.readData(b.length-5))}return null},findExtraFieldUnicodeComment:function(){var b=this.extraFields[25461];if(b){var I=g(b.value);return I.readInt(1)!==1||l(this.fileComment)!==I.readInt(4)?null:d.utf8decode(I.readData(b.length-5))}return null}},Re.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(ae,Re,K){"use strict";function g(I,L,z){this.name=I,this.dir=z.dir,this.date=z.date,this.comment=z.comment,this.unixPermissions=z.unixPermissions,this.dosPermissions=z.dosPermissions,this._data=L,this._dataBinary=z.binary,this.options={compression:z.compression,compressionOptions:z.compressionOptions}}var R=ae("./stream/StreamHelper"),T=ae("./stream/DataWorker"),l=ae("./utf8"),d=ae("./compressedObject"),N=ae("./stream/GenericWorker");g.prototype={internalStream:function(I){var L=null,z="string";try{if(!I)throw new Error("No output type specified.");var P=(z=I.toLowerCase())==="string"||z==="text";z!=="binarystring"&&z!=="text"||(z="string"),L=this._decompressWorker();var $=!this._dataBinary;$&&!P&&(L=L.pipe(new l.Utf8EncodeWorker)),!$&&P&&(L=L.pipe(new l.Utf8DecodeWorker))}catch(J){(L=new N("error")).error(J)}return new R(L,z,"")},async:function(I,L){return this.internalStream(I).accumulate(L)},nodeStream:function(I,L){return this.internalStream(I||"nodebuffer").toNodejsStream(L)},_compressWorker:function(I,L){if(this._data instanceof d&&this._data.compression.magic===I.magic)return this._data.getCompressedWorker();var z=this._decompressWorker();return this._dataBinary||(z=z.pipe(new l.Utf8EncodeWorker)),d.createWorkerFrom(z,I,L)},_decompressWorker:function(){return this._data instanceof d?this._data.getContentWorker():this._data instanceof N?this._data:new T(this._data)}};for(var v=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},b=0;b<v.length;b++)g.prototype[v[b]]=m;Re.exports=g},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(ae,Re,K){(function(g){"use strict";var R,T,l=g.MutationObserver||g.WebKitMutationObserver;if(l){var d=0,N=new l(I),v=g.document.createTextNode("");N.observe(v,{characterData:!0}),R=function(){v.data=d=++d%2}}else if(g.setImmediate||g.MessageChannel===void 0)R="document"in g&&"onreadystatechange"in g.document.createElement("script")?function(){var L=g.document.createElement("script");L.onreadystatechange=function(){I(),L.onreadystatechange=null,L.parentNode.removeChild(L),L=null},g.document.documentElement.appendChild(L)}:function(){setTimeout(I,0)};else{var m=new g.MessageChannel;m.port1.onmessage=I,R=function(){m.port2.postMessage(0)}}var b=[];function I(){var L,z;T=!0;for(var P=b.length;P;){for(z=b,b=[],L=-1;++L<P;)z[L]();P=b.length}T=!1}Re.exports=function(L){b.push(L)!==1||T||R()}}).call(this,typeof E.g!="undefined"?E.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(ae,Re,K){"use strict";var g=ae("immediate");function R(){}var T={},l=["REJECTED"],d=["FULFILLED"],N=["PENDING"];function v(P){if(typeof P!="function")throw new TypeError("resolver must be a function");this.state=N,this.queue=[],this.outcome=void 0,P!==R&&L(this,P)}function m(P,$,J){this.promise=P,typeof $=="function"&&(this.onFulfilled=$,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}function b(P,$,J){g(function(){var te;try{te=$(J)}catch(H){return T.reject(P,H)}te===P?T.reject(P,new TypeError("Cannot resolve promise with itself")):T.resolve(P,te)})}function I(P){var $=P&&P.then;if(P&&(typeof P=="object"||typeof P=="function")&&typeof $=="function")return function(){$.apply(P,arguments)}}function L(P,$){var J=!1;function te(ce){J||(J=!0,T.reject(P,ce))}function H(ce){J||(J=!0,T.resolve(P,ce))}var G=z(function(){$(H,te)});G.status==="error"&&te(G.value)}function z(P,$){var J={};try{J.value=P($),J.status="success"}catch(te){J.status="error",J.value=te}return J}(Re.exports=v).prototype.finally=function(P){if(typeof P!="function")return this;var $=this.constructor;return this.then(function(J){return $.resolve(P()).then(function(){return J})},function(J){return $.resolve(P()).then(function(){throw J})})},v.prototype.catch=function(P){return this.then(null,P)},v.prototype.then=function(P,$){if(typeof P!="function"&&this.state===d||typeof $!="function"&&this.state===l)return this;var J=new this.constructor(R);return this.state!==N?b(J,this.state===d?P:$,this.outcome):this.queue.push(new m(J,P,$)),J},m.prototype.callFulfilled=function(P){T.resolve(this.promise,P)},m.prototype.otherCallFulfilled=function(P){b(this.promise,this.onFulfilled,P)},m.prototype.callRejected=function(P){T.reject(this.promise,P)},m.prototype.otherCallRejected=function(P){b(this.promise,this.onRejected,P)},T.resolve=function(P,$){var J=z(I,$);if(J.status==="error")return T.reject(P,J.value);var te=J.value;if(te)L(P,te);else{P.state=d,P.outcome=$;for(var H=-1,G=P.queue.length;++H<G;)P.queue[H].callFulfilled($)}return P},T.reject=function(P,$){P.state=l,P.outcome=$;for(var J=-1,te=P.queue.length;++J<te;)P.queue[J].callRejected($);return P},v.resolve=function(P){return P instanceof this?P:T.resolve(new this(R),P)},v.reject=function(P){var $=new this(R);return T.reject($,P)},v.all=function(P){var $=this;if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=P.length,te=!1;if(!J)return this.resolve([]);for(var H=new Array(J),G=0,ce=-1,q=new this(R);++ce<J;)ye(P[ce],ce);return q;function ye(_e,Le){$.resolve(_e).then(function(se){H[Le]=se,++G!==J||te||(te=!0,T.resolve(q,H))},function(se){te||(te=!0,T.reject(q,se))})}},v.race=function(P){var $=this;if(Object.prototype.toString.call(P)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=P.length,te=!1;if(!J)return this.resolve([]);for(var H=-1,G=new this(R);++H<J;)ce=P[H],$.resolve(ce).then(function(q){te||(te=!0,T.resolve(G,q))},function(q){te||(te=!0,T.reject(G,q))});var ce;return G}},{immediate:36}],38:[function(ae,Re,K){"use strict";var g={};(0,ae("./lib/utils/common").assign)(g,ae("./lib/deflate"),ae("./lib/inflate"),ae("./lib/zlib/constants")),Re.exports=g},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(ae,Re,K){"use strict";var g=ae("./zlib/deflate"),R=ae("./utils/common"),T=ae("./utils/strings"),l=ae("./zlib/messages"),d=ae("./zlib/zstream"),N=Object.prototype.toString,v=0,m=-1,b=0,I=8;function L(P){if(!(this instanceof L))return new L(P);this.options=R.assign({level:m,method:I,chunkSize:16384,windowBits:15,memLevel:8,strategy:b,to:""},P||{});var $=this.options;$.raw&&0<$.windowBits?$.windowBits=-$.windowBits:$.gzip&&0<$.windowBits&&$.windowBits<16&&($.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var J=g.deflateInit2(this.strm,$.level,$.method,$.windowBits,$.memLevel,$.strategy);if(J!==v)throw new Error(l[J]);if($.header&&g.deflateSetHeader(this.strm,$.header),$.dictionary){var te;if(te=typeof $.dictionary=="string"?T.string2buf($.dictionary):N.call($.dictionary)==="[object ArrayBuffer]"?new Uint8Array($.dictionary):$.dictionary,(J=g.deflateSetDictionary(this.strm,te))!==v)throw new Error(l[J]);this._dict_set=!0}}function z(P,$){var J=new L($);if(J.push(P,!0),J.err)throw J.msg||l[J.err];return J.result}L.prototype.push=function(P,$){var J,te,H=this.strm,G=this.options.chunkSize;if(this.ended)return!1;te=$===~~$?$:$===!0?4:0,typeof P=="string"?H.input=T.string2buf(P):N.call(P)==="[object ArrayBuffer]"?H.input=new Uint8Array(P):H.input=P,H.next_in=0,H.avail_in=H.input.length;do{if(H.avail_out===0&&(H.output=new R.Buf8(G),H.next_out=0,H.avail_out=G),(J=g.deflate(H,te))!==1&&J!==v)return this.onEnd(J),!(this.ended=!0);H.avail_out!==0&&(H.avail_in!==0||te!==4&&te!==2)||(this.options.to==="string"?this.onData(T.buf2binstring(R.shrinkBuf(H.output,H.next_out))):this.onData(R.shrinkBuf(H.output,H.next_out)))}while((0<H.avail_in||H.avail_out===0)&&J!==1);return te===4?(J=g.deflateEnd(this.strm),this.onEnd(J),this.ended=!0,J===v):te!==2||(this.onEnd(v),!(H.avail_out=0))},L.prototype.onData=function(P){this.chunks.push(P)},L.prototype.onEnd=function(P){P===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=R.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg},K.Deflate=L,K.deflate=z,K.deflateRaw=function(P,$){return($=$||{}).raw=!0,z(P,$)},K.gzip=function(P,$){return($=$||{}).gzip=!0,z(P,$)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(ae,Re,K){"use strict";var g=ae("./zlib/inflate"),R=ae("./utils/common"),T=ae("./utils/strings"),l=ae("./zlib/constants"),d=ae("./zlib/messages"),N=ae("./zlib/zstream"),v=ae("./zlib/gzheader"),m=Object.prototype.toString;function b(L){if(!(this instanceof b))return new b(L);this.options=R.assign({chunkSize:16384,windowBits:0,to:""},L||{});var z=this.options;z.raw&&0<=z.windowBits&&z.windowBits<16&&(z.windowBits=-z.windowBits,z.windowBits===0&&(z.windowBits=-15)),!(0<=z.windowBits&&z.windowBits<16)||L&&L.windowBits||(z.windowBits+=32),15<z.windowBits&&z.windowBits<48&&!(15&z.windowBits)&&(z.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new N,this.strm.avail_out=0;var P=g.inflateInit2(this.strm,z.windowBits);if(P!==l.Z_OK)throw new Error(d[P]);this.header=new v,g.inflateGetHeader(this.strm,this.header)}function I(L,z){var P=new b(z);if(P.push(L,!0),P.err)throw P.msg||d[P.err];return P.result}b.prototype.push=function(L,z){var P,$,J,te,H,G,ce=this.strm,q=this.options.chunkSize,ye=this.options.dictionary,_e=!1;if(this.ended)return!1;$=z===~~z?z:z===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof L=="string"?ce.input=T.binstring2buf(L):m.call(L)==="[object ArrayBuffer]"?ce.input=new Uint8Array(L):ce.input=L,ce.next_in=0,ce.avail_in=ce.input.length;do{if(ce.avail_out===0&&(ce.output=new R.Buf8(q),ce.next_out=0,ce.avail_out=q),(P=g.inflate(ce,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&ye&&(G=typeof ye=="string"?T.string2buf(ye):m.call(ye)==="[object ArrayBuffer]"?new Uint8Array(ye):ye,P=g.inflateSetDictionary(this.strm,G)),P===l.Z_BUF_ERROR&&_e===!0&&(P=l.Z_OK,_e=!1),P!==l.Z_STREAM_END&&P!==l.Z_OK)return this.onEnd(P),!(this.ended=!0);ce.next_out&&(ce.avail_out!==0&&P!==l.Z_STREAM_END&&(ce.avail_in!==0||$!==l.Z_FINISH&&$!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(J=T.utf8border(ce.output,ce.next_out),te=ce.next_out-J,H=T.buf2string(ce.output,J),ce.next_out=te,ce.avail_out=q-te,te&&R.arraySet(ce.output,ce.output,J,te,0),this.onData(H)):this.onData(R.shrinkBuf(ce.output,ce.next_out)))),ce.avail_in===0&&ce.avail_out===0&&(_e=!0)}while((0<ce.avail_in||ce.avail_out===0)&&P!==l.Z_STREAM_END);return P===l.Z_STREAM_END&&($=l.Z_FINISH),$===l.Z_FINISH?(P=g.inflateEnd(this.strm),this.onEnd(P),this.ended=!0,P===l.Z_OK):$!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(ce.avail_out=0))},b.prototype.onData=function(L){this.chunks.push(L)},b.prototype.onEnd=function(L){L===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=R.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg},K.Inflate=b,K.inflate=I,K.inflateRaw=function(L,z){return(z=z||{}).raw=!0,I(L,z)},K.ungzip=I},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(ae,Re,K){"use strict";var g=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";K.assign=function(l){for(var d=Array.prototype.slice.call(arguments,1);d.length;){var N=d.shift();if(N){if(typeof N!="object")throw new TypeError(N+"must be non-object");for(var v in N)N.hasOwnProperty(v)&&(l[v]=N[v])}}return l},K.shrinkBuf=function(l,d){return l.length===d?l:l.subarray?l.subarray(0,d):(l.length=d,l)};var R={arraySet:function(l,d,N,v,m){if(d.subarray&&l.subarray)l.set(d.subarray(N,N+v),m);else for(var b=0;b<v;b++)l[m+b]=d[N+b]},flattenChunks:function(l){var d,N,v,m,b,I;for(d=v=0,N=l.length;d<N;d++)v+=l[d].length;for(I=new Uint8Array(v),d=m=0,N=l.length;d<N;d++)b=l[d],I.set(b,m),m+=b.length;return I}},T={arraySet:function(l,d,N,v,m){for(var b=0;b<v;b++)l[m+b]=d[N+b]},flattenChunks:function(l){return[].concat.apply([],l)}};K.setTyped=function(l){l?(K.Buf8=Uint8Array,K.Buf16=Uint16Array,K.Buf32=Int32Array,K.assign(K,R)):(K.Buf8=Array,K.Buf16=Array,K.Buf32=Array,K.assign(K,T))},K.setTyped(g)},{}],42:[function(ae,Re,K){"use strict";var g=ae("./common"),R=!0,T=!0;try{String.fromCharCode.apply(null,[0])}catch(v){R=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(v){T=!1}for(var l=new g.Buf8(256),d=0;d<256;d++)l[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;function N(v,m){if(m<65537&&(v.subarray&&T||!v.subarray&&R))return String.fromCharCode.apply(null,g.shrinkBuf(v,m));for(var b="",I=0;I<m;I++)b+=String.fromCharCode(v[I]);return b}l[254]=l[254]=1,K.string2buf=function(v){var m,b,I,L,z,P=v.length,$=0;for(L=0;L<P;L++)(64512&(b=v.charCodeAt(L)))==55296&&L+1<P&&(64512&(I=v.charCodeAt(L+1)))==56320&&(b=65536+(b-55296<<10)+(I-56320),L++),$+=b<128?1:b<2048?2:b<65536?3:4;for(m=new g.Buf8($),L=z=0;z<$;L++)(64512&(b=v.charCodeAt(L)))==55296&&L+1<P&&(64512&(I=v.charCodeAt(L+1)))==56320&&(b=65536+(b-55296<<10)+(I-56320),L++),b<128?m[z++]=b:(b<2048?m[z++]=192|b>>>6:(b<65536?m[z++]=224|b>>>12:(m[z++]=240|b>>>18,m[z++]=128|b>>>12&63),m[z++]=128|b>>>6&63),m[z++]=128|63&b);return m},K.buf2binstring=function(v){return N(v,v.length)},K.binstring2buf=function(v){for(var m=new g.Buf8(v.length),b=0,I=m.length;b<I;b++)m[b]=v.charCodeAt(b);return m},K.buf2string=function(v,m){var b,I,L,z,P=m||v.length,$=new Array(2*P);for(b=I=0;b<P;)if((L=v[b++])<128)$[I++]=L;else if(4<(z=l[L]))$[I++]=65533,b+=z-1;else{for(L&=z===2?31:z===3?15:7;1<z&&b<P;)L=L<<6|63&v[b++],z--;1<z?$[I++]=65533:L<65536?$[I++]=L:(L-=65536,$[I++]=55296|L>>10&1023,$[I++]=56320|1023&L)}return N($,I)},K.utf8border=function(v,m){var b;for((m=m||v.length)>v.length&&(m=v.length),b=m-1;0<=b&&(192&v[b])==128;)b--;return b<0||b===0?m:b+l[v[b]]>m?b:m}},{"./common":41}],43:[function(ae,Re,K){"use strict";Re.exports=function(g,R,T,l){for(var d=65535&g|0,N=g>>>16&65535|0,v=0;T!==0;){for(T-=v=2e3<T?2e3:T;N=N+(d=d+R[l++]|0)|0,--v;);d%=65521,N%=65521}return d|N<<16|0}},{}],44:[function(ae,Re,K){"use strict";Re.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(ae,Re,K){"use strict";var g=function(){for(var R,T=[],l=0;l<256;l++){R=l;for(var d=0;d<8;d++)R=1&R?3988292384^R>>>1:R>>>1;T[l]=R}return T}();Re.exports=function(R,T,l,d){var N=g,v=d+l;R^=-1;for(var m=d;m<v;m++)R=R>>>8^N[255&(R^T[m])];return-1^R}},{}],46:[function(ae,Re,K){"use strict";var g,R=ae("../utils/common"),T=ae("./trees"),l=ae("./adler32"),d=ae("./crc32"),N=ae("./messages"),v=0,m=4,b=0,I=-2,L=-1,z=4,P=2,$=8,J=9,te=286,H=30,G=19,ce=2*te+1,q=15,ye=3,_e=258,Le=_e+ye+1,se=42,be=113,O=1,Ee=2,ue=3,he=4;function ve(Ce,It){return Ce.msg=N[It],It}function F(Ce){return(Ce<<1)-(4<Ce?9:0)}function U(Ce){for(var It=Ce.length;0<=--It;)Ce[It]=0}function ee(Ce){var It=Ce.state,Z=It.pending;Z>Ce.avail_out&&(Z=Ce.avail_out),Z!==0&&(R.arraySet(Ce.output,It.pending_buf,It.pending_out,Z,Ce.next_out),Ce.next_out+=Z,It.pending_out+=Z,Ce.total_out+=Z,Ce.avail_out-=Z,It.pending-=Z,It.pending===0&&(It.pending_out=0))}function de(Ce,It){T._tr_flush_block(Ce,0<=Ce.block_start?Ce.block_start:-1,Ce.strstart-Ce.block_start,It),Ce.block_start=Ce.strstart,ee(Ce.strm)}function Xe(Ce,It){Ce.pending_buf[Ce.pending++]=It}function tt(Ce,It){Ce.pending_buf[Ce.pending++]=It>>>8&255,Ce.pending_buf[Ce.pending++]=255&It}function nt(Ce,It){var Z,x,y=Ce.max_chain_length,k=Ce.strstart,fe=Ce.prev_length,W=Ce.nice_match,Q=Ce.strstart>Ce.w_size-Le?Ce.strstart-(Ce.w_size-Le):0,re=Ce.window,Se=Ce.w_mask,Be=Ce.prev,Te=Ce.strstart+_e,Ge=re[k+fe-1],ut=re[k+fe];Ce.prev_length>=Ce.good_match&&(y>>=2),W>Ce.lookahead&&(W=Ce.lookahead);do if(re[(Z=It)+fe]===ut&&re[Z+fe-1]===Ge&&re[Z]===re[k]&&re[++Z]===re[k+1]){k+=2,Z++;do;while(re[++k]===re[++Z]&&re[++k]===re[++Z]&&re[++k]===re[++Z]&&re[++k]===re[++Z]&&re[++k]===re[++Z]&&re[++k]===re[++Z]&&re[++k]===re[++Z]&&re[++k]===re[++Z]&&k<Te);if(x=_e-(Te-k),k=Te-_e,fe<x){if(Ce.match_start=It,W<=(fe=x))break;Ge=re[k+fe-1],ut=re[k+fe]}}while((It=Be[It&Se])>Q&&--y!=0);return fe<=Ce.lookahead?fe:Ce.lookahead}function _t(Ce){var It,Z,x,y,k,fe,W,Q,re,Se,Be=Ce.w_size;do{if(y=Ce.window_size-Ce.lookahead-Ce.strstart,Ce.strstart>=Be+(Be-Le)){for(R.arraySet(Ce.window,Ce.window,Be,Be,0),Ce.match_start-=Be,Ce.strstart-=Be,Ce.block_start-=Be,It=Z=Ce.hash_size;x=Ce.head[--It],Ce.head[It]=Be<=x?x-Be:0,--Z;);for(It=Z=Be;x=Ce.prev[--It],Ce.prev[It]=Be<=x?x-Be:0,--Z;);y+=Be}if(Ce.strm.avail_in===0)break;if(fe=Ce.strm,W=Ce.window,Q=Ce.strstart+Ce.lookahead,re=y,Se=void 0,Se=fe.avail_in,re<Se&&(Se=re),Z=Se===0?0:(fe.avail_in-=Se,R.arraySet(W,fe.input,fe.next_in,Se,Q),fe.state.wrap===1?fe.adler=l(fe.adler,W,Se,Q):fe.state.wrap===2&&(fe.adler=d(fe.adler,W,Se,Q)),fe.next_in+=Se,fe.total_in+=Se,Se),Ce.lookahead+=Z,Ce.lookahead+Ce.insert>=ye)for(k=Ce.strstart-Ce.insert,Ce.ins_h=Ce.window[k],Ce.ins_h=(Ce.ins_h<<Ce.hash_shift^Ce.window[k+1])&Ce.hash_mask;Ce.insert&&(Ce.ins_h=(Ce.ins_h<<Ce.hash_shift^Ce.window[k+ye-1])&Ce.hash_mask,Ce.prev[k&Ce.w_mask]=Ce.head[Ce.ins_h],Ce.head[Ce.ins_h]=k,k++,Ce.insert--,!(Ce.lookahead+Ce.insert<ye)););}while(Ce.lookahead<Le&&Ce.strm.avail_in!==0)}function Xt(Ce,It){for(var Z,x;;){if(Ce.lookahead<Le){if(_t(Ce),Ce.lookahead<Le&&It===v)return O;if(Ce.lookahead===0)break}if(Z=0,Ce.lookahead>=ye&&(Ce.ins_h=(Ce.ins_h<<Ce.hash_shift^Ce.window[Ce.strstart+ye-1])&Ce.hash_mask,Z=Ce.prev[Ce.strstart&Ce.w_mask]=Ce.head[Ce.ins_h],Ce.head[Ce.ins_h]=Ce.strstart),Z!==0&&Ce.strstart-Z<=Ce.w_size-Le&&(Ce.match_length=nt(Ce,Z)),Ce.match_length>=ye)if(x=T._tr_tally(Ce,Ce.strstart-Ce.match_start,Ce.match_length-ye),Ce.lookahead-=Ce.match_length,Ce.match_length<=Ce.max_lazy_match&&Ce.lookahead>=ye){for(Ce.match_length--;Ce.strstart++,Ce.ins_h=(Ce.ins_h<<Ce.hash_shift^Ce.window[Ce.strstart+ye-1])&Ce.hash_mask,Z=Ce.prev[Ce.strstart&Ce.w_mask]=Ce.head[Ce.ins_h],Ce.head[Ce.ins_h]=Ce.strstart,--Ce.match_length!=0;);Ce.strstart++}else Ce.strstart+=Ce.match_length,Ce.match_length=0,Ce.ins_h=Ce.window[Ce.strstart],Ce.ins_h=(Ce.ins_h<<Ce.hash_shift^Ce.window[Ce.strstart+1])&Ce.hash_mask;else x=T._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++;if(x&&(de(Ce,!1),Ce.strm.avail_out===0))return O}return Ce.insert=Ce.strstart<ye-1?Ce.strstart:ye-1,It===m?(de(Ce,!0),Ce.strm.avail_out===0?ue:he):Ce.last_lit&&(de(Ce,!1),Ce.strm.avail_out===0)?O:Ee}function zt(Ce,It){for(var Z,x,y;;){if(Ce.lookahead<Le){if(_t(Ce),Ce.lookahead<Le&&It===v)return O;if(Ce.lookahead===0)break}if(Z=0,Ce.lookahead>=ye&&(Ce.ins_h=(Ce.ins_h<<Ce.hash_shift^Ce.window[Ce.strstart+ye-1])&Ce.hash_mask,Z=Ce.prev[Ce.strstart&Ce.w_mask]=Ce.head[Ce.ins_h],Ce.head[Ce.ins_h]=Ce.strstart),Ce.prev_length=Ce.match_length,Ce.prev_match=Ce.match_start,Ce.match_length=ye-1,Z!==0&&Ce.prev_length<Ce.max_lazy_match&&Ce.strstart-Z<=Ce.w_size-Le&&(Ce.match_length=nt(Ce,Z),Ce.match_length<=5&&(Ce.strategy===1||Ce.match_length===ye&&4096<Ce.strstart-Ce.match_start)&&(Ce.match_length=ye-1)),Ce.prev_length>=ye&&Ce.match_length<=Ce.prev_length){for(y=Ce.strstart+Ce.lookahead-ye,x=T._tr_tally(Ce,Ce.strstart-1-Ce.prev_match,Ce.prev_length-ye),Ce.lookahead-=Ce.prev_length-1,Ce.prev_length-=2;++Ce.strstart<=y&&(Ce.ins_h=(Ce.ins_h<<Ce.hash_shift^Ce.window[Ce.strstart+ye-1])&Ce.hash_mask,Z=Ce.prev[Ce.strstart&Ce.w_mask]=Ce.head[Ce.ins_h],Ce.head[Ce.ins_h]=Ce.strstart),--Ce.prev_length!=0;);if(Ce.match_available=0,Ce.match_length=ye-1,Ce.strstart++,x&&(de(Ce,!1),Ce.strm.avail_out===0))return O}else if(Ce.match_available){if((x=T._tr_tally(Ce,0,Ce.window[Ce.strstart-1]))&&de(Ce,!1),Ce.strstart++,Ce.lookahead--,Ce.strm.avail_out===0)return O}else Ce.match_available=1,Ce.strstart++,Ce.lookahead--}return Ce.match_available&&(x=T._tr_tally(Ce,0,Ce.window[Ce.strstart-1]),Ce.match_available=0),Ce.insert=Ce.strstart<ye-1?Ce.strstart:ye-1,It===m?(de(Ce,!0),Ce.strm.avail_out===0?ue:he):Ce.last_lit&&(de(Ce,!1),Ce.strm.avail_out===0)?O:Ee}function Ze(Ce,It,Z,x,y){this.good_length=Ce,this.max_lazy=It,this.nice_length=Z,this.max_chain=x,this.func=y}function fr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=$,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new R.Buf16(2*ce),this.dyn_dtree=new R.Buf16(2*(2*H+1)),this.bl_tree=new R.Buf16(2*(2*G+1)),U(this.dyn_ltree),U(this.dyn_dtree),U(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new R.Buf16(q+1),this.heap=new R.Buf16(2*te+1),U(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new R.Buf16(2*te+1),U(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function yr(Ce){var It;return Ce&&Ce.state?(Ce.total_in=Ce.total_out=0,Ce.data_type=P,(It=Ce.state).pending=0,It.pending_out=0,It.wrap<0&&(It.wrap=-It.wrap),It.status=It.wrap?se:be,Ce.adler=It.wrap===2?0:1,It.last_flush=v,T._tr_init(It),b):ve(Ce,I)}function Ar(Ce){var It=yr(Ce);return It===b&&function(Z){Z.window_size=2*Z.w_size,U(Z.head),Z.max_lazy_match=g[Z.level].max_lazy,Z.good_match=g[Z.level].good_length,Z.nice_match=g[Z.level].nice_length,Z.max_chain_length=g[Z.level].max_chain,Z.strstart=0,Z.block_start=0,Z.lookahead=0,Z.insert=0,Z.match_length=Z.prev_length=ye-1,Z.match_available=0,Z.ins_h=0}(Ce.state),It}function vr(Ce,It,Z,x,y,k){if(!Ce)return I;var fe=1;if(It===L&&(It=6),x<0?(fe=0,x=-x):15<x&&(fe=2,x-=16),y<1||J<y||Z!==$||x<8||15<x||It<0||9<It||k<0||z<k)return ve(Ce,I);x===8&&(x=9);var W=new fr;return(Ce.state=W).strm=Ce,W.wrap=fe,W.gzhead=null,W.w_bits=x,W.w_size=1<<W.w_bits,W.w_mask=W.w_size-1,W.hash_bits=y+7,W.hash_size=1<<W.hash_bits,W.hash_mask=W.hash_size-1,W.hash_shift=~~((W.hash_bits+ye-1)/ye),W.window=new R.Buf8(2*W.w_size),W.head=new R.Buf16(W.hash_size),W.prev=new R.Buf16(W.w_size),W.lit_bufsize=1<<y+6,W.pending_buf_size=4*W.lit_bufsize,W.pending_buf=new R.Buf8(W.pending_buf_size),W.d_buf=1*W.lit_bufsize,W.l_buf=3*W.lit_bufsize,W.level=It,W.strategy=k,W.method=Z,Ar(Ce)}g=[new Ze(0,0,0,0,function(Ce,It){var Z=65535;for(Z>Ce.pending_buf_size-5&&(Z=Ce.pending_buf_size-5);;){if(Ce.lookahead<=1){if(_t(Ce),Ce.lookahead===0&&It===v)return O;if(Ce.lookahead===0)break}Ce.strstart+=Ce.lookahead,Ce.lookahead=0;var x=Ce.block_start+Z;if((Ce.strstart===0||Ce.strstart>=x)&&(Ce.lookahead=Ce.strstart-x,Ce.strstart=x,de(Ce,!1),Ce.strm.avail_out===0)||Ce.strstart-Ce.block_start>=Ce.w_size-Le&&(de(Ce,!1),Ce.strm.avail_out===0))return O}return Ce.insert=0,It===m?(de(Ce,!0),Ce.strm.avail_out===0?ue:he):(Ce.strstart>Ce.block_start&&(de(Ce,!1),Ce.strm.avail_out),O)}),new Ze(4,4,8,4,Xt),new Ze(4,5,16,8,Xt),new Ze(4,6,32,32,Xt),new Ze(4,4,16,16,zt),new Ze(8,16,32,32,zt),new Ze(8,16,128,128,zt),new Ze(8,32,128,256,zt),new Ze(32,128,258,1024,zt),new Ze(32,258,258,4096,zt)],K.deflateInit=function(Ce,It){return vr(Ce,It,$,15,8,0)},K.deflateInit2=vr,K.deflateReset=Ar,K.deflateResetKeep=yr,K.deflateSetHeader=function(Ce,It){return Ce&&Ce.state?Ce.state.wrap!==2?I:(Ce.state.gzhead=It,b):I},K.deflate=function(Ce,It){var Z,x,y,k;if(!Ce||!Ce.state||5<It||It<0)return Ce?ve(Ce,I):I;if(x=Ce.state,!Ce.output||!Ce.input&&Ce.avail_in!==0||x.status===666&&It!==m)return ve(Ce,Ce.avail_out===0?-5:I);if(x.strm=Ce,Z=x.last_flush,x.last_flush=It,x.status===se)if(x.wrap===2)Ce.adler=0,Xe(x,31),Xe(x,139),Xe(x,8),x.gzhead?(Xe(x,(x.gzhead.text?1:0)+(x.gzhead.hcrc?2:0)+(x.gzhead.extra?4:0)+(x.gzhead.name?8:0)+(x.gzhead.comment?16:0)),Xe(x,255&x.gzhead.time),Xe(x,x.gzhead.time>>8&255),Xe(x,x.gzhead.time>>16&255),Xe(x,x.gzhead.time>>24&255),Xe(x,x.level===9?2:2<=x.strategy||x.level<2?4:0),Xe(x,255&x.gzhead.os),x.gzhead.extra&&x.gzhead.extra.length&&(Xe(x,255&x.gzhead.extra.length),Xe(x,x.gzhead.extra.length>>8&255)),x.gzhead.hcrc&&(Ce.adler=d(Ce.adler,x.pending_buf,x.pending,0)),x.gzindex=0,x.status=69):(Xe(x,0),Xe(x,0),Xe(x,0),Xe(x,0),Xe(x,0),Xe(x,x.level===9?2:2<=x.strategy||x.level<2?4:0),Xe(x,3),x.status=be);else{var fe=$+(x.w_bits-8<<4)<<8;fe|=(2<=x.strategy||x.level<2?0:x.level<6?1:x.level===6?2:3)<<6,x.strstart!==0&&(fe|=32),fe+=31-fe%31,x.status=be,tt(x,fe),x.strstart!==0&&(tt(x,Ce.adler>>>16),tt(x,65535&Ce.adler)),Ce.adler=1}if(x.status===69)if(x.gzhead.extra){for(y=x.pending;x.gzindex<(65535&x.gzhead.extra.length)&&(x.pending!==x.pending_buf_size||(x.gzhead.hcrc&&x.pending>y&&(Ce.adler=d(Ce.adler,x.pending_buf,x.pending-y,y)),ee(Ce),y=x.pending,x.pending!==x.pending_buf_size));)Xe(x,255&x.gzhead.extra[x.gzindex]),x.gzindex++;x.gzhead.hcrc&&x.pending>y&&(Ce.adler=d(Ce.adler,x.pending_buf,x.pending-y,y)),x.gzindex===x.gzhead.extra.length&&(x.gzindex=0,x.status=73)}else x.status=73;if(x.status===73)if(x.gzhead.name){y=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>y&&(Ce.adler=d(Ce.adler,x.pending_buf,x.pending-y,y)),ee(Ce),y=x.pending,x.pending===x.pending_buf_size)){k=1;break}k=x.gzindex<x.gzhead.name.length?255&x.gzhead.name.charCodeAt(x.gzindex++):0,Xe(x,k)}while(k!==0);x.gzhead.hcrc&&x.pending>y&&(Ce.adler=d(Ce.adler,x.pending_buf,x.pending-y,y)),k===0&&(x.gzindex=0,x.status=91)}else x.status=91;if(x.status===91)if(x.gzhead.comment){y=x.pending;do{if(x.pending===x.pending_buf_size&&(x.gzhead.hcrc&&x.pending>y&&(Ce.adler=d(Ce.adler,x.pending_buf,x.pending-y,y)),ee(Ce),y=x.pending,x.pending===x.pending_buf_size)){k=1;break}k=x.gzindex<x.gzhead.comment.length?255&x.gzhead.comment.charCodeAt(x.gzindex++):0,Xe(x,k)}while(k!==0);x.gzhead.hcrc&&x.pending>y&&(Ce.adler=d(Ce.adler,x.pending_buf,x.pending-y,y)),k===0&&(x.status=103)}else x.status=103;if(x.status===103&&(x.gzhead.hcrc?(x.pending+2>x.pending_buf_size&&ee(Ce),x.pending+2<=x.pending_buf_size&&(Xe(x,255&Ce.adler),Xe(x,Ce.adler>>8&255),Ce.adler=0,x.status=be)):x.status=be),x.pending!==0){if(ee(Ce),Ce.avail_out===0)return x.last_flush=-1,b}else if(Ce.avail_in===0&&F(It)<=F(Z)&&It!==m)return ve(Ce,-5);if(x.status===666&&Ce.avail_in!==0)return ve(Ce,-5);if(Ce.avail_in!==0||x.lookahead!==0||It!==v&&x.status!==666){var W=x.strategy===2?function(Q,re){for(var Se;;){if(Q.lookahead===0&&(_t(Q),Q.lookahead===0)){if(re===v)return O;break}if(Q.match_length=0,Se=T._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,Se&&(de(Q,!1),Q.strm.avail_out===0))return O}return Q.insert=0,re===m?(de(Q,!0),Q.strm.avail_out===0?ue:he):Q.last_lit&&(de(Q,!1),Q.strm.avail_out===0)?O:Ee}(x,It):x.strategy===3?function(Q,re){for(var Se,Be,Te,Ge,ut=Q.window;;){if(Q.lookahead<=_e){if(_t(Q),Q.lookahead<=_e&&re===v)return O;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=ye&&0<Q.strstart&&(Be=ut[Te=Q.strstart-1])===ut[++Te]&&Be===ut[++Te]&&Be===ut[++Te]){Ge=Q.strstart+_e;do;while(Be===ut[++Te]&&Be===ut[++Te]&&Be===ut[++Te]&&Be===ut[++Te]&&Be===ut[++Te]&&Be===ut[++Te]&&Be===ut[++Te]&&Be===ut[++Te]&&Te<Ge);Q.match_length=_e-(Ge-Te),Q.match_length>Q.lookahead&&(Q.match_length=Q.lookahead)}if(Q.match_length>=ye?(Se=T._tr_tally(Q,1,Q.match_length-ye),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0):(Se=T._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++),Se&&(de(Q,!1),Q.strm.avail_out===0))return O}return Q.insert=0,re===m?(de(Q,!0),Q.strm.avail_out===0?ue:he):Q.last_lit&&(de(Q,!1),Q.strm.avail_out===0)?O:Ee}(x,It):g[x.level].func(x,It);if(W!==ue&&W!==he||(x.status=666),W===O||W===ue)return Ce.avail_out===0&&(x.last_flush=-1),b;if(W===Ee&&(It===1?T._tr_align(x):It!==5&&(T._tr_stored_block(x,0,0,!1),It===3&&(U(x.head),x.lookahead===0&&(x.strstart=0,x.block_start=0,x.insert=0))),ee(Ce),Ce.avail_out===0))return x.last_flush=-1,b}return It!==m?b:x.wrap<=0?1:(x.wrap===2?(Xe(x,255&Ce.adler),Xe(x,Ce.adler>>8&255),Xe(x,Ce.adler>>16&255),Xe(x,Ce.adler>>24&255),Xe(x,255&Ce.total_in),Xe(x,Ce.total_in>>8&255),Xe(x,Ce.total_in>>16&255),Xe(x,Ce.total_in>>24&255)):(tt(x,Ce.adler>>>16),tt(x,65535&Ce.adler)),ee(Ce),0<x.wrap&&(x.wrap=-x.wrap),x.pending!==0?b:1)},K.deflateEnd=function(Ce){var It;return Ce&&Ce.state?(It=Ce.state.status)!==se&&It!==69&&It!==73&&It!==91&&It!==103&&It!==be&&It!==666?ve(Ce,I):(Ce.state=null,It===be?ve(Ce,-3):b):I},K.deflateSetDictionary=function(Ce,It){var Z,x,y,k,fe,W,Q,re,Se=It.length;if(!Ce||!Ce.state||(k=(Z=Ce.state).wrap)===2||k===1&&Z.status!==se||Z.lookahead)return I;for(k===1&&(Ce.adler=l(Ce.adler,It,Se,0)),Z.wrap=0,Se>=Z.w_size&&(k===0&&(U(Z.head),Z.strstart=0,Z.block_start=0,Z.insert=0),re=new R.Buf8(Z.w_size),R.arraySet(re,It,Se-Z.w_size,Z.w_size,0),It=re,Se=Z.w_size),fe=Ce.avail_in,W=Ce.next_in,Q=Ce.input,Ce.avail_in=Se,Ce.next_in=0,Ce.input=It,_t(Z);Z.lookahead>=ye;){for(x=Z.strstart,y=Z.lookahead-(ye-1);Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[x+ye-1])&Z.hash_mask,Z.prev[x&Z.w_mask]=Z.head[Z.ins_h],Z.head[Z.ins_h]=x,x++,--y;);Z.strstart=x,Z.lookahead=ye-1,_t(Z)}return Z.strstart+=Z.lookahead,Z.block_start=Z.strstart,Z.insert=Z.lookahead,Z.lookahead=0,Z.match_length=Z.prev_length=ye-1,Z.match_available=0,Ce.next_in=W,Ce.input=Q,Ce.avail_in=fe,Z.wrap=k,b},K.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(ae,Re,K){"use strict";Re.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(ae,Re,K){"use strict";Re.exports=function(g,R){var T,l,d,N,v,m,b,I,L,z,P,$,J,te,H,G,ce,q,ye,_e,Le,se,be,O,Ee;T=g.state,l=g.next_in,O=g.input,d=l+(g.avail_in-5),N=g.next_out,Ee=g.output,v=N-(R-g.avail_out),m=N+(g.avail_out-257),b=T.dmax,I=T.wsize,L=T.whave,z=T.wnext,P=T.window,$=T.hold,J=T.bits,te=T.lencode,H=T.distcode,G=(1<<T.lenbits)-1,ce=(1<<T.distbits)-1;e:do{J<15&&($+=O[l++]<<J,J+=8,$+=O[l++]<<J,J+=8),q=te[$&G];t:for(;;){if($>>>=ye=q>>>24,J-=ye,(ye=q>>>16&255)===0)Ee[N++]=65535&q;else{if(!(16&ye)){if(!(64&ye)){q=te[(65535&q)+($&(1<<ye)-1)];continue t}if(32&ye){T.mode=12;break e}g.msg="invalid literal/length code",T.mode=30;break e}_e=65535&q,(ye&=15)&&(J<ye&&($+=O[l++]<<J,J+=8),_e+=$&(1<<ye)-1,$>>>=ye,J-=ye),J<15&&($+=O[l++]<<J,J+=8,$+=O[l++]<<J,J+=8),q=H[$&ce];r:for(;;){if($>>>=ye=q>>>24,J-=ye,!(16&(ye=q>>>16&255))){if(!(64&ye)){q=H[(65535&q)+($&(1<<ye)-1)];continue r}g.msg="invalid distance code",T.mode=30;break e}if(Le=65535&q,J<(ye&=15)&&($+=O[l++]<<J,(J+=8)<ye&&($+=O[l++]<<J,J+=8)),b<(Le+=$&(1<<ye)-1)){g.msg="invalid distance too far back",T.mode=30;break e}if($>>>=ye,J-=ye,(ye=N-v)<Le){if(L<(ye=Le-ye)&&T.sane){g.msg="invalid distance too far back",T.mode=30;break e}if(be=P,(se=0)===z){if(se+=I-ye,ye<_e){for(_e-=ye;Ee[N++]=P[se++],--ye;);se=N-Le,be=Ee}}else if(z<ye){if(se+=I+z-ye,(ye-=z)<_e){for(_e-=ye;Ee[N++]=P[se++],--ye;);if(se=0,z<_e){for(_e-=ye=z;Ee[N++]=P[se++],--ye;);se=N-Le,be=Ee}}}else if(se+=z-ye,ye<_e){for(_e-=ye;Ee[N++]=P[se++],--ye;);se=N-Le,be=Ee}for(;2<_e;)Ee[N++]=be[se++],Ee[N++]=be[se++],Ee[N++]=be[se++],_e-=3;_e&&(Ee[N++]=be[se++],1<_e&&(Ee[N++]=be[se++]))}else{for(se=N-Le;Ee[N++]=Ee[se++],Ee[N++]=Ee[se++],Ee[N++]=Ee[se++],2<(_e-=3););_e&&(Ee[N++]=Ee[se++],1<_e&&(Ee[N++]=Ee[se++]))}break}}break}}while(l<d&&N<m);l-=_e=J>>3,$&=(1<<(J-=_e<<3))-1,g.next_in=l,g.next_out=N,g.avail_in=l<d?d-l+5:5-(l-d),g.avail_out=N<m?m-N+257:257-(N-m),T.hold=$,T.bits=J}},{}],49:[function(ae,Re,K){"use strict";var g=ae("../utils/common"),R=ae("./adler32"),T=ae("./crc32"),l=ae("./inffast"),d=ae("./inftrees"),N=1,v=2,m=0,b=-2,I=1,L=852,z=592;function P(se){return(se>>>24&255)+(se>>>8&65280)+((65280&se)<<8)+((255&se)<<24)}function $(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function J(se){var be;return se&&se.state?(be=se.state,se.total_in=se.total_out=be.total=0,se.msg="",be.wrap&&(se.adler=1&be.wrap),be.mode=I,be.last=0,be.havedict=0,be.dmax=32768,be.head=null,be.hold=0,be.bits=0,be.lencode=be.lendyn=new g.Buf32(L),be.distcode=be.distdyn=new g.Buf32(z),be.sane=1,be.back=-1,m):b}function te(se){var be;return se&&se.state?((be=se.state).wsize=0,be.whave=0,be.wnext=0,J(se)):b}function H(se,be){var O,Ee;return se&&se.state?(Ee=se.state,be<0?(O=0,be=-be):(O=1+(be>>4),be<48&&(be&=15)),be&&(be<8||15<be)?b:(Ee.window!==null&&Ee.wbits!==be&&(Ee.window=null),Ee.wrap=O,Ee.wbits=be,te(se))):b}function G(se,be){var O,Ee;return se?(Ee=new $,(se.state=Ee).window=null,(O=H(se,be))!==m&&(se.state=null),O):b}var ce,q,ye=!0;function _e(se){if(ye){var be;for(ce=new g.Buf32(512),q=new g.Buf32(32),be=0;be<144;)se.lens[be++]=8;for(;be<256;)se.lens[be++]=9;for(;be<280;)se.lens[be++]=7;for(;be<288;)se.lens[be++]=8;for(d(N,se.lens,0,288,ce,0,se.work,{bits:9}),be=0;be<32;)se.lens[be++]=5;d(v,se.lens,0,32,q,0,se.work,{bits:5}),ye=!1}se.lencode=ce,se.lenbits=9,se.distcode=q,se.distbits=5}function Le(se,be,O,Ee){var ue,he=se.state;return he.window===null&&(he.wsize=1<<he.wbits,he.wnext=0,he.whave=0,he.window=new g.Buf8(he.wsize)),Ee>=he.wsize?(g.arraySet(he.window,be,O-he.wsize,he.wsize,0),he.wnext=0,he.whave=he.wsize):(Ee<(ue=he.wsize-he.wnext)&&(ue=Ee),g.arraySet(he.window,be,O-Ee,ue,he.wnext),(Ee-=ue)?(g.arraySet(he.window,be,O-Ee,Ee,0),he.wnext=Ee,he.whave=he.wsize):(he.wnext+=ue,he.wnext===he.wsize&&(he.wnext=0),he.whave<he.wsize&&(he.whave+=ue))),0}K.inflateReset=te,K.inflateReset2=H,K.inflateResetKeep=J,K.inflateInit=function(se){return G(se,15)},K.inflateInit2=G,K.inflate=function(se,be){var O,Ee,ue,he,ve,F,U,ee,de,Xe,tt,nt,_t,Xt,zt,Ze,fr,yr,Ar,vr,Ce,It,Z,x,y=0,k=new g.Buf8(4),fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!se||!se.state||!se.output||!se.input&&se.avail_in!==0)return b;(O=se.state).mode===12&&(O.mode=13),ve=se.next_out,ue=se.output,U=se.avail_out,he=se.next_in,Ee=se.input,F=se.avail_in,ee=O.hold,de=O.bits,Xe=F,tt=U,It=m;e:for(;;)switch(O.mode){case I:if(O.wrap===0){O.mode=13;break}for(;de<16;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if(2&O.wrap&&ee===35615){k[O.check=0]=255&ee,k[1]=ee>>>8&255,O.check=T(O.check,k,2,0),de=ee=0,O.mode=2;break}if(O.flags=0,O.head&&(O.head.done=!1),!(1&O.wrap)||(((255&ee)<<8)+(ee>>8))%31){se.msg="incorrect header check",O.mode=30;break}if((15&ee)!=8){se.msg="unknown compression method",O.mode=30;break}if(de-=4,Ce=8+(15&(ee>>>=4)),O.wbits===0)O.wbits=Ce;else if(Ce>O.wbits){se.msg="invalid window size",O.mode=30;break}O.dmax=1<<Ce,se.adler=O.check=1,O.mode=512&ee?10:12,de=ee=0;break;case 2:for(;de<16;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if(O.flags=ee,(255&O.flags)!=8){se.msg="unknown compression method",O.mode=30;break}if(57344&O.flags){se.msg="unknown header flags set",O.mode=30;break}O.head&&(O.head.text=ee>>8&1),512&O.flags&&(k[0]=255&ee,k[1]=ee>>>8&255,O.check=T(O.check,k,2,0)),de=ee=0,O.mode=3;case 3:for(;de<32;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}O.head&&(O.head.time=ee),512&O.flags&&(k[0]=255&ee,k[1]=ee>>>8&255,k[2]=ee>>>16&255,k[3]=ee>>>24&255,O.check=T(O.check,k,4,0)),de=ee=0,O.mode=4;case 4:for(;de<16;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}O.head&&(O.head.xflags=255&ee,O.head.os=ee>>8),512&O.flags&&(k[0]=255&ee,k[1]=ee>>>8&255,O.check=T(O.check,k,2,0)),de=ee=0,O.mode=5;case 5:if(1024&O.flags){for(;de<16;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}O.length=ee,O.head&&(O.head.extra_len=ee),512&O.flags&&(k[0]=255&ee,k[1]=ee>>>8&255,O.check=T(O.check,k,2,0)),de=ee=0}else O.head&&(O.head.extra=null);O.mode=6;case 6:if(1024&O.flags&&(F<(nt=O.length)&&(nt=F),nt&&(O.head&&(Ce=O.head.extra_len-O.length,O.head.extra||(O.head.extra=new Array(O.head.extra_len)),g.arraySet(O.head.extra,Ee,he,nt,Ce)),512&O.flags&&(O.check=T(O.check,Ee,nt,he)),F-=nt,he+=nt,O.length-=nt),O.length))break e;O.length=0,O.mode=7;case 7:if(2048&O.flags){if(F===0)break e;for(nt=0;Ce=Ee[he+nt++],O.head&&Ce&&O.length<65536&&(O.head.name+=String.fromCharCode(Ce)),Ce&&nt<F;);if(512&O.flags&&(O.check=T(O.check,Ee,nt,he)),F-=nt,he+=nt,Ce)break e}else O.head&&(O.head.name=null);O.length=0,O.mode=8;case 8:if(4096&O.flags){if(F===0)break e;for(nt=0;Ce=Ee[he+nt++],O.head&&Ce&&O.length<65536&&(O.head.comment+=String.fromCharCode(Ce)),Ce&&nt<F;);if(512&O.flags&&(O.check=T(O.check,Ee,nt,he)),F-=nt,he+=nt,Ce)break e}else O.head&&(O.head.comment=null);O.mode=9;case 9:if(512&O.flags){for(;de<16;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if(ee!==(65535&O.check)){se.msg="header crc mismatch",O.mode=30;break}de=ee=0}O.head&&(O.head.hcrc=O.flags>>9&1,O.head.done=!0),se.adler=O.check=0,O.mode=12;break;case 10:for(;de<32;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}se.adler=O.check=P(ee),de=ee=0,O.mode=11;case 11:if(O.havedict===0)return se.next_out=ve,se.avail_out=U,se.next_in=he,se.avail_in=F,O.hold=ee,O.bits=de,2;se.adler=O.check=1,O.mode=12;case 12:if(be===5||be===6)break e;case 13:if(O.last){ee>>>=7&de,de-=7&de,O.mode=27;break}for(;de<3;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}switch(O.last=1&ee,de-=1,3&(ee>>>=1)){case 0:O.mode=14;break;case 1:if(_e(O),O.mode=20,be!==6)break;ee>>>=2,de-=2;break e;case 2:O.mode=17;break;case 3:se.msg="invalid block type",O.mode=30}ee>>>=2,de-=2;break;case 14:for(ee>>>=7&de,de-=7&de;de<32;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if((65535&ee)!=(ee>>>16^65535)){se.msg="invalid stored block lengths",O.mode=30;break}if(O.length=65535&ee,de=ee=0,O.mode=15,be===6)break e;case 15:O.mode=16;case 16:if(nt=O.length){if(F<nt&&(nt=F),U<nt&&(nt=U),nt===0)break e;g.arraySet(ue,Ee,he,nt,ve),F-=nt,he+=nt,U-=nt,ve+=nt,O.length-=nt;break}O.mode=12;break;case 17:for(;de<14;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if(O.nlen=257+(31&ee),ee>>>=5,de-=5,O.ndist=1+(31&ee),ee>>>=5,de-=5,O.ncode=4+(15&ee),ee>>>=4,de-=4,286<O.nlen||30<O.ndist){se.msg="too many length or distance symbols",O.mode=30;break}O.have=0,O.mode=18;case 18:for(;O.have<O.ncode;){for(;de<3;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}O.lens[fe[O.have++]]=7&ee,ee>>>=3,de-=3}for(;O.have<19;)O.lens[fe[O.have++]]=0;if(O.lencode=O.lendyn,O.lenbits=7,Z={bits:O.lenbits},It=d(0,O.lens,0,19,O.lencode,0,O.work,Z),O.lenbits=Z.bits,It){se.msg="invalid code lengths set",O.mode=30;break}O.have=0,O.mode=19;case 19:for(;O.have<O.nlen+O.ndist;){for(;Ze=(y=O.lencode[ee&(1<<O.lenbits)-1])>>>16&255,fr=65535&y,!((zt=y>>>24)<=de);){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if(fr<16)ee>>>=zt,de-=zt,O.lens[O.have++]=fr;else{if(fr===16){for(x=zt+2;de<x;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if(ee>>>=zt,de-=zt,O.have===0){se.msg="invalid bit length repeat",O.mode=30;break}Ce=O.lens[O.have-1],nt=3+(3&ee),ee>>>=2,de-=2}else if(fr===17){for(x=zt+3;de<x;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}de-=zt,Ce=0,nt=3+(7&(ee>>>=zt)),ee>>>=3,de-=3}else{for(x=zt+7;de<x;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}de-=zt,Ce=0,nt=11+(127&(ee>>>=zt)),ee>>>=7,de-=7}if(O.have+nt>O.nlen+O.ndist){se.msg="invalid bit length repeat",O.mode=30;break}for(;nt--;)O.lens[O.have++]=Ce}}if(O.mode===30)break;if(O.lens[256]===0){se.msg="invalid code -- missing end-of-block",O.mode=30;break}if(O.lenbits=9,Z={bits:O.lenbits},It=d(N,O.lens,0,O.nlen,O.lencode,0,O.work,Z),O.lenbits=Z.bits,It){se.msg="invalid literal/lengths set",O.mode=30;break}if(O.distbits=6,O.distcode=O.distdyn,Z={bits:O.distbits},It=d(v,O.lens,O.nlen,O.ndist,O.distcode,0,O.work,Z),O.distbits=Z.bits,It){se.msg="invalid distances set",O.mode=30;break}if(O.mode=20,be===6)break e;case 20:O.mode=21;case 21:if(6<=F&&258<=U){se.next_out=ve,se.avail_out=U,se.next_in=he,se.avail_in=F,O.hold=ee,O.bits=de,l(se,tt),ve=se.next_out,ue=se.output,U=se.avail_out,he=se.next_in,Ee=se.input,F=se.avail_in,ee=O.hold,de=O.bits,O.mode===12&&(O.back=-1);break}for(O.back=0;Ze=(y=O.lencode[ee&(1<<O.lenbits)-1])>>>16&255,fr=65535&y,!((zt=y>>>24)<=de);){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if(Ze&&!(240&Ze)){for(yr=zt,Ar=Ze,vr=fr;Ze=(y=O.lencode[vr+((ee&(1<<yr+Ar)-1)>>yr)])>>>16&255,fr=65535&y,!(yr+(zt=y>>>24)<=de);){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}ee>>>=yr,de-=yr,O.back+=yr}if(ee>>>=zt,de-=zt,O.back+=zt,O.length=fr,Ze===0){O.mode=26;break}if(32&Ze){O.back=-1,O.mode=12;break}if(64&Ze){se.msg="invalid literal/length code",O.mode=30;break}O.extra=15&Ze,O.mode=22;case 22:if(O.extra){for(x=O.extra;de<x;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}O.length+=ee&(1<<O.extra)-1,ee>>>=O.extra,de-=O.extra,O.back+=O.extra}O.was=O.length,O.mode=23;case 23:for(;Ze=(y=O.distcode[ee&(1<<O.distbits)-1])>>>16&255,fr=65535&y,!((zt=y>>>24)<=de);){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if(!(240&Ze)){for(yr=zt,Ar=Ze,vr=fr;Ze=(y=O.distcode[vr+((ee&(1<<yr+Ar)-1)>>yr)])>>>16&255,fr=65535&y,!(yr+(zt=y>>>24)<=de);){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}ee>>>=yr,de-=yr,O.back+=yr}if(ee>>>=zt,de-=zt,O.back+=zt,64&Ze){se.msg="invalid distance code",O.mode=30;break}O.offset=fr,O.extra=15&Ze,O.mode=24;case 24:if(O.extra){for(x=O.extra;de<x;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}O.offset+=ee&(1<<O.extra)-1,ee>>>=O.extra,de-=O.extra,O.back+=O.extra}if(O.offset>O.dmax){se.msg="invalid distance too far back",O.mode=30;break}O.mode=25;case 25:if(U===0)break e;if(nt=tt-U,O.offset>nt){if((nt=O.offset-nt)>O.whave&&O.sane){se.msg="invalid distance too far back",O.mode=30;break}_t=nt>O.wnext?(nt-=O.wnext,O.wsize-nt):O.wnext-nt,nt>O.length&&(nt=O.length),Xt=O.window}else Xt=ue,_t=ve-O.offset,nt=O.length;for(U<nt&&(nt=U),U-=nt,O.length-=nt;ue[ve++]=Xt[_t++],--nt;);O.length===0&&(O.mode=21);break;case 26:if(U===0)break e;ue[ve++]=O.length,U--,O.mode=21;break;case 27:if(O.wrap){for(;de<32;){if(F===0)break e;F--,ee|=Ee[he++]<<de,de+=8}if(tt-=U,se.total_out+=tt,O.total+=tt,tt&&(se.adler=O.check=O.flags?T(O.check,ue,tt,ve-tt):R(O.check,ue,tt,ve-tt)),tt=U,(O.flags?ee:P(ee))!==O.check){se.msg="incorrect data check",O.mode=30;break}de=ee=0}O.mode=28;case 28:if(O.wrap&&O.flags){for(;de<32;){if(F===0)break e;F--,ee+=Ee[he++]<<de,de+=8}if(ee!==(4294967295&O.total)){se.msg="incorrect length check",O.mode=30;break}de=ee=0}O.mode=29;case 29:It=1;break e;case 30:It=-3;break e;case 31:return-4;case 32:default:return b}return se.next_out=ve,se.avail_out=U,se.next_in=he,se.avail_in=F,O.hold=ee,O.bits=de,(O.wsize||tt!==se.avail_out&&O.mode<30&&(O.mode<27||be!==4))&&Le(se,se.output,se.next_out,tt-se.avail_out)?(O.mode=31,-4):(Xe-=se.avail_in,tt-=se.avail_out,se.total_in+=Xe,se.total_out+=tt,O.total+=tt,O.wrap&&tt&&(se.adler=O.check=O.flags?T(O.check,ue,tt,se.next_out-tt):R(O.check,ue,tt,se.next_out-tt)),se.data_type=O.bits+(O.last?64:0)+(O.mode===12?128:0)+(O.mode===20||O.mode===15?256:0),(Xe==0&&tt===0||be===4)&&It===m&&(It=-5),It)},K.inflateEnd=function(se){if(!se||!se.state)return b;var be=se.state;return be.window&&(be.window=null),se.state=null,m},K.inflateGetHeader=function(se,be){var O;return se&&se.state&&2&(O=se.state).wrap?((O.head=be).done=!1,m):b},K.inflateSetDictionary=function(se,be){var O,Ee=be.length;return se&&se.state?(O=se.state).wrap!==0&&O.mode!==11?b:O.mode===11&&R(1,be,Ee,0)!==O.check?-3:Le(se,be,Ee,Ee)?(O.mode=31,-4):(O.havedict=1,m):b},K.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(ae,Re,K){"use strict";var g=ae("../utils/common"),R=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],T=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],d=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Re.exports=function(N,v,m,b,I,L,z,P){var $,J,te,H,G,ce,q,ye,_e,Le=P.bits,se=0,be=0,O=0,Ee=0,ue=0,he=0,ve=0,F=0,U=0,ee=0,de=null,Xe=0,tt=new g.Buf16(16),nt=new g.Buf16(16),_t=null,Xt=0;for(se=0;se<=15;se++)tt[se]=0;for(be=0;be<b;be++)tt[v[m+be]]++;for(ue=Le,Ee=15;1<=Ee&&tt[Ee]===0;Ee--);if(Ee<ue&&(ue=Ee),Ee===0)return I[L++]=20971520,I[L++]=20971520,P.bits=1,0;for(O=1;O<Ee&&tt[O]===0;O++);for(ue<O&&(ue=O),se=F=1;se<=15;se++)if(F<<=1,(F-=tt[se])<0)return-1;if(0<F&&(N===0||Ee!==1))return-1;for(nt[1]=0,se=1;se<15;se++)nt[se+1]=nt[se]+tt[se];for(be=0;be<b;be++)v[m+be]!==0&&(z[nt[v[m+be]]++]=be);if(ce=N===0?(de=_t=z,19):N===1?(de=R,Xe-=257,_t=T,Xt-=257,256):(de=l,_t=d,-1),se=O,G=L,ve=be=ee=0,te=-1,H=(U=1<<(he=ue))-1,N===1&&852<U||N===2&&592<U)return 1;for(;;){for(q=se-ve,_e=z[be]<ce?(ye=0,z[be]):z[be]>ce?(ye=_t[Xt+z[be]],de[Xe+z[be]]):(ye=96,0),$=1<<se-ve,O=J=1<<he;I[G+(ee>>ve)+(J-=$)]=q<<24|ye<<16|_e|0,J!==0;);for($=1<<se-1;ee&$;)$>>=1;if($!==0?(ee&=$-1,ee+=$):ee=0,be++,--tt[se]==0){if(se===Ee)break;se=v[m+z[be]]}if(ue<se&&(ee&H)!==te){for(ve===0&&(ve=ue),G+=O,F=1<<(he=se-ve);he+ve<Ee&&!((F-=tt[he+ve])<=0);)he++,F<<=1;if(U+=1<<he,N===1&&852<U||N===2&&592<U)return 1;I[te=ee&H]=ue<<24|he<<16|G-L|0}}return ee!==0&&(I[G+ee]=se-ve<<24|64<<16|0),P.bits=ue,0}},{"../utils/common":41}],51:[function(ae,Re,K){"use strict";Re.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(ae,Re,K){"use strict";var g=ae("../utils/common"),R=0,T=1;function l(y){for(var k=y.length;0<=--k;)y[k]=0}var d=0,N=29,v=256,m=v+1+N,b=30,I=19,L=2*m+1,z=15,P=16,$=7,J=256,te=16,H=17,G=18,ce=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],q=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ye=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Le=new Array(2*(m+2));l(Le);var se=new Array(2*b);l(se);var be=new Array(512);l(be);var O=new Array(256);l(O);var Ee=new Array(N);l(Ee);var ue,he,ve,F=new Array(b);function U(y,k,fe,W,Q){this.static_tree=y,this.extra_bits=k,this.extra_base=fe,this.elems=W,this.max_length=Q,this.has_stree=y&&y.length}function ee(y,k){this.dyn_tree=y,this.max_code=0,this.stat_desc=k}function de(y){return y<256?be[y]:be[256+(y>>>7)]}function Xe(y,k){y.pending_buf[y.pending++]=255&k,y.pending_buf[y.pending++]=k>>>8&255}function tt(y,k,fe){y.bi_valid>P-fe?(y.bi_buf|=k<<y.bi_valid&65535,Xe(y,y.bi_buf),y.bi_buf=k>>P-y.bi_valid,y.bi_valid+=fe-P):(y.bi_buf|=k<<y.bi_valid&65535,y.bi_valid+=fe)}function nt(y,k,fe){tt(y,fe[2*k],fe[2*k+1])}function _t(y,k){for(var fe=0;fe|=1&y,y>>>=1,fe<<=1,0<--k;);return fe>>>1}function Xt(y,k,fe){var W,Q,re=new Array(z+1),Se=0;for(W=1;W<=z;W++)re[W]=Se=Se+fe[W-1]<<1;for(Q=0;Q<=k;Q++){var Be=y[2*Q+1];Be!==0&&(y[2*Q]=_t(re[Be]++,Be))}}function zt(y){var k;for(k=0;k<m;k++)y.dyn_ltree[2*k]=0;for(k=0;k<b;k++)y.dyn_dtree[2*k]=0;for(k=0;k<I;k++)y.bl_tree[2*k]=0;y.dyn_ltree[2*J]=1,y.opt_len=y.static_len=0,y.last_lit=y.matches=0}function Ze(y){8<y.bi_valid?Xe(y,y.bi_buf):0<y.bi_valid&&(y.pending_buf[y.pending++]=y.bi_buf),y.bi_buf=0,y.bi_valid=0}function fr(y,k,fe,W){var Q=2*k,re=2*fe;return y[Q]<y[re]||y[Q]===y[re]&&W[k]<=W[fe]}function yr(y,k,fe){for(var W=y.heap[fe],Q=fe<<1;Q<=y.heap_len&&(Q<y.heap_len&&fr(k,y.heap[Q+1],y.heap[Q],y.depth)&&Q++,!fr(k,W,y.heap[Q],y.depth));)y.heap[fe]=y.heap[Q],fe=Q,Q<<=1;y.heap[fe]=W}function Ar(y,k,fe){var W,Q,re,Se,Be=0;if(y.last_lit!==0)for(;W=y.pending_buf[y.d_buf+2*Be]<<8|y.pending_buf[y.d_buf+2*Be+1],Q=y.pending_buf[y.l_buf+Be],Be++,W===0?nt(y,Q,k):(nt(y,(re=O[Q])+v+1,k),(Se=ce[re])!==0&&tt(y,Q-=Ee[re],Se),nt(y,re=de(--W),fe),(Se=q[re])!==0&&tt(y,W-=F[re],Se)),Be<y.last_lit;);nt(y,J,k)}function vr(y,k){var fe,W,Q,re=k.dyn_tree,Se=k.stat_desc.static_tree,Be=k.stat_desc.has_stree,Te=k.stat_desc.elems,Ge=-1;for(y.heap_len=0,y.heap_max=L,fe=0;fe<Te;fe++)re[2*fe]!==0?(y.heap[++y.heap_len]=Ge=fe,y.depth[fe]=0):re[2*fe+1]=0;for(;y.heap_len<2;)re[2*(Q=y.heap[++y.heap_len]=Ge<2?++Ge:0)]=1,y.depth[Q]=0,y.opt_len--,Be&&(y.static_len-=Se[2*Q+1]);for(k.max_code=Ge,fe=y.heap_len>>1;1<=fe;fe--)yr(y,re,fe);for(Q=Te;fe=y.heap[1],y.heap[1]=y.heap[y.heap_len--],yr(y,re,1),W=y.heap[1],y.heap[--y.heap_max]=fe,y.heap[--y.heap_max]=W,re[2*Q]=re[2*fe]+re[2*W],y.depth[Q]=(y.depth[fe]>=y.depth[W]?y.depth[fe]:y.depth[W])+1,re[2*fe+1]=re[2*W+1]=Q,y.heap[1]=Q++,yr(y,re,1),2<=y.heap_len;);y.heap[--y.heap_max]=y.heap[1],function(ut,$e){var Je,At,ze,He,vt,jt,Dt=$e.dyn_tree,lr=$e.max_code,gr=$e.stat_desc.static_tree,ne=$e.stat_desc.has_stree,we=$e.stat_desc.extra_bits,Vt=$e.stat_desc.extra_base,Ue=$e.stat_desc.max_length,it=0;for(He=0;He<=z;He++)ut.bl_count[He]=0;for(Dt[2*ut.heap[ut.heap_max]+1]=0,Je=ut.heap_max+1;Je<L;Je++)Ue<(He=Dt[2*Dt[2*(At=ut.heap[Je])+1]+1]+1)&&(He=Ue,it++),Dt[2*At+1]=He,lr<At||(ut.bl_count[He]++,vt=0,Vt<=At&&(vt=we[At-Vt]),jt=Dt[2*At],ut.opt_len+=jt*(He+vt),ne&&(ut.static_len+=jt*(gr[2*At+1]+vt)));if(it!==0){do{for(He=Ue-1;ut.bl_count[He]===0;)He--;ut.bl_count[He]--,ut.bl_count[He+1]+=2,ut.bl_count[Ue]--,it-=2}while(0<it);for(He=Ue;He!==0;He--)for(At=ut.bl_count[He];At!==0;)lr<(ze=ut.heap[--Je])||(Dt[2*ze+1]!==He&&(ut.opt_len+=(He-Dt[2*ze+1])*Dt[2*ze],Dt[2*ze+1]=He),At--)}}(y,k),Xt(re,Ge,y.bl_count)}function Ce(y,k,fe){var W,Q,re=-1,Se=k[1],Be=0,Te=7,Ge=4;for(Se===0&&(Te=138,Ge=3),k[2*(fe+1)+1]=65535,W=0;W<=fe;W++)Q=Se,Se=k[2*(W+1)+1],++Be<Te&&Q===Se||(Be<Ge?y.bl_tree[2*Q]+=Be:Q!==0?(Q!==re&&y.bl_tree[2*Q]++,y.bl_tree[2*te]++):Be<=10?y.bl_tree[2*H]++:y.bl_tree[2*G]++,re=Q,Ge=(Be=0)===Se?(Te=138,3):Q===Se?(Te=6,3):(Te=7,4))}function It(y,k,fe){var W,Q,re=-1,Se=k[1],Be=0,Te=7,Ge=4;for(Se===0&&(Te=138,Ge=3),W=0;W<=fe;W++)if(Q=Se,Se=k[2*(W+1)+1],!(++Be<Te&&Q===Se)){if(Be<Ge)for(;nt(y,Q,y.bl_tree),--Be!=0;);else Q!==0?(Q!==re&&(nt(y,Q,y.bl_tree),Be--),nt(y,te,y.bl_tree),tt(y,Be-3,2)):Be<=10?(nt(y,H,y.bl_tree),tt(y,Be-3,3)):(nt(y,G,y.bl_tree),tt(y,Be-11,7));re=Q,Ge=(Be=0)===Se?(Te=138,3):Q===Se?(Te=6,3):(Te=7,4)}}l(F);var Z=!1;function x(y,k,fe,W){tt(y,(d<<1)+(W?1:0),3),function(Q,re,Se,Be){Ze(Q),Be&&(Xe(Q,Se),Xe(Q,~Se)),g.arraySet(Q.pending_buf,Q.window,re,Se,Q.pending),Q.pending+=Se}(y,k,fe,!0)}K._tr_init=function(y){Z||(function(){var k,fe,W,Q,re,Se=new Array(z+1);for(Q=W=0;Q<N-1;Q++)for(Ee[Q]=W,k=0;k<1<<ce[Q];k++)O[W++]=Q;for(O[W-1]=Q,Q=re=0;Q<16;Q++)for(F[Q]=re,k=0;k<1<<q[Q];k++)be[re++]=Q;for(re>>=7;Q<b;Q++)for(F[Q]=re<<7,k=0;k<1<<q[Q]-7;k++)be[256+re++]=Q;for(fe=0;fe<=z;fe++)Se[fe]=0;for(k=0;k<=143;)Le[2*k+1]=8,k++,Se[8]++;for(;k<=255;)Le[2*k+1]=9,k++,Se[9]++;for(;k<=279;)Le[2*k+1]=7,k++,Se[7]++;for(;k<=287;)Le[2*k+1]=8,k++,Se[8]++;for(Xt(Le,m+1,Se),k=0;k<b;k++)se[2*k+1]=5,se[2*k]=_t(k,5);ue=new U(Le,ce,v+1,m,z),he=new U(se,q,0,b,z),ve=new U(new Array(0),ye,0,I,$)}(),Z=!0),y.l_desc=new ee(y.dyn_ltree,ue),y.d_desc=new ee(y.dyn_dtree,he),y.bl_desc=new ee(y.bl_tree,ve),y.bi_buf=0,y.bi_valid=0,zt(y)},K._tr_stored_block=x,K._tr_flush_block=function(y,k,fe,W){var Q,re,Se=0;0<y.level?(y.strm.data_type===2&&(y.strm.data_type=function(Be){var Te,Ge=4093624447;for(Te=0;Te<=31;Te++,Ge>>>=1)if(1&Ge&&Be.dyn_ltree[2*Te]!==0)return R;if(Be.dyn_ltree[18]!==0||Be.dyn_ltree[20]!==0||Be.dyn_ltree[26]!==0)return T;for(Te=32;Te<v;Te++)if(Be.dyn_ltree[2*Te]!==0)return T;return R}(y)),vr(y,y.l_desc),vr(y,y.d_desc),Se=function(Be){var Te;for(Ce(Be,Be.dyn_ltree,Be.l_desc.max_code),Ce(Be,Be.dyn_dtree,Be.d_desc.max_code),vr(Be,Be.bl_desc),Te=I-1;3<=Te&&Be.bl_tree[2*_e[Te]+1]===0;Te--);return Be.opt_len+=3*(Te+1)+5+5+4,Te}(y),Q=y.opt_len+3+7>>>3,(re=y.static_len+3+7>>>3)<=Q&&(Q=re)):Q=re=fe+5,fe+4<=Q&&k!==-1?x(y,k,fe,W):y.strategy===4||re===Q?(tt(y,2+(W?1:0),3),Ar(y,Le,se)):(tt(y,4+(W?1:0),3),function(Be,Te,Ge,ut){var $e;for(tt(Be,Te-257,5),tt(Be,Ge-1,5),tt(Be,ut-4,4),$e=0;$e<ut;$e++)tt(Be,Be.bl_tree[2*_e[$e]+1],3);It(Be,Be.dyn_ltree,Te-1),It(Be,Be.dyn_dtree,Ge-1)}(y,y.l_desc.max_code+1,y.d_desc.max_code+1,Se+1),Ar(y,y.dyn_ltree,y.dyn_dtree)),zt(y),W&&Ze(y)},K._tr_tally=function(y,k,fe){return y.pending_buf[y.d_buf+2*y.last_lit]=k>>>8&255,y.pending_buf[y.d_buf+2*y.last_lit+1]=255&k,y.pending_buf[y.l_buf+y.last_lit]=255&fe,y.last_lit++,k===0?y.dyn_ltree[2*fe]++:(y.matches++,k--,y.dyn_ltree[2*(O[fe]+v+1)]++,y.dyn_dtree[2*de(k)]++),y.last_lit===y.lit_bufsize-1},K._tr_align=function(y){tt(y,2,3),nt(y,J,Le),function(k){k.bi_valid===16?(Xe(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)}(y)}},{"../utils/common":41}],53:[function(ae,Re,K){"use strict";Re.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(ae,Re,K){(function(g){(function(R,T){"use strict";if(!R.setImmediate){var l,d,N,v,m=1,b={},I=!1,L=R.document,z=Object.getPrototypeOf&&Object.getPrototypeOf(R);z=z&&z.setTimeout?z:R,l={}.toString.call(R.process)==="[object process]"?function(te){Fe.nextTick(function(){$(te)})}:function(){if(R.postMessage&&!R.importScripts){var te=!0,H=R.onmessage;return R.onmessage=function(){te=!1},R.postMessage("","*"),R.onmessage=H,te}}()?(v="setImmediate$"+Math.random()+"$",R.addEventListener?R.addEventListener("message",J,!1):R.attachEvent("onmessage",J),function(te){R.postMessage(v+te,"*")}):R.MessageChannel?((N=new MessageChannel).port1.onmessage=function(te){$(te.data)},function(te){N.port2.postMessage(te)}):L&&"onreadystatechange"in L.createElement("script")?(d=L.documentElement,function(te){var H=L.createElement("script");H.onreadystatechange=function(){$(te),H.onreadystatechange=null,d.removeChild(H),H=null},d.appendChild(H)}):function(te){setTimeout($,0,te)},z.setImmediate=function(te){typeof te!="function"&&(te=new Function(""+te));for(var H=new Array(arguments.length-1),G=0;G<H.length;G++)H[G]=arguments[G+1];var ce={callback:te,args:H};return b[m]=ce,l(m),m++},z.clearImmediate=P}function P(te){delete b[te]}function $(te){if(I)setTimeout($,0,te);else{var H=b[te];if(H){I=!0;try{(function(G){var ce=G.callback,q=G.args;switch(q.length){case 0:ce();break;case 1:ce(q[0]);break;case 2:ce(q[0],q[1]);break;case 3:ce(q[0],q[1],q[2]);break;default:ce.apply(T,q)}})(H)}finally{P(te),I=!1}}}}function J(te){te.source===R&&typeof te.data=="string"&&te.data.indexOf(v)===0&&$(+te.data.slice(v.length))}})(typeof self=="undefined"?g===void 0?this:g:self)}).call(this,typeof E.g!="undefined"?E.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},15342:function(tn){(function(E,le){tn.exports=le()})(typeof self!="undefined"?self:this,function(){return function(Mt){var E={};function le(Fe){if(E[Fe])return E[Fe].exports;var ae=E[Fe]={i:Fe,l:!1,exports:{}};return Mt[Fe].call(ae.exports,ae,ae.exports,le),ae.l=!0,ae.exports}return le.m=Mt,le.c=E,le.d=function(Fe,ae,Re){le.o(Fe,ae)||Object.defineProperty(Fe,ae,{enumerable:!0,get:Re})},le.r=function(Fe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Fe,"__esModule",{value:!0})},le.t=function(Fe,ae){if(ae&1&&(Fe=le(Fe)),ae&8||ae&4&&typeof Fe=="object"&&Fe&&Fe.__esModule)return Fe;var Re=Object.create(null);if(le.r(Re),Object.defineProperty(Re,"default",{enumerable:!0,value:Fe}),ae&2&&typeof Fe!="string")for(var K in Fe)le.d(Re,K,function(g){return Fe[g]}.bind(null,K));return Re},le.n=function(Fe){var ae=Fe&&Fe.__esModule?function(){return Fe.default}:function(){return Fe};return le.d(ae,"a",ae),ae},le.o=function(Fe,ae){return Object.prototype.hasOwnProperty.call(Fe,ae)},le.p="",le(le.s=1)}([function(Mt,E,le){},function(Mt,E,le){"use strict";le.r(E);var Fe=le(0),ae=function(){function Qe(p,S,D){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=p,this.start=S,this.end=D}return Qe.range=function(S,D){return D?!S||!S.loc||!D.loc||S.loc.lexer!==D.loc.lexer?null:new Qe(S.loc.lexer,S.loc.start,D.loc.end):S&&S.loc},Qe}(),Re=function(){function Qe(S,D){this.text=void 0,this.loc=void 0,this.text=S,this.loc=D}var p=Qe.prototype;return p.range=function(D,V){return new Qe(V,ae.range(this,D))},Qe}(),K=function Qe(p,S){this.position=void 0;var D="KaTeX parse error: "+p,V,pe=S&&S.loc;if(pe&&pe.start<=pe.end){var Ke=pe.lexer.input;V=pe.start;var lt=pe.end;V===Ke.length?D+=" at end of input: ":D+=" at position "+(V+1)+": ";var yt=Ke.slice(V,lt).replace(/[^]/g,"$&\u0332"),Ot;V>15?Ot="\u2026"+Ke.slice(V-15,V):Ot=Ke.slice(0,V);var ir;lt+15<Ke.length?ir=Ke.slice(lt,lt+15)+"\u2026":ir=Ke.slice(lt),D+=Ot+yt+ir}var wr=new Error(D);return wr.name="ParseError",wr.__proto__=Qe.prototype,wr.position=V,wr};K.prototype.__proto__=Error.prototype;var g=K,R=function(p,S){return p.indexOf(S)!==-1},T=function(p,S){return p===void 0?S:p},l=/([A-Z])/g,d=function(p){return p.replace(l,"-$1").toLowerCase()},N={"&":"&",">":">","<":"<",'"':""","'":"'"},v=/[&><"']/g;function m(Qe){return String(Qe).replace(v,function(p){return N[p]})}var b=function Qe(p){return p.type==="ordgroup"||p.type==="color"?p.body.length===1?Qe(p.body[0]):p:p.type==="font"?Qe(p.body):p},I=function(p){var S=b(p);return S.type==="mathord"||S.type==="textord"||S.type==="atom"},L=function(p){if(!p)throw new Error("Expected non-null, but got "+String(p));return p},z=function(p){var S=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(p);return S!=null?S[1]:"_relative"},P={contains:R,deflt:T,escape:m,hyphenate:d,getBaseElem:b,isCharacterBox:I,protocolFromUrl:z},$=function(){function Qe(S){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,S=S||{},this.displayMode=P.deflt(S.displayMode,!1),this.output=P.deflt(S.output,"htmlAndMathml"),this.leqno=P.deflt(S.leqno,!1),this.fleqn=P.deflt(S.fleqn,!1),this.throwOnError=P.deflt(S.throwOnError,!0),this.errorColor=P.deflt(S.errorColor,"#cc0000"),this.macros=S.macros||{},this.minRuleThickness=Math.max(0,P.deflt(S.minRuleThickness,0)),this.colorIsTextColor=P.deflt(S.colorIsTextColor,!1),this.strict=P.deflt(S.strict,"warn"),this.trust=P.deflt(S.trust,!1),this.maxSize=Math.max(0,P.deflt(S.maxSize,1/0)),this.maxExpand=Math.max(0,P.deflt(S.maxExpand,1e3))}var p=Qe.prototype;return p.reportNonstrict=function(D,V,pe){var Ke=this.strict;if(typeof Ke=="function"&&(Ke=Ke(D,V,pe)),!(!Ke||Ke==="ignore")){if(Ke===!0||Ke==="error")throw new g("LaTeX-incompatible input and strict mode is set to 'error': "+(V+" ["+D+"]"),pe);Ke==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(V+" ["+D+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Ke+"': "+V+" ["+D+"]"))}},p.useStrictBehavior=function(D,V,pe){var Ke=this.strict;if(typeof Ke=="function")try{Ke=Ke(D,V,pe)}catch(lt){Ke="error"}return!Ke||Ke==="ignore"?!1:Ke===!0||Ke==="error"?!0:Ke==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(V+" ["+D+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Ke+"': "+V+" ["+D+"]")),!1)},p.isTrusted=function(D){D.url&&!D.protocol&&(D.protocol=P.protocolFromUrl(D.url));var V=typeof this.trust=="function"?this.trust(D):this.trust;return!!V},Qe}(),J=function(){function Qe(S,D,V){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=S,this.size=D,this.cramped=V}var p=Qe.prototype;return p.sup=function(){return se[be[this.id]]},p.sub=function(){return se[O[this.id]]},p.fracNum=function(){return se[Ee[this.id]]},p.fracDen=function(){return se[ue[this.id]]},p.cramp=function(){return se[he[this.id]]},p.text=function(){return se[ve[this.id]]},p.isTight=function(){return this.size>=2},Qe}(),te=0,H=1,G=2,ce=3,q=4,ye=5,_e=6,Le=7,se=[new J(te,0,!1),new J(H,0,!0),new J(G,1,!1),new J(ce,1,!0),new J(q,2,!1),new J(ye,2,!0),new J(_e,3,!1),new J(Le,3,!0)],be=[q,ye,q,ye,_e,Le,_e,Le],O=[ye,ye,ye,ye,Le,Le,Le,Le],Ee=[G,ce,q,ye,_e,Le,_e,Le],ue=[ce,ce,ye,ye,Le,Le,Le,Le],he=[H,H,ce,ce,ye,ye,Le,Le],ve=[te,H,G,ce,G,ce,G,ce],F={DISPLAY:se[te],TEXT:se[G],SCRIPT:se[q],SCRIPTSCRIPT:se[_e]},U=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function ee(Qe){for(var p=0;p<U.length;p++)for(var S=U[p],D=0;D<S.blocks.length;D++){var V=S.blocks[D];if(Qe>=V[0]&&Qe<=V[1])return S.name}return null}var de=[];U.forEach(function(Qe){return Qe.blocks.forEach(function(p){return de.push.apply(de,p)})});function Xe(Qe){for(var p=0;p<de.length;p+=2)if(Qe>=de[p]&&Qe<=de[p+1])return!0;return!1}var tt=80,nt=function(p,S){return"M95,"+(622+p+S)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+p/2.075+" -"+p+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+p)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+p)+" "+S+"h400000v"+(40+p)+"h-400000z"},_t=function(p,S){return"M263,"+(601+p+S)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+p/2.084+" -"+p+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+p)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+p)+" "+S+"h400000v"+(40+p)+"h-400000z"},Xt=function(p,S){return"M983 "+(10+p+S)+`
|
|
|
l`+p/3.13+" -"+p+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+p)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+p)+" "+S+"h400000v"+(40+p)+"h-400000z"},zt=function(p,S){return"M424,"+(2398+p+S)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+p/4.223+" -"+p+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+p)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+p)+" "+S+`
|
|
|
h400000v`+(40+p)+"h-400000z"},Ze=function(p,S){return"M473,"+(2713+p+S)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+p/5.298+" -"+p+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+p)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+p)+" "+S+"h400000v"+(40+p)+"H1017.7z"},fr=function(p,S,D){var V=D-54-S-p;return"M702 "+(p+S)+"H400000"+(40+p)+`
|
|
|
H742v`+V+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+S+"H400000v"+(40+p)+"H742z"},yr=function(p,S,D){S=1e3*S;var V="";switch(p){case"sqrtMain":V=nt(S,tt);break;case"sqrtSize1":V=_t(S,tt);break;case"sqrtSize2":V=Xt(S,tt);break;case"sqrtSize3":V=zt(S,tt);break;case"sqrtSize4":V=Ze(S,tt);break;case"sqrtTall":V=fr(S,tt,D)}return V},Ar={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},vr=function(){function Qe(S){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=S,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var p=Qe.prototype;return p.hasClass=function(D){return P.contains(this.classes,D)},p.toNode=function(){for(var D=document.createDocumentFragment(),V=0;V<this.children.length;V++)D.appendChild(this.children[V].toNode());return D},p.toMarkup=function(){for(var D="",V=0;V<this.children.length;V++)D+=this.children[V].toMarkup();return D},p.toText=function(){var D=function(pe){return pe.toText()};return this.children.map(D).join("")},Qe}(),Ce=function(p){return p.filter(function(S){return S}).join(" ")},It=function(p,S,D){if(this.classes=p||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=D||{},S){S.style.isTight()&&this.classes.push("mtight");var V=S.getColor();V&&(this.style.color=V)}},Z=function(p){var S=document.createElement(p);S.className=Ce(this.classes);for(var D in this.style)this.style.hasOwnProperty(D)&&(S.style[D]=this.style[D]);for(var V in this.attributes)this.attributes.hasOwnProperty(V)&&S.setAttribute(V,this.attributes[V]);for(var pe=0;pe<this.children.length;pe++)S.appendChild(this.children[pe].toNode());return S},x=function(p){var S="<"+p;this.classes.length&&(S+=' class="'+P.escape(Ce(this.classes))+'"');var D="";for(var V in this.style)this.style.hasOwnProperty(V)&&(D+=P.hyphenate(V)+":"+this.style[V]+";");D&&(S+=' style="'+P.escape(D)+'"');for(var pe in this.attributes)this.attributes.hasOwnProperty(pe)&&(S+=" "+pe+'="'+P.escape(this.attributes[pe])+'"');S+=">";for(var Ke=0;Ke<this.children.length;Ke++)S+=this.children[Ke].toMarkup();return S+="</"+p+">",S},y=function(){function Qe(S,D,V,pe){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,It.call(this,S,V,pe),this.children=D||[]}var p=Qe.prototype;return p.setAttribute=function(D,V){this.attributes[D]=V},p.hasClass=function(D){return P.contains(this.classes,D)},p.toNode=function(){return Z.call(this,"span")},p.toMarkup=function(){return x.call(this,"span")},Qe}(),k=function(){function Qe(S,D,V,pe){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,It.call(this,D,pe),this.children=V||[],this.setAttribute("href",S)}var p=Qe.prototype;return p.setAttribute=function(D,V){this.attributes[D]=V},p.hasClass=function(D){return P.contains(this.classes,D)},p.toNode=function(){return Z.call(this,"a")},p.toMarkup=function(){return x.call(this,"a")},Qe}(),fe=function(){function Qe(S,D,V){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=D,this.src=S,this.classes=["mord"],this.style=V}var p=Qe.prototype;return p.hasClass=function(D){return P.contains(this.classes,D)},p.toNode=function(){var D=document.createElement("img");D.src=this.src,D.alt=this.alt,D.className="mord";for(var V in this.style)this.style.hasOwnProperty(V)&&(D.style[V]=this.style[V]);return D},p.toMarkup=function(){var D="<img src='"+this.src+" 'alt='"+this.alt+"' ",V="";for(var pe in this.style)this.style.hasOwnProperty(pe)&&(V+=P.hyphenate(pe)+":"+this.style[pe]+";");return V&&(D+=' style="'+P.escape(V)+'"'),D+="'/>",D},Qe}(),W={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Q=function(){function Qe(S,D,V,pe,Ke,lt,yt,Ot){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=S,this.height=D||0,this.depth=V||0,this.italic=pe||0,this.skew=Ke||0,this.width=lt||0,this.classes=yt||[],this.style=Ot||{},this.maxFontSize=0;var ir=ee(this.text.charCodeAt(0));ir&&this.classes.push(ir+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=W[this.text])}var p=Qe.prototype;return p.hasClass=function(D){return P.contains(this.classes,D)},p.toNode=function(){var D=document.createTextNode(this.text),V=null;this.italic>0&&(V=document.createElement("span"),V.style.marginRight=this.italic+"em"),this.classes.length>0&&(V=V||document.createElement("span"),V.className=Ce(this.classes));for(var pe in this.style)this.style.hasOwnProperty(pe)&&(V=V||document.createElement("span"),V.style[pe]=this.style[pe]);return V?(V.appendChild(D),V):D},p.toMarkup=function(){var D=!1,V="<span";this.classes.length&&(D=!0,V+=' class="',V+=P.escape(Ce(this.classes)),V+='"');var pe="";this.italic>0&&(pe+="margin-right:"+this.italic+"em;");for(var Ke in this.style)this.style.hasOwnProperty(Ke)&&(pe+=P.hyphenate(Ke)+":"+this.style[Ke]+";");pe&&(D=!0,V+=' style="'+P.escape(pe)+'"');var lt=P.escape(this.text);return D?(V+=">",V+=lt,V+="</span>",V):lt},Qe}(),re=function(){function Qe(S,D){this.children=void 0,this.attributes=void 0,this.children=S||[],this.attributes=D||{}}var p=Qe.prototype;return p.toNode=function(){var D="http://www.w3.org/2000/svg",V=document.createElementNS(D,"svg");for(var pe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,pe)&&V.setAttribute(pe,this.attributes[pe]);for(var Ke=0;Ke<this.children.length;Ke++)V.appendChild(this.children[Ke].toNode());return V},p.toMarkup=function(){var D="<svg";for(var V in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,V)&&(D+=" "+V+"='"+this.attributes[V]+"'");D+=">";for(var pe=0;pe<this.children.length;pe++)D+=this.children[pe].toMarkup();return D+="</svg>",D},Qe}(),Se=function(){function Qe(S,D){this.pathName=void 0,this.alternate=void 0,this.pathName=S,this.alternate=D}var p=Qe.prototype;return p.toNode=function(){var D="http://www.w3.org/2000/svg",V=document.createElementNS(D,"path");return this.alternate?V.setAttribute("d",this.alternate):V.setAttribute("d",Ar[this.pathName]),V},p.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Ar[this.pathName]+"'/>"},Qe}(),Be=function(){function Qe(S){this.attributes=void 0,this.attributes=S||{}}var p=Qe.prototype;return p.toNode=function(){var D="http://www.w3.org/2000/svg",V=document.createElementNS(D,"line");for(var pe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,pe)&&V.setAttribute(pe,this.attributes[pe]);return V},p.toMarkup=function(){var D="<line";for(var V in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,V)&&(D+=" "+V+"='"+this.attributes[V]+"'");return D+="/>",D},Qe}();function Te(Qe){if(Qe instanceof Q)return Qe;throw new Error("Expected symbolNode but got "+String(Qe)+".")}function Ge(Qe){if(Qe instanceof y)return Qe;throw new Error("Expected span<HtmlDomNode> but got "+String(Qe)+".")}var ut={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},$e={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Je={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function At(Qe,p){ut[Qe]=p}function ze(Qe,p,S){if(!ut[p])throw new Error("Font metrics not found for font: "+p+".");var D=Qe.charCodeAt(0),V=ut[p][D];if(!V&&Qe[0]in Je&&(D=Je[Qe[0]].charCodeAt(0),V=ut[p][D]),!V&&S==="text"&&Xe(D)&&(V=ut[p][77]),V)return{depth:V[0],height:V[1],italic:V[2],skew:V[3],width:V[4]}}var He={};function vt(Qe){var p;if(Qe>=5?p=0:Qe>=3?p=1:p=2,!He[p]){var S=He[p]={cssEmPerMu:$e.quad[p]/18};for(var D in $e)$e.hasOwnProperty(D)&&(S[D]=$e[D][p])}return He[p]}var jt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Dt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},lr={math:{},text:{}},gr=lr;function ne(Qe,p,S,D,V,pe){lr[Qe][V]={font:p,group:S,replace:D},pe&&D&&(lr[Qe][D]=lr[Qe][V])}var we="math",Vt="text",Ue="main",it="ams",Rr="accent-token",Tt="bin",Rt="close",$t="inner",qe="mathord",pt="op-token",rt="open",Ht="punct",Oe="rel",$r="spacing",Bt="textord";ne(we,Ue,Oe,"\u2261","\\equiv",!0),ne(we,Ue,Oe,"\u227A","\\prec",!0),ne(we,Ue,Oe,"\u227B","\\succ",!0),ne(we,Ue,Oe,"\u223C","\\sim",!0),ne(we,Ue,Oe,"\u22A5","\\perp"),ne(we,Ue,Oe,"\u2AAF","\\preceq",!0),ne(we,Ue,Oe,"\u2AB0","\\succeq",!0),ne(we,Ue,Oe,"\u2243","\\simeq",!0),ne(we,Ue,Oe,"\u2223","\\mid",!0),ne(we,Ue,Oe,"\u226A","\\ll",!0),ne(we,Ue,Oe,"\u226B","\\gg",!0),ne(we,Ue,Oe,"\u224D","\\asymp",!0),ne(we,Ue,Oe,"\u2225","\\parallel"),ne(we,Ue,Oe,"\u22C8","\\bowtie",!0),ne(we,Ue,Oe,"\u2323","\\smile",!0),ne(we,Ue,Oe,"\u2291","\\sqsubseteq",!0),ne(we,Ue,Oe,"\u2292","\\sqsupseteq",!0),ne(we,Ue,Oe,"\u2250","\\doteq",!0),ne(we,Ue,Oe,"\u2322","\\frown",!0),ne(we,Ue,Oe,"\u220B","\\ni",!0),ne(we,Ue,Oe,"\u221D","\\propto",!0),ne(we,Ue,Oe,"\u22A2","\\vdash",!0),ne(we,Ue,Oe,"\u22A3","\\dashv",!0),ne(we,Ue,Oe,"\u220B","\\owns"),ne(we,Ue,Ht,".","\\ldotp"),ne(we,Ue,Ht,"\u22C5","\\cdotp"),ne(we,Ue,Bt,"#","\\#"),ne(Vt,Ue,Bt,"#","\\#"),ne(we,Ue,Bt,"&","\\&"),ne(Vt,Ue,Bt,"&","\\&"),ne(we,Ue,Bt,"\u2135","\\aleph",!0),ne(we,Ue,Bt,"\u2200","\\forall",!0),ne(we,Ue,Bt,"\u210F","\\hbar",!0),ne(we,Ue,Bt,"\u2203","\\exists",!0),ne(we,Ue,Bt,"\u2207","\\nabla",!0),ne(we,Ue,Bt,"\u266D","\\flat",!0),ne(we,Ue,Bt,"\u2113","\\ell",!0),ne(we,Ue,Bt,"\u266E","\\natural",!0),ne(we,Ue,Bt,"\u2663","\\clubsuit",!0),ne(we,Ue,Bt,"\u2118","\\wp",!0),ne(we,Ue,Bt,"\u266F","\\sharp",!0),ne(we,Ue,Bt,"\u2662","\\diamondsuit",!0),ne(we,Ue,Bt,"\u211C","\\Re",!0),ne(we,Ue,Bt,"\u2661","\\heartsuit",!0),ne(we,Ue,Bt,"\u2111","\\Im",!0),ne(we,Ue,Bt,"\u2660","\\spadesuit",!0),ne(Vt,Ue,Bt,"\xA7","\\S",!0),ne(Vt,Ue,Bt,"\xB6","\\P",!0),ne(we,Ue,Bt,"\u2020","\\dag"),ne(Vt,Ue,Bt,"\u2020","\\dag"),ne(Vt,Ue,Bt,"\u2020","\\textdagger"),ne(we,Ue,Bt,"\u2021","\\ddag"),ne(Vt,Ue,Bt,"\u2021","\\ddag"),ne(Vt,Ue,Bt,"\u2021","\\textdaggerdbl"),ne(we,Ue,Rt,"\u23B1","\\rmoustache",!0),ne(we,Ue,rt,"\u23B0","\\lmoustache",!0),ne(we,Ue,Rt,"\u27EF","\\rgroup",!0),ne(we,Ue,rt,"\u27EE","\\lgroup",!0),ne(we,Ue,Tt,"\u2213","\\mp",!0),ne(we,Ue,Tt,"\u2296","\\ominus",!0),ne(we,Ue,Tt,"\u228E","\\uplus",!0),ne(we,Ue,Tt,"\u2293","\\sqcap",!0),ne(we,Ue,Tt,"\u2217","\\ast"),ne(we,Ue,Tt,"\u2294","\\sqcup",!0),ne(we,Ue,Tt,"\u25EF","\\bigcirc"),ne(we,Ue,Tt,"\u2219","\\bullet"),ne(we,Ue,Tt,"\u2021","\\ddagger"),ne(we,Ue,Tt,"\u2240","\\wr",!0),ne(we,Ue,Tt,"\u2A3F","\\amalg"),ne(we,Ue,Tt,"&","\\And"),ne(we,Ue,Oe,"\u27F5","\\longleftarrow",!0),ne(we,Ue,Oe,"\u21D0","\\Leftarrow",!0),ne(we,Ue,Oe,"\u27F8","\\Longleftarrow",!0),ne(we,Ue,Oe,"\u27F6","\\longrightarrow",!0),ne(we,Ue,Oe,"\u21D2","\\Rightarrow",!0),ne(we,Ue,Oe,"\u27F9","\\Longrightarrow",!0),ne(we,Ue,Oe,"\u2194","\\leftrightarrow",!0),ne(we,Ue,Oe,"\u27F7","\\longleftrightarrow",!0),ne(we,Ue,Oe,"\u21D4","\\Leftrightarrow",!0),ne(we,Ue,Oe,"\u27FA","\\Longleftrightarrow",!0),ne(we,Ue,Oe,"\u21A6","\\mapsto",!0),ne(we,Ue,Oe,"\u27FC","\\longmapsto",!0),ne(we,Ue,Oe,"\u2197","\\nearrow",!0),ne(we,Ue,Oe,"\u21A9","\\hookleftarrow",!0),ne(we,Ue,Oe,"\u21AA","\\hookrightarrow",!0),ne(we,Ue,Oe,"\u2198","\\searrow",!0),ne(we,Ue,Oe,"\u21BC","\\leftharpoonup",!0),ne(we,Ue,Oe,"\u21C0","\\rightharpoonup",!0),ne(we,Ue,Oe,"\u2199","\\swarrow",!0),ne(we,Ue,Oe,"\u21BD","\\leftharpoondown",!0),ne(we,Ue,Oe,"\u21C1","\\rightharpoondown",!0),ne(we,Ue,Oe,"\u2196","\\nwarrow",!0),ne(we,Ue,Oe,"\u21CC","\\rightleftharpoons",!0),ne(we,it,Oe,"\u226E","\\nless",!0),ne(we,it,Oe,"\uE010","\\@nleqslant"),ne(we,it,Oe,"\uE011","\\@nleqq"),ne(we,it,Oe,"\u2A87","\\lneq",!0),ne(we,it,Oe,"\u2268","\\lneqq",!0),ne(we,it,Oe,"\uE00C","\\@lvertneqq"),ne(we,it,Oe,"\u22E6","\\lnsim",!0),ne(we,it,Oe,"\u2A89","\\lnapprox",!0),ne(we,it,Oe,"\u2280","\\nprec",!0),ne(we,it,Oe,"\u22E0","\\npreceq",!0),ne(we,it,Oe,"\u22E8","\\precnsim",!0),ne(we,it,Oe,"\u2AB9","\\precnapprox",!0),ne(we,it,Oe,"\u2241","\\nsim",!0),ne(we,it,Oe,"\uE006","\\@nshortmid"),ne(we,it,Oe,"\u2224","\\nmid",!0),ne(we,it,Oe,"\u22AC","\\nvdash",!0),ne(we,it,Oe,"\u22AD","\\nvDash",!0),ne(we,it,Oe,"\u22EA","\\ntriangleleft"),ne(we,it,Oe,"\u22EC","\\ntrianglelefteq",!0),ne(we,it,Oe,"\u228A","\\subsetneq",!0),ne(we,it,Oe,"\uE01A","\\@varsubsetneq"),ne(we,it,Oe,"\u2ACB","\\subsetneqq",!0),ne(we,it,Oe,"\uE017","\\@varsubsetneqq"),ne(we,it,Oe,"\u226F","\\ngtr",!0),ne(we,it,Oe,"\uE00F","\\@ngeqslant"),ne(we,it,Oe,"\uE00E","\\@ngeqq"),ne(we,it,Oe,"\u2A88","\\gneq",!0),ne(we,it,Oe,"\u2269","\\gneqq",!0),ne(we,it,Oe,"\uE00D","\\@gvertneqq"),ne(we,it,Oe,"\u22E7","\\gnsim",!0),ne(we,it,Oe,"\u2A8A","\\gnapprox",!0),ne(we,it,Oe,"\u2281","\\nsucc",!0),ne(we,it,Oe,"\u22E1","\\nsucceq",!0),ne(we,it,Oe,"\u22E9","\\succnsim",!0),ne(we,it,Oe,"\u2ABA","\\succnapprox",!0),ne(we,it,Oe,"\u2246","\\ncong",!0),ne(we,it,Oe,"\uE007","\\@nshortparallel"),ne(we,it,Oe,"\u2226","\\nparallel",!0),ne(we,it,Oe,"\u22AF","\\nVDash",!0),ne(we,it,Oe,"\u22EB","\\ntriangleright"),ne(we,it,Oe,"\u22ED","\\ntrianglerighteq",!0),ne(we,it,Oe,"\uE018","\\@nsupseteqq"),ne(we,it,Oe,"\u228B","\\supsetneq",!0),ne(we,it,Oe,"\uE01B","\\@varsupsetneq"),ne(we,it,Oe,"\u2ACC","\\supsetneqq",!0),ne(we,it,Oe,"\uE019","\\@varsupsetneqq"),ne(we,it,Oe,"\u22AE","\\nVdash",!0),ne(we,it,Oe,"\u2AB5","\\precneqq",!0),ne(we,it,Oe,"\u2AB6","\\succneqq",!0),ne(we,it,Oe,"\uE016","\\@nsubseteqq"),ne(we,it,Tt,"\u22B4","\\unlhd"),ne(we,it,Tt,"\u22B5","\\unrhd"),ne(we,it,Oe,"\u219A","\\nleftarrow",!0),ne(we,it,Oe,"\u219B","\\nrightarrow",!0),ne(we,it,Oe,"\u21CD","\\nLeftarrow",!0),ne(we,it,Oe,"\u21CF","\\nRightarrow",!0),ne(we,it,Oe,"\u21AE","\\nleftrightarrow",!0),ne(we,it,Oe,"\u21CE","\\nLeftrightarrow",!0),ne(we,it,Oe,"\u25B3","\\vartriangle"),ne(we,it,Bt,"\u210F","\\hslash"),ne(we,it,Bt,"\u25BD","\\triangledown"),ne(we,it,Bt,"\u25CA","\\lozenge"),ne(we,it,Bt,"\u24C8","\\circledS"),ne(we,it,Bt,"\xAE","\\circledR"),ne(Vt,it,Bt,"\xAE","\\circledR"),ne(we,it,Bt,"\u2221","\\measuredangle",!0),ne(we,it,Bt,"\u2204","\\nexists"),ne(we,it,Bt,"\u2127","\\mho"),ne(we,it,Bt,"\u2132","\\Finv",!0),ne(we,it,Bt,"\u2141","\\Game",!0),ne(we,it,Bt,"\u2035","\\backprime"),ne(we,it,Bt,"\u25B2","\\blacktriangle"),ne(we,it,Bt,"\u25BC","\\blacktriangledown"),ne(we,it,Bt,"\u25A0","\\blacksquare"),ne(we,it,Bt,"\u29EB","\\blacklozenge"),ne(we,it,Bt,"\u2605","\\bigstar"),ne(we,it,Bt,"\u2222","\\sphericalangle",!0),ne(we,it,Bt,"\u2201","\\complement",!0),ne(we,it,Bt,"\xF0","\\eth",!0),ne(we,it,Bt,"\u2571","\\diagup"),ne(we,it,Bt,"\u2572","\\diagdown"),ne(we,it,Bt,"\u25A1","\\square"),ne(we,it,Bt,"\u25A1","\\Box"),ne(we,it,Bt,"\u25CA","\\Diamond"),ne(we,it,Bt,"\xA5","\\yen",!0),ne(Vt,it,Bt,"\xA5","\\yen",!0),ne(we,it,Bt,"\u2713","\\checkmark",!0),ne(Vt,it,Bt,"\u2713","\\checkmark"),ne(we,it,Bt,"\u2136","\\beth",!0),ne(we,it,Bt,"\u2138","\\daleth",!0),ne(we,it,Bt,"\u2137","\\gimel",!0),ne(we,it,Bt,"\u03DD","\\digamma",!0),ne(we,it,Bt,"\u03F0","\\varkappa"),ne(we,it,rt,"\u250C","\\ulcorner",!0),ne(we,it,Rt,"\u2510","\\urcorner",!0),ne(we,it,rt,"\u2514","\\llcorner",!0),ne(we,it,Rt,"\u2518","\\lrcorner",!0),ne(we,it,Oe,"\u2266","\\leqq",!0),ne(we,it,Oe,"\u2A7D","\\leqslant",!0),ne(we,it,Oe,"\u2A95","\\eqslantless",!0),ne(we,it,Oe,"\u2272","\\lesssim",!0),ne(we,it,Oe,"\u2A85","\\lessapprox",!0),ne(we,it,Oe,"\u224A","\\approxeq",!0),ne(we,it,Tt,"\u22D6","\\lessdot"),ne(we,it,Oe,"\u22D8","\\lll",!0),ne(we,it,Oe,"\u2276","\\lessgtr",!0),ne(we,it,Oe,"\u22DA","\\lesseqgtr",!0),ne(we,it,Oe,"\u2A8B","\\lesseqqgtr",!0),ne(we,it,Oe,"\u2251","\\doteqdot"),ne(we,it,Oe,"\u2253","\\risingdotseq",!0),ne(we,it,Oe,"\u2252","\\fallingdotseq",!0),ne(we,it,Oe,"\u223D","\\backsim",!0),ne(we,it,Oe,"\u22CD","\\backsimeq",!0),ne(we,it,Oe,"\u2AC5","\\subseteqq",!0),ne(we,it,Oe,"\u22D0","\\Subset",!0),ne(we,it,Oe,"\u228F","\\sqsubset",!0),ne(we,it,Oe,"\u227C","\\preccurlyeq",!0),ne(we,it,Oe,"\u22DE","\\curlyeqprec",!0),ne(we,it,Oe,"\u227E","\\precsim",!0),ne(we,it,Oe,"\u2AB7","\\precapprox",!0),ne(we,it,Oe,"\u22B2","\\vartriangleleft"),ne(we,it,Oe,"\u22B4","\\trianglelefteq"),ne(we,it,Oe,"\u22A8","\\vDash",!0),ne(we,it,Oe,"\u22AA","\\Vvdash",!0),ne(we,it,Oe,"\u2323","\\smallsmile"),ne(we,it,Oe,"\u2322","\\smallfrown"),ne(we,it,Oe,"\u224F","\\bumpeq",!0),ne(we,it,Oe,"\u224E","\\Bumpeq",!0),ne(we,it,Oe,"\u2267","\\geqq",!0),ne(we,it,Oe,"\u2A7E","\\geqslant",!0),ne(we,it,Oe,"\u2A96","\\eqslantgtr",!0),ne(we,it,Oe,"\u2273","\\gtrsim",!0),ne(we,it,Oe,"\u2A86","\\gtrapprox",!0),ne(we,it,Tt,"\u22D7","\\gtrdot"),ne(we,it,Oe,"\u22D9","\\ggg",!0),ne(we,it,Oe,"\u2277","\\gtrless",!0),ne(we,it,Oe,"\u22DB","\\gtreqless",!0),ne(we,it,Oe,"\u2A8C","\\gtreqqless",!0),ne(we,it,Oe,"\u2256","\\eqcirc",!0),ne(we,it,Oe,"\u2257","\\circeq",!0),ne(we,it,Oe,"\u225C","\\triangleq",!0),ne(we,it,Oe,"\u223C","\\thicksim"),ne(we,it,Oe,"\u2248","\\thickapprox"),ne(we,it,Oe,"\u2AC6","\\supseteqq",!0),ne(we,it,Oe,"\u22D1","\\Supset",!0),ne(we,it,Oe,"\u2290","\\sqsupset",!0),ne(we,it,Oe,"\u227D","\\succcurlyeq",!0),ne(we,it,Oe,"\u22DF","\\curlyeqsucc",!0),ne(we,it,Oe,"\u227F","\\succsim",!0),ne(we,it,Oe,"\u2AB8","\\succapprox",!0),ne(we,it,Oe,"\u22B3","\\vartriangleright"),ne(we,it,Oe,"\u22B5","\\trianglerighteq"),ne(we,it,Oe,"\u22A9","\\Vdash",!0),ne(we,it,Oe,"\u2223","\\shortmid"),ne(we,it,Oe,"\u2225","\\shortparallel"),ne(we,it,Oe,"\u226C","\\between",!0),ne(we,it,Oe,"\u22D4","\\pitchfork",!0),ne(we,it,Oe,"\u221D","\\varpropto"),ne(we,it,Oe,"\u25C0","\\blacktriangleleft"),ne(we,it,Oe,"\u2234","\\therefore",!0),ne(we,it,Oe,"\u220D","\\backepsilon"),ne(we,it,Oe,"\u25B6","\\blacktriangleright"),ne(we,it,Oe,"\u2235","\\because",!0),ne(we,it,Oe,"\u22D8","\\llless"),ne(we,it,Oe,"\u22D9","\\gggtr"),ne(we,it,Tt,"\u22B2","\\lhd"),ne(we,it,Tt,"\u22B3","\\rhd"),ne(we,it,Oe,"\u2242","\\eqsim",!0),ne(we,Ue,Oe,"\u22C8","\\Join"),ne(we,it,Oe,"\u2251","\\Doteq",!0),ne(we,it,Tt,"\u2214","\\dotplus",!0),ne(we,it,Tt,"\u2216","\\smallsetminus"),ne(we,it,Tt,"\u22D2","\\Cap",!0),ne(we,it,Tt,"\u22D3","\\Cup",!0),ne(we,it,Tt,"\u2A5E","\\doublebarwedge",!0),ne(we,it,Tt,"\u229F","\\boxminus",!0),ne(we,it,Tt,"\u229E","\\boxplus",!0),ne(we,it,Tt,"\u22C7","\\divideontimes",!0),ne(we,it,Tt,"\u22C9","\\ltimes",!0),ne(we,it,Tt,"\u22CA","\\rtimes",!0),ne(we,it,Tt,"\u22CB","\\leftthreetimes",!0),ne(we,it,Tt,"\u22CC","\\rightthreetimes",!0),ne(we,it,Tt,"\u22CF","\\curlywedge",!0),ne(we,it,Tt,"\u22CE","\\curlyvee",!0),ne(we,it,Tt,"\u229D","\\circleddash",!0),ne(we,it,Tt,"\u229B","\\circledast",!0),ne(we,it,Tt,"\u22C5","\\centerdot"),ne(we,it,Tt,"\u22BA","\\intercal",!0),ne(we,it,Tt,"\u22D2","\\doublecap"),ne(we,it,Tt,"\u22D3","\\doublecup"),ne(we,it,Tt,"\u22A0","\\boxtimes",!0),ne(we,it,Oe,"\u21E2","\\dashrightarrow",!0),ne(we,it,Oe,"\u21E0","\\dashleftarrow",!0),ne(we,it,Oe,"\u21C7","\\leftleftarrows",!0),ne(we,it,Oe,"\u21C6","\\leftrightarrows",!0),ne(we,it,Oe,"\u21DA","\\Lleftarrow",!0),ne(we,it,Oe,"\u219E","\\twoheadleftarrow",!0),ne(we,it,Oe,"\u21A2","\\leftarrowtail",!0),ne(we,it,Oe,"\u21AB","\\looparrowleft",!0),ne(we,it,Oe,"\u21CB","\\leftrightharpoons",!0),ne(we,it,Oe,"\u21B6","\\curvearrowleft",!0),ne(we,it,Oe,"\u21BA","\\circlearrowleft",!0),ne(we,it,Oe,"\u21B0","\\Lsh",!0),ne(we,it,Oe,"\u21C8","\\upuparrows",!0),ne(we,it,Oe,"\u21BF","\\upharpoonleft",!0),ne(we,it,Oe,"\u21C3","\\downharpoonleft",!0),ne(we,it,Oe,"\u22B8","\\multimap",!0),ne(we,it,Oe,"\u21AD","\\leftrightsquigarrow",!0),ne(we,it,Oe,"\u21C9","\\rightrightarrows",!0),ne(we,it,Oe,"\u21C4","\\rightleftarrows",!0),ne(we,it,Oe,"\u21A0","\\twoheadrightarrow",!0),ne(we,it,Oe,"\u21A3","\\rightarrowtail",!0),ne(we,it,Oe,"\u21AC","\\looparrowright",!0),ne(we,it,Oe,"\u21B7","\\curvearrowright",!0),ne(we,it,Oe,"\u21BB","\\circlearrowright",!0),ne(we,it,Oe,"\u21B1","\\Rsh",!0),ne(we,it,Oe,"\u21CA","\\downdownarrows",!0),ne(we,it,Oe,"\u21BE","\\upharpoonright",!0),ne(we,it,Oe,"\u21C2","\\downharpoonright",!0),ne(we,it,Oe,"\u21DD","\\rightsquigarrow",!0),ne(we,it,Oe,"\u21DD","\\leadsto"),ne(we,it,Oe,"\u21DB","\\Rrightarrow",!0),ne(we,it,Oe,"\u21BE","\\restriction"),ne(we,Ue,Bt,"\u2018","`"),ne(we,Ue,Bt,"$","\\$"),ne(Vt,Ue,Bt,"$","\\$"),ne(Vt,Ue,Bt,"$","\\textdollar"),ne(we,Ue,Bt,"%","\\%"),ne(Vt,Ue,Bt,"%","\\%"),ne(we,Ue,Bt,"_","\\_"),ne(Vt,Ue,Bt,"_","\\_"),ne(Vt,Ue,Bt,"_","\\textunderscore"),ne(we,Ue,Bt,"\u2220","\\angle",!0),ne(we,Ue,Bt,"\u221E","\\infty",!0),ne(we,Ue,Bt,"\u2032","\\prime"),ne(we,Ue,Bt,"\u25B3","\\triangle"),ne(we,Ue,Bt,"\u0393","\\Gamma",!0),ne(we,Ue,Bt,"\u0394","\\Delta",!0),ne(we,Ue,Bt,"\u0398","\\Theta",!0),ne(we,Ue,Bt,"\u039B","\\Lambda",!0),ne(we,Ue,Bt,"\u039E","\\Xi",!0),ne(we,Ue,Bt,"\u03A0","\\Pi",!0),ne(we,Ue,Bt,"\u03A3","\\Sigma",!0),ne(we,Ue,Bt,"\u03A5","\\Upsilon",!0),ne(we,Ue,Bt,"\u03A6","\\Phi",!0),ne(we,Ue,Bt,"\u03A8","\\Psi",!0),ne(we,Ue,Bt,"\u03A9","\\Omega",!0),ne(we,Ue,Bt,"A","\u0391"),ne(we,Ue,Bt,"B","\u0392"),ne(we,Ue,Bt,"E","\u0395"),ne(we,Ue,Bt,"Z","\u0396"),ne(we,Ue,Bt,"H","\u0397"),ne(we,Ue,Bt,"I","\u0399"),ne(we,Ue,Bt,"K","\u039A"),ne(we,Ue,Bt,"M","\u039C"),ne(we,Ue,Bt,"N","\u039D"),ne(we,Ue,Bt,"O","\u039F"),ne(we,Ue,Bt,"P","\u03A1"),ne(we,Ue,Bt,"T","\u03A4"),ne(we,Ue,Bt,"X","\u03A7"),ne(we,Ue,Bt,"\xAC","\\neg",!0),ne(we,Ue,Bt,"\xAC","\\lnot"),ne(we,Ue,Bt,"\u22A4","\\top"),ne(we,Ue,Bt,"\u22A5","\\bot"),ne(we,Ue,Bt,"\u2205","\\emptyset"),ne(we,it,Bt,"\u2205","\\varnothing"),ne(we,Ue,qe,"\u03B1","\\alpha",!0),ne(we,Ue,qe,"\u03B2","\\beta",!0),ne(we,Ue,qe,"\u03B3","\\gamma",!0),ne(we,Ue,qe,"\u03B4","\\delta",!0),ne(we,Ue,qe,"\u03F5","\\epsilon",!0),ne(we,Ue,qe,"\u03B6","\\zeta",!0),ne(we,Ue,qe,"\u03B7","\\eta",!0),ne(we,Ue,qe,"\u03B8","\\theta",!0),ne(we,Ue,qe,"\u03B9","\\iota",!0),ne(we,Ue,qe,"\u03BA","\\kappa",!0),ne(we,Ue,qe,"\u03BB","\\lambda",!0),ne(we,Ue,qe,"\u03BC","\\mu",!0),ne(we,Ue,qe,"\u03BD","\\nu",!0),ne(we,Ue,qe,"\u03BE","\\xi",!0),ne(we,Ue,qe,"\u03BF","\\omicron",!0),ne(we,Ue,qe,"\u03C0","\\pi",!0),ne(we,Ue,qe,"\u03C1","\\rho",!0),ne(we,Ue,qe,"\u03C3","\\sigma",!0),ne(we,Ue,qe,"\u03C4","\\tau",!0),ne(we,Ue,qe,"\u03C5","\\upsilon",!0),ne(we,Ue,qe,"\u03D5","\\phi",!0),ne(we,Ue,qe,"\u03C7","\\chi",!0),ne(we,Ue,qe,"\u03C8","\\psi",!0),ne(we,Ue,qe,"\u03C9","\\omega",!0),ne(we,Ue,qe,"\u03B5","\\varepsilon",!0),ne(we,Ue,qe,"\u03D1","\\vartheta",!0),ne(we,Ue,qe,"\u03D6","\\varpi",!0),ne(we,Ue,qe,"\u03F1","\\varrho",!0),ne(we,Ue,qe,"\u03C2","\\varsigma",!0),ne(we,Ue,qe,"\u03C6","\\varphi",!0),ne(we,Ue,Tt,"\u2217","*"),ne(we,Ue,Tt,"+","+"),ne(we,Ue,Tt,"\u2212","-"),ne(we,Ue,Tt,"\u22C5","\\cdot",!0),ne(we,Ue,Tt,"\u2218","\\circ"),ne(we,Ue,Tt,"\xF7","\\div",!0),ne(we,Ue,Tt,"\xB1","\\pm",!0),ne(we,Ue,Tt,"\xD7","\\times",!0),ne(we,Ue,Tt,"\u2229","\\cap",!0),ne(we,Ue,Tt,"\u222A","\\cup",!0),ne(we,Ue,Tt,"\u2216","\\setminus"),ne(we,Ue,Tt,"\u2227","\\land"),ne(we,Ue,Tt,"\u2228","\\lor"),ne(we,Ue,Tt,"\u2227","\\wedge",!0),ne(we,Ue,Tt,"\u2228","\\vee",!0),ne(we,Ue,Bt,"\u221A","\\surd"),ne(we,Ue,rt,"(","("),ne(we,Ue,rt,"[","["),ne(we,Ue,rt,"\u27E8","\\langle",!0),ne(we,Ue,rt,"\u2223","\\lvert"),ne(we,Ue,rt,"\u2225","\\lVert"),ne(we,Ue,Rt,")",")"),ne(we,Ue,Rt,"]","]"),ne(we,Ue,Rt,"?","?"),ne(we,Ue,Rt,"!","!"),ne(we,Ue,Rt,"\u27E9","\\rangle",!0),ne(we,Ue,Rt,"\u2223","\\rvert"),ne(we,Ue,Rt,"\u2225","\\rVert"),ne(we,Ue,Oe,"=","="),ne(we,Ue,Oe,"<","<"),ne(we,Ue,Oe,">",">"),ne(we,Ue,Oe,":",":"),ne(we,Ue,Oe,"\u2248","\\approx",!0),ne(we,Ue,Oe,"\u2245","\\cong",!0),ne(we,Ue,Oe,"\u2265","\\ge"),ne(we,Ue,Oe,"\u2265","\\geq",!0),ne(we,Ue,Oe,"\u2190","\\gets"),ne(we,Ue,Oe,">","\\gt"),ne(we,Ue,Oe,"\u2208","\\in",!0),ne(we,Ue,Oe,"\uE020","\\@not"),ne(we,Ue,Oe,"\u2282","\\subset",!0),ne(we,Ue,Oe,"\u2283","\\supset",!0),ne(we,Ue,Oe,"\u2286","\\subseteq",!0),ne(we,Ue,Oe,"\u2287","\\supseteq",!0),ne(we,it,Oe,"\u2288","\\nsubseteq",!0),ne(we,it,Oe,"\u2289","\\nsupseteq",!0),ne(we,Ue,Oe,"\u22A8","\\models"),ne(we,Ue,Oe,"\u2190","\\leftarrow",!0),ne(we,Ue,Oe,"\u2264","\\le"),ne(we,Ue,Oe,"\u2264","\\leq",!0),ne(we,Ue,Oe,"<","\\lt"),ne(we,Ue,Oe,"\u2192","\\rightarrow",!0),ne(we,Ue,Oe,"\u2192","\\to"),ne(we,it,Oe,"\u2271","\\ngeq",!0),ne(we,it,Oe,"\u2270","\\nleq",!0),ne(we,Ue,$r,"\xA0","\\ "),ne(we,Ue,$r,"\xA0","~"),ne(we,Ue,$r,"\xA0","\\space"),ne(we,Ue,$r,"\xA0","\\nobreakspace"),ne(Vt,Ue,$r,"\xA0","\\ "),ne(Vt,Ue,$r,"\xA0","~"),ne(Vt,Ue,$r,"\xA0","\\space"),ne(Vt,Ue,$r,"\xA0","\\nobreakspace"),ne(we,Ue,$r,null,"\\nobreak"),ne(we,Ue,$r,null,"\\allowbreak"),ne(we,Ue,Ht,",",","),ne(we,Ue,Ht,";",";"),ne(we,it,Tt,"\u22BC","\\barwedge",!0),ne(we,it,Tt,"\u22BB","\\veebar",!0),ne(we,Ue,Tt,"\u2299","\\odot",!0),ne(we,Ue,Tt,"\u2295","\\oplus",!0),ne(we,Ue,Tt,"\u2297","\\otimes",!0),ne(we,Ue,Bt,"\u2202","\\partial",!0),ne(we,Ue,Tt,"\u2298","\\oslash",!0),ne(we,it,Tt,"\u229A","\\circledcirc",!0),ne(we,it,Tt,"\u22A1","\\boxdot",!0),ne(we,Ue,Tt,"\u25B3","\\bigtriangleup"),ne(we,Ue,Tt,"\u25BD","\\bigtriangledown"),ne(we,Ue,Tt,"\u2020","\\dagger"),ne(we,Ue,Tt,"\u22C4","\\diamond"),ne(we,Ue,Tt,"\u22C6","\\star"),ne(we,Ue,Tt,"\u25C3","\\triangleleft"),ne(we,Ue,Tt,"\u25B9","\\triangleright"),ne(we,Ue,rt,"{","\\{"),ne(Vt,Ue,Bt,"{","\\{"),ne(Vt,Ue,Bt,"{","\\textbraceleft"),ne(we,Ue,Rt,"}","\\}"),ne(Vt,Ue,Bt,"}","\\}"),ne(Vt,Ue,Bt,"}","\\textbraceright"),ne(we,Ue,rt,"{","\\lbrace"),ne(we,Ue,Rt,"}","\\rbrace"),ne(we,Ue,rt,"[","\\lbrack"),ne(Vt,Ue,Bt,"[","\\lbrack"),ne(we,Ue,Rt,"]","\\rbrack"),ne(Vt,Ue,Bt,"]","\\rbrack"),ne(we,Ue,rt,"(","\\lparen"),ne(we,Ue,Rt,")","\\rparen"),ne(Vt,Ue,Bt,"<","\\textless"),ne(Vt,Ue,Bt,">","\\textgreater"),ne(we,Ue,rt,"\u230A","\\lfloor",!0),ne(we,Ue,Rt,"\u230B","\\rfloor",!0),ne(we,Ue,rt,"\u2308","\\lceil",!0),ne(we,Ue,Rt,"\u2309","\\rceil",!0),ne(we,Ue,Bt,"\\","\\backslash"),ne(we,Ue,Bt,"\u2223","|"),ne(we,Ue,Bt,"\u2223","\\vert"),ne(Vt,Ue,Bt,"|","\\textbar"),ne(we,Ue,Bt,"\u2225","\\|"),ne(we,Ue,Bt,"\u2225","\\Vert"),ne(Vt,Ue,Bt,"\u2225","\\textbardbl"),ne(Vt,Ue,Bt,"~","\\textasciitilde"),ne(Vt,Ue,Bt,"\\","\\textbackslash"),ne(Vt,Ue,Bt,"^","\\textasciicircum"),ne(we,Ue,Oe,"\u2191","\\uparrow",!0),ne(we,Ue,Oe,"\u21D1","\\Uparrow",!0),ne(we,Ue,Oe,"\u2193","\\downarrow",!0),ne(we,Ue,Oe,"\u21D3","\\Downarrow",!0),ne(we,Ue,Oe,"\u2195","\\updownarrow",!0),ne(we,Ue,Oe,"\u21D5","\\Updownarrow",!0),ne(we,Ue,pt,"\u2210","\\coprod"),ne(we,Ue,pt,"\u22C1","\\bigvee"),ne(we,Ue,pt,"\u22C0","\\bigwedge"),ne(we,Ue,pt,"\u2A04","\\biguplus"),ne(we,Ue,pt,"\u22C2","\\bigcap"),ne(we,Ue,pt,"\u22C3","\\bigcup"),ne(we,Ue,pt,"\u222B","\\int"),ne(we,Ue,pt,"\u222B","\\intop"),ne(we,Ue,pt,"\u222C","\\iint"),ne(we,Ue,pt,"\u222D","\\iiint"),ne(we,Ue,pt,"\u220F","\\prod"),ne(we,Ue,pt,"\u2211","\\sum"),ne(we,Ue,pt,"\u2A02","\\bigotimes"),ne(we,Ue,pt,"\u2A01","\\bigoplus"),ne(we,Ue,pt,"\u2A00","\\bigodot"),ne(we,Ue,pt,"\u222E","\\oint"),ne(we,Ue,pt,"\u222F","\\oiint"),ne(we,Ue,pt,"\u2230","\\oiiint"),ne(we,Ue,pt,"\u2A06","\\bigsqcup"),ne(we,Ue,pt,"\u222B","\\smallint"),ne(Vt,Ue,$t,"\u2026","\\textellipsis"),ne(we,Ue,$t,"\u2026","\\mathellipsis"),ne(Vt,Ue,$t,"\u2026","\\ldots",!0),ne(we,Ue,$t,"\u2026","\\ldots",!0),ne(we,Ue,$t,"\u22EF","\\@cdots",!0),ne(we,Ue,$t,"\u22F1","\\ddots",!0),ne(we,Ue,Bt,"\u22EE","\\varvdots"),ne(we,Ue,Rr,"\u02CA","\\acute"),ne(we,Ue,Rr,"\u02CB","\\grave"),ne(we,Ue,Rr,"\xA8","\\ddot"),ne(we,Ue,Rr,"~","\\tilde"),ne(we,Ue,Rr,"\u02C9","\\bar"),ne(we,Ue,Rr,"\u02D8","\\breve"),ne(we,Ue,Rr,"\u02C7","\\check"),ne(we,Ue,Rr,"^","\\hat"),ne(we,Ue,Rr,"\u20D7","\\vec"),ne(we,Ue,Rr,"\u02D9","\\dot"),ne(we,Ue,Rr,"\u02DA","\\mathring"),ne(we,Ue,qe,"\u0131","\\imath",!0),ne(we,Ue,qe,"\u0237","\\jmath",!0),ne(Vt,Ue,Bt,"\u0131","\\i",!0),ne(Vt,Ue,Bt,"\u0237","\\j",!0),ne(Vt,Ue,Bt,"\xDF","\\ss",!0),ne(Vt,Ue,Bt,"\xE6","\\ae",!0),ne(Vt,Ue,Bt,"\xE6","\\ae",!0),ne(Vt,Ue,Bt,"\u0153","\\oe",!0),ne(Vt,Ue,Bt,"\xF8","\\o",!0),ne(Vt,Ue,Bt,"\xC6","\\AE",!0),ne(Vt,Ue,Bt,"\u0152","\\OE",!0),ne(Vt,Ue,Bt,"\xD8","\\O",!0),ne(Vt,Ue,Rr,"\u02CA","\\'"),ne(Vt,Ue,Rr,"\u02CB","\\`"),ne(Vt,Ue,Rr,"\u02C6","\\^"),ne(Vt,Ue,Rr,"\u02DC","\\~"),ne(Vt,Ue,Rr,"\u02C9","\\="),ne(Vt,Ue,Rr,"\u02D8","\\u"),ne(Vt,Ue,Rr,"\u02D9","\\."),ne(Vt,Ue,Rr,"\u02DA","\\r"),ne(Vt,Ue,Rr,"\u02C7","\\v"),ne(Vt,Ue,Rr,"\xA8",'\\"'),ne(Vt,Ue,Rr,"\u02DD","\\H"),ne(Vt,Ue,Rr,"\u25EF","\\textcircled");var gn={"--":!0,"---":!0,"``":!0,"''":!0};ne(Vt,Ue,Bt,"\u2013","--"),ne(Vt,Ue,Bt,"\u2013","\\textendash"),ne(Vt,Ue,Bt,"\u2014","---"),ne(Vt,Ue,Bt,"\u2014","\\textemdash"),ne(Vt,Ue,Bt,"\u2018","`"),ne(Vt,Ue,Bt,"\u2018","\\textquoteleft"),ne(Vt,Ue,Bt,"\u2019","'"),ne(Vt,Ue,Bt,"\u2019","\\textquoteright"),ne(Vt,Ue,Bt,"\u201C","``"),ne(Vt,Ue,Bt,"\u201C","\\textquotedblleft"),ne(Vt,Ue,Bt,"\u201D","''"),ne(Vt,Ue,Bt,"\u201D","\\textquotedblright"),ne(we,Ue,Bt,"\xB0","\\degree",!0),ne(Vt,Ue,Bt,"\xB0","\\degree"),ne(Vt,Ue,Bt,"\xB0","\\textdegree",!0),ne(we,Ue,qe,"\xA3","\\pounds"),ne(we,Ue,qe,"\xA3","\\mathsterling",!0),ne(Vt,Ue,qe,"\xA3","\\pounds"),ne(Vt,Ue,qe,"\xA3","\\textsterling",!0),ne(we,it,Bt,"\u2720","\\maltese"),ne(Vt,it,Bt,"\u2720","\\maltese"),ne(Vt,Ue,$r,"\xA0","\\ "),ne(Vt,Ue,$r,"\xA0"," "),ne(Vt,Ue,$r,"\xA0","~");for(var On='0123456789/@."',hi=0;hi<On.length;hi++){var ti=On.charAt(hi);ne(we,Ue,Bt,ti,ti)}for(var En='0123456789!@*()-=+[]<>|";:?/.,',Dn=0;Dn<En.length;Dn++){var Ut=En.charAt(Dn);ne(Vt,Ue,Bt,Ut,Ut)}for(var Dr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Pr=0;Pr<Dr.length;Pr++){var St=Dr.charAt(Pr);ne(we,Ue,qe,St,St),ne(Vt,Ue,Bt,St,St)}ne(we,it,Bt,"C","\u2102"),ne(Vt,it,Bt,"C","\u2102"),ne(we,it,Bt,"H","\u210D"),ne(Vt,it,Bt,"H","\u210D"),ne(we,it,Bt,"N","\u2115"),ne(Vt,it,Bt,"N","\u2115"),ne(we,it,Bt,"P","\u2119"),ne(Vt,it,Bt,"P","\u2119"),ne(we,it,Bt,"Q","\u211A"),ne(Vt,it,Bt,"Q","\u211A"),ne(we,it,Bt,"R","\u211D"),ne(Vt,it,Bt,"R","\u211D"),ne(we,it,Bt,"Z","\u2124"),ne(Vt,it,Bt,"Z","\u2124"),ne(we,Ue,qe,"h","\u210E"),ne(Vt,Ue,qe,"h","\u210E");for(var mt="",mr=0;mr<Dr.length;mr++){var xr=Dr.charAt(mr);mt=String.fromCharCode(55349,56320+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt),mt=String.fromCharCode(55349,56372+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt),mt=String.fromCharCode(55349,56424+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt),mt=String.fromCharCode(55349,56580+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt),mt=String.fromCharCode(55349,56736+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt),mt=String.fromCharCode(55349,56788+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt),mt=String.fromCharCode(55349,56840+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt),mt=String.fromCharCode(55349,56944+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt),mr<26&&(mt=String.fromCharCode(55349,56632+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt),mt=String.fromCharCode(55349,56476+mr),ne(we,Ue,qe,xr,mt),ne(Vt,Ue,Bt,xr,mt))}mt="\u{1D55C}",ne(we,Ue,qe,"k",mt),ne(Vt,Ue,Bt,"k",mt);for(var on=0;on<10;on++){var kr=on.toString();mt=String.fromCharCode(55349,57294+on),ne(we,Ue,qe,kr,mt),ne(Vt,Ue,Bt,kr,mt),mt=String.fromCharCode(55349,57314+on),ne(we,Ue,qe,kr,mt),ne(Vt,Ue,Bt,kr,mt),mt=String.fromCharCode(55349,57324+on),ne(we,Ue,qe,kr,mt),ne(Vt,Ue,Bt,kr,mt),mt=String.fromCharCode(55349,57334+on),ne(we,Ue,qe,kr,mt),ne(Vt,Ue,Bt,kr,mt)}for(var un="\xC7\xD0\xDE\xE7\xFE",nn=0;nn<un.length;nn++){var _n=un.charAt(nn);ne(we,Ue,qe,_n,_n),ne(Vt,Ue,Bt,_n,_n)}ne(Vt,Ue,Bt,"\xF0","\xF0"),ne(Vt,Ue,Bt,"\u2013","\u2013"),ne(Vt,Ue,Bt,"\u2014","\u2014"),ne(Vt,Ue,Bt,"\u2018","\u2018"),ne(Vt,Ue,Bt,"\u2019","\u2019"),ne(Vt,Ue,Bt,"\u201C","\u201C"),ne(Vt,Ue,Bt,"\u201D","\u201D");var Un=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],vn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Hr=function(p,S){var D=p.charCodeAt(0),V=p.charCodeAt(1),pe=(D-55296)*1024+(V-56320)+65536,Ke=S==="math"?0:1;if(119808<=pe&&pe<120484){var lt=Math.floor((pe-119808)/26);return[Un[lt][2],Un[lt][Ke]]}else if(120782<=pe&&pe<=120831){var yt=Math.floor((pe-120782)/10);return[vn[yt][2],vn[yt][Ke]]}else{if(pe===120485||pe===120486)return[Un[0][2],Un[0][Ke]];if(120486<pe&&pe<120782)return["",""];throw new g("Unsupported character: "+p)}},Kr=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],qr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],bn=function(p,S){return S.size<2?p:Kr[p-1][S.size-1]},ln=function(){function Qe(S){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=S.style,this.color=S.color,this.size=S.size||Qe.BASESIZE,this.textSize=S.textSize||this.size,this.phantom=!!S.phantom,this.font=S.font||"",this.fontFamily=S.fontFamily||"",this.fontWeight=S.fontWeight||"",this.fontShape=S.fontShape||"",this.sizeMultiplier=qr[this.size-1],this.maxSize=S.maxSize,this.minRuleThickness=S.minRuleThickness,this._fontMetrics=void 0}var p=Qe.prototype;return p.extend=function(D){var V={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var pe in D)D.hasOwnProperty(pe)&&(V[pe]=D[pe]);return new Qe(V)},p.havingStyle=function(D){return this.style===D?this:this.extend({style:D,size:bn(this.textSize,D)})},p.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},p.havingSize=function(D){return this.size===D&&this.textSize===D?this:this.extend({style:this.style.text(),size:D,textSize:D,sizeMultiplier:qr[D-1]})},p.havingBaseStyle=function(D){D=D||this.style.text();var V=bn(Qe.BASESIZE,D);return this.size===V&&this.textSize===Qe.BASESIZE&&this.style===D?this:this.extend({style:D,size:V})},p.havingBaseSizing=function(){var D;switch(this.style.id){case 4:case 5:D=3;break;case 6:case 7:D=1;break;default:D=6}return this.extend({style:this.style.text(),size:D})},p.withColor=function(D){return this.extend({color:D})},p.withPhantom=function(){return this.extend({phantom:!0})},p.withFont=function(D){return this.extend({font:D})},p.withTextFontFamily=function(D){return this.extend({fontFamily:D,font:""})},p.withTextFontWeight=function(D){return this.extend({fontWeight:D,font:""})},p.withTextFontShape=function(D){return this.extend({fontShape:D,font:""})},p.sizingClasses=function(D){return D.size!==this.size?["sizing","reset-size"+D.size,"size"+this.size]:[]},p.baseSizingClasses=function(){return this.size!==Qe.BASESIZE?["sizing","reset-size"+this.size,"size"+Qe.BASESIZE]:[]},p.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=vt(this.size)),this._fontMetrics},p.getColor=function(){return this.phantom?"transparent":this.color},Qe}();ln.BASESIZE=6;var ui=ln,jn={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},cn={ex:!0,em:!0,mu:!0},sr=function(p){return typeof p!="string"&&(p=p.unit),p in jn||p in cn||p==="ex"},cr=function(p,S){var D;if(p.unit in jn)D=jn[p.unit]/S.fontMetrics().ptPerEm/S.sizeMultiplier;else if(p.unit==="mu")D=S.fontMetrics().cssEmPerMu;else{var V;if(S.style.isTight()?V=S.havingStyle(S.style.text()):V=S,p.unit==="ex")D=V.fontMetrics().xHeight;else if(p.unit==="em")D=V.fontMetrics().quad;else throw new g("Invalid unit: '"+p.unit+"'");V!==S&&(D*=V.sizeMultiplier/S.sizeMultiplier)}return Math.min(p.number*D,S.maxSize)},pr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Fr=function(p,S,D){return gr[D][p]&&gr[D][p].replace&&(p=gr[D][p].replace),{value:p,metrics:ze(p,S,D)}},Br=function(p,S,D,V,pe){var Ke=Fr(p,S,D),lt=Ke.metrics;p=Ke.value;var yt;if(lt){var Ot=lt.italic;(D==="text"||V&&V.font==="mathit")&&(Ot=0),yt=new Q(p,lt.height,lt.depth,Ot,lt.skew,lt.width,pe)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+p+"' in style '"+S+"' and mode '"+D+"'")),yt=new Q(p,0,0,0,0,0,pe);if(V){yt.maxFontSize=V.sizeMultiplier,V.style.isTight()&&yt.classes.push("mtight");var ir=V.getColor();ir&&(yt.style.color=ir)}return yt},fn=function(p,S,D,V){return V===void 0&&(V=[]),D.font==="boldsymbol"&&Fr(p,"Main-Bold",S).metrics?Br(p,"Main-Bold",S,D,V.concat(["mathbf"])):p==="\\"||gr[S][p].font==="main"?Br(p,"Main-Regular",S,D,V):Br(p,"AMS-Regular",S,D,V.concat(["amsrm"]))},Nr=function(p,S,D,V){return/[0-9]/.test(p.charAt(0))||P.contains(pr,p)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Cn=function(p,S,D,V){return P.contains(pr,p)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(p.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Rn=function(p,S,D,V){return Fr(p,"Math-BoldItalic",S).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Kn=function(p,S,D){var V=p.mode,pe=p.text,Ke=["mord"],lt=V==="math"||V==="text"&&S.font,yt=lt?S.font:S.fontFamily;if(pe.charCodeAt(0)===55349){var Ot=Hr(pe,V),ir=Ot[0],wr=Ot[1];return Br(pe,ir,V,S,Ke.concat(wr))}else if(yt){var Sr,Tn;if(yt==="boldsymbol"||yt==="mathnormal"){var _r=yt==="boldsymbol"?Rn(pe,V,S,Ke):Cn(pe,V,S,Ke);Sr=_r.fontName,Tn=[_r.fontClass]}else P.contains(pr,pe)?(Sr="Main-Italic",Tn=["mathit"]):lt?(Sr=ji[yt].fontName,Tn=[yt]):(Sr=_i(yt,S.fontWeight,S.fontShape),Tn=[yt,S.fontWeight,S.fontShape]);if(Fr(pe,Sr,V).metrics)return Br(pe,Sr,V,S,Ke.concat(Tn));if(gn.hasOwnProperty(pe)&&Sr.substr(0,10)==="Typewriter"){for(var kt=[],wn=0;wn<pe.length;wn++)kt.push(Br(pe[wn],Sr,V,S,Ke.concat(Tn)));return zn(kt)}}if(D==="mathord"){var xn=Nr(pe,V,S,Ke);return Br(pe,xn.fontName,V,S,Ke.concat([xn.fontClass]))}else if(D==="textord"){var kn=gr[V][pe]&&gr[V][pe].font;if(kn==="ams"){var pn=_i("amsrm",S.fontWeight,S.fontShape);return Br(pe,pn,V,S,Ke.concat("amsrm",S.fontWeight,S.fontShape))}else if(kn==="main"||!kn){var yi=_i("textrm",S.fontWeight,S.fontShape);return Br(pe,yi,V,S,Ke.concat(S.fontWeight,S.fontShape))}else{var xi=_i(kn,S.fontWeight,S.fontShape);return Br(pe,xi,V,S,Ke.concat(xi,S.fontWeight,S.fontShape))}}else throw new Error("unexpected type: "+D+" in makeOrd")},Ai=function(p,S){if(Ce(p.classes)!==Ce(S.classes)||p.skew!==S.skew||p.maxFontSize!==S.maxFontSize)return!1;for(var D in p.style)if(p.style.hasOwnProperty(D)&&p.style[D]!==S.style[D])return!1;for(var V in S.style)if(S.style.hasOwnProperty(V)&&p.style[V]!==S.style[V])return!1;return!0},ni=function(p){for(var S=0;S<p.length-1;S++){var D=p[S],V=p[S+1];D instanceof Q&&V instanceof Q&&Ai(D,V)&&(D.text+=V.text,D.height=Math.max(D.height,V.height),D.depth=Math.max(D.depth,V.depth),D.italic=V.italic,p.splice(S+1,1),S--)}return p},mi=function(p){for(var S=0,D=0,V=0,pe=0;pe<p.children.length;pe++){var Ke=p.children[pe];Ke.height>S&&(S=Ke.height),Ke.depth>D&&(D=Ke.depth),Ke.maxFontSize>V&&(V=Ke.maxFontSize)}p.height=S,p.depth=D,p.maxFontSize=V},hr=function(p,S,D,V){var pe=new y(p,S,D,V);return mi(pe),pe},an=function(p,S,D,V){return new y(p,S,D,V)},Xr=function(p,S,D){var V=hr([p],[],S);return V.height=Math.max(D||S.fontMetrics().defaultRuleThickness,S.minRuleThickness),V.style.borderBottomWidth=V.height+"em",V.maxFontSize=1,V},ri=function(p,S,D,V){var pe=new k(p,S,D,V);return mi(pe),pe},zn=function(p){var S=new vr(p);return mi(S),S},Hn=function(p,S){return p instanceof vr?hr([],[p],S):p},Xn=function(p){if(p.positionType==="individualShift"){for(var S=p.children,D=[S[0]],V=-S[0].shift-S[0].elem.depth,pe=V,Ke=1;Ke<S.length;Ke++){var lt=-S[Ke].shift-pe-S[Ke].elem.depth,yt=lt-(S[Ke-1].elem.height+S[Ke-1].elem.depth);pe=pe+lt,D.push({type:"kern",size:yt}),D.push(S[Ke])}return{children:D,depth:V}}var Ot;if(p.positionType==="top"){for(var ir=p.positionData,wr=0;wr<p.children.length;wr++){var Sr=p.children[wr];ir-=Sr.type==="kern"?Sr.size:Sr.elem.height+Sr.elem.depth}Ot=ir}else if(p.positionType==="bottom")Ot=-p.positionData;else{var Tn=p.children[0];if(Tn.type!=="elem")throw new Error('First child must have type "elem".');if(p.positionType==="shift")Ot=-Tn.elem.depth-p.positionData;else if(p.positionType==="firstBaseline")Ot=-Tn.elem.depth;else throw new Error("Invalid positionType "+p.positionType+".")}return{children:p.children,depth:Ot}},di=function(p,S){for(var D=Xn(p),V=D.children,pe=D.depth,Ke=0,lt=0;lt<V.length;lt++){var yt=V[lt];if(yt.type==="elem"){var Ot=yt.elem;Ke=Math.max(Ke,Ot.maxFontSize,Ot.height)}}Ke+=2;var ir=hr(["pstrut"],[]);ir.style.height=Ke+"em";for(var wr=[],Sr=pe,Tn=pe,_r=pe,kt=0;kt<V.length;kt++){var wn=V[kt];if(wn.type==="kern")_r+=wn.size;else{var xn=wn.elem,kn=wn.wrapperClasses||[],pn=wn.wrapperStyle||{},yi=hr(kn,[ir,xn],void 0,pn);yi.style.top=-Ke-_r-xn.depth+"em",wn.marginLeft&&(yi.style.marginLeft=wn.marginLeft),wn.marginRight&&(yi.style.marginRight=wn.marginRight),wr.push(yi),_r+=xn.height+xn.depth}Sr=Math.min(Sr,_r),Tn=Math.max(Tn,_r)}var xi=hr(["vlist"],wr);xi.style.height=Tn+"em";var Fi;if(Sr<0){var os=hr([],[]),fi=hr(["vlist"],[os]);fi.style.height=-Sr+"em";var Es=hr(["vlist-s"],[new Q("\u200B")]);Fi=[hr(["vlist-r"],[xi,Es]),hr(["vlist-r"],[fi])]}else Fi=[hr(["vlist-r"],[xi])];var ns=hr(["vlist-t"],Fi);return Fi.length===2&&ns.classes.push("vlist-t2"),ns.height=Tn,ns.depth=-Sr,ns},si=function(p,S){var D=hr(["mspace"],[],S),V=cr(p,S);return D.style.marginRight=V+"em",D},_i=function(p,S,D){var V="";switch(p){case"amsrm":V="AMS";break;case"textrm":V="Main";break;case"textsf":V="SansSerif";break;case"texttt":V="Typewriter";break;default:V=p}var pe;return S==="textbf"&&D==="textit"?pe="BoldItalic":S==="textbf"?pe="Bold":S==="textit"?pe="Italic":pe="Regular",V+"-"+pe},ji={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},ii={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},yn=function(p,S){var D=ii[p],V=D[0],pe=D[1],Ke=D[2],lt=new Se(V),yt=new re([lt],{width:pe+"em",height:Ke+"em",style:"width:"+pe+"em",viewBox:"0 0 "+1e3*pe+" "+1e3*Ke,preserveAspectRatio:"xMinYMin"}),Ot=an(["overlay"],[yt],S);return Ot.height=Ke,Ot.style.height=Ke+"em",Ot.style.width=pe+"em",Ot},Yt={fontMap:ji,makeSymbol:Br,mathsym:fn,makeSpan:hr,makeSvgSpan:an,makeLineSpan:Xr,makeAnchor:ri,makeFragment:zn,wrapFragment:Hn,makeVList:di,makeOrd:Kn,makeGlue:si,staticSvg:yn,svgData:ii,tryCombineChars:ni};function hn(Qe,p){var S=Fn(Qe,p);if(!S)throw new Error("Expected node of type "+p+", but got "+(Qe?"node of type "+Qe.type:String(Qe)));return S}function Fn(Qe,p){return Qe&&Qe.type===p?Qe:null}function $n(Qe,p){var S=bi(Qe,p);if(!S)throw new Error('Expected node of type "atom" and family "'+p+'", but got '+(Qe?Qe.type==="atom"?"atom of family "+Qe.family:"node of type "+Qe.type:String(Qe)));return S}function bi(Qe,p){return Qe&&Qe.type==="atom"&&Qe.family===p?Qe:null}function Hi(Qe){var p=rs(Qe);if(!p)throw new Error("Expected node of symbol group type, but got "+(Qe?"node of type "+Qe.type:String(Qe)));return p}function rs(Qe){return Qe&&(Qe.type==="atom"||Dt.hasOwnProperty(Qe.type))?Qe:null}var Ci={number:3,unit:"mu"},is={number:4,unit:"mu"},ai={number:5,unit:"mu"},Zn={mord:{mop:Ci,mbin:is,mrel:ai,minner:Ci},mop:{mord:Ci,mop:Ci,mrel:ai,minner:Ci},mbin:{mord:is,mop:is,mopen:is,minner:is},mrel:{mord:ai,mop:ai,mopen:ai,minner:ai},mopen:{},mclose:{mop:Ci,mbin:is,mrel:ai,minner:Ci},mpunct:{mord:Ci,mop:Ci,mrel:ai,mopen:Ci,mclose:Ci,mpunct:Ci,minner:Ci},minner:{mord:Ci,mop:Ci,mbin:is,mrel:ai,mopen:Ci,mpunct:Ci,minner:Ci}},Li={mord:{mop:Ci},mop:{mord:Ci,mop:Ci},mbin:{},mrel:{},mopen:{},mclose:{mop:Ci},mpunct:{},minner:{mop:Ci}},Mi={},ls={},js={};function Vn(Qe){for(var p=Qe.type,S=Qe.names,D=Qe.props,V=Qe.handler,pe=Qe.htmlBuilder,Ke=Qe.mathmlBuilder,lt={type:p,numArgs:D.numArgs,argTypes:D.argTypes,greediness:D.greediness===void 0?1:D.greediness,allowedInText:!!D.allowedInText,allowedInMath:D.allowedInMath===void 0?!0:D.allowedInMath,numOptionalArgs:D.numOptionalArgs||0,infix:!!D.infix,handler:V},yt=0;yt<S.length;++yt)Mi[S[yt]]=lt;p&&(pe&&(ls[p]=pe),Ke&&(js[p]=Ke))}function us(Qe){var p=Qe.type,S=Qe.htmlBuilder,D=Qe.mathmlBuilder;Vn({type:p,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:S,mathmlBuilder:D})}var Wi=function(p){var S=Fn(p,"ordgroup");return S?S.body:[p]},ps=Yt.makeSpan,Vs=["leftmost","mbin","mopen","mrel","mop","mpunct"],vs=["rightmost","mrel","mclose","mpunct"],ss={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT},gi={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ui=function(p,S,D,V){V===void 0&&(V=[null,null]);for(var pe=[],Ke=0;Ke<p.length;Ke++){var lt=$i(p[Ke],S);if(lt instanceof vr){var yt=lt.children;pe.push.apply(pe,yt)}else pe.push(lt)}if(!D)return pe;var Ot=S;if(p.length===1){var ir=Fn(p[0],"sizing")||Fn(p[0],"styling");ir&&(ir.type==="sizing"?Ot=S.havingSize(ir.size):ir.type==="styling"&&(Ot=S.havingStyle(ss[ir.style])))}var wr=ps([V[0]||"leftmost"],[],S),Sr=ps([V[1]||"rightmost"],[],S);return Ws(pe,function(Tn,_r){var kt=_r.classes[0],wn=Tn.classes[0];kt==="mbin"&&P.contains(vs,wn)?_r.classes[0]="mord":wn==="mbin"&&P.contains(Vs,kt)&&(Tn.classes[0]="mord")},{node:wr},Sr),Ws(pe,function(Tn,_r){var kt=Ri(_r),wn=Ri(Tn),xn=kt&&wn?Tn.hasClass("mtight")?Li[kt][wn]:Zn[kt][wn]:null;if(xn)return Yt.makeGlue(xn,Ot)},{node:wr},Sr),pe},Ws=function Qe(p,S,D,V){V&&p.push(V);for(var pe=0;pe<p.length;pe++){var Ke=p[pe],lt=Ti(Ke);if(lt){Qe(lt.children,S,D);continue}if(Ke.classes[0]!=="mspace"){var yt=S(Ke,D.node);yt&&(D.insertAfter?D.insertAfter(yt):(p.unshift(yt),pe++)),D.node=Ke,D.insertAfter=function(Ot){return function(ir){p.splice(Ot+1,0,ir),pe++}}(pe)}}V&&p.pop()},Ti=function(p){return p instanceof vr||p instanceof k?p:null},Ds=function Qe(p,S){var D=Ti(p);if(D){var V=D.children;if(V.length){if(S==="right")return Qe(V[V.length-1],"right");if(S==="left")return Qe(V[0],"left")}}return p},Ri=function(p,S){return p?(S&&(p=Ds(p,S)),gi[p.classes[0]]||null):null},ks=function(p,S){var D=["nulldelimiter"].concat(p.baseSizingClasses());return ps(S.concat(D))},$i=function(p,S,D){if(!p)return ps();if(ls[p.type]){var V=ls[p.type](p,S);if(D&&S.size!==D.size){V=ps(S.sizingClasses(D),[V],S);var pe=S.sizeMultiplier/D.sizeMultiplier;V.height*=pe,V.depth*=pe}return V}else throw new g("Got group of unknown type: '"+p.type+"'")};function Pa(Qe,p){var S=ps(["base"],Qe,p),D=ps(["strut"]);return D.style.height=S.height+S.depth+"em",D.style.verticalAlign=-S.depth+"em",S.children.unshift(D),S}function aa(Qe,p){var S=null;Qe.length===1&&Qe[0].type==="tag"&&(S=Qe[0].tag,Qe=Qe[0].body);for(var D=Ui(Qe,p,!0),V=[],pe=[],Ke=0;Ke<D.length;Ke++)if(pe.push(D[Ke]),D[Ke].hasClass("mbin")||D[Ke].hasClass("mrel")||D[Ke].hasClass("allowbreak")){for(var lt=!1;Ke<D.length-1&&D[Ke+1].hasClass("mspace")&&!D[Ke+1].hasClass("newline");)Ke++,pe.push(D[Ke]),D[Ke].hasClass("nobreak")&&(lt=!0);lt||(V.push(Pa(pe,p)),pe=[])}else D[Ke].hasClass("newline")&&(pe.pop(),pe.length>0&&(V.push(Pa(pe,p)),pe=[]),V.push(D[Ke]));pe.length>0&&V.push(Pa(pe,p));var yt;S&&(yt=Pa(Ui(S,p,!0)),yt.classes=["tag"],V.push(yt));var Ot=ps(["katex-html"],V);if(Ot.setAttribute("aria-hidden","true"),yt){var ir=yt.children[0];ir.style.height=Ot.height+Ot.depth+"em",ir.style.verticalAlign=-Ot.depth+"em"}return Ot}function Na(Qe){return new vr(Qe)}var Vi=function(){function Qe(S,D){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=S,this.attributes={},this.children=D||[]}var p=Qe.prototype;return p.setAttribute=function(D,V){this.attributes[D]=V},p.getAttribute=function(D){return this.attributes[D]},p.toNode=function(){var D=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var V in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,V)&&D.setAttribute(V,this.attributes[V]);for(var pe=0;pe<this.children.length;pe++)D.appendChild(this.children[pe].toNode());return D},p.toMarkup=function(){var D="<"+this.type;for(var V in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,V)&&(D+=" "+V+'="',D+=P.escape(this.attributes[V]),D+='"');D+=">";for(var pe=0;pe<this.children.length;pe++)D+=this.children[pe].toMarkup();return D+="</"+this.type+">",D},p.toText=function(){return this.children.map(function(D){return D.toText()}).join("")},Qe}(),Ga=function(){function Qe(S){this.text=void 0,this.text=S}var p=Qe.prototype;return p.toNode=function(){return document.createTextNode(this.text)},p.toMarkup=function(){return P.escape(this.toText())},p.toText=function(){return this.text},Qe}(),Rs=function(){function Qe(S){this.width=void 0,this.character=void 0,this.width=S,S>=.05555&&S<=.05556?this.character="\u200A":S>=.1666&&S<=.1667?this.character="\u2009":S>=.2222&&S<=.2223?this.character="\u2005":S>=.2777&&S<=.2778?this.character="\u2005\u200A":S>=-.05556&&S<=-.05555?this.character="\u200A\u2063":S>=-.1667&&S<=-.1666?this.character="\u2009\u2063":S>=-.2223&&S<=-.2222?this.character="\u205F\u2063":S>=-.2778&&S<=-.2777?this.character="\u2005\u2063":this.character=null}var p=Qe.prototype;return p.toNode=function(){if(this.character)return document.createTextNode(this.character);var D=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return D.setAttribute("width",this.width+"em"),D},p.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},p.toText=function(){return this.character?this.character:" "},Qe}(),Pn={MathNode:Vi,TextNode:Ga,SpaceNode:Rs,newDocumentFragment:Na},as=function(p,S,D){return gr[S][p]&&gr[S][p].replace&&p.charCodeAt(0)!==55349&&!(gn.hasOwnProperty(p)&&D&&(D.fontFamily&&D.fontFamily.substr(4,2)==="tt"||D.font&&D.font.substr(4,2)==="tt"))&&(p=gr[S][p].replace),new Pn.TextNode(p)},Ca=function(p){return p.length===1?p[0]:new Pn.MathNode("mrow",p)},Bi=function(p,S){if(S.fontFamily==="texttt")return"monospace";if(S.fontFamily==="textsf")return S.fontShape==="textit"&&S.fontWeight==="textbf"?"sans-serif-bold-italic":S.fontShape==="textit"?"sans-serif-italic":S.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(S.fontShape==="textit"&&S.fontWeight==="textbf")return"bold-italic";if(S.fontShape==="textit")return"italic";if(S.fontWeight==="textbf")return"bold";var D=S.font;if(!D||D==="mathnormal")return null;var V=p.mode;if(D==="mathit")return"italic";if(D==="boldsymbol")return"bold-italic";if(D==="mathbf")return"bold";if(D==="mathbb")return"double-struck";if(D==="mathfrak")return"fraktur";if(D==="mathscr"||D==="mathcal")return"script";if(D==="mathsf")return"sans-serif";if(D==="mathtt")return"monospace";var pe=p.text;if(P.contains(["\\imath","\\jmath"],pe))return null;gr[V][pe]&&gr[V][pe].replace&&(pe=gr[V][pe].replace);var Ke=Yt.fontMap[D].fontName;return ze(pe,Ke,V)?Yt.fontMap[D].variant:null},Di=function(p,S,D){if(p.length===1){var V=vi(p[0],S);return D&&V instanceof Vi&&V.type==="mo"&&(V.setAttribute("lspace","0em"),V.setAttribute("rspace","0em")),[V]}for(var pe=[],Ke,lt=0;lt<p.length;lt++){var yt=vi(p[lt],S);if(yt instanceof Vi&&Ke instanceof Vi){if(yt.type==="mtext"&&Ke.type==="mtext"&&yt.getAttribute("mathvariant")===Ke.getAttribute("mathvariant")){var Ot;(Ot=Ke.children).push.apply(Ot,yt.children);continue}else if(yt.type==="mn"&&Ke.type==="mn"){var ir;(ir=Ke.children).push.apply(ir,yt.children);continue}else if(yt.type==="mi"&&yt.children.length===1&&Ke.type==="mn"){var wr=yt.children[0];if(wr instanceof Ga&&wr.text==="."){var Sr;(Sr=Ke.children).push.apply(Sr,yt.children);continue}}else if(Ke.type==="mi"&&Ke.children.length===1){var Tn=Ke.children[0];if(Tn instanceof Ga&&Tn.text==="\u0338"&&(yt.type==="mo"||yt.type==="mi"||yt.type==="mn")){var _r=yt.children[0];_r instanceof Ga&&_r.text.length>0&&(_r.text=_r.text.slice(0,1)+"\u0338"+_r.text.slice(1),pe.pop())}}}pe.push(yt),Ke=yt}return pe},wi=function(p,S,D){return Ca(Di(p,S,D))},vi=function(p,S){if(!p)return new Pn.MathNode("mrow");if(js[p.type]){var D=js[p.type](p,S);return D}else throw new g("Got group of unknown type: '"+p.type+"'")};function Yi(Qe,p,S,D){var V=Di(Qe,S),pe;V.length===1&&V[0]instanceof Vi&&P.contains(["mrow","mtable"],V[0].type)?pe=V[0]:pe=new Pn.MathNode("mrow",V);var Ke=new Pn.MathNode("annotation",[new Pn.TextNode(p)]);Ke.setAttribute("encoding","application/x-tex");var lt=new Pn.MathNode("semantics",[pe,Ke]),yt=new Pn.MathNode("math",[lt]);yt.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Ot=D?"katex":"katex-mathml";return Yt.makeSpan([Ot],[yt])}var gs=function(p){return new ui({style:p.displayMode?F.DISPLAY:F.TEXT,maxSize:p.maxSize,minRuleThickness:p.minRuleThickness})},na=function(p,S){if(S.displayMode){var D=["katex-display"];S.leqno&&D.push("leqno"),S.fleqn&&D.push("fleqn"),p=Yt.makeSpan(D,[p])}return p},Ks=function(p,S,D){var V=gs(D),pe;if(D.output==="mathml")return Yi(p,S,V,!0);if(D.output==="html"){var Ke=aa(p,V);pe=Yt.makeSpan(["katex"],[Ke])}else{var lt=Yi(p,S,V,!1),yt=aa(p,V);pe=Yt.makeSpan(["katex"],[lt,yt])}return na(pe,D)},Os=function(p,S,D){var V=gs(D),pe=aa(p,V),Ke=Yt.makeSpan(["katex"],[pe]);return na(Ke,D)},Qi=Ks,Ys={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},Za=function(p){var S=new Pn.MathNode("mo",[new Pn.TextNode(Ys[p.substr(1)])]);return S.setAttribute("stretchy","true"),S},la={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},ua=function(p){return p.type==="ordgroup"?p.body.length:1},Xs=function(p,S){function D(){var yt=4e5,Ot=p.label.substr(1);if(P.contains(["widehat","widecheck","widetilde","utilde"],Ot)){var ir=p,wr=ua(ir.base),Sr,Tn,_r;if(wr>5)Ot==="widehat"||Ot==="widecheck"?(Sr=420,yt=2364,_r=.42,Tn=Ot+"4"):(Sr=312,yt=2340,_r=.34,Tn="tilde4");else{var kt=[1,1,2,2,3,3][wr];Ot==="widehat"||Ot==="widecheck"?(yt=[0,1062,2364,2364,2364][kt],Sr=[0,239,300,360,420][kt],_r=[0,.24,.3,.3,.36,.42][kt],Tn=Ot+kt):(yt=[0,600,1033,2339,2340][kt],Sr=[0,260,286,306,312][kt],_r=[0,.26,.286,.3,.306,.34][kt],Tn="tilde"+kt)}var wn=new Se(Tn),xn=new re([wn],{width:"100%",height:_r+"em",viewBox:"0 0 "+yt+" "+Sr,preserveAspectRatio:"none"});return{span:Yt.makeSvgSpan([],[xn],S),minWidth:0,height:_r}}else{var kn=[],pn=la[Ot],yi=pn[0],xi=pn[1],Fi=pn[2],os=Fi/1e3,fi=yi.length,Es,ns;if(fi===1){var Xi=pn[3];Es=["hide-tail"],ns=[Xi]}else if(fi===2)Es=["halfarrow-left","halfarrow-right"],ns=["xMinYMin","xMaxYMin"];else if(fi===3)Es=["brace-left","brace-center","brace-right"],ns=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+fi+" children.");for(var Nn=0;Nn<fi;Nn++){var qi=new Se(yi[Nn]),Js=new re([qi],{width:"400em",height:os+"em",viewBox:"0 0 "+yt+" "+Fi,preserveAspectRatio:ns[Nn]+" slice"}),Zi=Yt.makeSvgSpan([Es[Nn]],[Js],S);if(fi===1)return{span:Zi,minWidth:xi,height:os};Zi.style.height=os+"em",kn.push(Zi)}return{span:Yt.makeSpan(["stretchy"],kn,S),minWidth:xi,height:os}}}var V=D(),pe=V.span,Ke=V.minWidth,lt=V.height;return pe.height=lt,pe.style.height=lt+"em",Ke>0&&(pe.style.minWidth=Ke+"em"),pe},li=function(p,S,D,V){var pe,Ke=p.height+p.depth+2*D;if(/fbox|color/.test(S)){if(pe=Yt.makeSpan(["stretchy",S],[],V),S==="fbox"){var lt=V.color&&V.getColor();lt&&(pe.style.borderColor=lt)}}else{var yt=[];/^[bx]cancel$/.test(S)&&yt.push(new Be({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(S)&&yt.push(new Be({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Ot=new re(yt,{width:"100%",height:Ke+"em"});pe=Yt.makeSvgSpan([],[Ot],V)}return pe.height=Ke,pe.style.height=Ke+"em",pe},oi={encloseSpan:li,mathMLnode:Za,svgSpan:Xs},Ji=function(p,S){var D,V,pe=Fn(p,"supsub"),Ke;pe?(V=hn(pe.base,"accent"),D=V.base,pe.base=D,Ke=Ge($i(pe,S)),pe.base=V):(V=hn(p,"accent"),D=V.base);var lt=$i(D,S.havingCrampedStyle()),yt=V.isShifty&&P.isCharacterBox(D),Ot=0;if(yt){var ir=P.getBaseElem(D),wr=$i(ir,S.havingCrampedStyle());Ot=Te(wr).skew}var Sr=Math.min(lt.height,S.fontMetrics().xHeight),Tn;if(V.isStretchy)Tn=oi.svgSpan(V,S),Tn=Yt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:lt},{type:"elem",elem:Tn,wrapperClasses:["svg-align"],wrapperStyle:Ot>0?{width:"calc(100% - "+2*Ot+"em)",marginLeft:2*Ot+"em"}:void 0}]},S);else{var _r,kt;V.label==="\\vec"?(_r=Yt.staticSvg("vec",S),kt=Yt.svgData.vec[1]):(_r=Yt.makeOrd({mode:V.mode,text:V.label},S,"textord"),_r=Te(_r),_r.italic=0,kt=_r.width),Tn=Yt.makeSpan(["accent-body"],[_r]);var wn=V.label==="\\textcircled";wn&&(Tn.classes.push("accent-full"),Sr=lt.height);var xn=Ot;wn||(xn-=kt/2),Tn.style.left=xn+"em",V.label==="\\textcircled"&&(Tn.style.top=".2em"),Tn=Yt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:lt},{type:"kern",size:-Sr},{type:"elem",elem:Tn}]},S)}var kn=Yt.makeSpan(["mord","accent"],[Tn],S);return Ke?(Ke.children[0]=kn,Ke.height=Math.max(kn.height,Ke.height),Ke.classes[0]="mord",Ke):kn},$s=function(p,S){var D=p.isStretchy?oi.mathMLnode(p.label):new Pn.MathNode("mo",[as(p.label,p.mode)]),V=new Pn.MathNode("mover",[vi(p.base,S),D]);return V.setAttribute("accent","true"),V},As=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(Qe){return"\\"+Qe}).join("|"));Vn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(p,S){var D=S[0],V=!As.test(p.funcName),pe=!V||p.funcName==="\\widehat"||p.funcName==="\\widetilde"||p.funcName==="\\widecheck";return{type:"accent",mode:p.parser.mode,label:p.funcName,isStretchy:V,isShifty:pe,base:D}},htmlBuilder:Ji,mathmlBuilder:$s}),Vn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(p,S){var D=S[0];return{type:"accent",mode:p.parser.mode,label:p.funcName,isStretchy:!1,isShifty:!0,base:D}},htmlBuilder:Ji,mathmlBuilder:$s}),Vn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[0];return{type:"accentUnder",mode:D.mode,label:V,base:pe}},htmlBuilder:function(p,S){var D=$i(p.base,S),V=oi.svgSpan(p,S),pe=p.label==="\\utilde"?.12:0,Ke=Yt.makeVList({positionType:"bottom",positionData:V.height+pe,children:[{type:"elem",elem:V,wrapperClasses:["svg-align"]},{type:"kern",size:pe},{type:"elem",elem:D}]},S);return Yt.makeSpan(["mord","accentunder"],[Ke],S)},mathmlBuilder:function(p,S){var D=oi.mathMLnode(p.label),V=new Pn.MathNode("munder",[vi(p.base,S),D]);return V.setAttribute("accentunder","true"),V}});var ca=function(p){var S=new Pn.MathNode("mpadded",p?[p]:[]);return S.setAttribute("width","+0.6em"),S.setAttribute("lspace","0.3em"),S};Vn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(p,S,D){var V=p.parser,pe=p.funcName;return{type:"xArrow",mode:V.mode,label:pe,body:S[0],below:D[0]}},htmlBuilder:function(p,S){var D=S.style,V=S.havingStyle(D.sup()),pe=Yt.wrapFragment($i(p.body,V,S),S);pe.classes.push("x-arrow-pad");var Ke;p.below&&(V=S.havingStyle(D.sub()),Ke=Yt.wrapFragment($i(p.below,V,S),S),Ke.classes.push("x-arrow-pad"));var lt=oi.svgSpan(p,S),yt=-S.fontMetrics().axisHeight+.5*lt.height,Ot=-S.fontMetrics().axisHeight-.5*lt.height-.111;(pe.depth>.25||p.label==="\\xleftequilibrium")&&(Ot-=pe.depth);var ir;if(Ke){var wr=-S.fontMetrics().axisHeight+Ke.height+.5*lt.height+.111;ir=Yt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:pe,shift:Ot},{type:"elem",elem:lt,shift:yt},{type:"elem",elem:Ke,shift:wr}]},S)}else ir=Yt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:pe,shift:Ot},{type:"elem",elem:lt,shift:yt}]},S);return ir.children[0].children[0].children[1].classes.push("svg-align"),Yt.makeSpan(["mrel","x-arrow"],[ir],S)},mathmlBuilder:function(p,S){var D=oi.mathMLnode(p.label),V;if(p.body){var pe=ca(vi(p.body,S));if(p.below){var Ke=ca(vi(p.below,S));V=new Pn.MathNode("munderover",[D,Ke,pe])}else V=new Pn.MathNode("mover",[D,pe])}else if(p.below){var lt=ca(vi(p.below,S));V=new Pn.MathNode("munder",[D,lt])}else V=ca(),V=new Pn.MathNode("mover",[D,V]);return V}}),Vn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(p,S){for(var D=p.parser,V=hn(S[0],"ordgroup"),pe=V.body,Ke="",lt=0;lt<pe.length;lt++){var yt=hn(pe[lt],"textord");Ke+=yt.text}var Ot=parseInt(Ke);if(isNaN(Ot))throw new g("\\@char has non-numeric argument "+Ke);return{type:"textord",mode:D.mode,text:String.fromCharCode(Ot)}}});var ea=function(p,S){var D=Ui(p.body,S.withColor(p.color),!1);return Yt.makeFragment(D)},Va=function(p,S){var D=Di(p.body,S.withColor(p.color)),V=new Pn.MathNode("mstyle",D);return V.setAttribute("mathcolor",p.color),V};Vn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(p,S){var D=p.parser,V=hn(S[0],"color-token").color,pe=S[1];return{type:"color",mode:D.mode,color:V,body:Wi(pe)}},htmlBuilder:ea,mathmlBuilder:Va}),Vn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(p,S){var D=p.parser,V=p.breakOnTokenText,pe=hn(S[0],"color-token").color;D.gullet.macros.set("\\current@color",pe);var Ke=D.parseExpression(!0,V);return{type:"color",mode:D.mode,color:pe,body:Ke}},htmlBuilder:ea,mathmlBuilder:Va}),Vn({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(p,S,D){var V=p.parser,pe=p.funcName,Ke=D[0],lt=pe==="\\cr",yt=!1;return lt||(V.settings.displayMode&&V.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?yt=!1:yt=!0),{type:"cr",mode:V.mode,newLine:yt,newRow:lt,size:Ke&&hn(Ke,"size").value}},htmlBuilder:function(p,S){if(p.newRow)throw new g("\\cr valid only within a tabular/array environment");var D=Yt.makeSpan(["mspace"],[],S);return p.newLine&&(D.classes.push("newline"),p.size&&(D.style.marginTop=cr(p.size,S)+"em")),D},mathmlBuilder:function(p,S){var D=new Pn.MathNode("mspace");return p.newLine&&(D.setAttribute("linebreak","newline"),p.size&&D.setAttribute("height",cr(p.size,S)+"em")),D}});var ta=function(p,S,D){var V=gr.math[p]&&gr.math[p].replace,pe=ze(V||p,S,D);if(!pe)throw new Error("Unsupported symbol "+p+" and font size "+S+".");return pe},ci=function(p,S,D,V){var pe=D.havingBaseStyle(S),Ke=Yt.makeSpan(V.concat(pe.sizingClasses(D)),[p],D),lt=pe.sizeMultiplier/D.sizeMultiplier;return Ke.height*=lt,Ke.depth*=lt,Ke.maxFontSize=pe.sizeMultiplier,Ke},fl=function(p,S,D){var V=S.havingBaseStyle(D),pe=(1-S.sizeMultiplier/V.sizeMultiplier)*S.fontMetrics().axisHeight;p.classes.push("delimcenter"),p.style.top=pe+"em",p.height-=pe,p.depth+=pe},Aa=function(p,S,D,V,pe,Ke){var lt=Yt.makeSymbol(p,"Main-Regular",pe,V),yt=ci(lt,S,V,Ke);return D&&fl(yt,V,S),yt},ko=function(p,S,D,V){return Yt.makeSymbol(p,"Size"+S+"-Regular",D,V)},fa=function(p,S,D,V,pe,Ke){var lt=ko(p,S,pe,V),yt=ci(Yt.makeSpan(["delimsizing","size"+S],[lt],V),F.TEXT,V,Ke);return D&&fl(yt,V,F.TEXT),yt},Sa=function(p,S,D){var V;S==="Size1-Regular"?V="delim-size1":V="delim-size4";var pe=Yt.makeSpan(["delimsizinginner",V],[Yt.makeSpan([],[Yt.makeSymbol(p,S,D)])]);return{type:"elem",elem:pe}},ys={type:"kern",size:-.005},Ho=function(p,S,D,V,pe,Ke){var lt,yt,Ot,ir;lt=Ot=ir=p,yt=null;var wr="Size1-Regular";p==="\\uparrow"?Ot=ir="\u23D0":p==="\\Uparrow"?Ot=ir="\u2016":p==="\\downarrow"?lt=Ot="\u23D0":p==="\\Downarrow"?lt=Ot="\u2016":p==="\\updownarrow"?(lt="\\uparrow",Ot="\u23D0",ir="\\downarrow"):p==="\\Updownarrow"?(lt="\\Uparrow",Ot="\u2016",ir="\\Downarrow"):p==="["||p==="\\lbrack"?(lt="\u23A1",Ot="\u23A2",ir="\u23A3",wr="Size4-Regular"):p==="]"||p==="\\rbrack"?(lt="\u23A4",Ot="\u23A5",ir="\u23A6",wr="Size4-Regular"):p==="\\lfloor"||p==="\u230A"?(Ot=lt="\u23A2",ir="\u23A3",wr="Size4-Regular"):p==="\\lceil"||p==="\u2308"?(lt="\u23A1",Ot=ir="\u23A2",wr="Size4-Regular"):p==="\\rfloor"||p==="\u230B"?(Ot=lt="\u23A5",ir="\u23A6",wr="Size4-Regular"):p==="\\rceil"||p==="\u2309"?(lt="\u23A4",Ot=ir="\u23A5",wr="Size4-Regular"):p==="("||p==="\\lparen"?(lt="\u239B",Ot="\u239C",ir="\u239D",wr="Size4-Regular"):p===")"||p==="\\rparen"?(lt="\u239E",Ot="\u239F",ir="\u23A0",wr="Size4-Regular"):p==="\\{"||p==="\\lbrace"?(lt="\u23A7",yt="\u23A8",ir="\u23A9",Ot="\u23AA",wr="Size4-Regular"):p==="\\}"||p==="\\rbrace"?(lt="\u23AB",yt="\u23AC",ir="\u23AD",Ot="\u23AA",wr="Size4-Regular"):p==="\\lgroup"||p==="\u27EE"?(lt="\u23A7",ir="\u23A9",Ot="\u23AA",wr="Size4-Regular"):p==="\\rgroup"||p==="\u27EF"?(lt="\u23AB",ir="\u23AD",Ot="\u23AA",wr="Size4-Regular"):p==="\\lmoustache"||p==="\u23B0"?(lt="\u23A7",ir="\u23AD",Ot="\u23AA",wr="Size4-Regular"):(p==="\\rmoustache"||p==="\u23B1")&&(lt="\u23AB",ir="\u23A9",Ot="\u23AA",wr="Size4-Regular");var Sr=ta(lt,wr,pe),Tn=Sr.height+Sr.depth,_r=ta(Ot,wr,pe),kt=_r.height+_r.depth,wn=ta(ir,wr,pe),xn=wn.height+wn.depth,kn=0,pn=1;if(yt!==null){var yi=ta(yt,wr,pe);kn=yi.height+yi.depth,pn=2}var xi=Tn+xn+kn,Fi=Math.max(0,Math.ceil((S-xi)/(pn*kt))),os=xi+Fi*pn*kt,fi=V.fontMetrics().axisHeight;D&&(fi*=V.sizeMultiplier);var Es=os/2-fi,ns=(Fi+1)*.005-kt,Xi=[];if(Xi.push(Sa(ir,wr,pe)),yt===null)for(var Nn=0;Nn<Fi;Nn++)Xi.push(ys),Xi.push(Sa(Ot,wr,pe));else{for(var qi=0;qi<Fi;qi++)Xi.push(ys),Xi.push(Sa(Ot,wr,pe));Xi.push({type:"kern",size:ns}),Xi.push(Sa(Ot,wr,pe)),Xi.push(ys),Xi.push(Sa(yt,wr,pe));for(var Js=0;Js<Fi;Js++)Xi.push(ys),Xi.push(Sa(Ot,wr,pe))}Xi.push({type:"kern",size:ns}),Xi.push(Sa(Ot,wr,pe)),Xi.push(ys),Xi.push(Sa(lt,wr,pe));var Zi=V.havingBaseStyle(F.TEXT),Gi=Yt.makeVList({positionType:"bottom",positionData:Es,children:Xi},Zi);return ci(Yt.makeSpan(["delimsizing","mult"],[Gi],Zi),F.TEXT,V,Ke)},Ko=80,Fo=.08,mo=function(p,S,D,V,pe){var Ke=yr(p,V,D),lt=new Se(p,Ke),yt=new re([lt],{width:"400em",height:S+"em",viewBox:"0 0 400000 "+D,preserveAspectRatio:"xMinYMin slice"});return Yt.makeSvgSpan(["hide-tail"],[yt],pe)},ds=function(p,S){var D=S.havingBaseSizing(),V=qa("\\surd",p*D.sizeMultiplier,Wa,D),pe=D.sizeMultiplier,Ke=Math.max(0,S.minRuleThickness-S.fontMetrics().sqrtRuleThickness),lt,yt=0,Ot=0,ir=0,wr;return V.type==="small"?(ir=1e3+1e3*Ke+Ko,p<1?pe=1:p<1.4&&(pe=.7),yt=(1+Ke+Fo)/pe,Ot=(1+Ke)/pe,lt=mo("sqrtMain",yt,ir,Ke,S),lt.style.minWidth="0.853em",wr=.833/pe):V.type==="large"?(ir=(1e3+Ko)*fs[V.size],Ot=(fs[V.size]+Ke)/pe,yt=(fs[V.size]+Ke+Fo)/pe,lt=mo("sqrtSize"+V.size,yt,ir,Ke,S),lt.style.minWidth="1.02em",wr=1/pe):(yt=p+Ke+Fo,Ot=p+Ke,ir=Math.floor(1e3*p+Ke)+Ko,lt=mo("sqrtTall",yt,ir,Ke,S),lt.style.minWidth="0.742em",wr=1.056),lt.height=Ot,lt.style.height=yt+"em",{span:lt,advanceWidth:wr,ruleWidth:(S.fontMetrics().sqrtRuleThickness+Ke)*pe}},es=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],pa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Bs=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],fs=[0,1.2,1.8,2.4,3],ia=function(p,S,D,V,pe){if(p==="<"||p==="\\lt"||p==="\u27E8"?p="\\langle":(p===">"||p==="\\gt"||p==="\u27E9")&&(p="\\rangle"),P.contains(es,p)||P.contains(Bs,p))return fa(p,S,!1,D,V,pe);if(P.contains(pa,p))return Ho(p,fs[S],!1,D,V,pe);throw new g("Illegal delimiter: '"+p+"'")},Fs=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],da=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"stack"}],Wa=[{type:"small",style:F.SCRIPTSCRIPT},{type:"small",style:F.SCRIPT},{type:"small",style:F.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Mo=function(p){if(p.type==="small")return"Main-Regular";if(p.type==="large")return"Size"+p.size+"-Regular";if(p.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+p.type+"' here.")},qa=function(p,S,D,V){for(var pe=Math.min(2,3-V.style.size),Ke=pe;Ke<D.length&&D[Ke].type!=="stack";Ke++){var lt=ta(p,Mo(D[Ke]),"math"),yt=lt.height+lt.depth;if(D[Ke].type==="small"){var Ot=V.havingBaseStyle(D[Ke].style);yt*=Ot.sizeMultiplier}if(yt>S)return D[Ke]}return D[D.length-1]},Eo=function(p,S,D,V,pe,Ke){p==="<"||p==="\\lt"||p==="\u27E8"?p="\\langle":(p===">"||p==="\\gt"||p==="\u27E9")&&(p="\\rangle");var lt;P.contains(Bs,p)?lt=Fs:P.contains(es,p)?lt=Wa:lt=da;var yt=qa(p,S,lt,V);return yt.type==="small"?Aa(p,yt.style,D,V,pe,Ke):yt.type==="large"?fa(p,yt.size,D,V,pe,Ke):Ho(p,S,D,V,pe,Ke)},hl=function(p,S,D,V,pe,Ke){var lt=V.fontMetrics().axisHeight*V.sizeMultiplier,yt=901,Ot=5/V.fontMetrics().ptPerEm,ir=Math.max(S-lt,D+lt),wr=Math.max(ir/500*yt,2*ir-Ot);return Eo(p,wr,!0,V,pe,Ke)},ka={sqrtImage:ds,sizedDelim:ia,customSizedDelim:Eo,leftRightDelim:hl},Ya={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},El=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function qo(Qe,p){var S=rs(Qe);if(S&&P.contains(El,S.text))return S;throw new g("Invalid delimiter: '"+(S?S.text:JSON.stringify(Qe))+"' after '"+p.funcName+"'",Qe)}Vn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(p,S){var D=qo(S[0],p);return{type:"delimsizing",mode:p.parser.mode,size:Ya[p.funcName].size,mclass:Ya[p.funcName].mclass,delim:D.text}},htmlBuilder:function(p,S){return p.delim==="."?Yt.makeSpan([p.mclass]):ka.sizedDelim(p.delim,p.size,S,p.mode,[p.mclass])},mathmlBuilder:function(p){var S=[];p.delim!=="."&&S.push(as(p.delim,p.mode));var D=new Pn.MathNode("mo",S);return p.mclass==="mopen"||p.mclass==="mclose"?D.setAttribute("fence","true"):D.setAttribute("fence","false"),D}});function zo(Qe){if(!Qe.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Vn({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(p,S){var D=p.parser.gullet.macros.get("\\current@color");if(D&&typeof D!="string")throw new g("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:p.parser.mode,delim:qo(S[0],p).text,color:D}}}),Vn({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(p,S){var D=qo(S[0],p),V=p.parser;++V.leftrightDepth;var pe=V.parseExpression(!1);--V.leftrightDepth,V.expect("\\right",!1);var Ke=hn(V.parseFunction(),"leftright-right");return{type:"leftright",mode:V.mode,body:pe,left:D.text,right:Ke.delim,rightColor:Ke.color}},htmlBuilder:function(p,S){zo(p);for(var D=Ui(p.body,S,!0,["mopen","mclose"]),V=0,pe=0,Ke=!1,lt=0;lt<D.length;lt++)D[lt].isMiddle?Ke=!0:(V=Math.max(D[lt].height,V),pe=Math.max(D[lt].depth,pe));V*=S.sizeMultiplier,pe*=S.sizeMultiplier;var yt;if(p.left==="."?yt=ks(S,["mopen"]):yt=ka.leftRightDelim(p.left,V,pe,S,p.mode,["mopen"]),D.unshift(yt),Ke)for(var Ot=1;Ot<D.length;Ot++){var ir=D[Ot],wr=ir.isMiddle;wr&&(D[Ot]=ka.leftRightDelim(wr.delim,V,pe,wr.options,p.mode,[]))}var Sr;if(p.right===".")Sr=ks(S,["mclose"]);else{var Tn=p.rightColor?S.withColor(p.rightColor):S;Sr=ka.leftRightDelim(p.right,V,pe,Tn,p.mode,["mclose"])}return D.push(Sr),Yt.makeSpan(["minner"],D,S)},mathmlBuilder:function(p,S){zo(p);var D=Di(p.body,S);if(p.left!=="."){var V=new Pn.MathNode("mo",[as(p.left,p.mode)]);V.setAttribute("fence","true"),D.unshift(V)}if(p.right!=="."){var pe=new Pn.MathNode("mo",[as(p.right,p.mode)]);pe.setAttribute("fence","true"),p.rightColor&&pe.setAttribute("mathcolor",p.rightColor),D.push(pe)}return Ca(D)}}),Vn({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(p,S){var D=qo(S[0],p);if(!p.parser.leftrightDepth)throw new g("\\middle without preceding \\left",D);return{type:"middle",mode:p.parser.mode,delim:D.text}},htmlBuilder:function(p,S){var D;if(p.delim===".")D=ks(S,[]);else{D=ka.sizedDelim(p.delim,1,S,p.mode,[]);var V={delim:p.delim,options:S};D.isMiddle=V}return D},mathmlBuilder:function(p,S){var D=p.delim==="\\vert"||p.delim==="|"?as("|","text"):as(p.delim,p.mode),V=new Pn.MathNode("mo",[D]);return V.setAttribute("fence","true"),V.setAttribute("lspace","0.05em"),V.setAttribute("rspace","0.05em"),V}});var pl=function(p,S){var D=Yt.wrapFragment($i(p.body,S),S),V=p.label.substr(1),pe=S.sizeMultiplier,Ke,lt=0,yt=P.isCharacterBox(p.body);if(V==="sout")Ke=Yt.makeSpan(["stretchy","sout"]),Ke.height=S.fontMetrics().defaultRuleThickness/pe,lt=-.5*S.fontMetrics().xHeight;else{/cancel/.test(V)?yt||D.classes.push("cancel-pad"):D.classes.push("boxpad");var Ot=0,ir=0;/box/.test(V)?(ir=Math.max(S.fontMetrics().fboxrule,S.minRuleThickness),Ot=S.fontMetrics().fboxsep+(V==="colorbox"?0:ir)):Ot=yt?.2:0,Ke=oi.encloseSpan(D,V,Ot,S),/fbox|boxed|fcolorbox/.test(V)&&(Ke.style.borderStyle="solid",Ke.style.borderWidth=ir+"em"),lt=D.depth+Ot,p.backgroundColor&&(Ke.style.backgroundColor=p.backgroundColor,p.borderColor&&(Ke.style.borderColor=p.borderColor))}var wr;return p.backgroundColor?wr=Yt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ke,shift:lt},{type:"elem",elem:D,shift:0}]},S):wr=Yt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:0},{type:"elem",elem:Ke,shift:lt,wrapperClasses:/cancel/.test(V)?["svg-align"]:[]}]},S),/cancel/.test(V)&&(wr.height=D.height,wr.depth=D.depth),/cancel/.test(V)&&!yt?Yt.makeSpan(["mord","cancel-lap"],[wr],S):Yt.makeSpan(["mord"],[wr],S)},Go=function(p,S){var D=0,V=new Pn.MathNode(p.label.indexOf("colorbox")>-1?"mpadded":"menclose",[vi(p.body,S)]);switch(p.label){case"\\cancel":V.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":V.setAttribute("notation","downdiagonalstrike");break;case"\\sout":V.setAttribute("notation","horizontalstrike");break;case"\\fbox":V.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(D=S.fontMetrics().fboxsep*S.fontMetrics().ptPerEm,V.setAttribute("width","+"+2*D+"pt"),V.setAttribute("height","+"+2*D+"pt"),V.setAttribute("lspace",D+"pt"),V.setAttribute("voffset",D+"pt"),p.label==="\\fcolorbox"){var pe=Math.max(S.fontMetrics().fboxrule,S.minRuleThickness);V.setAttribute("style","border: "+pe+"em solid "+String(p.borderColor))}break;case"\\xcancel":V.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return p.backgroundColor&&V.setAttribute("mathbackground",p.backgroundColor),V};Vn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(p,S,D){var V=p.parser,pe=p.funcName,Ke=hn(S[0],"color-token").color,lt=S[1];return{type:"enclose",mode:V.mode,label:pe,backgroundColor:Ke,body:lt}},htmlBuilder:pl,mathmlBuilder:Go}),Vn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(p,S,D){var V=p.parser,pe=p.funcName,Ke=hn(S[0],"color-token").color,lt=hn(S[1],"color-token").color,yt=S[2];return{type:"enclose",mode:V.mode,label:pe,backgroundColor:lt,borderColor:Ke,body:yt}},htmlBuilder:pl,mathmlBuilder:Go}),Vn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(p,S){var D=p.parser;return{type:"enclose",mode:D.mode,label:"\\fbox",body:S[0]}}}),Vn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(p,S,D){var V=p.parser,pe=p.funcName,Ke=S[0];return{type:"enclose",mode:V.mode,label:pe,body:Ke}},htmlBuilder:pl,mathmlBuilder:Go});var Ma={};function ba(Qe){for(var p=Qe.type,S=Qe.names,D=Qe.props,V=Qe.handler,pe=Qe.htmlBuilder,Ke=Qe.mathmlBuilder,lt={type:p,numArgs:D.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:V},yt=0;yt<S.length;++yt)Ma[S[yt]]=lt;pe&&(ls[p]=pe),Ke&&(js[p]=Ke)}function eo(Qe){var p=[];Qe.consumeSpaces();for(var S=Qe.fetch().text;S==="\\hline"||S==="\\hdashline";)Qe.consume(),p.push(S==="\\hdashline"),Qe.consumeSpaces(),S=Qe.fetch().text;return p}function _s(Qe,p,S){var D=p.hskipBeforeAndAfter,V=p.addJot,pe=p.cols,Ke=p.arraystretch,lt=p.colSeparationType;if(Qe.gullet.beginGroup(),Qe.gullet.macros.set("\\\\","\\cr"),!Ke){var yt=Qe.gullet.expandMacroAsText("\\arraystretch");if(yt==null)Ke=1;else if(Ke=parseFloat(yt),!Ke||Ke<0)throw new g("Invalid \\arraystretch: "+yt)}Qe.gullet.beginGroup();var Ot=[],ir=[Ot],wr=[],Sr=[];for(Sr.push(eo(Qe));;){var Tn=Qe.parseExpression(!1,"\\cr");Qe.gullet.endGroup(),Qe.gullet.beginGroup(),Tn={type:"ordgroup",mode:Qe.mode,body:Tn},S&&(Tn={type:"styling",mode:Qe.mode,style:S,body:[Tn]}),Ot.push(Tn);var _r=Qe.fetch().text;if(_r==="&")Qe.consume();else if(_r==="\\end"){Ot.length===1&&Tn.type==="styling"&&Tn.body[0].body.length===0&&ir.pop(),Sr.length<ir.length+1&&Sr.push([]);break}else if(_r==="\\cr"){var kt=hn(Qe.parseFunction(),"cr");wr.push(kt.size),Sr.push(eo(Qe)),Ot=[],ir.push(Ot)}else throw new g("Expected & or \\\\ or \\cr or \\end",Qe.nextToken)}return Qe.gullet.endGroup(),Qe.gullet.endGroup(),{type:"array",mode:Qe.mode,addJot:V,arraystretch:Ke,body:ir,cols:pe,rowGaps:wr,hskipBeforeAndAfter:D,hLinesBeforeRow:Sr,colSeparationType:lt}}function zs(Qe){return Qe.substr(0,1)==="d"?"display":"text"}var Is=function(p,S){var D,V,pe=p.body.length,Ke=p.hLinesBeforeRow,lt=0,yt=new Array(pe),Ot=[],ir=Math.max(S.fontMetrics().arrayRuleWidth,S.minRuleThickness),wr=1/S.fontMetrics().ptPerEm,Sr=5*wr;if(p.colSeparationType&&p.colSeparationType==="small"){var Tn=S.havingStyle(F.SCRIPT).sizeMultiplier;Sr=.2778*(Tn/S.sizeMultiplier)}var _r=12*wr,kt=3*wr,wn=p.arraystretch*_r,xn=.7*wn,kn=.3*wn,pn=0;function yi(ra){for(var Ns=0;Ns<ra.length;++Ns)Ns>0&&(pn+=.25),Ot.push({pos:pn,isDashed:ra[Ns]})}for(yi(Ke[0]),D=0;D<p.body.length;++D){var xi=p.body[D],Fi=xn,os=kn;lt<xi.length&&(lt=xi.length);var fi=new Array(xi.length);for(V=0;V<xi.length;++V){var Es=$i(xi[V],S);os<Es.depth&&(os=Es.depth),Fi<Es.height&&(Fi=Es.height),fi[V]=Es}var ns=p.rowGaps[D],Xi=0;ns&&(Xi=cr(ns,S),Xi>0&&(Xi+=kn,os<Xi&&(os=Xi),Xi=0)),p.addJot&&(os+=kt),fi.height=Fi,fi.depth=os,pn+=Fi,fi.pos=pn,pn+=os+Xi,yt[D]=fi,yi(Ke[D+1])}var Nn=pn/2+S.fontMetrics().axisHeight,qi=p.cols||[],Js=[],Zi,Gi;for(V=0,Gi=0;V<lt||Gi<qi.length;++V,++Gi){for(var hs=qi[Gi]||{},Ms=!0;hs.type==="separator";){if(Ms||(Zi=Yt.makeSpan(["arraycolsep"],[]),Zi.style.width=S.fontMetrics().doubleRuleSep+"em",Js.push(Zi)),hs.separator==="|"||hs.separator===":"){var Ls=hs.separator==="|"?"solid":"dashed",Ni=Yt.makeSpan(["vertical-separator"],[],S);Ni.style.height=pn+"em",Ni.style.borderRightWidth=ir+"em",Ni.style.borderRightStyle=Ls,Ni.style.margin="0 -"+ir/2+"em",Ni.style.verticalAlign=-(pn-Nn)+"em",Js.push(Ni)}else throw new g("Invalid separator type: "+hs.separator);Gi++,hs=qi[Gi]||{},Ms=!1}if(!(V>=lt)){var Ps=void 0;(V>0||p.hskipBeforeAndAfter)&&(Ps=P.deflt(hs.pregap,Sr),Ps!==0&&(Zi=Yt.makeSpan(["arraycolsep"],[]),Zi.style.width=Ps+"em",Js.push(Zi)));var Gs=[];for(D=0;D<pe;++D){var ga=yt[D],oa=ga[V];if(oa){var wa=ga.pos-Nn;oa.depth=ga.depth,oa.height=ga.height,Gs.push({type:"elem",elem:oa,shift:wa})}}Gs=Yt.makeVList({positionType:"individualShift",children:Gs},S),Gs=Yt.makeSpan(["col-align-"+(hs.align||"c")],[Gs]),Js.push(Gs),(V<lt-1||p.hskipBeforeAndAfter)&&(Ps=P.deflt(hs.postgap,Sr),Ps!==0&&(Zi=Yt.makeSpan(["arraycolsep"],[]),Zi.style.width=Ps+"em",Js.push(Zi)))}}if(yt=Yt.makeSpan(["mtable"],Js),Ot.length>0){for(var Lo=Yt.makeLineSpan("hline",S,ir),go=Yt.makeLineSpan("hdashline",S,ir),Ua=[{type:"elem",elem:yt,shift:0}];Ot.length>0;){var Qa=Ot.pop(),xa=Qa.pos-Nn;Qa.isDashed?Ua.push({type:"elem",elem:go,shift:xa}):Ua.push({type:"elem",elem:Lo,shift:xa})}yt=Yt.makeVList({positionType:"individualShift",children:Ua},S)}return Yt.makeSpan(["mord"],[yt],S)},sa={c:"center ",l:"left ",r:"right "},ma=function(p,S){var D=new Pn.MathNode("mtable",p.body.map(function(pn){return new Pn.MathNode("mtr",pn.map(function(yi){return new Pn.MathNode("mtd",[vi(yi,S)])}))})),V=p.arraystretch===.5?.1:.16+p.arraystretch-1+(p.addJot?.09:0);D.setAttribute("rowspacing",V+"em");var pe="",Ke="";if(p.cols){var lt=p.cols,yt="",Ot=!1,ir=0,wr=lt.length;lt[0].type==="separator"&&(pe+="top ",ir=1),lt[lt.length-1].type==="separator"&&(pe+="bottom ",wr-=1);for(var Sr=ir;Sr<wr;Sr++)lt[Sr].type==="align"?(Ke+=sa[lt[Sr].align],Ot&&(yt+="none "),Ot=!0):lt[Sr].type==="separator"&&Ot&&(yt+=lt[Sr].separator==="|"?"solid ":"dashed ",Ot=!1);D.setAttribute("columnalign",Ke.trim()),/[sd]/.test(yt)&&D.setAttribute("columnlines",yt.trim())}if(p.colSeparationType==="align"){for(var Tn=p.cols||[],_r="",kt=1;kt<Tn.length;kt++)_r+=kt%2?"0em ":"1em ";D.setAttribute("columnspacing",_r.trim())}else p.colSeparationType==="alignat"?D.setAttribute("columnspacing","0em"):p.colSeparationType==="small"?D.setAttribute("columnspacing","0.2778em"):D.setAttribute("columnspacing","1em");var wn="",xn=p.hLinesBeforeRow;pe+=xn[0].length>0?"left ":"",pe+=xn[xn.length-1].length>0?"right ":"";for(var kn=1;kn<xn.length-1;kn++)wn+=xn[kn].length===0?"none ":xn[kn][0]?"dashed ":"solid ";return/[sd]/.test(wn)&&D.setAttribute("rowlines",wn.trim()),pe!==""&&(D=new Pn.MathNode("menclose",[D]),D.setAttribute("notation",pe.trim())),p.arraystretch&&p.arraystretch<1&&(D=new Pn.MathNode("mstyle",[D]),D.setAttribute("scriptlevel","1")),D},Ln=function(p,S){var D=[],V=_s(p.parser,{cols:D,addJot:!0},"display"),pe,Ke=0,lt={type:"ordgroup",mode:p.mode,body:[]},yt=Fn(S[0],"ordgroup");if(yt){for(var Ot="",ir=0;ir<yt.body.length;ir++){var wr=hn(yt.body[ir],"textord");Ot+=wr.text}pe=Number(Ot),Ke=pe*2}var Sr=!Ke;V.body.forEach(function(wn){for(var xn=1;xn<wn.length;xn+=2){var kn=hn(wn[xn],"styling"),pn=hn(kn.body[0],"ordgroup");pn.body.unshift(lt)}if(Sr)Ke<wn.length&&(Ke=wn.length);else{var yi=wn.length/2;if(pe<yi)throw new g("Too many math in a row: "+("expected "+pe+", but got "+yi),wn[0])}});for(var Tn=0;Tn<Ke;++Tn){var _r="r",kt=0;Tn%2===1?_r="l":Tn>0&&Sr&&(kt=1),D[Tn]={type:"align",align:_r,pregap:kt,postgap:0}}return V.colSeparationType=Sr?"align":"alignat",V};ba({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(p,S){var D=rs(S[0]),V=D?[S[0]]:hn(S[0],"ordgroup").body,pe=V.map(function(lt){var yt=Hi(lt),Ot=yt.text;if("lcr".indexOf(Ot)!==-1)return{type:"align",align:Ot};if(Ot==="|")return{type:"separator",separator:"|"};if(Ot===":")return{type:"separator",separator:":"};throw new g("Unknown column alignment: "+Ot,lt)}),Ke={cols:pe,hskipBeforeAndAfter:!0};return _s(p.parser,Ke,zs(p.envName))},htmlBuilder:Is,mathmlBuilder:ma}),ba({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(p){var S={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[p.envName],D={hskipBeforeAndAfter:!1},V=_s(p.parser,D,zs(p.envName));return S?{type:"leftright",mode:p.mode,body:[V],left:S[0],right:S[1],rightColor:void 0}:V},htmlBuilder:Is,mathmlBuilder:ma}),ba({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(p){var S={arraystretch:.5},D=_s(p.parser,S,"script");return D.colSeparationType="small",D},htmlBuilder:Is,mathmlBuilder:ma}),ba({type:"array",names:["subarray"],props:{numArgs:1},handler:function(p,S){var D=rs(S[0]),V=D?[S[0]]:hn(S[0],"ordgroup").body,pe=V.map(function(lt){var yt=Hi(lt),Ot=yt.text;if("lc".indexOf(Ot)!==-1)return{type:"align",align:Ot};throw new g("Unknown column alignment: "+Ot,lt)});if(pe.length>1)throw new g("{subarray} can contain only one column");var Ke={cols:pe,hskipBeforeAndAfter:!1,arraystretch:.5};if(Ke=_s(p.parser,Ke,"script"),Ke.body[0].length>1)throw new g("{subarray} can contain only one column");return Ke},htmlBuilder:Is,mathmlBuilder:ma}),ba({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(p){var S={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},D=_s(p.parser,S,zs(p.envName));return{type:"leftright",mode:p.mode,body:[D],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Is,mathmlBuilder:ma}),ba({type:"array",names:["aligned"],props:{numArgs:0},handler:Ln,htmlBuilder:Is,mathmlBuilder:ma}),ba({type:"array",names:["gathered"],props:{numArgs:0},handler:function(p){var S={cols:[{type:"align",align:"c"}],addJot:!0};return _s(p.parser,S,"display")},htmlBuilder:Is,mathmlBuilder:ma}),ba({type:"array",names:["alignedat"],props:{numArgs:1},handler:Ln,htmlBuilder:Is,mathmlBuilder:ma}),Vn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(p,S){throw new g(p.funcName+" valid only within array environment")}});var _o=Ma,el=_o;Vn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[0];if(pe.type!=="ordgroup")throw new g("Invalid environment name",pe);for(var Ke="",lt=0;lt<pe.body.length;++lt)Ke+=hn(pe.body[lt],"textord").text;if(V==="\\begin"){if(!el.hasOwnProperty(Ke))throw new g("No such environment: "+Ke,pe);var yt=el[Ke],Ot=D.parseArguments("\\begin{"+Ke+"}",yt),ir=Ot.args,wr=Ot.optArgs,Sr={mode:D.mode,envName:Ke,parser:D},Tn=yt.handler(Sr,ir,wr);D.expect("\\end",!1);var _r=D.nextToken,kt=hn(D.parseFunction(),"environment");if(kt.name!==Ke)throw new g("Mismatch: \\begin{"+Ke+"} matched by \\end{"+kt.name+"}",_r);return Tn}return{type:"environment",mode:D.mode,name:Ke,nameGroup:pe}}});var Rl=Yt.makeSpan;function Ol(Qe,p){var S=Ui(Qe.body,p,!0);return Rl([Qe.mclass],S,p)}function Zo(Qe,p){var S,D=Di(Qe.body,p);return Qe.mclass==="minner"?Pn.newDocumentFragment(D):(Qe.mclass==="mord"?Qe.isCharacterBox?(S=D[0],S.type="mi"):S=new Pn.MathNode("mi",D):(Qe.isCharacterBox?(S=D[0],S.type="mo"):S=new Pn.MathNode("mo",D),Qe.mclass==="mbin"?(S.attributes.lspace="0.22em",S.attributes.rspace="0.22em"):Qe.mclass==="mpunct"?(S.attributes.lspace="0em",S.attributes.rspace="0.17em"):(Qe.mclass==="mopen"||Qe.mclass==="mclose")&&(S.attributes.lspace="0em",S.attributes.rspace="0em")),S)}Vn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[0];return{type:"mclass",mode:D.mode,mclass:"m"+V.substr(5),body:Wi(pe),isCharacterBox:P.isCharacterBox(pe)}},htmlBuilder:Ol,mathmlBuilder:Zo});var tl=function(p){var S=p.type==="ordgroup"&&p.body.length?p.body[0]:p;return S.type==="atom"&&(S.family==="bin"||S.family==="rel")?"m"+S.family:"mord"};Vn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(p,S){var D=p.parser;return{type:"mclass",mode:D.mode,mclass:tl(S[0]),body:[S[1]],isCharacterBox:P.isCharacterBox(S[1])}}}),Vn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[1],Ke=S[0],lt;V!=="\\stackrel"?lt=tl(pe):lt="mrel";var yt={type:"op",mode:pe.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:V!=="\\stackrel",body:Wi(pe)},Ot={type:"supsub",mode:Ke.mode,base:yt,sup:V==="\\underset"?null:Ke,sub:V==="\\underset"?Ke:null};return{type:"mclass",mode:D.mode,mclass:lt,body:[Ot],isCharacterBox:P.isCharacterBox(Ot)}},htmlBuilder:Ol,mathmlBuilder:Zo});var xu=function(p,S){var D=p.font,V=S.withFont(D);return $i(p.body,V)},zl=function(p,S){var D=p.font,V=S.withFont(D);return vi(p.body,V)},au={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Vn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[0],Ke=V;return Ke in au&&(Ke=au[Ke]),{type:"font",mode:D.mode,font:Ke.slice(1),body:pe}},htmlBuilder:xu,mathmlBuilder:zl}),Vn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(p,S){var D=p.parser,V=S[0],pe=P.isCharacterBox(V);return{type:"mclass",mode:D.mode,mclass:tl(V),body:[{type:"font",mode:D.mode,font:"boldsymbol",body:V}],isCharacterBox:pe}}}),Vn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(p,S){var D=p.parser,V=p.funcName,pe=p.breakOnTokenText,Ke=D.mode,lt=D.parseExpression(!0,pe),yt="math"+V.slice(1);return{type:"font",mode:Ke,font:yt,body:{type:"ordgroup",mode:D.mode,body:lt}}},htmlBuilder:xu,mathmlBuilder:zl});var Pl=function(p,S){var D=S;return p==="display"?D=D.id>=F.SCRIPT.id?D.text():F.DISPLAY:p==="text"&&D.size===F.DISPLAY.size?D=F.TEXT:p==="script"?D=F.SCRIPT:p==="scriptscript"&&(D=F.SCRIPTSCRIPT),D},Vo=function(p,S){var D=Pl(p.size,S.style),V=D.fracNum(),pe=D.fracDen(),Ke;Ke=S.havingStyle(V);var lt=$i(p.numer,Ke,S);if(p.continued){var yt=8.5/S.fontMetrics().ptPerEm,Ot=3.5/S.fontMetrics().ptPerEm;lt.height=lt.height<yt?yt:lt.height,lt.depth=lt.depth<Ot?Ot:lt.depth}Ke=S.havingStyle(pe);var ir=$i(p.denom,Ke,S),wr,Sr,Tn;p.hasBarLine?(p.barSize?(Sr=cr(p.barSize,S),wr=Yt.makeLineSpan("frac-line",S,Sr)):wr=Yt.makeLineSpan("frac-line",S),Sr=wr.height,Tn=wr.height):(wr=null,Sr=0,Tn=S.fontMetrics().defaultRuleThickness);var _r,kt,wn;D.size===F.DISPLAY.size||p.size==="display"?(_r=S.fontMetrics().num1,Sr>0?kt=3*Tn:kt=7*Tn,wn=S.fontMetrics().denom1):(Sr>0?(_r=S.fontMetrics().num2,kt=Tn):(_r=S.fontMetrics().num3,kt=3*Tn),wn=S.fontMetrics().denom2);var xn;if(wr){var pn=S.fontMetrics().axisHeight;_r-lt.depth-(pn+.5*Sr)<kt&&(_r+=kt-(_r-lt.depth-(pn+.5*Sr))),pn-.5*Sr-(ir.height-wn)<kt&&(wn+=kt-(pn-.5*Sr-(ir.height-wn)));var yi=-(pn-.5*Sr);xn=Yt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ir,shift:wn},{type:"elem",elem:wr,shift:yi},{type:"elem",elem:lt,shift:-_r}]},S)}else{var kn=_r-lt.depth-(ir.height-wn);kn<kt&&(_r+=.5*(kt-kn),wn+=.5*(kt-kn)),xn=Yt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ir,shift:wn},{type:"elem",elem:lt,shift:-_r}]},S)}Ke=S.havingStyle(D),xn.height*=Ke.sizeMultiplier/S.sizeMultiplier,xn.depth*=Ke.sizeMultiplier/S.sizeMultiplier;var xi;D.size===F.DISPLAY.size?xi=S.fontMetrics().delim1:xi=S.fontMetrics().delim2;var Fi,os;return p.leftDelim==null?Fi=ks(S,["mopen"]):Fi=ka.customSizedDelim(p.leftDelim,xi,!0,S.havingStyle(D),p.mode,["mopen"]),p.continued?os=Yt.makeSpan([]):p.rightDelim==null?os=ks(S,["mclose"]):os=ka.customSizedDelim(p.rightDelim,xi,!0,S.havingStyle(D),p.mode,["mclose"]),Yt.makeSpan(["mord"].concat(Ke.sizingClasses(S)),[Fi,Yt.makeSpan(["mfrac"],[xn]),os],S)},Mu=function(p,S){var D=new Pn.MathNode("mfrac",[vi(p.numer,S),vi(p.denom,S)]);if(!p.hasBarLine)D.setAttribute("linethickness","0px");else if(p.barSize){var V=cr(p.barSize,S);D.setAttribute("linethickness",V+"em")}var pe=Pl(p.size,S.style);if(pe.size!==S.style.size){D=new Pn.MathNode("mstyle",[D]);var Ke=pe.size===F.DISPLAY.size?"true":"false";D.setAttribute("displaystyle",Ke),D.setAttribute("scriptlevel","0")}if(p.leftDelim!=null||p.rightDelim!=null){var lt=[];if(p.leftDelim!=null){var yt=new Pn.MathNode("mo",[new Pn.TextNode(p.leftDelim.replace("\\",""))]);yt.setAttribute("fence","true"),lt.push(yt)}if(lt.push(D),p.rightDelim!=null){var Ot=new Pn.MathNode("mo",[new Pn.TextNode(p.rightDelim.replace("\\",""))]);Ot.setAttribute("fence","true"),lt.push(Ot)}return Ca(lt)}return D};Vn({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[0],Ke=S[1],lt,yt=null,Ot=null,ir="auto";switch(V){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":lt=!0;break;case"\\\\atopfrac":lt=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":lt=!1,yt="(",Ot=")";break;case"\\\\bracefrac":lt=!1,yt="\\{",Ot="\\}";break;case"\\\\brackfrac":lt=!1,yt="[",Ot="]";break;default:throw new Error("Unrecognized genfrac command")}switch(V){case"\\cfrac":case"\\dfrac":case"\\dbinom":ir="display";break;case"\\tfrac":case"\\tbinom":ir="text";break}return{type:"genfrac",mode:D.mode,continued:V==="\\cfrac",numer:pe,denom:Ke,hasBarLine:lt,leftDelim:yt,rightDelim:Ot,size:ir,barSize:null}},htmlBuilder:Vo,mathmlBuilder:Mu}),Vn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(p){var S=p.parser,D=p.funcName,V=p.token,pe;switch(D){case"\\over":pe="\\frac";break;case"\\choose":pe="\\binom";break;case"\\atop":pe="\\\\atopfrac";break;case"\\brace":pe="\\\\bracefrac";break;case"\\brack":pe="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:S.mode,replaceWith:pe,token:V}}});var Eu=["display","text","script","scriptscript"],sc=function(p){var S=null;return p.length>0&&(S=p,S=S==="."?null:S),S};Vn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(p,S){var D=p.parser,V=S[4],pe=S[5],Ke=Fn(S[0],"atom");Ke&&(Ke=$n(S[0],"open"));var lt=Ke?sc(Ke.text):null,yt=Fn(S[1],"atom");yt&&(yt=$n(S[1],"close"));var Ot=yt?sc(yt.text):null,ir=hn(S[2],"size"),wr,Sr=null;ir.isBlank?wr=!0:(Sr=ir.value,wr=Sr.number>0);var Tn="auto",_r=Fn(S[3],"ordgroup");if(_r){if(_r.body.length>0){var kt=hn(_r.body[0],"textord");Tn=Eu[Number(kt.text)]}}else _r=hn(S[3],"textord"),Tn=Eu[Number(_r.text)];return{type:"genfrac",mode:D.mode,numer:V,denom:pe,continued:!1,hasBarLine:wr,barSize:Sr,leftDelim:lt,rightDelim:Ot,size:Tn}},htmlBuilder:Vo,mathmlBuilder:Mu}),Vn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(p,S){var D=p.parser,V=p.funcName,pe=p.token;return{type:"infix",mode:D.mode,replaceWith:"\\\\abovefrac",size:hn(S[0],"size").value,token:pe}}}),Vn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[0],Ke=L(hn(S[1],"infix").size),lt=S[2],yt=Ke.number>0;return{type:"genfrac",mode:D.mode,numer:pe,denom:lt,continued:!1,hasBarLine:yt,barSize:Ke,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Vo,mathmlBuilder:Mu});var C=function(p,S){var D=S.style,V,pe,Ke=Fn(p,"supsub");Ke?(V=Ke.sup?$i(Ke.sup,S.havingStyle(D.sup()),S):$i(Ke.sub,S.havingStyle(D.sub()),S),pe=hn(Ke.base,"horizBrace")):pe=hn(p,"horizBrace");var lt=$i(pe.base,S.havingBaseStyle(F.DISPLAY)),yt=oi.svgSpan(pe,S),Ot;if(pe.isOver?(Ot=Yt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:lt},{type:"kern",size:.1},{type:"elem",elem:yt}]},S),Ot.children[0].children[0].children[1].classes.push("svg-align")):(Ot=Yt.makeVList({positionType:"bottom",positionData:lt.depth+.1+yt.height,children:[{type:"elem",elem:yt},{type:"kern",size:.1},{type:"elem",elem:lt}]},S),Ot.children[0].children[0].children[0].classes.push("svg-align")),V){var ir=Yt.makeSpan(["mord",pe.isOver?"mover":"munder"],[Ot],S);pe.isOver?Ot=Yt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ir},{type:"kern",size:.2},{type:"elem",elem:V}]},S):Ot=Yt.makeVList({positionType:"bottom",positionData:ir.depth+.2+V.height+V.depth,children:[{type:"elem",elem:V},{type:"kern",size:.2},{type:"elem",elem:ir}]},S)}return Yt.makeSpan(["mord",pe.isOver?"mover":"munder"],[Ot],S)},h=function(p,S){var D=oi.mathMLnode(p.label);return new Pn.MathNode(p.isOver?"mover":"munder",[vi(p.base,S),D])};Vn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(p,S){var D=p.parser,V=p.funcName;return{type:"horizBrace",mode:D.mode,label:V,isOver:/^\\over/.test(V),base:S[0]}},htmlBuilder:C,mathmlBuilder:h}),Vn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(p,S){var D=p.parser,V=S[1],pe=hn(S[0],"url").url;return D.settings.isTrusted({command:"\\href",url:pe})?{type:"href",mode:D.mode,href:pe,body:Wi(V)}:D.formatUnsupportedCmd("\\href")},htmlBuilder:function(p,S){var D=Ui(p.body,S,!1);return Yt.makeAnchor(p.href,[],D,S)},mathmlBuilder:function(p,S){var D=wi(p.body,S);return D instanceof Vi||(D=new Vi("mrow",[D])),D.setAttribute("href",p.href),D}}),Vn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(p,S){var D=p.parser,V=hn(S[0],"url").url;if(!D.settings.isTrusted({command:"\\url",url:V}))return D.formatUnsupportedCmd("\\url");for(var pe=[],Ke=0;Ke<V.length;Ke++){var lt=V[Ke];lt==="~"&&(lt="\\textasciitilde"),pe.push({type:"textord",mode:"text",text:lt})}var yt={type:"text",mode:D.mode,font:"\\texttt",body:pe};return{type:"href",mode:D.mode,href:V,body:Wi(yt)}}}),Vn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(p,S){var D=p.parser;return{type:"htmlmathml",mode:D.mode,html:Wi(S[0]),mathml:Wi(S[1])}},htmlBuilder:function(p,S){var D=Ui(p.html,S,!1);return Yt.makeFragment(D)},mathmlBuilder:function(p,S){return wi(p.mathml,S)}});var _=function(p){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(p))return{number:+p,unit:"bp"};var S=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(p);if(!S)throw new g("Invalid size: '"+p+"' in \\includegraphics");var D={number:+(S[1]+S[2]),unit:S[3]};if(!sr(D))throw new g("Invalid unit: '"+D.unit+"' in \\includegraphics.");return D};Vn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(p,S,D){var V=p.parser,pe={number:0,unit:"em"},Ke={number:.9,unit:"em"},lt={number:0,unit:"em"},yt="";if(D[0])for(var Ot=hn(D[0],"raw").string,ir=Ot.split(","),wr=0;wr<ir.length;wr++){var Sr=ir[wr].split("=");if(Sr.length===2){var Tn=Sr[1].trim();switch(Sr[0].trim()){case"alt":yt=Tn;break;case"width":pe=_(Tn);break;case"height":Ke=_(Tn);break;case"totalheight":lt=_(Tn);break;default:throw new g("Invalid key: '"+Sr[0]+"' in \\includegraphics.")}}}var _r=hn(S[0],"url").url;return yt===""&&(yt=_r,yt=yt.replace(/^.*[\\/]/,""),yt=yt.substring(0,yt.lastIndexOf("."))),V.settings.isTrusted({command:"\\includegraphics",url:_r})?{type:"includegraphics",mode:V.mode,alt:yt,width:pe,height:Ke,totalheight:lt,src:_r}:V.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(p,S){var D=cr(p.height,S),V=0;p.totalheight.number>0&&(V=cr(p.totalheight,S)-D,V=Number(V.toFixed(2)));var pe=0;p.width.number>0&&(pe=cr(p.width,S));var Ke={height:D+V+"em"};pe>0&&(Ke.width=pe+"em"),V>0&&(Ke.verticalAlign=-V+"em");var lt=new fe(p.src,p.alt,Ke);return lt.height=D,lt.depth=V,lt},mathmlBuilder:function(p,S){var D=new Pn.MathNode("mglyph",[]);D.setAttribute("alt",p.alt);var V=cr(p.height,S),pe=0;if(p.totalheight.number>0&&(pe=cr(p.totalheight,S)-V,pe=pe.toFixed(2),D.setAttribute("valign","-"+pe+"em")),D.setAttribute("height",V+pe+"em"),p.width.number>0){var Ke=cr(p.width,S);D.setAttribute("width",Ke+"em")}return D.setAttribute("src",p.src),D}}),Vn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(p,S){var D=p.parser,V=p.funcName,pe=hn(S[0],"size");if(D.settings.strict){var Ke=V[1]==="m",lt=pe.value.unit==="mu";Ke?(lt||D.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+V+" supports only mu units, "+("not "+pe.value.unit+" units")),D.mode!=="math"&&D.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+V+" works only in math mode")):lt&&D.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+V+" doesn't support mu units")}return{type:"kern",mode:D.mode,dimension:pe.value}},htmlBuilder:function(p,S){return Yt.makeGlue(p.dimension,S)},mathmlBuilder:function(p,S){var D=cr(p.dimension,S);return new Pn.SpaceNode(D)}}),Vn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[0];return{type:"lap",mode:D.mode,alignment:V.slice(5),body:pe}},htmlBuilder:function(p,S){var D;p.alignment==="clap"?(D=Yt.makeSpan([],[$i(p.body,S)]),D=Yt.makeSpan(["inner"],[D],S)):D=Yt.makeSpan(["inner"],[$i(p.body,S)]);var V=Yt.makeSpan(["fix"],[]),pe=Yt.makeSpan([p.alignment],[D,V],S),Ke=Yt.makeSpan(["strut"]);return Ke.style.height=pe.height+pe.depth+"em",Ke.style.verticalAlign=-pe.depth+"em",pe.children.unshift(Ke),pe=Yt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:pe}]},S),Yt.makeSpan(["mord"],[pe],S)},mathmlBuilder:function(p,S){var D=new Pn.MathNode("mpadded",[vi(p.body,S)]);if(p.alignment!=="rlap"){var V=p.alignment==="llap"?"-1":"-0.5";D.setAttribute("lspace",V+"width")}return D.setAttribute("width","0px"),D}}),Vn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(p,S){var D=p.funcName,V=p.parser,pe=V.mode;V.switchMode("math");var Ke=D==="\\("?"\\)":"$",lt=V.parseExpression(!1,Ke);return V.expect(Ke),V.switchMode(pe),{type:"styling",mode:V.mode,style:"text",body:lt}}}),Vn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(p,S){throw new g("Mismatched "+p.funcName)}});var j=function(p,S){switch(S.style.size){case F.DISPLAY.size:return p.display;case F.TEXT.size:return p.text;case F.SCRIPT.size:return p.script;case F.SCRIPTSCRIPT.size:return p.scriptscript;default:return p.text}};Vn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(p,S){var D=p.parser;return{type:"mathchoice",mode:D.mode,display:Wi(S[0]),text:Wi(S[1]),script:Wi(S[2]),scriptscript:Wi(S[3])}},htmlBuilder:function(p,S){var D=j(p,S),V=Ui(D,S,!1);return Yt.makeFragment(V)},mathmlBuilder:function(p,S){var D=j(p,S);return wi(D,S)}});var ie=function(p,S,D,V,pe,Ke,lt){p=Yt.makeSpan([],[p]);var yt,Ot;if(S){var ir=$i(S,V.havingStyle(pe.sup()),V);Ot={elem:ir,kern:Math.max(V.fontMetrics().bigOpSpacing1,V.fontMetrics().bigOpSpacing3-ir.depth)}}if(D){var wr=$i(D,V.havingStyle(pe.sub()),V);yt={elem:wr,kern:Math.max(V.fontMetrics().bigOpSpacing2,V.fontMetrics().bigOpSpacing4-wr.height)}}var Sr;if(Ot&&yt){var Tn=V.fontMetrics().bigOpSpacing5+yt.elem.height+yt.elem.depth+yt.kern+p.depth+lt;Sr=Yt.makeVList({positionType:"bottom",positionData:Tn,children:[{type:"kern",size:V.fontMetrics().bigOpSpacing5},{type:"elem",elem:yt.elem,marginLeft:-Ke+"em"},{type:"kern",size:yt.kern},{type:"elem",elem:p},{type:"kern",size:Ot.kern},{type:"elem",elem:Ot.elem,marginLeft:Ke+"em"},{type:"kern",size:V.fontMetrics().bigOpSpacing5}]},V)}else if(yt){var _r=p.height-lt;Sr=Yt.makeVList({positionType:"top",positionData:_r,children:[{type:"kern",size:V.fontMetrics().bigOpSpacing5},{type:"elem",elem:yt.elem,marginLeft:-Ke+"em"},{type:"kern",size:yt.kern},{type:"elem",elem:p}]},V)}else if(Ot){var kt=p.depth+lt;Sr=Yt.makeVList({positionType:"bottom",positionData:kt,children:[{type:"elem",elem:p},{type:"kern",size:Ot.kern},{type:"elem",elem:Ot.elem,marginLeft:Ke+"em"},{type:"kern",size:V.fontMetrics().bigOpSpacing5}]},V)}else return p;return Yt.makeSpan(["mop","op-limits"],[Sr],V)},X=["\\smallint"],me=function(p,S){var D,V,pe=!1,Ke,lt=Fn(p,"supsub");lt?(D=lt.sup,V=lt.sub,Ke=hn(lt.base,"op"),pe=!0):Ke=hn(p,"op");var yt=S.style,Ot=!1;yt.size===F.DISPLAY.size&&Ke.symbol&&!P.contains(X,Ke.name)&&(Ot=!0);var ir;if(Ke.symbol){var wr=Ot?"Size2-Regular":"Size1-Regular",Sr="";if((Ke.name==="\\oiint"||Ke.name==="\\oiiint")&&(Sr=Ke.name.substr(1),Ke.name=Sr==="oiint"?"\\iint":"\\iiint"),ir=Yt.makeSymbol(Ke.name,wr,"math",S,["mop","op-symbol",Ot?"large-op":"small-op"]),Sr.length>0){var Tn=ir.italic,_r=Yt.staticSvg(Sr+"Size"+(Ot?"2":"1"),S);ir=Yt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ir,shift:0},{type:"elem",elem:_r,shift:Ot?.08:0}]},S),Ke.name="\\"+Sr,ir.classes.unshift("mop"),ir.italic=Tn}}else if(Ke.body){var kt=Ui(Ke.body,S,!0);kt.length===1&&kt[0]instanceof Q?(ir=kt[0],ir.classes[0]="mop"):ir=Yt.makeSpan(["mop"],Yt.tryCombineChars(kt),S)}else{for(var wn=[],xn=1;xn<Ke.name.length;xn++)wn.push(Yt.mathsym(Ke.name[xn],Ke.mode,S));ir=Yt.makeSpan(["mop"],wn,S)}var kn=0,pn=0;return(ir instanceof Q||Ke.name==="\\oiint"||Ke.name==="\\oiiint")&&!Ke.suppressBaseShift&&(kn=(ir.height-ir.depth)/2-S.fontMetrics().axisHeight,pn=ir.italic),pe?ie(ir,D,V,S,yt,pn,kn):(kn&&(ir.style.position="relative",ir.style.top=kn+"em"),ir)},De=function(p,S){var D;if(p.symbol)D=new Vi("mo",[as(p.name,p.mode)]),P.contains(X,p.name)&&D.setAttribute("largeop","false");else if(p.body)D=new Vi("mo",Di(p.body,S));else{D=new Vi("mi",[new Ga(p.name.slice(1))]);var V=new Vi("mo",[as("\u2061","text")]);p.parentIsSupSub?D=new Vi("mo",[D,V]):D=Na([D,V])}return D},ke={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Vn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(p,S){var D=p.parser,V=p.funcName,pe=V;return pe.length===1&&(pe=ke[pe]),{type:"op",mode:D.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:pe}},htmlBuilder:me,mathmlBuilder:De}),Vn({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(p,S){var D=p.parser,V=S[0];return{type:"op",mode:D.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Wi(V)}},htmlBuilder:me,mathmlBuilder:De});var et={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Vn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(p){var S=p.parser,D=p.funcName;return{type:"op",mode:S.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:D}},htmlBuilder:me,mathmlBuilder:De}),Vn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(p){var S=p.parser,D=p.funcName;return{type:"op",mode:S.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:D}},htmlBuilder:me,mathmlBuilder:De}),Vn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(p){var S=p.parser,D=p.funcName,V=D;return V.length===1&&(V=et[V]),{type:"op",mode:S.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:V}},htmlBuilder:me,mathmlBuilder:De});var dt=function(p,S){var D,V,pe=!1,Ke,lt=Fn(p,"supsub");lt?(D=lt.sup,V=lt.sub,Ke=hn(lt.base,"operatorname"),pe=!0):Ke=hn(p,"operatorname");var yt;if(Ke.body.length>0){for(var Ot=Ke.body.map(function(Tn){var _r=Tn.text;return typeof _r=="string"?{type:"textord",mode:Tn.mode,text:_r}:Tn}),ir=Ui(Ot,S.withFont("mathrm"),!0),wr=0;wr<ir.length;wr++){var Sr=ir[wr];Sr instanceof Q&&(Sr.text=Sr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}yt=Yt.makeSpan(["mop"],ir,S)}else yt=Yt.makeSpan(["mop"],[],S);return pe?ie(yt,D,V,S,S.style,0,0):yt},ft=function(p,S){for(var D=Di(p.body,S.withFont("mathrm")),V=!0,pe=0;pe<D.length;pe++){var Ke=D[pe];if(!(Ke instanceof Pn.SpaceNode))if(Ke instanceof Pn.MathNode)switch(Ke.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var lt=Ke.children[0];Ke.children.length===1&< instanceof Pn.TextNode?lt.text=lt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):V=!1;break}default:V=!1}else V=!1}if(V){var yt=D.map(function(wr){return wr.toText()}).join("");D=[new Pn.TextNode(yt)]}var Ot=new Pn.MathNode("mi",D);Ot.setAttribute("mathvariant","normal");var ir=new Pn.MathNode("mo",[as("\u2061","text")]);return p.parentIsSupSub?new Pn.MathNode("mo",[Ot,ir]):Pn.newDocumentFragment([Ot,ir])};Vn({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[0];return{type:"operatorname",mode:D.mode,body:Wi(pe),alwaysHandleSupSub:V==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:dt,mathmlBuilder:ft}),us({type:"ordgroup",htmlBuilder:function(p,S){return p.semisimple?Yt.makeFragment(Ui(p.body,S,!1)):Yt.makeSpan(["mord"],Ui(p.body,S,!0),S)},mathmlBuilder:function(p,S){return wi(p.body,S,!0)}}),Vn({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(p,S){var D=p.parser,V=S[0];return{type:"overline",mode:D.mode,body:V}},htmlBuilder:function(p,S){var D=$i(p.body,S.havingCrampedStyle()),V=Yt.makeLineSpan("overline-line",S),pe=S.fontMetrics().defaultRuleThickness,Ke=Yt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:D},{type:"kern",size:3*pe},{type:"elem",elem:V},{type:"kern",size:pe}]},S);return Yt.makeSpan(["mord","overline"],[Ke],S)},mathmlBuilder:function(p,S){var D=new Pn.MathNode("mo",[new Pn.TextNode("\u203E")]);D.setAttribute("stretchy","true");var V=new Pn.MathNode("mover",[vi(p.body,S),D]);return V.setAttribute("accent","true"),V}}),Vn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(p,S){var D=p.parser,V=S[0];return{type:"phantom",mode:D.mode,body:Wi(V)}},htmlBuilder:function(p,S){var D=Ui(p.body,S.withPhantom(),!1);return Yt.makeFragment(D)},mathmlBuilder:function(p,S){var D=Di(p.body,S);return new Pn.MathNode("mphantom",D)}}),Vn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(p,S){var D=p.parser,V=S[0];return{type:"hphantom",mode:D.mode,body:V}},htmlBuilder:function(p,S){var D=Yt.makeSpan([],[$i(p.body,S.withPhantom())]);if(D.height=0,D.depth=0,D.children)for(var V=0;V<D.children.length;V++)D.children[V].height=0,D.children[V].depth=0;return D=Yt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:D}]},S),Yt.makeSpan(["mord"],[D],S)},mathmlBuilder:function(p,S){var D=Di(Wi(p.body),S),V=new Pn.MathNode("mphantom",D),pe=new Pn.MathNode("mpadded",[V]);return pe.setAttribute("height","0px"),pe.setAttribute("depth","0px"),pe}}),Vn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(p,S){var D=p.parser,V=S[0];return{type:"vphantom",mode:D.mode,body:V}},htmlBuilder:function(p,S){var D=Yt.makeSpan(["inner"],[$i(p.body,S.withPhantom())]),V=Yt.makeSpan(["fix"],[]);return Yt.makeSpan(["mord","rlap"],[D,V],S)},mathmlBuilder:function(p,S){var D=Di(Wi(p.body),S),V=new Pn.MathNode("mphantom",D),pe=new Pn.MathNode("mpadded",[V]);return pe.setAttribute("width","0px"),pe}}),Vn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(p,S){var D=p.parser,V=hn(S[0],"size").value,pe=S[1];return{type:"raisebox",mode:D.mode,dy:V,body:pe}},htmlBuilder:function(p,S){var D=$i(p.body,S),V=cr(p.dy,S);return Yt.makeVList({positionType:"shift",positionData:-V,children:[{type:"elem",elem:D}]},S)},mathmlBuilder:function(p,S){var D=new Pn.MathNode("mpadded",[vi(p.body,S)]),V=p.dy.number+p.dy.unit;return D.setAttribute("voffset",V),D}}),Vn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(p,S,D){var V=p.parser,pe=D[0],Ke=hn(S[0],"size"),lt=hn(S[1],"size");return{type:"rule",mode:V.mode,shift:pe&&hn(pe,"size").value,width:Ke.value,height:lt.value}},htmlBuilder:function(p,S){var D=Yt.makeSpan(["mord","rule"],[],S),V=cr(p.width,S),pe=cr(p.height,S),Ke=p.shift?cr(p.shift,S):0;return D.style.borderRightWidth=V+"em",D.style.borderTopWidth=pe+"em",D.style.bottom=Ke+"em",D.width=V,D.height=pe+Ke,D.depth=-Ke,D.maxFontSize=pe*1.125*S.sizeMultiplier,D},mathmlBuilder:function(p,S){var D=cr(p.width,S),V=cr(p.height,S),pe=p.shift?cr(p.shift,S):0,Ke=S.color&&S.getColor()||"black",lt=new Pn.MathNode("mspace");lt.setAttribute("mathbackground",Ke),lt.setAttribute("width",D+"em"),lt.setAttribute("height",V+"em");var yt=new Pn.MathNode("mpadded",[lt]);return pe>=0?yt.setAttribute("height","+"+pe+"em"):(yt.setAttribute("height",pe+"em"),yt.setAttribute("depth","+"+-pe+"em")),yt.setAttribute("voffset",pe+"em"),yt}});function Ct(Qe,p,S){for(var D=Ui(Qe,p,!1),V=p.sizeMultiplier/S.sizeMultiplier,pe=0;pe<D.length;pe++){var Ke=D[pe].classes.indexOf("sizing");Ke<0?Array.prototype.push.apply(D[pe].classes,p.sizingClasses(S)):D[pe].classes[Ke+1]==="reset-size"+p.size&&(D[pe].classes[Ke+1]="reset-size"+S.size),D[pe].height*=V,D[pe].depth*=V}return Yt.makeFragment(D)}var Ve=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],nr=function(p,S){var D=S.havingSize(p.size);return Ct(p.body,D,S)};Vn({type:"sizing",names:Ve,props:{numArgs:0,allowedInText:!0},handler:function(p,S){var D=p.breakOnTokenText,V=p.funcName,pe=p.parser,Ke=pe.parseExpression(!1,D);return{type:"sizing",mode:pe.mode,size:Ve.indexOf(V)+1,body:Ke}},htmlBuilder:nr,mathmlBuilder:function(p,S){var D=S.havingSize(p.size),V=Di(p.body,D),pe=new Pn.MathNode("mstyle",V);return pe.setAttribute("mathsize",D.sizeMultiplier+"em"),pe}}),Vn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(p,S,D){var V=p.parser,pe=!1,Ke=!1,lt=D[0]&&hn(D[0],"ordgroup");if(lt)for(var yt="",Ot=0;Ot<lt.body.length;++Ot){var ir=lt.body[Ot];if(yt=ir.text,yt==="t")pe=!0;else if(yt==="b")Ke=!0;else{pe=!1,Ke=!1;break}}else pe=!0,Ke=!0;var wr=S[0];return{type:"smash",mode:V.mode,body:wr,smashHeight:pe,smashDepth:Ke}},htmlBuilder:function(p,S){var D=Yt.makeSpan([],[$i(p.body,S)]);if(!p.smashHeight&&!p.smashDepth)return D;if(p.smashHeight&&(D.height=0,D.children))for(var V=0;V<D.children.length;V++)D.children[V].height=0;if(p.smashDepth&&(D.depth=0,D.children))for(var pe=0;pe<D.children.length;pe++)D.children[pe].depth=0;var Ke=Yt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:D}]},S);return Yt.makeSpan(["mord"],[Ke],S)},mathmlBuilder:function(p,S){var D=new Pn.MathNode("mpadded",[vi(p.body,S)]);return p.smashHeight&&D.setAttribute("height","0px"),p.smashDepth&&D.setAttribute("depth","0px"),D}}),Vn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(p,S,D){var V=p.parser,pe=D[0],Ke=S[0];return{type:"sqrt",mode:V.mode,body:Ke,index:pe}},htmlBuilder:function(p,S){var D=$i(p.body,S.havingCrampedStyle());D.height===0&&(D.height=S.fontMetrics().xHeight),D=Yt.wrapFragment(D,S);var V=S.fontMetrics(),pe=V.defaultRuleThickness,Ke=pe;S.style.id<F.TEXT.id&&(Ke=S.fontMetrics().xHeight);var lt=pe+Ke/4,yt=D.height+D.depth+lt+pe,Ot=ka.sqrtImage(yt,S),ir=Ot.span,wr=Ot.ruleWidth,Sr=Ot.advanceWidth,Tn=ir.height-wr;Tn>D.height+D.depth+lt&&(lt=(lt+Tn-D.height-D.depth)/2);var _r=ir.height-D.height-lt-wr;D.style.paddingLeft=Sr+"em";var kt=Yt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:D,wrapperClasses:["svg-align"]},{type:"kern",size:-(D.height+_r)},{type:"elem",elem:ir},{type:"kern",size:wr}]},S);if(p.index){var wn=S.havingStyle(F.SCRIPTSCRIPT),xn=$i(p.index,wn,S),kn=.6*(kt.height-kt.depth),pn=Yt.makeVList({positionType:"shift",positionData:-kn,children:[{type:"elem",elem:xn}]},S),yi=Yt.makeSpan(["root"],[pn]);return Yt.makeSpan(["mord","sqrt"],[yi,kt],S)}else return Yt.makeSpan(["mord","sqrt"],[kt],S)},mathmlBuilder:function(p,S){var D=p.body,V=p.index;return V?new Pn.MathNode("mroot",[vi(D,S),vi(V,S)]):new Pn.MathNode("msqrt",[vi(D,S)])}});var Zt={display:F.DISPLAY,text:F.TEXT,script:F.SCRIPT,scriptscript:F.SCRIPTSCRIPT};Vn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(p,S){var D=p.breakOnTokenText,V=p.funcName,pe=p.parser,Ke=pe.parseExpression(!0,D),lt=V.slice(1,V.length-5);return{type:"styling",mode:pe.mode,style:lt,body:Ke}},htmlBuilder:function(p,S){var D=Zt[p.style],V=S.havingStyle(D).withFont("");return Ct(p.body,V,S)},mathmlBuilder:function(p,S){var D=Zt[p.style],V=S.havingStyle(D),pe=Di(p.body,V),Ke=new Pn.MathNode("mstyle",pe),lt={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},yt=lt[p.style];return Ke.setAttribute("scriptlevel",yt[0]),Ke.setAttribute("displaystyle",yt[1]),Ke}});var or=function(p,S){var D=p.base;if(D)if(D.type==="op"){var V=D.limits&&(S.style.size===F.DISPLAY.size||D.alwaysHandleSupSub);return V?me:null}else if(D.type==="operatorname"){var pe=D.alwaysHandleSupSub&&(S.style.size===F.DISPLAY.size||D.limits);return pe?dt:null}else{if(D.type==="accent")return P.isCharacterBox(D.base)?Ji:null;if(D.type==="horizBrace"){var Ke=!p.sub;return Ke===D.isOver?C:null}else return null}else return null};us({type:"supsub",htmlBuilder:function(p,S){var D=or(p,S);if(D)return D(p,S);var V=p.base,pe=p.sup,Ke=p.sub,lt=$i(V,S),yt,Ot,ir=S.fontMetrics(),wr=0,Sr=0,Tn=V&&P.isCharacterBox(V);if(pe){var _r=S.havingStyle(S.style.sup());yt=$i(pe,_r,S),Tn||(wr=lt.height-_r.fontMetrics().supDrop*_r.sizeMultiplier/S.sizeMultiplier)}if(Ke){var kt=S.havingStyle(S.style.sub());Ot=$i(Ke,kt,S),Tn||(Sr=lt.depth+kt.fontMetrics().subDrop*kt.sizeMultiplier/S.sizeMultiplier)}var wn;S.style===F.DISPLAY?wn=ir.sup1:S.style.cramped?wn=ir.sup3:wn=ir.sup2;var xn=S.sizeMultiplier,kn=.5/ir.ptPerEm/xn+"em",pn=null;if(Ot){var yi=p.base&&p.base.type==="op"&&p.base.name&&(p.base.name==="\\oiint"||p.base.name==="\\oiiint");(lt instanceof Q||yi)&&(pn=-lt.italic+"em")}var xi;if(yt&&Ot){wr=Math.max(wr,wn,yt.depth+.25*ir.xHeight),Sr=Math.max(Sr,ir.sub2);var Fi=ir.defaultRuleThickness,os=4*Fi;if(wr-yt.depth-(Ot.height-Sr)<os){Sr=os-(wr-yt.depth)+Ot.height;var fi=.8*ir.xHeight-(wr-yt.depth);fi>0&&(wr+=fi,Sr-=fi)}var Es=[{type:"elem",elem:Ot,shift:Sr,marginRight:kn,marginLeft:pn},{type:"elem",elem:yt,shift:-wr,marginRight:kn}];xi=Yt.makeVList({positionType:"individualShift",children:Es},S)}else if(Ot){Sr=Math.max(Sr,ir.sub1,Ot.height-.8*ir.xHeight);var ns=[{type:"elem",elem:Ot,marginLeft:pn,marginRight:kn}];xi=Yt.makeVList({positionType:"shift",positionData:Sr,children:ns},S)}else if(yt)wr=Math.max(wr,wn,yt.depth+.25*ir.xHeight),xi=Yt.makeVList({positionType:"shift",positionData:-wr,children:[{type:"elem",elem:yt,marginRight:kn}]},S);else throw new Error("supsub must have either sup or sub.");var Xi=Ri(lt,"right")||"mord";return Yt.makeSpan([Xi],[lt,Yt.makeSpan(["msupsub"],[xi])],S)},mathmlBuilder:function(p,S){var D=!1,V,pe,Ke=Fn(p.base,"horizBrace");Ke&&(pe=!!p.sup,pe===Ke.isOver&&(D=!0,V=Ke.isOver)),p.base&&(p.base.type==="op"||p.base.type==="operatorname")&&(p.base.parentIsSupSub=!0);var lt=[vi(p.base,S)];p.sub&<.push(vi(p.sub,S)),p.sup&<.push(vi(p.sup,S));var yt;if(D)yt=V?"mover":"munder";else if(p.sub)if(p.sup){var wr=p.base;wr&&wr.type==="op"&&wr.limits&&S.style===F.DISPLAY||wr&&wr.type==="operatorname"&&wr.alwaysHandleSupSub&&(S.style===F.DISPLAY||wr.limits)?yt="munderover":yt="msubsup"}else{var ir=p.base;ir&&ir.type==="op"&&ir.limits&&(S.style===F.DISPLAY||ir.alwaysHandleSupSub)||ir&&ir.type==="operatorname"&&ir.alwaysHandleSupSub&&(ir.limits||S.style===F.DISPLAY)?yt="munder":yt="msub"}else{var Ot=p.base;Ot&&Ot.type==="op"&&Ot.limits&&(S.style===F.DISPLAY||Ot.alwaysHandleSupSub)||Ot&&Ot.type==="operatorname"&&Ot.alwaysHandleSupSub&&(Ot.limits||S.style===F.DISPLAY)?yt="mover":yt="msup"}var Sr=new Pn.MathNode(yt,lt);return Sr}}),us({type:"atom",htmlBuilder:function(p,S){return Yt.mathsym(p.text,p.mode,S,["m"+p.family])},mathmlBuilder:function(p,S){var D=new Pn.MathNode("mo",[as(p.text,p.mode)]);if(p.family==="bin"){var V=Bi(p,S);V==="bold-italic"&&D.setAttribute("mathvariant",V)}else p.family==="punct"?D.setAttribute("separator","true"):(p.family==="open"||p.family==="close")&&D.setAttribute("stretchy","false");return D}});var Lt={mi:"italic",mn:"normal",mtext:"normal"};us({type:"mathord",htmlBuilder:function(p,S){return Yt.makeOrd(p,S,"mathord")},mathmlBuilder:function(p,S){var D=new Pn.MathNode("mi",[as(p.text,p.mode,S)]),V=Bi(p,S)||"italic";return V!==Lt[D.type]&&D.setAttribute("mathvariant",V),D}}),us({type:"textord",htmlBuilder:function(p,S){return Yt.makeOrd(p,S,"textord")},mathmlBuilder:function(p,S){var D=as(p.text,p.mode,S),V=Bi(p,S)||"normal",pe;return p.mode==="text"?pe=new Pn.MathNode("mtext",[D]):/[0-9]/.test(p.text)?pe=new Pn.MathNode("mn",[D]):p.text==="\\prime"?pe=new Pn.MathNode("mo",[D]):pe=new Pn.MathNode("mi",[D]),V!==Lt[pe.type]&&pe.setAttribute("mathvariant",V),pe}});var ar={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ir={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};us({type:"spacing",htmlBuilder:function(p,S){if(Ir.hasOwnProperty(p.text)){var D=Ir[p.text].className||"";if(p.mode==="text"){var V=Yt.makeOrd(p,S,"textord");return V.classes.push(D),V}else return Yt.makeSpan(["mspace",D],[Yt.mathsym(p.text,p.mode,S)],S)}else{if(ar.hasOwnProperty(p.text))return Yt.makeSpan(["mspace",ar[p.text]],[],S);throw new g('Unknown type of space "'+p.text+'"')}},mathmlBuilder:function(p,S){var D;if(Ir.hasOwnProperty(p.text))D=new Pn.MathNode("mtext",[new Pn.TextNode("\xA0")]);else{if(ar.hasOwnProperty(p.text))return new Pn.MathNode("mspace");throw new g('Unknown type of space "'+p.text+'"')}return D}});var Zr=function(){var p=new Pn.MathNode("mtd",[]);return p.setAttribute("width","50%"),p};us({type:"tag",mathmlBuilder:function(p,S){var D=new Pn.MathNode("mtable",[new Pn.MathNode("mtr",[Zr(),new Pn.MathNode("mtd",[wi(p.body,S)]),Zr(),new Pn.MathNode("mtd",[wi(p.tag,S)])])]);return D.setAttribute("width","100%"),D}});var mn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Gn={"\\textbf":"textbf","\\textmd":"textmd"},Jr={"\\textit":"textit","\\textup":"textup"},br=function(p,S){var D=p.font;return D?mn[D]?S.withTextFontFamily(mn[D]):Gn[D]?S.withTextFontWeight(Gn[D]):S.withTextFontShape(Jr[D]):S};Vn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(p,S){var D=p.parser,V=p.funcName,pe=S[0];return{type:"text",mode:D.mode,body:Wi(pe),font:V}},htmlBuilder:function(p,S){var D=br(p,S),V=Ui(p.body,D,!0);return Yt.makeSpan(["mord","text"],Yt.tryCombineChars(V),D)},mathmlBuilder:function(p,S){var D=br(p,S);return wi(p.body,D)}}),Vn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(p,S){var D=p.parser;return{type:"underline",mode:D.mode,body:S[0]}},htmlBuilder:function(p,S){var D=$i(p.body,S),V=Yt.makeLineSpan("underline-line",S),pe=S.fontMetrics().defaultRuleThickness,Ke=Yt.makeVList({positionType:"top",positionData:D.height,children:[{type:"kern",size:pe},{type:"elem",elem:V},{type:"kern",size:3*pe},{type:"elem",elem:D}]},S);return Yt.makeSpan(["mord","underline"],[Ke],S)},mathmlBuilder:function(p,S){var D=new Pn.MathNode("mo",[new Pn.TextNode("\u203E")]);D.setAttribute("stretchy","true");var V=new Pn.MathNode("munder",[vi(p.body,S),D]);return V.setAttribute("accentunder","true"),V}}),Vn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(p,S,D){throw new g("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(p,S){for(var D=en(p),V=[],pe=S.havingStyle(S.style.text()),Ke=0;Ke<D.length;Ke++){var lt=D[Ke];lt==="~"&&(lt="\\textasciitilde"),V.push(Yt.makeSymbol(lt,"Typewriter-Regular",p.mode,pe,["mord","texttt"]))}return Yt.makeSpan(["mord","text"].concat(pe.sizingClasses(S)),Yt.tryCombineChars(V),pe)},mathmlBuilder:function(p,S){var D=new Pn.TextNode(en(p)),V=new Pn.MathNode("mtext",[D]);return V.setAttribute("mathvariant","monospace"),V}});var en=function(p){return p.body.replace(/ /g,p.star?"\u2423":"\xA0")},In=Mi,Nt=In,Wt=`[ \r
|
|
|
]`,Cr="\\\\[a-zA-Z@]+",ge="\\\\[^\uD800-\uDFFF]",Pe=""+Cr+Wt+"*",Ye=new RegExp("^("+Cr+")"+Wt+"*$"),st="[\u0300-\u036F]",ot=new RegExp(st+"+$"),gt="("+Wt+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(st+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(st+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Pe)+("|"+ge+")"),Ft=function(){function Qe(S,D){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=S,this.settings=D,this.tokenRegex=new RegExp(gt,"g"),this.catcodes={"%":14}}var p=Qe.prototype;return p.setCatcode=function(D,V){this.catcodes[D]=V},p.lex=function(){var D=this.input,V=this.tokenRegex.lastIndex;if(V===D.length)return new Re("EOF",new ae(this,V,V));var pe=this.tokenRegex.exec(D);if(pe===null||pe.index!==V)throw new g("Unexpected character: '"+D[V]+"'",new Re(D[V],new ae(this,V,V+1)));var Ke=pe[2]||" ";if(this.catcodes[Ke]===14){var lt=D.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return lt===-1?(this.tokenRegex.lastIndex=D.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=lt+1,this.lex()}var yt=Ke.match(Ye);return yt&&(Ke=yt[1]),new Re(Ke,new ae(this,V,this.tokenRegex.lastIndex))},Qe}(),er=function(){function Qe(S,D){S===void 0&&(S={}),D===void 0&&(D={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=D,this.builtins=S,this.undefStack=[]}var p=Qe.prototype;return p.beginGroup=function(){this.undefStack.push({})},p.endGroup=function(){if(this.undefStack.length===0)throw new g("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var D=this.undefStack.pop();for(var V in D)D.hasOwnProperty(V)&&(D[V]===void 0?delete this.current[V]:this.current[V]=D[V])},p.has=function(D){return this.current.hasOwnProperty(D)||this.builtins.hasOwnProperty(D)},p.get=function(D){return this.current.hasOwnProperty(D)?this.current[D]:this.builtins[D]},p.set=function(D,V,pe){if(pe===void 0&&(pe=!1),pe){for(var Ke=0;Ke<this.undefStack.length;Ke++)delete this.undefStack[Ke][D];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][D]=V)}else{var lt=this.undefStack[this.undefStack.length-1];lt&&!lt.hasOwnProperty(D)&&(lt[D]=this.current[D])}this.current[D]=V},Qe}(),je={},at=je;function Ie(Qe,p){je[Qe]=p}Ie("\\@firstoftwo",function(Qe){var p=Qe.consumeArgs(2);return{tokens:p[0],numArgs:0}}),Ie("\\@secondoftwo",function(Qe){var p=Qe.consumeArgs(2);return{tokens:p[1],numArgs:0}}),Ie("\\@ifnextchar",function(Qe){var p=Qe.consumeArgs(3),S=Qe.future();return p[0].length===1&&p[0][0].text===S.text?{tokens:p[1],numArgs:0}:{tokens:p[2],numArgs:0}}),Ie("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Ie("\\TextOrMath",function(Qe){var p=Qe.consumeArgs(2);return Qe.mode==="text"?{tokens:p[0],numArgs:0}:{tokens:p[1],numArgs:0}});var bt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Ie("\\char",function(Qe){var p=Qe.popToken(),S,D="";if(p.text==="'")S=8,p=Qe.popToken();else if(p.text==='"')S=16,p=Qe.popToken();else if(p.text==="`")if(p=Qe.popToken(),p.text[0]==="\\")D=p.text.charCodeAt(1);else{if(p.text==="EOF")throw new g("\\char` missing argument");D=p.text.charCodeAt(0)}else S=10;if(S){if(D=bt[p.text],D==null||D>=S)throw new g("Invalid base-"+S+" digit "+p.text);for(var V;(V=bt[Qe.future().text])!=null&&V<S;)D*=S,D+=V,Qe.popToken()}return"\\@char{"+D+"}"});var Kt=function(p,S){var D=p.consumeArgs(1)[0];if(D.length!==1)throw new g("\\gdef's first argument must be a macro name");var V=D[0].text,pe=0;for(D=p.consumeArgs(1)[0];D.length===1&&D[0].text==="#";){if(D=p.consumeArgs(1)[0],D.length!==1)throw new g('Invalid argument number length "'+D.length+'"');if(!/^[1-9]$/.test(D[0].text))throw new g('Invalid argument number "'+D[0].text+'"');if(pe++,parseInt(D[0].text)!==pe)throw new g('Argument number "'+D[0].text+'" out of order');D=p.consumeArgs(1)[0]}return p.macros.set(V,{tokens:D,numArgs:pe},S),""};Ie("\\gdef",function(Qe){return Kt(Qe,!0)}),Ie("\\def",function(Qe){return Kt(Qe,!1)}),Ie("\\global",function(Qe){var p=Qe.consumeArgs(1)[0];if(p.length!==1)throw new g("Invalid command after \\global");var S=p[0].text;if(S==="\\def")return Kt(Qe,!0);throw new g("Invalid command '"+S+"' after \\global")});var Jt=function(p,S,D){var V=p.consumeArgs(1)[0];if(V.length!==1)throw new g("\\newcommand's first argument must be a macro name");var pe=V[0].text,Ke=p.isDefined(pe);if(Ke&&!S)throw new g("\\newcommand{"+pe+"} attempting to redefine "+(pe+"; use \\renewcommand"));if(!Ke&&!D)throw new g("\\renewcommand{"+pe+"} when command "+pe+" does not yet exist; use \\newcommand");var lt=0;if(V=p.consumeArgs(1)[0],V.length===1&&V[0].text==="["){for(var yt="",Ot=p.expandNextToken();Ot.text!=="]"&&Ot.text!=="EOF";)yt+=Ot.text,Ot=p.expandNextToken();if(!yt.match(/^\s*[0-9]+\s*$/))throw new g("Invalid number of arguments: "+yt);lt=parseInt(yt),V=p.consumeArgs(1)[0]}return p.macros.set(pe,{tokens:V,numArgs:lt}),""};Ie("\\newcommand",function(Qe){return Jt(Qe,!1,!0)}),Ie("\\renewcommand",function(Qe){return Jt(Qe,!0,!1)}),Ie("\\providecommand",function(Qe){return Jt(Qe,!0,!0)}),Ie("\\bgroup","{"),Ie("\\egroup","}"),Ie("\\lq","`"),Ie("\\rq","'"),Ie("\\aa","\\r a"),Ie("\\AA","\\r A"),Ie("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Ie("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Ie("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Ie("\u212C","\\mathscr{B}"),Ie("\u2130","\\mathscr{E}"),Ie("\u2131","\\mathscr{F}"),Ie("\u210B","\\mathscr{H}"),Ie("\u2110","\\mathscr{I}"),Ie("\u2112","\\mathscr{L}"),Ie("\u2133","\\mathscr{M}"),Ie("\u211B","\\mathscr{R}"),Ie("\u212D","\\mathfrak{C}"),Ie("\u210C","\\mathfrak{H}"),Ie("\u2128","\\mathfrak{Z}"),Ie("\\Bbbk","\\Bbb{k}"),Ie("\xB7","\\cdotp"),Ie("\\llap","\\mathllap{\\textrm{#1}}"),Ie("\\rlap","\\mathrlap{\\textrm{#1}}"),Ie("\\clap","\\mathclap{\\textrm{#1}}"),Ie("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Ie("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Ie("\\ne","\\neq"),Ie("\u2260","\\neq"),Ie("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Ie("\u2209","\\notin"),Ie("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Ie("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Ie("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Ie("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Ie("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Ie("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Ie("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Ie("\u27C2","\\perp"),Ie("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Ie("\u220C","\\notni"),Ie("\u231C","\\ulcorner"),Ie("\u231D","\\urcorner"),Ie("\u231E","\\llcorner"),Ie("\u231F","\\lrcorner"),Ie("\xA9","\\copyright"),Ie("\xAE","\\textregistered"),Ie("\uFE0F","\\textregistered"),Ie("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Ie("\u22EE","\\vdots"),Ie("\\varGamma","\\mathit{\\Gamma}"),Ie("\\varDelta","\\mathit{\\Delta}"),Ie("\\varTheta","\\mathit{\\Theta}"),Ie("\\varLambda","\\mathit{\\Lambda}"),Ie("\\varXi","\\mathit{\\Xi}"),Ie("\\varPi","\\mathit{\\Pi}"),Ie("\\varSigma","\\mathit{\\Sigma}"),Ie("\\varUpsilon","\\mathit{\\Upsilon}"),Ie("\\varPhi","\\mathit{\\Phi}"),Ie("\\varPsi","\\mathit{\\Psi}"),Ie("\\varOmega","\\mathit{\\Omega}"),Ie("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Ie("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Ie("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Ie("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Ie("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Ie("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var rr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Ie("\\dots",function(Qe){var p="\\dotso",S=Qe.expandAfterFuture().text;return S in rr?p=rr[S]:(S.substr(0,4)==="\\not"||S in gr.math&&P.contains(["bin","rel"],gr.math[S].group))&&(p="\\dotsb"),p});var dr={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Ie("\\dotso",function(Qe){var p=Qe.future().text;return p in dr?"\\ldots\\,":"\\ldots"}),Ie("\\dotsc",function(Qe){var p=Qe.future().text;return p in dr&&p!==","?"\\ldots\\,":"\\ldots"}),Ie("\\cdots",function(Qe){var p=Qe.future().text;return p in dr?"\\@cdots\\,":"\\@cdots"}),Ie("\\dotsb","\\cdots"),Ie("\\dotsm","\\cdots"),Ie("\\dotsi","\\!\\cdots"),Ie("\\dotsx","\\ldots\\,"),Ie("\\DOTSI","\\relax"),Ie("\\DOTSB","\\relax"),Ie("\\DOTSX","\\relax"),Ie("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Ie("\\,","\\tmspace+{3mu}{.1667em}"),Ie("\\thinspace","\\,"),Ie("\\>","\\mskip{4mu}"),Ie("\\:","\\tmspace+{4mu}{.2222em}"),Ie("\\medspace","\\:"),Ie("\\;","\\tmspace+{5mu}{.2777em}"),Ie("\\thickspace","\\;"),Ie("\\!","\\tmspace-{3mu}{.1667em}"),Ie("\\negthinspace","\\!"),Ie("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Ie("\\negthickspace","\\tmspace-{5mu}{.277em}"),Ie("\\enspace","\\kern.5em "),Ie("\\enskip","\\hskip.5em\\relax"),Ie("\\quad","\\hskip1em\\relax"),Ie("\\qquad","\\hskip2em\\relax"),Ie("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Ie("\\tag@paren","\\tag@literal{({#1})}"),Ie("\\tag@literal",function(Qe){if(Qe.macros.get("\\df@tag"))throw new g("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Ie("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Ie("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Ie("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Ie("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Ie("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Ie("\\\\","\\newline"),Ie("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Lr=ut["Main-Regular"][84][1]-.7*ut["Main-Regular"][65][1]+"em";Ie("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Lr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Ie("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Lr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Ie("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Ie("\\@hspace","\\hskip #1\\relax"),Ie("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Ie("\\ordinarycolon",":"),Ie("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Ie("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Ie("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Ie("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Ie("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Ie("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Ie("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Ie("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Ie("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Ie("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Ie("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Ie("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Ie("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Ie("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Ie("\u2237","\\dblcolon"),Ie("\u2239","\\eqcolon"),Ie("\u2254","\\coloneqq"),Ie("\u2255","\\eqqcolon"),Ie("\u2A74","\\Coloneqq"),Ie("\\ratio","\\vcentcolon"),Ie("\\coloncolon","\\dblcolon"),Ie("\\colonequals","\\coloneqq"),Ie("\\coloncolonequals","\\Coloneqq"),Ie("\\equalscolon","\\eqqcolon"),Ie("\\equalscoloncolon","\\Eqqcolon"),Ie("\\colonminus","\\coloneq"),Ie("\\coloncolonminus","\\Coloneq"),Ie("\\minuscolon","\\eqcolon"),Ie("\\minuscoloncolon","\\Eqcolon"),Ie("\\coloncolonapprox","\\Colonapprox"),Ie("\\coloncolonsim","\\Colonsim"),Ie("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ie("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ie("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ie("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ie("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Ie("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Ie("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Ie("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Ie("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Ie("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Ie("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Ie("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Ie("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Ie("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Ie("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Ie("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Ie("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Ie("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Ie("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Ie("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Ie("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Ie("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Ie("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Ie("\u27E6","\\llbracket"),Ie("\u27E7","\\rrbracket"),Ie("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Ie("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Ie("\u2983","\\lBrace"),Ie("\u2984","\\rBrace"),Ie("\\darr","\\downarrow"),Ie("\\dArr","\\Downarrow"),Ie("\\Darr","\\Downarrow"),Ie("\\lang","\\langle"),Ie("\\rang","\\rangle"),Ie("\\uarr","\\uparrow"),Ie("\\uArr","\\Uparrow"),Ie("\\Uarr","\\Uparrow"),Ie("\\N","\\mathbb{N}"),Ie("\\R","\\mathbb{R}"),Ie("\\Z","\\mathbb{Z}"),Ie("\\alef","\\aleph"),Ie("\\alefsym","\\aleph"),Ie("\\Alpha","\\mathrm{A}"),Ie("\\Beta","\\mathrm{B}"),Ie("\\bull","\\bullet"),Ie("\\Chi","\\mathrm{X}"),Ie("\\clubs","\\clubsuit"),Ie("\\cnums","\\mathbb{C}"),Ie("\\Complex","\\mathbb{C}"),Ie("\\Dagger","\\ddagger"),Ie("\\diamonds","\\diamondsuit"),Ie("\\empty","\\emptyset"),Ie("\\Epsilon","\\mathrm{E}"),Ie("\\Eta","\\mathrm{H}"),Ie("\\exist","\\exists"),Ie("\\harr","\\leftrightarrow"),Ie("\\hArr","\\Leftrightarrow"),Ie("\\Harr","\\Leftrightarrow"),Ie("\\hearts","\\heartsuit"),Ie("\\image","\\Im"),Ie("\\infin","\\infty"),Ie("\\Iota","\\mathrm{I}"),Ie("\\isin","\\in"),Ie("\\Kappa","\\mathrm{K}"),Ie("\\larr","\\leftarrow"),Ie("\\lArr","\\Leftarrow"),Ie("\\Larr","\\Leftarrow"),Ie("\\lrarr","\\leftrightarrow"),Ie("\\lrArr","\\Leftrightarrow"),Ie("\\Lrarr","\\Leftrightarrow"),Ie("\\Mu","\\mathrm{M}"),Ie("\\natnums","\\mathbb{N}"),Ie("\\Nu","\\mathrm{N}"),Ie("\\Omicron","\\mathrm{O}"),Ie("\\plusmn","\\pm"),Ie("\\rarr","\\rightarrow"),Ie("\\rArr","\\Rightarrow"),Ie("\\Rarr","\\Rightarrow"),Ie("\\real","\\Re"),Ie("\\reals","\\mathbb{R}"),Ie("\\Reals","\\mathbb{R}"),Ie("\\Rho","\\mathrm{P}"),Ie("\\sdot","\\cdot"),Ie("\\sect","\\S"),Ie("\\spades","\\spadesuit"),Ie("\\sub","\\subset"),Ie("\\sube","\\subseteq"),Ie("\\supe","\\supseteq"),Ie("\\Tau","\\mathrm{T}"),Ie("\\thetasym","\\vartheta"),Ie("\\weierp","\\wp"),Ie("\\Zeta","\\mathrm{Z}"),Ie("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Ie("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Ie("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Ie("\\blue","\\textcolor{##6495ed}{#1}"),Ie("\\orange","\\textcolor{##ffa500}{#1}"),Ie("\\pink","\\textcolor{##ff00af}{#1}"),Ie("\\red","\\textcolor{##df0030}{#1}"),Ie("\\green","\\textcolor{##28ae7b}{#1}"),Ie("\\gray","\\textcolor{gray}{#1}"),Ie("\\purple","\\textcolor{##9d38bd}{#1}"),Ie("\\blueA","\\textcolor{##ccfaff}{#1}"),Ie("\\blueB","\\textcolor{##80f6ff}{#1}"),Ie("\\blueC","\\textcolor{##63d9ea}{#1}"),Ie("\\blueD","\\textcolor{##11accd}{#1}"),Ie("\\blueE","\\textcolor{##0c7f99}{#1}"),Ie("\\tealA","\\textcolor{##94fff5}{#1}"),Ie("\\tealB","\\textcolor{##26edd5}{#1}"),Ie("\\tealC","\\textcolor{##01d1c1}{#1}"),Ie("\\tealD","\\textcolor{##01a995}{#1}"),Ie("\\tealE","\\textcolor{##208170}{#1}"),Ie("\\greenA","\\textcolor{##b6ffb0}{#1}"),Ie("\\greenB","\\textcolor{##8af281}{#1}"),Ie("\\greenC","\\textcolor{##74cf70}{#1}"),Ie("\\greenD","\\textcolor{##1fab54}{#1}"),Ie("\\greenE","\\textcolor{##0d923f}{#1}"),Ie("\\goldA","\\textcolor{##ffd0a9}{#1}"),Ie("\\goldB","\\textcolor{##ffbb71}{#1}"),Ie("\\goldC","\\textcolor{##ff9c39}{#1}"),Ie("\\goldD","\\textcolor{##e07d10}{#1}"),Ie("\\goldE","\\textcolor{##a75a05}{#1}"),Ie("\\redA","\\textcolor{##fca9a9}{#1}"),Ie("\\redB","\\textcolor{##ff8482}{#1}"),Ie("\\redC","\\textcolor{##f9685d}{#1}"),Ie("\\redD","\\textcolor{##e84d39}{#1}"),Ie("\\redE","\\textcolor{##bc2612}{#1}"),Ie("\\maroonA","\\textcolor{##ffbde0}{#1}"),Ie("\\maroonB","\\textcolor{##ff92c6}{#1}"),Ie("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Ie("\\maroonD","\\textcolor{##ca337c}{#1}"),Ie("\\maroonE","\\textcolor{##9e034e}{#1}"),Ie("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Ie("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Ie("\\purpleC","\\textcolor{##aa87ff}{#1}"),Ie("\\purpleD","\\textcolor{##7854ab}{#1}"),Ie("\\purpleE","\\textcolor{##543b78}{#1}"),Ie("\\mintA","\\textcolor{##f5f9e8}{#1}"),Ie("\\mintB","\\textcolor{##edf2df}{#1}"),Ie("\\mintC","\\textcolor{##e0e5cc}{#1}"),Ie("\\grayA","\\textcolor{##f6f7f7}{#1}"),Ie("\\grayB","\\textcolor{##f0f1f2}{#1}"),Ie("\\grayC","\\textcolor{##e3e5e6}{#1}"),Ie("\\grayD","\\textcolor{##d6d8da}{#1}"),Ie("\\grayE","\\textcolor{##babec2}{#1}"),Ie("\\grayF","\\textcolor{##888d93}{#1}"),Ie("\\grayG","\\textcolor{##626569}{#1}"),Ie("\\grayH","\\textcolor{##3b3e40}{#1}"),Ie("\\grayI","\\textcolor{##21242c}{#1}"),Ie("\\kaBlue","\\textcolor{##314453}{#1}"),Ie("\\kaGreen","\\textcolor{##71B307}{#1}");var Or={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Mr=function(){function Qe(S,D,V){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=D,this.expansionCount=0,this.feed(S),this.macros=new er(at,D.macros),this.mode=V,this.stack=[]}var p=Qe.prototype;return p.feed=function(D){this.lexer=new Ft(D,this.settings)},p.switchMode=function(D){this.mode=D},p.beginGroup=function(){this.macros.beginGroup()},p.endGroup=function(){this.macros.endGroup()},p.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},p.popToken=function(){return this.future(),this.stack.pop()},p.pushToken=function(D){this.stack.push(D)},p.pushTokens=function(D){var V;(V=this.stack).push.apply(V,D)},p.consumeSpaces=function(){for(;;){var D=this.future();if(D.text===" ")this.stack.pop();else break}},p.consumeArgs=function(D){for(var V=[],pe=0;pe<D;++pe){this.consumeSpaces();var Ke=this.popToken();if(Ke.text==="{"){for(var lt=[],yt=1;yt!==0;){var Ot=this.popToken();if(lt.push(Ot),Ot.text==="{")++yt;else if(Ot.text==="}")--yt;else if(Ot.text==="EOF")throw new g("End of input in macro argument",Ke)}lt.pop(),lt.reverse(),V[pe]=lt}else{if(Ke.text==="EOF")throw new g("End of input expecting macro argument");V[pe]=[Ke]}}return V},p.expandOnce=function(){var D=this.popToken(),V=D.text,pe=this._getExpansion(V);if(pe==null)return this.pushToken(D),D;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new g("Too many expansions: infinite loop or need to increase maxExpand setting");var Ke=pe.tokens;if(pe.numArgs){var lt=this.consumeArgs(pe.numArgs);Ke=Ke.slice();for(var yt=Ke.length-1;yt>=0;--yt){var Ot=Ke[yt];if(Ot.text==="#"){if(yt===0)throw new g("Incomplete placeholder at end of macro body",Ot);if(Ot=Ke[--yt],Ot.text==="#")Ke.splice(yt+1,1);else if(/^[1-9]$/.test(Ot.text)){var ir;(ir=Ke).splice.apply(ir,[yt,2].concat(lt[+Ot.text-1]))}else throw new g("Not a valid argument number",Ot)}}}return this.pushTokens(Ke),Ke},p.expandAfterFuture=function(){return this.expandOnce(),this.future()},p.expandNextToken=function(){for(;;){var D=this.expandOnce();if(D instanceof Re)if(D.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},p.expandMacro=function(D){if(this.macros.get(D)){var V=[],pe=this.stack.length;for(this.pushToken(new Re(D));this.stack.length>pe;){var Ke=this.expandOnce();Ke instanceof Re&&V.push(this.stack.pop())}return V}},p.expandMacroAsText=function(D){var V=this.expandMacro(D);return V&&V.map(function(pe){return pe.text}).join("")},p._getExpansion=function(D){var V=this.macros.get(D);if(V==null)return V;var pe=typeof V=="function"?V(this):V;if(typeof pe=="string"){var Ke=0;if(pe.indexOf("#")!==-1)for(var lt=pe.replace(/##/g,"");lt.indexOf("#"+(Ke+1))!==-1;)++Ke;for(var yt=new Ft(pe,this.settings),Ot=[],ir=yt.lex();ir.text!=="EOF";)Ot.push(ir),ir=yt.lex();Ot.reverse();var wr={tokens:Ot,numArgs:Ke};return wr}return pe},p.isDefined=function(D){return this.macros.has(D)||Nt.hasOwnProperty(D)||gr.math.hasOwnProperty(D)||gr.text.hasOwnProperty(D)||Or.hasOwnProperty(D)},Qe}(),Yr={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},Qn={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Tr=function(){function Qe(S,D){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Mr(S,D,this.mode),this.settings=D,this.leftrightDepth=0}var p=Qe.prototype;return p.expect=function(D,V){if(V===void 0&&(V=!0),this.fetch().text!==D)throw new g("Expected '"+D+"', got '"+this.fetch().text+"'",this.fetch());V&&this.consume()},p.consume=function(){this.nextToken=null},p.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},p.switchMode=function(D){this.mode=D,this.gullet.switchMode(D)},p.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var D=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),D},p.parseExpression=function(D,V){for(var pe=[];;){this.mode==="math"&&this.consumeSpaces();var Ke=this.fetch();if(Qe.endOfExpression.indexOf(Ke.text)!==-1||V&&Ke.text===V||D&&Nt[Ke.text]&&Nt[Ke.text].infix)break;var lt=this.parseAtom(V);if(!lt)break;pe.push(lt)}return this.mode==="text"&&this.formLigatures(pe),this.handleInfixNodes(pe)},p.handleInfixNodes=function(D){for(var V=-1,pe,Ke=0;Ke<D.length;Ke++){var lt=Fn(D[Ke],"infix");if(lt){if(V!==-1)throw new g("only one infix operator per group",lt.token);V=Ke,pe=lt.replaceWith}}if(V!==-1&&pe){var yt,Ot,ir=D.slice(0,V),wr=D.slice(V+1);ir.length===1&&ir[0].type==="ordgroup"?yt=ir[0]:yt={type:"ordgroup",mode:this.mode,body:ir},wr.length===1&&wr[0].type==="ordgroup"?Ot=wr[0]:Ot={type:"ordgroup",mode:this.mode,body:wr};var Sr;return pe==="\\\\abovefrac"?Sr=this.callFunction(pe,[yt,D[V],Ot],[]):Sr=this.callFunction(pe,[yt,Ot],[]),[Sr]}else return D},p.handleSupSubscript=function(D){var V=this.fetch(),pe=V.text;this.consume();var Ke=this.parseGroup(D,!1,Qe.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Ke)throw new g("Expected group after '"+pe+"'",V);return Ke},p.formatUnsupportedCmd=function(D){for(var V=[],pe=0;pe<D.length;pe++)V.push({type:"textord",mode:"text",text:D[pe]});var Ke={type:"text",mode:this.mode,body:V},lt={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Ke]};return lt},p.parseAtom=function(D){var V=this.parseGroup("atom",!1,null,D);if(this.mode==="text")return V;for(var pe,Ke;;){this.consumeSpaces();var lt=this.fetch();if(lt.text==="\\limits"||lt.text==="\\nolimits"){var yt=Fn(V,"op");if(yt){var Ot=lt.text==="\\limits";yt.limits=Ot,yt.alwaysHandleSupSub=!0}else if(yt=Fn(V,"operatorname"),yt&&yt.alwaysHandleSupSub){var ir=lt.text==="\\limits";yt.limits=ir}else throw new g("Limit controls must follow a math operator",lt);this.consume()}else if(lt.text==="^"){if(pe)throw new g("Double superscript",lt);pe=this.handleSupSubscript("superscript")}else if(lt.text==="_"){if(Ke)throw new g("Double subscript",lt);Ke=this.handleSupSubscript("subscript")}else if(lt.text==="'"){if(pe)throw new g("Double superscript",lt);var wr={type:"textord",mode:this.mode,text:"\\prime"},Sr=[wr];for(this.consume();this.fetch().text==="'";)Sr.push(wr),this.consume();this.fetch().text==="^"&&Sr.push(this.handleSupSubscript("superscript")),pe={type:"ordgroup",mode:this.mode,body:Sr}}else break}return pe||Ke?{type:"supsub",mode:this.mode,base:V,sup:pe,sub:Ke}:V},p.parseFunction=function(D,V,pe){var Ke=this.fetch(),lt=Ke.text,yt=Nt[lt];if(!yt)return null;if(this.consume(),pe!=null&&yt.greediness<=pe)throw new g("Got function '"+lt+"' with no arguments"+(V?" as "+V:""),Ke);if(this.mode==="text"&&!yt.allowedInText)throw new g("Can't use function '"+lt+"' in text mode",Ke);if(this.mode==="math"&&yt.allowedInMath===!1)throw new g("Can't use function '"+lt+"' in math mode",Ke);var Ot=this.parseArguments(lt,yt),ir=Ot.args,wr=Ot.optArgs;return this.callFunction(lt,ir,wr,Ke,D)},p.callFunction=function(D,V,pe,Ke,lt){var yt={funcName:D,parser:this,token:Ke,breakOnTokenText:lt},Ot=Nt[D];if(Ot&&Ot.handler)return Ot.handler(yt,V,pe);throw new g("No function handler for "+D)},p.parseArguments=function(D,V){var pe=V.numArgs+V.numOptionalArgs;if(pe===0)return{args:[],optArgs:[]};for(var Ke=V.greediness,lt=[],yt=[],Ot=0;Ot<pe;Ot++){var ir=V.argTypes&&V.argTypes[Ot],wr=Ot<V.numOptionalArgs,Sr=Ot>0&&!wr||Ot===0&&!wr&&this.mode==="math",Tn=this.parseGroupOfType("argument to '"+D+"'",ir,wr,Ke,Sr);if(!Tn){if(wr){yt.push(null);continue}throw new g("Expected group after '"+D+"'",this.fetch())}(wr?yt:lt).push(Tn)}return{args:lt,optArgs:yt}},p.parseGroupOfType=function(D,V,pe,Ke,lt){switch(V){case"color":return lt&&this.consumeSpaces(),this.parseColorGroup(pe);case"size":return lt&&this.consumeSpaces(),this.parseSizeGroup(pe);case"url":return this.parseUrlGroup(pe,lt);case"math":case"text":return this.parseGroup(D,pe,Ke,void 0,V,lt);case"hbox":{var yt=this.parseGroup(D,pe,Ke,void 0,"text",lt);if(!yt)return yt;var Ot={type:"styling",mode:yt.mode,body:[yt],style:"text"};return Ot}case"raw":{if(lt&&this.consumeSpaces(),pe&&this.fetch().text==="{")return null;var ir=this.parseStringGroup("raw",pe,!0);if(ir)return{type:"raw",mode:"text",string:ir.text};throw new g("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(D,pe,Ke,void 0,void 0,lt);default:throw new g("Unknown group type as "+D,this.fetch())}},p.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},p.parseStringGroup=function(D,V,pe){var Ke=V?"[":"{",lt=V?"]":"}",yt=this.fetch();if(yt.text!==Ke){if(V)return null;if(pe&&yt.text!=="EOF"&&/[^{}[\]]/.test(yt.text))return this.consume(),yt}var Ot=this.mode;this.mode="text",this.expect(Ke);for(var ir="",wr=this.fetch(),Sr=0,Tn=wr,_r;(_r=this.fetch()).text!==lt||pe&&Sr>0;){switch(_r.text){case"EOF":throw new g("Unexpected end of input in "+D,wr.range(Tn,ir));case Ke:Sr++;break;case lt:Sr--;break}Tn=_r,ir+=Tn.text,this.consume()}return this.expect(lt),this.mode=Ot,wr.range(Tn,ir)},p.parseRegexGroup=function(D,V){var pe=this.mode;this.mode="text";for(var Ke=this.fetch(),lt=Ke,yt="",Ot;(Ot=this.fetch()).text!=="EOF"&&D.test(yt+Ot.text);)lt=Ot,yt+=lt.text,this.consume();if(yt==="")throw new g("Invalid "+V+": '"+Ke.text+"'",Ke);return this.mode=pe,Ke.range(lt,yt)},p.parseColorGroup=function(D){var V=this.parseStringGroup("color",D);if(!V)return null;var pe=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(V.text);if(!pe)throw new g("Invalid color: '"+V.text+"'",V);var Ke=pe[0];return/^[0-9a-f]{6}$/i.test(Ke)&&(Ke="#"+Ke),{type:"color-token",mode:this.mode,color:Ke}},p.parseSizeGroup=function(D){var V,pe=!1;if(!D&&this.fetch().text!=="{"?V=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):V=this.parseStringGroup("size",D),!V)return null;!D&&V.text.length===0&&(V.text="0pt",pe=!0);var Ke=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(V.text);if(!Ke)throw new g("Invalid size: '"+V.text+"'",V);var lt={number:+(Ke[1]+Ke[2]),unit:Ke[3]};if(!sr(lt))throw new g("Invalid unit: '"+lt.unit+"'",V);return{type:"size",mode:this.mode,value:lt,isBlank:pe}},p.parseUrlGroup=function(D,V){this.gullet.lexer.setCatcode("%",13);var pe=this.parseStringGroup("url",D,!0);if(this.gullet.lexer.setCatcode("%",14),!pe)return null;var Ke=pe.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Ke}},p.parseGroup=function(D,V,pe,Ke,lt,yt){var Ot=this.mode;lt&&this.switchMode(lt),yt&&this.consumeSpaces();var ir=this.fetch(),wr=ir.text,Sr;if(V?wr==="[":wr==="{"||wr==="\\begingroup"){this.consume();var Tn=Qe.endOfGroup[wr];this.gullet.beginGroup();var _r=this.parseExpression(!1,Tn),kt=this.fetch();this.expect(Tn),this.gullet.endGroup(),Sr={type:"ordgroup",mode:this.mode,loc:ae.range(ir,kt),body:_r,semisimple:wr==="\\begingroup"||void 0}}else if(V)Sr=null;else if(Sr=this.parseFunction(Ke,D,pe)||this.parseSymbol(),Sr==null&&wr[0]==="\\"&&!Or.hasOwnProperty(wr)){if(this.settings.throwOnError)throw new g("Undefined control sequence: "+wr,ir);Sr=this.formatUnsupportedCmd(wr),this.consume()}return lt&&this.switchMode(Ot),Sr},p.formLigatures=function(D){for(var V=D.length-1,pe=0;pe<V;++pe){var Ke=D[pe],lt=Ke.text;lt==="-"&&D[pe+1].text==="-"&&(pe+1<V&&D[pe+2].text==="-"?(D.splice(pe,3,{type:"textord",mode:"text",loc:ae.range(Ke,D[pe+2]),text:"---"}),V-=2):(D.splice(pe,2,{type:"textord",mode:"text",loc:ae.range(Ke,D[pe+1]),text:"--"}),V-=1)),(lt==="'"||lt==="`")&&D[pe+1].text===lt&&(D.splice(pe,2,{type:"textord",mode:"text",loc:ae.range(Ke,D[pe+1]),text:lt+lt}),V-=1)}},p.parseSymbol=function(){var D=this.fetch(),V=D.text;if(/^\\verb[^a-zA-Z]/.test(V)){this.consume();var pe=V.slice(5),Ke=pe.charAt(0)==="*";if(Ke&&(pe=pe.slice(1)),pe.length<2||pe.charAt(0)!==pe.slice(-1))throw new g(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return pe=pe.slice(1,-1),{type:"verb",mode:"text",body:pe,star:Ke}}Qn.hasOwnProperty(V[0])&&!gr[this.mode][V[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+V[0]+'" used in math mode',D),V=Qn[V[0]]+V.substr(1));var lt=ot.exec(V);lt&&(V=V.substring(0,lt.index),V==="i"?V="\u0131":V==="j"&&(V="\u0237"));var yt;if(gr[this.mode][V]){this.settings.strict&&this.mode==="math"&&un.indexOf(V)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+V[0]+'" used in math mode',D);var Ot=gr[this.mode][V].group,ir=ae.range(D),wr;if(jt.hasOwnProperty(Ot)){var Sr=Ot;wr={type:"atom",mode:this.mode,family:Sr,loc:ir,text:V}}else wr={type:Ot,mode:this.mode,loc:ir,text:V};yt=wr}else if(V.charCodeAt(0)>=128)this.settings.strict&&(Xe(V.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+V[0]+'" used in math mode',D):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+V[0]+'"'+(" ("+V.charCodeAt(0)+")"),D)),yt={type:"textord",mode:"text",loc:ae.range(D),text:V};else return null;if(this.consume(),lt)for(var Tn=0;Tn<lt[0].length;Tn++){var _r=lt[0][Tn];if(!Yr[_r])throw new g("Unknown accent ' "+_r+"'",D);var kt=Yr[_r][this.mode];if(!kt)throw new g("Accent "+_r+" unsupported in "+this.mode+" mode",D);yt={type:"accent",mode:this.mode,loc:ae.range(D),label:kt,isStretchy:!1,isShifty:!0,base:yt}}return yt},Qe}();Tr.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Tr.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Tr.SUPSUB_GREEDINESS=1;var Qt=function(p,S){if(!(typeof p=="string"||p instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var D=new Tr(p,S);delete D.gullet.macros.current["\\df@tag"];var V=D.parse();if(D.gullet.macros.get("\\df@tag")){if(!S.displayMode)throw new g("\\tag works only in display equations");D.gullet.feed("\\df@tag"),V=[{type:"tag",mode:"text",body:V,tag:D.parse()}]}return V},ei=Qt,Yn=function(p,S,D){S.textContent="";var V=Vr(p,D).toNode();S.appendChild(V)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Yn=function(){throw new g("KaTeX doesn't work in quirks mode.")});var Qr=function(p,S){var D=Vr(p,S).toMarkup();return D},sn=function(p,S){var D=new $(S);return ei(p,D)},rn=function(p,S,D){if(D.throwOnError||!(p instanceof g))throw p;var V=Yt.makeSpan(["katex-error"],[new Q(S)]);return V.setAttribute("title",p.toString()),V.setAttribute("style","color:"+D.errorColor),V},Vr=function(p,S){var D=new $(S);try{var V=ei(p,D);return Ks(V,p,D)}catch(pe){return rn(pe,p,D)}},Sn=function(p,S){var D=new $(S);try{var V=ei(p,D);return Os(V,p,D)}catch(pe){return rn(pe,p,D)}},qn={version:"0.11.1",render:Yn,renderToString:Qr,ParseError:g,__parse:sn,__renderToDomTree:Vr,__renderToHTMLTree:Sn,__setFontMetrics:At,__defineSymbol:ne,__defineMacro:Ie,__domTree:{Span:y,Anchor:k,SymbolNode:Q,SvgNode:re,PathNode:Se,LineNode:Be}},pi=E.default=qn}]).default})},32834:function(tn){(function(Mt,E){tn.exports=E()})(this,function(){"use strict";function Mt(Tt,Rt){for(var $t=0;$t<Rt.length;$t++){var qe=Rt[$t];qe.enumerable=qe.enumerable||!1,qe.configurable=!0,"value"in qe&&(qe.writable=!0),Object.defineProperty(Tt,qe.key,qe)}}function E(Tt,Rt,$t){return Rt&&Mt(Tt.prototype,Rt),$t&&Mt(Tt,$t),Tt}function le(Tt,Rt){if(Tt){if(typeof Tt=="string")return Fe(Tt,Rt);var $t=Object.prototype.toString.call(Tt).slice(8,-1);if($t==="Object"&&Tt.constructor&&($t=Tt.constructor.name),$t==="Map"||$t==="Set")return Array.from(Tt);if($t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($t))return Fe(Tt,Rt)}}function Fe(Tt,Rt){(Rt==null||Rt>Tt.length)&&(Rt=Tt.length);for(var $t=0,qe=new Array(Rt);$t<Rt;$t++)qe[$t]=Tt[$t];return qe}function ae(Tt,Rt){var $t=typeof Symbol!="undefined"&&Tt[Symbol.iterator]||Tt["@@iterator"];if($t)return($t=$t.call(Tt)).next.bind($t);if(Array.isArray(Tt)||($t=le(Tt))||Rt&&Tt&&typeof Tt.length=="number"){$t&&(Tt=$t);var qe=0;return function(){return qe>=Tt.length?{done:!0}:{done:!1,value:Tt[qe++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Re={exports:{}};function K(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function g(Tt){Re.exports.defaults=Tt}Re.exports={defaults:K(),getDefaults:K,changeDefaults:g};var R=/[&<>"']/,T=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,d=/[<>"']|&(?!#?\w+;)/g,N={"&":"&","<":"<",">":">",'"':""","'":"'"},v=function(Rt){return N[Rt]};function m(Tt,Rt){if(Rt){if(R.test(Tt))return Tt.replace(T,v)}else if(l.test(Tt))return Tt.replace(d,v);return Tt}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function I(Tt){return Tt.replace(b,function(Rt,$t){return $t=$t.toLowerCase(),$t==="colon"?":":$t.charAt(0)==="#"?$t.charAt(1)==="x"?String.fromCharCode(parseInt($t.substring(2),16)):String.fromCharCode(+$t.substring(1)):""})}var L=/(^|[^\[])\^/g;function z(Tt,Rt){Tt=Tt.source||Tt,Rt=Rt||"";var $t={replace:function(pt,rt){return rt=rt.source||rt,rt=rt.replace(L,"$1"),Tt=Tt.replace(pt,rt),$t},getRegex:function(){return new RegExp(Tt,Rt)}};return $t}var P=/[^\w:]/g,$=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function J(Tt,Rt,$t){if(Tt){var qe;try{qe=decodeURIComponent(I($t)).replace(P,"").toLowerCase()}catch(pt){return null}if(qe.indexOf("javascript:")===0||qe.indexOf("vbscript:")===0||qe.indexOf("data:")===0)return null}Rt&&!$.test($t)&&($t=q(Rt,$t));try{$t=encodeURI($t).replace(/%25/g,"%")}catch(pt){return null}return $t}var te={},H=/^[^:]+:\/*[^/]*$/,G=/^([^:]+:)[\s\S]*$/,ce=/^([^:]+:\/*[^/]*)[\s\S]*$/;function q(Tt,Rt){te[" "+Tt]||(H.test(Tt)?te[" "+Tt]=Tt+"/":te[" "+Tt]=se(Tt,"/",!0)),Tt=te[" "+Tt];var $t=Tt.indexOf(":")===-1;return Rt.substring(0,2)==="//"?$t?Rt:Tt.replace(G,"$1")+Rt:Rt.charAt(0)==="/"?$t?Rt:Tt.replace(ce,"$1")+Rt:Tt+Rt}var ye={exec:function(){}};function _e(Tt){for(var Rt=1,$t,qe;Rt<arguments.length;Rt++){$t=arguments[Rt];for(qe in $t)Object.prototype.hasOwnProperty.call($t,qe)&&(Tt[qe]=$t[qe])}return Tt}function Le(Tt,Rt){var $t=Tt.replace(/\|/g,function(rt,Ht,Oe){for(var $r=!1,Bt=Ht;--Bt>=0&&Oe[Bt]==="\\";)$r=!$r;return $r?"|":" |"}),qe=$t.split(/ \|/),pt=0;if(qe.length>Rt)qe.splice(Rt);else for(;qe.length<Rt;)qe.push("");for(;pt<qe.length;pt++)qe[pt]=qe[pt].trim().replace(/\\\|/g,"|");return qe}function se(Tt,Rt,$t){var qe=Tt.length;if(qe===0)return"";for(var pt=0;pt<qe;){var rt=Tt.charAt(qe-pt-1);if(rt===Rt&&!$t)pt++;else if(rt!==Rt&&$t)pt++;else break}return Tt.substr(0,qe-pt)}function be(Tt,Rt){if(Tt.indexOf(Rt[1])===-1)return-1;for(var $t=Tt.length,qe=0,pt=0;pt<$t;pt++)if(Tt[pt]==="\\")pt++;else if(Tt[pt]===Rt[0])qe++;else if(Tt[pt]===Rt[1]&&(qe--,qe<0))return pt;return-1}function O(Tt){Tt&&Tt.sanitize&&!Tt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Ee(Tt,Rt){if(Rt<1)return"";for(var $t="";Rt>1;)Rt&1&&($t+=Tt),Rt>>=1,Tt+=Tt;return $t+Tt}var ue={escape:m,unescape:I,edit:z,cleanUrl:J,resolveUrl:q,noopTest:ye,merge:_e,splitCells:Le,rtrim:se,findClosingBracket:be,checkSanitizeDeprecation:O,repeatString:Ee},he=Re.exports.defaults,ve=ue.rtrim,F=ue.splitCells,U=ue.escape,ee=ue.findClosingBracket;function de(Tt,Rt,$t){var qe=Rt.href,pt=Rt.title?U(Rt.title):null,rt=Tt[1].replace(/\\([\[\]])/g,"$1");return Tt[0].charAt(0)!=="!"?{type:"link",raw:$t,href:qe,title:pt,text:rt}:{type:"image",raw:$t,href:qe,title:pt,text:U(rt)}}function Xe(Tt,Rt){var $t=Tt.match(/^(\s+)(?:```)/);if($t===null)return Rt;var qe=$t[1];return Rt.split(`
|
|
|
`).map(function(pt){var rt=pt.match(/^\s+/);if(rt===null)return pt;var Ht=rt[0];return Ht.length>=qe.length?pt.slice(qe.length):pt}).join(`
|
|
|
`)}var tt=function(){function Tt($t){this.options=$t||he}var Rt=Tt.prototype;return Rt.space=function(qe){var pt=this.rules.block.newline.exec(qe);if(pt)return pt[0].length>1?{type:"space",raw:pt[0]}:{raw:`
|
|
|
`}},Rt.code=function(qe){var pt=this.rules.block.code.exec(qe);if(pt){var rt=pt[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:pt[0],codeBlockStyle:"indented",text:this.options.pedantic?rt:ve(rt,`
|
|
|
`)}}},Rt.fences=function(qe){var pt=this.rules.block.fences.exec(qe);if(pt){var rt=pt[0],Ht=Xe(rt,pt[3]||"");return{type:"code",raw:rt,lang:pt[2]?pt[2].trim():pt[2],text:Ht}}},Rt.heading=function(qe){var pt=this.rules.block.heading.exec(qe);if(pt){var rt=pt[2].trim();if(/#$/.test(rt)){var Ht=ve(rt,"#");(this.options.pedantic||!Ht||/ $/.test(Ht))&&(rt=Ht.trim())}return{type:"heading",raw:pt[0],depth:pt[1].length,text:rt}}},Rt.nptable=function(qe){var pt=this.rules.block.nptable.exec(qe);if(pt){var rt={type:"table",header:F(pt[1].replace(/^ *| *\| *$/g,"")),align:pt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pt[3]?pt[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:pt[0]};if(rt.header.length===rt.align.length){var Ht=rt.align.length,Oe;for(Oe=0;Oe<Ht;Oe++)/^ *-+: *$/.test(rt.align[Oe])?rt.align[Oe]="right":/^ *:-+: *$/.test(rt.align[Oe])?rt.align[Oe]="center":/^ *:-+ *$/.test(rt.align[Oe])?rt.align[Oe]="left":rt.align[Oe]=null;for(Ht=rt.cells.length,Oe=0;Oe<Ht;Oe++)rt.cells[Oe]=F(rt.cells[Oe],rt.header.length);return rt}}},Rt.hr=function(qe){var pt=this.rules.block.hr.exec(qe);if(pt)return{type:"hr",raw:pt[0]}},Rt.blockquote=function(qe){var pt=this.rules.block.blockquote.exec(qe);if(pt){var rt=pt[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:pt[0],text:rt}}},Rt.list=function(qe){var pt=this.rules.block.list.exec(qe);if(pt){var rt=pt[0],Ht=pt[2],Oe=Ht.length>1,$r={type:"list",raw:rt,ordered:Oe,start:Oe?+Ht.slice(0,-1):"",loose:!1,items:[]},Bt=pt[0].match(this.rules.block.item),gn=!1,On,hi,ti,En,Dn,Ut,Dr,Pr,St,mt=Bt.length;ti=this.rules.block.listItemStart.exec(Bt[0]);for(var mr=0;mr<mt;mr++){if(On=Bt[mr],rt=On,this.options.pedantic||(St=On.match(new RegExp("\\n\\s*\\n {0,"+(ti[0].length-1)+"}\\S")),St&&(Dn=On.length-St.index+Bt.slice(mr+1).join(`
|
|
|
`).length,$r.raw=$r.raw.substring(0,$r.raw.length-Dn),On=On.substring(0,St.index),rt=On,mt=mr+1)),mr!==mt-1){if(En=this.rules.block.listItemStart.exec(Bt[mr+1]),this.options.pedantic?En[1].length>ti[1].length:En[1].length>=ti[0].length||En[1].length>3){Bt.splice(mr,2,Bt[mr]+(!this.options.pedantic&&En[1].length<ti[0].length&&!Bt[mr].match(/\n$/)?"":`
|
|
|
`)+Bt[mr+1]),mr--,mt--;continue}else(!this.options.pedantic||this.options.smartLists?En[2][En[2].length-1]!==Ht[Ht.length-1]:Oe===(En[2].length===1))&&(Dn=Bt.slice(mr+1).join(`
|
|
|
`).length,$r.raw=$r.raw.substring(0,$r.raw.length-Dn),mr=mt-1);ti=En}hi=On.length,On=On.replace(/^ *([*+-]|\d+[.)]) ?/,""),~On.indexOf(`
|
|
|
`)&&(hi-=On.length,On=this.options.pedantic?On.replace(/^ {1,4}/gm,""):On.replace(new RegExp("^ {1,"+hi+"}","gm"),"")),On=ve(On,`
|
|
|
`),mr!==mt-1&&(rt=rt+`
|
|
|
`),Ut=gn||/\n\n(?!\s*$)/.test(rt),mr!==mt-1&&(gn=rt.slice(-2)===`
|
|
|
|
|
|
`,Ut||(Ut=gn)),Ut&&($r.loose=!0),this.options.gfm&&(Dr=/^\[[ xX]\] /.test(On),Pr=void 0,Dr&&(Pr=On[1]!==" ",On=On.replace(/^\[[ xX]\] +/,""))),$r.items.push({type:"list_item",raw:rt,task:Dr,checked:Pr,loose:Ut,text:On})}return $r}},Rt.html=function(qe){var pt=this.rules.block.html.exec(qe);if(pt)return{type:this.options.sanitize?"paragraph":"html",raw:pt[0],pre:!this.options.sanitizer&&(pt[1]==="pre"||pt[1]==="script"||pt[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(pt[0]):U(pt[0]):pt[0]}},Rt.def=function(qe){var pt=this.rules.block.def.exec(qe);if(pt){pt[3]&&(pt[3]=pt[3].substring(1,pt[3].length-1));var rt=pt[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:rt,raw:pt[0],href:pt[2],title:pt[3]}}},Rt.table=function(qe){var pt=this.rules.block.table.exec(qe);if(pt){var rt={type:"table",header:F(pt[1].replace(/^ *| *\| *$/g,"")),align:pt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pt[3]?pt[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(rt.header.length===rt.align.length){rt.raw=pt[0];var Ht=rt.align.length,Oe;for(Oe=0;Oe<Ht;Oe++)/^ *-+: *$/.test(rt.align[Oe])?rt.align[Oe]="right":/^ *:-+: *$/.test(rt.align[Oe])?rt.align[Oe]="center":/^ *:-+ *$/.test(rt.align[Oe])?rt.align[Oe]="left":rt.align[Oe]=null;for(Ht=rt.cells.length,Oe=0;Oe<Ht;Oe++)rt.cells[Oe]=F(rt.cells[Oe].replace(/^ *\| *| *\| *$/g,""),rt.header.length);return rt}}},Rt.lheading=function(qe){var pt=this.rules.block.lheading.exec(qe);if(pt)return{type:"heading",raw:pt[0],depth:pt[2].charAt(0)==="="?1:2,text:pt[1]}},Rt.paragraph=function(qe){var pt=this.rules.block.paragraph.exec(qe);if(pt)return{type:"paragraph",raw:pt[0],text:pt[1].charAt(pt[1].length-1)===`
|
|
|
`?pt[1].slice(0,-1):pt[1]}},Rt.text=function(qe){var pt=this.rules.block.text.exec(qe);if(pt)return{type:"text",raw:pt[0],text:pt[0]}},Rt.escape=function(qe){var pt=this.rules.inline.escape.exec(qe);if(pt)return{type:"escape",raw:pt[0],text:U(pt[1])}},Rt.tag=function(qe,pt,rt){var Ht=this.rules.inline.tag.exec(qe);if(Ht)return!pt&&/^<a /i.test(Ht[0])?pt=!0:pt&&/^<\/a>/i.test(Ht[0])&&(pt=!1),!rt&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ht[0])?rt=!0:rt&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ht[0])&&(rt=!1),{type:this.options.sanitize?"text":"html",raw:Ht[0],inLink:pt,inRawBlock:rt,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ht[0]):U(Ht[0]):Ht[0]}},Rt.link=function(qe){var pt=this.rules.inline.link.exec(qe);if(pt){var rt=pt[2].trim();if(!this.options.pedantic&&/^</.test(rt)){if(!/>$/.test(rt))return;var Ht=ve(rt.slice(0,-1),"\\");if((rt.length-Ht.length)%2===0)return}else{var Oe=ee(pt[2],"()");if(Oe>-1){var $r=pt[0].indexOf("!")===0?5:4,Bt=$r+pt[1].length+Oe;pt[2]=pt[2].substring(0,Oe),pt[0]=pt[0].substring(0,Bt).trim(),pt[3]=""}}var gn=pt[2],On="";if(this.options.pedantic){var hi=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(gn);hi&&(gn=hi[1],On=hi[3])}else On=pt[3]?pt[3].slice(1,-1):"";return gn=gn.trim(),/^</.test(gn)&&(this.options.pedantic&&!/>$/.test(rt)?gn=gn.slice(1):gn=gn.slice(1,-1)),de(pt,{href:gn&&gn.replace(this.rules.inline._escapes,"$1"),title:On&&On.replace(this.rules.inline._escapes,"$1")},pt[0])}},Rt.reflink=function(qe,pt){var rt;if((rt=this.rules.inline.reflink.exec(qe))||(rt=this.rules.inline.nolink.exec(qe))){var Ht=(rt[2]||rt[1]).replace(/\s+/g," ");if(Ht=pt[Ht.toLowerCase()],!Ht||!Ht.href){var Oe=rt[0].charAt(0);return{type:"text",raw:Oe,text:Oe}}return de(rt,Ht,rt[0])}},Rt.emStrong=function(qe,pt,rt){rt===void 0&&(rt="");var Ht=this.rules.inline.emStrong.lDelim.exec(qe);if(Ht&&!(Ht[3]&&rt.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var Oe=Ht[1]||Ht[2]||"";if(!Oe||Oe&&(rt===""||this.rules.inline.punctuation.exec(rt))){var $r=Ht[0].length-1,Bt,gn,On=$r,hi=0,ti=Ht[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ti.lastIndex=0,pt=pt.slice(-1*qe.length+$r);(Ht=ti.exec(pt))!=null;)if(Bt=Ht[1]||Ht[2]||Ht[3]||Ht[4]||Ht[5]||Ht[6],!!Bt){if(gn=Bt.length,Ht[3]||Ht[4]){On+=gn;continue}else if((Ht[5]||Ht[6])&&$r%3&&!(($r+gn)%3)){hi+=gn;continue}if(On-=gn,!(On>0))return gn=Math.min(gn,gn+On+hi),Math.min($r,gn)%2?{type:"em",raw:qe.slice(0,$r+Ht.index+gn+1),text:qe.slice(1,$r+Ht.index+gn)}:{type:"strong",raw:qe.slice(0,$r+Ht.index+gn+1),text:qe.slice(2,$r+Ht.index+gn-1)}}}}},Rt.codespan=function(qe){var pt=this.rules.inline.code.exec(qe);if(pt){var rt=pt[2].replace(/\n/g," "),Ht=/[^ ]/.test(rt),Oe=/^ /.test(rt)&&/ $/.test(rt);return Ht&&Oe&&(rt=rt.substring(1,rt.length-1)),rt=U(rt,!0),{type:"codespan",raw:pt[0],text:rt}}},Rt.br=function(qe){var pt=this.rules.inline.br.exec(qe);if(pt)return{type:"br",raw:pt[0]}},Rt.del=function(qe){var pt=this.rules.inline.del.exec(qe);if(pt)return{type:"del",raw:pt[0],text:pt[2]}},Rt.autolink=function(qe,pt){var rt=this.rules.inline.autolink.exec(qe);if(rt){var Ht,Oe;return rt[2]==="@"?(Ht=U(this.options.mangle?pt(rt[1]):rt[1]),Oe="mailto:"+Ht):(Ht=U(rt[1]),Oe=Ht),{type:"link",raw:rt[0],text:Ht,href:Oe,tokens:[{type:"text",raw:Ht,text:Ht}]}}},Rt.url=function(qe,pt){var rt;if(rt=this.rules.inline.url.exec(qe)){var Ht,Oe;if(rt[2]==="@")Ht=U(this.options.mangle?pt(rt[0]):rt[0]),Oe="mailto:"+Ht;else{var $r;do $r=rt[0],rt[0]=this.rules.inline._backpedal.exec(rt[0])[0];while($r!==rt[0]);Ht=U(rt[0]),rt[1]==="www."?Oe="http://"+Ht:Oe=Ht}return{type:"link",raw:rt[0],text:Ht,href:Oe,tokens:[{type:"text",raw:Ht,text:Ht}]}}},Rt.inlineText=function(qe,pt,rt){var Ht=this.rules.inline.text.exec(qe);if(Ht){var Oe;return pt?Oe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Ht[0]):U(Ht[0]):Ht[0]:Oe=U(this.options.smartypants?rt(Ht[0]):Ht[0]),{type:"text",raw:Ht[0],text:Oe}}},Tt}(),nt=ue.noopTest,_t=ue.edit,Xt=ue.merge,zt={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\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 *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:nt,table:nt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};zt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,zt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,zt.def=_t(zt.def).replace("label",zt._label).replace("title",zt._title).getRegex(),zt.bullet=/(?:[*+-]|\d{1,9}[.)])/,zt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,zt.item=_t(zt.item,"gm").replace(/bull/g,zt.bullet).getRegex(),zt.listItemStart=_t(/^( *)(bull) */).replace("bull",zt.bullet).getRegex(),zt.list=_t(zt.list).replace(/bull/g,zt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+zt.def.source+")").getRegex(),zt._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",zt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,zt.html=_t(zt.html,"i").replace("comment",zt._comment).replace("tag",zt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),zt.paragraph=_t(zt._paragraph).replace("hr",zt.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",zt._tag).getRegex(),zt.blockquote=_t(zt.blockquote).replace("paragraph",zt.paragraph).getRegex(),zt.normal=Xt({},zt),zt.gfm=Xt({},zt.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),zt.gfm.nptable=_t(zt.gfm.nptable).replace("hr",zt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",zt._tag).getRegex(),zt.gfm.table=_t(zt.gfm.table).replace("hr",zt.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",zt._tag).getRegex(),zt.pedantic=Xt({},zt.normal,{html:_t(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",zt._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+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:nt,paragraph:_t(zt.normal._paragraph).replace("hr",zt.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",zt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ze={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:nt,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)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:nt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ze._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ze.punctuation=_t(Ze.punctuation).replace(/punctuation/g,Ze._punctuation).getRegex(),Ze.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ze.escapedEmSt=/\\\*|\\_/g,Ze._comment=_t(zt._comment).replace("(?:-->|$)","-->").getRegex(),Ze.emStrong.lDelim=_t(Ze.emStrong.lDelim).replace(/punct/g,Ze._punctuation).getRegex(),Ze.emStrong.rDelimAst=_t(Ze.emStrong.rDelimAst,"g").replace(/punct/g,Ze._punctuation).getRegex(),Ze.emStrong.rDelimUnd=_t(Ze.emStrong.rDelimUnd,"g").replace(/punct/g,Ze._punctuation).getRegex(),Ze._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ze._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ze._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])?)+(?![-_])/,Ze.autolink=_t(Ze.autolink).replace("scheme",Ze._scheme).replace("email",Ze._email).getRegex(),Ze._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ze.tag=_t(Ze.tag).replace("comment",Ze._comment).replace("attribute",Ze._attribute).getRegex(),Ze._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ze._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ze._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ze.link=_t(Ze.link).replace("label",Ze._label).replace("href",Ze._href).replace("title",Ze._title).getRegex(),Ze.reflink=_t(Ze.reflink).replace("label",Ze._label).getRegex(),Ze.reflinkSearch=_t(Ze.reflinkSearch,"g").replace("reflink",Ze.reflink).replace("nolink",Ze.nolink).getRegex(),Ze.normal=Xt({},Ze),Ze.pedantic=Xt({},Ze.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_t(/^!?\[(label)\]\((.*?)\)/).replace("label",Ze._label).getRegex(),reflink:_t(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ze._label).getRegex()}),Ze.gfm=Xt({},Ze.normal,{escape:_t(Ze.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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ze.gfm.url=_t(Ze.gfm.url,"i").replace("email",Ze.gfm._extended_email).getRegex(),Ze.breaks=Xt({},Ze.gfm,{br:_t(Ze.br).replace("{2,}","*").getRegex(),text:_t(Ze.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var fr={block:zt,inline:Ze},yr=tt,Ar=Re.exports.defaults,vr=fr.block,Ce=fr.inline,It=ue.repeatString;function Z(Tt){return Tt.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function x(Tt){var Rt="",$t,qe,pt=Tt.length;for($t=0;$t<pt;$t++)qe=Tt.charCodeAt($t),Math.random()>.5&&(qe="x"+qe.toString(16)),Rt+="&#"+qe+";";return Rt}var y=function(){function Tt($t){this.tokens=[],this.tokens.links=Object.create(null),this.options=$t||Ar,this.options.tokenizer=this.options.tokenizer||new yr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var qe={block:vr.normal,inline:Ce.normal};this.options.pedantic?(qe.block=vr.pedantic,qe.inline=Ce.pedantic):this.options.gfm&&(qe.block=vr.gfm,this.options.breaks?qe.inline=Ce.breaks:qe.inline=Ce.gfm),this.tokenizer.rules=qe}Tt.lex=function(qe,pt){var rt=new Tt(pt);return rt.lex(qe)},Tt.lexInline=function(qe,pt){var rt=new Tt(pt);return rt.inlineTokens(qe)};var Rt=Tt.prototype;return Rt.lex=function(qe){return qe=qe.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(qe,this.tokens,!0),this.inline(this.tokens),this.tokens},Rt.blockTokens=function(qe,pt,rt){pt===void 0&&(pt=[]),rt===void 0&&(rt=!0),this.options.pedantic&&(qe=qe.replace(/^ +$/gm,""));for(var Ht,Oe,$r,Bt;qe;){if(Ht=this.tokenizer.space(qe)){qe=qe.substring(Ht.raw.length),Ht.type&&pt.push(Ht);continue}if(Ht=this.tokenizer.code(qe)){qe=qe.substring(Ht.raw.length),Bt=pt[pt.length-1],Bt&&Bt.type==="paragraph"?(Bt.raw+=`
|
|
|
`+Ht.raw,Bt.text+=`
|
|
|
`+Ht.text):pt.push(Ht);continue}if(Ht=this.tokenizer.fences(qe)){qe=qe.substring(Ht.raw.length),pt.push(Ht);continue}if(Ht=this.tokenizer.heading(qe)){qe=qe.substring(Ht.raw.length),pt.push(Ht);continue}if(Ht=this.tokenizer.nptable(qe)){qe=qe.substring(Ht.raw.length),pt.push(Ht);continue}if(Ht=this.tokenizer.hr(qe)){qe=qe.substring(Ht.raw.length),pt.push(Ht);continue}if(Ht=this.tokenizer.blockquote(qe)){qe=qe.substring(Ht.raw.length),Ht.tokens=this.blockTokens(Ht.text,[],rt),pt.push(Ht);continue}if(Ht=this.tokenizer.list(qe)){for(qe=qe.substring(Ht.raw.length),$r=Ht.items.length,Oe=0;Oe<$r;Oe++)Ht.items[Oe].tokens=this.blockTokens(Ht.items[Oe].text,[],!1);pt.push(Ht);continue}if(Ht=this.tokenizer.html(qe)){qe=qe.substring(Ht.raw.length),pt.push(Ht);continue}if(rt&&(Ht=this.tokenizer.def(qe))){qe=qe.substring(Ht.raw.length),this.tokens.links[Ht.tag]||(this.tokens.links[Ht.tag]={href:Ht.href,title:Ht.title});continue}if(Ht=this.tokenizer.table(qe)){qe=qe.substring(Ht.raw.length),pt.push(Ht);continue}if(Ht=this.tokenizer.lheading(qe)){qe=qe.substring(Ht.raw.length),pt.push(Ht);continue}if(rt&&(Ht=this.tokenizer.paragraph(qe))){qe=qe.substring(Ht.raw.length),pt.push(Ht);continue}if(Ht=this.tokenizer.text(qe)){qe=qe.substring(Ht.raw.length),Bt=pt[pt.length-1],Bt&&Bt.type==="text"?(Bt.raw+=`
|
|
|
`+Ht.raw,Bt.text+=`
|
|
|
`+Ht.text):pt.push(Ht);continue}if(qe){var gn="Infinite loop on byte: "+qe.charCodeAt(0);if(this.options.silent){console.error(gn);break}else throw new Error(gn)}}return pt},Rt.inline=function(qe){var pt,rt,Ht,Oe,$r,Bt,gn=qe.length;for(pt=0;pt<gn;pt++)switch(Bt=qe[pt],Bt.type){case"paragraph":case"text":case"heading":{Bt.tokens=[],this.inlineTokens(Bt.text,Bt.tokens);break}case"table":{for(Bt.tokens={header:[],cells:[]},Oe=Bt.header.length,rt=0;rt<Oe;rt++)Bt.tokens.header[rt]=[],this.inlineTokens(Bt.header[rt],Bt.tokens.header[rt]);for(Oe=Bt.cells.length,rt=0;rt<Oe;rt++)for($r=Bt.cells[rt],Bt.tokens.cells[rt]=[],Ht=0;Ht<$r.length;Ht++)Bt.tokens.cells[rt][Ht]=[],this.inlineTokens($r[Ht],Bt.tokens.cells[rt][Ht]);break}case"blockquote":{this.inline(Bt.tokens);break}case"list":{for(Oe=Bt.items.length,rt=0;rt<Oe;rt++)this.inline(Bt.items[rt].tokens);break}}return qe},Rt.inlineTokens=function(qe,pt,rt,Ht){pt===void 0&&(pt=[]),rt===void 0&&(rt=!1),Ht===void 0&&(Ht=!1);var Oe,$r,Bt=qe,gn,On,hi;if(this.tokens.links){var ti=Object.keys(this.tokens.links);if(ti.length>0)for(;(gn=this.tokenizer.rules.inline.reflinkSearch.exec(Bt))!=null;)ti.includes(gn[0].slice(gn[0].lastIndexOf("[")+1,-1))&&(Bt=Bt.slice(0,gn.index)+"["+It("a",gn[0].length-2)+"]"+Bt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(gn=this.tokenizer.rules.inline.blockSkip.exec(Bt))!=null;)Bt=Bt.slice(0,gn.index)+"["+It("a",gn[0].length-2)+"]"+Bt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(gn=this.tokenizer.rules.inline.escapedEmSt.exec(Bt))!=null;)Bt=Bt.slice(0,gn.index)+"++"+Bt.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;qe;){if(On||(hi=""),On=!1,Oe=this.tokenizer.escape(qe)){qe=qe.substring(Oe.raw.length),pt.push(Oe);continue}if(Oe=this.tokenizer.tag(qe,rt,Ht)){qe=qe.substring(Oe.raw.length),rt=Oe.inLink,Ht=Oe.inRawBlock;var En=pt[pt.length-1];En&&Oe.type==="text"&&En.type==="text"?(En.raw+=Oe.raw,En.text+=Oe.text):pt.push(Oe);continue}if(Oe=this.tokenizer.link(qe)){qe=qe.substring(Oe.raw.length),Oe.type==="link"&&(Oe.tokens=this.inlineTokens(Oe.text,[],!0,Ht)),pt.push(Oe);continue}if(Oe=this.tokenizer.reflink(qe,this.tokens.links)){qe=qe.substring(Oe.raw.length);var Dn=pt[pt.length-1];Oe.type==="link"?(Oe.tokens=this.inlineTokens(Oe.text,[],!0,Ht),pt.push(Oe)):Dn&&Oe.type==="text"&&Dn.type==="text"?(Dn.raw+=Oe.raw,Dn.text+=Oe.text):pt.push(Oe);continue}if(Oe=this.tokenizer.emStrong(qe,Bt,hi)){qe=qe.substring(Oe.raw.length),Oe.tokens=this.inlineTokens(Oe.text,[],rt,Ht),pt.push(Oe);continue}if(Oe=this.tokenizer.codespan(qe)){qe=qe.substring(Oe.raw.length),pt.push(Oe);continue}if(Oe=this.tokenizer.br(qe)){qe=qe.substring(Oe.raw.length),pt.push(Oe);continue}if(Oe=this.tokenizer.del(qe)){qe=qe.substring(Oe.raw.length),Oe.tokens=this.inlineTokens(Oe.text,[],rt,Ht),pt.push(Oe);continue}if(Oe=this.tokenizer.autolink(qe,x)){qe=qe.substring(Oe.raw.length),pt.push(Oe);continue}if(!rt&&(Oe=this.tokenizer.url(qe,x))){qe=qe.substring(Oe.raw.length),pt.push(Oe);continue}if(Oe=this.tokenizer.inlineText(qe,Ht,Z)){qe=qe.substring(Oe.raw.length),Oe.raw.slice(-1)!=="_"&&(hi=Oe.raw.slice(-1)),On=!0,$r=pt[pt.length-1],$r&&$r.type==="text"?($r.raw+=Oe.raw,$r.text+=Oe.text):pt.push(Oe);continue}if(qe){var Ut="Infinite loop on byte: "+qe.charCodeAt(0);if(this.options.silent){console.error(Ut);break}else throw new Error(Ut)}}return pt},E(Tt,null,[{key:"rules",get:function(){return{block:vr,inline:Ce}}}]),Tt}(),k=Re.exports.defaults,fe=ue.cleanUrl,W=ue.escape,Q=function(){function Tt($t){this.options=$t||k}var Rt=Tt.prototype;return Rt.code=function(qe,pt,rt){var Ht=(pt||"").match(/\S*/)[0];if(this.options.highlight){var Oe=this.options.highlight(qe,Ht);Oe!=null&&Oe!==qe&&(rt=!0,qe=Oe)}return qe=qe.replace(/\n$/,"")+`
|
|
|
`,Ht?'<pre><code class="'+this.options.langPrefix+W(Ht,!0)+'">'+(rt?qe:W(qe,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(rt?qe:W(qe,!0))+`</code></pre>
|
|
|
`},Rt.blockquote=function(qe){return`<blockquote>
|
|
|
`+qe+`</blockquote>
|
|
|
`},Rt.html=function(qe){return qe},Rt.heading=function(qe,pt,rt,Ht){return this.options.headerIds?"<h"+pt+' id="'+this.options.headerPrefix+Ht.slug(rt)+'">'+qe+"</h"+pt+`>
|
|
|
`:"<h"+pt+">"+qe+"</h"+pt+`>
|
|
|
`},Rt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Rt.list=function(qe,pt,rt){var Ht=pt?"ol":"ul",Oe=pt&&rt!==1?' start="'+rt+'"':"";return"<"+Ht+Oe+`>
|
|
|
`+qe+"</"+Ht+`>
|
|
|
`},Rt.listitem=function(qe){return"<li>"+qe+`</li>
|
|
|
`},Rt.checkbox=function(qe){return"<input "+(qe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Rt.paragraph=function(qe){return"<p>"+qe+`</p>
|
|
|
`},Rt.table=function(qe,pt){return pt&&(pt="<tbody>"+pt+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+qe+`</thead>
|
|
|
`+pt+`</table>
|
|
|
`},Rt.tablerow=function(qe){return`<tr>
|
|
|
`+qe+`</tr>
|
|
|
`},Rt.tablecell=function(qe,pt){var rt=pt.header?"th":"td",Ht=pt.align?"<"+rt+' align="'+pt.align+'">':"<"+rt+">";return Ht+qe+"</"+rt+`>
|
|
|
`},Rt.strong=function(qe){return"<strong>"+qe+"</strong>"},Rt.em=function(qe){return"<em>"+qe+"</em>"},Rt.codespan=function(qe){return"<code>"+qe+"</code>"},Rt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Rt.del=function(qe){return"<del>"+qe+"</del>"},Rt.link=function(qe,pt,rt){if(qe=fe(this.options.sanitize,this.options.baseUrl,qe),qe===null)return rt;var Ht='<a href="'+W(qe)+'"';return pt&&(Ht+=' title="'+pt+'"'),Ht+=">"+rt+"</a>",Ht},Rt.image=function(qe,pt,rt){if(qe=fe(this.options.sanitize,this.options.baseUrl,qe),qe===null)return rt;var Ht='<img src="'+qe+'" alt="'+rt+'"';return pt&&(Ht+=' title="'+pt+'"'),Ht+=this.options.xhtml?"/>":">",Ht},Rt.text=function(qe){return qe},Tt}(),re=function(){function Tt(){}var Rt=Tt.prototype;return Rt.strong=function(qe){return qe},Rt.em=function(qe){return qe},Rt.codespan=function(qe){return qe},Rt.del=function(qe){return qe},Rt.html=function(qe){return qe},Rt.text=function(qe){return qe},Rt.link=function(qe,pt,rt){return""+rt},Rt.image=function(qe,pt,rt){return""+rt},Rt.br=function(){return""},Tt}(),Se=function(){function Tt(){this.seen={}}var Rt=Tt.prototype;return Rt.serialize=function(qe){return qe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Rt.getNextSafeSlug=function(qe,pt){var rt=qe,Ht=0;if(this.seen.hasOwnProperty(rt)){Ht=this.seen[qe];do Ht++,rt=qe+"-"+Ht;while(this.seen.hasOwnProperty(rt))}return pt||(this.seen[qe]=Ht,this.seen[rt]=0),rt},Rt.slug=function(qe,pt){pt===void 0&&(pt={});var rt=this.serialize(qe);return this.getNextSafeSlug(rt,pt.dryrun)},Tt}(),Be=Q,Te=re,Ge=Se,ut=Re.exports.defaults,$e=ue.unescape,Je=function(){function Tt($t){this.options=$t||ut,this.options.renderer=this.options.renderer||new Be,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new Ge}Tt.parse=function(qe,pt){var rt=new Tt(pt);return rt.parse(qe)},Tt.parseInline=function(qe,pt){var rt=new Tt(pt);return rt.parseInline(qe)};var Rt=Tt.prototype;return Rt.parse=function(qe,pt){pt===void 0&&(pt=!0);var rt="",Ht,Oe,$r,Bt,gn,On,hi,ti,En,Dn,Ut,Dr,Pr,St,mt,mr,xr,on,kr=qe.length;for(Ht=0;Ht<kr;Ht++)switch(Dn=qe[Ht],Dn.type){case"space":continue;case"hr":{rt+=this.renderer.hr();continue}case"heading":{rt+=this.renderer.heading(this.parseInline(Dn.tokens),Dn.depth,$e(this.parseInline(Dn.tokens,this.textRenderer)),this.slugger);continue}case"code":{rt+=this.renderer.code(Dn.text,Dn.lang,Dn.escaped);continue}case"table":{for(ti="",hi="",Bt=Dn.header.length,Oe=0;Oe<Bt;Oe++)hi+=this.renderer.tablecell(this.parseInline(Dn.tokens.header[Oe]),{header:!0,align:Dn.align[Oe]});for(ti+=this.renderer.tablerow(hi),En="",Bt=Dn.cells.length,Oe=0;Oe<Bt;Oe++){for(On=Dn.tokens.cells[Oe],hi="",gn=On.length,$r=0;$r<gn;$r++)hi+=this.renderer.tablecell(this.parseInline(On[$r]),{header:!1,align:Dn.align[$r]});En+=this.renderer.tablerow(hi)}rt+=this.renderer.table(ti,En);continue}case"blockquote":{En=this.parse(Dn.tokens),rt+=this.renderer.blockquote(En);continue}case"list":{for(Ut=Dn.ordered,Dr=Dn.start,Pr=Dn.loose,Bt=Dn.items.length,En="",Oe=0;Oe<Bt;Oe++)mt=Dn.items[Oe],mr=mt.checked,xr=mt.task,St="",mt.task&&(on=this.renderer.checkbox(mr),Pr?mt.tokens.length>0&&mt.tokens[0].type==="text"?(mt.tokens[0].text=on+" "+mt.tokens[0].text,mt.tokens[0].tokens&&mt.tokens[0].tokens.length>0&&mt.tokens[0].tokens[0].type==="text"&&(mt.tokens[0].tokens[0].text=on+" "+mt.tokens[0].tokens[0].text)):mt.tokens.unshift({type:"text",text:on}):St+=on),St+=this.parse(mt.tokens,Pr),En+=this.renderer.listitem(St,xr,mr);rt+=this.renderer.list(En,Ut,Dr);continue}case"html":{rt+=this.renderer.html(Dn.text);continue}case"paragraph":{rt+=this.renderer.paragraph(this.parseInline(Dn.tokens));continue}case"text":{for(En=Dn.tokens?this.parseInline(Dn.tokens):Dn.text;Ht+1<kr&&qe[Ht+1].type==="text";)Dn=qe[++Ht],En+=`
|
|
|
`+(Dn.tokens?this.parseInline(Dn.tokens):Dn.text);rt+=pt?this.renderer.paragraph(En):En;continue}default:{var un='Token with "'+Dn.type+'" type was not found.';if(this.options.silent){console.error(un);return}else throw new Error(un)}}return rt},Rt.parseInline=function(qe,pt){pt=pt||this.renderer;var rt="",Ht,Oe,$r=qe.length;for(Ht=0;Ht<$r;Ht++)switch(Oe=qe[Ht],Oe.type){case"escape":{rt+=pt.text(Oe.text);break}case"html":{rt+=pt.html(Oe.text);break}case"link":{rt+=pt.link(Oe.href,Oe.title,this.parseInline(Oe.tokens,pt));break}case"image":{rt+=pt.image(Oe.href,Oe.title,Oe.text);break}case"strong":{rt+=pt.strong(this.parseInline(Oe.tokens,pt));break}case"em":{rt+=pt.em(this.parseInline(Oe.tokens,pt));break}case"codespan":{rt+=pt.codespan(Oe.text);break}case"br":{rt+=pt.br();break}case"del":{rt+=pt.del(this.parseInline(Oe.tokens,pt));break}case"text":{rt+=pt.text(Oe.text);break}default:{var Bt='Token with "'+Oe.type+'" type was not found.';if(this.options.silent){console.error(Bt);return}else throw new Error(Bt)}}return rt},Tt}(),At=y,ze=Je,He=tt,vt=Q,jt=re,Dt=Se,lr=ue.merge,gr=ue.checkSanitizeDeprecation,ne=ue.escape,we=Re.exports.getDefaults,Vt=Re.exports.changeDefaults,Ue=Re.exports.defaults;function it(Tt,Rt,$t){if(typeof Tt=="undefined"||Tt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Tt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Tt)+", string expected");if(typeof Rt=="function"&&($t=Rt,Rt=null),Rt=lr({},it.defaults,Rt||{}),gr(Rt),$t){var qe=Rt.highlight,pt;try{pt=At.lex(Tt,Rt)}catch($r){return $t($r)}var rt=function(Bt){var gn;if(!Bt)try{Rt.walkTokens&&it.walkTokens(pt,Rt.walkTokens),gn=ze.parse(pt,Rt)}catch(On){Bt=On}return Rt.highlight=qe,Bt?$t(Bt):$t(null,gn)};if(!qe||qe.length<3||(delete Rt.highlight,!pt.length))return rt();var Ht=0;it.walkTokens(pt,function($r){$r.type==="code"&&(Ht++,setTimeout(function(){qe($r.text,$r.lang,function(Bt,gn){if(Bt)return rt(Bt);gn!=null&&gn!==$r.text&&($r.text=gn,$r.escaped=!0),Ht--,Ht===0&&rt()})},0))}),Ht===0&&rt();return}try{var Oe=At.lex(Tt,Rt);return Rt.walkTokens&&it.walkTokens(Oe,Rt.walkTokens),ze.parse(Oe,Rt)}catch($r){if($r.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Rt.silent)return"<p>An error occurred:</p><pre>"+ne($r.message+"",!0)+"</pre>";throw $r}}it.options=it.setOptions=function(Tt){return lr(it.defaults,Tt),Vt(it.defaults),it},it.getDefaults=we,it.defaults=Ue,it.use=function(Tt){var Rt=lr({},Tt);if(Tt.renderer&&function(){var qe=it.defaults.renderer||new vt,pt=function(Oe){var $r=qe[Oe];qe[Oe]=function(){for(var Bt=arguments.length,gn=new Array(Bt),On=0;On<Bt;On++)gn[On]=arguments[On];var hi=Tt.renderer[Oe].apply(qe,gn);return hi===!1&&(hi=$r.apply(qe,gn)),hi}};for(var rt in Tt.renderer)pt(rt);Rt.renderer=qe}(),Tt.tokenizer&&function(){var qe=it.defaults.tokenizer||new He,pt=function(Oe){var $r=qe[Oe];qe[Oe]=function(){for(var Bt=arguments.length,gn=new Array(Bt),On=0;On<Bt;On++)gn[On]=arguments[On];var hi=Tt.tokenizer[Oe].apply(qe,gn);return hi===!1&&(hi=$r.apply(qe,gn)),hi}};for(var rt in Tt.tokenizer)pt(rt);Rt.tokenizer=qe}(),Tt.walkTokens){var $t=it.defaults.walkTokens;Rt.walkTokens=function(qe){Tt.walkTokens(qe),$t&&$t(qe)}}it.setOptions(Rt)},it.walkTokens=function(Tt,Rt){for(var $t=ae(Tt),qe;!(qe=$t()).done;){var pt=qe.value;switch(Rt(pt),pt.type){case"table":{for(var rt=ae(pt.tokens.header),Ht;!(Ht=rt()).done;){var Oe=Ht.value;it.walkTokens(Oe,Rt)}for(var $r=ae(pt.tokens.cells),Bt;!(Bt=$r()).done;)for(var gn=Bt.value,On=ae(gn),hi;!(hi=On()).done;){var ti=hi.value;it.walkTokens(ti,Rt)}break}case"list":{it.walkTokens(pt.items,Rt);break}default:pt.tokens&&it.walkTokens(pt.tokens,Rt)}}},it.parseInline=function(Tt,Rt){if(typeof Tt=="undefined"||Tt===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Tt!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Tt)+", string expected");Rt=lr({},it.defaults,Rt||{}),gr(Rt);try{var $t=At.lexInline(Tt,Rt);return Rt.walkTokens&&it.walkTokens($t,Rt.walkTokens),ze.parseInline($t,Rt)}catch(qe){if(qe.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Rt.silent)return"<p>An error occurred:</p><pre>"+ne(qe.message+"",!0)+"</pre>";throw qe}},it.Parser=ze,it.parser=ze.parse,it.Renderer=vt,it.TextRenderer=jt,it.Lexer=At,it.lexer=At.lex,it.Tokenizer=He,it.Slugger=Dt,it.parse=it;var Rr=it;return Rr})},11690:function(tn){const Mt=/[&<>"']/,E=/[&<>"']/g,le=/[<>"']|&(?!#?\w+;)/,Fe=/[<>"']|&(?!#?\w+;)/g,ae={"&":"&","<":"<",">":">",'"':""","'":"'"},Re=q=>ae[q];function K(q,ye){if(ye){if(Mt.test(q))return q.replace(E,Re)}else if(le.test(q))return q.replace(Fe,Re);return q}const g=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function R(q){return q.replace(g,(ye,_e)=>(_e=_e.toLowerCase(),_e==="colon"?":":_e.charAt(0)==="#"?_e.charAt(1)==="x"?String.fromCharCode(parseInt(_e.substring(2),16)):String.fromCharCode(+_e.substring(1)):""))}const T=/(^|[^\[])\^/g;function l(q,ye){q=q.source||q,ye=ye||"";const _e={replace:(Le,se)=>(se=se.source||se,se=se.replace(T,"$1"),q=q.replace(Le,se),_e),getRegex:()=>new RegExp(q,ye)};return _e}const d=/[^\w:]/g,N=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function v(q,ye,_e){if(q){let Le;try{Le=decodeURIComponent(R(_e)).replace(d,"").toLowerCase()}catch(se){return null}if(Le.indexOf("javascript:")===0||Le.indexOf("vbscript:")===0||Le.indexOf("data:")===0)return null}ye&&!N.test(_e)&&(_e=z(ye,_e));try{_e=encodeURI(_e).replace(/%25/g,"%")}catch(Le){return null}return _e}const m={},b=/^[^:]+:\/*[^/]*$/,I=/^([^:]+:)[\s\S]*$/,L=/^([^:]+:\/*[^/]*)[\s\S]*$/;function z(q,ye){m[" "+q]||(b.test(q)?m[" "+q]=q+"/":m[" "+q]=te(q,"/",!0)),q=m[" "+q];const _e=q.indexOf(":")===-1;return ye.substring(0,2)==="//"?_e?ye:q.replace(I,"$1")+ye:ye.charAt(0)==="/"?_e?ye:q.replace(L,"$1")+ye:q+ye}const P={exec:function(){}};function $(q){let ye=1,_e,Le;for(;ye<arguments.length;ye++){_e=arguments[ye];for(Le in _e)Object.prototype.hasOwnProperty.call(_e,Le)&&(q[Le]=_e[Le])}return q}function J(q,ye){const _e=q.replace(/\|/g,(be,O,Ee)=>{let ue=!1,he=O;for(;--he>=0&&Ee[he]==="\\";)ue=!ue;return ue?"|":" |"}),Le=_e.split(/ \|/);let se=0;if(Le.length>ye)Le.splice(ye);else for(;Le.length<ye;)Le.push("");for(;se<Le.length;se++)Le[se]=Le[se].trim().replace(/\\\|/g,"|");return Le}function te(q,ye,_e){const Le=q.length;if(Le===0)return"";let se=0;for(;se<Le;){const be=q.charAt(Le-se-1);if(be===ye&&!_e)se++;else if(be!==ye&&_e)se++;else break}return q.substr(0,Le-se)}function H(q,ye){if(q.indexOf(ye[1])===-1)return-1;const _e=q.length;let Le=0,se=0;for(;se<_e;se++)if(q[se]==="\\")se++;else if(q[se]===ye[0])Le++;else if(q[se]===ye[1]&&(Le--,Le<0))return se;return-1}function G(q){q&&q.sanitize&&!q.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ce(q,ye){if(ye<1)return"";let _e="";for(;ye>1;)ye&1&&(_e+=q),ye>>=1,q+=q;return _e+q}tn.exports={escape:K,unescape:R,edit:l,cleanUrl:v,resolveUrl:z,noopTest:P,merge:$,splitCells:J,rtrim:te,findClosingBracket:H,checkSanitizeDeprecation:G,repeatString:ce}},75918:function(tn,Mt,E){"use strict";E.d(Mt,{Wi:function(){return g},Z0:function(){return R},aU:function(){return K},eZ:function(){return l},wY:function(){return T}});var le=E(4348),Fe=E(69323),ae=E(13268),Re=function(d,N,v,m){function b(I){return I instanceof v?I:new v(function(L){L(I)})}return new(v||(v=Promise))(function(I,L){function z(J){try{$(m.next(J))}catch(te){L(te)}}function P(J){try{$(m.throw(J))}catch(te){L(te)}}function $(J){J.done?I(J.value):b(J.value).then(z,P)}$((m=m.apply(d,N||[])).next())})};class K extends Fe.JT{constructor(N,v="",m="",b=!0,I){super(),this._onDidChange=this._register(new le.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=N,this._label=v,this._cssClass=m,this._enabled=b,this._actionCallback=I}get id(){return this._id}get label(){return this._label}set label(N){this._setLabel(N)}_setLabel(N){this._label!==N&&(this._label=N,this._onDidChange.fire({label:N}))}get tooltip(){return this._tooltip||""}set tooltip(N){this._setTooltip(N)}_setTooltip(N){this._tooltip!==N&&(this._tooltip=N,this._onDidChange.fire({tooltip:N}))}get class(){return this._cssClass}set class(N){this._setClass(N)}_setClass(N){this._cssClass!==N&&(this._cssClass=N,this._onDidChange.fire({class:N}))}get enabled(){return this._enabled}set enabled(N){this._setEnabled(N)}_setEnabled(N){this._enabled!==N&&(this._enabled=N,this._onDidChange.fire({enabled:N}))}get checked(){return this._checked}set checked(N){this._setChecked(N)}_setChecked(N){this._checked!==N&&(this._checked=N,this._onDidChange.fire({checked:N}))}run(N,v){return Re(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(N))})}}class g extends Fe.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new le.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new le.Q5),this.onDidRun=this._onDidRun.event}run(N,v){return Re(this,void 0,void 0,function*(){if(!N.enabled)return;this._onBeforeRun.fire({action:N});let m;try{yield this.runAction(N,v)}catch(b){m=b}this._onDidRun.fire({action:N,error:m})})}runAction(N,v){return Re(this,void 0,void 0,function*(){yield N.run(v)})}}class R extends K{constructor(N){super(R.ID,N,N?"separator text":"separator"),this.checked=!1,this.enabled=!1}}R.ID="vs.actions.separator";class T{constructor(N,v,m,b){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=N,this.label=v,this.class=b,this._actions=m}get actions(){return this._actions}dispose(){}run(){return Re(this,void 0,void 0,function*(){})}}class l extends K{constructor(){super(l.ID,ae.N("submenu.empty","(empty)"),void 0,!1)}}l.ID="vs.actions.empty"},76068:function(tn,Mt,E){"use strict";E.d(Mt,{ok:function(){return le}});function le(Fe,ae){if(!Fe)throw new Error(ae?`Assertion failed (${ae})`:"Assertion Failed")}},52615:function(tn,Mt,E){"use strict";E.d(Mt,{CM:function(){return K},JL:function(){return g},dT:function(){return T},fK:function(){return Re},lA:function(){return R}});var le=E(4348);class Fe{constructor(){this._icons=new Map,this._onDidRegister=new le.Q5}add(d){const N=this._icons.get(d.id);N?d.description?N.description=d.description:console.error(`Duplicate registration of codicon ${d.id}`):(this._icons.set(d.id,d),this._onDidRegister.fire(d))}get(d){return this._icons.get(d)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const ae=new Fe,Re=ae;function K(l,d){return new R(l,d)}function g(l){return l?l.replace(/\$\((.*?)\)/g,(d,N)=>` ${N} `).trim():""}class R{constructor(d,N,v){this.id=d,this.definition=N,this.description=v,ae.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var T;(function(l){l.iconNameSegment="[A-Za-z0-9]+",l.iconNameExpression="[A-Za-z0-9\\-]+",l.iconModifierExpression="~[A-Za-z]+";const d=new RegExp(`^(${l.iconNameExpression})(${l.iconModifierExpression})?$`);function N(b){if(b instanceof R)return["codicon","codicon-"+b.id];const I=d.exec(b.id);if(!I)return N(R.error);let[,L,z]=I;const P=["codicon","codicon-"+L];return z&&P.push("codicon-modifier-"+z.substr(1)),P}l.asClassNameArray=N;function v(b){return N(b).join(" ")}l.asClassName=v;function m(b){return"."+N(b).join(".")}l.asCSSSelector=m})(T||(T={})),function(l){l.add=new l("add",{fontCharacter:"\\ea60"}),l.plus=new l("plus",l.add.definition),l.gistNew=new l("gist-new",l.add.definition),l.repoCreate=new l("repo-create",l.add.definition),l.lightbulb=new l("lightbulb",{fontCharacter:"\\ea61"}),l.lightBulb=new l("light-bulb",{fontCharacter:"\\ea61"}),l.repo=new l("repo",{fontCharacter:"\\ea62"}),l.repoDelete=new l("repo-delete",{fontCharacter:"\\ea62"}),l.gistFork=new l("gist-fork",{fontCharacter:"\\ea63"}),l.repoForked=new l("repo-forked",{fontCharacter:"\\ea63"}),l.gitPullRequest=new l("git-pull-request",{fontCharacter:"\\ea64"}),l.gitPullRequestAbandoned=new l("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),l.recordKeys=new l("record-keys",{fontCharacter:"\\ea65"}),l.keyboard=new l("keyboard",{fontCharacter:"\\ea65"}),l.tag=new l("tag",{fontCharacter:"\\ea66"}),l.tagAdd=new l("tag-add",{fontCharacter:"\\ea66"}),l.tagRemove=new l("tag-remove",{fontCharacter:"\\ea66"}),l.person=new l("person",{fontCharacter:"\\ea67"}),l.personFollow=new l("person-follow",{fontCharacter:"\\ea67"}),l.personOutline=new l("person-outline",{fontCharacter:"\\ea67"}),l.personFilled=new l("person-filled",{fontCharacter:"\\ea67"}),l.gitBranch=new l("git-branch",{fontCharacter:"\\ea68"}),l.gitBranchCreate=new l("git-branch-create",{fontCharacter:"\\ea68"}),l.gitBranchDelete=new l("git-branch-delete",{fontCharacter:"\\ea68"}),l.sourceControl=new l("source-control",{fontCharacter:"\\ea68"}),l.mirror=new l("mirror",{fontCharacter:"\\ea69"}),l.mirrorPublic=new l("mirror-public",{fontCharacter:"\\ea69"}),l.star=new l("star",{fontCharacter:"\\ea6a"}),l.starAdd=new l("star-add",{fontCharacter:"\\ea6a"}),l.starDelete=new l("star-delete",{fontCharacter:"\\ea6a"}),l.starEmpty=new l("star-empty",{fontCharacter:"\\ea6a"}),l.comment=new l("comment",{fontCharacter:"\\ea6b"}),l.commentAdd=new l("comment-add",{fontCharacter:"\\ea6b"}),l.alert=new l("alert",{fontCharacter:"\\ea6c"}),l.warning=new l("warning",{fontCharacter:"\\ea6c"}),l.search=new l("search",{fontCharacter:"\\ea6d"}),l.searchSave=new l("search-save",{fontCharacter:"\\ea6d"}),l.logOut=new l("log-out",{fontCharacter:"\\ea6e"}),l.signOut=new l("sign-out",{fontCharacter:"\\ea6e"}),l.logIn=new l("log-in",{fontCharacter:"\\ea6f"}),l.signIn=new l("sign-in",{fontCharacter:"\\ea6f"}),l.eye=new l("eye",{fontCharacter:"\\ea70"}),l.eyeUnwatch=new l("eye-unwatch",{fontCharacter:"\\ea70"}),l.eyeWatch=new l("eye-watch",{fontCharacter:"\\ea70"}),l.circleFilled=new l("circle-filled",{fontCharacter:"\\ea71"}),l.primitiveDot=new l("primitive-dot",{fontCharacter:"\\ea71"}),l.closeDirty=new l("close-dirty",{fontCharacter:"\\ea71"}),l.debugBreakpoint=new l("debug-breakpoint",{fontCharacter:"\\ea71"}),l.debugBreakpointDisabled=new l("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),l.debugHint=new l("debug-hint",{fontCharacter:"\\ea71"}),l.primitiveSquare=new l("primitive-square",{fontCharacter:"\\ea72"}),l.edit=new l("edit",{fontCharacter:"\\ea73"}),l.pencil=new l("pencil",{fontCharacter:"\\ea73"}),l.info=new l("info",{fontCharacter:"\\ea74"}),l.issueOpened=new l("issue-opened",{fontCharacter:"\\ea74"}),l.gistPrivate=new l("gist-private",{fontCharacter:"\\ea75"}),l.gitForkPrivate=new l("git-fork-private",{fontCharacter:"\\ea75"}),l.lock=new l("lock",{fontCharacter:"\\ea75"}),l.mirrorPrivate=new l("mirror-private",{fontCharacter:"\\ea75"}),l.close=new l("close",{fontCharacter:"\\ea76"}),l.removeClose=new l("remove-close",{fontCharacter:"\\ea76"}),l.x=new l("x",{fontCharacter:"\\ea76"}),l.repoSync=new l("repo-sync",{fontCharacter:"\\ea77"}),l.sync=new l("sync",{fontCharacter:"\\ea77"}),l.clone=new l("clone",{fontCharacter:"\\ea78"}),l.desktopDownload=new l("desktop-download",{fontCharacter:"\\ea78"}),l.beaker=new l("beaker",{fontCharacter:"\\ea79"}),l.microscope=new l("microscope",{fontCharacter:"\\ea79"}),l.vm=new l("vm",{fontCharacter:"\\ea7a"}),l.deviceDesktop=new l("device-desktop",{fontCharacter:"\\ea7a"}),l.file=new l("file",{fontCharacter:"\\ea7b"}),l.fileText=new l("file-text",{fontCharacter:"\\ea7b"}),l.more=new l("more",{fontCharacter:"\\ea7c"}),l.ellipsis=new l("ellipsis",{fontCharacter:"\\ea7c"}),l.kebabHorizontal=new l("kebab-horizontal",{fontCharacter:"\\ea7c"}),l.mailReply=new l("mail-reply",{fontCharacter:"\\ea7d"}),l.reply=new l("reply",{fontCharacter:"\\ea7d"}),l.organization=new l("organization",{fontCharacter:"\\ea7e"}),l.organizationFilled=new l("organization-filled",{fontCharacter:"\\ea7e"}),l.organizationOutline=new l("organization-outline",{fontCharacter:"\\ea7e"}),l.newFile=new l("new-file",{fontCharacter:"\\ea7f"}),l.fileAdd=new l("file-add",{fontCharacter:"\\ea7f"}),l.newFolder=new l("new-folder",{fontCharacter:"\\ea80"}),l.fileDirectoryCreate=new l("file-directory-create",{fontCharacter:"\\ea80"}),l.trash=new l("trash",{fontCharacter:"\\ea81"}),l.trashcan=new l("trashcan",{fontCharacter:"\\ea81"}),l.history=new l("history",{fontCharacter:"\\ea82"}),l.clock=new l("clock",{fontCharacter:"\\ea82"}),l.folder=new l("folder",{fontCharacter:"\\ea83"}),l.fileDirectory=new l("file-directory",{fontCharacter:"\\ea83"}),l.symbolFolder=new l("symbol-folder",{fontCharacter:"\\ea83"}),l.logoGithub=new l("logo-github",{fontCharacter:"\\ea84"}),l.markGithub=new l("mark-github",{fontCharacter:"\\ea84"}),l.github=new l("github",{fontCharacter:"\\ea84"}),l.terminal=new l("terminal",{fontCharacter:"\\ea85"}),l.console=new l("console",{fontCharacter:"\\ea85"}),l.repl=new l("repl",{fontCharacter:"\\ea85"}),l.zap=new l("zap",{fontCharacter:"\\ea86"}),l.symbolEvent=new l("symbol-event",{fontCharacter:"\\ea86"}),l.error=new l("error",{fontCharacter:"\\ea87"}),l.stop=new l("stop",{fontCharacter:"\\ea87"}),l.variable=new l("variable",{fontCharacter:"\\ea88"}),l.symbolVariable=new l("symbol-variable",{fontCharacter:"\\ea88"}),l.array=new l("array",{fontCharacter:"\\ea8a"}),l.symbolArray=new l("symbol-array",{fontCharacter:"\\ea8a"}),l.symbolModule=new l("symbol-module",{fontCharacter:"\\ea8b"}),l.symbolPackage=new l("symbol-package",{fontCharacter:"\\ea8b"}),l.symbolNamespace=new l("symbol-namespace",{fontCharacter:"\\ea8b"}),l.symbolObject=new l("symbol-object",{fontCharacter:"\\ea8b"}),l.symbolMethod=new l("symbol-method",{fontCharacter:"\\ea8c"}),l.symbolFunction=new l("symbol-function",{fontCharacter:"\\ea8c"}),l.symbolConstructor=new l("symbol-constructor",{fontCharacter:"\\ea8c"}),l.symbolBoolean=new l("symbol-boolean",{fontCharacter:"\\ea8f"}),l.symbolNull=new l("symbol-null",{fontCharacter:"\\ea8f"}),l.symbolNumeric=new l("symbol-numeric",{fontCharacter:"\\ea90"}),l.symbolNumber=new l("symbol-number",{fontCharacter:"\\ea90"}),l.symbolStructure=new l("symbol-structure",{fontCharacter:"\\ea91"}),l.symbolStruct=new l("symbol-struct",{fontCharacter:"\\ea91"}),l.symbolParameter=new l("symbol-parameter",{fontCharacter:"\\ea92"}),l.symbolTypeParameter=new l("symbol-type-parameter",{fontCharacter:"\\ea92"}),l.symbolKey=new l("symbol-key",{fontCharacter:"\\ea93"}),l.symbolText=new l("symbol-text",{fontCharacter:"\\ea93"}),l.symbolReference=new l("symbol-reference",{fontCharacter:"\\ea94"}),l.goToFile=new l("go-to-file",{fontCharacter:"\\ea94"}),l.symbolEnum=new l("symbol-enum",{fontCharacter:"\\ea95"}),l.symbolValue=new l("symbol-value",{fontCharacter:"\\ea95"}),l.symbolRuler=new l("symbol-ruler",{fontCharacter:"\\ea96"}),l.symbolUnit=new l("symbol-unit",{fontCharacter:"\\ea96"}),l.activateBreakpoints=new l("activate-breakpoints",{fontCharacter:"\\ea97"}),l.archive=new l("archive",{fontCharacter:"\\ea98"}),l.arrowBoth=new l("arrow-both",{fontCharacter:"\\ea99"}),l.arrowDown=new l("arrow-down",{fontCharacter:"\\ea9a"}),l.arrowLeft=new l("arrow-left",{fontCharacter:"\\ea9b"}),l.arrowRight=new l("arrow-right",{fontCharacter:"\\ea9c"}),l.arrowSmallDown=new l("arrow-small-down",{fontCharacter:"\\ea9d"}),l.arrowSmallLeft=new l("arrow-small-left",{fontCharacter:"\\ea9e"}),l.arrowSmallRight=new l("arrow-small-right",{fontCharacter:"\\ea9f"}),l.arrowSmallUp=new l("arrow-small-up",{fontCharacter:"\\eaa0"}),l.arrowUp=new l("arrow-up",{fontCharacter:"\\eaa1"}),l.bell=new l("bell",{fontCharacter:"\\eaa2"}),l.bold=new l("bold",{fontCharacter:"\\eaa3"}),l.book=new l("book",{fontCharacter:"\\eaa4"}),l.bookmark=new l("bookmark",{fontCharacter:"\\eaa5"}),l.debugBreakpointConditionalUnverified=new l("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),l.debugBreakpointConditional=new l("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),l.debugBreakpointConditionalDisabled=new l("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),l.debugBreakpointDataUnverified=new l("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),l.debugBreakpointData=new l("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),l.debugBreakpointDataDisabled=new l("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),l.debugBreakpointLogUnverified=new l("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),l.debugBreakpointLog=new l("debug-breakpoint-log",{fontCharacter:"\\eaab"}),l.debugBreakpointLogDisabled=new l("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),l.briefcase=new l("briefcase",{fontCharacter:"\\eaac"}),l.broadcast=new l("broadcast",{fontCharacter:"\\eaad"}),l.browser=new l("browser",{fontCharacter:"\\eaae"}),l.bug=new l("bug",{fontCharacter:"\\eaaf"}),l.calendar=new l("calendar",{fontCharacter:"\\eab0"}),l.caseSensitive=new l("case-sensitive",{fontCharacter:"\\eab1"}),l.check=new l("check",{fontCharacter:"\\eab2"}),l.checklist=new l("checklist",{fontCharacter:"\\eab3"}),l.chevronDown=new l("chevron-down",{fontCharacter:"\\eab4"}),l.dropDownButton=new l("drop-down-button",l.chevronDown.definition),l.chevronLeft=new l("chevron-left",{fontCharacter:"\\eab5"}),l.chevronRight=new l("chevron-right",{fontCharacter:"\\eab6"}),l.chevronUp=new l("chevron-up",{fontCharacter:"\\eab7"}),l.chromeClose=new l("chrome-close",{fontCharacter:"\\eab8"}),l.chromeMaximize=new l("chrome-maximize",{fontCharacter:"\\eab9"}),l.chromeMinimize=new l("chrome-minimize",{fontCharacter:"\\eaba"}),l.chromeRestore=new l("chrome-restore",{fontCharacter:"\\eabb"}),l.circleOutline=new l("circle-outline",{fontCharacter:"\\eabc"}),l.debugBreakpointUnverified=new l("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),l.circleSlash=new l("circle-slash",{fontCharacter:"\\eabd"}),l.circuitBoard=new l("circuit-board",{fontCharacter:"\\eabe"}),l.clearAll=new l("clear-all",{fontCharacter:"\\eabf"}),l.clippy=new l("clippy",{fontCharacter:"\\eac0"}),l.closeAll=new l("close-all",{fontCharacter:"\\eac1"}),l.cloudDownload=new l("cloud-download",{fontCharacter:"\\eac2"}),l.cloudUpload=new l("cloud-upload",{fontCharacter:"\\eac3"}),l.code=new l("code",{fontCharacter:"\\eac4"}),l.collapseAll=new l("collapse-all",{fontCharacter:"\\eac5"}),l.colorMode=new l("color-mode",{fontCharacter:"\\eac6"}),l.commentDiscussion=new l("comment-discussion",{fontCharacter:"\\eac7"}),l.compareChanges=new l("compare-changes",{fontCharacter:"\\eafd"}),l.creditCard=new l("credit-card",{fontCharacter:"\\eac9"}),l.dash=new l("dash",{fontCharacter:"\\eacc"}),l.dashboard=new l("dashboard",{fontCharacter:"\\eacd"}),l.database=new l("database",{fontCharacter:"\\eace"}),l.debugContinue=new l("debug-continue",{fontCharacter:"\\eacf"}),l.debugDisconnect=new l("debug-disconnect",{fontCharacter:"\\ead0"}),l.debugPause=new l("debug-pause",{fontCharacter:"\\ead1"}),l.debugRestart=new l("debug-restart",{fontCharacter:"\\ead2"}),l.debugStart=new l("debug-start",{fontCharacter:"\\ead3"}),l.debugStepInto=new l("debug-step-into",{fontCharacter:"\\ead4"}),l.debugStepOut=new l("debug-step-out",{fontCharacter:"\\ead5"}),l.debugStepOver=new l("debug-step-over",{fontCharacter:"\\ead6"}),l.debugStop=new l("debug-stop",{fontCharacter:"\\ead7"}),l.debug=new l("debug",{fontCharacter:"\\ead8"}),l.deviceCameraVideo=new l("device-camera-video",{fontCharacter:"\\ead9"}),l.deviceCamera=new l("device-camera",{fontCharacter:"\\eada"}),l.deviceMobile=new l("device-mobile",{fontCharacter:"\\eadb"}),l.diffAdded=new l("diff-added",{fontCharacter:"\\eadc"}),l.diffIgnored=new l("diff-ignored",{fontCharacter:"\\eadd"}),l.diffModified=new l("diff-modified",{fontCharacter:"\\eade"}),l.diffRemoved=new l("diff-removed",{fontCharacter:"\\eadf"}),l.diffRenamed=new l("diff-renamed",{fontCharacter:"\\eae0"}),l.diff=new l("diff",{fontCharacter:"\\eae1"}),l.discard=new l("discard",{fontCharacter:"\\eae2"}),l.editorLayout=new l("editor-layout",{fontCharacter:"\\eae3"}),l.emptyWindow=new l("empty-window",{fontCharacter:"\\eae4"}),l.exclude=new l("exclude",{fontCharacter:"\\eae5"}),l.extensions=new l("extensions",{fontCharacter:"\\eae6"}),l.eyeClosed=new l("eye-closed",{fontCharacter:"\\eae7"}),l.fileBinary=new l("file-binary",{fontCharacter:"\\eae8"}),l.fileCode=new l("file-code",{fontCharacter:"\\eae9"}),l.fileMedia=new l("file-media",{fontCharacter:"\\eaea"}),l.filePdf=new l("file-pdf",{fontCharacter:"\\eaeb"}),l.fileSubmodule=new l("file-submodule",{fontCharacter:"\\eaec"}),l.fileSymlinkDirectory=new l("file-symlink-directory",{fontCharacter:"\\eaed"}),l.fileSymlinkFile=new l("file-symlink-file",{fontCharacter:"\\eaee"}),l.fileZip=new l("file-zip",{fontCharacter:"\\eaef"}),l.files=new l("files",{fontCharacter:"\\eaf0"}),l.filter=new l("filter",{fontCharacter:"\\eaf1"}),l.flame=new l("flame",{fontCharacter:"\\eaf2"}),l.foldDown=new l("fold-down",{fontCharacter:"\\eaf3"}),l.foldUp=new l("fold-up",{fontCharacter:"\\eaf4"}),l.fold=new l("fold",{fontCharacter:"\\eaf5"}),l.folderActive=new l("folder-active",{fontCharacter:"\\eaf6"}),l.folderOpened=new l("folder-opened",{fontCharacter:"\\eaf7"}),l.gear=new l("gear",{fontCharacter:"\\eaf8"}),l.gift=new l("gift",{fontCharacter:"\\eaf9"}),l.gistSecret=new l("gist-secret",{fontCharacter:"\\eafa"}),l.gist=new l("gist",{fontCharacter:"\\eafb"}),l.gitCommit=new l("git-commit",{fontCharacter:"\\eafc"}),l.gitCompare=new l("git-compare",{fontCharacter:"\\eafd"}),l.gitMerge=new l("git-merge",{fontCharacter:"\\eafe"}),l.githubAction=new l("github-action",{fontCharacter:"\\eaff"}),l.githubAlt=new l("github-alt",{fontCharacter:"\\eb00"}),l.globe=new l("globe",{fontCharacter:"\\eb01"}),l.grabber=new l("grabber",{fontCharacter:"\\eb02"}),l.graph=new l("graph",{fontCharacter:"\\eb03"}),l.gripper=new l("gripper",{fontCharacter:"\\eb04"}),l.heart=new l("heart",{fontCharacter:"\\eb05"}),l.home=new l("home",{fontCharacter:"\\eb06"}),l.horizontalRule=new l("horizontal-rule",{fontCharacter:"\\eb07"}),l.hubot=new l("hubot",{fontCharacter:"\\eb08"}),l.inbox=new l("inbox",{fontCharacter:"\\eb09"}),l.issueClosed=new l("issue-closed",{fontCharacter:"\\eba4"}),l.issueReopened=new l("issue-reopened",{fontCharacter:"\\eb0b"}),l.issues=new l("issues",{fontCharacter:"\\eb0c"}),l.italic=new l("italic",{fontCharacter:"\\eb0d"}),l.jersey=new l("jersey",{fontCharacter:"\\eb0e"}),l.json=new l("json",{fontCharacter:"\\eb0f"}),l.kebabVertical=new l("kebab-vertical",{fontCharacter:"\\eb10"}),l.key=new l("key",{fontCharacter:"\\eb11"}),l.law=new l("law",{fontCharacter:"\\eb12"}),l.lightbulbAutofix=new l("lightbulb-autofix",{fontCharacter:"\\eb13"}),l.linkExternal=new l("link-external",{fontCharacter:"\\eb14"}),l.link=new l("link",{fontCharacter:"\\eb15"}),l.listOrdered=new l("list-ordered",{fontCharacter:"\\eb16"}),l.listUnordered=new l("list-unordered",{fontCharacter:"\\eb17"}),l.liveShare=new l("live-share",{fontCharacter:"\\eb18"}),l.loading=new l("loading",{fontCharacter:"\\eb19"}),l.location=new l("location",{fontCharacter:"\\eb1a"}),l.mailRead=new l("mail-read",{fontCharacter:"\\eb1b"}),l.mail=new l("mail",{fontCharacter:"\\eb1c"}),l.markdown=new l("markdown",{fontCharacter:"\\eb1d"}),l.megaphone=new l("megaphone",{fontCharacter:"\\eb1e"}),l.mention=new l("mention",{fontCharacter:"\\eb1f"}),l.milestone=new l("milestone",{fontCharacter:"\\eb20"}),l.mortarBoard=new l("mortar-board",{fontCharacter:"\\eb21"}),l.move=new l("move",{fontCharacter:"\\eb22"}),l.multipleWindows=new l("multiple-windows",{fontCharacter:"\\eb23"}),l.mute=new l("mute",{fontCharacter:"\\eb24"}),l.noNewline=new l("no-newline",{fontCharacter:"\\eb25"}),l.note=new l("note",{fontCharacter:"\\eb26"}),l.octoface=new l("octoface",{fontCharacter:"\\eb27"}),l.openPreview=new l("open-preview",{fontCharacter:"\\eb28"}),l.package_=new l("package",{fontCharacter:"\\eb29"}),l.paintcan=new l("paintcan",{fontCharacter:"\\eb2a"}),l.pin=new l("pin",{fontCharacter:"\\eb2b"}),l.play=new l("play",{fontCharacter:"\\eb2c"}),l.run=new l("run",{fontCharacter:"\\eb2c"}),l.plug=new l("plug",{fontCharacter:"\\eb2d"}),l.preserveCase=new l("preserve-case",{fontCharacter:"\\eb2e"}),l.preview=new l("preview",{fontCharacter:"\\eb2f"}),l.project=new l("project",{fontCharacter:"\\eb30"}),l.pulse=new l("pulse",{fontCharacter:"\\eb31"}),l.question=new l("question",{fontCharacter:"\\eb32"}),l.quote=new l("quote",{fontCharacter:"\\eb33"}),l.radioTower=new l("radio-tower",{fontCharacter:"\\eb34"}),l.reactions=new l("reactions",{fontCharacter:"\\eb35"}),l.references=new l("references",{fontCharacter:"\\eb36"}),l.refresh=new l("refresh",{fontCharacter:"\\eb37"}),l.regex=new l("regex",{fontCharacter:"\\eb38"}),l.remoteExplorer=new l("remote-explorer",{fontCharacter:"\\eb39"}),l.remote=new l("remote",{fontCharacter:"\\eb3a"}),l.remove=new l("remove",{fontCharacter:"\\eb3b"}),l.replaceAll=new l("replace-all",{fontCharacter:"\\eb3c"}),l.replace=new l("replace",{fontCharacter:"\\eb3d"}),l.repoClone=new l("repo-clone",{fontCharacter:"\\eb3e"}),l.repoForcePush=new l("repo-force-push",{fontCharacter:"\\eb3f"}),l.repoPull=new l("repo-pull",{fontCharacter:"\\eb40"}),l.repoPush=new l("repo-push",{fontCharacter:"\\eb41"}),l.report=new l("report",{fontCharacter:"\\eb42"}),l.requestChanges=new l("request-changes",{fontCharacter:"\\eb43"}),l.rocket=new l("rocket",{fontCharacter:"\\eb44"}),l.rootFolderOpened=new l("root-folder-opened",{fontCharacter:"\\eb45"}),l.rootFolder=new l("root-folder",{fontCharacter:"\\eb46"}),l.rss=new l("rss",{fontCharacter:"\\eb47"}),l.ruby=new l("ruby",{fontCharacter:"\\eb48"}),l.saveAll=new l("save-all",{fontCharacter:"\\eb49"}),l.saveAs=new l("save-as",{fontCharacter:"\\eb4a"}),l.save=new l("save",{fontCharacter:"\\eb4b"}),l.screenFull=new l("screen-full",{fontCharacter:"\\eb4c"}),l.screenNormal=new l("screen-normal",{fontCharacter:"\\eb4d"}),l.searchStop=new l("search-stop",{fontCharacter:"\\eb4e"}),l.server=new l("server",{fontCharacter:"\\eb50"}),l.settingsGear=new l("settings-gear",{fontCharacter:"\\eb51"}),l.settings=new l("settings",{fontCharacter:"\\eb52"}),l.shield=new l("shield",{fontCharacter:"\\eb53"}),l.smiley=new l("smiley",{fontCharacter:"\\eb54"}),l.sortPrecedence=new l("sort-precedence",{fontCharacter:"\\eb55"}),l.splitHorizontal=new l("split-horizontal",{fontCharacter:"\\eb56"}),l.splitVertical=new l("split-vertical",{fontCharacter:"\\eb57"}),l.squirrel=new l("squirrel",{fontCharacter:"\\eb58"}),l.starFull=new l("star-full",{fontCharacter:"\\eb59"}),l.starHalf=new l("star-half",{fontCharacter:"\\eb5a"}),l.symbolClass=new l("symbol-class",{fontCharacter:"\\eb5b"}),l.symbolColor=new l("symbol-color",{fontCharacter:"\\eb5c"}),l.symbolConstant=new l("symbol-constant",{fontCharacter:"\\eb5d"}),l.symbolEnumMember=new l("symbol-enum-member",{fontCharacter:"\\eb5e"}),l.symbolField=new l("symbol-field",{fontCharacter:"\\eb5f"}),l.symbolFile=new l("symbol-file",{fontCharacter:"\\eb60"}),l.symbolInterface=new l("symbol-interface",{fontCharacter:"\\eb61"}),l.symbolKeyword=new l("symbol-keyword",{fontCharacter:"\\eb62"}),l.symbolMisc=new l("symbol-misc",{fontCharacter:"\\eb63"}),l.symbolOperator=new l("symbol-operator",{fontCharacter:"\\eb64"}),l.symbolProperty=new l("symbol-property",{fontCharacter:"\\eb65"}),l.wrench=new l("wrench",{fontCharacter:"\\eb65"}),l.wrenchSubaction=new l("wrench-subaction",{fontCharacter:"\\eb65"}),l.symbolSnippet=new l("symbol-snippet",{fontCharacter:"\\eb66"}),l.tasklist=new l("tasklist",{fontCharacter:"\\eb67"}),l.telescope=new l("telescope",{fontCharacter:"\\eb68"}),l.textSize=new l("text-size",{fontCharacter:"\\eb69"}),l.threeBars=new l("three-bars",{fontCharacter:"\\eb6a"}),l.thumbsdown=new l("thumbsdown",{fontCharacter:"\\eb6b"}),l.thumbsup=new l("thumbsup",{fontCharacter:"\\eb6c"}),l.tools=new l("tools",{fontCharacter:"\\eb6d"}),l.triangleDown=new l("triangle-down",{fontCharacter:"\\eb6e"}),l.triangleLeft=new l("triangle-left",{fontCharacter:"\\eb6f"}),l.triangleRight=new l("triangle-right",{fontCharacter:"\\eb70"}),l.triangleUp=new l("triangle-up",{fontCharacter:"\\eb71"}),l.twitter=new l("twitter",{fontCharacter:"\\eb72"}),l.unfold=new l("unfold",{fontCharacter:"\\eb73"}),l.unlock=new l("unlock",{fontCharacter:"\\eb74"}),l.unmute=new l("unmute",{fontCharacter:"\\eb75"}),l.unverified=new l("unverified",{fontCharacter:"\\eb76"}),l.verified=new l("verified",{fontCharacter:"\\eb77"}),l.versions=new l("versions",{fontCharacter:"\\eb78"}),l.vmActive=new l("vm-active",{fontCharacter:"\\eb79"}),l.vmOutline=new l("vm-outline",{fontCharacter:"\\eb7a"}),l.vmRunning=new l("vm-running",{fontCharacter:"\\eb7b"}),l.watch=new l("watch",{fontCharacter:"\\eb7c"}),l.whitespace=new l("whitespace",{fontCharacter:"\\eb7d"}),l.wholeWord=new l("whole-word",{fontCharacter:"\\eb7e"}),l.window=new l("window",{fontCharacter:"\\eb7f"}),l.wordWrap=new l("word-wrap",{fontCharacter:"\\eb80"}),l.zoomIn=new l("zoom-in",{fontCharacter:"\\eb81"}),l.zoomOut=new l("zoom-out",{fontCharacter:"\\eb82"}),l.listFilter=new l("list-filter",{fontCharacter:"\\eb83"}),l.listFlat=new l("list-flat",{fontCharacter:"\\eb84"}),l.listSelection=new l("list-selection",{fontCharacter:"\\eb85"}),l.selection=new l("selection",{fontCharacter:"\\eb85"}),l.listTree=new l("list-tree",{fontCharacter:"\\eb86"}),l.debugBreakpointFunctionUnverified=new l("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),l.debugBreakpointFunction=new l("debug-breakpoint-function",{fontCharacter:"\\eb88"}),l.debugBreakpointFunctionDisabled=new l("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),l.debugStackframeActive=new l("debug-stackframe-active",{fontCharacter:"\\eb89"}),l.debugStackframeDot=new l("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),l.debugStackframe=new l("debug-stackframe",{fontCharacter:"\\eb8b"}),l.debugStackframeFocused=new l("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),l.debugBreakpointUnsupported=new l("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),l.symbolString=new l("symbol-string",{fontCharacter:"\\eb8d"}),l.debugReverseContinue=new l("debug-reverse-continue",{fontCharacter:"\\eb8e"}),l.debugStepBack=new l("debug-step-back",{fontCharacter:"\\eb8f"}),l.debugRestartFrame=new l("debug-restart-frame",{fontCharacter:"\\eb90"}),l.callIncoming=new l("call-incoming",{fontCharacter:"\\eb92"}),l.callOutgoing=new l("call-outgoing",{fontCharacter:"\\eb93"}),l.menu=new l("menu",{fontCharacter:"\\eb94"}),l.expandAll=new l("expand-all",{fontCharacter:"\\eb95"}),l.feedback=new l("feedback",{fontCharacter:"\\eb96"}),l.groupByRefType=new l("group-by-ref-type",{fontCharacter:"\\eb97"}),l.ungroupByRefType=new l("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),l.account=new l("account",{fontCharacter:"\\eb99"}),l.bellDot=new l("bell-dot",{fontCharacter:"\\eb9a"}),l.debugConsole=new l("debug-console",{fontCharacter:"\\eb9b"}),l.library=new l("library",{fontCharacter:"\\eb9c"}),l.output=new l("output",{fontCharacter:"\\eb9d"}),l.runAll=new l("run-all",{fontCharacter:"\\eb9e"}),l.syncIgnored=new l("sync-ignored",{fontCharacter:"\\eb9f"}),l.pinned=new l("pinned",{fontCharacter:"\\eba0"}),l.githubInverted=new l("github-inverted",{fontCharacter:"\\eba1"}),l.debugAlt=new l("debug-alt",{fontCharacter:"\\eb91"}),l.serverProcess=new l("server-process",{fontCharacter:"\\eba2"}),l.serverEnvironment=new l("server-environment",{fontCharacter:"\\eba3"}),l.pass=new l("pass",{fontCharacter:"\\eba4"}),l.stopCircle=new l("stop-circle",{fontCharacter:"\\eba5"}),l.playCircle=new l("play-circle",{fontCharacter:"\\eba6"}),l.record=new l("record",{fontCharacter:"\\eba7"}),l.debugAltSmall=new l("debug-alt-small",{fontCharacter:"\\eba8"}),l.vmConnect=new l("vm-connect",{fontCharacter:"\\eba9"}),l.cloud=new l("cloud",{fontCharacter:"\\ebaa"}),l.merge=new l("merge",{fontCharacter:"\\ebab"}),l.exportIcon=new l("export",{fontCharacter:"\\ebac"}),l.graphLeft=new l("graph-left",{fontCharacter:"\\ebad"}),l.magnet=new l("magnet",{fontCharacter:"\\ebae"}),l.notebook=new l("notebook",{fontCharacter:"\\ebaf"}),l.redo=new l("redo",{fontCharacter:"\\ebb0"}),l.checkAll=new l("check-all",{fontCharacter:"\\ebb1"}),l.pinnedDirty=new l("pinned-dirty",{fontCharacter:"\\ebb2"}),l.passFilled=new l("pass-filled",{fontCharacter:"\\ebb3"}),l.circleLargeFilled=new l("circle-large-filled",{fontCharacter:"\\ebb4"}),l.circleLargeOutline=new l("circle-large-outline",{fontCharacter:"\\ebb5"}),l.combine=new l("combine",{fontCharacter:"\\ebb6"}),l.gather=new l("gather",{fontCharacter:"\\ebb6"}),l.table=new l("table",{fontCharacter:"\\ebb7"}),l.variableGroup=new l("variable-group",{fontCharacter:"\\ebb8"}),l.typeHierarchy=new l("type-hierarchy",{fontCharacter:"\\ebb9"}),l.typeHierarchySub=new l("type-hierarchy-sub",{fontCharacter:"\\ebba"}),l.typeHierarchySuper=new l("type-hierarchy-super",{fontCharacter:"\\ebbb"}),l.gitPullRequestCreate=new l("git-pull-request-create",{fontCharacter:"\\ebbc"}),l.runAbove=new l("run-above",{fontCharacter:"\\ebbd"}),l.runBelow=new l("run-below",{fontCharacter:"\\ebbe"}),l.notebookTemplate=new l("notebook-template",{fontCharacter:"\\ebbf"}),l.debugRerun=new l("debug-rerun",{fontCharacter:"\\ebc0"}),l.workspaceTrusted=new l("workspace-trusted",{fontCharacter:"\\ebc1"}),l.workspaceUntrusted=new l("workspace-untrusted",{fontCharacter:"\\ebc2"}),l.workspaceUnspecified=new l("workspace-unspecified",{fontCharacter:"\\ebc3"}),l.terminalCmd=new l("terminal-cmd",{fontCharacter:"\\ebc4"}),l.terminalDebian=new l("terminal-debian",{fontCharacter:"\\ebc5"}),l.terminalLinux=new l("terminal-linux",{fontCharacter:"\\ebc6"}),l.terminalPowershell=new l("terminal-powershell",{fontCharacter:"\\ebc7"}),l.terminalTmux=new l("terminal-tmux",{fontCharacter:"\\ebc8"}),l.terminalUbuntu=new l("terminal-ubuntu",{fontCharacter:"\\ebc9"}),l.terminalBash=new l("terminal-bash",{fontCharacter:"\\ebca"}),l.arrowSwap=new l("arrow-swap",{fontCharacter:"\\ebcb"}),l.copy=new l("copy",{fontCharacter:"\\ebcc"}),l.personAdd=new l("person-add",{fontCharacter:"\\ebcd"}),l.filterFilled=new l("filter-filled",{fontCharacter:"\\ebce"}),l.wand=new l("wand",{fontCharacter:"\\ebcf"}),l.debugLineByLine=new l("debug-line-by-line",{fontCharacter:"\\ebd0"}),l.inspect=new l("inspect",{fontCharacter:"\\ebd1"}),l.layers=new l("layers",{fontCharacter:"\\ebd2"}),l.layersDot=new l("layers-dot",{fontCharacter:"\\ebd3"}),l.layersActive=new l("layers-active",{fontCharacter:"\\ebd4"}),l.compass=new l("compass",{fontCharacter:"\\ebd5"}),l.compassDot=new l("compass-dot",{fontCharacter:"\\ebd6"}),l.compassActive=new l("compass-active",{fontCharacter:"\\ebd7"}),l.azure=new l("azure",{fontCharacter:"\\ebd8"}),l.issueDraft=new l("issue-draft",{fontCharacter:"\\ebd9"}),l.gitPullRequestClosed=new l("git-pull-request-closed",{fontCharacter:"\\ebda"}),l.gitPullRequestDraft=new l("git-pull-request-draft",{fontCharacter:"\\ebdb"}),l.debugAll=new l("debug-all",{fontCharacter:"\\ebdc"}),l.debugCoverage=new l("debug-coverage",{fontCharacter:"\\ebdd"}),l.runErrors=new l("run-errors",{fontCharacter:"\\ebde"}),l.folderLibrary=new l("folder-library",{fontCharacter:"\\ebdf"}),l.debugContinueSmall=new l("debug-continue-small",{fontCharacter:"\\ebe0"}),l.beakerStop=new l("beaker-stop",{fontCharacter:"\\ebe1"}),l.graphLine=new l("graph-line",{fontCharacter:"\\ebe2"}),l.graphScatter=new l("graph-scatter",{fontCharacter:"\\ebe3"}),l.pieChart=new l("pie-chart",{fontCharacter:"\\ebe4"}),l.bracket=new l("bracket",l.json.definition),l.bracketDot=new l("bracket-dot",{fontCharacter:"\\ebe5"}),l.bracketError=new l("bracket-error",{fontCharacter:"\\ebe6"}),l.lockSmall=new l("lock-small",{fontCharacter:"\\ebe7"}),l.azureDevops=new l("azure-devops",{fontCharacter:"\\ebe8"}),l.verifiedFilled=new l("verified-filled",{fontCharacter:"\\ebe9"})}(R||(R={}))},79881:function(tn,Mt,E){"use strict";E.d(Mt,{B8:function(){return N},Cp:function(){return Re},F0:function(){return T},L6:function(){return d},VV:function(){return R},b1:function(){return l},dL:function(){return ae},ri:function(){return K}});class le{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(m){setTimeout(()=>{throw m.stack?new Error(m.message+`
|
|
|
|
|
|
`+m.stack):m},0)}}emit(m){this.listeners.forEach(b=>{b(m)})}onUnexpectedError(m){this.unexpectedErrorHandler(m),this.emit(m)}onUnexpectedExternalError(m){this.unexpectedErrorHandler(m)}}const Fe=new le;function ae(v){R(v)||Fe.onUnexpectedError(v)}function Re(v){R(v)||Fe.onUnexpectedExternalError(v)}function K(v){if(v instanceof Error){let{name:m,message:b}=v;const I=v.stacktrace||v.stack;return{$isError:!0,name:m,message:b,stack:I}}return v}const g="Canceled";function R(v){return v instanceof Error&&v.name===g&&v.message===g}function T(){const v=new Error(g);return v.name=v.message,v}function l(v){return v?new Error(`Illegal argument: ${v}`):new Error("Illegal argument")}function d(v){return v?new Error(`Illegal state: ${v}`):new Error("Illegal state")}class N extends Error{constructor(m){super("NotSupported"),m&&(this.message=m)}}},4348:function(tn,Mt,E){"use strict";E.d(Mt,{D0:function(){return N},E7:function(){return v},K3:function(){return d},Q5:function(){return l},ZD:function(){return m},ju:function(){return K}});var le=E(79881),Fe=E(69323),ae=E(34502),Re=E(95830),K;(function(b){b.None=()=>Fe.JT.None;function I(Ee){return(ue,he=null,ve)=>{let F=!1,U;return U=Ee(ee=>{if(!F)return U?U.dispose():F=!0,ue.call(he,ee)},null,ve),F&&U.dispose(),U}}b.once=I;function L(Ee,ue){return H((he,ve=null,F)=>Ee(U=>he.call(ve,ue(U)),null,F))}b.map=L;function z(Ee,ue){return H((he,ve=null,F)=>Ee(U=>{ue(U),he.call(ve,U)},null,F))}b.forEach=z;function P(Ee,ue){return H((he,ve=null,F)=>Ee(U=>ue(U)&&he.call(ve,U),null,F))}b.filter=P;function $(Ee){return Ee}b.signal=$;function J(...Ee){return(ue,he=null,ve)=>(0,Fe.F8)(...Ee.map(F=>F(U=>ue.call(he,U),null,ve)))}b.any=J;function te(Ee,ue,he){let ve=he;return L(Ee,F=>(ve=ue(ve,F),ve))}b.reduce=te;function H(Ee){let ue;const he=new l({onFirstListenerAdd(){ue=Ee(he.fire,he)},onLastListenerRemove(){ue.dispose()}});return he.event}function G(Ee,ue,he=100,ve=!1,F){let U,ee,de,Xe=0;const tt=new l({leakWarningThreshold:F,onFirstListenerAdd(){U=Ee(nt=>{Xe++,ee=ue(ee,nt),ve&&!de&&(tt.fire(ee),ee=void 0),clearTimeout(de),de=setTimeout(()=>{const _t=ee;ee=void 0,de=void 0,(!ve||Xe>1)&&tt.fire(_t),Xe=0},he)})},onLastListenerRemove(){U.dispose()}});return tt.event}b.debounce=G;function ce(Ee,ue=(he,ve)=>he===ve){let he=!0,ve;return P(Ee,F=>{const U=he||!ue(F,ve);return he=!1,ve=F,U})}b.latch=ce;function q(Ee,ue){return[b.filter(Ee,ue),b.filter(Ee,he=>!ue(he))]}b.split=q;function ye(Ee,ue=!1,he=[]){let ve=he.slice(),F=Ee(de=>{ve?ve.push(de):ee.fire(de)});const U=()=>{ve&&ve.forEach(de=>ee.fire(de)),ve=null},ee=new l({onFirstListenerAdd(){F||(F=Ee(de=>ee.fire(de)))},onFirstListenerDidAdd(){ve&&(ue?setTimeout(U):U())},onLastListenerRemove(){F&&F.dispose(),F=null}});return ee.event}b.buffer=ye;class _e{constructor(ue){this.event=ue}map(ue){return new _e(L(this.event,ue))}forEach(ue){return new _e(z(this.event,ue))}filter(ue){return new _e(P(this.event,ue))}reduce(ue,he){return new _e(te(this.event,ue,he))}latch(){return new _e(ce(this.event))}debounce(ue,he=100,ve=!1,F){return new _e(G(this.event,ue,he,ve,F))}on(ue,he,ve){return this.event(ue,he,ve)}once(ue,he,ve){return I(this.event)(ue,he,ve)}}function Le(Ee){return new _e(Ee)}b.chain=Le;function se(Ee,ue,he=ve=>ve){const ve=(...de)=>ee.fire(he(...de)),F=()=>Ee.on(ue,ve),U=()=>Ee.removeListener(ue,ve),ee=new l({onFirstListenerAdd:F,onLastListenerRemove:U});return ee.event}b.fromNodeEventEmitter=se;function be(Ee,ue,he=ve=>ve){const ve=(...de)=>ee.fire(he(...de)),F=()=>Ee.addEventListener(ue,ve),U=()=>Ee.removeEventListener(ue,ve),ee=new l({onFirstListenerAdd:F,onLastListenerRemove:U});return ee.event}b.fromDOMEventEmitter=be;function O(Ee){return new Promise(ue=>I(Ee)(ue))}b.toPromise=O})(K||(K={}));class g{constructor(I){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${I}_${g._idPool++}`}start(I){this._stopWatch=new Re.G(!0),this._listenerCount=I}stop(){if(this._stopWatch){const I=this._stopWatch.elapsed();this._elapsedOverall+=I,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${I.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}g._idPool=0;let R=-1;class T{constructor(I,L=Math.random().toString(18).slice(2,5)){this.customThreshold=I,this.name=L,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(I){let L=R;if(typeof this.customThreshold=="number"&&(L=this.customThreshold),L<=0||I<L)return;this._stacks||(this._stacks=new Map);const z=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),P=this._stacks.get(z)||0;if(this._stacks.set(z,P+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=L*.5;let $,J=0;for(const[te,H]of this._stacks)(!$||J<H)&&($=te,J=H);console.warn(`[${this.name}] potential listener LEAK detected, having ${I} listeners already. MOST frequent listener (${J}):`),console.warn($)}return()=>{const $=this._stacks.get(z)||0;this._stacks.set(z,$-1)}}}class l{constructor(I){var L;this._disposed=!1,this._options=I,this._leakageMon=R>0?new T(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((L=this._options)===null||L===void 0)&&L._profName?new g(this._options._profName):void 0}get event(){return this._event||(this._event=(I,L,z)=>{var P;this._listeners||(this._listeners=new ae.S);const $=this._listeners.isEmpty();$&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const J=this._listeners.push(L?[I,L]:I);$&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,I,L);const te=(P=this._leakageMon)===null||P===void 0?void 0:P.check(this._listeners.size),H=(0,Fe.OF)(()=>{te&&te(),this._disposed||(J(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return z instanceof Fe.SL?z.add(H):Array.isArray(z)&&z.push(H),H}),this._event}fire(I){var L,z;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ae.S);for(let P of this._listeners)this._deliveryQueue.push([P,I]);for((L=this._perfMon)===null||L===void 0||L.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[P,$]=this._deliveryQueue.shift();try{typeof P=="function"?P.call(void 0,$):P[0].call(P[1],$)}catch(J){(0,le.dL)(J)}}(z=this._perfMon)===null||z===void 0||z.stop()}}dispose(){var I,L,z,P,$;this._disposed||(this._disposed=!0,(I=this._listeners)===null||I===void 0||I.clear(),(L=this._deliveryQueue)===null||L===void 0||L.clear(),(P=(z=this._options)===null||z===void 0?void 0:z.onLastListenerRemove)===null||P===void 0||P.call(z),($=this._leakageMon)===null||$===void 0||$.dispose())}}class d extends l{constructor(I){super(I),this._isPaused=0,this._eventQueue=new ae.S,this._mergeFn=I==null?void 0:I.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const I=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(I))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(I){this._listeners&&(this._isPaused!==0?this._eventQueue.push(I):super.fire(I))}}class N extends d{constructor(I){var L;super(I),this._delay=(L=I.delay)!==null&&L!==void 0?L:100}fire(I){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(I)}}class v{constructor(){this.buffers=[]}wrapEvent(I){return(L,z,P)=>I($=>{const J=this.buffers[this.buffers.length-1];J?J.push(()=>L.call(z,$)):L.call(z,$)},void 0,P)}bufferEvents(I){const L=[];this.buffers.push(L);const z=I();return this.buffers.pop(),L.forEach(P=>P()),z}}class m{constructor(){this.listening=!1,this.inputEvent=K.None,this.inputEventListener=Fe.JT.None,this.emitter=new l({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(I){this.inputEvent=I,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=I(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(tn,Mt,E){"use strict";E.d(Mt,{I:function(){return le}});function le(Fe){const ae=this;let Re=!1,K;return function(){return Re||(Re=!0,K=Fe.apply(ae,arguments)),K}}},88226:function(tn,Mt,E){"use strict";E.d(Mt,{$:function(){return le}});var le;(function(Fe){function ae(J){return J&&typeof J=="object"&&typeof J[Symbol.iterator]=="function"}Fe.is=ae;const Re=Object.freeze([]);function K(){return Re}Fe.empty=K;function*g(J){yield J}Fe.single=g;function R(J){return J||Re}Fe.from=R;function T(J){return!J||J[Symbol.iterator]().next().done===!0}Fe.isEmpty=T;function l(J){return J[Symbol.iterator]().next().value}Fe.first=l;function d(J,te){for(const H of J)if(te(H))return!0;return!1}Fe.some=d;function N(J,te){for(const H of J)if(te(H))return H}Fe.find=N;function*v(J,te){for(const H of J)te(H)&&(yield H)}Fe.filter=v;function*m(J,te){let H=0;for(const G of J)yield te(G,H++)}Fe.map=m;function*b(...J){for(const te of J)for(const H of te)yield H}Fe.concat=b;function*I(J){for(const te of J)for(const H of te)yield H}Fe.concatNested=I;function L(J,te,H){let G=H;for(const ce of J)G=te(G,ce);return G}Fe.reduce=L;function*z(J,te,H=J.length){for(te<0&&(te+=J.length),H<0?H+=J.length:H>J.length&&(H=J.length);te<H;te++)yield J[te]}Fe.slice=z;function P(J,te=Number.POSITIVE_INFINITY){const H=[];if(te===0)return[H,J];const G=J[Symbol.iterator]();for(let ce=0;ce<te;ce++){const q=G.next();if(q.done)return[H,Fe.empty()];H.push(q.value)}return[H,{[Symbol.iterator](){return G}}]}Fe.consume=P;function $(J,te,H=(G,ce)=>G===ce){const G=J[Symbol.iterator](),ce=te[Symbol.iterator]();for(;;){const q=G.next(),ye=ce.next();if(q.done!==ye.done)return!1;if(q.done)return!0;if(!H(q.value,ye.value))return!1}}Fe.equals=$})(le||(le={}))},69323:function(tn,Mt,E){"use strict";E.d(Mt,{B9:function(){return m},F8:function(){return b},JT:function(){return z},Jz:function(){return $},OF:function(){return I},SL:function(){return L},Wf:function(){return v},XK:function(){return P},dk:function(){return d}});var le=E(17845),Fe=E(88226);const ae=!1;let Re=null;function K(J){Re=J}if(ae){const J="__is_disposable_tracked__";K(new class{trackDisposable(te){const H=new Error("Potentially leaked disposable").stack;setTimeout(()=>{te[J]||console.log(H)},3e3)}setParent(te,H){if(te&&te!==z.None)try{te[J]=!0}catch(G){}}markAsDisposed(te){if(te&&te!==z.None)try{te[J]=!0}catch(H){}}markAsSingleton(te){}})}function g(J){return Re==null||Re.trackDisposable(J),J}function R(J){Re==null||Re.markAsDisposed(J)}function T(J,te){Re==null||Re.setParent(J,te)}function l(J,te){if(Re)for(const H of J)Re.setParent(H,te)}function d(J){return Re==null||Re.markAsSingleton(J),J}class N extends Error{constructor(te){super(`Encountered errors while disposing of store. Errors: [${te.join(", ")}]`),this.errors=te}}function v(J){return typeof J.dispose=="function"&&J.dispose.length===0}function m(J){if(Fe.$.is(J)){let te=[];for(const H of J)if(H)try{H.dispose()}catch(G){te.push(G)}if(te.length===1)throw te[0];if(te.length>1)throw new N(te);return Array.isArray(J)?[]:J}else if(J)return J.dispose(),J}function b(...J){const te=I(()=>m(J));return l(J,te),te}function I(J){const te=g({dispose:(0,le.I)(()=>{R(te),J()})});return te}class L{constructor(){this._toDispose=new Set,this._isDisposed=!1,g(this)}dispose(){this._isDisposed||(R(this),this._isDisposed=!0,this.clear())}clear(){try{m(this._toDispose.values())}finally{this._toDispose.clear()}}add(te){if(!te)return te;if(te===this)throw new Error("Cannot register a disposable on itself!");return T(te,this),this._isDisposed?L.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(te),te}}L.DISABLE_DISPOSED_WARNING=!1;class z{constructor(){this._store=new L,g(this),T(this._store,this)}dispose(){R(this),this._store.dispose()}_register(te){if(te===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(te)}}z.None=Object.freeze({dispose(){}});class P{constructor(){this._isDisposed=!1,g(this)}get value(){return this._isDisposed?void 0:this._value}set value(te){var H;this._isDisposed||te===this._value||((H=this._value)===null||H===void 0||H.dispose(),te&&T(te,this),this._value=te)}clear(){this.value=void 0}dispose(){var te;this._isDisposed=!0,R(this),(te=this._value)===null||te===void 0||te.dispose(),this._value=void 0}clearAndLeak(){const te=this._value;return this._value=void 0,te&&T(te,null),te}}class ${constructor(te){this.object=te}dispose(){}}},34502:function(tn,Mt,E){"use strict";E.d(Mt,{S:function(){return Fe}});class le{constructor(Re){this.element=Re,this.next=le.Undefined,this.prev=le.Undefined}}le.Undefined=new le(void 0);class Fe{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let Re=this._first;for(;Re!==le.Undefined;){const K=Re.next;Re.prev=le.Undefined,Re.next=le.Undefined,Re=K}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(Re){return this._insert(Re,!1)}push(Re){return this._insert(Re,!0)}_insert(Re,K){const g=new le(Re);if(this._first===le.Undefined)this._first=g,this._last=g;else if(K){const T=this._last;this._last=g,g.prev=T,T.next=g}else{const T=this._first;this._first=g,g.next=T,T.prev=g}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(g))}}shift(){if(this._first!==le.Undefined){const Re=this._first.element;return this._remove(this._first),Re}}pop(){if(this._last!==le.Undefined){const Re=this._last.element;return this._remove(this._last),Re}}_remove(Re){if(Re.prev!==le.Undefined&&Re.next!==le.Undefined){const K=Re.prev;K.next=Re.next,Re.next.prev=K}else Re.prev===le.Undefined&&Re.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):Re.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):Re.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let Re=this._first;for(;Re!==le.Undefined;)yield Re.element,Re=Re.next}}},23345:function(tn,Mt,E){"use strict";E.d(Mt,{$L:function(){return G},ED:function(){return $},IJ:function(){return te},OS:function(){return _e},WE:function(){return q},dz:function(){return J},gn:function(){return ce},li:function(){return I},r:function(){return be},tY:function(){return H},xS:function(){return ye}});var le=E(97671),Fe;const ae="en";let Re=!1,K=!1,g=!1,R=!1,T=!1,l=!1,d=!1,N,v=null,m=null,b;const I=typeof self=="object"?self:typeof E.g=="object"?E.g:{};let L;typeof I.vscode!="undefined"&&typeof I.vscode.process!="undefined"?L=I.vscode.process:typeof le!="undefined"&&(L=le);const z=typeof((Fe=L==null?void 0:L.versions)===null||Fe===void 0?void 0:Fe.electron)=="string"&&L.type==="renderer";if(typeof navigator=="object"&&!z)b=navigator.userAgent,Re=b.indexOf("Windows")>=0,K=b.indexOf("Macintosh")>=0,d=(b.indexOf("Macintosh")>=0||b.indexOf("iPad")>=0||b.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,g=b.indexOf("Linux")>=0,l=!0,N=navigator.language,v=N;else if(typeof L=="object"){Re=L.platform==="win32",K=L.platform==="darwin",g=L.platform==="linux",R=g&&!!L.env.SNAP&&!!L.env.SNAP_REVISION,N=ae,v=ae;const O=L.env.VSCODE_NLS_CONFIG;if(O)try{const Ee=JSON.parse(O),ue=Ee.availableLanguages["*"];N=Ee.locale,v=ue||ae,m=Ee._translationsConfigFile}catch(Ee){}T=!0}else console.error("Unable to resolve platform.");let P=0;K?P=1:Re?P=3:g&&(P=2);const $=Re,J=K,te=g,H=T,G=l,ce=d,q=b,ye=function(){if(I.setImmediate)return I.setImmediate.bind(I);if(typeof I.postMessage=="function"&&!I.importScripts){let ue=[];I.addEventListener("message",ve=>{if(ve.data&&ve.data.vscodeSetImmediateId)for(let F=0,U=ue.length;F<U;F++){const ee=ue[F];if(ee.id===ve.data.vscodeSetImmediateId){ue.splice(F,1),ee.callback();return}}});let he=0;return ve=>{const F=++he;ue.push({id:F,callback:ve}),I.postMessage({vscodeSetImmediateId:F},"*")}}if(typeof(L==null?void 0:L.nextTick)=="function")return L.nextTick.bind(L);const Ee=Promise.resolve();return ue=>Ee.then(ue)}(),_e=K||d?2:Re?1:3;let Le=!0,se=!1;function be(){if(!se){se=!0;const O=new Uint8Array(2);O[0]=1,O[1]=2,Le=new Uint16Array(O.buffer)[0]===513}return Le}},95830:function(tn,Mt,E){"use strict";E.d(Mt,{G:function(){return ae}});var le=E(23345);const Fe=le.li.performance&&typeof le.li.performance.now=="function";class ae{constructor(K){this._highResolution=Fe&&K,this._startTime=this._now(),this._stopTime=-1}static create(K=!0){return new ae(K)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?le.li.performance.now():Date.now()}}},82983:function(tn,Mt,E){"use strict";E.d(Mt,{$i:function(){return Xe},C8:function(){return zt},GF:function(){return N},HO:function(){return he},IO:function(){return v},K7:function(){return Xt},Kw:function(){return yr},LC:function(){return I},Mh:function(){return ye},P1:function(){return _e},PJ:function(){return Ar},Qe:function(){return tt},R1:function(){return d},RP:function(){return ee},S6:function(){return vr},TT:function(){return $},Ut:function(){return F},V8:function(){return L},WU:function(){return ae},YK:function(){return se},YU:function(){return Re},ZG:function(){return Le},ZH:function(){return O},ab:function(){return nt},c1:function(){return Ze},df:function(){return G},ec:function(){return K},fi:function(){return Ce},fy:function(){return g},j3:function(){return R},j_:function(){return te},m5:function(){return le},mK:function(){return H},mr:function(){return m},oH:function(){return x},oL:function(){return T},ok:function(){return q},ow:function(){return z},qq:function(){return ce},qu:function(){return P},rL:function(){return be},uS:function(){return fr},un:function(){return l},uq:function(){return b},vH:function(){return ue},xe:function(){return _t},zY:function(){return J}});function le(W){return!W||typeof W!="string"?!0:W.trim().length===0}const Fe=/{(\d+)}/g;function ae(W,...Q){return Q.length===0?W:W.replace(Fe,function(re,Se){const Be=parseInt(Se,10);return isNaN(Be)||Be<0||Be>=Q.length?re:Q[Be]})}function Re(W){return W.replace(/[<>&]/g,function(Q){switch(Q){case"<":return"<";case">":return">";case"&":return"&";default:return Q}})}function K(W){return W.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function g(W,Q=" "){const re=R(W,Q);return T(re,Q)}function R(W,Q){if(!W||!Q)return W;const re=Q.length;if(re===0||W.length===0)return W;let Se=0;for(;W.indexOf(Q,Se)===Se;)Se=Se+re;return W.substring(Se)}function T(W,Q){if(!W||!Q)return W;const re=Q.length,Se=W.length;if(re===0||Se===0)return W;let Be=Se,Te=-1;for(;Te=W.lastIndexOf(Q,Be-1),!(Te===-1||Te+re!==Be);){if(Te===0)return"";Be=Te}return W.substring(0,Be)}function l(W){return W.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(W){return W.replace(/\*/g,"")}function N(W,Q,re={}){if(!W)throw new Error("Cannot create regex from empty string");Q||(W=K(W)),re.wholeWord&&(/\B/.test(W.charAt(0))||(W="\\b"+W),/\B/.test(W.charAt(W.length-1))||(W=W+"\\b"));let Se="";return re.global&&(Se+="g"),re.matchCase||(Se+="i"),re.multiline&&(Se+="m"),re.unicode&&(Se+="u"),new RegExp(W,Se)}function v(W){return W.source==="^"||W.source==="^$"||W.source==="$"||W.source==="^\\s*$"?!1:!!(W.exec("")&&W.lastIndex===0)}function m(W){return(W.global?"g":"")+(W.ignoreCase?"i":"")+(W.multiline?"m":"")+(W.unicode?"u":"")}function b(W){return W.split(/\r\n|\r|\n/)}function I(W){for(let Q=0,re=W.length;Q<re;Q++){const Se=W.charCodeAt(Q);if(Se!==32&&Se!==9)return Q}return-1}function L(W,Q=0,re=W.length){for(let Se=Q;Se<re;Se++){const Be=W.charCodeAt(Se);if(Be!==32&&Be!==9)return W.substring(Q,Se)}return W.substring(Q,re)}function z(W,Q=W.length-1){for(let re=Q;re>=0;re--){const Se=W.charCodeAt(re);if(Se!==32&&Se!==9)return re}return-1}function P(W,Q){return W<Q?-1:W>Q?1:0}function $(W,Q,re=0,Se=W.length,Be=0,Te=Q.length){for(;re<Se&&Be<Te;re++,Be++){let $e=W.charCodeAt(re),Je=Q.charCodeAt(Be);if($e<Je)return-1;if($e>Je)return 1}const Ge=Se-re,ut=Te-Be;return Ge<ut?-1:Ge>ut?1:0}function J(W,Q){return te(W,Q,0,W.length,0,Q.length)}function te(W,Q,re=0,Se=W.length,Be=0,Te=Q.length){for(;re<Se&&Be<Te;re++,Be++){let $e=W.charCodeAt(re),Je=Q.charCodeAt(Be);if($e===Je)continue;if($e>=128||Je>=128)return $(W.toLowerCase(),Q.toLowerCase(),re,Se,Be,Te);H($e)&&($e-=32),H(Je)&&(Je-=32);const At=$e-Je;if(At!==0)return At}const Ge=Se-re,ut=Te-Be;return Ge<ut?-1:Ge>ut?1:0}function H(W){return W>=97&&W<=122}function G(W){return W>=65&&W<=90}function ce(W,Q){return W.length===Q.length&&te(W,Q)===0}function q(W,Q){const re=Q.length;return Q.length>W.length?!1:te(W,Q,0,re)===0}function ye(W,Q){let re,Se=Math.min(W.length,Q.length);for(re=0;re<Se;re++)if(W.charCodeAt(re)!==Q.charCodeAt(re))return re;return Se}function _e(W,Q){let re,Se=Math.min(W.length,Q.length);const Be=W.length-1,Te=Q.length-1;for(re=0;re<Se;re++)if(W.charCodeAt(Be-re)!==Q.charCodeAt(Te-re))return re;return Se}function Le(W){return 55296<=W&&W<=56319}function se(W){return 56320<=W&&W<=57343}function be(W,Q){return(W-55296<<10)+(Q-56320)+65536}function O(W,Q,re){const Se=W.charCodeAt(re);if(Le(Se)&&re+1<Q){const Be=W.charCodeAt(re+1);if(se(Be))return be(Se,Be)}return Se}function Ee(W,Q){const re=W.charCodeAt(Q-1);if(se(re)&&Q>1){const Se=W.charCodeAt(Q-2);if(Le(Se))return be(Se,re)}return re}function ue(W,Q){const re=It.getInstance(),Se=Q,Be=W.length,Te=O(W,Be,Q);Q+=Te>=65536?2:1;let Ge=re.getGraphemeBreakType(Te);for(;Q<Be;){const ut=O(W,Be,Q),$e=re.getGraphemeBreakType(ut);if(Ce(Ge,$e))break;Q+=ut>=65536?2:1,Ge=$e}return Q-Se}function he(W,Q){const re=It.getInstance(),Se=Q,Be=Ee(W,Q);Q-=Be>=65536?2:1;let Te=re.getGraphemeBreakType(Be);for(;Q>0;){const Ge=Ee(W,Q),ut=re.getGraphemeBreakType(Ge);if(Ce(ut,Te))break;Q-=Ge>=65536?2:1,Te=ut}return Se-Q}const ve=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function F(W){return ve.test(W)}const U=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function ee(W){return U.test(W)}const de=/^[\t\n\r\x20-\x7E]*$/;function Xe(W){return de.test(W)}const tt=/[\u2028\u2029]/;function nt(W){return tt.test(W)}function _t(W){for(let Q=0,re=W.length;Q<re;Q++)if(Xt(W.charCodeAt(Q)))return!0;return!1}function Xt(W){return W=+W,W>=11904&&W<=55215||W>=63744&&W<=64255||W>=65281&&W<=65374}function zt(W){return W>=127462&&W<=127487||W===8986||W===8987||W===9200||W===9203||W>=9728&&W<=10175||W===11088||W===11093||W>=127744&&W<=128591||W>=128640&&W<=128764||W>=128992&&W<=129003||W>=129280&&W<=129535||W>=129648&&W<=129750}const Ze="\uFEFF";function fr(W){return!!(W&&W.length>0&&W.charCodeAt(0)===65279)}function yr(W,Q=!1){return W?(Q&&(W=W.replace(/\\./g,"")),W.toLowerCase()!==W):!1}function Ar(W){return W=W%(2*26),W<26?String.fromCharCode(97+W):String.fromCharCode(65+W-26)}function vr(W){return It.getInstance().getGraphemeBreakType(W)}function Ce(W,Q){return W===0?Q!==5&&Q!==7:W===2&&Q===3?!1:W===4||W===2||W===3||Q===4||Q===2||Q===3?!0:!(W===8&&(Q===8||Q===9||Q===11||Q===12)||(W===11||W===9)&&(Q===9||Q===10)||(W===12||W===10)&&Q===10||Q===5||Q===13||Q===7||W===1||W===13&&Q===14||W===6&&Q===6)}class It{constructor(){this._data=Z()}static getInstance(){return It._INSTANCE||(It._INSTANCE=new It),It._INSTANCE}getGraphemeBreakType(Q){if(Q<32)return Q===10?3:Q===13?2:4;if(Q<127)return 0;const re=this._data,Se=re.length/3;let Be=1;for(;Be<=Se;)if(Q<re[3*Be])Be=2*Be;else if(Q>re[3*Be+1])Be=2*Be+1;else return re[3*Be+2];return 0}}It._INSTANCE=null;function Z(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function x(W,Q){if(W===0)return 0;const re=y(W,Q);if(re!==void 0)return re;const Se=Ee(Q,W);return W-=k(Se),W}function y(W,Q){let re=Ee(Q,W);for(W-=k(re);fe(re)||re===65039||re===8419;){if(W===0)return;re=Ee(Q,W),W-=k(re)}if(zt(re)){if(W>=0){const Se=Ee(Q,W);Se===8205&&(W-=k(Se))}return W}}function k(W){return W>=65536?2:1}function fe(W){return 127995<=W&&W<=127999}},72999:function(tn,Mt,E){"use strict";E.d(Mt,{$E:function(){return I},$K:function(){return R},D8:function(){return v},HD:function(){return Fe},IU:function(){return L},Jp:function(){return T},Kn:function(){return ae},cW:function(){return d},f6:function(){return z},hj:function(){return Re},jn:function(){return K},kJ:function(){return le},mf:function(){return N},o8:function(){return g},p_:function(){return l},vE:function(){return P}});function le($){return Array.isArray($)}function Fe($){return typeof $=="string"}function ae($){return typeof $=="object"&&$!==null&&!Array.isArray($)&&!($ instanceof RegExp)&&!($ instanceof Date)}function Re($){return typeof $=="number"&&!isNaN($)}function K($){return $===!0||$===!1}function g($){return typeof $=="undefined"}function R($){return!T($)}function T($){return g($)||$===null}function l($,J){if(!$)throw new Error(J?`Unexpected type, expected '${J}'`:"Unexpected type")}function d($){if(T($))throw new Error("Assertion Failed: argument is undefined or null");return $}function N($){return typeof $=="function"}function v($,J){const te=Math.min($.length,J.length);for(let H=0;H<te;H++)m($[H],J[H])}function m($,J){if(Fe(J)){if(typeof $!==J)throw new Error(`argument does not match constraint: typeof ${J}`)}else if(N(J)){try{if($ instanceof J)return}catch(te){}if(!T($)&&$.constructor===J||J.length===1&&J.call(void 0,$)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function b($){let J=[],te=Object.getPrototypeOf($);for(;Object.prototype!==te;)J=J.concat(Object.getOwnPropertyNames(te)),te=Object.getPrototypeOf(te);return J}function I($){const J=[];for(const te of b($))typeof $[te]=="function"&&J.push(te);return J}function L($,J){const te=G=>function(){const ce=Array.prototype.slice.call(arguments,0);return J(G,ce)};let H={};for(const G of $)H[G]=te(G);return H}function z($){return $===null?void 0:$}function P($,J="Unreachable"){throw new Error(J)}},13268:function(tn,Mt,E){"use strict";E.d(Mt,{N:function(){return Fe}});function le(ae,Re){let K;return Re.length===0?K=ae:K=ae.replace(/\{(\d+)\}/g,function(g,R){const T=R[0];return typeof Re[T]!="undefined"?Re[T]:g}),K}function Fe(ae,Re,...K){return le(Re,K)}},96236:function(tn,Mt,E){"use strict";E.d(Mt,{BH:function(){return L},NZ:function(){return z},U8:function(){return P},co:function(){return I},eH:function(){return b},vr:function(){return m}});var le=E(75918),Fe=E(52615),ae=E(4348),Re=E(88226),K=E(69323),g=E(34502),R=E(35884),T=E(90689),l=E(16925),d=E(49055),N=function($,J,te,H){var G=arguments.length,ce=G<3?J:H===null?H=Object.getOwnPropertyDescriptor(J,te):H,q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ce=Reflect.decorate($,J,te,H);else for(var ye=$.length-1;ye>=0;ye--)(q=$[ye])&&(ce=(G<3?q(ce):G>3?q(J,te,ce):q(J,te))||ce);return G>3&&ce&&Object.defineProperty(J,te,ce),ce},v=function($,J){return function(te,H){J(te,H,$)}};function m($){return $.command!==void 0}class b{constructor(J){this.id=b._idPool++,this._debugName=J}}b._idPool=0,b.CommandPalette=new b("CommandPalette"),b.EditorContext=new b("EditorContext"),b.SimpleEditorContext=new b("SimpleEditorContext"),b.EditorContextCopy=new b("EditorContextCopy"),b.EditorContextPeek=new b("EditorContextPeek"),b.MenubarEditMenu=new b("MenubarEditMenu"),b.MenubarCopy=new b("MenubarCopy"),b.MenubarGoMenu=new b("MenubarGoMenu"),b.MenubarSelectionMenu=new b("MenubarSelectionMenu"),b.InlineCompletionsActions=new b("InlineCompletionsActions");const I=(0,l.yh)("menuService"),L=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ae.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:$=>$===b.CommandPalette}}addCommand($){return this.addCommands(Re.$.single($))}addCommands($){for(const J of $)this._commands.set(J.id,J);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,K.OF)(()=>{let J=!1;for(const te of $)J=this._commands.delete(te.id)||J;J&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand($){return this._commands.get($)}getCommands(){const $=new Map;return this._commands.forEach((J,te)=>$.set(te,J)),$}appendMenuItem($,J){return this.appendMenuItems(Re.$.single({id:$,item:J}))}appendMenuItems($){const J=new Set,te=new g.S;for(const{id:H,item:G}of $){let ce=this._menuItems.get(H);ce||(ce=new g.S,this._menuItems.set(H,ce)),te.push(ce.push(G)),J.add(H)}return this._onDidChangeMenu.fire(J),(0,K.OF)(()=>{if(te.size>0){for(let H of te)H();this._onDidChangeMenu.fire(J),te.clear()}})}getMenuItems($){let J;return this._menuItems.has($)?J=[...this._menuItems.get($)]:J=[],$===b.CommandPalette&&this._appendImplicitItems(J),J}_appendImplicitItems($){const J=new Set;for(const te of $)m(te)&&(J.add(te.command.id),te.alt&&J.add(te.alt.id));this._commands.forEach((te,H)=>{J.has(H)||$.push({command:te})})}};class z extends le.wY{constructor(J,te,H,G){super(`submenuitem.${J.submenu.id}`,typeof J.title=="string"?J.title:J.title.value,[],"submenu"),this.item=J,this._menuService=te,this._contextKeyService=H,this._options=G}get actions(){const J=[],te=this._menuService.createMenu(this.item.submenu,this._contextKeyService),H=te.getActions(this._options);te.dispose();for(const[,G]of H)G.length>0&&(J.push(...G),J.push(new le.Z0));return J.length&&J.pop(),J}}let P=class ZA{constructor(J,te,H,G,ce){var q,ye;if(this._commandService=ce,this.id=J.id,this.label=H!=null&&H.renderShortTitle&&J.shortTitle?typeof J.shortTitle=="string"?J.shortTitle:J.shortTitle.value:typeof J.title=="string"?J.title:J.title.value,this.tooltip=(ye=typeof J.tooltip=="string"?J.tooltip:(q=J.tooltip)===null||q===void 0?void 0:q.value)!==null&&ye!==void 0?ye:"",this.enabled=!J.precondition||G.contextMatchesRules(J.precondition),this.checked=void 0,J.toggled){const _e=J.toggled.condition?J.toggled:{condition:J.toggled};this.checked=G.contextMatchesRules(_e.condition),this.checked&&_e.tooltip&&(this.tooltip=typeof _e.tooltip=="string"?_e.tooltip:_e.tooltip.value),_e.title&&(this.label=typeof _e.title=="string"?_e.title:_e.title.value)}this.item=J,this.alt=te?new ZA(te,void 0,H,G,ce):void 0,this._options=H,d.kS.isThemeIcon(J.icon)&&(this.class=Fe.dT.asClassName(J.icon))}dispose(){}run(...J){var te,H;let G=[];return!((te=this._options)===null||te===void 0)&&te.arg&&(G=[...G,this._options.arg]),!((H=this._options)===null||H===void 0)&&H.shouldForwardArgs&&(G=[...G,...J]),this._commandService.executeCommand(this.id,...G)}};P=N([v(3,T.i6),v(4,R.H)],P)},35884:function(tn,Mt,E){"use strict";E.d(Mt,{H:function(){return R},P:function(){return T}});var le=E(4348),Fe=E(88226),ae=E(69323),Re=E(34502),K=E(72999),g=E(16925);const R=(0,g.yh)("commandService"),T=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new le.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(l,d){if(!l)throw new Error("invalid command");if(typeof l=="string"){if(!d)throw new Error("invalid command");return this.registerCommand({id:l,handler:d})}if(l.description){const I=[];for(let z of l.description.args)I.push(z.constraint);const L=l.handler;l.handler=function(z,...P){return(0,K.D8)(P,I),L(z,...P)}}const{id:N}=l;let v=this._commands.get(N);v||(v=new Re.S,this._commands.set(N,v));let m=v.unshift(l),b=(0,ae.OF)(()=>{m();const I=this._commands.get(N);I!=null&&I.isEmpty()&&this._commands.delete(N)});return this._onDidRegisterCommand.fire(N),b}registerCommandAlias(l,d){return T.registerCommand(l,(N,...v)=>N.get(R).executeCommand(d,...v))}getCommand(l){const d=this._commands.get(l);if(!(!d||d.isEmpty()))return Fe.$.first(d)}getCommands(){const l=new Map;for(const d of this._commands.keys()){const N=this.getCommand(d);N&&l.set(d,N)}return l}};T.registerCommand("noop",()=>{})},90689:function(tn,Mt,E){"use strict";E.d(Mt,{Ao:function(){return R},Eq:function(){return be},Fb:function(){return T},K8:function(){return ue},i6:function(){return se},uy:function(){return Le}});var le=E(23345),Fe=E(82983),ae=E(16925);let Re=le.WE||"";const K=new Map;K.set("false",!1),K.set("true",!0),K.set("isMac",le.dz),K.set("isLinux",le.IJ),K.set("isWindows",le.ED),K.set("isWeb",le.$L),K.set("isMacNative",le.dz&&!le.$L),K.set("isEdge",Re.indexOf("Edg/")>=0),K.set("isFirefox",Re.indexOf("Firefox")>=0),K.set("isChrome",Re.indexOf("Chrome")>=0),K.set("isSafari",Re.indexOf("Safari")>=0);const g=Object.prototype.hasOwnProperty;class R{static has(F){return v.create(F)}static equals(F,U){return m.create(F,U)}static regex(F,U){return G.create(F,U)}static not(F){return z.create(F)}static and(...F){return ye.create(F,null)}static or(...F){return _e.create(F,null,!0)}static deserialize(F,U=!1){if(F)return this._deserializeOrExpression(F,U)}static _deserializeOrExpression(F,U){let ee=F.split("||");return _e.create(ee.map(de=>this._deserializeAndExpression(de,U)),null,!0)}static _deserializeAndExpression(F,U){let ee=F.split("&&");return ye.create(ee.map(de=>this._deserializeOne(de,U)),null)}static _deserializeOne(F,U){if(F=F.trim(),F.indexOf("!=")>=0){let ee=F.split("!=");return L.create(ee[0].trim(),this._deserializeValue(ee[1],U))}if(F.indexOf("==")>=0){let ee=F.split("==");return m.create(ee[0].trim(),this._deserializeValue(ee[1],U))}if(F.indexOf("=~")>=0){let ee=F.split("=~");return G.create(ee[0].trim(),this._deserializeRegexValue(ee[1],U))}if(F.indexOf(" in ")>=0){let ee=F.split(" in ");return b.create(ee[0].trim(),ee[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(F)){const ee=F.split(">=");return J.create(ee[0].trim(),ee[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(F)){const ee=F.split(">");return $.create(ee[0].trim(),ee[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(F)){const ee=F.split("<=");return H.create(ee[0].trim(),ee[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(F)){const ee=F.split("<");return te.create(ee[0].trim(),ee[1].trim())}return/^\!\s*/.test(F)?z.create(F.substr(1).trim()):v.create(F)}static _deserializeValue(F,U){if(F=F.trim(),F==="true")return!0;if(F==="false")return!1;let ee=/^'([^']*)'$/.exec(F);return ee?ee[1].trim():F}static _deserializeRegexValue(F,U){if((0,Fe.m5)(F)){if(U)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let ee=F.indexOf("/"),de=F.lastIndexOf("/");if(ee===de||ee<0){if(U)throw new Error(`bad regexp-value '${F}', missing /-enclosure`);return console.warn(`bad regexp-value '${F}', missing /-enclosure`),null}let Xe=F.slice(ee+1,de),tt=F[de+1]==="i"?"i":"";try{return new RegExp(Xe,tt)}catch(nt){if(U)throw new Error(`bad regexp-value '${F}', parse error: ${nt}`);return console.warn(`bad regexp-value '${F}', parse error: ${nt}`),null}}}function T(ve,F){const U=ve?ve.substituteConstants():void 0,ee=F?F.substituteConstants():void 0;return!U&&!ee?!0:!U||!ee?!1:U.equals(ee)}function l(ve,F){return ve.cmp(F)}class d{constructor(){this.type=0}cmp(F){return this.type-F.type}equals(F){return F.type===this.type}substituteConstants(){return this}evaluate(F){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}d.INSTANCE=new d;class N{constructor(){this.type=1}cmp(F){return this.type-F.type}equals(F){return F.type===this.type}substituteConstants(){return this}evaluate(F){return!0}serialize(){return"true"}keys(){return[]}negate(){return d.INSTANCE}}N.INSTANCE=new N;class v{constructor(F,U){this.key=F,this.negated=U,this.type=2}static create(F,U=null){const ee=K.get(F);return typeof ee=="boolean"?ee?N.INSTANCE:d.INSTANCE:new v(F,U)}cmp(F){return F.type!==this.type?this.type-F.type:O(this.key,F.key)}equals(F){return F.type===this.type?this.key===F.key:!1}substituteConstants(){const F=K.get(this.key);return typeof F=="boolean"?F?N.INSTANCE:d.INSTANCE:this}evaluate(F){return!!F.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this)),this.negated}}class m{constructor(F,U,ee){this.key=F,this.value=U,this.negated=ee,this.type=4}static create(F,U,ee=null){if(typeof U=="boolean")return U?v.create(F,ee):z.create(F,ee);const de=K.get(F);return typeof de=="boolean"?U===(de?"true":"false")?N.INSTANCE:d.INSTANCE:new m(F,U,ee)}cmp(F){return F.type!==this.type?this.type-F.type:Ee(this.key,this.value,F.key,F.value)}equals(F){return F.type===this.type?this.key===F.key&&this.value===F.value:!1}substituteConstants(){const F=K.get(this.key);if(typeof F=="boolean"){const U=F?"true":"false";return this.value===U?N.INSTANCE:d.INSTANCE}return this}evaluate(F){return F.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=L.create(this.key,this.value,this)),this.negated}}class b{constructor(F,U){this.key=F,this.valueKey=U,this.type=10,this.negated=null}static create(F,U){return new b(F,U)}cmp(F){return F.type!==this.type?this.type-F.type:Ee(this.key,this.valueKey,F.key,F.valueKey)}equals(F){return F.type===this.type?this.key===F.key&&this.valueKey===F.valueKey:!1}substituteConstants(){return this}evaluate(F){const U=F.getValue(this.valueKey),ee=F.getValue(this.key);return Array.isArray(U)?U.indexOf(ee)>=0:typeof ee=="string"&&typeof U=="object"&&U!==null?g.call(U,ee):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=I.create(this)),this.negated}}class I{constructor(F){this._actual=F,this.type=11}static create(F){return new I(F)}cmp(F){return F.type!==this.type?this.type-F.type:this._actual.cmp(F._actual)}equals(F){return F.type===this.type?this._actual.equals(F._actual):!1}substituteConstants(){return this}evaluate(F){return!this._actual.evaluate(F)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class L{constructor(F,U,ee){this.key=F,this.value=U,this.negated=ee,this.type=5}static create(F,U,ee=null){if(typeof U=="boolean")return U?z.create(F,ee):v.create(F,ee);const de=K.get(F);return typeof de=="boolean"?U===(de?"true":"false")?d.INSTANCE:N.INSTANCE:new L(F,U,ee)}cmp(F){return F.type!==this.type?this.type-F.type:Ee(this.key,this.value,F.key,F.value)}equals(F){return F.type===this.type?this.key===F.key&&this.value===F.value:!1}substituteConstants(){const F=K.get(this.key);if(typeof F=="boolean"){const U=F?"true":"false";return this.value===U?d.INSTANCE:N.INSTANCE}return this}evaluate(F){return F.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this.value,this)),this.negated}}class z{constructor(F,U){this.key=F,this.negated=U,this.type=3}static create(F,U=null){const ee=K.get(F);return typeof ee=="boolean"?ee?d.INSTANCE:N.INSTANCE:new z(F,U)}cmp(F){return F.type!==this.type?this.type-F.type:O(this.key,F.key)}equals(F){return F.type===this.type?this.key===F.key:!1}substituteConstants(){const F=K.get(this.key);return typeof F=="boolean"?F?d.INSTANCE:N.INSTANCE:this}evaluate(F){return!F.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this)),this.negated}}function P(ve,F){if(typeof ve=="string"){const U=parseFloat(ve);isNaN(U)||(ve=U)}return typeof ve=="string"||typeof ve=="number"?F(ve):d.INSTANCE}class ${constructor(F,U,ee){this.key=F,this.value=U,this.negated=ee,this.type=12}static create(F,U,ee=null){return P(U,de=>new $(F,de,ee))}cmp(F){return F.type!==this.type?this.type-F.type:Ee(this.key,this.value,F.key,F.value)}equals(F){return F.type===this.type?this.key===F.key&&this.value===F.value:!1}substituteConstants(){return this}evaluate(F){return typeof this.value=="string"?!1:parseFloat(F.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class J{constructor(F,U,ee){this.key=F,this.value=U,this.negated=ee,this.type=13}static create(F,U,ee=null){return P(U,de=>new J(F,de,ee))}cmp(F){return F.type!==this.type?this.type-F.type:Ee(this.key,this.value,F.key,F.value)}equals(F){return F.type===this.type?this.key===F.key&&this.value===F.value:!1}substituteConstants(){return this}evaluate(F){return typeof this.value=="string"?!1:parseFloat(F.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=te.create(this.key,this.value,this)),this.negated}}class te{constructor(F,U,ee){this.key=F,this.value=U,this.negated=ee,this.type=14}static create(F,U,ee=null){return P(U,de=>new te(F,de,ee))}cmp(F){return F.type!==this.type?this.type-F.type:Ee(this.key,this.value,F.key,F.value)}equals(F){return F.type===this.type?this.key===F.key&&this.value===F.value:!1}substituteConstants(){return this}evaluate(F){return typeof this.value=="string"?!1:parseFloat(F.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=J.create(this.key,this.value,this)),this.negated}}class H{constructor(F,U,ee){this.key=F,this.value=U,this.negated=ee,this.type=15}static create(F,U,ee=null){return P(U,de=>new H(F,de,ee))}cmp(F){return F.type!==this.type?this.type-F.type:Ee(this.key,this.value,F.key,F.value)}equals(F){return F.type===this.type?this.key===F.key&&this.value===F.value:!1}substituteConstants(){return this}evaluate(F){return typeof this.value=="string"?!1:parseFloat(F.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this.key,this.value,this)),this.negated}}class G{constructor(F,U){this.key=F,this.regexp=U,this.type=7,this.negated=null}static create(F,U){return new G(F,U)}cmp(F){if(F.type!==this.type)return this.type-F.type;if(this.key<F.key)return-1;if(this.key>F.key)return 1;const U=this.regexp?this.regexp.source:"",ee=F.regexp?F.regexp.source:"";return U<ee?-1:U>ee?1:0}equals(F){if(F.type===this.type){const U=this.regexp?this.regexp.source:"",ee=F.regexp?F.regexp.source:"";return this.key===F.key&&U===ee}return!1}substituteConstants(){return this}evaluate(F){let U=F.getValue(this.key);return this.regexp?this.regexp.test(U):!1}serialize(){const F=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${F}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ce.create(this)),this.negated}}class ce{constructor(F){this._actual=F,this.type=8}static create(F){return new ce(F)}cmp(F){return F.type!==this.type?this.type-F.type:this._actual.cmp(F._actual)}equals(F){return F.type===this.type?this._actual.equals(F._actual):!1}substituteConstants(){return this}evaluate(F){return!this._actual.evaluate(F)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function q(ve){let F=null;for(let U=0,ee=ve.length;U<ee;U++){const de=ve[U].substituteConstants();if(ve[U]!==de&&F===null){F=[];for(let Xe=0;Xe<U;Xe++)F[Xe]=ve[Xe]}F!==null&&(F[U]=de)}return F===null?ve:F}class ye{constructor(F,U){this.expr=F,this.negated=U,this.type=6}static create(F,U){return ye._normalizeArr(F,U)}cmp(F){if(F.type!==this.type)return this.type-F.type;if(this.expr.length<F.expr.length)return-1;if(this.expr.length>F.expr.length)return 1;for(let U=0,ee=this.expr.length;U<ee;U++){const de=l(this.expr[U],F.expr[U]);if(de!==0)return de}return 0}equals(F){if(F.type===this.type){if(this.expr.length!==F.expr.length)return!1;for(let U=0,ee=this.expr.length;U<ee;U++)if(!this.expr[U].equals(F.expr[U]))return!1;return!0}return!1}substituteConstants(){const F=q(this.expr);return F===this.expr?this:ye.create(F,this.negated)}evaluate(F){for(let U=0,ee=this.expr.length;U<ee;U++)if(!this.expr[U].evaluate(F))return!1;return!0}static _normalizeArr(F,U){const ee=[];let de=!1;for(const Xe of F)if(Xe){if(Xe.type===1){de=!0;continue}if(Xe.type===0)return d.INSTANCE;if(Xe.type===6){ee.push(...Xe.expr);continue}ee.push(Xe)}if(ee.length===0&&de)return N.INSTANCE;if(ee.length!==0){if(ee.length===1)return ee[0];ee.sort(l);for(let Xe=1;Xe<ee.length;Xe++)ee[Xe-1].equals(ee[Xe])&&(ee.splice(Xe,1),Xe--);if(ee.length===1)return ee[0];for(;ee.length>1;){const Xe=ee[ee.length-1];if(Xe.type!==9)break;ee.pop();const tt=ee.pop(),nt=ee.length===0,_t=_e.create(Xe.expr.map(Xt=>ye.create([Xt,tt],null)),null,nt);_t&&(ee.push(_t),ee.sort(l))}return ee.length===1?ee[0]:new ye(ee,U)}}serialize(){return this.expr.map(F=>F.serialize()).join(" && ")}keys(){const F=[];for(let U of this.expr)F.push(...U.keys());return F}negate(){if(!this.negated){const F=[];for(let U of this.expr)F.push(U.negate());this.negated=_e.create(F,this,!0)}return this.negated}}class _e{constructor(F,U){this.expr=F,this.negated=U,this.type=9}static create(F,U,ee){return _e._normalizeArr(F,U,ee)}cmp(F){if(F.type!==this.type)return this.type-F.type;if(this.expr.length<F.expr.length)return-1;if(this.expr.length>F.expr.length)return 1;for(let U=0,ee=this.expr.length;U<ee;U++){const de=l(this.expr[U],F.expr[U]);if(de!==0)return de}return 0}equals(F){if(F.type===this.type){if(this.expr.length!==F.expr.length)return!1;for(let U=0,ee=this.expr.length;U<ee;U++)if(!this.expr[U].equals(F.expr[U]))return!1;return!0}return!1}substituteConstants(){const F=q(this.expr);return F===this.expr?this:_e.create(F,this.negated,!1)}evaluate(F){for(let U=0,ee=this.expr.length;U<ee;U++)if(this.expr[U].evaluate(F))return!0;return!1}static _normalizeArr(F,U,ee){let de=[],Xe=!1;if(F){for(let tt=0,nt=F.length;tt<nt;tt++){const _t=F[tt];if(_t){if(_t.type===0){Xe=!0;continue}if(_t.type===1)return N.INSTANCE;if(_t.type===9){de=de.concat(_t.expr);continue}de.push(_t)}}if(de.length===0&&Xe)return d.INSTANCE;de.sort(l)}if(de.length!==0){if(de.length===1)return de[0];for(let tt=1;tt<de.length;tt++)de[tt-1].equals(de[tt])&&(de.splice(tt,1),tt--);if(de.length===1)return de[0];if(ee){for(let tt=0;tt<de.length;tt++)for(let nt=tt+1;nt<de.length;nt++)ue(de[tt],de[nt])&&(de.splice(nt,1),nt--);if(de.length===1)return de[0]}return new _e(de,U)}}serialize(){return this.expr.map(F=>F.serialize()).join(" || ")}keys(){const F=[];for(let U of this.expr)F.push(...U.keys());return F}negate(){if(!this.negated){let F=[];for(let U of this.expr)F.push(U.negate());for(;F.length>1;){const U=F.shift(),ee=F.shift(),de=[];for(const tt of he(U))for(const nt of he(ee))de.push(ye.create([tt,nt],null));const Xe=F.length===0;F.unshift(_e.create(de,null,Xe))}this.negated=F[0]}return this.negated}}class Le extends v{constructor(F,U,ee){super(F,null),this._defaultValue=U,typeof ee=="object"?Le._info.push(Object.assign(Object.assign({},ee),{key:F})):ee!==!0&&Le._info.push({key:F,description:ee,type:U!=null?typeof U:void 0})}static all(){return Le._info.values()}bindTo(F){return F.createKey(this.key,this._defaultValue)}getValue(F){return F.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(F){return m.create(this.key,F)}}Le._info=[];const se=(0,ae.yh)("contextKeyService"),be="setContext";function O(ve,F){return ve<F?-1:ve>F?1:0}function Ee(ve,F,U,ee){return ve<U?-1:ve>U?1:F<ee?-1:F>ee?1:0}function ue(ve,F){if(F.type===6&&ve.type!==9&&ve.type!==6){for(const de of F.expr)if(ve.equals(de))return!0}const U=ve.negate(),ee=he(U).concat(he(F));ee.sort(l);for(let de=0;de<ee.length;de++){const tt=ee[de].negate();for(let nt=de+1;nt<ee.length;nt++){const _t=ee[nt];if(tt.equals(_t))return!0}}return!1}function he(ve){return ve.type===9?ve.expr:[ve]}},16925:function(tn,Mt,E){"use strict";E.d(Mt,{I8:function(){return le},TG:function(){return Fe},jt:function(){return K},yh:function(){return Re}});var le;(function(g){g.serviceIds=new Map,g.DI_TARGET="$di$target",g.DI_DEPENDENCIES="$di$dependencies";function R(T){return T[g.DI_DEPENDENCIES]||[]}g.getServiceDependencies=R})(le||(le={}));const Fe=Re("instantiationService");function ae(g,R,T,l){R[le.DI_TARGET]===R?R[le.DI_DEPENDENCIES].push({id:g,index:T,optional:l}):(R[le.DI_DEPENDENCIES]=[{id:g,index:T,optional:l}],R[le.DI_TARGET]=R)}function Re(g){if(le.serviceIds.has(g))return le.serviceIds.get(g);const R=function(T,l,d){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ae(R,T,d,!1)};return R.toString=()=>g,le.serviceIds.set(g,R),R}function K(g){return function(R,T,l){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ae(g,R,l,!0)}}},44650:function(tn,Mt,E){"use strict";E.d(Mt,{B:function(){return Re}});var le=E(76068),Fe=E(72999);class ae{constructor(){this.data=new Map}add(g,R){le.ok(Fe.HD(g)),le.ok(Fe.Kn(R)),le.ok(!this.data.has(g),"There is already an extension with this id"),this.data.set(g,R)}as(g){return this.data.get(g)||null}}const Re=new ae},66213:function(tn,Mt,E){"use strict";E.d(Mt,{e:function(){return le}});var le;(function(Fe){Fe.DARK="dark",Fe.LIGHT="light",Fe.HIGH_CONTRAST="hc"})(le||(le={}))},49055:function(tn,Mt,E){"use strict";E.d(Mt,{EN:function(){return l},IP:function(){return v},Ic:function(){return I},XE:function(){return R},bB:function(){return L},kS:function(){return d},m6:function(){return N}});var le=E(52615),Fe=E(4348),ae=E(69323),Re=E(16925),K=E(44650),g=E(66213);const R=(0,Re.yh)("themeService");var T;(function(z){function P($){return $&&typeof $=="object"&&typeof $.id=="string"}z.isThemeColor=P})(T||(T={}));function l(z){return{id:z}}var d;(function(z){function P(ce){return ce&&typeof ce=="object"&&typeof ce.id=="string"&&(typeof ce.color=="undefined"||T.isThemeColor(ce.color))}z.isThemeIcon=P;const $=new RegExp(`^\\$\\((${le.dT.iconNameExpression}(?:${le.dT.iconModifierExpression})?)\\)$`);function J(ce){const q=$.exec(ce);if(!q)return;let[,ye]=q;return{id:ye}}z.fromString=J;function te(ce,q){let ye=ce.id;const _e=ye.lastIndexOf("~");return _e!==-1&&(ye=ye.substring(0,_e)),q&&(ye=`${ye}~${q}`),{id:ye}}z.modify=te;function H(ce,q){var ye,_e;return ce.id===q.id&&((ye=ce.color)===null||ye===void 0?void 0:ye.id)===((_e=q.color)===null||_e===void 0?void 0:_e.id)}z.isEqual=H;function G(ce,q){return{id:ce.id,color:q?l(q):void 0}}z.asThemeIcon=G,z.asClassNameArray=le.dT.asClassNameArray,z.asClassName=le.dT.asClassName,z.asCSSSelector=le.dT.asCSSSelector})(d||(d={}));function N(z){switch(z){case g.e.DARK:return"vs-dark";case g.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const v={ThemingContribution:"base.contributions.theming"};class m{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Fe.Q5}onColorThemeChange(P){return this.themingParticipants.push(P),this.onThemingParticipantAddedEmitter.fire(P),(0,ae.OF)(()=>{const $=this.themingParticipants.indexOf(P);this.themingParticipants.splice($,1)})}getThemingParticipants(){return this.themingParticipants}}let b=new m;K.B.add(v.ThemingContribution,b);function I(z){return b.onColorThemeChange(z)}class L extends ae.JT{constructor(P){super(),this.themeService=P,this.theme=P.getColorTheme(),this._register(this.themeService.onDidColorThemeChange($=>this.onThemeChange($)))}onThemeChange(P){this.theme=P,this.updateStyles()}updateStyles(){}}},5630:function(tn,Mt,E){"use strict";var le=E(72308),Fe=E(77321),ae=E(49618),Re=E(52487),K=E(74416),g=E(92310),R=E.n(g),T=E(18929),l=E(59301),d=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],N=(0,l.forwardRef)(function(v,m){var b,I=v.prefixCls,L=I===void 0?"rc-checkbox":I,z=v.className,P=v.style,$=v.checked,J=v.disabled,te=v.defaultChecked,H=te===void 0?!1:te,G=v.type,ce=G===void 0?"checkbox":G,q=v.title,ye=v.onChange,_e=(0,K.Z)(v,d),Le=(0,l.useRef)(null),se=(0,T.Z)(H,{value:$}),be=(0,Re.Z)(se,2),O=be[0],Ee=be[1];(0,l.useImperativeHandle)(m,function(){return{focus:function(){var F;(F=Le.current)===null||F===void 0||F.focus()},blur:function(){var F;(F=Le.current)===null||F===void 0||F.blur()},input:Le.current}});var ue=R()(L,z,(b={},(0,ae.Z)(b,"".concat(L,"-checked"),O),(0,ae.Z)(b,"".concat(L,"-disabled"),J),b)),he=function(F){J||("checked"in v||Ee(F.target.checked),ye==null||ye({target:(0,Fe.Z)((0,Fe.Z)({},v),{},{type:ce,checked:F.target.checked}),stopPropagation:function(){F.stopPropagation()},preventDefault:function(){F.preventDefault()},nativeEvent:F.nativeEvent}))};return l.createElement("span",{className:ue,title:q,style:P},l.createElement("input",(0,le.Z)({},_e,{className:"".concat(L,"-input"),ref:Le,onChange:he,disabled:J,checked:!!O,type:ce})),l.createElement("span",{className:"".concat(L,"-inner")}))});Mt.Z=N},31561:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return ce}});var le=E(72308),Fe=E(49618),ae=E(52487),Re=E(74416),K=E(35593),g=E(92310),R=E.n(g),T=E(8654),l=E(59301),d=E(10228),N=E(16089),v=d.Z.ESC,m=d.Z.TAB;function b(q){var ye=q.visible,_e=q.triggerRef,Le=q.onVisibleChange,se=q.autoFocus,be=q.overlayRef,O=l.useRef(!1),Ee=function(){if(ye){var F,U;(F=_e.current)===null||F===void 0||(U=F.focus)===null||U===void 0||U.call(F),Le==null||Le(!1)}},ue=function(){var F;return(F=be.current)!==null&&F!==void 0&&F.focus?(be.current.focus(),O.current=!0,!0):!1},he=function(F){switch(F.keyCode){case v:Ee();break;case m:{var U=!1;O.current||(U=ue()),U?F.preventDefault():Ee();break}}};l.useEffect(function(){return ye?(window.addEventListener("keydown",he),se&&(0,N.Z)(ue,3),function(){window.removeEventListener("keydown",he),O.current=!1}):function(){O.current=!1}},[ye])}var I=(0,l.forwardRef)(function(q,ye){var _e=q.overlay,Le=q.arrow,se=q.prefixCls,be=(0,l.useMemo)(function(){var Ee;return typeof _e=="function"?Ee=_e():Ee=_e,Ee},[_e]),O=(0,T.sQ)(ye,be==null?void 0:be.ref);return l.createElement(l.Fragment,null,Le&&l.createElement("div",{className:"".concat(se,"-arrow")}),l.cloneElement(be,{ref:(0,T.Yr)(be)?O:void 0}))}),L=I,z={adjustX:1,adjustY:1},P=[0,0],$={topLeft:{points:["bl","tl"],overflow:z,offset:[0,-4],targetOffset:P},top:{points:["bc","tc"],overflow:z,offset:[0,-4],targetOffset:P},topRight:{points:["br","tr"],overflow:z,offset:[0,-4],targetOffset:P},bottomLeft:{points:["tl","bl"],overflow:z,offset:[0,4],targetOffset:P},bottom:{points:["tc","bc"],overflow:z,offset:[0,4],targetOffset:P},bottomRight:{points:["tr","br"],overflow:z,offset:[0,4],targetOffset:P}},J=$,te=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function H(q,ye){var _e,Le=q.arrow,se=Le===void 0?!1:Le,be=q.prefixCls,O=be===void 0?"rc-dropdown":be,Ee=q.transitionName,ue=q.animation,he=q.align,ve=q.placement,F=ve===void 0?"bottomLeft":ve,U=q.placements,ee=U===void 0?J:U,de=q.getPopupContainer,Xe=q.showAction,tt=q.hideAction,nt=q.overlayClassName,_t=q.overlayStyle,Xt=q.visible,zt=q.trigger,Ze=zt===void 0?["hover"]:zt,fr=q.autoFocus,yr=q.overlay,Ar=q.children,vr=q.onVisibleChange,Ce=(0,Re.Z)(q,te),It=l.useState(),Z=(0,ae.Z)(It,2),x=Z[0],y=Z[1],k="visible"in q?Xt:x,fe=l.useRef(null),W=l.useRef(null),Q=l.useRef(null);l.useImperativeHandle(ye,function(){return fe.current});var re=function(ze){y(ze),vr==null||vr(ze)};b({visible:k,triggerRef:Q,onVisibleChange:re,autoFocus:fr,overlayRef:W});var Se=function(ze){var He=q.onOverlayClick;y(!1),He&&He(ze)},Be=function(){return l.createElement(L,{ref:W,overlay:yr,prefixCls:O,arrow:se})},Te=function(){return typeof yr=="function"?Be:Be()},Ge=function(){var ze=q.minOverlayWidthMatchTrigger,He=q.alignPoint;return"minOverlayWidthMatchTrigger"in q?ze:!He},ut=function(){var ze=q.openClassName;return ze!==void 0?ze:"".concat(O,"-open")},$e=l.cloneElement(Ar,{className:R()((_e=Ar.props)===null||_e===void 0?void 0:_e.className,k&&ut()),ref:(0,T.Yr)(Ar)?(0,T.sQ)(Q,Ar.ref):void 0}),Je=tt;return!Je&&Ze.indexOf("contextMenu")!==-1&&(Je=["click"]),l.createElement(K.Z,(0,le.Z)({builtinPlacements:ee},Ce,{prefixCls:O,ref:fe,popupClassName:R()(nt,(0,Fe.Z)({},"".concat(O,"-show-arrow"),se)),popupStyle:_t,action:Ze,showAction:Xe,hideAction:Je,popupPlacement:F,popupAlign:he,popupTransitionName:Ee,popupAnimation:ue,popupVisible:k,stretch:Ge()?"minWidth":"",popup:Te(),onPopupVisibleChange:re,onPopupClick:Se,getPopupContainer:de}),$e)}var G=l.forwardRef(H),ce=G},93681:function(tn,Mt,E){"use strict";E.r(Mt),E.d(Mt,{BaseInput:function(){return d},default:function(){return $}});var le=E(72308),Fe=E(77321),ae=E(49618),Re=E(62853),K=E(92310),g=E.n(K),R=E(59301),T=E(5643),l=function(te){var H,G,ce=te.inputElement,q=te.prefixCls,ye=te.prefix,_e=te.suffix,Le=te.addonBefore,se=te.addonAfter,be=te.className,O=te.style,Ee=te.disabled,ue=te.readOnly,he=te.focused,ve=te.triggerFocus,F=te.allowClear,U=te.value,ee=te.handleReset,de=te.hidden,Xe=te.classes,tt=te.classNames,nt=te.dataAttrs,_t=te.styles,Xt=te.components,zt=(Xt==null?void 0:Xt.affixWrapper)||"span",Ze=(Xt==null?void 0:Xt.groupWrapper)||"span",fr=(Xt==null?void 0:Xt.wrapper)||"span",yr=(Xt==null?void 0:Xt.groupAddon)||"span",Ar=(0,R.useRef)(null),vr=function(Be){var Te;(Te=Ar.current)!==null&&Te!==void 0&&Te.contains(Be.target)&&(ve==null||ve())},Ce=function(){var Be;if(!F)return null;var Te=!Ee&&!ue&&U,Ge="".concat(q,"-clear-icon"),ut=(0,Re.Z)(F)==="object"&&F!==null&&F!==void 0&&F.clearIcon?F.clearIcon:"\u2716";return R.createElement("span",{onClick:ee,onMouseDown:function(Je){return Je.preventDefault()},className:g()(Ge,(Be={},(0,ae.Z)(Be,"".concat(Ge,"-hidden"),!Te),(0,ae.Z)(Be,"".concat(Ge,"-has-suffix"),!!_e),Be)),role:"button",tabIndex:-1},ut)},It=(0,R.cloneElement)(ce,{value:U,hidden:de,className:g()((H=ce.props)===null||H===void 0?void 0:H.className,!(0,T.X3)(te)&&!(0,T.He)(te)&&be)||null,style:(0,Fe.Z)((0,Fe.Z)({},(G=ce.props)===null||G===void 0?void 0:G.style),!(0,T.X3)(te)&&!(0,T.He)(te)?O:{})});if((0,T.X3)(te)){var Z,x="".concat(q,"-affix-wrapper"),y=g()(x,(Z={},(0,ae.Z)(Z,"".concat(x,"-disabled"),Ee),(0,ae.Z)(Z,"".concat(x,"-focused"),he),(0,ae.Z)(Z,"".concat(x,"-readonly"),ue),(0,ae.Z)(Z,"".concat(x,"-input-with-clear-btn"),_e&&F&&U),Z),!(0,T.He)(te)&&be,Xe==null?void 0:Xe.affixWrapper,tt==null?void 0:tt.affixWrapper),k=(_e||F)&&R.createElement("span",{className:g()("".concat(q,"-suffix"),tt==null?void 0:tt.suffix),style:_t==null?void 0:_t.suffix},Ce(),_e);It=R.createElement(zt,(0,le.Z)({className:y,style:(0,Fe.Z)((0,Fe.Z)({},(0,T.He)(te)?void 0:O),_t==null?void 0:_t.affixWrapper),hidden:!(0,T.He)(te)&&de,onClick:vr},nt==null?void 0:nt.affixWrapper,{ref:Ar}),ye&&R.createElement("span",{className:g()("".concat(q,"-prefix"),tt==null?void 0:tt.prefix),style:_t==null?void 0:_t.prefix},ye),(0,R.cloneElement)(ce,{value:U,hidden:null}),k)}if((0,T.He)(te)){var fe="".concat(q,"-group"),W="".concat(fe,"-addon"),Q=g()("".concat(q,"-wrapper"),fe,Xe==null?void 0:Xe.wrapper),re=g()("".concat(q,"-group-wrapper"),be,Xe==null?void 0:Xe.group);return R.createElement(Ze,{className:re,style:O,hidden:de},R.createElement(fr,{className:Q},Le&&R.createElement(yr,{className:W},Le),(0,R.cloneElement)(It,{hidden:null}),se&&R.createElement(yr,{className:W},se)))}return It},d=l,N=E(80702),v=E(52487),m=E(74416),b=E(18929),I=E(2738),L=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],z=(0,R.forwardRef)(function(J,te){var H=J.autoComplete,G=J.onChange,ce=J.onFocus,q=J.onBlur,ye=J.onPressEnter,_e=J.onKeyDown,Le=J.prefixCls,se=Le===void 0?"rc-input":Le,be=J.disabled,O=J.htmlSize,Ee=J.className,ue=J.maxLength,he=J.suffix,ve=J.showCount,F=J.type,U=F===void 0?"text":F,ee=J.classes,de=J.classNames,Xe=J.styles,tt=(0,m.Z)(J,L),nt=(0,b.Z)(J.defaultValue,{value:J.value}),_t=(0,v.Z)(nt,2),Xt=_t[0],zt=_t[1],Ze=(0,R.useState)(!1),fr=(0,v.Z)(Ze,2),yr=fr[0],Ar=fr[1],vr=(0,R.useRef)(null),Ce=function(re){vr.current&&(0,T.nH)(vr.current,re)};(0,R.useImperativeHandle)(te,function(){return{focus:Ce,blur:function(){var re;(re=vr.current)===null||re===void 0||re.blur()},setSelectionRange:function(re,Se,Be){var Te;(Te=vr.current)===null||Te===void 0||Te.setSelectionRange(re,Se,Be)},select:function(){var re;(re=vr.current)===null||re===void 0||re.select()},input:vr.current}}),(0,R.useEffect)(function(){Ar(function(Q){return Q&&be?!1:Q})},[be]);var It=function(re){J.value===void 0&&zt(re.target.value),vr.current&&(0,T.rJ)(vr.current,re,G)},Z=function(re){ye&&re.key==="Enter"&&ye(re),_e==null||_e(re)},x=function(re){Ar(!0),ce==null||ce(re)},y=function(re){Ar(!1),q==null||q(re)},k=function(re){zt(""),Ce(),vr.current&&(0,T.rJ)(vr.current,re,G)},fe=function(){var re=(0,I.Z)(J,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return R.createElement("input",(0,le.Z)({autoComplete:H},re,{onChange:It,onFocus:x,onBlur:y,onKeyDown:Z,className:g()(se,(0,ae.Z)({},"".concat(se,"-disabled"),be),de==null?void 0:de.input),style:Xe==null?void 0:Xe.input,ref:vr,size:O,type:U}))},W=function(){var re=Number(ue)>0;if(he||ve){var Se=(0,T.D7)(Xt),Be=(0,N.Z)(Se).length,Te=(0,Re.Z)(ve)==="object"?ve.formatter({value:Se,count:Be,maxLength:ue}):"".concat(Be).concat(re?" / ".concat(ue):"");return R.createElement(R.Fragment,null,!!ve&&R.createElement("span",{className:g()("".concat(se,"-show-count-suffix"),(0,ae.Z)({},"".concat(se,"-show-count-has-suffix"),!!he),de==null?void 0:de.count),style:(0,Fe.Z)({},Xe==null?void 0:Xe.count)},Te),he)}return null};return R.createElement(d,(0,le.Z)({},tt,{prefixCls:se,className:Ee,inputElement:fe(),handleReset:k,value:(0,T.D7)(Xt),focused:yr,triggerFocus:Ce,suffix:W(),disabled:be,classes:ee,classNames:de,styles:Xe}))}),P=z,$=P},5643:function(tn,Mt,E){"use strict";E.d(Mt,{D7:function(){return K},He:function(){return le},X3:function(){return Fe},nH:function(){return Re},rJ:function(){return ae}});function le(g){return!!(g.addonBefore||g.addonAfter)}function Fe(g){return!!(g.prefix||g.suffix||g.allowClear)}function ae(g,R,T,l){if(T){var d=R;if(R.type==="click"){var N=g.cloneNode(!0);d=Object.create(R,{target:{value:N},currentTarget:{value:N}}),N.value="",T(d);return}if(l!==void 0){d=Object.create(R,{target:{value:g},currentTarget:{value:g}}),g.value=l,T(d);return}T(d)}}function Re(g,R){if(g){g.focus(R);var T=R||{},l=T.cursor;if(l){var d=g.value.length;switch(l){case"start":g.setSelectionRange(0,0);break;case"end":g.setSelectionRange(d,d);break;default:g.setSelectionRange(0,d)}}}}function K(g){return typeof g=="undefined"||g===null?"":String(g)}},15285:function(tn,Mt,E){"use strict";E.d(Mt,{iz:function(){return Un},ck:function(){return $t},BW:function(){return _n},sN:function(){return $t},Wd:function(){return xr},ZP:function(){return cn},Xl:function(){return _e}});var le=E(72308),Fe=E(49618),ae=E(77321),Re=E(80702),K=E(52487),g=E(74416),R=E(92310),T=E.n(R),l=E(11780),d=E(18929),N=E(13697),v=E(48736),m=E(59301),b=E(4676),I=m.createContext(null);function L(sr,cr){return sr===void 0?null:"".concat(sr,"-").concat(cr)}function z(sr){var cr=m.useContext(I);return L(cr,sr)}var P=E(80547),$=["children","locked"],J=m.createContext(null);function te(sr,cr){var pr=(0,ae.Z)({},sr);return Object.keys(cr).forEach(function(Fr){var Br=cr[Fr];Br!==void 0&&(pr[Fr]=Br)}),pr}function H(sr){var cr=sr.children,pr=sr.locked,Fr=(0,g.Z)(sr,$),Br=m.useContext(J),fn=(0,P.Z)(function(){return te(Br,Fr)},[Br,Fr],function(Nr,Cn){return!pr&&(Nr[0]!==Cn[0]||!(0,N.Z)(Nr[1],Cn[1],!0))});return m.createElement(J.Provider,{value:fn},cr)}var G=[],ce=m.createContext(null);function q(){return m.useContext(ce)}var ye=m.createContext(G);function _e(sr){var cr=m.useContext(ye);return m.useMemo(function(){return sr!==void 0?[].concat((0,Re.Z)(cr),[sr]):cr},[cr,sr])}var Le=m.createContext(null),se=m.createContext({}),be=se,O=E(29194);function Ee(sr){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,O.Z)(sr)){var pr=sr.nodeName.toLowerCase(),Fr=["input","select","textarea","button"].includes(pr)||sr.isContentEditable||pr==="a"&&!!sr.getAttribute("href"),Br=sr.getAttribute("tabindex"),fn=Number(Br),Nr=null;return Br&&!Number.isNaN(fn)?Nr=fn:Fr&&Nr===null&&(Nr=0),Fr&&sr.disabled&&(Nr=null),Nr!==null&&(Nr>=0||cr&&Nr<0)}return!1}function ue(sr){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pr=(0,Re.Z)(sr.querySelectorAll("*")).filter(function(Fr){return Ee(Fr,cr)});return Ee(sr,cr)&&pr.unshift(sr),pr}var he=null;function ve(){he=document.activeElement}function F(){he=null}function U(){if(he)try{he.focus()}catch(sr){}}function ee(sr,cr){if(cr.keyCode===9){var pr=ue(sr),Fr=pr[cr.shiftKey?0:pr.length-1],Br=Fr===document.activeElement||sr===document.activeElement;if(Br){var fn=pr[cr.shiftKey?pr.length-1:0];fn.focus(),cr.preventDefault()}}}var de=E(10228),Xe=E(16089),tt=de.Z.LEFT,nt=de.Z.RIGHT,_t=de.Z.UP,Xt=de.Z.DOWN,zt=de.Z.ENTER,Ze=de.Z.ESC,fr=de.Z.HOME,yr=de.Z.END,Ar=[_t,Xt,tt,nt];function vr(sr,cr,pr,Fr){var Br,fn,Nr,Cn,Rn="prev",Kn="next",Ai="children",ni="parent";if(sr==="inline"&&Fr===zt)return{inlineTrigger:!0};var mi=(Br={},(0,Fe.Z)(Br,_t,Rn),(0,Fe.Z)(Br,Xt,Kn),Br),hr=(fn={},(0,Fe.Z)(fn,tt,pr?Kn:Rn),(0,Fe.Z)(fn,nt,pr?Rn:Kn),(0,Fe.Z)(fn,Xt,Ai),(0,Fe.Z)(fn,zt,Ai),fn),an=(Nr={},(0,Fe.Z)(Nr,_t,Rn),(0,Fe.Z)(Nr,Xt,Kn),(0,Fe.Z)(Nr,zt,Ai),(0,Fe.Z)(Nr,Ze,ni),(0,Fe.Z)(Nr,tt,pr?Ai:ni),(0,Fe.Z)(Nr,nt,pr?ni:Ai),Nr),Xr={inline:mi,horizontal:hr,vertical:an,inlineSub:mi,horizontalSub:an,verticalSub:an},ri=(Cn=Xr["".concat(sr).concat(cr?"":"Sub")])===null||Cn===void 0?void 0:Cn[Fr];switch(ri){case Rn:return{offset:-1,sibling:!0};case Kn:return{offset:1,sibling:!0};case ni:return{offset:-1,sibling:!1};case Ai:return{offset:1,sibling:!1};default:return null}}function Ce(sr){for(var cr=sr;cr;){if(cr.getAttribute("data-menu-list"))return cr;cr=cr.parentElement}return null}function It(sr,cr){for(var pr=sr||document.activeElement;pr;){if(cr.has(pr))return pr;pr=pr.parentElement}return null}function Z(sr,cr){var pr=ue(sr,!0);return pr.filter(function(Fr){return cr.has(Fr)})}function x(sr,cr,pr){var Fr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!sr)return null;var Br=Z(sr,cr),fn=Br.length,Nr=Br.findIndex(function(Cn){return pr===Cn});return Fr<0?Nr===-1?Nr=fn-1:Nr-=1:Fr>0&&(Nr+=1),Nr=(Nr+fn)%fn,Br[Nr]}var y=function(cr,pr){var Fr=new Set,Br=new Map,fn=new Map;return cr.forEach(function(Nr){var Cn=document.querySelector("[data-menu-id='".concat(L(pr,Nr),"']"));Cn&&(Fr.add(Cn),fn.set(Cn,Nr),Br.set(Nr,Cn))}),{elements:Fr,key2element:Br,element2key:fn}};function k(sr,cr,pr,Fr,Br,fn,Nr,Cn,Rn,Kn){var Ai=m.useRef(),ni=m.useRef();ni.current=cr;var mi=function(){Xe.Z.cancel(Ai.current)};return m.useEffect(function(){return function(){mi()}},[]),function(hr){var an=hr.which;if([].concat(Ar,[zt,Ze,fr,yr]).includes(an)){var Xr=fn(),ri=y(Xr,Fr),zn=ri,Hn=zn.elements,Xn=zn.key2element,di=zn.element2key,si=Xn.get(cr),_i=It(si,Hn),ji=di.get(_i),ii=vr(sr,Nr(ji,!0).length===1,pr,an);if(!ii&&an!==fr&&an!==yr)return;(Ar.includes(an)||[fr,yr].includes(an))&&hr.preventDefault();var yn=function(Ci){if(Ci){var is=Ci,ai=Ci.querySelector("a");ai!=null&&ai.getAttribute("href")&&(is=ai);var Zn=di.get(Ci);Cn(Zn),mi(),Ai.current=(0,Xe.Z)(function(){ni.current===Zn&&is.focus()})}};if([fr,yr].includes(an)||ii.sibling||!_i){var Yt;!_i||sr==="inline"?Yt=Br.current:Yt=Ce(_i);var hn,Fn=Z(Yt,Hn);an===fr?hn=Fn[0]:an===yr?hn=Fn[Fn.length-1]:hn=x(Yt,Hn,_i,ii.offset),yn(hn)}else if(ii.inlineTrigger)Rn(ji);else if(ii.offset>0)Rn(ji,!0),mi(),Ai.current=(0,Xe.Z)(function(){ri=y(Xr,Fr);var rs=_i.getAttribute("aria-controls"),Ci=document.getElementById(rs),is=x(Ci,ri.elements);yn(is)},5);else if(ii.offset<0){var $n=Nr(ji,!0),bi=$n[$n.length-2],Hi=Xn.get(bi);Rn(bi,!1),yn(Hi)}}Kn==null||Kn(hr)}}function fe(sr){Promise.resolve().then(sr)}var W="__RC_UTIL_PATH_SPLIT__",Q=function(cr){return cr.join(W)},re=function(cr){return cr.split(W)},Se="rc-menu-more";function Be(){var sr=m.useState({}),cr=(0,K.Z)(sr,2),pr=cr[1],Fr=(0,m.useRef)(new Map),Br=(0,m.useRef)(new Map),fn=m.useState([]),Nr=(0,K.Z)(fn,2),Cn=Nr[0],Rn=Nr[1],Kn=(0,m.useRef)(0),Ai=(0,m.useRef)(!1),ni=function(){Ai.current||pr({})},mi=(0,m.useCallback)(function(Xn,di){var si=Q(di);Br.current.set(si,Xn),Fr.current.set(Xn,si),Kn.current+=1;var _i=Kn.current;fe(function(){_i===Kn.current&&ni()})},[]),hr=(0,m.useCallback)(function(Xn,di){var si=Q(di);Br.current.delete(si),Fr.current.delete(Xn)},[]),an=(0,m.useCallback)(function(Xn){Rn(Xn)},[]),Xr=(0,m.useCallback)(function(Xn,di){var si=Fr.current.get(Xn)||"",_i=re(si);return di&&Cn.includes(_i[0])&&_i.unshift(Se),_i},[Cn]),ri=(0,m.useCallback)(function(Xn,di){return Xn.some(function(si){var _i=Xr(si,!0);return _i.includes(di)})},[Xr]),zn=function(){var di=(0,Re.Z)(Fr.current.keys());return Cn.length&&di.push(Se),di},Hn=(0,m.useCallback)(function(Xn){var di="".concat(Fr.current.get(Xn)).concat(W),si=new Set;return(0,Re.Z)(Br.current.keys()).forEach(function(_i){_i.startsWith(di)&&si.add(Br.current.get(_i))}),si},[]);return m.useEffect(function(){return function(){Ai.current=!0}},[]),{registerPath:mi,unregisterPath:hr,refreshOverflowKeys:an,isSubPathKey:ri,getKeyPath:Xr,getKeys:zn,getSubPathKeys:Hn}}function Te(sr){var cr=m.useRef(sr);cr.current=sr;var pr=m.useCallback(function(){for(var Fr,Br=arguments.length,fn=new Array(Br),Nr=0;Nr<Br;Nr++)fn[Nr]=arguments[Nr];return(Fr=cr.current)===null||Fr===void 0?void 0:Fr.call.apply(Fr,[cr].concat(fn))},[]);return sr?pr:void 0}var Ge=Math.random().toFixed(5).toString().slice(2),ut=0;function $e(sr){var cr=(0,d.Z)(sr,{value:sr}),pr=(0,K.Z)(cr,2),Fr=pr[0],Br=pr[1];return m.useEffect(function(){ut+=1;var fn="".concat(Ge,"-").concat(ut);Br("rc-menu-uuid-".concat(fn))},[]),Fr}var Je=E(96949),At=E(55090),ze=E(77205),He=E(38793),vt=E(2738),jt=E(8654);function Dt(sr,cr,pr,Fr){var Br=m.useContext(J),fn=Br.activeKey,Nr=Br.onActive,Cn=Br.onInactive,Rn={active:fn===sr};return cr||(Rn.onMouseEnter=function(Kn){pr==null||pr({key:sr,domEvent:Kn}),Nr(sr)},Rn.onMouseLeave=function(Kn){Fr==null||Fr({key:sr,domEvent:Kn}),Cn(sr)}),Rn}function lr(sr){var cr=m.useContext(J),pr=cr.mode,Fr=cr.rtl,Br=cr.inlineIndent;if(pr!=="inline")return null;var fn=sr;return Fr?{paddingRight:fn*Br}:{paddingLeft:fn*Br}}function gr(sr){var cr=sr.icon,pr=sr.props,Fr=sr.children,Br;return cr===null||cr===!1?null:(typeof cr=="function"?Br=m.createElement(cr,(0,ae.Z)({},pr)):typeof cr!="boolean"&&(Br=cr),Br||Fr||null)}var ne=["item"];function we(sr){var cr=sr.item,pr=(0,g.Z)(sr,ne);return Object.defineProperty(pr,"item",{get:function(){return(0,v.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),cr}}),pr}var Vt=["title","attribute","elementRef"],Ue=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],it=["active"],Rr=function(sr){(0,ze.Z)(pr,sr);var cr=(0,He.Z)(pr);function pr(){return(0,Je.Z)(this,pr),cr.apply(this,arguments)}return(0,At.Z)(pr,[{key:"render",value:function(){var Br=this.props,fn=Br.title,Nr=Br.attribute,Cn=Br.elementRef,Rn=(0,g.Z)(Br,Vt),Kn=(0,vt.Z)(Rn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,v.ZP)(!Nr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),m.createElement(l.Z.Item,(0,le.Z)({},Nr,{title:typeof fn=="string"?fn:void 0},Kn,{ref:Cn}))}}]),pr}(m.Component),Tt=m.forwardRef(function(sr,cr){var pr,Fr=sr.style,Br=sr.className,fn=sr.eventKey,Nr=sr.warnKey,Cn=sr.disabled,Rn=sr.itemIcon,Kn=sr.children,Ai=sr.role,ni=sr.onMouseEnter,mi=sr.onMouseLeave,hr=sr.onClick,an=sr.onKeyDown,Xr=sr.onFocus,ri=(0,g.Z)(sr,Ue),zn=z(fn),Hn=m.useContext(J),Xn=Hn.prefixCls,di=Hn.onItemClick,si=Hn.disabled,_i=Hn.overflowDisabled,ji=Hn.itemIcon,ii=Hn.selectedKeys,yn=Hn.onActive,Yt=m.useContext(be),hn=Yt._internalRenderMenuItem,Fn="".concat(Xn,"-item"),$n=m.useRef(),bi=m.useRef(),Hi=si||Cn,rs=(0,jt.x1)(cr,bi),Ci=_e(fn),is=function(ss){return{key:fn,keyPath:(0,Re.Z)(Ci).reverse(),item:$n.current,domEvent:ss}},ai=Rn||ji,Zn=Dt(fn,Hi,ni,mi),Li=Zn.active,Mi=(0,g.Z)(Zn,it),ls=ii.includes(fn),js=lr(Ci.length),Vn=function(ss){if(!Hi){var gi=is(ss);hr==null||hr(we(gi)),di(gi)}},us=function(ss){if(an==null||an(ss),ss.which===de.Z.ENTER){var gi=is(ss);hr==null||hr(we(gi)),di(gi)}},Wi=function(ss){yn(fn),Xr==null||Xr(ss)},ps={};sr.role==="option"&&(ps["aria-selected"]=ls);var Vs=m.createElement(Rr,(0,le.Z)({ref:$n,elementRef:rs,role:Ai===null?"none":Ai||"menuitem",tabIndex:Cn?null:-1,"data-menu-id":_i&&zn?null:zn},ri,Mi,ps,{component:"li","aria-disabled":Cn,style:(0,ae.Z)((0,ae.Z)({},js),Fr),className:T()(Fn,(pr={},(0,Fe.Z)(pr,"".concat(Fn,"-active"),Li),(0,Fe.Z)(pr,"".concat(Fn,"-selected"),ls),(0,Fe.Z)(pr,"".concat(Fn,"-disabled"),Hi),pr),Br),onClick:Vn,onKeyDown:us,onFocus:Wi}),Kn,m.createElement(gr,{props:(0,ae.Z)((0,ae.Z)({},sr),{},{isSelected:ls}),icon:ai}));return hn&&(Vs=hn(Vs,sr,{selected:ls})),Vs});function Rt(sr,cr){var pr=sr.eventKey,Fr=q(),Br=_e(pr);return m.useEffect(function(){if(Fr)return Fr.registerPath(pr,Br),function(){Fr.unregisterPath(pr,Br)}},[Br]),Fr?null:m.createElement(Tt,(0,le.Z)({},sr,{ref:cr}))}var $t=m.forwardRef(Rt),qe=["className","children"],pt=function(cr,pr){var Fr=cr.className,Br=cr.children,fn=(0,g.Z)(cr,qe),Nr=m.useContext(J),Cn=Nr.prefixCls,Rn=Nr.mode,Kn=Nr.rtl;return m.createElement("ul",(0,le.Z)({className:T()(Cn,Kn&&"".concat(Cn,"-rtl"),"".concat(Cn,"-sub"),"".concat(Cn,"-").concat(Rn==="inline"?"inline":"vertical"),Fr),role:"menu"},fn,{"data-menu-list":!0,ref:pr}),Br)},rt=m.forwardRef(pt);rt.displayName="SubMenuList";var Ht=rt,Oe=E(11592);function $r(sr,cr){return(0,Oe.Z)(sr).map(function(pr,Fr){if(m.isValidElement(pr)){var Br,fn,Nr=pr.key,Cn=(Br=(fn=pr.props)===null||fn===void 0?void 0:fn.eventKey)!==null&&Br!==void 0?Br:Nr,Rn=Cn==null;Rn&&(Cn="tmp_key-".concat([].concat((0,Re.Z)(cr),[Fr]).join("-")));var Kn={key:Cn,eventKey:Cn};return m.cloneElement(pr,Kn)}return pr})}var Bt=E(35593),gn={adjustX:1,adjustY:1},On={topLeft:{points:["bl","tl"],overflow:gn},topRight:{points:["br","tr"],overflow:gn},bottomLeft:{points:["tl","bl"],overflow:gn},bottomRight:{points:["tr","br"],overflow:gn},leftTop:{points:["tr","tl"],overflow:gn},leftBottom:{points:["br","bl"],overflow:gn},rightTop:{points:["tl","tr"],overflow:gn},rightBottom:{points:["bl","br"],overflow:gn}},hi={topLeft:{points:["bl","tl"],overflow:gn},topRight:{points:["br","tr"],overflow:gn},bottomLeft:{points:["tl","bl"],overflow:gn},bottomRight:{points:["tr","br"],overflow:gn},rightTop:{points:["tr","tl"],overflow:gn},rightBottom:{points:["br","bl"],overflow:gn},leftTop:{points:["tl","tr"],overflow:gn},leftBottom:{points:["bl","br"],overflow:gn}},ti=null;function En(sr,cr,pr){if(cr)return cr;if(pr)return pr[sr]||pr.other}var Dn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ut(sr){var cr=sr.prefixCls,pr=sr.visible,Fr=sr.children,Br=sr.popup,fn=sr.popupStyle,Nr=sr.popupClassName,Cn=sr.popupOffset,Rn=sr.disabled,Kn=sr.mode,Ai=sr.onVisibleChange,ni=m.useContext(J),mi=ni.getPopupContainer,hr=ni.rtl,an=ni.subMenuOpenDelay,Xr=ni.subMenuCloseDelay,ri=ni.builtinPlacements,zn=ni.triggerSubMenuAction,Hn=ni.forceSubMenuRender,Xn=ni.rootClassName,di=ni.motion,si=ni.defaultMotions,_i=m.useState(!1),ji=(0,K.Z)(_i,2),ii=ji[0],yn=ji[1],Yt=hr?(0,ae.Z)((0,ae.Z)({},hi),ri):(0,ae.Z)((0,ae.Z)({},On),ri),hn=Dn[Kn],Fn=En(Kn,di,si),$n=m.useRef(Fn);Kn!=="inline"&&($n.current=Fn);var bi=(0,ae.Z)((0,ae.Z)({},$n.current),{},{leavedClassName:"".concat(cr,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Hi=m.useRef();return m.useEffect(function(){return Hi.current=(0,Xe.Z)(function(){yn(pr)}),function(){Xe.Z.cancel(Hi.current)}},[pr]),m.createElement(Bt.Z,{prefixCls:cr,popupClassName:T()("".concat(cr,"-popup"),(0,Fe.Z)({},"".concat(cr,"-rtl"),hr),Nr,Xn),stretch:Kn==="horizontal"?"minWidth":null,getPopupContainer:mi,builtinPlacements:Yt,popupPlacement:hn,popupVisible:ii,popup:Br,popupStyle:fn,popupAlign:Cn&&{offset:Cn},action:Rn?[]:[zn],mouseEnterDelay:an,mouseLeaveDelay:Xr,onPopupVisibleChange:Ai,forceRender:Hn,popupMotion:bi,fresh:!0},Fr)}var Dr=E(77900);function Pr(sr){var cr=sr.id,pr=sr.open,Fr=sr.keyPath,Br=sr.children,fn="inline",Nr=m.useContext(J),Cn=Nr.prefixCls,Rn=Nr.forceSubMenuRender,Kn=Nr.motion,Ai=Nr.defaultMotions,ni=Nr.mode,mi=m.useRef(!1);mi.current=ni===fn;var hr=m.useState(!mi.current),an=(0,K.Z)(hr,2),Xr=an[0],ri=an[1],zn=mi.current?pr:!1;m.useEffect(function(){mi.current&&ri(!1)},[ni]);var Hn=(0,ae.Z)({},En(fn,Kn,Ai));Fr.length>1&&(Hn.motionAppear=!1);var Xn=Hn.onVisibleChanged;return Hn.onVisibleChanged=function(di){return!mi.current&&!di&&ri(!0),Xn==null?void 0:Xn(di)},Xr?null:m.createElement(H,{mode:fn,locked:!mi.current},m.createElement(Dr.default,(0,le.Z)({visible:zn},Hn,{forceRender:Rn,removeOnLeave:!1,leavedClassName:"".concat(Cn,"-hidden")}),function(di){var si=di.className,_i=di.style;return m.createElement(Ht,{id:cr,className:si,style:_i},Br)}))}var St=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],mt=["active"],mr=function(cr){var pr,Fr=cr.style,Br=cr.className,fn=cr.title,Nr=cr.eventKey,Cn=cr.warnKey,Rn=cr.disabled,Kn=cr.internalPopupClose,Ai=cr.children,ni=cr.itemIcon,mi=cr.expandIcon,hr=cr.popupClassName,an=cr.popupOffset,Xr=cr.popupStyle,ri=cr.onClick,zn=cr.onMouseEnter,Hn=cr.onMouseLeave,Xn=cr.onTitleClick,di=cr.onTitleMouseEnter,si=cr.onTitleMouseLeave,_i=(0,g.Z)(cr,St),ji=z(Nr),ii=m.useContext(J),yn=ii.prefixCls,Yt=ii.mode,hn=ii.openKeys,Fn=ii.disabled,$n=ii.overflowDisabled,bi=ii.activeKey,Hi=ii.selectedKeys,rs=ii.itemIcon,Ci=ii.expandIcon,is=ii.onItemClick,ai=ii.onOpenChange,Zn=ii.onActive,Li=m.useContext(be),Mi=Li._internalRenderSubMenuItem,ls=m.useContext(Le),js=ls.isSubPathKey,Vn=_e(),us="".concat(yn,"-submenu"),Wi=Fn||Rn,ps=m.useRef(),Vs=m.useRef(),vs=ni!=null?ni:rs,ss=mi!=null?mi:Ci,gi=hn.includes(Nr),Ui=!$n&&gi,Ws=js(Hi,Nr),Ti=Dt(Nr,Wi,di,si),Ds=Ti.active,Ri=(0,g.Z)(Ti,mt),ks=m.useState(!1),$i=(0,K.Z)(ks,2),Pa=$i[0],aa=$i[1],Na=function(Os){Wi||aa(Os)},Vi=function(Os){Na(!0),zn==null||zn({key:Nr,domEvent:Os})},Ga=function(Os){Na(!1),Hn==null||Hn({key:Nr,domEvent:Os})},Rs=m.useMemo(function(){return Ds||(Yt!=="inline"?Pa||js([bi],Nr):!1)},[Yt,Ds,bi,Pa,Nr,js]),Pn=lr(Vn.length),as=function(Os){Wi||(Xn==null||Xn({key:Nr,domEvent:Os}),Yt==="inline"&&ai(Nr,!gi))},Ca=Te(function(Ks){ri==null||ri(we(Ks)),is(Ks)}),Bi=function(Os){Yt!=="inline"&&ai(Nr,Os)},Di=function(){Zn(Nr)},wi=ji&&"".concat(ji,"-popup"),vi=m.createElement("div",(0,le.Z)({role:"menuitem",style:Pn,className:"".concat(us,"-title"),tabIndex:Wi?null:-1,ref:ps,title:typeof fn=="string"?fn:null,"data-menu-id":$n&&ji?null:ji,"aria-expanded":Ui,"aria-haspopup":!0,"aria-controls":wi,"aria-disabled":Wi,onClick:as,onFocus:Di},Ri),fn,m.createElement(gr,{icon:Yt!=="horizontal"?ss:void 0,props:(0,ae.Z)((0,ae.Z)({},cr),{},{isOpen:Ui,isSubMenu:!0})},m.createElement("i",{className:"".concat(us,"-arrow")}))),Yi=m.useRef(Yt);if(Yt!=="inline"&&Vn.length>1?Yi.current="vertical":Yi.current=Yt,!$n){var gs=Yi.current;vi=m.createElement(Ut,{mode:gs,prefixCls:us,visible:!Kn&&Ui&&Yt!=="inline",popupClassName:hr,popupOffset:an,popupStyle:Xr,popup:m.createElement(H,{mode:gs==="horizontal"?"vertical":gs},m.createElement(Ht,{id:wi,ref:Vs},Ai)),disabled:Wi,onVisibleChange:Bi},vi)}var na=m.createElement(l.Z.Item,(0,le.Z)({role:"none"},_i,{component:"li",style:Fr,className:T()(us,"".concat(us,"-").concat(Yt),Br,(pr={},(0,Fe.Z)(pr,"".concat(us,"-open"),Ui),(0,Fe.Z)(pr,"".concat(us,"-active"),Rs),(0,Fe.Z)(pr,"".concat(us,"-selected"),Ws),(0,Fe.Z)(pr,"".concat(us,"-disabled"),Wi),pr)),onMouseEnter:Vi,onMouseLeave:Ga}),vi,!$n&&m.createElement(Pr,{id:wi,open:Ui,keyPath:Vn},Ai));return Mi&&(na=Mi(na,cr,{selected:Ws,active:Rs,open:Ui,disabled:Wi})),m.createElement(H,{onItemClick:Ca,mode:Yt==="horizontal"?"vertical":Yt,itemIcon:vs,expandIcon:ss},na)};function xr(sr){var cr=sr.eventKey,pr=sr.children,Fr=_e(cr),Br=$r(pr,Fr),fn=q();m.useEffect(function(){if(fn)return fn.registerPath(cr,Fr),function(){fn.unregisterPath(cr,Fr)}},[Fr]);var Nr;return fn?Nr=Br:Nr=m.createElement(mr,sr,Br),m.createElement(ye.Provider,{value:Fr},Nr)}var on=E(62853),kr=["className","title","eventKey","children"],un=["children"],nn=function(cr){var pr=cr.className,Fr=cr.title,Br=cr.eventKey,fn=cr.children,Nr=(0,g.Z)(cr,kr),Cn=m.useContext(J),Rn=Cn.prefixCls,Kn="".concat(Rn,"-item-group");return m.createElement("li",(0,le.Z)({role:"presentation"},Nr,{onClick:function(ni){return ni.stopPropagation()},className:T()(Kn,pr)}),m.createElement("div",{role:"presentation",className:"".concat(Kn,"-title"),title:typeof Fr=="string"?Fr:void 0},Fr),m.createElement("ul",{role:"group",className:"".concat(Kn,"-list")},fn))};function _n(sr){var cr=sr.children,pr=(0,g.Z)(sr,un),Fr=_e(pr.eventKey),Br=$r(cr,Fr),fn=q();return fn?Br:m.createElement(nn,(0,vt.Z)(pr,["warnKey"]),Br)}function Un(sr){var cr=sr.className,pr=sr.style,Fr=m.useContext(J),Br=Fr.prefixCls,fn=q();return fn?null:m.createElement("li",{role:"separator",className:T()("".concat(Br,"-item-divider"),cr),style:pr})}var vn=["label","children","key","type"];function Hr(sr){return(sr||[]).map(function(cr,pr){if(cr&&(0,on.Z)(cr)==="object"){var Fr=cr,Br=Fr.label,fn=Fr.children,Nr=Fr.key,Cn=Fr.type,Rn=(0,g.Z)(Fr,vn),Kn=Nr!=null?Nr:"tmp-".concat(pr);return fn||Cn==="group"?Cn==="group"?m.createElement(_n,(0,le.Z)({key:Kn},Rn,{title:Br}),Hr(fn)):m.createElement(xr,(0,le.Z)({key:Kn},Rn,{title:Br}),Hr(fn)):Cn==="divider"?m.createElement(Un,(0,le.Z)({key:Kn},Rn)):m.createElement($t,(0,le.Z)({key:Kn},Rn),Br)}return null}).filter(function(cr){return cr})}function Kr(sr,cr,pr){var Fr=sr;return cr&&(Fr=Hr(cr)),$r(Fr,pr)}var qr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],bn=[],ln=m.forwardRef(function(sr,cr){var pr,Fr,Br=sr,fn=Br.prefixCls,Nr=fn===void 0?"rc-menu":fn,Cn=Br.rootClassName,Rn=Br.style,Kn=Br.className,Ai=Br.tabIndex,ni=Ai===void 0?0:Ai,mi=Br.items,hr=Br.children,an=Br.direction,Xr=Br.id,ri=Br.mode,zn=ri===void 0?"vertical":ri,Hn=Br.inlineCollapsed,Xn=Br.disabled,di=Br.disabledOverflow,si=Br.subMenuOpenDelay,_i=si===void 0?.1:si,ji=Br.subMenuCloseDelay,ii=ji===void 0?.1:ji,yn=Br.forceSubMenuRender,Yt=Br.defaultOpenKeys,hn=Br.openKeys,Fn=Br.activeKey,$n=Br.defaultActiveFirst,bi=Br.selectable,Hi=bi===void 0?!0:bi,rs=Br.multiple,Ci=rs===void 0?!1:rs,is=Br.defaultSelectedKeys,ai=Br.selectedKeys,Zn=Br.onSelect,Li=Br.onDeselect,Mi=Br.inlineIndent,ls=Mi===void 0?24:Mi,js=Br.motion,Vn=Br.defaultMotions,us=Br.triggerSubMenuAction,Wi=us===void 0?"hover":us,ps=Br.builtinPlacements,Vs=Br.itemIcon,vs=Br.expandIcon,ss=Br.overflowedIndicator,gi=ss===void 0?"...":ss,Ui=Br.overflowedIndicatorPopupClassName,Ws=Br.getPopupContainer,Ti=Br.onClick,Ds=Br.onOpenChange,Ri=Br.onKeyDown,ks=Br.openAnimation,$i=Br.openTransitionName,Pa=Br._internalRenderMenuItem,aa=Br._internalRenderSubMenuItem,Na=(0,g.Z)(Br,qr),Vi=m.useMemo(function(){return Kr(hr,mi,bn)},[hr,mi]),Ga=m.useState(!1),Rs=(0,K.Z)(Ga,2),Pn=Rs[0],as=Rs[1],Ca=m.useRef(),Bi=$e(Xr),Di=an==="rtl",wi=(0,d.Z)(Yt,{value:hn,postState:function(zs){return zs||bn}}),vi=(0,K.Z)(wi,2),Yi=vi[0],gs=vi[1],na=function(zs){var Is=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function sa(){gs(zs),Ds==null||Ds(zs)}Is?(0,b.flushSync)(sa):sa()},Ks=m.useState(Yi),Os=(0,K.Z)(Ks,2),Qi=Os[0],Ys=Os[1],Za=m.useRef(!1),la=m.useMemo(function(){return(zn==="inline"||zn==="vertical")&&Hn?["vertical",Hn]:[zn,!1]},[zn,Hn]),ua=(0,K.Z)(la,2),Xs=ua[0],li=ua[1],oi=Xs==="inline",Ji=m.useState(Xs),$s=(0,K.Z)(Ji,2),As=$s[0],ca=$s[1],ea=m.useState(li),Va=(0,K.Z)(ea,2),ta=Va[0],ci=Va[1];m.useEffect(function(){ca(Xs),ci(li),Za.current&&(oi?gs(Qi):na(bn))},[Xs,li]);var fl=m.useState(0),Aa=(0,K.Z)(fl,2),ko=Aa[0],fa=Aa[1],Sa=ko>=Vi.length-1||As!=="horizontal"||di;m.useEffect(function(){oi&&Ys(Yi)},[Yi]),m.useEffect(function(){return Za.current=!0,function(){Za.current=!1}},[]);var ys=Be(),Ho=ys.registerPath,Ko=ys.unregisterPath,Fo=ys.refreshOverflowKeys,mo=ys.isSubPathKey,ds=ys.getKeyPath,es=ys.getKeys,pa=ys.getSubPathKeys,Bs=m.useMemo(function(){return{registerPath:Ho,unregisterPath:Ko}},[Ho,Ko]),fs=m.useMemo(function(){return{isSubPathKey:mo}},[mo]);m.useEffect(function(){Fo(Sa?bn:Vi.slice(ko+1).map(function(_s){return _s.key}))},[ko,Sa]);var ia=(0,d.Z)(Fn||$n&&((pr=Vi[0])===null||pr===void 0?void 0:pr.key),{value:Fn}),Fs=(0,K.Z)(ia,2),da=Fs[0],Wa=Fs[1],Mo=Te(function(_s){Wa(_s)}),qa=Te(function(){Wa(void 0)});(0,m.useImperativeHandle)(cr,function(){return{list:Ca.current,focus:function(zs){var Is,sa=es(),ma=y(sa,Bi),Ln=ma.elements,_o=ma.key2element,el=ma.element2key,Rl=Z(Ca.current,Ln),Ol=da!=null?da:Rl[0]?el.get(Rl[0]):(Is=Vi.find(function(xu){return!xu.props.disabled}))===null||Is===void 0?void 0:Is.key,Zo=_o.get(Ol);if(Ol&&Zo){var tl;Zo==null||(tl=Zo.focus)===null||tl===void 0||tl.call(Zo,zs)}}}});var Eo=(0,d.Z)(is||[],{value:ai,postState:function(zs){return Array.isArray(zs)?zs:zs==null?bn:[zs]}}),hl=(0,K.Z)(Eo,2),ka=hl[0],Ya=hl[1],El=function(zs){if(Hi){var Is=zs.key,sa=ka.includes(Is),ma;Ci?sa?ma=ka.filter(function(_o){return _o!==Is}):ma=[].concat((0,Re.Z)(ka),[Is]):ma=[Is],Ya(ma);var Ln=(0,ae.Z)((0,ae.Z)({},zs),{},{selectedKeys:ma});sa?Li==null||Li(Ln):Zn==null||Zn(Ln)}!Ci&&Yi.length&&As!=="inline"&&na(bn)},qo=Te(function(_s){Ti==null||Ti(we(_s)),El(_s)}),zo=Te(function(_s,zs){var Is=Yi.filter(function(ma){return ma!==_s});if(zs)Is.push(_s);else if(As!=="inline"){var sa=pa(_s);Is=Is.filter(function(ma){return!sa.has(ma)})}(0,N.Z)(Yi,Is,!0)||na(Is,!0)}),pl=function(zs,Is){var sa=Is!=null?Is:!Yi.includes(zs);zo(zs,sa)},Go=k(As,da,Di,Bi,Ca,es,ds,Wa,pl,Ri);m.useEffect(function(){as(!0)},[]);var Ma=m.useMemo(function(){return{_internalRenderMenuItem:Pa,_internalRenderSubMenuItem:aa}},[Pa,aa]),ba=As!=="horizontal"||di?Vi:Vi.map(function(_s,zs){return m.createElement(H,{key:_s.key,overflowDisabled:zs>ko},_s)}),eo=m.createElement(l.Z,(0,le.Z)({id:Xr,ref:Ca,prefixCls:"".concat(Nr,"-overflow"),component:"ul",itemComponent:$t,className:T()(Nr,"".concat(Nr,"-root"),"".concat(Nr,"-").concat(As),Kn,(Fr={},(0,Fe.Z)(Fr,"".concat(Nr,"-inline-collapsed"),ta),(0,Fe.Z)(Fr,"".concat(Nr,"-rtl"),Di),Fr),Cn),dir:an,style:Rn,role:"menu",tabIndex:ni,data:ba,renderRawItem:function(zs){return zs},renderRawRest:function(zs){var Is=zs.length,sa=Is?Vi.slice(-Is):null;return m.createElement(xr,{eventKey:Se,title:gi,disabled:Sa,internalPopupClose:Is===0,popupClassName:Ui},sa)},maxCount:As!=="horizontal"||di?l.Z.INVALIDATE:l.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(zs){fa(zs)},onKeyDown:Go},Na));return m.createElement(be.Provider,{value:Ma},m.createElement(I.Provider,{value:Bi},m.createElement(H,{prefixCls:Nr,rootClassName:Cn,mode:As,openKeys:Yi,rtl:Di,disabled:Xn,motion:Pn?js:null,defaultMotions:Pn?Vn:null,activeKey:da,onActive:Mo,onInactive:qa,selectedKeys:ka,inlineIndent:ls,subMenuOpenDelay:_i,subMenuCloseDelay:ii,forceSubMenuRender:yn,builtinPlacements:ps,triggerSubMenuAction:Wi,getPopupContainer:Ws,itemIcon:Vs,expandIcon:vs,onItemClick:qo,onOpenChange:zo},m.createElement(Le.Provider,{value:fs},eo),m.createElement("div",{style:{display:"none"},"aria-hidden":!0},m.createElement(ce.Provider,{value:Bs},Vi)))))}),ui=ln,jn=ui;jn.Item=$t,jn.SubMenu=xr,jn.ItemGroup=_n,jn.Divider=Un;var cn=jn},11780:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return ve}});var le=E(72308),Fe=E(77321),ae=E(52487),Re=E(74416),K=E(59301),g=E(92310),R=E.n(g),T=E(29301),l=E(34280),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],N=void 0;function v(F,U){var ee=F.prefixCls,de=F.invalidate,Xe=F.item,tt=F.renderItem,nt=F.responsive,_t=F.responsiveDisabled,Xt=F.registerSize,zt=F.itemKey,Ze=F.className,fr=F.style,yr=F.children,Ar=F.display,vr=F.order,Ce=F.component,It=Ce===void 0?"div":Ce,Z=(0,Re.Z)(F,d),x=nt&&!Ar;function y(re){Xt(zt,re)}K.useEffect(function(){return function(){y(null)}},[]);var k=tt&&Xe!==N?tt(Xe,{index:vr}):yr,fe;de||(fe={opacity:x?0:1,height:x?0:N,overflowY:x?"hidden":N,order:nt?vr:N,pointerEvents:x?"none":N,position:x?"absolute":N});var W={};x&&(W["aria-hidden"]=!0);var Q=K.createElement(It,(0,le.Z)({className:R()(!de&&ee,Ze),style:(0,Fe.Z)((0,Fe.Z)({},fe),fr)},W,Z,{ref:U}),k);return nt&&(Q=K.createElement(T.Z,{onResize:function(Se){var Be=Se.offsetWidth;y(Be)},disabled:_t},Q)),Q}var m=K.forwardRef(v);m.displayName="Item";var b=m,I=E(6089),L=E(4676),z=E(16089);function P(F){if(typeof MessageChannel=="undefined")(0,z.Z)(F);else{var U=new MessageChannel;U.port1.onmessage=function(){return F()},U.port2.postMessage(void 0)}}function $(){var F=K.useRef(null),U=function(de){F.current||(F.current=[],P(function(){(0,L.unstable_batchedUpdates)(function(){F.current.forEach(function(Xe){Xe()}),F.current=null})})),F.current.push(de)};return U}function J(F,U){var ee=K.useState(U),de=(0,ae.Z)(ee,2),Xe=de[0],tt=de[1],nt=(0,I.Z)(function(_t){F(function(){tt(_t)})});return[Xe,nt]}var te=K.createContext(null),H=["component"],G=["className"],ce=["className"],q=function(U,ee){var de=K.useContext(te);if(!de){var Xe=U.component,tt=Xe===void 0?"div":Xe,nt=(0,Re.Z)(U,H);return K.createElement(tt,(0,le.Z)({},nt,{ref:ee}))}var _t=de.className,Xt=(0,Re.Z)(de,G),zt=U.className,Ze=(0,Re.Z)(U,ce);return K.createElement(te.Provider,{value:null},K.createElement(b,(0,le.Z)({ref:ee,className:R()(_t,zt)},Xt,Ze)))},ye=K.forwardRef(q);ye.displayName="RawItem";var _e=ye,Le=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],se="responsive",be="invalidate";function O(F){return"+ ".concat(F.length," ...")}function Ee(F,U){var ee=F.prefixCls,de=ee===void 0?"rc-overflow":ee,Xe=F.data,tt=Xe===void 0?[]:Xe,nt=F.renderItem,_t=F.renderRawItem,Xt=F.itemKey,zt=F.itemWidth,Ze=zt===void 0?10:zt,fr=F.ssr,yr=F.style,Ar=F.className,vr=F.maxCount,Ce=F.renderRest,It=F.renderRawRest,Z=F.suffix,x=F.component,y=x===void 0?"div":x,k=F.itemComponent,fe=F.onVisibleChange,W=(0,Re.Z)(F,Le),Q=fr==="full",re=$(),Se=J(re,null),Be=(0,ae.Z)(Se,2),Te=Be[0],Ge=Be[1],ut=Te||0,$e=J(re,new Map),Je=(0,ae.Z)($e,2),At=Je[0],ze=Je[1],He=J(re,0),vt=(0,ae.Z)(He,2),jt=vt[0],Dt=vt[1],lr=J(re,0),gr=(0,ae.Z)(lr,2),ne=gr[0],we=gr[1],Vt=J(re,0),Ue=(0,ae.Z)(Vt,2),it=Ue[0],Rr=Ue[1],Tt=(0,K.useState)(null),Rt=(0,ae.Z)(Tt,2),$t=Rt[0],qe=Rt[1],pt=(0,K.useState)(null),rt=(0,ae.Z)(pt,2),Ht=rt[0],Oe=rt[1],$r=K.useMemo(function(){return Ht===null&&Q?Number.MAX_SAFE_INTEGER:Ht||0},[Ht,Te]),Bt=(0,K.useState)(!1),gn=(0,ae.Z)(Bt,2),On=gn[0],hi=gn[1],ti="".concat(de,"-item"),En=Math.max(jt,ne),Dn=vr===se,Ut=tt.length&&Dn,Dr=vr===be,Pr=Ut||typeof vr=="number"&&tt.length>vr,St=(0,K.useMemo)(function(){var cn=tt;return Ut?Te===null&&Q?cn=tt:cn=tt.slice(0,Math.min(tt.length,ut/Ze)):typeof vr=="number"&&(cn=tt.slice(0,vr)),cn},[tt,Ze,Te,vr,Ut]),mt=(0,K.useMemo)(function(){return Ut?tt.slice($r+1):tt.slice(St.length)},[tt,St,Ut,$r]),mr=(0,K.useCallback)(function(cn,sr){var cr;return typeof Xt=="function"?Xt(cn):(cr=Xt&&(cn==null?void 0:cn[Xt]))!==null&&cr!==void 0?cr:sr},[Xt]),xr=(0,K.useCallback)(nt||function(cn){return cn},[nt]);function on(cn,sr,cr){Ht===cn&&(sr===void 0||sr===$t)||(Oe(cn),cr||(hi(cn<tt.length-1),fe==null||fe(cn)),sr!==void 0&&qe(sr))}function kr(cn,sr){Ge(sr.clientWidth)}function un(cn,sr){ze(function(cr){var pr=new Map(cr);return sr===null?pr.delete(cn):pr.set(cn,sr),pr})}function nn(cn,sr){we(sr),Dt(ne)}function _n(cn,sr){Rr(sr)}function Un(cn){return At.get(mr(St[cn],cn))}(0,l.Z)(function(){if(ut&&typeof En=="number"&&St){var cn=it,sr=St.length,cr=sr-1;if(!sr){on(0,null);return}for(var pr=0;pr<sr;pr+=1){var Fr=Un(pr);if(Q&&(Fr=Fr||0),Fr===void 0){on(pr-1,void 0,!0);break}if(cn+=Fr,cr===0&&cn<=ut||pr===cr-1&&cn+Un(cr)<=ut){on(cr,null);break}else if(cn+En>ut){on(pr-1,cn-Fr-it+ne);break}}Z&&Un(0)+it>ut&&qe(null)}},[ut,At,ne,it,mr,St]);var vn=On&&!!mt.length,Hr={};$t!==null&&Ut&&(Hr={position:"absolute",left:$t,top:0});var Kr={prefixCls:ti,responsive:Ut,component:k,invalidate:Dr},qr=_t?function(cn,sr){var cr=mr(cn,sr);return K.createElement(te.Provider,{key:cr,value:(0,Fe.Z)((0,Fe.Z)({},Kr),{},{order:sr,item:cn,itemKey:cr,registerSize:un,display:sr<=$r})},_t(cn,sr))}:function(cn,sr){var cr=mr(cn,sr);return K.createElement(b,(0,le.Z)({},Kr,{order:sr,key:cr,item:cn,renderItem:xr,itemKey:cr,registerSize:un,display:sr<=$r}))},bn={order:vn?$r:Number.MAX_SAFE_INTEGER,className:"".concat(ti,"-rest"),registerSize:nn,display:vn},ln=Ce||O,ui=It?K.createElement(te.Provider,{value:(0,Fe.Z)((0,Fe.Z)({},Kr),bn)},It(mt)):K.createElement(b,(0,le.Z)({},Kr,bn),typeof ln=="function"?ln(mt):ln),jn=K.createElement(y,(0,le.Z)({className:R()(!Dr&&de,Ar),style:yr,ref:U},W),St.map(qr),Pr?ui:null,Z&&K.createElement(b,(0,le.Z)({},Kr,{responsive:Dn,responsiveDisabled:!Ut,order:$r,className:"".concat(ti,"-suffix"),registerSize:_n,display:!0,style:Hr}),Z));return Dn?K.createElement(T.Z,{onResize:kr,disabled:!Ut},jn):jn}var ue=K.forwardRef(Ee);ue.displayName="Overflow",ue.Item=_e,ue.RESPONSIVE=se,ue.INVALIDATE=be;var he=ue,ve=he},29301:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return be}});var le=E(72308),Fe=E(59301),ae=E(11592),Re=E(48736),K=E(77321),g=E(62853),R=E(76846),T=E(8654),l=Fe.createContext(null);function d(O){var Ee=O.children,ue=O.onBatchResize,he=Fe.useRef(0),ve=Fe.useRef([]),F=Fe.useContext(l),U=Fe.useCallback(function(ee,de,Xe){he.current+=1;var tt=he.current;ve.current.push({size:ee,element:de,data:Xe}),Promise.resolve().then(function(){tt===he.current&&(ue==null||ue(ve.current),ve.current=[])}),F==null||F(ee,de,Xe)},[ue,F]);return Fe.createElement(l.Provider,{value:U},Ee)}var N=E(76374),v=new Map;function m(O){O.forEach(function(Ee){var ue,he=Ee.target;(ue=v.get(he))===null||ue===void 0||ue.forEach(function(ve){return ve(he)})})}var b=new N.Z(m),I=null,L=null;function z(O,Ee){v.has(O)||(v.set(O,new Set),b.observe(O)),v.get(O).add(Ee)}function P(O,Ee){v.has(O)&&(v.get(O).delete(Ee),v.get(O).size||(b.unobserve(O),v.delete(O)))}var $=E(96949),J=E(55090),te=E(77205),H=E(38793),G=function(O){(0,te.Z)(ue,O);var Ee=(0,H.Z)(ue);function ue(){return(0,$.Z)(this,ue),Ee.apply(this,arguments)}return(0,J.Z)(ue,[{key:"render",value:function(){return this.props.children}}]),ue}(Fe.Component);function ce(O,Ee){var ue=O.children,he=O.disabled,ve=Fe.useRef(null),F=Fe.useRef(null),U=Fe.useContext(l),ee=typeof ue=="function",de=ee?ue(ve):ue,Xe=Fe.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),tt=!ee&&Fe.isValidElement(de)&&(0,T.Yr)(de),nt=tt?(0,T.C4)(de):null,_t=(0,T.x1)(nt,ve),Xt=function(){var yr;return(0,R.ZP)(ve.current)||(ve.current&&(0,g.Z)(ve.current)==="object"?(0,R.ZP)((yr=ve.current)===null||yr===void 0?void 0:yr.nativeElement):null)||(0,R.ZP)(F.current)};Fe.useImperativeHandle(Ee,function(){return Xt()});var zt=Fe.useRef(O);zt.current=O;var Ze=Fe.useCallback(function(fr){var yr=zt.current,Ar=yr.onResize,vr=yr.data,Ce=fr.getBoundingClientRect(),It=Ce.width,Z=Ce.height,x=fr.offsetWidth,y=fr.offsetHeight,k=Math.floor(It),fe=Math.floor(Z);if(Xe.current.width!==k||Xe.current.height!==fe||Xe.current.offsetWidth!==x||Xe.current.offsetHeight!==y){var W={width:k,height:fe,offsetWidth:x,offsetHeight:y};Xe.current=W;var Q=x===Math.round(It)?It:x,re=y===Math.round(Z)?Z:y,Se=(0,K.Z)((0,K.Z)({},W),{},{offsetWidth:Q,offsetHeight:re});U==null||U(Se,fr,vr),Ar&&Promise.resolve().then(function(){Ar(Se,fr)})}},[]);return Fe.useEffect(function(){var fr=Xt();return fr&&!he&&z(fr,Ze),function(){return P(fr,Ze)}},[ve.current,he]),Fe.createElement(G,{ref:F},tt?Fe.cloneElement(de,{ref:_t}):de)}var q=Fe.forwardRef(ce),ye=q,_e="rc-observer-key";function Le(O,Ee){var ue=O.children,he=typeof ue=="function"?[ue]:(0,ae.Z)(ue);return he.map(function(ve,F){var U=(ve==null?void 0:ve.key)||"".concat(_e,"-").concat(F);return Fe.createElement(ye,(0,le.Z)({},O,{key:U,ref:F===0?Ee:void 0}),ve)})}var se=Fe.forwardRef(Le);se.Collection=d;var be=se},17115:function(tn,Mt,E){"use strict";E.d(Mt,{ZP:function(){return R}});var le=E(52487),Fe=E(59301),ae=E(47273),Re=0,K=(0,ae.Z)();function g(){var T;return K?(T=Re,Re+=1):T="TEST_OR_SSR",T}function R(T){var l=Fe.useState(),d=(0,le.Z)(l,2),N=d[0],v=d[1];return Fe.useEffect(function(){v("rc_select_".concat(g()))},[]),T||N}},77861:function(tn,Mt,E){"use strict";E.d(Mt,{Ac:function(){return Ge},Xo:function(){return we},Wx:function(){return Ue},ZP:function(){return Pr},lk:function(){return te}});var le=E(72308),Fe=E(80702),ae=E(49618),Re=E(77321),K=E(52487),g=E(74416),R=E(62853),T=E(18929),l=E(48736),d=E(59301),N=E(92310),v=E.n(N),m=E(34280),b=E(49658),I=E(10228),L=E(8654),z=function(mt){var mr=mt.className,xr=mt.customizeIcon,on=mt.customizeIconProps,kr=mt.onMouseDown,un=mt.onClick,nn=mt.children,_n;return typeof xr=="function"?_n=xr(on):_n=xr,d.createElement("span",{className:mr,onMouseDown:function(vn){vn.preventDefault(),kr&&kr(vn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:un,"aria-hidden":!0},_n!==void 0?_n:d.createElement("span",{className:v()(mr.split(/\s+/).map(function(Un){return"".concat(Un,"-icon")}))},nn))},P=z;function $(St,mt,mr,xr,on){var kr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,un=arguments.length>6?arguments[6]:void 0,nn=arguments.length>7?arguments[7]:void 0,_n=d.useMemo(function(){if((0,R.Z)(xr)==="object")return xr.clearIcon;if(on)return on},[xr,on]),Un=d.useMemo(function(){return!!(!kr&&xr&&(mr.length||un)&&!(nn==="combobox"&&un===""))},[xr,kr,mr.length,un,nn]);return{allowClear:Un,clearIcon:d.createElement(P,{className:"".concat(St,"-clear"),onMouseDown:mt,customizeIcon:_n},"\xD7")}}var J=d.createContext(null);function te(){return d.useContext(J)}function H(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,mt=d.useState(!1),mr=(0,K.Z)(mt,2),xr=mr[0],on=mr[1],kr=d.useRef(null),un=function(){window.clearTimeout(kr.current)};d.useEffect(function(){return un},[]);var nn=function(Un,vn){un(),kr.current=window.setTimeout(function(){on(Un),vn&&vn()},St)};return[xr,nn,un]}function G(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,mt=d.useRef(null),mr=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(mr.current)}},[]);function xr(on){(on||mt.current===null)&&(mt.current=on),window.clearTimeout(mr.current),mr.current=window.setTimeout(function(){mt.current=null},St)}return[function(){return mt.current},xr]}function ce(St,mt,mr,xr){var on=d.useRef(null);on.current={open:mt,triggerOpen:mr,customizedTrigger:xr},d.useEffect(function(){function kr(un){var nn;if(!((nn=on.current)!==null&&nn!==void 0&&nn.customizedTrigger)){var _n=un.target;_n.shadowRoot&&un.composed&&(_n=un.composedPath()[0]||_n),on.current.open&&St().filter(function(Un){return Un}).every(function(Un){return!Un.contains(_n)&&Un!==_n})&&on.current.triggerOpen(!1)}}return window.addEventListener("mousedown",kr),function(){return window.removeEventListener("mousedown",kr)}},[])}var q=E(26112),ye=E(11780),_e=function(mt,mr){var xr,on,kr=mt.prefixCls,un=mt.id,nn=mt.inputElement,_n=mt.disabled,Un=mt.tabIndex,vn=mt.autoFocus,Hr=mt.autoComplete,Kr=mt.editable,qr=mt.activeDescendantId,bn=mt.value,ln=mt.maxLength,ui=mt.onKeyDown,jn=mt.onMouseDown,cn=mt.onChange,sr=mt.onPaste,cr=mt.onCompositionStart,pr=mt.onCompositionEnd,Fr=mt.open,Br=mt.attrs,fn=nn||d.createElement("input",null),Nr=fn,Cn=Nr.ref,Rn=Nr.props,Kn=Rn.onKeyDown,Ai=Rn.onChange,ni=Rn.onMouseDown,mi=Rn.onCompositionStart,hr=Rn.onCompositionEnd,an=Rn.style;return(0,l.Kp)(!("maxLength"in fn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),fn=d.cloneElement(fn,(0,Re.Z)((0,Re.Z)((0,Re.Z)({type:"search"},Rn),{},{id:un,ref:(0,L.sQ)(mr,Cn),disabled:_n,tabIndex:Un,autoComplete:Hr||"off",autoFocus:vn,className:v()("".concat(kr,"-selection-search-input"),(xr=fn)===null||xr===void 0||(on=xr.props)===null||on===void 0?void 0:on.className),role:"combobox","aria-label":"Search","aria-expanded":Fr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(un,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(un,"_list"),"aria-activedescendant":Fr?qr:void 0},Br),{},{value:Kr?bn:"",maxLength:ln,readOnly:!Kr,unselectable:Kr?null:"on",style:(0,Re.Z)((0,Re.Z)({},an),{},{opacity:Kr?null:0}),onKeyDown:function(ri){ui(ri),Kn&&Kn(ri)},onMouseDown:function(ri){jn(ri),ni&&ni(ri)},onChange:function(ri){cn(ri),Ai&&Ai(ri)},onCompositionStart:function(ri){cr(ri),mi&&mi(ri)},onCompositionEnd:function(ri){pr(ri),hr&&hr(ri)},onPaste:sr})),fn},Le=d.forwardRef(_e);Le.displayName="Input";var se=Le;function be(St){return Array.isArray(St)?St:St!==void 0?[St]:[]}var O=typeof window!="undefined"&&window.document&&window.document.documentElement,Ee=O;function ue(St){return St!=null}function he(St){return!St&&St!==0}function ve(St){return["string","number"].includes((0,R.Z)(St))}function F(St){var mt=void 0;return St&&(ve(St.title)?mt=St.title.toString():ve(St.label)&&(mt=St.label.toString())),mt}function U(St,mt){Ee?d.useLayoutEffect(St,mt):d.useEffect(St,mt)}function ee(St){var mt;return(mt=St.key)!==null&&mt!==void 0?mt:St.value}var de=function(mt){mt.preventDefault(),mt.stopPropagation()},Xe=function(mt){var mr=mt.id,xr=mt.prefixCls,on=mt.values,kr=mt.open,un=mt.searchValue,nn=mt.autoClearSearchValue,_n=mt.inputRef,Un=mt.placeholder,vn=mt.disabled,Hr=mt.mode,Kr=mt.showSearch,qr=mt.autoFocus,bn=mt.autoComplete,ln=mt.activeDescendantId,ui=mt.tabIndex,jn=mt.removeIcon,cn=mt.maxTagCount,sr=mt.maxTagTextLength,cr=mt.maxTagPlaceholder,pr=cr===void 0?function(bi){return"+ ".concat(bi.length," ...")}:cr,Fr=mt.tagRender,Br=mt.onToggleOpen,fn=mt.onRemove,Nr=mt.onInputChange,Cn=mt.onInputPaste,Rn=mt.onInputKeyDown,Kn=mt.onInputMouseDown,Ai=mt.onInputCompositionStart,ni=mt.onInputCompositionEnd,mi=d.useRef(null),hr=(0,d.useState)(0),an=(0,K.Z)(hr,2),Xr=an[0],ri=an[1],zn=(0,d.useState)(!1),Hn=(0,K.Z)(zn,2),Xn=Hn[0],di=Hn[1],si="".concat(xr,"-selection"),_i=kr||Hr==="multiple"&&nn===!1||Hr==="tags"?un:"",ji=Hr==="tags"||Hr==="multiple"&&nn===!1||Kr&&(kr||Xn);U(function(){ri(mi.current.scrollWidth)},[_i]);function ii(bi,Hi,rs,Ci,is){return d.createElement("span",{className:v()("".concat(si,"-item"),(0,ae.Z)({},"".concat(si,"-item-disabled"),rs)),title:F(bi)},d.createElement("span",{className:"".concat(si,"-item-content")},Hi),Ci&&d.createElement(P,{className:"".concat(si,"-item-remove"),onMouseDown:de,onClick:is,customizeIcon:jn},"\xD7"))}function yn(bi,Hi,rs,Ci,is){var ai=function(Li){de(Li),Br(!kr)};return d.createElement("span",{onMouseDown:ai},Fr({label:Hi,value:bi,disabled:rs,closable:Ci,onClose:is}))}function Yt(bi){var Hi=bi.disabled,rs=bi.label,Ci=bi.value,is=!vn&&!Hi,ai=rs;if(typeof sr=="number"&&(typeof rs=="string"||typeof rs=="number")){var Zn=String(ai);Zn.length>sr&&(ai="".concat(Zn.slice(0,sr),"..."))}var Li=function(ls){ls&&ls.stopPropagation(),fn(bi)};return typeof Fr=="function"?yn(Ci,ai,Hi,is,Li):ii(bi,ai,Hi,is,Li)}function hn(bi){var Hi=typeof pr=="function"?pr(bi):pr;return ii({title:Hi},Hi,!1)}var Fn=d.createElement("div",{className:"".concat(si,"-search"),style:{width:Xr},onFocus:function(){di(!0)},onBlur:function(){di(!1)}},d.createElement(se,{ref:_n,open:kr,prefixCls:xr,id:mr,inputElement:null,disabled:vn,autoFocus:qr,autoComplete:bn,editable:ji,activeDescendantId:ln,value:_i,onKeyDown:Rn,onMouseDown:Kn,onChange:Nr,onPaste:Cn,onCompositionStart:Ai,onCompositionEnd:ni,tabIndex:ui,attrs:(0,q.Z)(mt,!0)}),d.createElement("span",{ref:mi,className:"".concat(si,"-search-mirror"),"aria-hidden":!0},_i,"\xA0")),$n=d.createElement(ye.Z,{prefixCls:"".concat(si,"-overflow"),data:on,renderItem:Yt,renderRest:hn,suffix:Fn,itemKey:ee,maxCount:cn});return d.createElement(d.Fragment,null,$n,!on.length&&!_i&&d.createElement("span",{className:"".concat(si,"-placeholder")},Un))},tt=Xe,nt=function(mt){var mr=mt.inputElement,xr=mt.prefixCls,on=mt.id,kr=mt.inputRef,un=mt.disabled,nn=mt.autoFocus,_n=mt.autoComplete,Un=mt.activeDescendantId,vn=mt.mode,Hr=mt.open,Kr=mt.values,qr=mt.placeholder,bn=mt.tabIndex,ln=mt.showSearch,ui=mt.searchValue,jn=mt.activeValue,cn=mt.maxLength,sr=mt.onInputKeyDown,cr=mt.onInputMouseDown,pr=mt.onInputChange,Fr=mt.onInputPaste,Br=mt.onInputCompositionStart,fn=mt.onInputCompositionEnd,Nr=mt.title,Cn=d.useState(!1),Rn=(0,K.Z)(Cn,2),Kn=Rn[0],Ai=Rn[1],ni=vn==="combobox",mi=ni||ln,hr=Kr[0],an=ui||"";ni&&jn&&!Kn&&(an=jn),d.useEffect(function(){ni&&Ai(!1)},[ni,jn]);var Xr=vn!=="combobox"&&!Hr&&!ln?!1:!!an,ri=Nr===void 0?F(hr):Nr,zn=function(){if(hr)return null;var Xn=Xr?{visibility:"hidden"}:void 0;return d.createElement("span",{className:"".concat(xr,"-selection-placeholder"),style:Xn},qr)};return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(xr,"-selection-search")},d.createElement(se,{ref:kr,prefixCls:xr,id:on,open:Hr,inputElement:mr,disabled:un,autoFocus:nn,autoComplete:_n,editable:mi,activeDescendantId:Un,value:an,onKeyDown:sr,onMouseDown:cr,onChange:function(Xn){Ai(!0),pr(Xn)},onPaste:Fr,onCompositionStart:Br,onCompositionEnd:fn,tabIndex:bn,attrs:(0,q.Z)(mt,!0),maxLength:ni?cn:void 0})),!ni&&hr?d.createElement("span",{className:"".concat(xr,"-selection-item"),title:ri,style:Xr?{visibility:"hidden"}:void 0},hr.label):null,zn())},_t=nt;function Xt(St){return![I.Z.ESC,I.Z.SHIFT,I.Z.BACKSPACE,I.Z.TAB,I.Z.WIN_KEY,I.Z.ALT,I.Z.META,I.Z.WIN_KEY_RIGHT,I.Z.CTRL,I.Z.SEMICOLON,I.Z.EQUALS,I.Z.CAPS_LOCK,I.Z.CONTEXT_MENU,I.Z.F1,I.Z.F2,I.Z.F3,I.Z.F4,I.Z.F5,I.Z.F6,I.Z.F7,I.Z.F8,I.Z.F9,I.Z.F10,I.Z.F11,I.Z.F12].includes(St)}var zt=function(mt,mr){var xr=(0,d.useRef)(null),on=(0,d.useRef)(!1),kr=mt.prefixCls,un=mt.open,nn=mt.mode,_n=mt.showSearch,Un=mt.tokenWithEnter,vn=mt.autoClearSearchValue,Hr=mt.onSearch,Kr=mt.onSearchSubmit,qr=mt.onToggleOpen,bn=mt.onInputKeyDown,ln=mt.domRef;d.useImperativeHandle(mr,function(){return{focus:function(){xr.current.focus()},blur:function(){xr.current.blur()}}});var ui=G(0),jn=(0,K.Z)(ui,2),cn=jn[0],sr=jn[1],cr=function(an){var Xr=an.which;(Xr===I.Z.UP||Xr===I.Z.DOWN)&&an.preventDefault(),bn&&bn(an),Xr===I.Z.ENTER&&nn==="tags"&&!on.current&&!un&&(Kr==null||Kr(an.target.value)),Xt(Xr)&&qr(!0)},pr=function(){sr(!0)},Fr=(0,d.useRef)(null),Br=function(an){Hr(an,!0,on.current)!==!1&&qr(!0)},fn=function(){on.current=!0},Nr=function(an){on.current=!1,nn!=="combobox"&&Br(an.target.value)},Cn=function(an){var Xr=an.target.value;if(Un&&Fr.current&&/[\r\n]/.test(Fr.current)){var ri=Fr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Xr=Xr.replace(ri,Fr.current)}Fr.current=null,Br(Xr)},Rn=function(an){var Xr=an.clipboardData,ri=Xr.getData("text");Fr.current=ri},Kn=function(an){var Xr=an.target;if(Xr!==xr.current){var ri=document.body.style.msTouchAction!==void 0;ri?setTimeout(function(){xr.current.focus()}):xr.current.focus()}},Ai=function(an){var Xr=cn();an.target!==xr.current&&!Xr&&nn!=="combobox"&&an.preventDefault(),(nn!=="combobox"&&(!_n||!Xr)||!un)&&(un&&vn!==!1&&Hr("",!0,!1),qr())},ni={inputRef:xr,onInputKeyDown:cr,onInputMouseDown:pr,onInputChange:Cn,onInputPaste:Rn,onInputCompositionStart:fn,onInputCompositionEnd:Nr},mi=nn==="multiple"||nn==="tags"?d.createElement(tt,(0,le.Z)({},mt,ni)):d.createElement(_t,(0,le.Z)({},mt,ni));return d.createElement("div",{ref:ln,className:"".concat(kr,"-selector"),onClick:Kn,onMouseDown:Ai},mi)},Ze=d.forwardRef(zt);Ze.displayName="Selector";var fr=Ze,yr=E(35593),Ar=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],vr=function(mt){var mr=mt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:mr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:mr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:mr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:mr,adjustY:1},htmlRegion:"scroll"}}},Ce=function(mt,mr){var xr=mt.prefixCls,on=mt.disabled,kr=mt.visible,un=mt.children,nn=mt.popupElement,_n=mt.animation,Un=mt.transitionName,vn=mt.dropdownStyle,Hr=mt.dropdownClassName,Kr=mt.direction,qr=Kr===void 0?"ltr":Kr,bn=mt.placement,ln=mt.builtinPlacements,ui=mt.dropdownMatchSelectWidth,jn=mt.dropdownRender,cn=mt.dropdownAlign,sr=mt.getPopupContainer,cr=mt.empty,pr=mt.getTriggerDOMNode,Fr=mt.onPopupVisibleChange,Br=mt.onPopupMouseEnter,fn=(0,g.Z)(mt,Ar),Nr="".concat(xr,"-dropdown"),Cn=nn;jn&&(Cn=jn(nn));var Rn=d.useMemo(function(){return ln||vr(ui)},[ln,ui]),Kn=_n?"".concat(Nr,"-").concat(_n):Un,Ai=typeof ui=="number",ni=d.useMemo(function(){return Ai?null:ui===!1?"minWidth":"width"},[ui,Ai]),mi=vn;Ai&&(mi=(0,Re.Z)((0,Re.Z)({},mi),{},{width:ui}));var hr=d.useRef(null);return d.useImperativeHandle(mr,function(){return{getPopupElement:function(){return hr.current}}}),d.createElement(yr.Z,(0,le.Z)({},fn,{showAction:Fr?["click"]:[],hideAction:Fr?["click"]:[],popupPlacement:bn||(qr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Rn,prefixCls:Nr,popupTransitionName:Kn,popup:d.createElement("div",{ref:hr,onMouseEnter:Br},Cn),stretch:ni,popupAlign:cn,popupVisible:kr,getPopupContainer:sr,popupClassName:v()(Hr,(0,ae.Z)({},"".concat(Nr,"-empty"),cr)),popupStyle:mi,getTriggerDOMNode:pr,onPopupVisibleChange:Fr}),un)},It=d.forwardRef(Ce);It.displayName="SelectTrigger";var Z=It,x=E(68413);function y(St,mt){var mr=St.key,xr;return"value"in St&&(xr=St.value),mr!=null?mr:xr!==void 0?xr:"rc-index-key-".concat(mt)}function k(St,mt){var mr=St||{},xr=mr.label,on=mr.value,kr=mr.options,un=mr.groupLabel,nn=xr||(mt?"children":"label");return{label:nn,value:on||"value",options:kr||"options",groupLabel:un||nn}}function fe(St){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},mr=mt.fieldNames,xr=mt.childrenAsData,on=[],kr=k(mr,!1),un=kr.label,nn=kr.value,_n=kr.options,Un=kr.groupLabel;function vn(Hr,Kr){Hr.forEach(function(qr){if(Kr||!(_n in qr)){var bn=qr[nn];on.push({key:y(qr,on.length),groupOption:Kr,data:qr,label:qr[un],value:bn})}else{var ln=qr[Un];ln===void 0&&xr&&(ln=qr.label),on.push({key:y(qr,on.length),group:!0,data:qr,label:ln}),vn(qr[_n],!0)}})}return vn(St,!1),on}function W(St){var mt=(0,Re.Z)({},St);return"props"in mt||Object.defineProperty(mt,"props",{get:function(){return(0,l.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),mt}}),mt}function Q(St,mt){if(!mt||!mt.length)return null;var mr=!1;function xr(kr,un){var nn=(0,x.Z)(un),_n=nn[0],Un=nn.slice(1);if(!_n)return[kr];var vn=kr.split(_n);return mr=mr||vn.length>1,vn.reduce(function(Hr,Kr){return[].concat((0,Fe.Z)(Hr),(0,Fe.Z)(xr(Kr,Un)))},[]).filter(function(Hr){return Hr})}var on=xr(St,mt);return mr?on:null}var re=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Se=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Be(St){return St==="tags"||St==="multiple"}var Te=d.forwardRef(function(St,mt){var mr,xr,on=St.id,kr=St.prefixCls,un=St.className,nn=St.showSearch,_n=St.tagRender,Un=St.direction,vn=St.omitDomProps,Hr=St.displayValues,Kr=St.onDisplayValuesChange,qr=St.emptyOptions,bn=St.notFoundContent,ln=bn===void 0?"Not Found":bn,ui=St.onClear,jn=St.mode,cn=St.disabled,sr=St.loading,cr=St.getInputElement,pr=St.getRawInputElement,Fr=St.open,Br=St.defaultOpen,fn=St.onDropdownVisibleChange,Nr=St.activeValue,Cn=St.onActiveValueChange,Rn=St.activeDescendantId,Kn=St.searchValue,Ai=St.autoClearSearchValue,ni=St.onSearch,mi=St.onSearchSplit,hr=St.tokenSeparators,an=St.allowClear,Xr=St.suffixIcon,ri=St.clearIcon,zn=St.OptionList,Hn=St.animation,Xn=St.transitionName,di=St.dropdownStyle,si=St.dropdownClassName,_i=St.dropdownMatchSelectWidth,ji=St.dropdownRender,ii=St.dropdownAlign,yn=St.placement,Yt=St.builtinPlacements,hn=St.getPopupContainer,Fn=St.showAction,$n=Fn===void 0?[]:Fn,bi=St.onFocus,Hi=St.onBlur,rs=St.onKeyUp,Ci=St.onKeyDown,is=St.onMouseDown,ai=(0,g.Z)(St,re),Zn=Be(jn),Li=(nn!==void 0?nn:Zn)||jn==="combobox",Mi=(0,Re.Z)({},ai);Se.forEach(function(ds){delete Mi[ds]}),vn==null||vn.forEach(function(ds){delete Mi[ds]});var ls=d.useState(!1),js=(0,K.Z)(ls,2),Vn=js[0],us=js[1];d.useEffect(function(){us((0,b.Z)())},[]);var Wi=d.useRef(null),ps=d.useRef(null),Vs=d.useRef(null),vs=d.useRef(null),ss=d.useRef(null),gi=H(),Ui=(0,K.Z)(gi,3),Ws=Ui[0],Ti=Ui[1],Ds=Ui[2];d.useImperativeHandle(mt,function(){var ds,es;return{focus:(ds=vs.current)===null||ds===void 0?void 0:ds.focus,blur:(es=vs.current)===null||es===void 0?void 0:es.blur,scrollTo:function(Bs){var fs;return(fs=ss.current)===null||fs===void 0?void 0:fs.scrollTo(Bs)}}});var Ri=d.useMemo(function(){var ds;if(jn!=="combobox")return Kn;var es=(ds=Hr[0])===null||ds===void 0?void 0:ds.value;return typeof es=="string"||typeof es=="number"?String(es):""},[Kn,jn,Hr]),ks=jn==="combobox"&&typeof cr=="function"&&cr()||null,$i=typeof pr=="function"&&pr(),Pa=(0,L.x1)(ps,$i==null||(mr=$i.props)===null||mr===void 0?void 0:mr.ref),aa=d.useState(!1),Na=(0,K.Z)(aa,2),Vi=Na[0],Ga=Na[1];(0,m.Z)(function(){Ga(!0)},[]);var Rs=(0,T.Z)(!1,{defaultValue:Br,value:Fr}),Pn=(0,K.Z)(Rs,2),as=Pn[0],Ca=Pn[1],Bi=Vi?as:!1,Di=!ln&&qr;(cn||Di&&Bi&&jn==="combobox")&&(Bi=!1);var wi=Di?!1:Bi,vi=d.useCallback(function(ds){var es=ds!==void 0?ds:!Bi;cn||(Ca(es),Bi!==es&&(fn==null||fn(es)))},[cn,Bi,Ca,fn]),Yi=d.useMemo(function(){return(hr||[]).some(function(ds){return[`
|
|
|
`,`\r
|
|
|
`].includes(ds)})},[hr]),gs=function(es,pa,Bs){var fs=!0,ia=es;Cn==null||Cn(null);var Fs=Bs?null:Q(es,hr);return jn!=="combobox"&&Fs&&(ia="",mi==null||mi(Fs),vi(!1),fs=!1),ni&&Ri!==ia&&ni(ia,{source:pa?"typing":"effect"}),fs},na=function(es){!es||!es.trim()||ni(es,{source:"submit"})};d.useEffect(function(){!Bi&&!Zn&&jn!=="combobox"&&gs("",!1,!1)},[Bi]),d.useEffect(function(){as&&cn&&Ca(!1),cn&&Ti(!1)},[cn]);var Ks=G(),Os=(0,K.Z)(Ks,2),Qi=Os[0],Ys=Os[1],Za=function(es){var pa=Qi(),Bs=es.which;if(Bs===I.Z.ENTER&&(jn!=="combobox"&&es.preventDefault(),Bi||vi(!0)),Ys(!!Ri),Bs===I.Z.BACKSPACE&&!pa&&Zn&&!Ri&&Hr.length){for(var fs=(0,Fe.Z)(Hr),ia=null,Fs=fs.length-1;Fs>=0;Fs-=1){var da=fs[Fs];if(!da.disabled){fs.splice(Fs,1),ia=da;break}}ia&&Kr(fs,{type:"remove",values:[ia]})}for(var Wa=arguments.length,Mo=new Array(Wa>1?Wa-1:0),qa=1;qa<Wa;qa++)Mo[qa-1]=arguments[qa];if(Bi&&ss.current){var Eo;(Eo=ss.current).onKeyDown.apply(Eo,[es].concat(Mo))}Ci==null||Ci.apply(void 0,[es].concat(Mo))},la=function(es){for(var pa=arguments.length,Bs=new Array(pa>1?pa-1:0),fs=1;fs<pa;fs++)Bs[fs-1]=arguments[fs];if(Bi&&ss.current){var ia;(ia=ss.current).onKeyUp.apply(ia,[es].concat(Bs))}rs==null||rs.apply(void 0,[es].concat(Bs))},ua=function(es){var pa=Hr.filter(function(Bs){return Bs!==es});Kr(pa,{type:"remove",values:[es]})},Xs=d.useRef(!1),li=function(){Ti(!0),cn||(bi&&!Xs.current&&bi.apply(void 0,arguments),$n.includes("focus")&&vi(!0)),Xs.current=!0},oi=function(){Ti(!1,function(){Xs.current=!1,vi(!1)}),!cn&&(Ri&&(jn==="tags"?ni(Ri,{source:"submit"}):jn==="multiple"&&ni("",{source:"blur"})),Hi&&Hi.apply(void 0,arguments))},Ji=[];d.useEffect(function(){return function(){Ji.forEach(function(ds){return clearTimeout(ds)}),Ji.splice(0,Ji.length)}},[]);var $s=function(es){var pa,Bs=es.target,fs=(pa=Vs.current)===null||pa===void 0?void 0:pa.getPopupElement();if(fs&&fs.contains(Bs)){var ia=setTimeout(function(){var Mo=Ji.indexOf(ia);if(Mo!==-1&&Ji.splice(Mo,1),Ds(),!Vn&&!fs.contains(document.activeElement)){var qa;(qa=vs.current)===null||qa===void 0||qa.focus()}});Ji.push(ia)}for(var Fs=arguments.length,da=new Array(Fs>1?Fs-1:0),Wa=1;Wa<Fs;Wa++)da[Wa-1]=arguments[Wa];is==null||is.apply(void 0,[es].concat(da))},As=d.useState({}),ca=(0,K.Z)(As,2),ea=ca[1];function Va(){ea({})}var ta;$i&&(ta=function(es){vi(es)}),ce(function(){var ds;return[Wi.current,(ds=Vs.current)===null||ds===void 0?void 0:ds.getPopupElement()]},wi,vi,!!$i);var ci=d.useMemo(function(){return(0,Re.Z)((0,Re.Z)({},St),{},{notFoundContent:ln,open:Bi,triggerOpen:wi,id:on,showSearch:Li,multiple:Zn,toggleOpen:vi})},[St,ln,wi,Bi,on,Li,Zn,vi]),fl=!!Xr||sr,Aa;fl&&(Aa=d.createElement(P,{className:v()("".concat(kr,"-arrow"),(0,ae.Z)({},"".concat(kr,"-arrow-loading"),sr)),customizeIcon:Xr,customizeIconProps:{loading:sr,searchValue:Ri,open:Bi,focused:Ws,showSearch:Li}}));var ko=function(){var es;ui==null||ui(),(es=vs.current)===null||es===void 0||es.focus(),Kr([],{type:"clear",values:Hr}),gs("",!1,!1)},fa=$(kr,ko,Hr,an,ri,cn,Ri,jn),Sa=fa.allowClear,ys=fa.clearIcon,Ho=d.createElement(zn,{ref:ss}),Ko=v()(kr,un,(xr={},(0,ae.Z)(xr,"".concat(kr,"-focused"),Ws),(0,ae.Z)(xr,"".concat(kr,"-multiple"),Zn),(0,ae.Z)(xr,"".concat(kr,"-single"),!Zn),(0,ae.Z)(xr,"".concat(kr,"-allow-clear"),an),(0,ae.Z)(xr,"".concat(kr,"-show-arrow"),fl),(0,ae.Z)(xr,"".concat(kr,"-disabled"),cn),(0,ae.Z)(xr,"".concat(kr,"-loading"),sr),(0,ae.Z)(xr,"".concat(kr,"-open"),Bi),(0,ae.Z)(xr,"".concat(kr,"-customize-input"),ks),(0,ae.Z)(xr,"".concat(kr,"-show-search"),Li),xr)),Fo=d.createElement(Z,{ref:Vs,disabled:cn,prefixCls:kr,visible:wi,popupElement:Ho,animation:Hn,transitionName:Xn,dropdownStyle:di,dropdownClassName:si,direction:Un,dropdownMatchSelectWidth:_i,dropdownRender:ji,dropdownAlign:ii,placement:yn,builtinPlacements:Yt,getPopupContainer:hn,empty:qr,getTriggerDOMNode:function(){return ps.current},onPopupVisibleChange:ta,onPopupMouseEnter:Va},$i?d.cloneElement($i,{ref:Pa}):d.createElement(fr,(0,le.Z)({},St,{domRef:ps,prefixCls:kr,inputElement:ks,ref:vs,id:on,showSearch:Li,autoClearSearchValue:Ai,mode:jn,activeDescendantId:Rn,tagRender:_n,values:Hr,open:Bi,onToggleOpen:vi,activeValue:Nr,searchValue:Ri,onSearch:gs,onSearchSubmit:na,onRemove:ua,tokenWithEnter:Yi}))),mo;return $i?mo=Fo:mo=d.createElement("div",(0,le.Z)({className:Ko},Mi,{ref:Wi,onMouseDown:$s,onKeyDown:Za,onKeyUp:la,onFocus:li,onBlur:oi}),Ws&&!Bi&&d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Hr.map(function(ds){var es=ds.label,pa=ds.value;return["number","string"].includes((0,R.Z)(es))?es:pa}).join(", "))),Fo,Aa,Sa&&ys),d.createElement(J.Provider,{value:ci},mo)}),Ge=Te,ut=function(St,mt){var mr=d.useRef({values:new Map,options:new Map}),xr=d.useMemo(function(){var kr=mr.current,un=kr.values,nn=kr.options,_n=St.map(function(Hr){if(Hr.label===void 0){var Kr;return(0,Re.Z)((0,Re.Z)({},Hr),{},{label:(Kr=un.get(Hr.value))===null||Kr===void 0?void 0:Kr.label})}return Hr}),Un=new Map,vn=new Map;return _n.forEach(function(Hr){Un.set(Hr.value,Hr),vn.set(Hr.value,mt.get(Hr.value)||nn.get(Hr.value))}),mr.current.values=Un,mr.current.options=vn,_n},[St,mt]),on=d.useCallback(function(kr){return mt.get(kr)||mr.current.options.get(kr)},[mt]);return[xr,on]};function $e(St,mt){return be(St).join("").toUpperCase().includes(mt)}var Je=function(St,mt,mr,xr,on){return d.useMemo(function(){if(!mr||xr===!1)return St;var kr=mt.options,un=mt.label,nn=mt.value,_n=[],Un=typeof xr=="function",vn=mr.toUpperCase(),Hr=Un?xr:function(qr,bn){return on?$e(bn[on],vn):bn[kr]?$e(bn[un!=="children"?un:"label"],vn):$e(bn[nn],vn)},Kr=Un?function(qr){return W(qr)}:function(qr){return qr};return St.forEach(function(qr){if(qr[kr]){var bn=Hr(mr,Kr(qr));if(bn)_n.push(qr);else{var ln=qr[kr].filter(function(ui){return Hr(mr,Kr(ui))});ln.length&&_n.push((0,Re.Z)((0,Re.Z)({},qr),{},(0,ae.Z)({},kr,ln)))}return}Hr(mr,Kr(qr))&&_n.push(qr)}),_n},[St,xr,on,mr,mt])},At=E(17115),ze=E(11592),He=["children","value"],vt=["children"];function jt(St){var mt=St,mr=mt.key,xr=mt.props,on=xr.children,kr=xr.value,un=(0,g.Z)(xr,He);return(0,Re.Z)({key:mr,value:kr!==void 0?kr:mr,children:on},un)}function Dt(St){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ze.Z)(St).map(function(mr,xr){if(!d.isValidElement(mr)||!mr.type)return null;var on=mr,kr=on.type.isSelectOptGroup,un=on.key,nn=on.props,_n=nn.children,Un=(0,g.Z)(nn,vt);return mt||!kr?jt(mr):(0,Re.Z)((0,Re.Z)({key:"__RC_SELECT_GRP__".concat(un===null?xr:un,"__"),label:un},Un),{},{options:Dt(_n)})}).filter(function(mr){return mr})}function lr(St,mt,mr,xr,on){return d.useMemo(function(){var kr=St,un=!St;un&&(kr=Dt(mt));var nn=new Map,_n=new Map,Un=function(Kr,qr,bn){bn&&typeof bn=="string"&&Kr.set(qr[bn],qr)};function vn(Hr){for(var Kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qr=0;qr<Hr.length;qr+=1){var bn=Hr[qr];!bn[mr.options]||Kr?(nn.set(bn[mr.value],bn),Un(_n,bn,mr.label),Un(_n,bn,xr),Un(_n,bn,on)):vn(bn[mr.options],!0)}}return vn(kr),{options:kr,valueOptions:nn,labelOptions:_n}},[St,mt,mr,xr,on])}function gr(St){var mt=d.useRef();mt.current=St;var mr=d.useCallback(function(){return mt.current.apply(mt,arguments)},[]);return mr}var ne=function(){return null};ne.isSelectOptGroup=!0;var we=ne,Vt=function(){return null};Vt.isSelectOption=!0;var Ue=Vt,it=E(80547),Rr=E(2738),Tt=E(45680),Rt=d.createContext(null),$t=Rt;function qe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var pt=["disabled","title","children","style","className"];function rt(St){return typeof St=="string"||typeof St=="number"}var Ht=function(mt,mr){var xr=te(),on=xr.prefixCls,kr=xr.id,un=xr.open,nn=xr.multiple,_n=xr.mode,Un=xr.searchValue,vn=xr.toggleOpen,Hr=xr.notFoundContent,Kr=xr.onPopupScroll,qr=d.useContext($t),bn=qr.flattenOptions,ln=qr.onActiveValue,ui=qr.defaultActiveFirstOption,jn=qr.onSelect,cn=qr.menuItemSelectedIcon,sr=qr.rawValues,cr=qr.fieldNames,pr=qr.virtual,Fr=qr.direction,Br=qr.listHeight,fn=qr.listItemHeight,Nr="".concat(on,"-item"),Cn=(0,it.Z)(function(){return bn},[un,bn],function(ii,yn){return yn[0]&&ii[1]!==yn[1]}),Rn=d.useRef(null),Kn=function(yn){yn.preventDefault()},Ai=function(yn){Rn.current&&Rn.current.scrollTo(typeof yn=="number"?{index:yn}:yn)},ni=function(yn){for(var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,hn=Cn.length,Fn=0;Fn<hn;Fn+=1){var $n=(yn+Fn*Yt+hn)%hn,bi=Cn[$n],Hi=bi.group,rs=bi.data;if(!Hi&&!rs.disabled)return $n}return-1},mi=d.useState(function(){return ni(0)}),hr=(0,K.Z)(mi,2),an=hr[0],Xr=hr[1],ri=function(yn){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Xr(yn);var hn={source:Yt?"keyboard":"mouse"},Fn=Cn[yn];if(!Fn){ln(null,-1,hn);return}ln(Fn.value,yn,hn)};(0,d.useEffect)(function(){ri(ui!==!1?ni(0):-1)},[Cn.length,Un]);var zn=d.useCallback(function(ii){return sr.has(ii)&&_n!=="combobox"},[_n,(0,Fe.Z)(sr).toString(),sr.size]);(0,d.useEffect)(function(){var ii=setTimeout(function(){if(!nn&&un&&sr.size===1){var Yt=Array.from(sr)[0],hn=Cn.findIndex(function(Fn){var $n=Fn.data;return $n.value===Yt});hn!==-1&&(ri(hn),Ai(hn))}});if(un){var yn;(yn=Rn.current)===null||yn===void 0||yn.scrollTo(void 0)}return function(){return clearTimeout(ii)}},[un,Un,bn.length]);var Hn=function(yn){yn!==void 0&&jn(yn,{selected:!sr.has(yn)}),nn||vn(!1)};if(d.useImperativeHandle(mr,function(){return{onKeyDown:function(yn){var Yt=yn.which,hn=yn.ctrlKey;switch(Yt){case I.Z.N:case I.Z.P:case I.Z.UP:case I.Z.DOWN:{var Fn=0;if(Yt===I.Z.UP?Fn=-1:Yt===I.Z.DOWN?Fn=1:qe()&&hn&&(Yt===I.Z.N?Fn=1:Yt===I.Z.P&&(Fn=-1)),Fn!==0){var $n=ni(an+Fn,Fn);Ai($n),ri($n,!0)}break}case I.Z.ENTER:{var bi=Cn[an];bi&&!bi.data.disabled?Hn(bi.value):Hn(void 0),un&&yn.preventDefault();break}case I.Z.ESC:vn(!1),un&&yn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yn){Ai(yn)}}}),Cn.length===0)return d.createElement("div",{role:"listbox",id:"".concat(kr,"_list"),className:"".concat(Nr,"-empty"),onMouseDown:Kn},Hr);var Xn=Object.keys(cr).map(function(ii){return cr[ii]}),di=function(yn){return yn.label};function si(ii,yn){var Yt=ii.group;return{role:Yt?"presentation":"option",id:"".concat(kr,"_list_").concat(yn)}}var _i=function(yn){var Yt=Cn[yn];if(!Yt)return null;var hn=Yt.data||{},Fn=hn.value,$n=Yt.group,bi=(0,q.Z)(hn,!0),Hi=di(Yt);return Yt?d.createElement("div",(0,le.Z)({"aria-label":typeof Hi=="string"&&!$n?Hi:null},bi,{key:yn},si(Yt,yn),{"aria-selected":zn(Fn)}),Fn):null},ji={role:"listbox",id:"".concat(kr,"_list")};return d.createElement(d.Fragment,null,pr&&d.createElement("div",(0,le.Z)({},ji,{style:{height:0,width:0,overflow:"hidden"}}),_i(an-1),_i(an),_i(an+1)),d.createElement(Tt.Z,{itemKey:"key",ref:Rn,data:Cn,height:Br,itemHeight:fn,fullHeight:!1,onMouseDown:Kn,onScroll:Kr,virtual:pr,direction:Fr,innerProps:pr?null:ji},function(ii,yn){var Yt,hn=ii.group,Fn=ii.groupOption,$n=ii.data,bi=ii.label,Hi=ii.value,rs=$n.key;if(hn){var Ci,is=(Ci=$n.title)!==null&&Ci!==void 0?Ci:rt(bi)?bi.toString():void 0;return d.createElement("div",{className:v()(Nr,"".concat(Nr,"-group")),title:is},bi!==void 0?bi:rs)}var ai=$n.disabled,Zn=$n.title,Li=$n.children,Mi=$n.style,ls=$n.className,js=(0,g.Z)($n,pt),Vn=(0,Rr.Z)(js,Xn),us=zn(Hi),Wi="".concat(Nr,"-option"),ps=v()(Nr,Wi,ls,(Yt={},(0,ae.Z)(Yt,"".concat(Wi,"-grouped"),Fn),(0,ae.Z)(Yt,"".concat(Wi,"-active"),an===yn&&!ai),(0,ae.Z)(Yt,"".concat(Wi,"-disabled"),ai),(0,ae.Z)(Yt,"".concat(Wi,"-selected"),us),Yt)),Vs=di(ii),vs=!cn||typeof cn=="function"||us,ss=typeof Vs=="number"?Vs:Vs||Hi,gi=rt(ss)?ss.toString():void 0;return Zn!==void 0&&(gi=Zn),d.createElement("div",(0,le.Z)({},(0,q.Z)(Vn),pr?{}:si(ii,yn),{"aria-selected":us,className:ps,title:gi,onMouseMove:function(){an===yn||ai||ri(yn)},onClick:function(){ai||Hn(Hi)},style:Mi}),d.createElement("div",{className:"".concat(Wi,"-content")},ss),d.isValidElement(cn)||us,vs&&d.createElement(P,{className:"".concat(Nr,"-option-state"),customizeIcon:cn,customizeIconProps:{isSelected:us}},us?"\u2713":null))}))},Oe=d.forwardRef(Ht);Oe.displayName="OptionList";var $r=Oe;function Bt(St){var mt=St.mode,mr=St.options,xr=St.children,on=St.backfill,kr=St.allowClear,un=St.placeholder,nn=St.getInputElement,_n=St.showSearch,Un=St.onSearch,vn=St.defaultOpen,Hr=St.autoFocus,Kr=St.labelInValue,qr=St.value,bn=St.inputValue,ln=St.optionLabelProp,ui=isMultiple(mt),jn=_n!==void 0?_n:ui||mt==="combobox",cn=mr||convertChildrenToData(xr);if(warning(mt!=="tags"||cn.every(function(Fr){return!Fr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),mt==="tags"||mt==="combobox"){var sr=cn.some(function(Fr){return Fr.options?Fr.options.some(function(Br){return typeof("value"in Br?Br.value:Br.key)=="number"}):typeof("value"in Fr?Fr.value:Fr.key)=="number"});warning(!sr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(mt!=="combobox"||!ln,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(mt==="combobox"||!on,"`backfill` only works with `combobox` mode."),warning(mt==="combobox"||!nn,"`getInputElement` only work with `combobox` mode."),noteOnce(mt!=="combobox"||!nn||!kr||!un,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Un&&!jn&&mt!=="combobox"&&mt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!vn||Hr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),qr!=null){var cr=toArray(qr);warning(!Kr||cr.every(function(Fr){return _typeof(Fr)==="object"&&("key"in Fr||"value"in Fr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!ui||Array.isArray(qr),"`value` should be array when `mode` is `multiple` or `tags`")}if(xr){var pr=null;toNodeArray(xr).some(function(Fr){if(!React.isValidElement(Fr)||!Fr.type)return!1;var Br=Fr,fn=Br.type;if(fn.isSelectOption)return!1;if(fn.isSelectOptGroup){var Nr=toNodeArray(Fr.props.children).every(function(Cn){return!React.isValidElement(Cn)||!Fr.type||Cn.type.isSelectOption?!0:(pr=Cn.type,!1)});return!Nr}return pr=fn,!0}),pr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(pr.displayName||pr.name||pr,"`.")),warning(bn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function gn(St,mt){if(St){var mr=function xr(on){for(var kr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,un=0;un<on.length;un++){var nn=on[un];if(nn[mt==null?void 0:mt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!kr&&Array.isArray(nn[mt==null?void 0:mt.options])&&xr(nn[mt==null?void 0:mt.options],!0))break}};mr(St)}}var On=null,hi=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ti=["inputValue"];function En(St){return!St||(0,R.Z)(St)!=="object"}var Dn=d.forwardRef(function(St,mt){var mr=St.id,xr=St.mode,on=St.prefixCls,kr=on===void 0?"rc-select":on,un=St.backfill,nn=St.fieldNames,_n=St.inputValue,Un=St.searchValue,vn=St.onSearch,Hr=St.autoClearSearchValue,Kr=Hr===void 0?!0:Hr,qr=St.onSelect,bn=St.onDeselect,ln=St.dropdownMatchSelectWidth,ui=ln===void 0?!0:ln,jn=St.filterOption,cn=St.filterSort,sr=St.optionFilterProp,cr=St.optionLabelProp,pr=St.options,Fr=St.children,Br=St.defaultActiveFirstOption,fn=St.menuItemSelectedIcon,Nr=St.virtual,Cn=St.direction,Rn=St.listHeight,Kn=Rn===void 0?200:Rn,Ai=St.listItemHeight,ni=Ai===void 0?20:Ai,mi=St.value,hr=St.defaultValue,an=St.labelInValue,Xr=St.onChange,ri=(0,g.Z)(St,hi),zn=(0,At.ZP)(mr),Hn=Be(xr),Xn=!!(!pr&&Fr),di=d.useMemo(function(){return jn===void 0&&xr==="combobox"?!1:jn},[jn,xr]),si=d.useMemo(function(){return k(nn,Xn)},[JSON.stringify(nn),Xn]),_i=(0,T.Z)("",{value:Un!==void 0?Un:_n,postState:function(Di){return Di||""}}),ji=(0,K.Z)(_i,2),ii=ji[0],yn=ji[1],Yt=lr(pr,Fr,si,sr,cr),hn=Yt.valueOptions,Fn=Yt.labelOptions,$n=Yt.options,bi=d.useCallback(function(Bi){var Di=be(Bi);return Di.map(function(wi){var vi,Yi,gs,na,Ks;if(En(wi))vi=wi;else{var Os;gs=wi.key,Yi=wi.label,vi=(Os=wi.value)!==null&&Os!==void 0?Os:gs}var Qi=hn.get(vi);if(Qi){var Ys;if(Yi===void 0&&(Yi=Qi==null?void 0:Qi[cr||si.label]),gs===void 0&&(gs=(Ys=Qi==null?void 0:Qi.key)!==null&&Ys!==void 0?Ys:vi),na=Qi==null?void 0:Qi.disabled,Ks=Qi==null?void 0:Qi.title,0)var Za}return{label:Yi,value:vi,key:gs,disabled:na,title:Ks}})},[si,cr,hn]),Hi=(0,T.Z)(hr,{value:mi}),rs=(0,K.Z)(Hi,2),Ci=rs[0],is=rs[1],ai=d.useMemo(function(){var Bi,Di=bi(Ci);return xr==="combobox"&&he((Bi=Di[0])===null||Bi===void 0?void 0:Bi.value)?[]:Di},[Ci,bi,xr]),Zn=ut(ai,hn),Li=(0,K.Z)(Zn,2),Mi=Li[0],ls=Li[1],js=d.useMemo(function(){if(!xr&&Mi.length===1){var Bi=Mi[0];if(Bi.value===null&&(Bi.label===null||Bi.label===void 0))return[]}return Mi.map(function(Di){var wi;return(0,Re.Z)((0,Re.Z)({},Di),{},{label:(wi=Di.label)!==null&&wi!==void 0?wi:Di.value})})},[xr,Mi]),Vn=d.useMemo(function(){return new Set(Mi.map(function(Bi){return Bi.value}))},[Mi]);d.useEffect(function(){if(xr==="combobox"){var Bi,Di=(Bi=Mi[0])===null||Bi===void 0?void 0:Bi.value;yn(ue(Di)?String(Di):"")}},[Mi]);var us=gr(function(Bi,Di){var wi,vi=Di!=null?Di:Bi;return wi={},(0,ae.Z)(wi,si.value,Bi),(0,ae.Z)(wi,si.label,vi),wi}),Wi=d.useMemo(function(){if(xr!=="tags")return $n;var Bi=(0,Fe.Z)($n),Di=function(vi){return hn.has(vi)};return(0,Fe.Z)(Mi).sort(function(wi,vi){return wi.value<vi.value?-1:1}).forEach(function(wi){var vi=wi.value;Di(vi)||Bi.push(us(vi,wi.label))}),Bi},[us,$n,hn,Mi,xr]),ps=Je(Wi,si,ii,di,sr),Vs=d.useMemo(function(){return xr!=="tags"||!ii||ps.some(function(Bi){return Bi[sr||"value"]===ii})||ps.some(function(Bi){return Bi[si.value]===ii})?ps:[us(ii)].concat((0,Fe.Z)(ps))},[us,sr,xr,ps,ii,si]),vs=d.useMemo(function(){return cn?(0,Fe.Z)(Vs).sort(function(Bi,Di){return cn(Bi,Di)}):Vs},[Vs,cn]),ss=d.useMemo(function(){return fe(vs,{fieldNames:si,childrenAsData:Xn})},[vs,si,Xn]),gi=function(Di){var wi=bi(Di);if(is(wi),Xr&&(wi.length!==Mi.length||wi.some(function(gs,na){var Ks;return((Ks=Mi[na])===null||Ks===void 0?void 0:Ks.value)!==(gs==null?void 0:gs.value)}))){var vi=an?wi:wi.map(function(gs){return gs.value}),Yi=wi.map(function(gs){return W(ls(gs.value))});Xr(Hn?vi:vi[0],Hn?Yi:Yi[0])}},Ui=d.useState(null),Ws=(0,K.Z)(Ui,2),Ti=Ws[0],Ds=Ws[1],Ri=d.useState(0),ks=(0,K.Z)(Ri,2),$i=ks[0],Pa=ks[1],aa=Br!==void 0?Br:xr!=="combobox",Na=d.useCallback(function(Bi,Di){var wi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vi=wi.source,Yi=vi===void 0?"keyboard":vi;Pa(Di),un&&xr==="combobox"&&Bi!==null&&Yi==="keyboard"&&Ds(String(Bi))},[un,xr]),Vi=function(Di,wi,vi){var Yi=function(){var Xs,li=ls(Di);return[an?{label:li==null?void 0:li[si.label],value:Di,key:(Xs=li==null?void 0:li.key)!==null&&Xs!==void 0?Xs:Di}:Di,W(li)]};if(wi&&qr){var gs=Yi(),na=(0,K.Z)(gs,2),Ks=na[0],Os=na[1];qr(Ks,Os)}else if(!wi&&bn&&vi!=="clear"){var Qi=Yi(),Ys=(0,K.Z)(Qi,2),Za=Ys[0],la=Ys[1];bn(Za,la)}},Ga=gr(function(Bi,Di){var wi,vi=Hn?Di.selected:!0;vi?wi=Hn?[].concat((0,Fe.Z)(Mi),[Bi]):[Bi]:wi=Mi.filter(function(Yi){return Yi.value!==Bi}),gi(wi),Vi(Bi,vi),xr==="combobox"?Ds(""):(!Be||Kr)&&(yn(""),Ds(""))}),Rs=function(Di,wi){gi(Di);var vi=wi.type,Yi=wi.values;(vi==="remove"||vi==="clear")&&Yi.forEach(function(gs){Vi(gs.value,!1,vi)})},Pn=function(Di,wi){if(yn(Di),Ds(null),wi.source==="submit"){var vi=(Di||"").trim();if(vi){var Yi=Array.from(new Set([].concat((0,Fe.Z)(Vn),[vi])));gi(Yi),Vi(vi,!0),yn("")}return}wi.source!=="blur"&&(xr==="combobox"&&gi(Di),vn==null||vn(Di))},as=function(Di){var wi=Di;xr!=="tags"&&(wi=Di.map(function(Yi){var gs=Fn.get(Yi);return gs==null?void 0:gs.value}).filter(function(Yi){return Yi!==void 0}));var vi=Array.from(new Set([].concat((0,Fe.Z)(Vn),(0,Fe.Z)(wi))));gi(vi),vi.forEach(function(Yi){Vi(Yi,!0)})},Ca=d.useMemo(function(){var Bi=Nr!==!1&&ui!==!1;return(0,Re.Z)((0,Re.Z)({},Yt),{},{flattenOptions:ss,onActiveValue:Na,defaultActiveFirstOption:aa,onSelect:Ga,menuItemSelectedIcon:fn,rawValues:Vn,fieldNames:si,virtual:Bi,direction:Cn,listHeight:Kn,listItemHeight:ni,childrenAsData:Xn})},[Yt,ss,Na,aa,Ga,fn,Vn,si,Nr,ui,Kn,ni,Xn]);return d.createElement($t.Provider,{value:Ca},d.createElement(Ge,(0,le.Z)({},ri,{id:zn,prefixCls:kr,ref:mt,omitDomProps:ti,mode:xr,displayValues:js,onDisplayValuesChange:Rs,direction:Cn,searchValue:ii,onSearch:Pn,autoClearSearchValue:Kr,onSearchSplit:as,dropdownMatchSelectWidth:ui,OptionList:$r,emptyOptions:!ss.length,activeValue:Ti,activeDescendantId:"".concat(zn,"_list_").concat($i)})))}),Ut=Dn;Ut.Option=Ue,Ut.OptGroup=we;var Dr=Ut,Pr=Dr},9296:function(tn,Mt,E){"use strict";E.r(Mt),E.d(Mt,{ResizableTextArea:function(){return Le},default:function(){return he}});var le=E(72308),Fe=E(77321),ae=E(49618),Re=E(62853),K=E(52487),g=E(74416),R=E(80702),T=E(92310),l=E.n(T),d=E(93681),N=E(5643),v=E(18929),m=E(59301),b=E(29301),I=E(34280),L=E(16089),z=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,P=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],$={},J;function te(ve){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=ve.getAttribute("id")||ve.getAttribute("data-reactid")||ve.getAttribute("name");if(F&&$[U])return $[U];var ee=window.getComputedStyle(ve),de=ee.getPropertyValue("box-sizing")||ee.getPropertyValue("-moz-box-sizing")||ee.getPropertyValue("-webkit-box-sizing"),Xe=parseFloat(ee.getPropertyValue("padding-bottom"))+parseFloat(ee.getPropertyValue("padding-top")),tt=parseFloat(ee.getPropertyValue("border-bottom-width"))+parseFloat(ee.getPropertyValue("border-top-width")),nt=P.map(function(Xt){return"".concat(Xt,":").concat(ee.getPropertyValue(Xt))}).join(";"),_t={sizingStyle:nt,paddingSize:Xe,borderSize:tt,boxSizing:de};return F&&U&&($[U]=_t),_t}function H(ve){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;J||(J=document.createElement("textarea"),J.setAttribute("tab-index","-1"),J.setAttribute("aria-hidden","true"),document.body.appendChild(J)),ve.getAttribute("wrap")?J.setAttribute("wrap",ve.getAttribute("wrap")):J.removeAttribute("wrap");var de=te(ve,F),Xe=de.paddingSize,tt=de.borderSize,nt=de.boxSizing,_t=de.sizingStyle;J.setAttribute("style","".concat(_t,";").concat(z)),J.value=ve.value||ve.placeholder||"";var Xt=void 0,zt=void 0,Ze,fr=J.scrollHeight;if(nt==="border-box"?fr+=tt:nt==="content-box"&&(fr-=Xe),U!==null||ee!==null){J.value=" ";var yr=J.scrollHeight-Xe;U!==null&&(Xt=yr*U,nt==="border-box"&&(Xt=Xt+Xe+tt),fr=Math.max(Xt,fr)),ee!==null&&(zt=yr*ee,nt==="border-box"&&(zt=zt+Xe+tt),Ze=fr>zt?"":"hidden",fr=Math.min(zt,fr))}var Ar={height:fr,overflowY:Ze,resize:"none"};return Xt&&(Ar.minHeight=Xt),zt&&(Ar.maxHeight=zt),Ar}var G=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ce=0,q=1,ye=2,_e=m.forwardRef(function(ve,F){var U=ve,ee=U.prefixCls,de=U.onPressEnter,Xe=U.defaultValue,tt=U.value,nt=U.autoSize,_t=U.onResize,Xt=U.className,zt=U.style,Ze=U.disabled,fr=U.onChange,yr=U.onInternalAutoSize,Ar=(0,g.Z)(U,G),vr=(0,v.Z)(Xe,{value:tt,postState:function(we){return we!=null?we:""}}),Ce=(0,K.Z)(vr,2),It=Ce[0],Z=Ce[1],x=function(we){Z(we.target.value),fr==null||fr(we)},y=m.useRef();m.useImperativeHandle(F,function(){return{textArea:y.current}});var k=m.useMemo(function(){return nt&&(0,Re.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),fe=(0,K.Z)(k,2),W=fe[0],Q=fe[1],re=!!nt,Se=function(){try{if(document.activeElement===y.current){var we=y.current,Vt=we.selectionStart,Ue=we.selectionEnd,it=we.scrollTop;y.current.setSelectionRange(Vt,Ue),y.current.scrollTop=it}}catch(Rr){}},Be=m.useState(ye),Te=(0,K.Z)(Be,2),Ge=Te[0],ut=Te[1],$e=m.useState(),Je=(0,K.Z)($e,2),At=Je[0],ze=Je[1],He=function(){ut(ce)};(0,I.Z)(function(){re&&He()},[tt,W,Q,re]),(0,I.Z)(function(){if(Ge===ce)ut(q);else if(Ge===q){var ne=H(y.current,!1,W,Q);ut(ye),ze(ne)}else Se()},[Ge]);var vt=m.useRef(),jt=function(){L.Z.cancel(vt.current)},Dt=function(we){Ge===ye&&(_t==null||_t(we),nt&&(jt(),vt.current=(0,L.Z)(function(){He()})))};m.useEffect(function(){return jt},[]);var lr=re?At:null,gr=(0,Fe.Z)((0,Fe.Z)({},zt),lr);return(Ge===ce||Ge===q)&&(gr.overflowY="hidden",gr.overflowX="hidden"),m.createElement(b.Z,{onResize:Dt,disabled:!(nt||_t)},m.createElement("textarea",(0,le.Z)({},Ar,{ref:y,style:gr,className:l()(ee,Xt,(0,ae.Z)({},"".concat(ee,"-disabled"),Ze)),disabled:Ze,value:It,onChange:x})))}),Le=_e,se=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function be(ve,F){return(0,R.Z)(ve||"").slice(0,F).join("")}function O(ve,F,U,ee){var de=U;return ve?de=be(U,ee):(0,R.Z)(F||"").length<U.length&&(0,R.Z)(U||"").length>ee&&(de=F),de}var Ee=m.forwardRef(function(ve,F){var U,ee=ve.defaultValue,de=ve.value,Xe=ve.onFocus,tt=ve.onBlur,nt=ve.onChange,_t=ve.allowClear,Xt=ve.maxLength,zt=ve.onCompositionStart,Ze=ve.onCompositionEnd,fr=ve.suffix,yr=ve.prefixCls,Ar=yr===void 0?"rc-textarea":yr,vr=ve.classes,Ce=ve.showCount,It=ve.className,Z=ve.style,x=ve.disabled,y=ve.hidden,k=ve.classNames,fe=ve.styles,W=ve.onResize,Q=(0,g.Z)(ve,se),re=(0,v.Z)(ee,{value:de,defaultValue:ee}),Se=(0,K.Z)(re,2),Be=Se[0],Te=Se[1],Ge=(0,m.useRef)(null),ut=m.useState(!1),$e=(0,K.Z)(ut,2),Je=$e[0],At=$e[1],ze=m.useState(!1),He=(0,K.Z)(ze,2),vt=He[0],jt=He[1],Dt=m.useRef(),lr=m.useRef(0),gr=m.useState(null),ne=(0,K.Z)(gr,2),we=ne[0],Vt=ne[1],Ue=function(){var En;(En=Ge.current)===null||En===void 0||En.textArea.focus()};(0,m.useImperativeHandle)(F,function(){return{resizableTextArea:Ge.current,focus:Ue,blur:function(){var En;(En=Ge.current)===null||En===void 0||En.textArea.blur()}}}),(0,m.useEffect)(function(){At(function(ti){return!x&&ti})},[x]);var it=Number(Xt)>0,Rr=function(En){jt(!0),Dt.current=Be,lr.current=En.currentTarget.selectionStart,zt==null||zt(En)},Tt=function(En){jt(!1);var Dn=En.currentTarget.value;if(it){var Ut,Dr=lr.current>=Xt+1||lr.current===((Ut=Dt.current)===null||Ut===void 0?void 0:Ut.length);Dn=O(Dr,Dt.current,Dn,Xt)}Dn!==Be&&(Te(Dn),(0,N.rJ)(En.currentTarget,En,nt,Dn)),Ze==null||Ze(En)},Rt=function(En){var Dn=En.target.value;if(!vt&&it){var Ut=En.target.selectionStart>=Xt+1||En.target.selectionStart===Dn.length||!En.target.selectionStart;Dn=O(Ut,Be,Dn,Xt)}Te(Dn),(0,N.rJ)(En.currentTarget,En,nt,Dn)},$t=function(En){var Dn=Q.onPressEnter,Ut=Q.onKeyDown;En.key==="Enter"&&Dn&&Dn(En),Ut==null||Ut(En)},qe=function(En){At(!0),Xe==null||Xe(En)},pt=function(En){At(!1),tt==null||tt(En)},rt=function(En){var Dn;Te(""),Ue(),(0,N.rJ)((Dn=Ge.current)===null||Dn===void 0?void 0:Dn.textArea,En,nt)},Ht=(0,N.D7)(Be);!vt&&it&&de==null&&(Ht=be(Ht,Xt));var Oe=fr,$r;if(Ce){var Bt=(0,R.Z)(Ht).length;(0,Re.Z)(Ce)==="object"?$r=Ce.formatter({value:Ht,count:Bt,maxLength:Xt}):$r="".concat(Bt).concat(it?" / ".concat(Xt):""),Oe=m.createElement(m.Fragment,null,Oe,m.createElement("span",{className:l()("".concat(Ar,"-data-count"),k==null?void 0:k.count),style:fe==null?void 0:fe.count},$r))}var gn=function(En){var Dn;W==null||W(En),(Dn=Ge.current)!==null&&Dn!==void 0&&Dn.textArea.style.height&&Vt(!0)},On=!Q.autoSize&&!Ce&&!_t,hi=m.createElement(d.BaseInput,{value:Ht,allowClear:_t,handleReset:rt,suffix:Oe,prefixCls:Ar,classes:{affixWrapper:l()(vr==null?void 0:vr.affixWrapper,(U={},(0,ae.Z)(U,"".concat(Ar,"-show-count"),Ce),(0,ae.Z)(U,"".concat(Ar,"-textarea-allow-clear"),_t),U))},disabled:x,focused:Je,className:It,style:(0,Fe.Z)((0,Fe.Z)({},Z),we&&!On?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $r=="string"?$r:void 0}},hidden:y,inputElement:m.createElement(Le,(0,le.Z)({},Q,{onKeyDown:$t,onChange:Rt,onFocus:qe,onBlur:pt,onCompositionStart:Rr,onCompositionEnd:Tt,className:k==null?void 0:k.textarea,style:(0,Fe.Z)((0,Fe.Z)({},fe==null?void 0:fe.textarea),{},{resize:Z==null?void 0:Z.resize}),disabled:x,prefixCls:Ar,onResize:gn,ref:Ge}))});return hi}),ue=Ee,he=ue},55477:function(tn,Mt,E){"use strict";E.d(Mt,{G:function(){return m},Z:function(){return z}});var le=E(72308),Fe=E(77321),ae=E(74416),Re=E(35593),K=E(59301),g={shiftX:64,adjustY:1},R={adjustX:1,shiftY:!0},T=[0,0],l={left:{points:["cr","cl"],overflow:R,offset:[-4,0],targetOffset:T},right:{points:["cl","cr"],overflow:R,offset:[4,0],targetOffset:T},top:{points:["bc","tc"],overflow:g,offset:[0,-4],targetOffset:T},bottom:{points:["tc","bc"],overflow:g,offset:[0,4],targetOffset:T},topLeft:{points:["bl","tl"],overflow:g,offset:[0,-4],targetOffset:T},leftTop:{points:["tr","tl"],overflow:R,offset:[-4,0],targetOffset:T},topRight:{points:["br","tr"],overflow:g,offset:[0,-4],targetOffset:T},rightTop:{points:["tl","tr"],overflow:R,offset:[4,0],targetOffset:T},bottomRight:{points:["tr","br"],overflow:g,offset:[0,4],targetOffset:T},rightBottom:{points:["bl","br"],overflow:R,offset:[4,0],targetOffset:T},bottomLeft:{points:["tl","bl"],overflow:g,offset:[0,4],targetOffset:T},leftBottom:{points:["br","bl"],overflow:R,offset:[-4,0],targetOffset:T}},d=null,N=E(92310),v=E.n(N);function m(P){var $=P.children,J=P.prefixCls,te=P.id,H=P.overlayInnerStyle,G=P.className,ce=P.style;return K.createElement("div",{className:v()("".concat(J,"-content"),G),style:ce},K.createElement("div",{className:"".concat(J,"-inner"),id:te,role:"tooltip",style:H},typeof $=="function"?$():$))}var b=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],I=function($,J){var te=$.overlayClassName,H=$.trigger,G=H===void 0?["hover"]:H,ce=$.mouseEnterDelay,q=ce===void 0?0:ce,ye=$.mouseLeaveDelay,_e=ye===void 0?.1:ye,Le=$.overlayStyle,se=$.prefixCls,be=se===void 0?"rc-tooltip":se,O=$.children,Ee=$.onVisibleChange,ue=$.afterVisibleChange,he=$.transitionName,ve=$.animation,F=$.motion,U=$.placement,ee=U===void 0?"right":U,de=$.align,Xe=de===void 0?{}:de,tt=$.destroyTooltipOnHide,nt=tt===void 0?!1:tt,_t=$.defaultVisible,Xt=$.getTooltipContainer,zt=$.overlayInnerStyle,Ze=$.arrowContent,fr=$.overlay,yr=$.id,Ar=$.showArrow,vr=Ar===void 0?!0:Ar,Ce=(0,ae.Z)($,b),It=(0,K.useRef)(null);(0,K.useImperativeHandle)(J,function(){return It.current});var Z=(0,Fe.Z)({},Ce);"visible"in $&&(Z.popupVisible=$.visible);var x=function(){return K.createElement(m,{key:"content",prefixCls:be,id:yr,overlayInnerStyle:zt},fr)};return K.createElement(Re.Z,(0,le.Z)({popupClassName:te,prefixCls:be,popup:x,action:G,builtinPlacements:l,popupPlacement:ee,ref:It,popupAlign:Xe,getPopupContainer:Xt,onPopupVisibleChange:Ee,afterPopupVisibleChange:ue,popupTransitionName:he,popupAnimation:ve,popupMotion:F,defaultPopupVisible:_t,autoDestroy:nt,mouseLeaveDelay:_e,popupStyle:Le,mouseEnterDelay:q,arrow:vr},Z),O)},L=(0,K.forwardRef)(I),z=L},39417:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return q}});var le=E(72308),Fe=E(49618),ae=E(74416),Re=E(77321),K=E(96949),g=E(55090),R=E(80237),T=E(77205),l=E(38793),d=E(92310),N=E.n(d),v=E(26112),m=E(59301),b=E(39378),I=function(_e){for(var Le=_e.prefixCls,se=_e.level,be=_e.isStart,O=_e.isEnd,Ee="".concat(Le,"-indent-unit"),ue=[],he=0;he<se;he+=1){var ve;ue.push(m.createElement("span",{key:he,className:N()(Ee,(ve={},(0,Fe.Z)(ve,"".concat(Ee,"-start"),be[he]),(0,Fe.Z)(ve,"".concat(Ee,"-end"),O[he]),ve))}))}return m.createElement("span",{"aria-hidden":"true",className:"".concat(Le,"-indent")},ue)},L=m.memo(I),z=E(67841),P=E(71430),$=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],J="open",te="close",H="---",G=function(ye){(0,T.Z)(Le,ye);var _e=(0,l.Z)(Le);function Le(){var se;(0,K.Z)(this,Le);for(var be=arguments.length,O=new Array(be),Ee=0;Ee<be;Ee++)O[Ee]=arguments[Ee];return se=_e.call.apply(_e,[this].concat(O)),se.state={dragNodeHighlight:!1},se.selectHandle=void 0,se.cacheIndent=void 0,se.onSelectorClick=function(ue){var he=se.props.context.onNodeClick;he(ue,(0,P.F)(se.props)),se.isSelectable()?se.onSelect(ue):se.onCheck(ue)},se.onSelectorDoubleClick=function(ue){var he=se.props.context.onNodeDoubleClick;he(ue,(0,P.F)(se.props))},se.onSelect=function(ue){if(!se.isDisabled()){var he=se.props.context.onNodeSelect;he(ue,(0,P.F)(se.props))}},se.onCheck=function(ue){if(!se.isDisabled()){var he=se.props,ve=he.disableCheckbox,F=he.checked,U=se.props.context.onNodeCheck;if(!(!se.isCheckable()||ve)){var ee=!F;U(ue,(0,P.F)(se.props),ee)}}},se.onMouseEnter=function(ue){var he=se.props.context.onNodeMouseEnter;he(ue,(0,P.F)(se.props))},se.onMouseLeave=function(ue){var he=se.props.context.onNodeMouseLeave;he(ue,(0,P.F)(se.props))},se.onContextMenu=function(ue){var he=se.props.context.onNodeContextMenu;he(ue,(0,P.F)(se.props))},se.onDragStart=function(ue){var he=se.props.context.onNodeDragStart;ue.stopPropagation(),se.setState({dragNodeHighlight:!0}),he(ue,(0,R.Z)(se));try{ue.dataTransfer.setData("text/plain","")}catch(ve){}},se.onDragEnter=function(ue){var he=se.props.context.onNodeDragEnter;ue.preventDefault(),ue.stopPropagation(),he(ue,(0,R.Z)(se))},se.onDragOver=function(ue){var he=se.props.context.onNodeDragOver;ue.preventDefault(),ue.stopPropagation(),he(ue,(0,R.Z)(se))},se.onDragLeave=function(ue){var he=se.props.context.onNodeDragLeave;ue.stopPropagation(),he(ue,(0,R.Z)(se))},se.onDragEnd=function(ue){var he=se.props.context.onNodeDragEnd;ue.stopPropagation(),se.setState({dragNodeHighlight:!1}),he(ue,(0,R.Z)(se))},se.onDrop=function(ue){var he=se.props.context.onNodeDrop;ue.preventDefault(),ue.stopPropagation(),se.setState({dragNodeHighlight:!1}),he(ue,(0,R.Z)(se))},se.onExpand=function(ue){var he=se.props,ve=he.loading,F=he.context.onNodeExpand;ve||F(ue,(0,P.F)(se.props))},se.setSelectHandle=function(ue){se.selectHandle=ue},se.getNodeState=function(){var ue=se.props.expanded;return se.isLeaf()?null:ue?J:te},se.hasChildren=function(){var ue=se.props.eventKey,he=se.props.context.keyEntities,ve=(0,z.Z)(he,ue)||{},F=ve.children;return!!(F||[]).length},se.isLeaf=function(){var ue=se.props,he=ue.isLeaf,ve=ue.loaded,F=se.props.context.loadData,U=se.hasChildren();return he===!1?!1:he||!F&&!U||F&&ve&&!U},se.isDisabled=function(){var ue=se.props.disabled,he=se.props.context.disabled;return!!(he||ue)},se.isCheckable=function(){var ue=se.props.checkable,he=se.props.context.checkable;return!he||ue===!1?!1:he},se.syncLoadData=function(ue){var he=ue.expanded,ve=ue.loading,F=ue.loaded,U=se.props.context,ee=U.loadData,de=U.onNodeLoad;ve||ee&&he&&!se.isLeaf()&&!se.hasChildren()&&!F&&de((0,P.F)(se.props))},se.isDraggable=function(){var ue=se.props,he=ue.data,ve=ue.context.draggable;return!!(ve&&(!ve.nodeDraggable||ve.nodeDraggable(he)))},se.renderDragHandler=function(){var ue=se.props.context,he=ue.draggable,ve=ue.prefixCls;return he!=null&&he.icon?m.createElement("span",{className:"".concat(ve,"-draggable-icon")},he.icon):null},se.renderSwitcherIconDom=function(ue){var he=se.props.switcherIcon,ve=se.props.context.switcherIcon,F=he||ve;return typeof F=="function"?F((0,Re.Z)((0,Re.Z)({},se.props),{},{isLeaf:ue})):F},se.renderSwitcher=function(){var ue=se.props.expanded,he=se.props.context.prefixCls;if(se.isLeaf()){var ve=se.renderSwitcherIconDom(!0);return ve!==!1?m.createElement("span",{className:N()("".concat(he,"-switcher"),"".concat(he,"-switcher-noop"))},ve):null}var F=N()("".concat(he,"-switcher"),"".concat(he,"-switcher_").concat(ue?J:te)),U=se.renderSwitcherIconDom(!1);return U!==!1?m.createElement("span",{onClick:se.onExpand,className:F},U):null},se.renderCheckbox=function(){var ue=se.props,he=ue.checked,ve=ue.halfChecked,F=ue.disableCheckbox,U=se.props.context.prefixCls,ee=se.isDisabled(),de=se.isCheckable();if(!de)return null;var Xe=typeof de!="boolean"?de:null;return m.createElement("span",{className:N()("".concat(U,"-checkbox"),he&&"".concat(U,"-checkbox-checked"),!he&&ve&&"".concat(U,"-checkbox-indeterminate"),(ee||F)&&"".concat(U,"-checkbox-disabled")),onClick:se.onCheck},Xe)},se.renderIcon=function(){var ue=se.props.loading,he=se.props.context.prefixCls;return m.createElement("span",{className:N()("".concat(he,"-iconEle"),"".concat(he,"-icon__").concat(se.getNodeState()||"docu"),ue&&"".concat(he,"-icon_loading"))})},se.renderSelector=function(){var ue=se.state.dragNodeHighlight,he=se.props,ve=he.title,F=ve===void 0?H:ve,U=he.selected,ee=he.icon,de=he.loading,Xe=he.data,tt=se.props.context,nt=tt.prefixCls,_t=tt.showIcon,Xt=tt.icon,zt=tt.loadData,Ze=tt.titleRender,fr=se.isDisabled(),yr="".concat(nt,"-node-content-wrapper"),Ar;if(_t){var vr=ee||Xt;Ar=vr?m.createElement("span",{className:N()("".concat(nt,"-iconEle"),"".concat(nt,"-icon__customize"))},typeof vr=="function"?vr(se.props):vr):se.renderIcon()}else zt&&de&&(Ar=se.renderIcon());var Ce;typeof F=="function"?Ce=F(Xe):Ze?Ce=Ze(Xe):Ce=F;var It=m.createElement("span",{className:"".concat(nt,"-title")},Ce);return m.createElement("span",{ref:se.setSelectHandle,title:typeof F=="string"?F:"",className:N()("".concat(yr),"".concat(yr,"-").concat(se.getNodeState()||"normal"),!fr&&(U||ue)&&"".concat(nt,"-node-selected")),onMouseEnter:se.onMouseEnter,onMouseLeave:se.onMouseLeave,onContextMenu:se.onContextMenu,onClick:se.onSelectorClick,onDoubleClick:se.onSelectorDoubleClick},Ar,It,se.renderDropIndicator())},se.renderDropIndicator=function(){var ue=se.props,he=ue.disabled,ve=ue.eventKey,F=se.props.context,U=F.draggable,ee=F.dropLevelOffset,de=F.dropPosition,Xe=F.prefixCls,tt=F.indent,nt=F.dropIndicatorRender,_t=F.dragOverNodeKey,Xt=F.direction,zt=!!U,Ze=!he&&zt&&_t===ve,fr=tt!=null?tt:se.cacheIndent;return se.cacheIndent=tt,Ze?nt({dropPosition:de,dropLevelOffset:ee,indent:fr,prefixCls:Xe,direction:Xt}):null},se}return(0,g.Z)(Le,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var be=this.props.selectable,O=this.props.context.selectable;return typeof be=="boolean"?be:O}},{key:"render",value:function(){var be,O=this.props,Ee=O.eventKey,ue=O.className,he=O.style,ve=O.dragOver,F=O.dragOverGapTop,U=O.dragOverGapBottom,ee=O.isLeaf,de=O.isStart,Xe=O.isEnd,tt=O.expanded,nt=O.selected,_t=O.checked,Xt=O.halfChecked,zt=O.loading,Ze=O.domRef,fr=O.active,yr=O.data,Ar=O.onMouseMove,vr=O.selectable,Ce=(0,ae.Z)(O,$),It=this.props.context,Z=It.prefixCls,x=It.filterTreeNode,y=It.keyEntities,k=It.dropContainerKey,fe=It.dropTargetKey,W=It.draggingNodeKey,Q=this.isDisabled(),re=(0,v.Z)(Ce,{aria:!0,data:!0}),Se=(0,z.Z)(y,Ee)||{},Be=Se.level,Te=Xe[Xe.length-1],Ge=this.isDraggable(),ut=!Q&&Ge,$e=W===Ee,Je=vr!==void 0?{"aria-selected":!!vr}:void 0;return m.createElement("div",(0,le.Z)({ref:Ze,className:N()(ue,"".concat(Z,"-treenode"),(be={},(0,Fe.Z)(be,"".concat(Z,"-treenode-disabled"),Q),(0,Fe.Z)(be,"".concat(Z,"-treenode-switcher-").concat(tt?"open":"close"),!ee),(0,Fe.Z)(be,"".concat(Z,"-treenode-checkbox-checked"),_t),(0,Fe.Z)(be,"".concat(Z,"-treenode-checkbox-indeterminate"),Xt),(0,Fe.Z)(be,"".concat(Z,"-treenode-selected"),nt),(0,Fe.Z)(be,"".concat(Z,"-treenode-loading"),zt),(0,Fe.Z)(be,"".concat(Z,"-treenode-active"),fr),(0,Fe.Z)(be,"".concat(Z,"-treenode-leaf-last"),Te),(0,Fe.Z)(be,"".concat(Z,"-treenode-draggable"),Ge),(0,Fe.Z)(be,"dragging",$e),(0,Fe.Z)(be,"drop-target",fe===Ee),(0,Fe.Z)(be,"drop-container",k===Ee),(0,Fe.Z)(be,"drag-over",!Q&&ve),(0,Fe.Z)(be,"drag-over-gap-top",!Q&&F),(0,Fe.Z)(be,"drag-over-gap-bottom",!Q&&U),(0,Fe.Z)(be,"filter-node",x&&x((0,P.F)(this.props))),be)),style:he,draggable:ut,"aria-grabbed":$e,onDragStart:ut?this.onDragStart:void 0,onDragEnter:Ge?this.onDragEnter:void 0,onDragOver:Ge?this.onDragOver:void 0,onDragLeave:Ge?this.onDragLeave:void 0,onDrop:Ge?this.onDrop:void 0,onDragEnd:Ge?this.onDragEnd:void 0,onMouseMove:Ar},Je,re),m.createElement(L,{prefixCls:Z,level:Be,isStart:de,isEnd:Xe}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Le}(m.Component),ce=function(_e){return m.createElement(b.k.Consumer,null,function(Le){return m.createElement(G,(0,le.Z)({},_e,{context:Le}))})};ce.displayName="TreeNode",ce.isTreeNode=1;var q=ce},39378:function(tn,Mt,E){"use strict";E.d(Mt,{k:function(){return Fe}});var le=E(59301),Fe=le.createContext(null)},54844:function(tn,Mt,E){"use strict";E.d(Mt,{O:function(){return q.Z},Z:function(){return It}});var le=E(72308),Fe=E(49618),ae=E(62853),Re=E(77321),K=E(80702),g=E(96949),R=E(55090),T=E(80237),l=E(77205),d=E(38793),N=E(92310),v=E.n(N),m=E(10228),b=E(26112),I=E(48736),L=E(59301),z=E(39378);function P(Z){var x=Z.dropPosition,y=Z.dropLevelOffset,k=Z.indent,fe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(x){case-1:fe.top=0,fe.left=-y*k;break;case 1:fe.bottom=0,fe.left=-y*k;break;case 0:fe.bottom=0,fe.left=k;break}return L.createElement("div",{style:fe})}function $(Z){if(Z==null)throw new TypeError("Cannot destructure "+Z)}var J=E(52487),te=E(74416),H=E(34280),G=E(45680),ce=E(77900),q=E(39417);function ye(Z,x){var y=L.useState(!1),k=(0,J.Z)(y,2),fe=k[0],W=k[1];L.useLayoutEffect(function(){if(fe)return Z(),function(){x()}},[fe]),L.useLayoutEffect(function(){return W(!0),function(){W(!1)}},[])}var _e=E(71430),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],se=function(x,y){var k=x.className,fe=x.style,W=x.motion,Q=x.motionNodes,re=x.motionType,Se=x.onMotionStart,Be=x.onMotionEnd,Te=x.active,Ge=x.treeNodeRequiredProps,ut=(0,te.Z)(x,Le),$e=L.useState(!0),Je=(0,J.Z)($e,2),At=Je[0],ze=Je[1],He=L.useContext(z.k),vt=He.prefixCls,jt=Q&&re!=="hide";(0,H.Z)(function(){Q&&jt!==At&&ze(jt)},[Q]);var Dt=function(){Q&&Se()},lr=L.useRef(!1),gr=function(){Q&&!lr.current&&(lr.current=!0,Be())};ye(Dt,gr);var ne=function(Vt){jt===Vt&&gr()};return Q?L.createElement(ce.default,(0,le.Z)({ref:y,visible:At},W,{motionAppear:re==="show",onVisibleChanged:ne}),function(we,Vt){var Ue=we.className,it=we.style;return L.createElement("div",{ref:Vt,className:v()("".concat(vt,"-treenode-motion"),Ue),style:it},Q.map(function(Rr){var Tt=(0,le.Z)({},($(Rr.data),Rr.data)),Rt=Rr.title,$t=Rr.key,qe=Rr.isStart,pt=Rr.isEnd;delete Tt.children;var rt=(0,_e.H8)($t,Ge);return L.createElement(q.Z,(0,le.Z)({},Tt,rt,{title:Rt,active:Te,data:Rr.data,key:$t,isStart:qe,isEnd:pt}))}))}):L.createElement(q.Z,(0,le.Z)({domRef:y,className:k,style:fe},ut,{active:Te}))};se.displayName="MotionTreeNode";var be=L.forwardRef(se),O=be;function Ee(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],y=Z.length,k=x.length;if(Math.abs(y-k)!==1)return{add:!1,key:null};function fe(W,Q){var re=new Map;W.forEach(function(Be){re.set(Be,!0)});var Se=Q.filter(function(Be){return!re.has(Be)});return Se.length===1?Se[0]:null}return y<k?{add:!0,key:fe(Z,x)}:{add:!1,key:fe(x,Z)}}function ue(Z,x,y){var k=Z.findIndex(function(re){return re.key===y}),fe=Z[k+1],W=x.findIndex(function(re){return re.key===y});if(fe){var Q=x.findIndex(function(re){return re.key===fe.key});return x.slice(W+1,Q)}return x.slice(W+1)}var he=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ve={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},F=function(){},U="RC_TREE_MOTION_".concat(Math.random()),ee={key:U},de={key:U,level:0,index:0,pos:"0",node:ee,nodes:[ee]},Xe={parent:null,children:[],pos:de.pos,data:ee,title:null,key:U,isStart:[],isEnd:[]};function tt(Z,x,y,k){return x===!1||!y?Z:Z.slice(0,Math.ceil(y/k)+1)}function nt(Z){var x=Z.key,y=Z.pos;return(0,_e.km)(x,y)}function _t(Z){for(var x=String(Z.data.key),y=Z;y.parent;)y=y.parent,x="".concat(y.data.key," > ").concat(x);return x}var Xt=L.forwardRef(function(Z,x){var y=Z.prefixCls,k=Z.data,fe=Z.selectable,W=Z.checkable,Q=Z.expandedKeys,re=Z.selectedKeys,Se=Z.checkedKeys,Be=Z.loadedKeys,Te=Z.loadingKeys,Ge=Z.halfCheckedKeys,ut=Z.keyEntities,$e=Z.disabled,Je=Z.dragging,At=Z.dragOverNodeKey,ze=Z.dropPosition,He=Z.motion,vt=Z.height,jt=Z.itemHeight,Dt=Z.virtual,lr=Z.focusable,gr=Z.activeItem,ne=Z.focused,we=Z.tabIndex,Vt=Z.onKeyDown,Ue=Z.onFocus,it=Z.onBlur,Rr=Z.onActiveChange,Tt=Z.onListChangeStart,Rt=Z.onListChangeEnd,$t=(0,te.Z)(Z,he),qe=L.useRef(null),pt=L.useRef(null);L.useImperativeHandle(x,function(){return{scrollTo:function(Hr){qe.current.scrollTo(Hr)},getIndentWidth:function(){return pt.current.offsetWidth}}});var rt=L.useState(Q),Ht=(0,J.Z)(rt,2),Oe=Ht[0],$r=Ht[1],Bt=L.useState(k),gn=(0,J.Z)(Bt,2),On=gn[0],hi=gn[1],ti=L.useState(k),En=(0,J.Z)(ti,2),Dn=En[0],Ut=En[1],Dr=L.useState([]),Pr=(0,J.Z)(Dr,2),St=Pr[0],mt=Pr[1],mr=L.useState(null),xr=(0,J.Z)(mr,2),on=xr[0],kr=xr[1],un=L.useRef(k);un.current=k;function nn(){var vn=un.current;hi(vn),Ut(vn),mt([]),kr(null),Rt()}(0,H.Z)(function(){$r(Q);var vn=Ee(Oe,Q);if(vn.key!==null)if(vn.add){var Hr=On.findIndex(function(jn){var cn=jn.key;return cn===vn.key}),Kr=tt(ue(On,k,vn.key),Dt,vt,jt),qr=On.slice();qr.splice(Hr+1,0,Xe),Ut(qr),mt(Kr),kr("show")}else{var bn=k.findIndex(function(jn){var cn=jn.key;return cn===vn.key}),ln=tt(ue(k,On,vn.key),Dt,vt,jt),ui=k.slice();ui.splice(bn+1,0,Xe),Ut(ui),mt(ln),kr("hide")}else On!==k&&(hi(k),Ut(k))},[Q,k]),L.useEffect(function(){Je||nn()},[Je]);var _n=He?Dn:k,Un={expandedKeys:Q,selectedKeys:re,loadedKeys:Be,loadingKeys:Te,checkedKeys:Se,halfCheckedKeys:Ge,dragOverNodeKey:At,dropPosition:ze,keyEntities:ut};return L.createElement(L.Fragment,null,ne&&gr&&L.createElement("span",{style:ve,"aria-live":"assertive"},_t(gr)),L.createElement("div",null,L.createElement("input",{style:ve,disabled:lr===!1||$e,tabIndex:lr!==!1?we:null,onKeyDown:Vt,onFocus:Ue,onBlur:it,value:"",onChange:F,"aria-label":"for screen reader"})),L.createElement("div",{className:"".concat(y,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},L.createElement("div",{className:"".concat(y,"-indent")},L.createElement("div",{ref:pt,className:"".concat(y,"-indent-unit")}))),L.createElement(G.Z,(0,le.Z)({},$t,{data:_n,itemKey:nt,height:vt,fullHeight:!1,virtual:Dt,itemHeight:jt,prefixCls:"".concat(y,"-list"),ref:qe,onVisibleChange:function(Hr,Kr){var qr=new Set(Hr),bn=Kr.filter(function(ln){return!qr.has(ln)});bn.some(function(ln){return nt(ln)===U})&&nn()}}),function(vn){var Hr=vn.pos,Kr=(0,le.Z)({},($(vn.data),vn.data)),qr=vn.title,bn=vn.key,ln=vn.isStart,ui=vn.isEnd,jn=(0,_e.km)(bn,Hr);delete Kr.key,delete Kr.children;var cn=(0,_e.H8)(jn,Un);return L.createElement(O,(0,le.Z)({},Kr,cn,{title:qr,active:!!gr&&bn===gr.key,pos:Hr,data:vn.data,isStart:ln,isEnd:ui,motion:He,motionNodes:bn===U?St:null,motionType:on,onMotionStart:Tt,onMotionEnd:nn,treeNodeRequiredProps:Un,onMouseMove:function(){Rr(null)}}))}))});Xt.displayName="NodeList";var zt=Xt,Ze=E(35654),fr=E(90782),yr=E(67841),Ar=10,vr=function(Z){(0,l.Z)(y,Z);var x=(0,d.Z)(y);function y(){var k;(0,g.Z)(this,y);for(var fe=arguments.length,W=new Array(fe),Q=0;Q<fe;Q++)W[Q]=arguments[Q];return k=x.call.apply(x,[this].concat(W)),k.destroyed=!1,k.delayedDragEnterLogic=void 0,k.loadingRetryTimes={},k.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,_e.w$)()},k.dragStartMousePosition=null,k.dragNode=void 0,k.currentMouseOverDroppableNodeKey=null,k.listRef=L.createRef(),k.onNodeDragStart=function(re,Se){var Be=k.state,Te=Be.expandedKeys,Ge=Be.keyEntities,ut=k.props.onDragStart,$e=Se.props.eventKey;k.dragNode=Se,k.dragStartMousePosition={x:re.clientX,y:re.clientY};var Je=(0,Ze._5)(Te,$e);k.setState({draggingNodeKey:$e,dragChildrenKeys:(0,Ze.wA)($e,Ge),indent:k.listRef.current.getIndentWidth()}),k.setExpandedKeys(Je),window.addEventListener("dragend",k.onWindowDragEnd),ut==null||ut({event:re,node:(0,_e.F)(Se.props)})},k.onNodeDragEnter=function(re,Se){var Be=k.state,Te=Be.expandedKeys,Ge=Be.keyEntities,ut=Be.dragChildrenKeys,$e=Be.flattenNodes,Je=Be.indent,At=k.props,ze=At.onDragEnter,He=At.onExpand,vt=At.allowDrop,jt=At.direction,Dt=Se.props,lr=Dt.pos,gr=Dt.eventKey,ne=(0,T.Z)(k),we=ne.dragNode;if(k.currentMouseOverDroppableNodeKey!==gr&&(k.currentMouseOverDroppableNodeKey=gr),!we){k.resetDragState();return}var Vt=(0,Ze.OM)(re,we,Se,Je,k.dragStartMousePosition,vt,$e,Ge,Te,jt),Ue=Vt.dropPosition,it=Vt.dropLevelOffset,Rr=Vt.dropTargetKey,Tt=Vt.dropContainerKey,Rt=Vt.dropTargetPos,$t=Vt.dropAllowed,qe=Vt.dragOverNodeKey;if(ut.indexOf(Rr)!==-1||!$t){k.resetDragState();return}if(k.delayedDragEnterLogic||(k.delayedDragEnterLogic={}),Object.keys(k.delayedDragEnterLogic).forEach(function(pt){clearTimeout(k.delayedDragEnterLogic[pt])}),we.props.eventKey!==Se.props.eventKey&&(re.persist(),k.delayedDragEnterLogic[lr]=window.setTimeout(function(){if(k.state.draggingNodeKey!==null){var pt=(0,K.Z)(Te),rt=(0,yr.Z)(Ge,Se.props.eventKey);rt&&(rt.children||[]).length&&(pt=(0,Ze.L0)(Te,Se.props.eventKey)),"expandedKeys"in k.props||k.setExpandedKeys(pt),He==null||He(pt,{node:(0,_e.F)(Se.props),expanded:!0,nativeEvent:re.nativeEvent})}},800)),we.props.eventKey===Rr&&it===0){k.resetDragState();return}k.setState({dragOverNodeKey:qe,dropPosition:Ue,dropLevelOffset:it,dropTargetKey:Rr,dropContainerKey:Tt,dropTargetPos:Rt,dropAllowed:$t}),ze==null||ze({event:re,node:(0,_e.F)(Se.props),expandedKeys:Te})},k.onNodeDragOver=function(re,Se){var Be=k.state,Te=Be.dragChildrenKeys,Ge=Be.flattenNodes,ut=Be.keyEntities,$e=Be.expandedKeys,Je=Be.indent,At=k.props,ze=At.onDragOver,He=At.allowDrop,vt=At.direction,jt=(0,T.Z)(k),Dt=jt.dragNode;if(Dt){var lr=(0,Ze.OM)(re,Dt,Se,Je,k.dragStartMousePosition,He,Ge,ut,$e,vt),gr=lr.dropPosition,ne=lr.dropLevelOffset,we=lr.dropTargetKey,Vt=lr.dropContainerKey,Ue=lr.dropAllowed,it=lr.dropTargetPos,Rr=lr.dragOverNodeKey;Te.indexOf(we)!==-1||!Ue||(Dt.props.eventKey===we&&ne===0?k.state.dropPosition===null&&k.state.dropLevelOffset===null&&k.state.dropTargetKey===null&&k.state.dropContainerKey===null&&k.state.dropTargetPos===null&&k.state.dropAllowed===!1&&k.state.dragOverNodeKey===null||k.resetDragState():gr===k.state.dropPosition&&ne===k.state.dropLevelOffset&&we===k.state.dropTargetKey&&Vt===k.state.dropContainerKey&&it===k.state.dropTargetPos&&Ue===k.state.dropAllowed&&Rr===k.state.dragOverNodeKey||k.setState({dropPosition:gr,dropLevelOffset:ne,dropTargetKey:we,dropContainerKey:Vt,dropTargetPos:it,dropAllowed:Ue,dragOverNodeKey:Rr}),ze==null||ze({event:re,node:(0,_e.F)(Se.props)}))}},k.onNodeDragLeave=function(re,Se){k.currentMouseOverDroppableNodeKey===Se.props.eventKey&&!re.currentTarget.contains(re.relatedTarget)&&(k.resetDragState(),k.currentMouseOverDroppableNodeKey=null);var Be=k.props.onDragLeave;Be==null||Be({event:re,node:(0,_e.F)(Se.props)})},k.onWindowDragEnd=function(re){k.onNodeDragEnd(re,null,!0),window.removeEventListener("dragend",k.onWindowDragEnd)},k.onNodeDragEnd=function(re,Se){var Be=k.props.onDragEnd;k.setState({dragOverNodeKey:null}),k.cleanDragState(),Be==null||Be({event:re,node:(0,_e.F)(Se.props)}),k.dragNode=null,window.removeEventListener("dragend",k.onWindowDragEnd)},k.onNodeDrop=function(re,Se){var Be,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ge=k.state,ut=Ge.dragChildrenKeys,$e=Ge.dropPosition,Je=Ge.dropTargetKey,At=Ge.dropTargetPos,ze=Ge.dropAllowed;if(ze){var He=k.props.onDrop;if(k.setState({dragOverNodeKey:null}),k.cleanDragState(),Je!==null){var vt=(0,Re.Z)((0,Re.Z)({},(0,_e.H8)(Je,k.getTreeNodeRequiredProps())),{},{active:((Be=k.getActiveItem())===null||Be===void 0?void 0:Be.key)===Je,data:(0,yr.Z)(k.state.keyEntities,Je).node}),jt=ut.indexOf(Je)!==-1;(0,I.ZP)(!jt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Dt=(0,Ze.yx)(At),lr={event:re,node:(0,_e.F)(vt),dragNode:k.dragNode?(0,_e.F)(k.dragNode.props):null,dragNodesKeys:[k.dragNode.props.eventKey].concat(ut),dropToGap:$e!==0,dropPosition:$e+Number(Dt[Dt.length-1])};Te||He==null||He(lr),k.dragNode=null}}},k.cleanDragState=function(){var re=k.state.draggingNodeKey;re!==null&&k.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),k.dragStartMousePosition=null,k.currentMouseOverDroppableNodeKey=null},k.triggerExpandActionExpand=function(re,Se){var Be=k.state,Te=Be.expandedKeys,Ge=Be.flattenNodes,ut=Se.expanded,$e=Se.key,Je=Se.isLeaf;if(!(Je||re.shiftKey||re.metaKey||re.ctrlKey)){var At=Ge.filter(function(He){return He.key===$e})[0],ze=(0,_e.F)((0,Re.Z)((0,Re.Z)({},(0,_e.H8)($e,k.getTreeNodeRequiredProps())),{},{data:At.data}));k.setExpandedKeys(ut?(0,Ze._5)(Te,$e):(0,Ze.L0)(Te,$e)),k.onNodeExpand(re,ze)}},k.onNodeClick=function(re,Se){var Be=k.props,Te=Be.onClick,Ge=Be.expandAction;Ge==="click"&&k.triggerExpandActionExpand(re,Se),Te==null||Te(re,Se)},k.onNodeDoubleClick=function(re,Se){var Be=k.props,Te=Be.onDoubleClick,Ge=Be.expandAction;Ge==="doubleClick"&&k.triggerExpandActionExpand(re,Se),Te==null||Te(re,Se)},k.onNodeSelect=function(re,Se){var Be=k.state.selectedKeys,Te=k.state,Ge=Te.keyEntities,ut=Te.fieldNames,$e=k.props,Je=$e.onSelect,At=$e.multiple,ze=Se.selected,He=Se[ut.key],vt=!ze;vt?At?Be=(0,Ze.L0)(Be,He):Be=[He]:Be=(0,Ze._5)(Be,He);var jt=Be.map(function(Dt){var lr=(0,yr.Z)(Ge,Dt);return lr?lr.node:null}).filter(function(Dt){return Dt});k.setUncontrolledState({selectedKeys:Be}),Je==null||Je(Be,{event:"select",selected:vt,node:Se,selectedNodes:jt,nativeEvent:re.nativeEvent})},k.onNodeCheck=function(re,Se,Be){var Te=k.state,Ge=Te.keyEntities,ut=Te.checkedKeys,$e=Te.halfCheckedKeys,Je=k.props,At=Je.checkStrictly,ze=Je.onCheck,He=Se.key,vt,jt={event:"check",node:Se,checked:Be,nativeEvent:re.nativeEvent};if(At){var Dt=Be?(0,Ze.L0)(ut,He):(0,Ze._5)(ut,He),lr=(0,Ze._5)($e,He);vt={checked:Dt,halfChecked:lr},jt.checkedNodes=Dt.map(function(it){return(0,yr.Z)(Ge,it)}).filter(function(it){return it}).map(function(it){return it.node}),k.setUncontrolledState({checkedKeys:Dt})}else{var gr=(0,fr.S)([].concat((0,K.Z)(ut),[He]),!0,Ge),ne=gr.checkedKeys,we=gr.halfCheckedKeys;if(!Be){var Vt=new Set(ne);Vt.delete(He);var Ue=(0,fr.S)(Array.from(Vt),{checked:!1,halfCheckedKeys:we},Ge);ne=Ue.checkedKeys,we=Ue.halfCheckedKeys}vt=ne,jt.checkedNodes=[],jt.checkedNodesPositions=[],jt.halfCheckedKeys=we,ne.forEach(function(it){var Rr=(0,yr.Z)(Ge,it);if(Rr){var Tt=Rr.node,Rt=Rr.pos;jt.checkedNodes.push(Tt),jt.checkedNodesPositions.push({node:Tt,pos:Rt})}}),k.setUncontrolledState({checkedKeys:ne},!1,{halfCheckedKeys:we})}ze==null||ze(vt,jt)},k.onNodeLoad=function(re){var Se=re.key,Be=new Promise(function(Te,Ge){k.setState(function(ut){var $e=ut.loadedKeys,Je=$e===void 0?[]:$e,At=ut.loadingKeys,ze=At===void 0?[]:At,He=k.props,vt=He.loadData,jt=He.onLoad;if(!vt||Je.indexOf(Se)!==-1||ze.indexOf(Se)!==-1)return null;var Dt=vt(re);return Dt.then(function(){var lr=k.state.loadedKeys,gr=(0,Ze.L0)(lr,Se);jt==null||jt(gr,{event:"load",node:re}),k.setUncontrolledState({loadedKeys:gr}),k.setState(function(ne){return{loadingKeys:(0,Ze._5)(ne.loadingKeys,Se)}}),Te()}).catch(function(lr){if(k.setState(function(ne){return{loadingKeys:(0,Ze._5)(ne.loadingKeys,Se)}}),k.loadingRetryTimes[Se]=(k.loadingRetryTimes[Se]||0)+1,k.loadingRetryTimes[Se]>=Ar){var gr=k.state.loadedKeys;(0,I.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),k.setUncontrolledState({loadedKeys:(0,Ze.L0)(gr,Se)}),Te()}Ge(lr)}),{loadingKeys:(0,Ze.L0)(ze,Se)}})});return Be.catch(function(){}),Be},k.onNodeMouseEnter=function(re,Se){var Be=k.props.onMouseEnter;Be==null||Be({event:re,node:Se})},k.onNodeMouseLeave=function(re,Se){var Be=k.props.onMouseLeave;Be==null||Be({event:re,node:Se})},k.onNodeContextMenu=function(re,Se){var Be=k.props.onRightClick;Be&&(re.preventDefault(),Be({event:re,node:Se}))},k.onFocus=function(){var re=k.props.onFocus;k.setState({focused:!0});for(var Se=arguments.length,Be=new Array(Se),Te=0;Te<Se;Te++)Be[Te]=arguments[Te];re==null||re.apply(void 0,Be)},k.onBlur=function(){var re=k.props.onBlur;k.setState({focused:!1}),k.onActiveChange(null);for(var Se=arguments.length,Be=new Array(Se),Te=0;Te<Se;Te++)Be[Te]=arguments[Te];re==null||re.apply(void 0,Be)},k.getTreeNodeRequiredProps=function(){var re=k.state,Se=re.expandedKeys,Be=re.selectedKeys,Te=re.loadedKeys,Ge=re.loadingKeys,ut=re.checkedKeys,$e=re.halfCheckedKeys,Je=re.dragOverNodeKey,At=re.dropPosition,ze=re.keyEntities;return{expandedKeys:Se||[],selectedKeys:Be||[],loadedKeys:Te||[],loadingKeys:Ge||[],checkedKeys:ut||[],halfCheckedKeys:$e||[],dragOverNodeKey:Je,dropPosition:At,keyEntities:ze}},k.setExpandedKeys=function(re){var Se=k.state,Be=Se.treeData,Te=Se.fieldNames,Ge=(0,_e.oH)(Be,re,Te);k.setUncontrolledState({expandedKeys:re,flattenNodes:Ge},!0)},k.onNodeExpand=function(re,Se){var Be=k.state.expandedKeys,Te=k.state,Ge=Te.listChanging,ut=Te.fieldNames,$e=k.props,Je=$e.onExpand,At=$e.loadData,ze=Se.expanded,He=Se[ut.key];if(!Ge){var vt=Be.indexOf(He),jt=!ze;if((0,I.ZP)(ze&&vt!==-1||!ze&&vt===-1,"Expand state not sync with index check"),jt?Be=(0,Ze.L0)(Be,He):Be=(0,Ze._5)(Be,He),k.setExpandedKeys(Be),Je==null||Je(Be,{node:Se,expanded:jt,nativeEvent:re.nativeEvent}),jt&&At){var Dt=k.onNodeLoad(Se);Dt&&Dt.then(function(){var lr=(0,_e.oH)(k.state.treeData,Be,ut);k.setUncontrolledState({flattenNodes:lr})}).catch(function(){var lr=k.state.expandedKeys,gr=(0,Ze._5)(lr,He);k.setExpandedKeys(gr)})}}},k.onListChangeStart=function(){k.setUncontrolledState({listChanging:!0})},k.onListChangeEnd=function(){setTimeout(function(){k.setUncontrolledState({listChanging:!1})})},k.onActiveChange=function(re){var Se=k.state.activeKey,Be=k.props.onActiveChange;Se!==re&&(k.setState({activeKey:re}),re!==null&&k.scrollTo({key:re}),Be==null||Be(re))},k.getActiveItem=function(){var re=k.state,Se=re.activeKey,Be=re.flattenNodes;return Se===null?null:Be.find(function(Te){var Ge=Te.key;return Ge===Se})||null},k.offsetActiveKey=function(re){var Se=k.state,Be=Se.flattenNodes,Te=Se.activeKey,Ge=Be.findIndex(function(Je){var At=Je.key;return At===Te});Ge===-1&&re<0&&(Ge=Be.length),Ge=(Ge+re+Be.length)%Be.length;var ut=Be[Ge];if(ut){var $e=ut.key;k.onActiveChange($e)}else k.onActiveChange(null)},k.onKeyDown=function(re){var Se=k.state,Be=Se.activeKey,Te=Se.expandedKeys,Ge=Se.checkedKeys,ut=Se.fieldNames,$e=k.props,Je=$e.onKeyDown,At=$e.checkable,ze=$e.selectable;switch(re.which){case m.Z.UP:{k.offsetActiveKey(-1),re.preventDefault();break}case m.Z.DOWN:{k.offsetActiveKey(1),re.preventDefault();break}}var He=k.getActiveItem();if(He&&He.data){var vt=k.getTreeNodeRequiredProps(),jt=He.data.isLeaf===!1||!!(He.data[ut.children]||[]).length,Dt=(0,_e.F)((0,Re.Z)((0,Re.Z)({},(0,_e.H8)(Be,vt)),{},{data:He.data,active:!0}));switch(re.which){case m.Z.LEFT:{jt&&Te.includes(Be)?k.onNodeExpand({},Dt):He.parent&&k.onActiveChange(He.parent.key),re.preventDefault();break}case m.Z.RIGHT:{jt&&!Te.includes(Be)?k.onNodeExpand({},Dt):He.children&&He.children.length&&k.onActiveChange(He.children[0].key),re.preventDefault();break}case m.Z.ENTER:case m.Z.SPACE:{At&&!Dt.disabled&&Dt.checkable!==!1&&!Dt.disableCheckbox?k.onNodeCheck({},Dt,!Ge.includes(Be)):!At&&ze&&!Dt.disabled&&Dt.selectable!==!1&&k.onNodeSelect({},Dt);break}}}Je==null||Je(re)},k.setUncontrolledState=function(re){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!k.destroyed){var Te=!1,Ge=!0,ut={};Object.keys(re).forEach(function($e){if($e in k.props){Ge=!1;return}Te=!0,ut[$e]=re[$e]}),Te&&(!Se||Ge)&&k.setState((0,Re.Z)((0,Re.Z)({},ut),Be))}},k.scrollTo=function(re){k.listRef.current.scrollTo(re)},k}return(0,R.Z)(y,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var fe=this.props.activeKey;fe!==void 0&&fe!==this.state.activeKey&&(this.setState({activeKey:fe}),fe!==null&&this.scrollTo({key:fe}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var fe,W=this.state,Q=W.focused,re=W.flattenNodes,Se=W.keyEntities,Be=W.draggingNodeKey,Te=W.activeKey,Ge=W.dropLevelOffset,ut=W.dropContainerKey,$e=W.dropTargetKey,Je=W.dropPosition,At=W.dragOverNodeKey,ze=W.indent,He=this.props,vt=He.prefixCls,jt=He.className,Dt=He.style,lr=He.showLine,gr=He.focusable,ne=He.tabIndex,we=ne===void 0?0:ne,Vt=He.selectable,Ue=He.showIcon,it=He.icon,Rr=He.switcherIcon,Tt=He.draggable,Rt=He.checkable,$t=He.checkStrictly,qe=He.disabled,pt=He.motion,rt=He.loadData,Ht=He.filterTreeNode,Oe=He.height,$r=He.itemHeight,Bt=He.virtual,gn=He.titleRender,On=He.dropIndicatorRender,hi=He.onContextMenu,ti=He.onScroll,En=He.direction,Dn=He.rootClassName,Ut=He.rootStyle,Dr=(0,b.Z)(this.props,{aria:!0,data:!0}),Pr;return Tt&&((0,ae.Z)(Tt)==="object"?Pr=Tt:typeof Tt=="function"?Pr={nodeDraggable:Tt}:Pr={}),L.createElement(z.k.Provider,{value:{prefixCls:vt,selectable:Vt,showIcon:Ue,icon:it,switcherIcon:Rr,draggable:Pr,draggingNodeKey:Be,checkable:Rt,checkStrictly:$t,disabled:qe,keyEntities:Se,dropLevelOffset:Ge,dropContainerKey:ut,dropTargetKey:$e,dropPosition:Je,dragOverNodeKey:At,indent:ze,direction:En,dropIndicatorRender:On,loadData:rt,filterTreeNode:Ht,titleRender:gn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},L.createElement("div",{role:"tree",className:v()(vt,jt,Dn,(fe={},(0,Fe.Z)(fe,"".concat(vt,"-show-line"),lr),(0,Fe.Z)(fe,"".concat(vt,"-focused"),Q),(0,Fe.Z)(fe,"".concat(vt,"-active-focused"),Te!==null),fe)),style:Ut},L.createElement(zt,(0,le.Z)({ref:this.listRef,prefixCls:vt,style:Dt,data:re,disabled:qe,selectable:Vt,checkable:!!Rt,motion:pt,dragging:Be!==null,height:Oe,itemHeight:$r,virtual:Bt,focusable:gr,focused:Q,tabIndex:we,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:hi,onScroll:ti},this.getTreeNodeRequiredProps(),Dr))))}}],[{key:"getDerivedStateFromProps",value:function(fe,W){var Q=W.prevProps,re={prevProps:fe};function Se(gr){return!Q&&gr in fe||Q&&Q[gr]!==fe[gr]}var Be,Te=W.fieldNames;if(Se("fieldNames")&&(Te=(0,_e.w$)(fe.fieldNames),re.fieldNames=Te),Se("treeData")?Be=fe.treeData:Se("children")&&((0,I.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Be=(0,_e.zn)(fe.children)),Be){re.treeData=Be;var Ge=(0,_e.I8)(Be,{fieldNames:Te});re.keyEntities=(0,Re.Z)((0,Fe.Z)({},U,de),Ge.keyEntities)}var ut=re.keyEntities||W.keyEntities;if(Se("expandedKeys")||Q&&Se("autoExpandParent"))re.expandedKeys=fe.autoExpandParent||!Q&&fe.defaultExpandParent?(0,Ze.r7)(fe.expandedKeys,ut):fe.expandedKeys;else if(!Q&&fe.defaultExpandAll){var $e=(0,Re.Z)({},ut);delete $e[U],re.expandedKeys=Object.keys($e).map(function(gr){return $e[gr].key})}else!Q&&fe.defaultExpandedKeys&&(re.expandedKeys=fe.autoExpandParent||fe.defaultExpandParent?(0,Ze.r7)(fe.defaultExpandedKeys,ut):fe.defaultExpandedKeys);if(re.expandedKeys||delete re.expandedKeys,Be||re.expandedKeys){var Je=(0,_e.oH)(Be||W.treeData,re.expandedKeys||W.expandedKeys,Te);re.flattenNodes=Je}if(fe.selectable&&(Se("selectedKeys")?re.selectedKeys=(0,Ze.BT)(fe.selectedKeys,fe):!Q&&fe.defaultSelectedKeys&&(re.selectedKeys=(0,Ze.BT)(fe.defaultSelectedKeys,fe))),fe.checkable){var At;if(Se("checkedKeys")?At=(0,Ze.E6)(fe.checkedKeys)||{}:!Q&&fe.defaultCheckedKeys?At=(0,Ze.E6)(fe.defaultCheckedKeys)||{}:Be&&(At=(0,Ze.E6)(fe.checkedKeys)||{checkedKeys:W.checkedKeys,halfCheckedKeys:W.halfCheckedKeys}),At){var ze=At,He=ze.checkedKeys,vt=He===void 0?[]:He,jt=ze.halfCheckedKeys,Dt=jt===void 0?[]:jt;if(!fe.checkStrictly){var lr=(0,fr.S)(vt,!0,ut);vt=lr.checkedKeys,Dt=lr.halfCheckedKeys}re.checkedKeys=vt,re.halfCheckedKeys=Dt}}return Se("loadedKeys")&&(re.loadedKeys=fe.loadedKeys),re}}]),y}(L.Component);vr.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:P,allowDrop:function(){return!0},expandAction:!1},vr.TreeNode=q.Z;var Ce=vr,It=Ce},35654:function(tn,Mt,E){"use strict";E.d(Mt,{BT:function(){return L},E6:function(){return $},L0:function(){return d},OM:function(){return I},_5:function(){return l},r7:function(){return J},wA:function(){return v},yx:function(){return N}});var le=E(80702),Fe=E(62853),ae=E(48736),Re=E(59301),K=E(39417),g=E(67841),R=E(71430),T=null;function l(te,H){if(!te)return[];var G=te.slice(),ce=G.indexOf(H);return ce>=0&&G.splice(ce,1),G}function d(te,H){var G=(te||[]).slice();return G.indexOf(H)===-1&&G.push(H),G}function N(te){return te.split("-")}function v(te,H){var G=[],ce=(0,g.Z)(H,te);function q(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ye.forEach(function(_e){var Le=_e.key,se=_e.children;G.push(Le),q(se)})}return q(ce.children),G}function m(te){if(te.parent){var H=N(te.pos);return Number(H[H.length-1])===te.parent.children.length-1}return!1}function b(te){var H=N(te.pos);return Number(H[H.length-1])===0}function I(te,H,G,ce,q,ye,_e,Le,se,be){var O,Ee=te.clientX,ue=te.clientY,he=te.target.getBoundingClientRect(),ve=he.top,F=he.height,U=(be==="rtl"?-1:1)*(((q==null?void 0:q.x)||0)-Ee),ee=(U-12)/ce,de=(0,g.Z)(Le,G.props.eventKey);if(ue<ve+F/2){var Xe=_e.findIndex(function(It){return It.key===de.key}),tt=Xe<=0?0:Xe-1,nt=_e[tt].key;de=(0,g.Z)(Le,nt)}var _t=de.key,Xt=de,zt=de.key,Ze=0,fr=0;if(!se.includes(_t))for(var yr=0;yr<ee&&m(de);yr+=1)de=de.parent,fr+=1;var Ar=H.props.data,vr=de.node,Ce=!0;return b(de)&&de.level===0&&ue<ve+F/2&&ye({dragNode:Ar,dropNode:vr,dropPosition:-1})&&de.key===G.props.eventKey?Ze=-1:(Xt.children||[]).length&&se.includes(zt)?ye({dragNode:Ar,dropNode:vr,dropPosition:0})?Ze=0:Ce=!1:fr===0?ee>-1.5?ye({dragNode:Ar,dropNode:vr,dropPosition:1})?Ze=1:Ce=!1:ye({dragNode:Ar,dropNode:vr,dropPosition:0})?Ze=0:ye({dragNode:Ar,dropNode:vr,dropPosition:1})?Ze=1:Ce=!1:ye({dragNode:Ar,dropNode:vr,dropPosition:1})?Ze=1:Ce=!1,{dropPosition:Ze,dropLevelOffset:fr,dropTargetKey:de.key,dropTargetPos:de.pos,dragOverNodeKey:zt,dropContainerKey:Ze===0?null:((O=de.parent)===null||O===void 0?void 0:O.key)||null,dropAllowed:Ce}}function L(te,H){if(te){var G=H.multiple;return G?te.slice():te.length?[te[0]]:te}}var z=function(H){return H};function P(te,H){if(!te)return[];var G=H||{},ce=G.processProps,q=ce===void 0?z:ce,ye=Array.isArray(te)?te:[te];return ye.map(function(_e){var Le=_e.children,se=_objectWithoutProperties(_e,T),be=P(Le,H);return React.createElement(TreeNode,_extends({key:se.key},q(se)),be)})}function $(te){if(!te)return null;var H;if(Array.isArray(te))H={checkedKeys:te,halfCheckedKeys:void 0};else if((0,Fe.Z)(te)==="object")H={checkedKeys:te.checked||void 0,halfCheckedKeys:te.halfChecked||void 0};else return(0,ae.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return H}function J(te,H){var G=new Set;function ce(q){if(!G.has(q)){var ye=(0,g.Z)(H,q);if(ye){G.add(q);var _e=ye.parent,Le=ye.node;Le.disabled||_e&&ce(_e.key)}}}return(te||[]).forEach(function(q){ce(q)}),(0,le.Z)(G)}},90782:function(tn,Mt,E){"use strict";E.d(Mt,{S:function(){return R}});var le=E(48736),Fe=E(67841);function ae(T,l){var d=new Set;return T.forEach(function(N){l.has(N)||d.add(N)}),d}function Re(T){var l=T||{},d=l.disabled,N=l.disableCheckbox,v=l.checkable;return!!(d||N)||v===!1}function K(T,l,d,N){for(var v=new Set(T),m=new Set,b=0;b<=d;b+=1){var I=l.get(b)||new Set;I.forEach(function($){var J=$.key,te=$.node,H=$.children,G=H===void 0?[]:H;v.has(J)&&!N(te)&&G.filter(function(ce){return!N(ce.node)}).forEach(function(ce){v.add(ce.key)})})}for(var L=new Set,z=d;z>=0;z-=1){var P=l.get(z)||new Set;P.forEach(function($){var J=$.parent,te=$.node;if(!(N(te)||!$.parent||L.has($.parent.key))){if(N($.parent.node)){L.add(J.key);return}var H=!0,G=!1;(J.children||[]).filter(function(ce){return!N(ce.node)}).forEach(function(ce){var q=ce.key,ye=v.has(q);H&&!ye&&(H=!1),!G&&(ye||m.has(q))&&(G=!0)}),H&&v.add(J.key),G&&m.add(J.key),L.add(J.key)}})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(ae(m,v))}}function g(T,l,d,N,v){for(var m=new Set(T),b=new Set(l),I=0;I<=N;I+=1){var L=d.get(I)||new Set;L.forEach(function(J){var te=J.key,H=J.node,G=J.children,ce=G===void 0?[]:G;!m.has(te)&&!b.has(te)&&!v(H)&&ce.filter(function(q){return!v(q.node)}).forEach(function(q){m.delete(q.key)})})}b=new Set;for(var z=new Set,P=N;P>=0;P-=1){var $=d.get(P)||new Set;$.forEach(function(J){var te=J.parent,H=J.node;if(!(v(H)||!J.parent||z.has(J.parent.key))){if(v(J.parent.node)){z.add(te.key);return}var G=!0,ce=!1;(te.children||[]).filter(function(q){return!v(q.node)}).forEach(function(q){var ye=q.key,_e=m.has(ye);G&&!_e&&(G=!1),!ce&&(_e||b.has(ye))&&(ce=!0)}),G||m.delete(te.key),ce&&b.add(te.key),z.add(te.key)}})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(ae(b,m))}}function R(T,l,d,N){var v=[],m;N?m=N:m=Re;var b=new Set(T.filter(function(P){var $=!!(0,Fe.Z)(d,P);return $||v.push(P),$})),I=new Map,L=0;Object.keys(d).forEach(function(P){var $=d[P],J=$.level,te=I.get(J);te||(te=new Set,I.set(J,te)),te.add($),L=Math.max(L,J)}),(0,le.ZP)(!v.length,"Tree missing follow keys: ".concat(v.slice(0,100).map(function(P){return"'".concat(P,"'")}).join(", ")));var z;return l===!0?z=K(b,I,L,m):z=g(b,l.halfCheckedKeys,I,L,m),z}},67841:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return le}});function le(Fe,ae){return Fe[ae]}},71430:function(tn,Mt,E){"use strict";E.d(Mt,{F:function(){return J},H8:function(){return $},I8:function(){return P},km:function(){return v},oH:function(){return L},w$:function(){return m},zn:function(){return I}});var le=E(62853),Fe=E(80702),ae=E(77321),Re=E(74416),K=E(11592),g=E(2738),R=E(48736),T=E(67841),l=["children"];function d(te,H){return"".concat(te,"-").concat(H)}function N(te){return te&&te.type&&te.type.isTreeNode}function v(te,H){return te!=null?te:H}function m(te){var H=te||{},G=H.title,ce=H._title,q=H.key,ye=H.children,_e=G||"title";return{title:_e,_title:ce||[_e],key:q||"key",children:ye||"children"}}function b(te,H){var G=new Map;function ce(q){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(q||[]).forEach(function(_e){var Le=_e[H.key],se=_e[H.children];warning(Le!=null,"Tree node must have a certain key: [".concat(ye).concat(Le,"]"));var be=String(Le);warning(!G.has(be)||Le===null||Le===void 0,"Same 'key' exist in the Tree: ".concat(be)),G.set(be,!0),ce(se,"".concat(ye).concat(be," > "))})}ce(te)}function I(te){function H(G){var ce=(0,K.Z)(G);return ce.map(function(q){if(!N(q))return(0,R.ZP)(!q,"Tree/TreeNode can only accept TreeNode as children."),null;var ye=q.key,_e=q.props,Le=_e.children,se=(0,Re.Z)(_e,l),be=(0,ae.Z)({key:ye},se),O=H(Le);return O.length&&(be.children=O),be}).filter(function(q){return q})}return H(te)}function L(te,H,G){var ce=m(G),q=ce._title,ye=ce.key,_e=ce.children,Le=new Set(H===!0?[]:H),se=[];function be(O){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return O.map(function(ue,he){for(var ve=d(Ee?Ee.pos:"0",he),F=v(ue[ye],ve),U,ee=0;ee<q.length;ee+=1){var de=q[ee];if(ue[de]!==void 0){U=ue[de];break}}var Xe=(0,ae.Z)((0,ae.Z)({},(0,g.Z)(ue,[].concat((0,Fe.Z)(q),[ye,_e]))),{},{title:U,key:F,parent:Ee,pos:ve,children:null,data:ue,isStart:[].concat((0,Fe.Z)(Ee?Ee.isStart:[]),[he===0]),isEnd:[].concat((0,Fe.Z)(Ee?Ee.isEnd:[]),[he===O.length-1])});return se.push(Xe),H===!0||Le.has(F)?Xe.children=be(ue[_e]||[],Xe):Xe.children=[],Xe})}return be(te),se}function z(te,H,G){var ce={};(0,le.Z)(G)==="object"?ce=G:ce={externalGetKey:G},ce=ce||{};var q=ce,ye=q.childrenPropName,_e=q.externalGetKey,Le=q.fieldNames,se=m(Le),be=se.key,O=se.children,Ee=ye||O,ue;_e?typeof _e=="string"?ue=function(F){return F[_e]}:typeof _e=="function"&&(ue=function(F){return _e(F)}):ue=function(F,U){return v(F[be],U)};function he(ve,F,U,ee){var de=ve?ve[Ee]:te,Xe=ve?d(U.pos,F):"0",tt=ve?[].concat((0,Fe.Z)(ee),[ve]):[];if(ve){var nt=ue(ve,Xe),_t={node:ve,index:F,pos:Xe,key:nt,parentPos:U.node?U.pos:null,level:U.level+1,nodes:tt};H(_t)}de&&de.forEach(function(Xt,zt){he(Xt,zt,{node:ve,pos:Xe,level:U?U.level+1:-1},tt)})}he(null)}function P(te){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=H.initWrapper,ce=H.processEntity,q=H.onProcessFinished,ye=H.externalGetKey,_e=H.childrenPropName,Le=H.fieldNames,se=arguments.length>2?arguments[2]:void 0,be=ye||se,O={},Ee={},ue={posEntities:O,keyEntities:Ee};return G&&(ue=G(ue)||ue),z(te,function(he){var ve=he.node,F=he.index,U=he.pos,ee=he.key,de=he.parentPos,Xe=he.level,tt=he.nodes,nt={node:ve,nodes:tt,index:F,key:ee,pos:U,level:Xe},_t=v(ee,U);O[U]=nt,Ee[_t]=nt,nt.parent=O[de],nt.parent&&(nt.parent.children=nt.parent.children||[],nt.parent.children.push(nt)),ce&&ce(nt,ue)},{externalGetKey:be,childrenPropName:_e,fieldNames:Le}),q&&q(ue),ue}function $(te,H){var G=H.expandedKeys,ce=H.selectedKeys,q=H.loadedKeys,ye=H.loadingKeys,_e=H.checkedKeys,Le=H.halfCheckedKeys,se=H.dragOverNodeKey,be=H.dropPosition,O=H.keyEntities,Ee=(0,T.Z)(O,te),ue={eventKey:te,expanded:G.indexOf(te)!==-1,selected:ce.indexOf(te)!==-1,loaded:q.indexOf(te)!==-1,loading:ye.indexOf(te)!==-1,checked:_e.indexOf(te)!==-1,halfChecked:Le.indexOf(te)!==-1,pos:String(Ee?Ee.pos:""),dragOver:se===te&&be===0,dragOverGapTop:se===te&&be===-1,dragOverGapBottom:se===te&&be===1};return ue}function J(te){var H=te.data,G=te.expanded,ce=te.selected,q=te.checked,ye=te.loaded,_e=te.loading,Le=te.halfChecked,se=te.dragOver,be=te.dragOverGapTop,O=te.dragOverGapBottom,Ee=te.pos,ue=te.active,he=te.eventKey,ve=(0,ae.Z)((0,ae.Z)({},H),{},{expanded:G,selected:ce,checked:q,loaded:ye,loading:_e,halfChecked:Le,dragOver:se,dragOverGapTop:be,dragOverGapBottom:O,pos:Ee,active:ue,key:he});return"props"in ve||Object.defineProperty(ve,"props",{get:function(){return(0,R.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),te}}),ve}},8224:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return Fe}});var le=E(4676);function Fe(ae,Re,K,g){var R=le.unstable_batchedUpdates?function(l){le.unstable_batchedUpdates(K,l)}:K;return ae!=null&&ae.addEventListener&&ae.addEventListener(Re,R,g),{remove:function(){ae!=null&&ae.removeEventListener&&ae.removeEventListener(Re,R,g)}}}},55468:function(tn,Mt,E){"use strict";E.d(Mt,{g1:function(){return N},os:function(){return m}});var le=/margin|padding|width|height|max|min|offset/,Fe={left:!0,top:!0},ae={cssFloat:1,styleFloat:1,float:1};function Re(b){return b.nodeType===1?b.ownerDocument.defaultView.getComputedStyle(b,null):{}}function K(b,I,L){if(I=I.toLowerCase(),L==="auto"){if(I==="height")return b.offsetHeight;if(I==="width")return b.offsetWidth}return I in Fe||(Fe[I]=le.test(I)),Fe[I]?parseFloat(L)||0:L}function g(b,I){var L=arguments.length,z=Re(b);return I=ae[I]?"cssFloat"in b.style?"cssFloat":"styleFloat":I,L===1?z:K(b,I,z[I]||b.style[I])}function R(b,I,L){var z=arguments.length;if(I=ae[I]?"cssFloat"in b.style?"cssFloat":"styleFloat":I,z===3)return typeof L=="number"&&le.test(I)&&(L="".concat(L,"px")),b.style[I]=L,L;for(var P in I)I.hasOwnProperty(P)&&R(b,P,I[P]);return Re(b)}function T(b){return b===document.body?document.documentElement.clientWidth:b.offsetWidth}function l(b){return b===document.body?window.innerHeight||document.documentElement.clientHeight:b.offsetHeight}function d(){var b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),I=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:b,height:I}}function N(){var b=document.documentElement.clientWidth,I=window.innerHeight||document.documentElement.clientHeight;return{width:b,height:I}}function v(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function m(b){var I=b.getBoundingClientRect(),L=document.documentElement;return{left:I.left+(window.pageXOffset||L.scrollLeft)-(L.clientLeft||document.body.clientLeft||0),top:I.top+(window.pageYOffset||L.scrollTop)-(L.clientTop||document.body.clientTop||0)}}},24514:function(tn,Mt,E){"use strict";E.d(Mt,{G:function(){return Re}});var le=E(47273),Fe=function(g){if((0,le.Z)()&&window.document.documentElement){var R=Array.isArray(g)?g:[g],T=window.document.documentElement;return R.some(function(l){return l in T.style})}return!1},ae=function(g,R){if(!Fe(g))return!1;var T=document.createElement("div"),l=T.style[g];return T.style[g]=R,T.style[g]!==l};function Re(K,g){return!Array.isArray(K)&&g!==void 0?ae(K,g):Fe(K)}},49658:function(tn,Mt){"use strict";Mt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var E=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(E)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(E==null?void 0:E.substr(0,4))}},45680:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return vr}});var le=E(72308),Fe=E(62853),ae=E(77321),Re=E(49618),K=E(52487),g=E(74416),R=E(92310),T=E.n(R),l=E(29301),d=E(70425),N=E(34280),v=E(59301),m=E(4676),b=v.forwardRef(function(Ce,It){var Z=Ce.height,x=Ce.offsetY,y=Ce.offsetX,k=Ce.children,fe=Ce.prefixCls,W=Ce.onInnerResize,Q=Ce.innerProps,re=Ce.rtl,Se=Ce.extra,Be={},Te={display:"flex",flexDirection:"column"};return x!==void 0&&(Be={height:Z,position:"relative",overflow:"hidden"},Te=(0,ae.Z)((0,ae.Z)({},Te),{},(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({transform:"translateY(".concat(x,"px)")},re?"marginRight":"marginLeft",-y),"position","absolute"),"left",0),"right",0),"top",0))),v.createElement("div",{style:Be},v.createElement(l.Z,{onResize:function(ut){var $e=ut.offsetHeight;$e&&W&&W()}},v.createElement("div",(0,le.Z)({style:Te,className:T()((0,Re.Z)({},"".concat(fe,"-holder-inner"),fe)),ref:It},Q),k,Se)))});b.displayName="Filler";var I=b;function L(Ce){var It=Ce.children,Z=Ce.setRef,x=v.useCallback(function(y){Z(y)},[]);return v.cloneElement(It,{ref:x})}function z(Ce,It,Z,x,y,k,fe,W){var Q=W.getKey;return Ce.slice(It,Z+1).map(function(re,Se){var Be=It+Se,Te=fe(re,Be,{style:{width:x},offsetX:y}),Ge=Q(re);return v.createElement(L,{key:Ge,setRef:function($e){return k(re,$e)}},Te)})}function P(Ce,It,Z,x){var y=Z-Ce,k=It-Z,fe=Math.min(y,k)*2;if(x<=fe){var W=Math.floor(x/2);return x%2?Z+W+1:Z-W}return y>k?Z-(x-k):Z+(x-y)}function $(Ce,It,Z){var x=Ce.length,y=It.length,k,fe;if(x===0&&y===0)return null;x<y?(k=Ce,fe=It):(k=It,fe=Ce);var W={__EMPTY_ITEM__:!0};function Q(ut){return ut!==void 0?Z(ut):W}for(var re=null,Se=Math.abs(x-y)!==1,Be=0;Be<fe.length;Be+=1){var Te=Q(k[Be]),Ge=Q(fe[Be]);if(Te!==Ge){re=Be,Se=Se||Te!==Q(fe[Be+1]);break}}return re===null?null:{index:re,multiple:Se}}function J(Ce,It,Z){var x=v.useState(Ce),y=(0,K.Z)(x,2),k=y[0],fe=y[1],W=v.useState(null),Q=(0,K.Z)(W,2),re=Q[0],Se=Q[1];return v.useEffect(function(){var Be=$(k||[],Ce||[],It);(Be==null?void 0:Be.index)!==void 0&&(Z==null||Z(Be.index),Se(Ce[Be.index])),fe(Ce)},[Ce]),[re]}var te=E(16089),H=(typeof navigator=="undefined"?"undefined":(0,Fe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),G=H,ce=function(Ce,It,Z,x){var y=(0,v.useRef)(!1),k=(0,v.useRef)(null);function fe(){clearTimeout(k.current),y.current=!0,k.current=setTimeout(function(){y.current=!1},50)}var W=(0,v.useRef)({top:Ce,bottom:It,left:Z,right:x});return W.current.top=Ce,W.current.bottom=It,W.current.left=Z,W.current.right=x,function(Q,re){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Be=Q?re<0&&W.current.left||re>0&&W.current.right:re<0&&W.current.top||re>0&&W.current.bottom;return Se&&Be?(clearTimeout(k.current),y.current=!1):(!Be||y.current)&&fe(),!y.current&&Be}};function q(Ce,It,Z,x,y,k,fe){var W=(0,v.useRef)(0),Q=(0,v.useRef)(null),re=(0,v.useRef)(null),Se=(0,v.useRef)(!1),Be=ce(It,Z,x,y);function Te(ze,He){if(te.Z.cancel(Q.current),!Be(!1,He)){var vt=ze;if(!vt._virtualHandled)vt._virtualHandled=!0;else return;W.current+=He,re.current=He,G||vt.preventDefault(),Q.current=(0,te.Z)(function(){var jt=Se.current?10:1;fe(W.current*jt,!1),W.current=0})}}function Ge(ze,He){fe(He,!0),G||ze.preventDefault()}var ut=(0,v.useRef)(null),$e=(0,v.useRef)(null);function Je(ze){if(Ce){te.Z.cancel($e.current),$e.current=(0,te.Z)(function(){ut.current=null},2);var He=ze.deltaX,vt=ze.deltaY,jt=ze.shiftKey,Dt=He,lr=vt;(ut.current==="sx"||!ut.current&&jt&&vt&&!He)&&(Dt=vt,lr=0,ut.current="sx");var gr=Math.abs(Dt),ne=Math.abs(lr);ut.current===null&&(ut.current=k&&gr>ne?"x":"y"),ut.current==="y"?Te(ze,lr):Ge(ze,Dt)}}function At(ze){Ce&&(Se.current=ze.detail===re.current)}return[Je,At]}function ye(Ce,It,Z,x){var y=v.useMemo(function(){return[new Map,[]]},[Ce,Z.id,x]),k=(0,K.Z)(y,2),fe=k[0],W=k[1],Q=function(Se){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Se,Te=fe.get(Se),Ge=fe.get(Be);if(Te===void 0||Ge===void 0)for(var ut=Ce.length,$e=W.length;$e<ut;$e+=1){var Je,At=Ce[$e],ze=It(At);fe.set(ze,$e);var He=(Je=Z.get(ze))!==null&&Je!==void 0?Je:x;if(W[$e]=(W[$e-1]||0)+He,ze===Se&&(Te=$e),ze===Be&&(Ge=$e),Te!==void 0&&Ge!==void 0)break}return{top:W[Te-1]||0,bottom:W[Ge]}};return Q}var _e=E(96949),Le=E(55090),se=function(){function Ce(){(0,_e.Z)(this,Ce),(0,Re.Z)(this,"maps",void 0),(0,Re.Z)(this,"id",0),(0,Re.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Le.Z)(Ce,[{key:"set",value:function(Z,x){this.maps[Z]=x,this.id+=1,this.diffKeys.add(Z)}},{key:"get",value:function(Z){return this.maps[Z]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Ce}(),be=se;function O(Ce){var It=parseFloat(Ce);return isNaN(It)?0:It}function Ee(Ce,It,Z){var x=v.useState(0),y=(0,K.Z)(x,2),k=y[0],fe=y[1],W=(0,v.useRef)(new Map),Q=(0,v.useRef)(new be),re=(0,v.useRef)(0);function Se(){re.current+=1}function Be(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Se();var ut=function(){var At=!1;W.current.forEach(function(ze,He){if(ze&&ze.offsetParent){var vt=ze.offsetHeight,jt=getComputedStyle(ze),Dt=jt.marginTop,lr=jt.marginBottom,gr=O(Dt),ne=O(lr),we=vt+gr+ne;Q.current.get(He)!==we&&(Q.current.set(He,we),At=!0)}}),At&&fe(function(ze){return ze+1})};if(Ge)ut();else{re.current+=1;var $e=re.current;Promise.resolve().then(function(){$e===re.current&&ut()})}}function Te(Ge,ut){var $e=Ce(Ge),Je=W.current.get($e);ut?(W.current.set($e,ut),Be()):W.current.delete($e),!Je!=!ut&&(ut?It==null||It(Ge):Z==null||Z(Ge))}return(0,v.useEffect)(function(){return Se},[]),[Te,Be,Q.current,k]}var ue=14/15;function he(Ce,It,Z){var x=(0,v.useRef)(!1),y=(0,v.useRef)(0),k=(0,v.useRef)(0),fe=(0,v.useRef)(null),W=(0,v.useRef)(null),Q,re=function(Ge){if(x.current){var ut=Math.ceil(Ge.touches[0].pageX),$e=Math.ceil(Ge.touches[0].pageY),Je=y.current-ut,At=k.current-$e,ze=Math.abs(Je)>Math.abs(At);ze?y.current=ut:k.current=$e;var He=Z(ze,ze?Je:At,!1,Ge);He&&Ge.preventDefault(),clearInterval(W.current),He&&(W.current=setInterval(function(){ze?Je*=ue:At*=ue;var vt=Math.floor(ze?Je:At);(!Z(ze,vt,!0)||Math.abs(vt)<=.1)&&clearInterval(W.current)},16))}},Se=function(){x.current=!1,Q()},Be=function(Ge){Q(),Ge.touches.length===1&&!x.current&&(x.current=!0,y.current=Math.ceil(Ge.touches[0].pageX),k.current=Math.ceil(Ge.touches[0].pageY),fe.current=Ge.target,fe.current.addEventListener("touchmove",re,{passive:!1}),fe.current.addEventListener("touchend",Se,{passive:!0}))};Q=function(){fe.current&&(fe.current.removeEventListener("touchmove",re),fe.current.removeEventListener("touchend",Se))},(0,N.Z)(function(){return Ce&&It.current.addEventListener("touchstart",Be,{passive:!0}),function(){var Te;(Te=It.current)===null||Te===void 0||Te.removeEventListener("touchstart",Be),Q(),clearInterval(W.current)}},[Ce])}function ve(Ce){return Math.floor(Math.pow(Ce,.5))}function F(Ce,It){var Z="touches"in Ce?Ce.touches[0]:Ce;return Z[It?"pageX":"pageY"]-window[It?"scrollX":"scrollY"]}function U(Ce,It,Z){v.useEffect(function(){var x=It.current;if(Ce&&x){var y=!1,k,fe,W=function(){te.Z.cancel(k)},Q=function Te(){W(),k=(0,te.Z)(function(){Z(fe),Te()})},re=function(Ge){if(!(Ge.target.draggable||Ge.button!==0)){var ut=Ge;ut._virtualHandled||(ut._virtualHandled=!0,y=!0)}},Se=function(){y=!1,W()},Be=function(Ge){if(y){var ut=F(Ge,!1),$e=x.getBoundingClientRect(),Je=$e.top,At=$e.bottom;if(ut<=Je){var ze=Je-ut;fe=-ve(ze),Q()}else if(ut>=At){var He=ut-At;fe=ve(He),Q()}else W()}};return x.addEventListener("mousedown",re),x.ownerDocument.addEventListener("mouseup",Se),x.ownerDocument.addEventListener("mousemove",Be),function(){x.removeEventListener("mousedown",re),x.ownerDocument.removeEventListener("mouseup",Se),x.ownerDocument.removeEventListener("mousemove",Be),W()}}},[Ce])}var ee=10;function de(Ce,It,Z,x,y,k,fe,W){var Q=v.useRef(),re=v.useState(null),Se=(0,K.Z)(re,2),Be=Se[0],Te=Se[1];return(0,N.Z)(function(){if(Be&&Be.times<ee){if(!Ce.current){Te(function(pt){return(0,ae.Z)({},pt)});return}k();var Ge=Be.targetAlign,ut=Be.originAlign,$e=Be.index,Je=Be.offset,At=Ce.current.clientHeight,ze=!1,He=Ge,vt=null;if(At){for(var jt=Ge||ut,Dt=0,lr=0,gr=0,ne=Math.min(It.length-1,$e),we=0;we<=ne;we+=1){var Vt=y(It[we]);lr=Dt;var Ue=Z.get(Vt);gr=lr+(Ue===void 0?x:Ue),Dt=gr}for(var it=jt==="top"?Je:At-Je,Rr=ne;Rr>=0;Rr-=1){var Tt=y(It[Rr]),Rt=Z.get(Tt);if(Rt===void 0){ze=!0;break}if(it-=Rt,it<=0)break}switch(jt){case"top":vt=lr-Je;break;case"bottom":vt=gr-At+Je;break;default:{var $t=Ce.current.scrollTop,qe=$t+At;lr<$t?He="top":gr>qe&&(He="bottom")}}vt!==null&&fe(vt),vt!==Be.lastTop&&(ze=!0)}ze&&Te((0,ae.Z)((0,ae.Z)({},Be),{},{times:Be.times+1,targetAlign:He,lastTop:vt}))}},[Be,Ce.current]),function(Ge){if(Ge==null){W();return}if(te.Z.cancel(Q.current),typeof Ge=="number")fe(Ge);else if(Ge&&(0,Fe.Z)(Ge)==="object"){var ut,$e=Ge.align;"index"in Ge?ut=Ge.index:ut=It.findIndex(function(ze){return y(ze)===Ge.key});var Je=Ge.offset,At=Je===void 0?0:Je;Te({times:0,index:ut,offset:At,originAlign:$e})}}}var Xe=v.forwardRef(function(Ce,It){var Z=Ce.prefixCls,x=Ce.rtl,y=Ce.scrollOffset,k=Ce.scrollRange,fe=Ce.onStartMove,W=Ce.onStopMove,Q=Ce.onScroll,re=Ce.horizontal,Se=Ce.spinSize,Be=Ce.containerSize,Te=Ce.style,Ge=Ce.thumbStyle,ut=Ce.showScrollBar,$e=v.useState(!1),Je=(0,K.Z)($e,2),At=Je[0],ze=Je[1],He=v.useState(null),vt=(0,K.Z)(He,2),jt=vt[0],Dt=vt[1],lr=v.useState(null),gr=(0,K.Z)(lr,2),ne=gr[0],we=gr[1],Vt=!x,Ue=v.useRef(),it=v.useRef(),Rr=v.useState(ut),Tt=(0,K.Z)(Rr,2),Rt=Tt[0],$t=Tt[1],qe=v.useRef(),pt=function(){ut===!0||ut===!1||(clearTimeout(qe.current),$t(!0),qe.current=setTimeout(function(){$t(!1)},3e3))},rt=k-Be||0,Ht=Be-Se||0,Oe=v.useMemo(function(){if(y===0||rt===0)return 0;var Ut=y/rt;return Ut*Ht},[y,rt,Ht]),$r=function(Dr){Dr.stopPropagation(),Dr.preventDefault()},Bt=v.useRef({top:Oe,dragging:At,pageY:jt,startTop:ne});Bt.current={top:Oe,dragging:At,pageY:jt,startTop:ne};var gn=function(Dr){ze(!0),Dt(F(Dr,re)),we(Bt.current.top),fe(),Dr.stopPropagation(),Dr.preventDefault()};v.useEffect(function(){var Ut=function(mt){mt.preventDefault()},Dr=Ue.current,Pr=it.current;return Dr.addEventListener("touchstart",Ut,{passive:!1}),Pr.addEventListener("touchstart",gn,{passive:!1}),function(){Dr.removeEventListener("touchstart",Ut),Pr.removeEventListener("touchstart",gn)}},[]);var On=v.useRef();On.current=rt;var hi=v.useRef();hi.current=Ht,v.useEffect(function(){if(At){var Ut,Dr=function(mt){var mr=Bt.current,xr=mr.dragging,on=mr.pageY,kr=mr.startTop;te.Z.cancel(Ut);var un=Ue.current.getBoundingClientRect(),nn=Be/(re?un.width:un.height);if(xr){var _n=(F(mt,re)-on)*nn,Un=kr;!Vt&&re?Un-=_n:Un+=_n;var vn=On.current,Hr=hi.current,Kr=Hr?Un/Hr:0,qr=Math.ceil(Kr*vn);qr=Math.max(qr,0),qr=Math.min(qr,vn),Ut=(0,te.Z)(function(){Q(qr,re)})}},Pr=function(){ze(!1),W()};return window.addEventListener("mousemove",Dr,{passive:!0}),window.addEventListener("touchmove",Dr,{passive:!0}),window.addEventListener("mouseup",Pr,{passive:!0}),window.addEventListener("touchend",Pr,{passive:!0}),function(){window.removeEventListener("mousemove",Dr),window.removeEventListener("touchmove",Dr),window.removeEventListener("mouseup",Pr),window.removeEventListener("touchend",Pr),te.Z.cancel(Ut)}}},[At]),v.useEffect(function(){return pt(),function(){clearTimeout(qe.current)}},[y]),v.useImperativeHandle(It,function(){return{delayHidden:pt}});var ti="".concat(Z,"-scrollbar"),En={position:"absolute",visibility:Rt?null:"hidden"},Dn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return re?(En.height=8,En.left=0,En.right=0,En.bottom=0,Dn.height="100%",Dn.width=Se,Vt?Dn.left=Oe:Dn.right=Oe):(En.width=8,En.top=0,En.bottom=0,Vt?En.right=0:En.left=0,Dn.width="100%",Dn.height=Se,Dn.top=Oe),v.createElement("div",{ref:Ue,className:T()(ti,(0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(ti,"-horizontal"),re),"".concat(ti,"-vertical"),!re),"".concat(ti,"-visible"),Rt)),style:(0,ae.Z)((0,ae.Z)({},En),Te),onMouseDown:$r,onMouseMove:pt},v.createElement("div",{ref:it,className:T()("".concat(ti,"-thumb"),(0,Re.Z)({},"".concat(ti,"-thumb-moving"),At)),style:(0,ae.Z)((0,ae.Z)({},Dn),Ge),onMouseDown:gn}))}),tt=Xe,nt=20;function _t(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Z=Ce/It*Ce;return isNaN(Z)&&(Z=0),Z=Math.max(Z,nt),Math.floor(Z)}var Xt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],zt=[],Ze={overflowY:"auto",overflowAnchor:"none"};function fr(Ce,It){var Z=Ce.prefixCls,x=Z===void 0?"rc-virtual-list":Z,y=Ce.className,k=Ce.height,fe=Ce.itemHeight,W=Ce.fullHeight,Q=W===void 0?!0:W,re=Ce.style,Se=Ce.data,Be=Ce.children,Te=Ce.itemKey,Ge=Ce.virtual,ut=Ce.direction,$e=Ce.scrollWidth,Je=Ce.component,At=Je===void 0?"div":Je,ze=Ce.onScroll,He=Ce.onVirtualScroll,vt=Ce.onVisibleChange,jt=Ce.innerProps,Dt=Ce.extraRender,lr=Ce.styles,gr=Ce.showScrollBar,ne=gr===void 0?"optional":gr,we=(0,g.Z)(Ce,Xt),Vt=v.useCallback(function(ai){return typeof Te=="function"?Te(ai):ai==null?void 0:ai[Te]},[Te]),Ue=Ee(Vt,null,null),it=(0,K.Z)(Ue,4),Rr=it[0],Tt=it[1],Rt=it[2],$t=it[3],qe=!!(Ge!==!1&&k&&fe),pt=v.useMemo(function(){return Object.values(Rt.maps).reduce(function(ai,Zn){return ai+Zn},0)},[Rt.id,Rt.maps]),rt=qe&&Se&&(Math.max(fe*Se.length,pt)>k||!!$e),Ht=ut==="rtl",Oe=T()(x,(0,Re.Z)({},"".concat(x,"-rtl"),Ht),y),$r=Se||zt,Bt=(0,v.useRef)(),gn=(0,v.useRef)(),On=(0,v.useRef)(),hi=(0,v.useState)(0),ti=(0,K.Z)(hi,2),En=ti[0],Dn=ti[1],Ut=(0,v.useState)(0),Dr=(0,K.Z)(Ut,2),Pr=Dr[0],St=Dr[1],mt=(0,v.useState)(!1),mr=(0,K.Z)(mt,2),xr=mr[0],on=mr[1],kr=function(){on(!0)},un=function(){on(!1)},nn={getKey:Vt};function _n(ai){Dn(function(Zn){var Li;typeof ai=="function"?Li=ai(Zn):Li=ai;var Mi=ni(Li);return Bt.current.scrollTop=Mi,Mi})}var Un=(0,v.useRef)({start:0,end:$r.length}),vn=(0,v.useRef)(),Hr=J($r,Vt),Kr=(0,K.Z)(Hr,1),qr=Kr[0];vn.current=qr;var bn=v.useMemo(function(){if(!qe)return{scrollHeight:void 0,start:0,end:$r.length-1,offset:void 0};if(!rt){var ai;return{scrollHeight:((ai=gn.current)===null||ai===void 0?void 0:ai.offsetHeight)||0,start:0,end:$r.length-1,offset:void 0}}for(var Zn=0,Li,Mi,ls,js=$r.length,Vn=0;Vn<js;Vn+=1){var us=$r[Vn],Wi=Vt(us),ps=Rt.get(Wi),Vs=Zn+(ps===void 0?fe:ps);Vs>=En&&Li===void 0&&(Li=Vn,Mi=Zn),Vs>En+k&&ls===void 0&&(ls=Vn),Zn=Vs}return Li===void 0&&(Li=0,Mi=0,ls=Math.ceil(k/fe)),ls===void 0&&(ls=$r.length-1),ls=Math.min(ls+1,$r.length-1),{scrollHeight:Zn,start:Li,end:ls,offset:Mi}},[rt,qe,En,$r,$t,k]),ln=bn.scrollHeight,ui=bn.start,jn=bn.end,cn=bn.offset;Un.current.start=ui,Un.current.end=jn,v.useLayoutEffect(function(){var ai=Rt.getRecord();if(ai.size===1){var Zn=Array.from(ai)[0],Li=$r[ui];if(Li){var Mi=Vt(Li);if(Mi===Zn){var ls=Rt.get(Zn),js=ls-fe;_n(function(Vn){return Vn+js})}}}Rt.resetRecord()},[ln]);var sr=v.useState({width:0,height:k}),cr=(0,K.Z)(sr,2),pr=cr[0],Fr=cr[1],Br=function(Zn){Fr({width:Zn.offsetWidth,height:Zn.offsetHeight})},fn=(0,v.useRef)(),Nr=(0,v.useRef)(),Cn=v.useMemo(function(){return _t(pr.width,$e)},[pr.width,$e]),Rn=v.useMemo(function(){return _t(pr.height,ln)},[pr.height,ln]),Kn=ln-k,Ai=(0,v.useRef)(Kn);Ai.current=Kn;function ni(ai){var Zn=ai;return Number.isNaN(Ai.current)||(Zn=Math.min(Zn,Ai.current)),Zn=Math.max(Zn,0),Zn}var mi=En<=0,hr=En>=Kn,an=Pr<=0,Xr=Pr>=$e,ri=ce(mi,hr,an,Xr),zn=function(){return{x:Ht?-Pr:Pr,y:En}},Hn=(0,v.useRef)(zn()),Xn=(0,d.useEvent)(function(ai){if(He){var Zn=(0,ae.Z)((0,ae.Z)({},zn()),ai);(Hn.current.x!==Zn.x||Hn.current.y!==Zn.y)&&(He(Zn),Hn.current=Zn)}});function di(ai,Zn){var Li=ai;Zn?((0,m.flushSync)(function(){St(Li)}),Xn()):_n(Li)}function si(ai){var Zn=ai.currentTarget.scrollTop;Zn!==En&&_n(Zn),ze==null||ze(ai),Xn()}var _i=function(Zn){var Li=Zn,Mi=$e?$e-pr.width:0;return Li=Math.max(Li,0),Li=Math.min(Li,Mi),Li},ji=(0,d.useEvent)(function(ai,Zn){Zn?((0,m.flushSync)(function(){St(function(Li){var Mi=Li+(Ht?-ai:ai);return _i(Mi)})}),Xn()):_n(function(Li){var Mi=Li+ai;return Mi})}),ii=q(qe,mi,hr,an,Xr,!!$e,ji),yn=(0,K.Z)(ii,2),Yt=yn[0],hn=yn[1];he(qe,Bt,function(ai,Zn,Li,Mi){var ls=Mi;return ri(ai,Zn,Li)?!1:!ls||!ls._virtualHandled?(ls&&(ls._virtualHandled=!0),Yt({preventDefault:function(){},deltaX:ai?Zn:0,deltaY:ai?0:Zn}),!0):!1}),U(rt,Bt,function(ai){_n(function(Zn){return Zn+ai})}),(0,N.Z)(function(){function ai(Li){var Mi=mi&&Li.detail<0,ls=hr&&Li.detail>0;qe&&!Mi&&!ls&&Li.preventDefault()}var Zn=Bt.current;return Zn.addEventListener("wheel",Yt,{passive:!1}),Zn.addEventListener("DOMMouseScroll",hn,{passive:!0}),Zn.addEventListener("MozMousePixelScroll",ai,{passive:!1}),function(){Zn.removeEventListener("wheel",Yt),Zn.removeEventListener("DOMMouseScroll",hn),Zn.removeEventListener("MozMousePixelScroll",ai)}},[qe,mi,hr]),(0,N.Z)(function(){if($e){var ai=_i(Pr);St(ai),Xn({x:ai})}},[pr.width,$e]);var Fn=function(){var Zn,Li;(Zn=fn.current)===null||Zn===void 0||Zn.delayHidden(),(Li=Nr.current)===null||Li===void 0||Li.delayHidden()},$n=de(Bt,$r,Rt,fe,Vt,function(){return Tt(!0)},_n,Fn);v.useImperativeHandle(It,function(){return{nativeElement:On.current,getScrollInfo:zn,scrollTo:function(Zn){function Li(Mi){return Mi&&(0,Fe.Z)(Mi)==="object"&&("left"in Mi||"top"in Mi)}Li(Zn)?(Zn.left!==void 0&&St(_i(Zn.left)),$n(Zn.top)):$n(Zn)}}}),(0,N.Z)(function(){if(vt){var ai=$r.slice(ui,jn+1);vt(ai,$r)}},[ui,jn,$r]);var bi=ye($r,Vt,Rt,fe),Hi=Dt==null?void 0:Dt({start:ui,end:jn,virtual:rt,offsetX:Pr,offsetY:cn,rtl:Ht,getSize:bi}),rs=z($r,ui,jn,$e,Pr,Rr,Be,nn),Ci=null;k&&(Ci=(0,ae.Z)((0,Re.Z)({},Q?"height":"maxHeight",k),Ze),qe&&(Ci.overflowY="hidden",$e&&(Ci.overflowX="hidden"),xr&&(Ci.pointerEvents="none")));var is={};return Ht&&(is.dir="rtl"),v.createElement("div",(0,le.Z)({ref:On,style:(0,ae.Z)((0,ae.Z)({},re),{},{position:"relative"}),className:Oe},is,we),v.createElement(l.Z,{onResize:Br},v.createElement(At,{className:"".concat(x,"-holder"),style:Ci,ref:Bt,onScroll:si,onMouseEnter:Fn},v.createElement(I,{prefixCls:x,height:ln,offsetX:Pr,offsetY:cn,scrollWidth:$e,onInnerResize:Tt,ref:gn,innerProps:jt,rtl:Ht,extra:Hi},rs))),rt&&ln>k&&v.createElement(tt,{ref:fn,prefixCls:x,scrollOffset:En,scrollRange:ln,rtl:Ht,onScroll:di,onStartMove:kr,onStopMove:un,spinSize:Rn,containerSize:pr.height,style:lr==null?void 0:lr.verticalScrollBar,thumbStyle:lr==null?void 0:lr.verticalScrollBarThumb,showScrollBar:ne}),rt&&$e>pr.width&&v.createElement(tt,{ref:Nr,prefixCls:x,scrollOffset:Pr,scrollRange:$e,rtl:Ht,onScroll:di,onStartMove:kr,onStopMove:un,spinSize:Cn,containerSize:pr.width,horizontal:!0,style:lr==null?void 0:lr.horizontalScrollBar,thumbStyle:lr==null?void 0:lr.horizontalScrollBarThumb,showScrollBar:ne}))}var yr=v.forwardRef(fr);yr.displayName="List";var Ar=yr,vr=Ar},83145:function(tn,Mt,E){"use strict";Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.CopyToClipboard=void 0;var le=ae(E(59301)),Fe=ae(E(25769));function ae($){return $&&$.__esModule?$:{default:$}}function Re($){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Re=function(te){return typeof te}:Re=function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},Re($)}function K($,J){var te=Object.keys($);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols($);J&&(H=H.filter(function(G){return Object.getOwnPropertyDescriptor($,G).enumerable})),te.push.apply(te,H)}return te}function g($){for(var J=1;J<arguments.length;J++){var te=arguments[J]!=null?arguments[J]:{};J%2?K(te,!0).forEach(function(H){z($,H,te[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(te)):K(te).forEach(function(H){Object.defineProperty($,H,Object.getOwnPropertyDescriptor(te,H))})}return $}function R($,J){if($==null)return{};var te=T($,J),H,G;if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols($);for(G=0;G<ce.length;G++)H=ce[G],!(J.indexOf(H)>=0)&&Object.prototype.propertyIsEnumerable.call($,H)&&(te[H]=$[H])}return te}function T($,J){if($==null)return{};var te={},H=Object.keys($),G,ce;for(ce=0;ce<H.length;ce++)G=H[ce],!(J.indexOf(G)>=0)&&(te[G]=$[G]);return te}function l($,J){if(!($ instanceof J))throw new TypeError("Cannot call a class as a function")}function d($,J){for(var te=0;te<J.length;te++){var H=J[te];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty($,H.key,H)}}function N($,J,te){return J&&d($.prototype,J),te&&d($,te),$}function v($,J){return J&&(Re(J)==="object"||typeof J=="function")?J:b($)}function m($){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(te){return te.__proto__||Object.getPrototypeOf(te)},m($)}function b($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function I($,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(J&&J.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),J&&L($,J)}function L($,J){return L=Object.setPrototypeOf||function(H,G){return H.__proto__=G,H},L($,J)}function z($,J,te){return J in $?Object.defineProperty($,J,{value:te,enumerable:!0,configurable:!0,writable:!0}):$[J]=te,$}var P=function($){I(J,$);function J(){var te,H;l(this,J);for(var G=arguments.length,ce=new Array(G),q=0;q<G;q++)ce[q]=arguments[q];return H=v(this,(te=m(J)).call.apply(te,[this].concat(ce))),z(b(H),"onClick",function(ye){var _e=H.props,Le=_e.text,se=_e.onCopy,be=_e.children,O=_e.options,Ee=le.default.Children.only(be),ue=(0,Fe.default)(Le,O);se&&se(Le,ue),Ee&&Ee.props&&typeof Ee.props.onClick=="function"&&Ee.props.onClick(ye)}),H}return N(J,[{key:"render",value:function(){var H=this.props,G=H.text,ce=H.onCopy,q=H.options,ye=H.children,_e=R(H,["text","onCopy","options","children"]),Le=le.default.Children.only(ye);return le.default.cloneElement(Le,g({},_e,{onClick:this.onClick}))}}]),J}(le.default.PureComponent);Mt.CopyToClipboard=P,z(P,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(tn,Mt,E){"use strict";var le=E(83145),Fe=le.CopyToClipboard;Fe.CopyToClipboard=Fe,tn.exports=Fe},76374:function(tn,Mt,E){"use strict";var le=function(){if(typeof Map!="undefined")return Map;function be(O,Ee){var ue=-1;return O.some(function(he,ve){return he[0]===Ee?(ue=ve,!0):!1}),ue}return function(){function O(){this.__entries__=[]}return Object.defineProperty(O.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),O.prototype.get=function(Ee){var ue=be(this.__entries__,Ee),he=this.__entries__[ue];return he&&he[1]},O.prototype.set=function(Ee,ue){var he=be(this.__entries__,Ee);~he?this.__entries__[he][1]=ue:this.__entries__.push([Ee,ue])},O.prototype.delete=function(Ee){var ue=this.__entries__,he=be(ue,Ee);~he&&ue.splice(he,1)},O.prototype.has=function(Ee){return!!~be(this.__entries__,Ee)},O.prototype.clear=function(){this.__entries__.splice(0)},O.prototype.forEach=function(Ee,ue){ue===void 0&&(ue=null);for(var he=0,ve=this.__entries__;he<ve.length;he++){var F=ve[he];Ee.call(ue,F[1],F[0])}},O}()}(),Fe=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,ae=function(){return typeof E.g!="undefined"&&E.g.Math===Math?E.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),Re=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ae):function(be){return setTimeout(function(){return be(Date.now())},1e3/60)}}(),K=2;function g(be,O){var Ee=!1,ue=!1,he=0;function ve(){Ee&&(Ee=!1,be()),ue&&U()}function F(){Re(ve)}function U(){var ee=Date.now();if(Ee){if(ee-he<K)return;ue=!0}else Ee=!0,ue=!1,setTimeout(F,O);he=ee}return U}var R=20,T=["top","right","bottom","left","width","height","size","weight"],l=typeof MutationObserver!="undefined",d=function(){function be(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=g(this.refresh.bind(this),R)}return be.prototype.addObserver=function(O){~this.observers_.indexOf(O)||this.observers_.push(O),this.connected_||this.connect_()},be.prototype.removeObserver=function(O){var Ee=this.observers_,ue=Ee.indexOf(O);~ue&&Ee.splice(ue,1),!Ee.length&&this.connected_&&this.disconnect_()},be.prototype.refresh=function(){var O=this.updateObservers_();O&&this.refresh()},be.prototype.updateObservers_=function(){var O=this.observers_.filter(function(Ee){return Ee.gatherActive(),Ee.hasActive()});return O.forEach(function(Ee){return Ee.broadcastActive()}),O.length>0},be.prototype.connect_=function(){!Fe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},be.prototype.disconnect_=function(){!Fe||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},be.prototype.onTransitionEnd_=function(O){var Ee=O.propertyName,ue=Ee===void 0?"":Ee,he=T.some(function(ve){return!!~ue.indexOf(ve)});he&&this.refresh()},be.getInstance=function(){return this.instance_||(this.instance_=new be),this.instance_},be.instance_=null,be}(),N=function(be,O){for(var Ee=0,ue=Object.keys(O);Ee<ue.length;Ee++){var he=ue[Ee];Object.defineProperty(be,he,{value:O[he],enumerable:!1,writable:!1,configurable:!0})}return be},v=function(be){var O=be&&be.ownerDocument&&be.ownerDocument.defaultView;return O||ae},m=G(0,0,0,0);function b(be){return parseFloat(be)||0}function I(be){for(var O=[],Ee=1;Ee<arguments.length;Ee++)O[Ee-1]=arguments[Ee];return O.reduce(function(ue,he){var ve=be["border-"+he+"-width"];return ue+b(ve)},0)}function L(be){for(var O=["top","right","bottom","left"],Ee={},ue=0,he=O;ue<he.length;ue++){var ve=he[ue],F=be["padding-"+ve];Ee[ve]=b(F)}return Ee}function z(be){var O=be.getBBox();return G(0,0,O.width,O.height)}function P(be){var O=be.clientWidth,Ee=be.clientHeight;if(!O&&!Ee)return m;var ue=v(be).getComputedStyle(be),he=L(ue),ve=he.left+he.right,F=he.top+he.bottom,U=b(ue.width),ee=b(ue.height);if(ue.boxSizing==="border-box"&&(Math.round(U+ve)!==O&&(U-=I(ue,"left","right")+ve),Math.round(ee+F)!==Ee&&(ee-=I(ue,"top","bottom")+F)),!J(be)){var de=Math.round(U+ve)-O,Xe=Math.round(ee+F)-Ee;Math.abs(de)!==1&&(U-=de),Math.abs(Xe)!==1&&(ee-=Xe)}return G(he.left,he.top,U,ee)}var $=function(){return typeof SVGGraphicsElement!="undefined"?function(be){return be instanceof v(be).SVGGraphicsElement}:function(be){return be instanceof v(be).SVGElement&&typeof be.getBBox=="function"}}();function J(be){return be===v(be).document.documentElement}function te(be){return Fe?$(be)?z(be):P(be):m}function H(be){var O=be.x,Ee=be.y,ue=be.width,he=be.height,ve=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,F=Object.create(ve.prototype);return N(F,{x:O,y:Ee,width:ue,height:he,top:Ee,right:O+ue,bottom:he+Ee,left:O}),F}function G(be,O,Ee,ue){return{x:be,y:O,width:Ee,height:ue}}var ce=function(){function be(O){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=G(0,0,0,0),this.target=O}return be.prototype.isActive=function(){var O=te(this.target);return this.contentRect_=O,O.width!==this.broadcastWidth||O.height!==this.broadcastHeight},be.prototype.broadcastRect=function(){var O=this.contentRect_;return this.broadcastWidth=O.width,this.broadcastHeight=O.height,O},be}(),q=function(){function be(O,Ee){var ue=H(Ee);N(this,{target:O,contentRect:ue})}return be}(),ye=function(){function be(O,Ee,ue){if(this.activeObservations_=[],this.observations_=new le,typeof O!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=O,this.controller_=Ee,this.callbackCtx_=ue}return be.prototype.observe=function(O){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(O instanceof v(O).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ee=this.observations_;Ee.has(O)||(Ee.set(O,new ce(O)),this.controller_.addObserver(this),this.controller_.refresh())}},be.prototype.unobserve=function(O){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(O instanceof v(O).Element))throw new TypeError('parameter 1 is not of type "Element".');var Ee=this.observations_;Ee.has(O)&&(Ee.delete(O),Ee.size||this.controller_.removeObserver(this))}},be.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},be.prototype.gatherActive=function(){var O=this;this.clearActive(),this.observations_.forEach(function(Ee){Ee.isActive()&&O.activeObservations_.push(Ee)})},be.prototype.broadcastActive=function(){if(this.hasActive()){var O=this.callbackCtx_,Ee=this.activeObservations_.map(function(ue){return new q(ue.target,ue.broadcastRect())});this.callback_.call(O,Ee,O),this.clearActive()}},be.prototype.clearActive=function(){this.activeObservations_.splice(0)},be.prototype.hasActive=function(){return this.activeObservations_.length>0},be}(),_e=typeof WeakMap!="undefined"?new WeakMap:new le,Le=function(){function be(O){if(!(this instanceof be))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Ee=d.getInstance(),ue=new ye(O,Ee,this);_e.set(this,ue)}return be}();["observe","unobserve","disconnect"].forEach(function(be){Le.prototype[be]=function(){var O;return(O=_e.get(this))[be].apply(O,arguments)}});var se=function(){return typeof ae.ResizeObserver!="undefined"?ae.ResizeObserver:Le}();Mt.Z=se},98040:function(tn){tn.exports=function(){var Mt=document.getSelection();if(!Mt.rangeCount)return function(){};for(var E=document.activeElement,le=[],Fe=0;Fe<Mt.rangeCount;Fe++)le.push(Mt.getRangeAt(Fe));switch(E.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":E.blur();break;default:E=null;break}return Mt.removeAllRanges(),function(){Mt.type==="Caret"&&Mt.removeAllRanges(),Mt.rangeCount||le.forEach(function(ae){Mt.addRange(ae)}),E&&E.focus()}}},1012:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return v}});var le=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),Fe=new Uint8Array(16);function ae(){if(!le)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return le(Fe)}var Re=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function K(m){return typeof m=="string"&&Re.test(m)}for(var g=K,R=[],T=0;T<256;++T)R.push((T+256).toString(16).substr(1));function l(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=(R[m[b+0]]+R[m[b+1]]+R[m[b+2]]+R[m[b+3]]+"-"+R[m[b+4]]+R[m[b+5]]+"-"+R[m[b+6]]+R[m[b+7]]+"-"+R[m[b+8]]+R[m[b+9]]+"-"+R[m[b+10]]+R[m[b+11]]+R[m[b+12]]+R[m[b+13]]+R[m[b+14]]+R[m[b+15]]).toLowerCase();if(!g(I))throw TypeError("Stringified UUID is invalid");return I}var d=l;function N(m,b,I){m=m||{};var L=m.random||(m.rng||ae)();if(L[6]=L[6]&15|64,L[8]=L[8]&63|128,b){I=I||0;for(var z=0;z<16;++z)b[I+z]=L[z];return b}return d(L)}var v=N},93314:function(tn){"use strict";tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},65157:function(tn,Mt,E){"use strict";E.d(Mt,{ZP:function(){return su}});const le=Number.isFinite||function(i){return typeof i=="number"&&isFinite(i)},Fe=Number.isSafeInteger||function(i){return typeof i=="number"&&Math.abs(i)<=ae},ae=Number.MAX_SAFE_INTEGER||9007199254740991;let Re=function(i){return i.NETWORK_ERROR="networkError",i.MEDIA_ERROR="mediaError",i.KEY_SYSTEM_ERROR="keySystemError",i.MUX_ERROR="muxError",i.OTHER_ERROR="otherError",i}({}),K=function(i){return i.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",i.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",i.KEY_SYSTEM_NO_SESSION="keySystemNoSession",i.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",i.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",i.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",i.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",i.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",i.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",i.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",i.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",i.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",i.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",i.MANIFEST_LOAD_ERROR="manifestLoadError",i.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",i.MANIFEST_PARSING_ERROR="manifestParsingError",i.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",i.LEVEL_EMPTY_ERROR="levelEmptyError",i.LEVEL_LOAD_ERROR="levelLoadError",i.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",i.LEVEL_PARSING_ERROR="levelParsingError",i.LEVEL_SWITCH_ERROR="levelSwitchError",i.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",i.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",i.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",i.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",i.FRAG_LOAD_ERROR="fragLoadError",i.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",i.FRAG_DECRYPT_ERROR="fragDecryptError",i.FRAG_PARSING_ERROR="fragParsingError",i.FRAG_GAP="fragGap",i.REMUX_ALLOC_ERROR="remuxAllocError",i.KEY_LOAD_ERROR="keyLoadError",i.KEY_LOAD_TIMEOUT="keyLoadTimeOut",i.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",i.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",i.BUFFER_APPEND_ERROR="bufferAppendError",i.BUFFER_APPENDING_ERROR="bufferAppendingError",i.BUFFER_STALLED_ERROR="bufferStalledError",i.BUFFER_FULL_ERROR="bufferFullError",i.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",i.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",i.ASSET_LIST_LOAD_ERROR="assetListLoadError",i.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",i.ASSET_LIST_PARSING_ERROR="assetListParsingError",i.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",i.INTERNAL_EXCEPTION="internalException",i.INTERNAL_ABORTED="aborted",i.ATTACH_MEDIA_ERROR="attachMediaError",i.UNKNOWN="unknown",i}({}),g=function(i){return i.MEDIA_ATTACHING="hlsMediaAttaching",i.MEDIA_ATTACHED="hlsMediaAttached",i.MEDIA_DETACHING="hlsMediaDetaching",i.MEDIA_DETACHED="hlsMediaDetached",i.MEDIA_ENDED="hlsMediaEnded",i.STALL_RESOLVED="hlsStallResolved",i.BUFFER_RESET="hlsBufferReset",i.BUFFER_CODECS="hlsBufferCodecs",i.BUFFER_CREATED="hlsBufferCreated",i.BUFFER_APPENDING="hlsBufferAppending",i.BUFFER_APPENDED="hlsBufferAppended",i.BUFFER_EOS="hlsBufferEos",i.BUFFERED_TO_END="hlsBufferedToEnd",i.BUFFER_FLUSHING="hlsBufferFlushing",i.BUFFER_FLUSHED="hlsBufferFlushed",i.MANIFEST_LOADING="hlsManifestLoading",i.MANIFEST_LOADED="hlsManifestLoaded",i.MANIFEST_PARSED="hlsManifestParsed",i.LEVEL_SWITCHING="hlsLevelSwitching",i.LEVEL_SWITCHED="hlsLevelSwitched",i.LEVEL_LOADING="hlsLevelLoading",i.LEVEL_LOADED="hlsLevelLoaded",i.LEVEL_UPDATED="hlsLevelUpdated",i.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",i.LEVELS_UPDATED="hlsLevelsUpdated",i.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",i.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",i.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",i.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",i.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",i.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",i.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",i.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",i.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",i.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",i.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",i.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",i.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",i.CUES_PARSED="hlsCuesParsed",i.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",i.INIT_PTS_FOUND="hlsInitPtsFound",i.FRAG_LOADING="hlsFragLoading",i.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",i.FRAG_LOADED="hlsFragLoaded",i.FRAG_DECRYPTED="hlsFragDecrypted",i.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",i.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",i.FRAG_PARSING_METADATA="hlsFragParsingMetadata",i.FRAG_PARSED="hlsFragParsed",i.FRAG_BUFFERED="hlsFragBuffered",i.FRAG_CHANGED="hlsFragChanged",i.FPS_DROP="hlsFpsDrop",i.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",i.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",i.ERROR="hlsError",i.DESTROYING="hlsDestroying",i.KEY_LOADING="hlsKeyLoading",i.KEY_LOADED="hlsKeyLoaded",i.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",i.BACK_BUFFER_REACHED="hlsBackBufferReached",i.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",i.ASSET_LIST_LOADING="hlsAssetListLoading",i.ASSET_LIST_LOADED="hlsAssetListLoaded",i.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",i.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",i.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",i.INTERSTITIAL_STARTED="hlsInterstitialStarted",i.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",i.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",i.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",i.INTERSTITIAL_ENDED="hlsInterstitialEnded",i.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",i.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",i.EVENT_CUE_ENTER="hlsEventCueEnter",i}({});var R={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},T={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class l{constructor(e,t=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=r}sample(e,t){const r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class d{constructor(e,t,r,n=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new l(e),this.fast_=new l(t),this.defaultTTFB_=n,this.ttfb_=new l(e)}update(e,t){const{slow_:r,fast_:n,ttfb_:s}=this;r.halfLife!==e&&(this.slow_=new l(e,r.getEstimate(),r.getTotalWeight())),n.halfLife!==t&&(this.fast_=new l(t,n.getEstimate(),n.getTotalWeight())),s.halfLife!==e&&(this.ttfb_=new l(e,s.getEstimate(),s.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const r=8*t,n=e/1e3,s=r/n;this.fast_.sample(n,s),this.slow_.sample(n,s)}sampleTTFB(e){const t=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(r,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function N(i,e,t){return(e=L(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function v(){return v=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},v.apply(null,arguments)}function m(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),t.push.apply(t,r)}return t}function b(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?m(Object(t),!0).forEach(function(r){N(i,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))})}return i}function I(i,e){if(typeof i!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function L(i){var e=I(i,"string");return typeof e=="symbol"?e:e+""}class z{constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const r=`[${e}]:`;this.trace=P,this.debug=t.debug.bind(null,r),this.log=t.log.bind(null,r),this.warn=t.warn.bind(null,r),this.info=t.info.bind(null,r),this.error=t.error.bind(null,r)}}const P=function(){},$={trace:P,debug:P,log:P,warn:P,info:P,error:P};function J(){return v({},$)}function te(i,e){const t=self.console[i];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${i}] >`):P}function H(i,e,t){return e[i]?e[i].bind(e):te(i,t)}const G=J();function ce(i,e,t){const r=J();if(typeof console=="object"&&i===!0||typeof i=="object"){const n=["debug","log","info","warn","error"];n.forEach(s=>{r[s]=H(s,i,t)});try{r.log(`Debug logs enabled for "${e}" in hls.js version 1.6.0`)}catch(s){return J()}n.forEach(s=>{G[s]=H(s,i)})}else v(G,r);return r}const q=G;function ye(i=!0){return typeof self=="undefined"?void 0:(i||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function _e(i){return typeof self!="undefined"&&i===self.ManagedMediaSource}function Le(i,e){const t=Object.keys(i),r=Object.keys(e),n=t.length,s=r.length;return!n||!s||n===s&&!t.some(o=>r.indexOf(o)===-1)}function se(i,e=!1){if(typeof TextDecoder!="undefined"){const f=new TextDecoder("utf-8").decode(i);if(e){const M=f.indexOf("\0");return M!==-1?f.substring(0,M):f}return f.replace(/\0/g,"")}const t=i.length;let r,n,s,o="",c=0;for(;c<t;){if(r=i[c++],r===0&&e)return o;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o+=String.fromCharCode(r);break;case 12:case 13:n=i[c++],o+=String.fromCharCode((r&31)<<6|n&63);break;case 14:n=i[c++],s=i[c++],o+=String.fromCharCode((r&15)<<12|(n&63)<<6|(s&63)<<0);break}}return o}const be={hexDump:function(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].toString(16);r.length<2&&(r="0"+r),e+=r}return e}};function O(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ee={exports:{}},ue;function he(){return ue||(ue=1,function(i,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,c={buildAbsoluteURL:function(A,f,M){if(M=M||{},A=A.trim(),f=f.trim(),!f){if(!M.alwaysNormalize)return A;var a=c.parseURL(A);if(!a)throw new Error("Error trying to parse base URL.");return a.path=c.normalizePath(a.path),c.buildURLFromParts(a)}var u=c.parseURL(f);if(!u)throw new Error("Error trying to parse relative URL.");if(u.scheme)return M.alwaysNormalize?(u.path=c.normalizePath(u.path),c.buildURLFromParts(u)):f;var w=c.parseURL(A);if(!w)throw new Error("Error trying to parse base URL.");if(!w.netLoc&&w.path&&w.path[0]!=="/"){var B=n.exec(w.path);w.netLoc=B[1],w.path=B[2]}w.netLoc&&!w.path&&(w.path="/");var Y={scheme:w.scheme,netLoc:u.netLoc,path:null,params:u.params,query:u.query,fragment:u.fragment};if(!u.netLoc&&(Y.netLoc=w.netLoc,u.path[0]!=="/"))if(!u.path)Y.path=w.path,u.params||(Y.params=w.params,u.query||(Y.query=w.query));else{var oe=w.path,xe=oe.substring(0,oe.lastIndexOf("/")+1)+u.path;Y.path=c.normalizePath(xe)}return Y.path===null&&(Y.path=M.alwaysNormalize?c.normalizePath(u.path):u.path),c.buildURLFromParts(Y)},parseURL:function(A){var f=r.exec(A);return f?{scheme:f[1]||"",netLoc:f[2]||"",path:f[3]||"",params:f[4]||"",query:f[5]||"",fragment:f[6]||""}:null},normalizePath:function(A){for(A=A.split("").reverse().join("").replace(s,"");A.length!==(A=A.replace(o,"")).length;);return A.split("").reverse().join("")},buildURLFromParts:function(A){return A.scheme+A.netLoc+A.path+A.params+A.query+A.fragment}};i.exports=c})()}(Ee)),Ee.exports}var ve=he();class F{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var U={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class ee{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,_t(this,"stats")}setByteRange(e,t){const r=e.split("@",2);let n;r.length===1?n=(t==null?void 0:t.byteRangeEndOffset)||0:n=parseInt(r[1]),this._byteRange=[n,parseInt(r[0])+n]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[U.AUDIO]:null,[U.VIDEO]:null,[U.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new F),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=ve.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[U.AUDIO]=null,e[U.VIDEO]=null,e[U.AUDIOVIDEO]=null}}function de(i){return i.sn!=="initSegment"}class Xe extends ee{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange){const e=this.byteRange[0],t=this.byteRange[1];if(le(e)&&le(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const r=Object.keys(this.levelkeys);if(r.length===1)return this._decryptdata=this.levelkeys[r[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=le(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){const t=Object.keys(this.levelkeys),r=t.length;if(r>1||r===1&&this.levelkeys[t[0]].encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!le(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return de(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,r,n,s,o=!1){const{elementaryStreams:c}=this,A=c[e];if(!A){c[e]={startPTS:t,endPTS:r,startDTS:n,endDTS:s,partial:o};return}A.startPTS=Math.min(A.startPTS,t),A.endPTS=Math.max(A.endPTS,r),A.startDTS=Math.min(A.startDTS,n),A.endDTS=Math.max(A.endDTS,s)}}class tt extends ee{constructor(e,t,r,n,s){super(r),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=n;const o=e.enumeratedString("BYTERANGE");o&&this.setByteRange(o,s),s&&(this.fragOffset=s.fragOffset+s.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function nt(i,e){const t=Object.getPrototypeOf(i);if(t){const r=Object.getOwnPropertyDescriptor(t,e);return r||nt(t,e)}}function _t(i,e){const t=nt(i,e);t&&(t.enumerable=!0,Object.defineProperty(i,e,t))}const Xt=Math.pow(2,32)-1,zt=[].push,Ze={video:1,audio:2,id3:3,text:4};function fr(i){return String.fromCharCode.apply(null,i)}function yr(i,e){const t=i[e]<<8|i[e+1];return t<0?65536+t:t}function Ar(i,e){const t=Ce(i,e);return t<0?4294967296+t:t}function vr(i,e){let t=Ar(i,e);return t*=Math.pow(2,32),t+=Ar(i,e+4),t}function Ce(i,e){return i[e]<<24|i[e+1]<<16|i[e+2]<<8|i[e+3]}function It(i,e,t){i[e]=t>>24,i[e+1]=t>>16&255,i[e+2]=t>>8&255,i[e+3]=t&255}function Z(i){const e=i.byteLength;for(let t=0;t<e;){const r=Ar(i,t);if(r>8&&i[t+4]===109&&i[t+5]===111&&i[t+6]===111&&i[t+7]===102)return!0;t=r>1?t+r:e}return!1}function x(i,e){const t=[];if(!e.length)return t;const r=i.byteLength;for(let n=0;n<r;){const s=Ar(i,n),o=fr(i.subarray(n+4,n+8)),c=s>1?n+s:r;if(o===e[0])if(e.length===1)t.push(i.subarray(n+8,c));else{const A=x(i.subarray(n+8,c),e.slice(1));A.length&&zt.apply(t,A)}n=c}return t}function y(i){const e=[],t=i[0];let r=8;const n=Ar(i,r);r+=4;let s=0,o=0;t===0?(s=Ar(i,r),o=Ar(i,r+4),r+=8):(s=vr(i,r),o=vr(i,r+8),r+=16),r+=2;let c=i.length+o;const A=yr(i,r);r+=2;for(let f=0;f<A;f++){let M=r;const a=Ar(i,M);M+=4;const u=a&2147483647;if((a&2147483648)>>>31===1)return q.warn("SIDX has hierarchical references (not supported)"),null;const B=Ar(i,M);M+=4,e.push({referenceSize:u,subsegmentDuration:B,info:{duration:B/n,start:c,end:c+u-1}}),c+=u,M+=4,r=M}return{earliestPresentationTime:s,timescale:n,version:t,referencesCount:A,references:e}}function k(i){const e=[],t=x(i,["moov","trak"]);for(let n=0;n<t.length;n++){const s=t[n],o=x(s,["tkhd"])[0];if(o){let c=o[0];const A=Ar(o,c===0?12:20),f=x(s,["mdia","mdhd"])[0];if(f){c=f[0];const M=Ar(f,c===0?12:20),a=x(s,["mdia","hdlr"])[0];if(a){const u=fr(a.subarray(8,12)),w={soun:U.AUDIO,vide:U.VIDEO}[u],B=x(s,["mdia","minf","stbl","stsd"])[0],Y=fe(B);w?(e[A]={timescale:M,type:w,stsd:Y},e[w]=b({timescale:M,id:A},Y)):e[A]={timescale:M,type:u,stsd:Y}}}}}return x(i,["moov","mvex","trex"]).forEach(n=>{const s=Ar(n,4),o=e[s];o&&(o.default={duration:Ar(n,12),flags:Ar(n,20)})}),e}function fe(i){const e=i.subarray(8),t=e.subarray(86),r=fr(e.subarray(4,8));let n=r,s;const o=r==="enca"||r==="encv";if(o){const f=x(e,[r])[0].subarray(r==="enca"?28:78);x(f,["sinf"]).forEach(a=>{const u=x(a,["schm"])[0];if(u){const w=fr(u.subarray(4,8));if(w==="cbcs"||w==="cenc"){const B=x(a,["frma"])[0];B&&(n=fr(B))}}})}const c=n;switch(n){case"avc1":case"avc2":case"avc3":case"avc4":{const A=x(t,["avcC"])[0];n+="."+re(A[1])+re(A[2])+re(A[3]),s=W(c==="avc1"?"dva1":"dvav",t);break}case"mp4a":{const A=x(e,[r])[0],f=x(A.subarray(28),["esds"])[0];if(f&&f.length>7){let M=4;if(f[M++]!==3)break;M=Q(f,M),M+=2;const a=f[M++];if(a&128&&(M+=2),a&64&&(M+=f[M++]),f[M++]!==4)break;M=Q(f,M);const u=f[M++];if(u===64)n+="."+re(u);else break;if(M+=12,f[M++]!==5)break;M=Q(f,M);const w=f[M++];let B=(w&248)>>3;B===31&&(B+=1+((w&7)<<3)+((f[M]&224)>>5)),n+="."+B}break}case"hvc1":case"hev1":{const A=x(t,["hvcC"]);if(A){const f=A[0],M=f[1],a=["","A","B","C"][M>>6],u=M&31,w=Ar(f,2),B=(M&32)>>5?"H":"L",Y=f[12],oe=f.subarray(6,12);n+="."+a+u,n+="."+w.toString(16).toUpperCase(),n+="."+B+Y;let xe="";for(let Ne=oe.length;Ne--;){const Me=oe[Ne];(Me||xe)&&(xe="."+Me.toString(16).toUpperCase()+xe)}n+=xe}s=W(c=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{n=W(n,t)||n;break}case"vp09":{const A=x(t,["vpcC"])[0],f=A[4],M=A[5],a=A[6]>>4&15;n+="."+Se(f)+"."+Se(M)+"."+Se(a);break}case"av01":{const A=x(t,["av1C"])[0],f=A[1]>>>5,M=A[1]&31,a=A[2]>>>7?"H":"M",u=(A[2]&64)>>6,w=(A[2]&32)>>5,B=f===2&&u?w?12:10:u?10:8,Y=(A[2]&16)>>4,oe=(A[2]&8)>>3,xe=(A[2]&4)>>2,Ne=A[2]&3;n+="."+f+"."+Se(M)+a+"."+Se(B)+"."+Y+"."+oe+xe+Ne+"."+Se(1)+"."+Se(1)+"."+Se(1)+"."+0,s=W("dav1",t);break}}return{codec:n,encrypted:o,supplemental:s}}function W(i,e){const t=x(e,["dvvC"]),r=t.length?t[0]:x(e,["dvcC"])[0];if(r){const n=r[2]>>1&127,s=r[2]<<5&32|r[3]>>3&31;return i+"."+Se(n)+"."+Se(s)}}function Q(i,e){const t=e+5;for(;i[e++]&128&&e<t;);return e}function re(i){return("0"+i.toString(16).toUpperCase()).slice(-2)}function Se(i){return(i<10?"0":"")+i}function Be(i,e){if(!i||!e)return i;const t=e.keyId;return t&&e.isCommonEncryption&&x(i,["moov","trak"]).forEach(n=>{const o=x(n,["mdia","minf","stbl","stsd"])[0].subarray(8);let c=x(o,["enca"]);const A=c.length>0;A||(c=x(o,["encv"])),c.forEach(f=>{const M=A?f.subarray(28):f.subarray(78);x(M,["sinf"]).forEach(u=>{const w=Te(u);if(w){const B=w.subarray(8,24);B.some(Y=>Y!==0)||(q.log(`[eme] Patching keyId in 'enc${A?"a":"v"}>sinf>>tenc' box: ${be.hexDump(B)} -> ${be.hexDump(t)}`),w.set(t,8))}})})}),i}function Te(i){const e=x(i,["schm"])[0];if(e){const t=fr(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return x(i,["schi","tenc"])[0]}return null}function Ge(i,e){return x(e,["moof","traf"]).reduce((t,r)=>{const n=x(r,["tfdt"])[0],s=n[0],o=x(r,["tfhd"]).reduce((c,A)=>{const f=Ar(A,4),M=i[f];if(M){let a=Ar(n,4);if(s===1){if(a===Xt)return q.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),c;a*=Xt+1,a+=Ar(n,8)}const u=M.timescale||9e4,w=a/u;if(le(w)&&(c===null||w<c))return w}return c},null);return o!==null&&le(o)&&(t===null||o<t)?o:t},null)}function ut(i,e){let t=0,r=0,n=0;const s=x(i,["moof","traf"]);for(let o=0;o<s.length;o++){const c=s[o],A=x(c,["tfhd"])[0],f=Ar(A,4),M=e[f];if(!M)continue;const a=M.default,u=Ar(A,0)|(a==null?void 0:a.flags);let w=a==null?void 0:a.duration;u&8&&(u&2?w=Ar(A,12):w=Ar(A,8));const B=M.timescale||9e4,Y=x(c,["trun"]);for(let oe=0;oe<Y.length;oe++){if(t=$e(Y[oe]),!t&&w){const xe=Ar(Y[oe],4);t=w*xe}M.type===U.VIDEO?r+=t/B:M.type===U.AUDIO&&(n+=t/B)}}if(r===0&&n===0){let o=1/0,c=0,A=0;const f=x(i,["sidx"]);for(let M=0;M<f.length;M++){const a=y(f[M]);if(a!=null&&a.references){o=Math.min(o,a.earliestPresentationTime/a.timescale);const u=a.references.reduce((w,B)=>w+B.info.duration||0,0);c=Math.max(c,u+a.earliestPresentationTime/a.timescale),A=c-o}}if(A&&le(A))return A}return r||n}function $e(i){const e=Ar(i,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let r=0;const n=Ar(i,4);for(let s=0;s<n;s++){if(e&256){const o=Ar(i,t);r+=o,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return r}function Je(i,e,t){x(e,["moof","traf"]).forEach(r=>{x(r,["tfhd"]).forEach(n=>{const s=Ar(n,4),o=i[s];if(!o)return;const c=o.timescale||9e4;x(r,["tfdt"]).forEach(A=>{const f=A[0],M=t*c;if(M){let a=Ar(A,4);if(f===0)a-=M,a=Math.max(a,0),It(A,4,a);else{a*=Math.pow(2,32),a+=Ar(A,8),a-=M,a=Math.max(a,0);const u=Math.floor(a/(Xt+1)),w=Math.floor(a%(Xt+1));It(A,4,u),It(A,8,w)}}})})})}function At(i){const e={valid:null,remainder:null},t=x(i,["moof"]);if(t.length<2)return e.remainder=i,e;const r=t[t.length-1];return e.valid=i.slice(0,r.byteOffset-8),e.remainder=i.slice(r.byteOffset-8),e}function ze(i,e){const t=new Uint8Array(i.length+e.length);return t.set(i),t.set(e,i.length),t}function He(i,e){const t=[],r=e.samples,n=e.timescale,s=e.id;let o=!1;return x(r,["moof"]).map(A=>{const f=A.byteOffset-8;x(A,["traf"]).map(a=>{const u=x(a,["tfdt"]).map(w=>{const B=w[0];let Y=Ar(w,4);return B===1&&(Y*=Math.pow(2,32),Y+=Ar(w,8)),Y/n})[0];return u!==void 0&&(i=u),x(a,["tfhd"]).map(w=>{const B=Ar(w,4),Y=Ar(w,0)&16777215,oe=(Y&1)!==0,xe=(Y&2)!==0,Ne=(Y&8)!==0;let Me=0;const We=(Y&16)!==0;let ct=0;const xt=(Y&32)!==0;let wt=8;B===s&&(oe&&(wt+=8),xe&&(wt+=4),Ne&&(Me=Ar(w,wt),wt+=4),We&&(ct=Ar(w,wt),wt+=4),xt&&(wt+=4),e.type==="video"&&(o=vt(e.codec)),x(a,["trun"]).map(Et=>{const qt=Et[0],Pt=Ar(Et,0)&16777215,Gt=(Pt&1)!==0;let tr=0;const Ur=(Pt&4)!==0,Wr=(Pt&256)!==0;let zr=0;const An=(Pt&512)!==0;let dn=0;const Wn=(Pt&1024)!==0,jr=(Pt&2048)!==0;let Mn=0;const Ii=Ar(Et,4);let Ei=8;Gt&&(tr=Ar(Et,Ei),Ei+=4),Ur&&(Ei+=4);let Si=tr+f;for(let Ki=0;Ki<Ii;Ki++){if(Wr?(zr=Ar(Et,Ei),Ei+=4):zr=Me,An?(dn=Ar(Et,Ei),Ei+=4):dn=ct,Wn&&(Ei+=4),jr&&(qt===0?Mn=Ar(Et,Ei):Mn=Ce(Et,Ei),Ei+=4),e.type===U.VIDEO){let zi=0;for(;zi<dn;){const ki=Ar(r,Si);if(Si+=4,jt(o,r[Si])){const Qs=r.subarray(Si,Si+ki);Dt(Qs,o?2:1,i+Mn/n,t)}Si+=ki,zi+=ki+4}}i+=zr/n}}))})})}),t}function vt(i){if(!i)return!1;const e=i.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function jt(i,e){if(i){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Dt(i,e,t,r){const n=lr(i);let s=0;s+=e;let o=0,c=0,A=0;for(;s<n.length;){o=0;do{if(s>=n.length)break;A=n[s++],o+=A}while(A===255);c=0;do{if(s>=n.length)break;A=n[s++],c+=A}while(A===255);const f=n.length-s;let M=s;if(c<f)s+=c;else if(c>f){q.error(`Malformed SEI payload. ${c} is too small, only ${f} bytes left to parse.`);break}if(o===4){if(n[M++]===181){const u=yr(n,M);if(M+=2,u===49){const w=Ar(n,M);if(M+=4,w===1195456820){const B=n[M++];if(B===3){const Y=n[M++],oe=31&Y,xe=64&Y,Ne=xe?2+oe*3:0,Me=new Uint8Array(Ne);if(xe){Me[0]=Y;for(let We=1;We<Ne;We++)Me[We]=n[M++]}r.push({type:B,payloadType:o,pts:t,bytes:Me})}}}}}else if(o===5&&c>16){const a=[];for(let B=0;B<16;B++){const Y=n[M++].toString(16);a.push(Y.length==1?"0"+Y:Y),(B===3||B===5||B===7||B===9)&&a.push("-")}const u=c-16,w=new Uint8Array(u);for(let B=0;B<u;B++)w[B]=n[M++];r.push({payloadType:o,pts:t,uuid:a.join(""),userData:se(w),userDataBytes:w})}}}function lr(i){const e=i.byteLength,t=[];let r=1;for(;r<e-2;)i[r]===0&&i[r+1]===0&&i[r+2]===3?(t.push(r+2),r+=2):r++;if(t.length===0)return i;const n=e-t.length,s=new Uint8Array(n);let o=0;for(r=0;r<n;o++,r++)o===t[0]&&(o++,t.shift()),s[r]=i[o];return s}function gr(i){const e=i[0];let t="",r="",n=0,s=0,o=0,c=0,A=0,f=0;if(e===0){for(;fr(i.subarray(f,f+1))!=="\0";)t+=fr(i.subarray(f,f+1)),f+=1;for(t+=fr(i.subarray(f,f+1)),f+=1;fr(i.subarray(f,f+1))!=="\0";)r+=fr(i.subarray(f,f+1)),f+=1;r+=fr(i.subarray(f,f+1)),f+=1,n=Ar(i,12),s=Ar(i,16),c=Ar(i,20),A=Ar(i,24),f=28}else if(e===1){f+=4,n=Ar(i,f),f+=4;const a=Ar(i,f);f+=4;const u=Ar(i,f);for(f+=4,o=zA(2,32)*a+u,Fe(o)||(o=Number.MAX_SAFE_INTEGER,q.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),c=Ar(i,f),f+=4,A=Ar(i,f),f+=4;fr(i.subarray(f,f+1))!=="\0";)t+=fr(i.subarray(f,f+1)),f+=1;for(t+=fr(i.subarray(f,f+1)),f+=1;fr(i.subarray(f,f+1))!=="\0";)r+=fr(i.subarray(f,f+1)),f+=1;r+=fr(i.subarray(f,f+1)),f+=1}const M=i.subarray(f,i.byteLength);return{schemeIdUri:t,value:r,timeScale:n,presentationTime:o,presentationTimeDelta:s,eventDuration:c,id:A,payload:M}}function ne(i,...e){const t=e.length;let r=8,n=t;for(;n--;)r+=e[n].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(i,4),n=0,r=8;n<t;n++)s.set(e[n],r),r+=e[n].byteLength;return s}function we(i,e,t){if(i.byteLength!==16)throw new RangeError("Invalid system id");let r,n;r=0,n=new Uint8Array;let s;r>0?(s=new Uint8Array(4),e.length>0&&new DataView(s.buffer).setUint32(0,e.length,!1)):s=new Uint8Array;const o=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(o.buffer).setUint32(0,t.byteLength,!1),ne([112,115,115,104],new Uint8Array([r,0,0,0]),i,s,n,o,t||new Uint8Array)}function Vt(i){const e=[];if(i instanceof ArrayBuffer){const t=i.byteLength;let r=0;for(;r+32<t;){const n=new DataView(i,r),s=Ue(n);e.push(s),r+=s.size}}return e}function Ue(i){const e=i.getUint32(0),t=i.byteOffset,r=i.byteLength;if(r<e)return{offset:t,size:r};if(i.getUint32(4)!==1886614376)return{offset:t,size:e};const s=i.getUint32(8)>>>24;if(s!==0&&s!==1)return{offset:t,size:e};const o=i.buffer,c=be.hexDump(new Uint8Array(o,t+12,16)),A=i.getUint32(28);let f=null,M=null;if(s===0){if(e-32<A||A<22)return{offset:t,size:e};M=new Uint8Array(o,t+32,A)}else if(s===1){if(!A||r<t+32+A*16+16)return{offset:t,size:e};f=[];for(let a=0;a<A;a++)f.push(new Uint8Array(o,t+32+a*16,16))}return{version:s,systemId:c,kids:f,data:M,offset:t,size:e}}const it=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Rr={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Tt(i,e){const t=Rr[e];return!!t&&!!t[i.slice(0,4)]}function Rt(i,e,t=!0){return!i.split(",").some(r=>!$t(r,e,t))}function $t(i,e,t=!0){var r;const n=ye(t);return(r=n==null?void 0:n.isTypeSupported(qe(i,e)))!=null?r:!1}function qe(i,e){return`${e}/mp4;codecs=${i}`}function pt(i){if(i){const e=i.substring(0,4);return Rr.video[e]}return 2}function rt(i){const e=it();return i.split(",").reduce((t,r)=>{const s=e&&vt(r)?9:Rr.video[r];return s?(s*2+t)/(t?3:2):(Rr.audio[r]+t)/(t?2:1)},0)}const Ht={};function Oe(i,e=!0){if(Ht[i])return Ht[i];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[i];for(let n=0;n<t.length;n++){var r;if($t(t[n],"audio",e))return Ht[i]=t[n],t[n];if(t[n]==="mp3"&&(r=ye(e))!=null&&r.isTypeSupported("audio/mpeg"))return""}return i}const $r=/flac|opus|mp4a\.40\.34/i;function Bt(i,e=!0){return i.replace($r,t=>Oe(t.toLowerCase(),e))}function gn(i,e){const t=[];if(i){const r=i.split(",");for(let n=0;n<r.length;n++)Tt(r[n],"video")||t.push(r[n])}return e&&t.push(e),t.join(",")}function On(i,e){if(i&&(i.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(i)!==-1))return i;if(e){const t=e.split(",");if(t.length>1){if(i){for(let r=t.length;r--;)if(t[r].substring(0,4)===i.substring(0,4))return t[r]}return t[0]}}return e||i}function hi(i){const e=i.split(",");for(let t=0;t<e.length;t++){const r=e[t].split(".");if(r.length>2){let n=r.shift()+".";n+=parseInt(r.shift()).toString(16),n+=("000"+parseInt(r.shift()).toString(16)).slice(-4),e[t]=n}}return e.join(",")}function ti(i){if(i.startsWith("av01.")){const e=i.split("."),t=["0","111","01","01","01","0"];for(let r=e.length;r>4&&r<10;r++)e[r]=t[r-4];return e.join(".")}return i}function En(i){const e=ye(i)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Dn(i){return i.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Ut={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function Dr(i,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:i}}const Pr={};function St(i,e,t,r,n,s){const o=i.audioCodec?i.audioGroups:null,c=s==null?void 0:s.audioCodec,A=s==null?void 0:s.channels,f=A?parseInt(A):c?1/0:2;let M=null;if(o!=null&&o.length)try{o.length===1&&o[0]?M=e.groups[o[0]].channels:M=o.reduce((a,u)=>{if(u){const w=e.groups[u];if(!w)throw new Error(`Audio track group ${u} not found`);Object.keys(w.channels).forEach(B=>{a[B]=(a[B]||0)+w.channels[B]})}return a},{2:0})}catch(a){return!0}return i.videoCodec!==void 0&&(i.width>1920&&i.height>1088||i.height>1920&&i.width>1088||i.frameRate>Math.max(r,30)||i.videoRange!=="SDR"&&i.videoRange!==t||i.bitrate>Math.max(n,8e6))||!!M&&le(f)&&Object.keys(M).some(a=>parseInt(a)>f)}function mt(i,e,t){const r=i.videoCodec,n=i.audioCodec;if(!r&&!n||!t)return Promise.resolve(Ut);const s=[];if(r){const o={width:i.width,height:i.height,bitrate:Math.ceil(Math.max(i.bitrate*.9,i.averageBitrate)),framerate:i.frameRate||30},c=i.videoRange;c!=="SDR"&&(o.transferFunction=c.toLowerCase());const A=r.split(","),f=navigator.userAgent;if(A.some(M=>vt(M))&&it())return Promise.resolve(Dr(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${f})`),s));s.push.apply(s,A.map(M=>({type:"media-source",video:b(b({},o),{},{contentType:qe(ti(M),"video")})})))}return n&&i.audioGroups&&i.audioGroups.forEach(o=>{var c;o&&((c=e.groups[o])==null||c.tracks.forEach(A=>{if(A.groupId===o){const f=A.channels||"",M=parseFloat(f);le(M)&&M>2&&s.push.apply(s,n.split(",").map(a=>({type:"media-source",audio:{contentType:qe(a,"audio"),channels:""+M}})))}}))}),Promise.all(s.map(o=>{const c=mr(o);return Pr[c]||(Pr[c]=t.decodingInfo(o))})).then(o=>({supported:!o.some(c=>!c.supported),configurations:s,decodingInfoResults:o})).catch(o=>({supported:!1,configurations:s,decodingInfoResults:[],error:o}))}function mr(i){const{audio:e,video:t}=i,r=t||e;if(r){const n=Dn(r.contentType);if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${n}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${n}`}return""}const xr=["NONE","TYPE-0","TYPE-1",null];function on(i){return xr.indexOf(i)>-1}const kr=["SDR","PQ","HLG"];function un(i){return!!i&&kr.indexOf(i)>-1}var nn={No:"",Yes:"YES",v2:"v2"};function _n(i){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=i,n=r<e/2;return e&&n?t?nn.v2:nn.Yes:nn.No}class Un{constructor(e,t,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=r}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class vn{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(r=>!!r).map(r=>r.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const r=(t=e.supplemental)==null?void 0:t.videoCodec;r&&r!==e.videoCodec&&(this.codecSet+=`,${r.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return Hr(this._audioGroups,e)}hasSubtitleGroup(e){return Hr(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(t)===-1&&r.push(t)}else if(e==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(t)===-1&&r.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function Hr(i,e){return!e||!i?!1:i.indexOf(e)!==-1}function Kr(){if(typeof matchMedia=="function"){const i=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(i.media!==e.media)return i.matches===!0}return!1}function qr(i,e){let t=!1,r=[];if(i&&(t=i!=="SDR",r=[i]),e){r=e.allowedVideoRanges||kr.slice(0);const n=r.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:n&&Kr(),t||(r=["SDR"])}return{preferHDR:t,allowedVideoRanges:r}}const bn=i=>{const e=new WeakSet;return(t,r)=>{if(i&&(r=i(t,r)),typeof r=="object"&&r!==null){if(e.has(r))return;e.add(r)}return r}},ln=(i,e)=>JSON.stringify(i,bn(e));function ui(i,e,t,r,n){const s=Object.keys(i),o=r==null?void 0:r.channels,c=r==null?void 0:r.audioCodec,A=n==null?void 0:n.videoCodec,f=o&&parseInt(o)===2;let M=!1,a=!1,u=1/0,w=1/0,B=1/0,Y=1/0,oe=0,xe=[];const{preferHDR:Ne,allowedVideoRanges:Me}=qr(e,n);for(let Et=s.length;Et--;){const qt=i[s[Et]];M||(M=qt.channels[2]>0),u=Math.min(u,qt.minHeight),w=Math.min(w,qt.minFramerate),B=Math.min(B,qt.minBitrate),Me.filter(Gt=>qt.videoRanges[Gt]>0).length>0&&(a=!0)}u=le(u)?u:0,w=le(w)?w:0;const We=Math.max(1080,u),ct=Math.max(30,w);B=le(B)?B:t,t=Math.max(B,t),a||(e=void 0);const xt=s.length>1;return{codecSet:s.reduce((Et,qt)=>{const Pt=i[qt];if(qt===Et)return Et;if(xe=a?Me.filter(Gt=>Pt.videoRanges[Gt]>0):[],xt){if(Pt.minBitrate>t)return jn(qt,`min bitrate of ${Pt.minBitrate} > current estimate of ${t}`),Et;if(!Pt.hasDefaultAudio)return jn(qt,"no renditions with default or auto-select sound found"),Et;if(c&&qt.indexOf(c.substring(0,4))%5!==0)return jn(qt,`audio codec preference "${c}" not found`),Et;if(o&&!f){if(!Pt.channels[o])return jn(qt,`no renditions with ${o} channel sound found (channels options: ${Object.keys(Pt.channels)})`),Et}else if((!c||f)&&M&&Pt.channels[2]===0)return jn(qt,"no renditions with stereo sound found"),Et;if(Pt.minHeight>We)return jn(qt,`min resolution of ${Pt.minHeight} > maximum of ${We}`),Et;if(Pt.minFramerate>ct)return jn(qt,`min framerate of ${Pt.minFramerate} > maximum of ${ct}`),Et;if(!xe.some(Gt=>Pt.videoRanges[Gt]>0))return jn(qt,`no variants with VIDEO-RANGE of ${ln(xe)} found`),Et;if(A&&qt.indexOf(A.substring(0,4))%5!==0)return jn(qt,`video codec preference "${A}" not found`),Et;if(Pt.maxScore<oe)return jn(qt,`max score of ${Pt.maxScore} < selected max of ${oe}`),Et}return Et&&(rt(qt)>=rt(Et)||Pt.fragmentError>i[Et].fragmentError)?Et:(Y=Pt.minIndex,oe=Pt.maxScore,qt)},void 0),videoRanges:xe,preferHDR:Ne,minFramerate:w,minBitrate:B,minIndex:Y}}function jn(i,e){q.log(`[abr] start candidates with "${i}" ignored because ${e}`)}function cn(i){return i.reduce((e,t)=>{let r=e.groups[t.groupId];r||(r=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(t);const n=t.channels||"2";return r.channels[n]=(r.channels[n]||0)+1,r.hasDefault=r.hasDefault||t.default,r.hasAutoSelect=r.hasAutoSelect||t.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function sr(i,e,t,r){return i.slice(t,r+1).reduce((n,s,o)=>{if(!s.codecSet)return n;const c=s.audioGroups;let A=n[s.codecSet];A||(n[s.codecSet]=A={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:o,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!c,fragmentError:0}),A.minBitrate=Math.min(A.minBitrate,s.bitrate);const f=Math.min(s.height,s.width);return A.minHeight=Math.min(A.minHeight,f),A.minFramerate=Math.min(A.minFramerate,s.frameRate),A.minIndex=Math.min(A.minIndex,o),A.maxScore=Math.max(A.maxScore,s.score),A.fragmentError+=s.fragmentError,A.videoRanges[s.videoRange]=(A.videoRanges[s.videoRange]||0)+1,c&&c.forEach(M=>{if(!M)return;const a=e.groups[M];a&&(A.hasDefaultAudio=A.hasDefaultAudio||e.hasDefaultAudio?a.hasDefault:a.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(a.channels).forEach(u=>{A.channels[u]=(A.channels[u]||0)+a.channels[u]}))}),n},{})}function cr(i){if(!i)return i;const{lang:e,assocLang:t,characteristics:r,channels:n,audioCodec:s}=i;return{lang:e,assocLang:t,characteristics:r,channels:n,audioCodec:s}}function pr(i,e,t){if("attrs"in i){const r=e.indexOf(i);if(r!==-1)return r}for(let r=0;r<e.length;r++){const n=e[r];if(Fr(i,n,t))return r}return-1}function Fr(i,e,t){const{groupId:r,name:n,lang:s,assocLang:o,default:c}=i,A=i.forced;return(r===void 0||e.groupId===r)&&(n===void 0||e.name===n)&&(s===void 0||Br(s,e.lang))&&(s===void 0||e.assocLang===o)&&(c===void 0||e.default===c)&&(A===void 0||e.forced===A)&&(!("characteristics"in i)||fn(i.characteristics||"",e.characteristics))&&(t===void 0||t(i,e))}function Br(i,e="--"){return i.length===e.length?i===e:i.startsWith(e)||e.startsWith(i)}function fn(i,e=""){const t=i.split(","),r=e.split(",");return t.length===r.length&&!t.some(n=>r.indexOf(n)===-1)}function Nr(i,e){const{audioCodec:t,channels:r}=i;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function Cn(i,e,t,r,n){const s=e[r],c=e.reduce((u,w,B)=>{const Y=w.uri;return(u[Y]||(u[Y]=[])).push(B),u},{})[s.uri];c.length>1&&(r=Math.max.apply(Math,c));const A=s.videoRange,f=s.frameRate,M=s.codecSet.substring(0,4),a=Rn(e,r,u=>{if(u.videoRange!==A||u.frameRate!==f||u.codecSet.substring(0,4)!==M)return!1;const w=u.audioGroups,B=t.filter(Y=>!w||w.indexOf(Y.groupId)!==-1);return pr(i,B,n)>-1});return a>-1?a:Rn(e,r,u=>{const w=u.audioGroups,B=t.filter(Y=>!w||w.indexOf(Y.groupId)!==-1);return pr(i,B,n)>-1})}function Rn(i,e,t){for(let r=e;r>-1;r--)if(t(i[r]))return r;for(let r=e+1;r<i.length;r++)if(t(i[r]))return r;return-1}function Kn(i,e){var t;return!!i&&i!==((t=e.loadLevelObj)==null?void 0:t.uri)}class Ai extends z{constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var r;const{fragCurrent:n,partCurrent:s,hls:o}=this,{autoLevelEnabled:c,media:A}=o;if(!n||!A)return;const f=performance.now(),M=s?s.stats:n.stats,a=s?s.duration:n.duration,u=f-M.loading.start,w=o.minAutoLevel,B=n.level,Y=this._nextAutoLevel;if(M.aborted||M.loaded&&M.loaded===M.total||B<=w){this.clearTimer(),this._nextAutoLevel=-1;return}if(!c)return;const oe=Y>-1&&Y!==B,xe=!!t||oe;if(!xe&&(A.paused||!A.playbackRate||!A.readyState))return;const Ne=o.mainForwardBufferInfo;if(!xe&&Ne===null)return;const Me=this.bwEstimator.getEstimateTTFB(),We=Math.abs(A.playbackRate);if(u<=Math.max(Me,1e3*(a/(We*2))))return;const ct=Ne?Ne.len/We:0,xt=M.loading.first?M.loading.first-M.loading.start:-1,wt=M.loaded&&xt>-1,Et=this.getBwEstimate(),qt=o.levels,Pt=qt[B],Gt=Math.max(M.loaded,Math.round(a*(n.bitrate||Pt.averageBitrate)/8));let tr=wt?u-xt:u;tr<1&&wt&&(tr=Math.min(u,M.loaded*8/Et));const Ur=wt?M.loaded*1e3/tr:0,Wr=Me/1e3,zr=Ur?(Gt-M.loaded)/Ur:Gt*8/Et+Wr;if(zr<=ct)return;const An=Ur?Ur*8:Et,dn=((r=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,Wn=this.hls.config.abrBandWidthUpFactor;let jr=Number.POSITIVE_INFINITY,Mn;for(Mn=B-1;Mn>w;Mn--){const Ki=qt[Mn].maxBitrate,zi=!qt[Mn].details||dn;if(jr=this.getTimeToLoadFrag(Wr,An,a*Ki,zi),jr<Math.min(ct,a+Wr))break}if(jr>=zr||jr>a*10)return;wt?this.bwEstimator.sample(u-Math.min(Me,xt),M.loaded):this.bwEstimator.sampleTTFB(u);const Ii=qt[Mn].maxBitrate;this.getBwEstimate()*Wn>Ii&&this.resetEstimator(Ii);const Ei=this.findBestLevel(Ii,w,Mn,0,ct,1,1);Ei>-1&&(Mn=Ei),this.warn(`Fragment ${n.sn}${s?" part "+s.index:""} of level ${B} is loading too slowly;
|
|
|
Fragment duration: ${n.duration.toFixed(3)}
|
|
|
Time to underbuffer: ${ct.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${zr.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${jr.toFixed(3)} s
|
|
|
TTFB estimate: ${xt|0} ms
|
|
|
Current BW estimate: ${le(Et)?Et|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${Mn} @ ${Ii|0} bps`),o.nextLoadLevel=o.nextAutoLevel=Mn,this.clearTimer();const Si=()=>{if(this.clearTimer(),this.fragCurrent===n&&this.hls.loadLevel===Mn&&Mn>0){const Ki=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${Mn>0?"and switching down":""}
|
|
|
Fragment duration: ${n.duration.toFixed(3)} s
|
|
|
Time to underbuffer: ${Ki.toFixed(3)} s`),n.abortRequests(),this.fragCurrent=this.partCurrent=null,Mn>w){let zi=this.findBestLevel(this.hls.levels[w].bitrate,w,Mn,0,Ki,1,1);zi===-1&&(zi=w),this.hls.nextLoadLevel=this.hls.nextAutoLevel=zi,this.resetEstimator(this.hls.levels[zi].bitrate)}}};oe||zr>jr*2?Si():this.timer=self.setInterval(Si,jr*1e3),o.trigger(g.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:s,stats:M})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new d(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.FRAG_LOADING,this.onFragLoading,this),e.on(g.FRAG_LOADED,this.onFragLoaded,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this),e.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.FRAG_LOADING,this.onFragLoading,this),e.off(g.FRAG_LOADED,this.onFragLoaded,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this),e.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(g.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const r=t.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var n;this.fragCurrent=r,this.partCurrent=(n=t.part)!=null?n:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case K.BUFFER_ADD_CODEC_ERROR:case K.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case K.FRAG_LOAD_TIMEOUT:{const r=t.frag,{fragCurrent:n,partCurrent:s}=this;if(r&&n&&r.sn===n.sn&&r.level===n.level){const o=performance.now(),c=s?s.stats:r.stats,A=o-c.loading.start,f=c.loading.first?c.loading.first-c.loading.start:-1;if(c.loaded&&f>-1){const a=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(A-Math.min(a,f),c.loaded)}else this.bwEstimator.sampleTTFB(A)}break}}}getTimeToLoadFrag(e,t,r,n){const s=e+r/t,o=n?e+this.lastLevelLoadSec:0;return s+o}onLevelLoaded(e,t){const r=this.hls.config,{loading:n}=t.stats,s=n.end-n.first;le(s)&&(this.lastLevelLoadSec=s/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:r}){const n=r?r.stats:t.stats;if(t.type===T.MAIN&&this.bwEstimator.sampleTTFB(n.loading.first-n.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const s=r?r.duration:t.duration,o=this.hls.levels[t.level],c=(o.loaded?o.loaded.bytes:0)+n.loaded,A=(o.loaded?o.loaded.duration:0)+s;o.loaded={bytes:c,duration:A},o.realBitrate=Math.round(8*c/A)}if(t.bitrateTest){const s={stats:n,frag:t,part:r,id:t.type};this.onFragBuffered(g.FRAG_BUFFERED,s),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:r,part:n}=t,s=n!=null&&n.stats.loaded?n.stats:r.stats;if(s.aborted||this.ignoreFragment(r))return;const o=s.parsing.end-s.loading.start-Math.min(s.loading.first-s.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,s.loaded),s.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==T.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,r=this.getBwEstimate(),n=this.hls.config.maxStarvationDelay,s=this.findBestLevel(r,t,e,0,n,1,1);if(s>-1)return s;const o=this.hls.firstLevel,c=Math.min(Math.max(o,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${o} clamped to ${c}`),c}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(e!==-1&&(!r||!n||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const s=r&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const o=this.hls.levels;if(o.length>Math.max(e,s)&&o[e].loadError<=o[s].loadError)return e}return this._nextAutoLevel=s,this.nextAutoLevelKey=this.getAutoLevelKey(),s}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:r}=this;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:n,config:s,minAutoLevel:o}=r,c=t?t.duration:e?e.duration:0,A=this.getBwEstimate(),f=this.getStarvationDelay();let M=s.abrBandWidthFactor,a=s.abrBandWidthUpFactor;if(f){const oe=this.findBestLevel(A,o,n,f,0,M,a);if(oe>=0)return this.rebufferNotice=-1,oe}let u=c?Math.min(c,s.maxStarvationDelay):s.maxStarvationDelay;if(!f){const oe=this.bitrateTestDelay;oe&&(u=(c?Math.min(c,s.maxLoadingDelay):s.maxLoadingDelay)-oe,this.info(`bitrate test took ${Math.round(1e3*oe)}ms, set first fragment max fetchDuration to ${Math.round(1e3*u)} ms`),M=a=1)}const w=this.findBestLevel(A,o,n,f,u,M,a);if(this.rebufferNotice!==w&&(this.rebufferNotice=w,this.info(`${f?"rebuffering expected":"buffer is empty"}, optimal quality level ${w}`)),w>-1)return w;const B=r.levels[o],Y=r.loadLevelObj;return Y&&(B==null?void 0:B.bitrate)<Y.bitrate?o:r.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const r=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,n=e.mainForwardBufferInfo;return(n?n.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,r,n,s,o,c){var A;const f=n+s,M=this.lastLoadedFragLevel,a=M===-1?this.hls.firstLevel:M,{fragCurrent:u,partCurrent:w}=this,{levels:B,allAudioTracks:Y,loadLevel:oe,config:xe}=this.hls;if(B.length===1)return 0;const Ne=B[a],Me=!!((A=this.hls.latestLevelDetails)!=null&&A.live),We=oe===-1||M===-1;let ct,xt="SDR",wt=(Ne==null?void 0:Ne.frameRate)||0;const{audioPreference:Et,videoPreference:qt}=xe,Pt=this.audioTracksByGroup||(this.audioTracksByGroup=cn(Y));let Gt=-1;if(We){if(this.firstSelection!==-1)return this.firstSelection;const An=this.codecTiers||(this.codecTiers=sr(B,Pt,t,r)),dn=ui(An,xt,e,Et,qt),{codecSet:Wn,videoRanges:jr,minFramerate:Mn,minBitrate:Ii,minIndex:Ei,preferHDR:Si}=dn;Gt=Ei,ct=Wn,xt=Si?jr[jr.length-1]:jr[0],wt=Mn,e=Math.max(e,Ii),this.log(`picked start tier ${ln(dn)}`)}else ct=Ne==null?void 0:Ne.codecSet,xt=Ne==null?void 0:Ne.videoRange;const tr=w?w.duration:u?u.duration:0,Ur=this.bwEstimator.getEstimateTTFB()/1e3,Wr=[];for(let An=r;An>=t;An--){var zr;const dn=B[An],Wn=An>a;if(!dn)continue;if(xe.useMediaCapabilities&&!dn.supportedResult&&!dn.supportedPromise){const zi=navigator.mediaCapabilities;typeof(zi==null?void 0:zi.decodingInfo)=="function"&&(St(dn,Pt,xt,wt,e,Et)||vt(dn.videoCodec))?(dn.supportedPromise=mt(dn,Pt,zi),dn.supportedPromise.then(ki=>{if(!this.hls)return;dn.supportedResult=ki;const Qs=this.hls.levels,Da=Qs.indexOf(dn);ki.error?this.warn(`MediaCapabilities decodingInfo error: "${ki.error}" for level ${Da} ${ln(ki)}`):ki.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Da} ${ln(ki)}`),Da>-1&&Qs.length>1&&(this.log(`Removing unsupported level ${Da}`),this.hls.removeLevel(Da),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))})):dn.supportedResult=Ut}if((ct&&dn.codecSet!==ct||xt&&dn.videoRange!==xt||Wn&&wt>dn.frameRate||!Wn&&wt>0&&wt<dn.frameRate||dn.supportedResult&&!((zr=dn.supportedResult.decodingInfoResults)!=null&&zr[0].smooth))&&(!We||An!==Gt)){Wr.push(An);continue}const jr=dn.details,Mn=(w?jr==null?void 0:jr.partTarget:jr==null?void 0:jr.averagetargetduration)||tr;let Ii;Wn?Ii=c*e:Ii=o*e;const Ei=tr&&n>=tr*2&&s===0?dn.averageBitrate:dn.maxBitrate,Si=this.getTimeToLoadFrag(Ur,Ii,Ei*Mn,jr===void 0);if(Ii>=Ei&&(An===M||dn.loadError===0&&dn.fragmentError===0)&&(Si<=Ur||!le(Si)||Me&&!this.bitrateTestDelay||Si<f)){const zi=this.forcedAutoLevel;return An!==oe&&(zi===-1||zi!==oe)&&(Wr.length&&this.trace(`Skipped level(s) ${Wr.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${B[Wr[0]].codecs}" ${B[Wr[0]].videoRange}; not compatible with "${ct}" ${xt}`),this.info(`switch candidate:${a}->${An} adjustedbw(${Math.round(Ii)})-bitrate=${Math.round(Ii-Ei)} ttfb:${Ur.toFixed(1)} avgDuration:${Mn.toFixed(1)} maxFetchDuration:${f.toFixed(1)} fetchDuration:${Si.toFixed(1)} firstSelection:${We} codecSet:${dn.codecSet} videoRange:${dn.videoRange} hls.loadLevel:${oe}`)),We&&(this.firstSelection=An),An}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:r}=this.hls;return Math.min(Math.max(e,r),t)}}const ni={search:function(i,e){let t=0,r=i.length-1,n=null,s=null;for(;t<=r;){n=(t+r)/2|0,s=i[n];const o=e(s);if(o>0)t=n+1;else if(o<0)r=n-1;else return s}return null}};function mi(i,e,t){if(e===null||!Array.isArray(i)||!i.length||!le(e))return null;const r=i[0].programDateTime;if(e<(r||0))return null;const n=i[i.length-1].endProgramDateTime;if(e>=(n||0))return null;t=t||0;for(let s=0;s<i.length;++s){const o=i[s];if(ri(e,t,o))return o}return null}function hr(i,e,t=0,r=0,n=.005){let s=null;if(i){s=e[1+i.sn-e[0].sn]||null;const c=i.endDTS-t;c>0&&c<15e-7&&(t+=15e-7),s&&i.level!==s.level&&s.end<=i.end&&(s=e[2+i.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(s=e[0]);if(s&&((!i||i.level===s.level)&&Xr(t,r,s)===0||an(s,i,Math.min(n,r))))return s;const o=ni.search(e,Xr.bind(null,t,r));return o&&(o!==i||!s)?o:s}function an(i,e,t){if(e&&e.start===0&&e.level<i.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((n,s)=>(s[0]==="INF"&&(n+=parseFloat(s[1])),n),t);return i.start<=r}return!1}function Xr(i=0,e=0,t){if(t.start<=i&&t.start+t.duration>i)return 0;const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-r<=i?1:t.start-r>i&&t.start?-1:0}function ri(i,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>i}function zn(i,e){return ni.search(i,t=>t.cc<e?1:t.cc>e?-1:0)}function Hn(i,e,t){if(i&&i.startCC<=e&&i.endCC>=e){const r=t.start,n=t.end;let s=i.fragments;if(!t.relurl){const{fragmentHint:o}=i;o&&(s=s.concat(o))}return ni.search(s,o=>o.cc<e||o.end<=r?1:o.cc>e||o.start>=n?-1:0)}return null}function Xn(i){switch(i.details){case K.FRAG_LOAD_TIMEOUT:case K.KEY_LOAD_TIMEOUT:case K.LEVEL_LOAD_TIMEOUT:case K.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function di(i,e){const t=Xn(e);return i.default[`${t?"timeout":"error"}Retry`]}function si(i,e){const t=i.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*i.retryDelayMs,i.maxRetryDelayMs)}function _i(i){return b(b({},i),{errorRetry:null,timeoutRetry:null})}function ji(i,e,t,r){if(!i)return!1;const n=r==null?void 0:r.code,s=e<i.maxNumRetry&&(ii(n)||!!t);return i.shouldRetry?i.shouldRetry(i,e,t,r,s):s}function ii(i){return i===0&&navigator.onLine===!1||!!i&&(i<400||i>499)}var yn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Yt={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class hn extends z{constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(g.ERROR,this.onError,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(g.ERROR,this.onError,this),e.off(g.ERROR,this.onErrorOut,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===T.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var r;if(t.fatal)return;const n=this.hls,s=t.context;switch(t.details){case K.FRAG_LOAD_ERROR:case K.FRAG_LOAD_TIMEOUT:case K.KEY_LOAD_ERROR:case K.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case K.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction=Fn();return}case K.FRAG_GAP:case K.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=yn.SendAlternateToPenaltyBox;return}case K.LEVEL_EMPTY_ERROR:case K.LEVEL_PARSING_ERROR:{var o,c;const f=t.parent===T.MAIN?t.level:n.loadLevel;t.details===K.LEVEL_EMPTY_ERROR&&((o=t.context)!=null&&(c=o.levelDetails)!=null&&c.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,f):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,f))}return;case K.LEVEL_LOAD_ERROR:case K.LEVEL_LOAD_TIMEOUT:typeof(s==null?void 0:s.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.level));return;case K.AUDIO_TRACK_LOAD_ERROR:case K.AUDIO_TRACK_LOAD_TIMEOUT:case K.SUBTITLE_LOAD_ERROR:case K.SUBTITLE_TRACK_LOAD_TIMEOUT:if(s){const f=n.loadLevelObj;if(f&&(s.type===R.AUDIO_TRACK&&f.hasAudioGroup(s.groupId)||s.type===R.SUBTITLE_TRACK&&f.hasSubtitleGroup(s.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,n.loadLevel),t.errorAction.action=yn.SendAlternateToPenaltyBox,t.errorAction.flags=Yt.MoveAllAlternatesMatchingHost;return}}return;case K.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const f=n.loadLevelObj,M=f==null?void 0:f.attrs["HDCP-LEVEL"];M?t.errorAction={action:yn.SendAlternateToPenaltyBox,flags:Yt.MoveAllAlternatesMatchingHDCP,hdcpLevel:M}:this.keySystemError(t)}return;case K.BUFFER_ADD_CODEC_ERROR:case K.REMUX_ALLOC_ERROR:case K.BUFFER_APPEND_ERROR:if(!t.errorAction){var A;t.errorAction=this.getLevelSwitchAction(t,(A=t.level)!=null?A:n.loadLevel)}return;case K.INTERNAL_EXCEPTION:case K.BUFFER_APPENDING_ERROR:case K.BUFFER_FULL_ERROR:case K.LEVEL_SWITCH_ERROR:case K.BUFFER_STALLED_ERROR:case K.BUFFER_SEEK_OVER_HOLE:case K.BUFFER_NUDGE_ON_STALL:t.errorAction=Fn();return}t.type===Re.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const r=this.hls,n=di(r.config.playlistLoadPolicy,e),s=this.playlistError++;if(ji(n,s,Xn(e),e.response))return{action:yn.RetryRequest,flags:Yt.None,retryConfig:n,retryCount:s};const c=this.getLevelSwitchAction(e,t);return n&&(c.retryConfig=n,c.retryCount=s),c}getFragRetryOrSwitchAction(e){const t=this.hls,r=this.getVariantLevelIndex(e.frag),n=t.levels[r],{fragLoadPolicy:s,keyLoadPolicy:o}=t.config,c=di(e.details.startsWith("key")?o:s,e),A=t.levels.reduce((M,a)=>M+a.fragmentError,0);if(n&&(e.details!==K.FRAG_GAP&&n.fragmentError++,ji(c,A,Xn(e),e.response)))return{action:yn.RetryRequest,flags:Yt.None,retryConfig:c,retryCount:A};const f=this.getLevelSwitchAction(e,r);return c&&(f.retryConfig=c,f.retryCount=A),f}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const n=this.hls.levels[t];if(n){var s,o;const f=e.details;n.loadError++,f===K.BUFFER_APPEND_ERROR&&n.fragmentError++;let M=-1;const{levels:a,loadLevel:u,minAutoLevel:w,maxAutoLevel:B}=r;r.autoLevelEnabled||(r.loadLevel=-1);const Y=(s=e.frag)==null?void 0:s.type,xe=(Y===T.AUDIO&&f===K.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(f===K.BUFFER_ADD_CODEC_ERROR||f===K.BUFFER_APPEND_ERROR))&&a.some(({audioCodec:xt})=>n.audioCodec!==xt),Me=e.sourceBufferName==="video"&&(f===K.BUFFER_ADD_CODEC_ERROR||f===K.BUFFER_APPEND_ERROR)&&a.some(({codecSet:xt,audioCodec:wt})=>n.codecSet!==xt&&n.audioCodec===wt),{type:We,groupId:ct}=(o=e.context)!=null?o:{};for(let xt=a.length;xt--;){const wt=(xt+u)%a.length;if(wt!==u&&wt>=w&&wt<=B&&a[wt].loadError===0){var c,A;const Et=a[wt];if(f===K.FRAG_GAP&&Y===T.MAIN&&e.frag){const qt=a[wt].details;if(qt){const Pt=hr(e.frag,qt.fragments,e.frag.start);if(Pt!=null&&Pt.gap)continue}}else{if(We===R.AUDIO_TRACK&&Et.hasAudioGroup(ct)||We===R.SUBTITLE_TRACK&&Et.hasSubtitleGroup(ct))continue;if(Y===T.AUDIO&&(c=n.audioGroups)!=null&&c.some(qt=>Et.hasAudioGroup(qt))||Y===T.SUBTITLE&&(A=n.subtitleGroups)!=null&&A.some(qt=>Et.hasSubtitleGroup(qt))||xe&&n.audioCodec===Et.audioCodec||!xe&&n.audioCodec!==Et.audioCodec||Me&&n.codecSet===Et.codecSet)continue}M=wt;break}}if(M>-1&&r.loadLevel!==M)return e.levelRetry=!0,this.playlistError=0,{action:yn.SendAlternateToPenaltyBox,flags:Yt.None,nextAutoLevel:M}}return{action:yn.SendAlternateToPenaltyBox,flags:Yt.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case yn.DoNothing:break;case yn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==K.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case yn.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,r=e.errorAction;if(!r)return;const{flags:n,hdcpLevel:s,nextAutoLevel:o}=r;switch(n){case Yt.None:this.switchLevel(e,o);break;case Yt.MoveAllAlternatesMatchingHDCP:s&&(t.maxHdcpLevel=xr[xr.indexOf(s)-1],r.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}r.resolved||this.switchLevel(e,o)}switchLevel(e,t){if(t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===K.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const r=Dn(e.mimeType),n=this.hls.levels;for(let s=n.length;s--;)n[s][`${e.sourceBufferName}Codec`]===r&&this.hls.removeLevel(s)}}}function Fn(i){const e={action:yn.DoNothing,flags:Yt.None};return i&&(e.resolved=!0),e}var $n={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class bi{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.BUFFER_APPENDED,this.onBufferAppended,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this),e.on(g.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.BUFFER_APPENDED,this.onBufferAppended,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this),e.off(g.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const r=this.activePartLists[t];if(r)for(let n=r.length;n--;){const s=r[n];if(!s)break;const o=s.end;if(s.start<=e&&o!==null&&e<=o)return s}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,r){const{fragments:n}=this,s=Object.keys(n);for(let o=s.length;o--;){const c=n[s[o]];if((c==null?void 0:c.body.type)===t&&(!r||c.buffered)){const A=c.body;if(A.start<=e&&e<=A.end)return A}}return null}detectEvictedFragments(e,t,r,n,s){this.timeRanges&&(this.timeRanges[e]=t);const o=(n==null?void 0:n.fragment.sn)||-1;Object.keys(this.fragments).forEach(c=>{const A=this.fragments[c];if(!A||o>=A.body.sn)return;if(!A.buffered&&(!A.loaded||s)){A.body.type===r&&this.removeFragment(A.body);return}const f=A.range[e];if(f){if(f.time.length===0){this.removeFragment(A.body);return}f.time.some(M=>{const a=!this.isTimeBuffered(M.startPTS,M.endPTS,t);return a&&this.removeFragment(A.body),a})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const r=e.frag,n=rs(r),s=this.fragments[n];if(!s||s.buffered&&r.gap)return;const o=!r.relurl;Object.keys(t).forEach(c=>{const A=r.elementaryStreams[c];if(!A)return;const f=t[c],M=o||A.partial===!0;s.range[c]=this.getBufferedTimes(r,e.part,M,f)}),s.loaded=null,Object.keys(s.range).length?(s.buffered=!0,(s.body.endList=r.endList||s.body.endList)&&(this.endListFragments[s.body.type]=s),Hi(s)||this.removeParts(r.sn-1,r.type)):this.removeFragment(s.body)}removeParts(e,t){const r=this.activePartLists[t];r&&(this.activePartLists[t]=r.filter(n=>n.fragment.sn>=e))}fragBuffered(e,t){const r=rs(e);let n=this.fragments[r];!n&&t&&(n=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),n&&(n.loaded=null,n.buffered=!0)}getBufferedTimes(e,t,r,n){const s={time:[],partial:r},o=e.start,c=e.end,A=e.minEndPTS||c,f=e.maxStartPTS||o;for(let M=0;M<n.length;M++){const a=n.start(M)-this.bufferPadding,u=n.end(M)+this.bufferPadding;if(f>=a&&A<=u){s.time.push({startPTS:Math.max(o,n.start(M)),endPTS:Math.min(c,n.end(M))});break}else if(o<u&&c>a){const w=Math.max(o,n.start(M)),B=Math.min(c,n.end(M));B>w&&(s.partial=!0,s.time.push({startPTS:w,endPTS:B}))}else if(c<=a)break}return s}getPartialFragment(e){let t=null,r,n,s,o=0;const{bufferPadding:c,fragments:A}=this;return Object.keys(A).forEach(f=>{const M=A[f];M&&Hi(M)&&(n=M.body.start-c,s=M.body.end+c,e>=n&&e<=s&&(r=Math.min(e-n,s-e),o<=r&&(t=M.body,o=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||Hi(t))}getState(e){const t=rs(e),r=this.fragments[t];return r?r.buffered?Hi(r)?$n.PARTIAL:$n.OK:$n.APPENDING:$n.NOT_LOADED}isTimeBuffered(e,t,r){let n,s;for(let o=0;o<r.length;o++){if(n=r.start(o)-this.bufferPadding,s=r.end(o)+this.bufferPadding,e>=n&&t<=s)return!0;if(t<=n)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const r=t.frag,n=t.part?null:t,s=rs(r);this.fragments[s]={body:r,appendedPTS:null,loaded:n,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:r,part:n,timeRanges:s,type:o}=t;if(r.sn==="initSegment")return;const c=r.type;if(n){let f=this.activePartLists[c];f||(this.activePartLists[c]=f=[]),f.push(n)}this.timeRanges=s;const A=s[o];this.detectEvictedFragments(o,A,c,n)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=rs(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,r=Object.keys(t);if(!e)return r.length>0;for(let n=r.length;n--;){const s=t[r[n]];if((s==null?void 0:s.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,r,n,s){n&&!this.hasGaps||Object.keys(this.fragments).forEach(o=>{const c=this.fragments[o];if(!c)return;const A=c.body;A.type!==r||n&&!A.gap||A.start<t&&A.end>e&&(c.buffered||s)&&this.removeFragment(A)})}removeFragment(e){const t=rs(e);e.clearElementaryStreamInfo();const r=this.activePartLists[e.type];if(r){const n=e.sn;this.activePartLists[e.type]=r.filter(s=>s.fragment.sn!==n)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const r=(e=this.hls)==null||(t=e.latestLevelDetails)==null?void 0:t.partList;r&&r.forEach(n=>n.clearElementaryStreamInfo())}}function Hi(i){var e,t,r;return i.buffered&&(i.body.gap||((e=i.range.video)==null?void 0:e.partial)||((t=i.range.audio)==null?void 0:t.partial)||((r=i.range.audiovideo)==null?void 0:r.partial))}function rs(i){return`${i.type}_${i.level}_${i.sn}`}var Ci={cbc:0,ctr:1};class is{constructor(e,t,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=r}decrypt(e,t){switch(this.aesMode){case Ci.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case Ci.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function ai(i){const e=i.byteLength,t=e&&new DataView(i.buffer).getUint8(e-1);return t?i.slice(0,e-t):i}class Zn{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),r=new Uint32Array(4);for(let n=0;n<4;n++)r[n]=t.getUint32(n*4);return r}initTable(){const e=this.sBox,t=this.invSBox,r=this.subMix,n=r[0],s=r[1],o=r[2],c=r[3],A=this.invSubMix,f=A[0],M=A[1],a=A[2],u=A[3],w=new Uint32Array(256);let B=0,Y=0,oe=0;for(oe=0;oe<256;oe++)oe<128?w[oe]=oe<<1:w[oe]=oe<<1^283;for(oe=0;oe<256;oe++){let xe=Y^Y<<1^Y<<2^Y<<3^Y<<4;xe=xe>>>8^xe&255^99,e[B]=xe,t[xe]=B;const Ne=w[B],Me=w[Ne],We=w[Me];let ct=w[xe]*257^xe*16843008;n[B]=ct<<24|ct>>>8,s[B]=ct<<16|ct>>>16,o[B]=ct<<8|ct>>>24,c[B]=ct,ct=We*16843009^Me*65537^Ne*257^B*16843008,f[xe]=ct<<24|ct>>>8,M[xe]=ct<<16|ct>>>16,a[xe]=ct<<8|ct>>>24,u[xe]=ct,B?(B=Ne^w[w[w[We^Ne]]],Y^=w[w[Y]]):B=Y=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let r=!0,n=0;for(;n<t.length&&r;)r=t[n]===this.key[n],n++;if(r)return;this.key=t;const s=this.keySize=t.length;if(s!==4&&s!==6&&s!==8)throw new Error("Invalid aes key size="+s);const o=this.ksRows=(s+6+1)*4;let c,A;const f=this.keySchedule=new Uint32Array(o),M=this.invKeySchedule=new Uint32Array(o),a=this.sBox,u=this.rcon,w=this.invSubMix,B=w[0],Y=w[1],oe=w[2],xe=w[3];let Ne,Me;for(c=0;c<o;c++){if(c<s){Ne=f[c]=t[c];continue}Me=Ne,c%s===0?(Me=Me<<8|Me>>>24,Me=a[Me>>>24]<<24|a[Me>>>16&255]<<16|a[Me>>>8&255]<<8|a[Me&255],Me^=u[c/s|0]<<24):s>6&&c%s===4&&(Me=a[Me>>>24]<<24|a[Me>>>16&255]<<16|a[Me>>>8&255]<<8|a[Me&255]),f[c]=Ne=(f[c-s]^Me)>>>0}for(A=0;A<o;A++)c=o-A,A&3?Me=f[c]:Me=f[c-4],A<4||c<=4?M[A]=Me:M[A]=B[a[Me>>>24]]^Y[a[Me>>>16&255]]^oe[a[Me>>>8&255]]^xe[a[Me&255]],M[A]=M[A]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,r){const n=this.keySize+6,s=this.invKeySchedule,o=this.invSBox,c=this.invSubMix,A=c[0],f=c[1],M=c[2],a=c[3],u=this.uint8ArrayToUint32Array_(r);let w=u[0],B=u[1],Y=u[2],oe=u[3];const xe=new Int32Array(e),Ne=new Int32Array(xe.length);let Me,We,ct,xt,wt,Et,qt,Pt,Gt,tr,Ur,Wr,zr,An;const dn=this.networkToHostOrderSwap;for(;t<xe.length;){for(Gt=dn(xe[t]),tr=dn(xe[t+1]),Ur=dn(xe[t+2]),Wr=dn(xe[t+3]),wt=Gt^s[0],Et=Wr^s[1],qt=Ur^s[2],Pt=tr^s[3],zr=4,An=1;An<n;An++)Me=A[wt>>>24]^f[Et>>16&255]^M[qt>>8&255]^a[Pt&255]^s[zr],We=A[Et>>>24]^f[qt>>16&255]^M[Pt>>8&255]^a[wt&255]^s[zr+1],ct=A[qt>>>24]^f[Pt>>16&255]^M[wt>>8&255]^a[Et&255]^s[zr+2],xt=A[Pt>>>24]^f[wt>>16&255]^M[Et>>8&255]^a[qt&255]^s[zr+3],wt=Me,Et=We,qt=ct,Pt=xt,zr=zr+4;Me=o[wt>>>24]<<24^o[Et>>16&255]<<16^o[qt>>8&255]<<8^o[Pt&255]^s[zr],We=o[Et>>>24]<<24^o[qt>>16&255]<<16^o[Pt>>8&255]<<8^o[wt&255]^s[zr+1],ct=o[qt>>>24]<<24^o[Pt>>16&255]<<16^o[wt>>8&255]<<8^o[Et&255]^s[zr+2],xt=o[Pt>>>24]<<24^o[wt>>16&255]<<16^o[Et>>8&255]<<8^o[qt&255]^s[zr+3],Ne[t]=dn(Me^w),Ne[t+1]=dn(xt^B),Ne[t+2]=dn(ct^Y),Ne[t+3]=dn(We^oe),w=Gt,B=tr,Y=Ur,oe=Wr,t=t+4}return Ne.buffer}}class Li{constructor(e,t,r){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=r}expandKey(){const e=Mi(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Mi(i){switch(i){case Ci.cbc:return"AES-CBC";case Ci.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${i}`)}}const ls=16;class js{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch(r){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const r=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?ai(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r,n){return this.useSoftware?new Promise((s,o)=>{const c=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(c,t,r,n);const A=this.flush();A?s(A.buffer):o(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r,n)}softwareDecrypt(e,t,r,n){const{currentIV:s,currentResult:o,remainderData:c}=this;if(n!==Ci.cbc||t.byteLength!==16)return q.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),c&&(e=ze(c,e),this.remainderData=null);const A=this.getValidChunk(e);if(!A.length)return null;s&&(r=s);let f=this.softwareDecrypter;f||(f=this.softwareDecrypter=new Zn),f.expandKey(t);const M=o;return this.currentResult=f.decrypt(A.buffer,0,r),this.currentIV=A.slice(-16).buffer,M||null}webCryptoDecrypt(e,t,r,n){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r,n));this.key=t,this.fastAesKey=new Li(this.subtle,t,n)}return this.fastAesKey.expandKey().then(s=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new is(this.subtle,new Uint8Array(r),n).decrypt(e.buffer,s)):Promise.reject(new Error("web crypto not initialized"))).catch(s=>(q.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${s.name}: ${s.message}`),this.onWebCryptoError(e,t,r,n)))}onWebCryptoError(e,t,r,n){const s=this.enableSoftwareAES;if(s){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r,n);const o=this.flush();if(o)return o.buffer}throw new Error("WebCrypto"+(s?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const r=e.length-e.length%ls;return r!==e.length&&(t=e.slice(0,r),this.remainderData=e.slice(r)),t}logOnce(e){this.logEnabled&&(q.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Vn=Math.pow(2,17);class us{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const r=e.url;if(!r)return Promise.reject(new vs({type:Re.NETWORK_ERROR,details:K.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const n=this.config,s=n.fLoader,o=n.loader;return new Promise((c,A)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(B=>B[0]==="GAP")){A(ps(e));return}else e.gap=!1;const f=this.loader=s?new s(n):new o(n),M=Wi(e);e.loader=f;const a=_i(n.fragLoadPolicy.default),u={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Vn};e.stats=f.stats;const w={onSuccess:(B,Y,oe,xe)=>{this.resetLoader(e,f);let Ne=B.data;oe.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Ne.slice(0,16)),Ne=Ne.slice(16)),c({frag:e,part:null,payload:Ne,networkDetails:xe})},onError:(B,Y,oe,xe)=>{this.resetLoader(e,f),A(new vs({type:Re.NETWORK_ERROR,details:K.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:b({url:r,data:void 0},B),error:new Error(`HTTP Error ${B.code} ${B.text}`),networkDetails:oe,stats:xe}))},onAbort:(B,Y,oe)=>{this.resetLoader(e,f),A(new vs({type:Re.NETWORK_ERROR,details:K.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:oe,stats:B}))},onTimeout:(B,Y,oe)=>{this.resetLoader(e,f),A(new vs({type:Re.NETWORK_ERROR,details:K.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${u.timeout}ms`),networkDetails:oe,stats:B}))}};t&&(w.onProgress=(B,Y,oe,xe)=>t({frag:e,part:null,payload:oe,networkDetails:xe})),f.load(M,u,w)})}loadPart(e,t,r){this.abort();const n=this.config,s=n.fLoader,o=n.loader;return new Promise((c,A)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){A(ps(e,t));return}const f=this.loader=s?new s(n):new o(n),M=Wi(e,t);e.loader=f;const a=_i(n.fragLoadPolicy.default),u={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Vn};t.stats=f.stats,f.load(M,u,{onSuccess:(w,B,Y,oe)=>{this.resetLoader(e,f),this.updateStatsFromPart(e,t);const xe={frag:e,part:t,payload:w.data,networkDetails:oe};r(xe),c(xe)},onError:(w,B,Y,oe)=>{this.resetLoader(e,f),A(new vs({type:Re.NETWORK_ERROR,details:K.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:b({url:M.url,data:void 0},w),error:new Error(`HTTP Error ${w.code} ${w.text}`),networkDetails:Y,stats:oe}))},onAbort:(w,B,Y)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,f),A(new vs({type:Re.NETWORK_ERROR,details:K.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Y,stats:w}))},onTimeout:(w,B,Y)=>{this.resetLoader(e,f),A(new vs({type:Re.NETWORK_ERROR,details:K.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${u.timeout}ms`),networkDetails:Y,stats:w}))}})})}updateStatsFromPart(e,t){const r=e.stats,n=t.stats,s=n.total;if(r.loaded+=n.loaded,s){const A=Math.round(e.duration/t.duration),f=Math.min(Math.round(r.loaded/s),A),a=(A-f)*Math.round(r.loaded/f);r.total=r.loaded+a}else r.total=Math.max(r.loaded,r.total);const o=r.loading,c=n.loading;o.start?o.first+=c.first-c.start:(o.start=c.start,o.first=c.first),o.end=c.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Wi(i,e=null){const t=e||i,r={frag:i,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},n=t.byteRangeStartOffset,s=t.byteRangeEndOffset;if(le(n)&&le(s)){var o;let c=n,A=s;if(i.sn==="initSegment"&&Vs((o=i.decryptdata)==null?void 0:o.method)){const f=s-n;f%16&&(A=s+(16-f%16)),n!==0&&(r.resetIV=!0,c=n-16)}r.rangeStart=c,r.rangeEnd=A}return r}function ps(i,e){const t=new Error(`GAP ${i.gap?"tag":"attribute"} found`),r={type:Re.MEDIA_ERROR,details:K.FRAG_GAP,fatal:!1,frag:i,error:t,networkDetails:null};return e&&(r.part=e),(e||i).stats.aborted=!0,new vs(r)}function Vs(i){return i==="AES-128"||i==="AES-256"}class vs extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class ss extends z{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class gi{constructor(e,t,r,n=0,s=-1,o=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=Ui(),this.buffering={audio:Ui(),video:Ui(),audiovideo:Ui()},this.level=e,this.sn=t,this.id=r,this.size=n,this.part=s,this.partial=o}}function Ui(){return{start:0,executeStart:0,executeEnd:0,end:0}}const Ws={length:0,start:()=>0,end:()=>0};class Ti{static isBuffered(e,t){if(e){const r=Ti.getBuffered(e);for(let n=r.length;n--;)if(t>=r.start(n)&&t<=r.end(n))return!0}return!1}static bufferedRanges(e){if(e){const t=Ti.getBuffered(e);return Ti.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let r=0;r<e.length;r++)t.push({start:e.start(r),end:e.end(r)});return t}static bufferInfo(e,t,r){if(e){const n=Ti.bufferedRanges(e);if(n.length)return Ti.bufferedInfo(n,t,r)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,r){t=Math.max(0,t),e.length>1&&e.sort((M,a)=>M.start-a.start||a.end-M.end);let n=-1,s=[];if(r)for(let M=0;M<e.length;M++){t>=e[M].start&&t<=e[M].end&&(n=M);const a=s.length;if(a){const u=s[a-1].end;e[M].start-u<r?e[M].end>u&&(s[a-1].end=e[M].end):s.push(e[M])}else s.push(e[M])}else s=e;let o=0,c,A=t,f=t;for(let M=0;M<s.length;M++){const a=s[M].start,u=s[M].end;if(n===-1&&t>=a&&t<=u&&(n=M),t+r>=a&&t<u)A=a,f=u,o=f-t;else if(t+r<a){c=a;break}}return{len:o,start:A||0,end:f||0,nextStart:c,buffered:e,bufferedIndex:n}}static getBuffered(e){try{return e.buffered||Ws}catch(t){return q.log("failed to get media.buffered",t),Ws}}}const Ds=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ri(i){return Ds.test(i)}function ks(i,e){if(i.variableList!==null||i.hasVariableRefs){const t=i.variableList;return e.replace(Ds,r=>{const n=r.substring(2,r.length-1),s=t==null?void 0:t[n];return s===void 0?(i.playlistParsingError||(i.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${n}"`)),r):s})}return e}function $i(i,e,t){let r=i.variableList;r||(i.variableList=r={});let n,s;if("QUERYPARAM"in e){n=e.QUERYPARAM;try{const o=new self.URL(t).searchParams;if(o.has(n))s=o.get(n);else throw new Error(`"${n}" does not match any query parameter in URI: "${t}"`)}catch(o){i.playlistParsingError||(i.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${o.message}`))}}else n=e.NAME,s=e.VALUE;n in r?i.playlistParsingError||(i.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${n}"`)):r[n]=s||""}function Pa(i,e,t){const r=e.IMPORT;if(t&&r in t){let n=i.variableList;n||(i.variableList=n={}),n[r]=t[r]}else i.playlistParsingError||(i.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const aa=/^(\d+)x(\d+)$/,Na=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Vi{constructor(e,t){typeof e=="string"&&(e=Vi.parseAttrList(e,t)),v(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const r=new Uint8Array(t.length/2);for(let n=0;n<t.length/2;n++)r[n]=parseInt(t.slice(n*2,n*2+2),16);return r}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const r=this[e];return r?parseFloat(r):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const r=this[e];return(r?r.split(/[ ,]+/):[]).reduce((n,s)=>(n[s.toLowerCase()]=!0,n),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=aa.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let r;const n={},s='"';for(Na.lastIndex=0;(r=Na.exec(e))!==null;){const o=r[1].trim();let c=r[2];const A=c.indexOf(s)===0&&c.lastIndexOf(s)===c.length-1;let f=!1;if(A)c=c.slice(1,-1);else switch(o){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":f=!0}if(t&&(A||f))c=ks(t,c);else if(!f&&!A)switch(o){case"CLOSED-CAPTIONS":if(c==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":q.warn(`${e}: attribute ${o} is missing quotes`)}n[o]=c}return n}}const Ga="com.apple.hls.interstitial";function Rs(i){return i!=="ID"&&i!=="CLASS"&&i!=="CUE"&&i!=="START-DATE"&&i!=="DURATION"&&i!=="END-DATE"&&i!=="END-ON-NEXT"}function Pn(i){return i==="SCTE35-OUT"||i==="SCTE35-IN"||i==="SCTE35-CMD"}class as{constructor(e,t,r=0){var n;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(n=t==null?void 0:t.tagOrder)!=null?n:r,t){const s=t.attr;for(const o in s)if(Object.prototype.hasOwnProperty.call(e,o)&&e[o]!==s[o]){q.warn(`DATERANGE tag attribute: "${o}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=o;break}e=v(new Vi({}),s,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const s=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);le(s.getTime())&&(this._endDate=s)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(q.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(le(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===Ga}get isValid(){return!!this.id&&!this._badValueForSameId&&le(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const Ca=10;class Bi{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}get hasProgramDateTime(){return this.fragments.length?le(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Ca}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let r=e.length;r--;)if(e[r].index>t)return e[r].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function Di(i){return i==="AES-128"||i==="AES-256"||i==="AES-256-CTR"}function wi(i){switch(i){case"AES-128":case"AES-256":return Ci.cbc;case"AES-256-CTR":return Ci.ctr;default:throw new Error(`invalid full segment method ${i}`)}}function vi(i){return Uint8Array.from(atob(i),e=>e.charCodeAt(0))}function Yi(i){return Uint8Array.from(unescape(encodeURIComponent(i)),e=>e.charCodeAt(0))}function gs(i){const e=Yi(i).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function na(i){const e=function(r,n,s){const o=r[n];r[n]=r[s],r[s]=o};e(i,0,3),e(i,1,2),e(i,4,5),e(i,6,7)}function Ks(i){const e=i.split(":");let t=null;if(e[0]==="data"&&e.length===2){const r=e[1].split(";"),n=r[r.length-1].split(",");if(n.length===2){const s=n[0]==="base64",o=n[1];s?(r.splice(-1,1),t=vi(o)):t=gs(o)}}return t}const Os=typeof self!="undefined"?self:void 0;var Qi={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ys={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Za(i){switch(i){case Ys.FAIRPLAY:return Qi.FAIRPLAY;case Ys.PLAYREADY:return Qi.PLAYREADY;case Ys.WIDEVINE:return Qi.WIDEVINE;case Ys.CLEARKEY:return Qi.CLEARKEY}}var la={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function ua(i){if(i===la.WIDEVINE)return Qi.WIDEVINE;if(i===la.PLAYREADY)return Qi.PLAYREADY;if(i===la.CENC||i===la.CLEARKEY)return Qi.CLEARKEY}function Xs(i){switch(i){case Qi.FAIRPLAY:return Ys.FAIRPLAY;case Qi.PLAYREADY:return Ys.PLAYREADY;case Qi.WIDEVINE:return Ys.WIDEVINE;case Qi.CLEARKEY:return Ys.CLEARKEY}}function li(i){const{drmSystems:e,widevineLicenseUrl:t}=i,r=e?[Qi.FAIRPLAY,Qi.WIDEVINE,Qi.PLAYREADY,Qi.CLEARKEY].filter(n=>!!e[n]):[];return!r[Qi.WIDEVINE]&&t&&r.push(Qi.WIDEVINE),r}const oi=function(i){return Os!=null&&(i=Os.navigator)!=null&&i.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Ji(i,e,t,r){let n;switch(i){case Qi.FAIRPLAY:n=["cenc","sinf"];break;case Qi.WIDEVINE:case Qi.PLAYREADY:n=["cenc"];break;case Qi.CLEARKEY:n=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${i}`)}return $s(n,e,t,r)}function $s(i,e,t,r){return[{initDataTypes:i,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:e.map(s=>({contentType:`audio/mp4; codecs=${s}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:t.map(s=>({contentType:`video/mp4; codecs=${s}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function As(i){const e=new Uint16Array(i.buffer,i.byteOffset,i.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),r=t.substring(t.indexOf("<"),t.length),o=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(o){const c=o.childNodes[0]?o.childNodes[0].nodeValue:o.getAttribute("VALUE");if(c){const A=vi(c).subarray(0,16);return na(A),A}}return null}let ca={};class ea{static clearKeyUriToKeyIdMap(){ca={}}constructor(e,t,r,n=[1],s=null){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=r,this.keyFormatVersions=n,this.iv=s,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!Di(e)}isSupported(){if(this.method){if(Di(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Ys.FAIRPLAY:case Ys.WIDEVINE:case Ys.PLAYREADY:case Ys.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(Di(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(q.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=Va(e);return new ea(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=Ks(this.uri);if(t)switch(this.keyFormat){case Ys.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Ys.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=we(r,null,t),this.keyId=As(t);break}default:{let r=t.subarray(0,16);if(r.length!==16){const n=new Uint8Array(16);n.set(r,16-r.length),r=n}this.keyId=r;break}}if(!this.keyId||this.keyId.byteLength!==16){let r=ca[this.uri];if(!r){const n=Object.keys(ca).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,n),ca[this.uri]=r}this.keyId=r}return this}}function Va(i){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=i>>8*(15-t)&255;return e}const ta=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,ci=/#EXT-X-MEDIA:(.*)/g,fl=/^#EXT(?:INF|-X-TARGETDURATION):/m,Aa=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),ko=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class fa{static findGroup(e,t){for(let r=0;r<e.length;r++){const n=e[r];if(n.id===t)return n}}static resolve(e,t){return ve.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return fl.test(e)}static parseMasterPlaylist(e,t){const r=Ri(e),n={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},s=[];ta.lastIndex=0;let o;for(;(o=ta.exec(e))!=null;)if(o[1]){var c;const f=new Vi(o[1],n),M=ks(n,o[2]),a={attrs:f,bitrate:f.decimalInteger("BANDWIDTH")||f.decimalInteger("AVERAGE-BANDWIDTH"),name:f.NAME,url:fa.resolve(M,t)},u=f.decimalResolution("RESOLUTION");u&&(a.width=u.width,a.height=u.height),Fo(f.CODECS,a);const w=f["SUPPLEMENTAL-CODECS"];w&&(a.supplemental={},Fo(w,a.supplemental)),(c=a.unknownCodecs)!=null&&c.length||s.push(a),n.levels.push(a)}else if(o[3]){const f=o[3],M=o[4];switch(f){case"SESSION-DATA":{const a=new Vi(M,n),u=a["DATA-ID"];u&&(n.sessionData===null&&(n.sessionData={}),n.sessionData[u]=a);break}case"SESSION-KEY":{const a=Ho(M,t,n);a.encrypted&&a.isSupported()?(n.sessionKeys===null&&(n.sessionKeys=[]),n.sessionKeys.push(a)):q.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${M}"`);break}case"DEFINE":{{const a=new Vi(M,n);$i(n,a,t)}break}case"CONTENT-STEERING":{const a=new Vi(M,n);n.contentSteering={uri:fa.resolve(a["SERVER-URI"],t),pathwayId:a["PATHWAY-ID"]||"."};break}case"START":{n.startTimeOffset=Ko(M);break}}}const A=s.length>0&&s.length<n.levels.length;return n.levels=A?s:n.levels,n.levels.length===0&&(n.playlistParsingError=new Error("no levels found in manifest")),n}static parseMasterPlaylistMedia(e,t,r){let n;const s={},o=r.levels,c={AUDIO:o.map(f=>({id:f.attrs.AUDIO,audioCodec:f.audioCodec})),SUBTITLES:o.map(f=>({id:f.attrs.SUBTITLES,textCodec:f.textCodec})),"CLOSED-CAPTIONS":[]};let A=0;for(ci.lastIndex=0;(n=ci.exec(e))!==null;){const f=new Vi(n[1],r),M=f.TYPE;if(M){const a=c[M],u=s[M]||[];s[M]=u;const w=f.LANGUAGE,B=f["ASSOC-LANGUAGE"],Y=f.CHANNELS,oe=f.CHARACTERISTICS,xe=f["INSTREAM-ID"],Ne={attrs:f,bitrate:0,id:A++,groupId:f["GROUP-ID"]||"",name:f.NAME||w||"",type:M,default:f.bool("DEFAULT"),autoselect:f.bool("AUTOSELECT"),forced:f.bool("FORCED"),lang:w,url:f.URI?fa.resolve(f.URI,t):""};if(B&&(Ne.assocLang=B),Y&&(Ne.channels=Y),oe&&(Ne.characteristics=oe),xe&&(Ne.instreamId=xe),a!=null&&a.length){const Me=fa.findGroup(a,Ne.groupId)||a[0];mo(Ne,Me,"audioCodec"),mo(Ne,Me,"textCodec")}u.push(Ne)}}return s}static parseLevelPlaylist(e,t,r,n,s,o){var c;const A={url:t},f=new Bi(t),M=f.fragments,a=[];let u=null,w=0,B=0,Y=0,oe=0,xe=0,Ne=null,Me=new Xe(n,A),We,ct,xt,wt=-1,Et=!1,qt=null,Pt;if(Aa.lastIndex=0,f.m3u8=e,f.hasVariableRefs=Ri(e),((c=Aa.exec(e))==null?void 0:c[0])!=="#EXTM3U")return f.playlistParsingError=new Error("Missing format identifier #EXTM3U"),f;for(;(We=Aa.exec(e))!==null;){Et&&(Et=!1,Me=new Xe(n,A),Me.playlistOffset=Y,Me.start=Y,Me.sn=w,Me.cc=oe,xe&&(Me.bitrate=xe),Me.level=r,u&&(Me.initSegment=u,u.rawProgramDateTime&&(Me.rawProgramDateTime=u.rawProgramDateTime,u.rawProgramDateTime=null),qt&&(Me.setByteRange(qt),qt=null)));const Wr=We[1];if(Wr){Me.duration=parseFloat(Wr);const zr=(" "+We[2]).slice(1);Me.title=zr||null,Me.tagList.push(zr?["INF",Wr,zr]:["INF",Wr])}else if(We[3]){if(le(Me.duration)){Me.playlistOffset=Y,Me.start=Y,xt&&Bs(Me,xt,f),Me.sn=w,Me.level=r,Me.cc=oe,M.push(Me);const zr=(" "+We[3]).slice(1);Me.relurl=ks(f,zr),es(Me,Ne,a),Ne=Me,Y+=Me.duration,w++,B=0,Et=!0}}else{if(We=We[0].match(ko),!We){q.warn("No matches on slow regex match for level playlist!");continue}for(ct=1;ct<We.length&&We[ct]===void 0;ct++);const zr=(" "+We[ct]).slice(1),An=(" "+We[ct+1]).slice(1),dn=We[ct+2]?(" "+We[ct+2]).slice(1):null;switch(zr){case"BYTERANGE":Ne?Me.setByteRange(An,Ne):Me.setByteRange(An);break;case"PROGRAM-DATE-TIME":Me.rawProgramDateTime=An,Me.tagList.push(["PROGRAM-DATE-TIME",An]),wt===-1&&(wt=M.length);break;case"PLAYLIST-TYPE":f.type&&fs(f,zr,We),f.type=An.toUpperCase();break;case"MEDIA-SEQUENCE":f.startSN!==0?fs(f,zr,We):M.length>0&&ia(f,zr,We),w=f.startSN=parseInt(An);break;case"SKIP":{f.skippedSegments&&fs(f,zr,We);const Wn=new Vi(An,f),jr=Wn.decimalInteger("SKIPPED-SEGMENTS");if(le(jr)){f.skippedSegments+=jr;for(let Ii=jr;Ii--;)M.push(null);w+=jr}const Mn=Wn.enumeratedString("RECENTLY-REMOVED-DATERANGES");Mn&&(f.recentlyRemovedDateranges=(f.recentlyRemovedDateranges||[]).concat(Mn.split(" ")));break}case"TARGETDURATION":f.targetduration!==0&&fs(f,zr,We),f.targetduration=Math.max(parseInt(An),1);break;case"VERSION":f.version!==null&&fs(f,zr,We),f.version=parseInt(An);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":f.live||fs(f,zr,We),f.live=!1;break;case"#":(An||dn)&&Me.tagList.push(dn?[An,dn]:[An]);break;case"DISCONTINUITY":oe++,Me.tagList.push(["DIS"]);break;case"GAP":Me.gap=!0,Me.tagList.push([zr]);break;case"BITRATE":Me.tagList.push([zr,An]),xe=parseInt(An)*1e3,le(xe)?Me.bitrate=xe:xe=0;break;case"DATERANGE":{const Wn=new Vi(An,f),jr=new as(Wn,f.dateRanges[Wn.ID],f.dateRangeTagCount);f.dateRangeTagCount++,jr.isValid||f.skippedSegments?f.dateRanges[jr.id]=jr:q.warn(`Ignoring invalid DATERANGE tag: "${An}"`),Me.tagList.push(["EXT-X-DATERANGE",An]);break}case"DEFINE":{{const Wn=new Vi(An,f);"IMPORT"in Wn?Pa(f,Wn,o):$i(f,Wn,t)}break}case"DISCONTINUITY-SEQUENCE":f.startCC!==0?fs(f,zr,We):M.length>0&&ia(f,zr,We),f.startCC=oe=parseInt(An);break;case"KEY":{const Wn=Ho(An,t,f);if(Wn.isSupported()){if(Wn.method==="NONE"){xt=void 0;break}xt||(xt={}),xt[Wn.keyFormat]&&(xt=v({},xt)),xt[Wn.keyFormat]=Wn}else q.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${An}"`);break}case"START":f.startTimeOffset=Ko(An);break;case"MAP":{const Wn=new Vi(An,f);if(Me.duration){const jr=new Xe(n,A);pa(jr,Wn,r,xt),u=jr,Me.initSegment=u,u.rawProgramDateTime&&!Me.rawProgramDateTime&&(Me.rawProgramDateTime=u.rawProgramDateTime)}else{const jr=Me.byteRangeEndOffset;if(jr){const Mn=Me.byteRangeStartOffset;qt=`${jr-Mn}@${Mn}`}else qt=null;pa(Me,Wn,r,xt),u=Me,Et=!0}u.cc=oe;break}case"SERVER-CONTROL":{Pt&&fs(f,zr,We),Pt=new Vi(An),f.canBlockReload=Pt.bool("CAN-BLOCK-RELOAD"),f.canSkipUntil=Pt.optionalFloat("CAN-SKIP-UNTIL",0),f.canSkipDateRanges=f.canSkipUntil>0&&Pt.bool("CAN-SKIP-DATERANGES"),f.partHoldBack=Pt.optionalFloat("PART-HOLD-BACK",0),f.holdBack=Pt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{f.partTarget&&fs(f,zr,We);const Wn=new Vi(An);f.partTarget=Wn.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Wn=f.partList;Wn||(Wn=f.partList=[]);const jr=B>0?Wn[Wn.length-1]:void 0,Mn=B++,Ii=new Vi(An,f),Ei=new tt(Ii,Me,A,Mn,jr);Wn.push(Ei),Me.duration+=Ei.duration;break}case"PRELOAD-HINT":{const Wn=new Vi(An,f);f.preloadHint=Wn;break}case"RENDITION-REPORT":{const Wn=new Vi(An,f);f.renditionReports=f.renditionReports||[],f.renditionReports.push(Wn);break}default:q.warn(`line parsed but not handled: ${We}`);break}}}Ne&&!Ne.relurl?(M.pop(),Y-=Ne.duration,f.partList&&(f.fragmentHint=Ne)):f.partList&&(es(Me,Ne,a),Me.cc=oe,f.fragmentHint=Me,xt&&Bs(Me,xt,f)),f.targetduration||(f.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const Gt=M.length,tr=M[0],Ur=M[Gt-1];if(Y+=f.skippedSegments*f.targetduration,Y>0&&Gt&&Ur){f.averagetargetduration=Y/Gt;const Wr=Ur.sn;f.endSN=Wr!=="initSegment"?Wr:0,f.live||(Ur.endList=!0),tr&&f.startCC===void 0&&(f.startCC=tr.cc),wt>0&&(ds(M,wt),tr&&a.unshift(tr))}else f.endSN=0,f.startCC=0;return f.fragmentHint&&(Y+=f.fragmentHint.duration),f.totalduration=Y,a.length&&f.dateRangeTagCount&&tr&&Sa(a,f),f.endCC=oe,f}}function Sa(i,e){const t=i.length,r=i[t-1],n=e.live?1/0:e.totalduration,s=Object.keys(e.dateRanges);for(let o=s.length;o--;){const c=e.dateRanges[s[o]],A=c.startDate.getTime();c.tagAnchor=r.ref;for(let f=t;f--;){const M=ys(e,A,i,f,n);if(M!==-1){c.tagAnchor=e.fragments[M].ref;break}}}}function ys(i,e,t,r,n){const s=t[r];if(s){const c=s.programDateTime;if(e>=c||r===0){var o;const A=(((o=t[r+1])==null?void 0:o.start)||n)-s.start;if(e<=c+A*1e3){const f=t[r].sn-i.startSN,M=i.fragments;if(M.length>t.length){const u=(t[r+1]||M[M.length-1]).sn-i.startSN;for(let w=u;w>f;w--){const B=M[w].programDateTime;if(e>=B&&e<B+M[w].duration*1e3)return w}}return f}}}return-1}function Ho(i,e,t){var r,n;const s=new Vi(i,t),o=(r=s.METHOD)!=null?r:"",c=s.URI,A=s.hexadecimalInteger("IV"),f=s.KEYFORMATVERSIONS,M=(n=s.KEYFORMAT)!=null?n:"identity";c&&s.IV&&!A&&q.error(`Invalid IV: ${s.IV}`);const a=c?fa.resolve(c,e):"",u=(f||"1").split("/").map(Number).filter(Number.isFinite);return new ea(o,a,M,u,A)}function Ko(i){const t=new Vi(i).decimalFloatingPoint("TIME-OFFSET");return le(t)?t:null}function Fo(i,e){let t=(i||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const n=t.filter(s=>Tt(s,r));n.length&&(e[`${r}Codec`]=n.map(s=>s.split("/")[0]).join(","),t=t.filter(s=>n.indexOf(s)===-1))}),e.unknownCodecs=t}function mo(i,e,t){const r=e[t];r&&(i[t]=r)}function ds(i,e){let t=i[e];for(let r=e;r--;){const n=i[r];if(!n)return;n.programDateTime=t.programDateTime-n.duration*1e3,t=n}}function es(i,e,t){i.rawProgramDateTime?t.push(i):e!=null&&e.programDateTime&&(i.programDateTime=e.endProgramDateTime)}function pa(i,e,t,r){i.relurl=e.URI,e.BYTERANGE&&i.setByteRange(e.BYTERANGE),i.level=t,i.sn="initSegment",r&&(i.levelkeys=r),i.initSegment=null}function Bs(i,e,t){i.levelkeys=e;const{encryptedFragments:r}=t;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(n=>e[n].isCommonEncryption)&&r.push(i)}function fs(i,e,t){i.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function ia(i,e,t){i.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Fs(i,e){const t=e.startPTS;if(le(t)){let r=0,n;e.sn>i.sn?(r=t-i.start,n=i):(r=i.start-t,n=e),n.duration!==r&&n.setDuration(r)}else e.sn>i.sn?i.cc===e.cc&&i.minEndPTS?e.setStart(i.start+(i.minEndPTS-i.start)):e.setStart(i.start+i.duration):e.setStart(Math.max(i.start-e.duration,0))}function da(i,e,t,r,n,s){r-t<=0&&(q.warn("Fragment should have a positive duration",e),r=t+e.duration,s=n+e.duration);let c=t,A=r;const f=e.startPTS,M=e.endPTS;if(le(f)){const oe=Math.abs(f-t);le(e.deltaPTS)?e.deltaPTS=Math.max(oe,e.deltaPTS):e.deltaPTS=oe,c=Math.max(t,f),t=Math.min(t,f),n=Math.min(n,e.startDTS),A=Math.min(r,M),r=Math.max(r,M),s=Math.max(s,e.endDTS)}const a=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(r-e.start),e.startPTS=t,e.maxStartPTS=c,e.startDTS=n,e.endPTS=r,e.minEndPTS=A,e.endDTS=s;const u=e.sn;if(!i||u<i.startSN||u>i.endSN)return 0;let w;const B=u-i.startSN,Y=i.fragments;for(Y[B]=e,w=B;w>0;w--)Fs(Y[w],Y[w-1]);for(w=B;w<Y.length-1;w++)Fs(Y[w],Y[w+1]);return i.fragmentHint&&Fs(Y[Y.length-1],i.fragmentHint),i.PTSKnown=i.alignedSliding=!0,a}function Wa(i,e){if(i===e)return;let t=null;const r=i.fragments;for(let A=r.length-1;A>=0;A--){const f=r[A].initSegment;if(f){t=f;break}}i.fragmentHint&&delete i.fragmentHint.endPTS;let n;Eo(i,e,(A,f,M,a)=>{if(e.skippedSegments&&f.cc!==A.cc){const u=A.cc-f.cc;for(let w=M;w<a.length;w++)a[w].cc+=u}le(A.startPTS)&&le(A.endPTS)&&(f.setStart(f.startPTS=A.startPTS),f.startDTS=A.startDTS,f.maxStartPTS=A.maxStartPTS,f.endPTS=A.endPTS,f.endDTS=A.endDTS,f.minEndPTS=A.minEndPTS,f.setDuration(A.endPTS-A.startPTS),f.duration&&(n=f),e.PTSKnown=e.alignedSliding=!0),A.hasStreams&&(f.elementaryStreams=A.elementaryStreams),f.loader=A.loader,A.hasStats&&(f.stats=A.stats),A.initSegment&&(f.initSegment=A.initSegment,t=A.initSegment)});const s=e.fragments,o=e.fragmentHint?s.concat(e.fragmentHint):s;if(t&&o.forEach(A=>{var f;A&&(!A.initSegment||A.initSegment.relurl===((f=t)==null?void 0:f.relurl))&&(A.initSegment=t)}),e.skippedSegments)if(e.deltaUpdateFailed=s.some(A=>!A),e.deltaUpdateFailed){q.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let A=e.skippedSegments;A--;)s.shift();e.startSN=s[0].sn}else{e.endCC=s[s.length-1].cc,e.canSkipDateRanges&&(e.dateRanges=Mo(i.dateRanges,e));const A=i.fragments.filter(f=>f.rawProgramDateTime);if(i.hasProgramDateTime&&!e.hasProgramDateTime)for(let f=1;f<o.length;f++)o[f].programDateTime===null&&es(o[f],o[f-1],A);Sa(A,e)}qa(i.partList,e.partList,(A,f)=>{f.elementaryStreams=A.elementaryStreams,f.stats=A.stats}),n?da(e,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS):ka(i,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=i.driftStartTime,e.driftStart=i.driftStart;const c=e.advancedDateTime;if(e.advanced&&c){const A=e.edge;e.driftStart||(e.driftStartTime=c,e.driftStart=A),e.driftEndTime=c,e.driftEnd=A}else e.driftEndTime=i.driftEndTime,e.driftEnd=i.driftEnd,e.advancedDateTime=i.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=i.requestScheduled)}function Mo(i,e){const{dateRanges:t,recentlyRemovedDateranges:r}=e,n=v({},i);r&&r.forEach(c=>{delete n[c]});const o=Object.keys(n).length;return o&&Object.keys(t).forEach(c=>{const A=n[c],f=new as(t[c].attr,A);f.isValid?(n[c]=f,A||(f.tagOrder+=o)):q.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${ln(t[c].attr)}"`)}),n}function qa(i,e,t){if(i&&e){let r=0;for(let n=0,s=i.length;n<=s;n++){const o=i[n],c=e[n+r];o&&c&&o.index===c.index&&o.fragment.sn===c.fragment.sn?t(o,c):r--}}}function Eo(i,e,t){const r=e.skippedSegments,n=Math.max(i.startSN,e.startSN)-e.startSN,s=(i.fragmentHint?1:0)+(r?e.endSN:Math.min(i.endSN,e.endSN))-e.startSN,o=e.startSN-i.startSN,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,A=i.fragmentHint?i.fragments.concat(i.fragmentHint):i.fragments;for(let f=n;f<=s;f++){const M=A[o+f];let a=c[f];if(r&&!a&&M&&(a=e.fragments[f]=M),M&&a){if(t(M,a,f,c),M.url&&M.url!==a.url){e.playlistParsingError=hl(`media sequence mismatch ${a.sn}:`,i,e,M,a);return}else if(M.cc!==a.cc){e.playlistParsingError=hl(`discontinuity sequence mismatch (${M.cc}!=${a.cc})`,i,e,M,a);return}}}}function hl(i,e,t,r,n){return new Error(`${i} ${n.url}
|
|
|
Playlist starting @${e.startSN}
|
|
|
${e.m3u8}
|
|
|
|
|
|
Playlist starting @${t.startSN}
|
|
|
${t.m3u8}`)}function ka(i,e,t=!0){const r=e.startSN+e.skippedSegments-i.startSN,n=i.fragments,s=r>=0;let o=0;if(s&&r<n.length)o=n[r].start;else if(s&&e.startSN===i.endSN+1)o=i.fragmentEnd;else if(s&&t)o=i.fragmentStart+r*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)o=i.fragmentStart;else return;Ya(e,o)}function Ya(i,e){if(e){const t=i.fragments;for(let r=i.skippedSegments;r<t.length;r++)t[r].addStart(e);i.fragmentHint&&i.fragmentHint.addStart(e)}}function El(i,e=1/0){let t=1e3*i.targetduration;if(i.updated){const r=i.fragments;if(r.length&&t*4>e){const s=r[r.length-1].duration*1e3;s<t&&(t=s)}}else t/=2;return Math.round(t)}function qo(i,e,t){if(!i)return null;let r=i.fragments[e-i.startSN];return r||(r=i.fragmentHint,r&&r.sn===e)?r:e<i.startSN&&t&&t.sn===e?t:null}function zo(i,e,t){return i?pl(i.partList,e,t):null}function pl(i,e,t){if(i)for(let r=i.length;r--;){const n=i[r];if(n.index===t&&n.fragment.sn===e)return n}return null}function Go(i){i.forEach((e,t)=>{var r;(r=e.details)==null||r.fragments.forEach(n=>{n.level=t,n.initSegment&&(n.initSegment.level=t)})})}function Ma(i,e){for(let r=0,n=i.length;r<n;r++){var t;if(((t=i[r])==null?void 0:t.cc)===e)return i[r]}return null}function ba(i,e){return!!(i&&e.startCC<i.endCC&&e.endCC>i.startCC)}function eo(i,e){if(i){const t=i.start+e;i.start=i.startPTS=t,i.endPTS=t+i.duration}}function _s(i,e){const t=e.fragments;for(let r=0,n=t.length;r<n;r++)eo(t[r],i);e.fragmentHint&&eo(e.fragmentHint,i),e.alignedSliding=!0}function zs(i,e){i&&(Is(e,i),!e.alignedSliding&&i&&sa(e,i),!e.alignedSliding&&i&&!e.skippedSegments&&ka(i,e,!1))}function Is(i,e){if(!ba(e,i))return;const t=Math.min(e.endCC,i.endCC),r=Ma(e.fragments,t),n=Ma(i.fragments,t);if(!r||!n)return;q.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const s=r.start-n.start;_s(s,i)}function sa(i,e){if(!i.hasProgramDateTime||!e.hasProgramDateTime)return;const t=i.fragments,r=e.fragments;if(!t.length||!r.length)return;let n,s;const o=Math.min(e.endCC,i.endCC);e.startCC<o&&i.startCC<o&&(n=Ma(r,o),s=Ma(t,o)),(!n||!s)&&(n=r[Math.floor(r.length/2)],s=Ma(t,n.cc)||t[Math.floor(t.length/2)]);const c=n.programDateTime,A=s.programDateTime;if(!c||!A)return;const f=(A-c)/1e3-(s.start-n.start);_s(f,i)}const ma={toString:function(i){let e="";const t=i.length;for(let r=0;r<t;r++)e+=`[${i.start(r).toFixed(3)}-${i.end(r).toFixed(3)}]`;return e}},Ln={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class _o extends ss{constructor(e,t,r,n,s){super(n,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Ln.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:o,fragCurrent:c,media:A,mediaBuffer:f,state:M}=this,a=A?A.currentTime:0,u=Ti.bufferInfo(f||A,a,o.maxBufferHole);if(this.log(`media seeking to ${le(a)?a.toFixed(3):a}, state: ${M}`),this.state===Ln.ENDED)this.resetLoadingState();else if(c){const w=o.maxFragLookUpTolerance,B=c.start-w,Y=c.start+c.duration+w;if(!u.len||Y<u.start||B>u.end){const oe=a>Y;(a<B||oe)&&(oe&&c.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),c.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(A){this.fragmentTracker.removeFragmentsInRange(a,1/0,this.playlistType,!0);const w=this.lastCurrentTime;if(a>w&&(this.lastCurrentTime=a),!this.loadingParts){const B=Math.max(u.end,a),Y=this.shouldLoadParts(this.getLevelDetails(),B);Y&&(this.log(`LL-Part loading ON after seeking to ${a.toFixed(2)} with buffer @${B.toFixed(2)}`),this.loadingParts=Y)}}!this.hls.hasEnoughToStart&&!u.len&&(this.log(`setting startPosition to ${a} because of seek before start`),this.nextLoadPosition=this.startPosition=a),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=s,this.hls=e,this.fragmentLoader=new us(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new js(e.config)}registerListeners(){const{hls:e}=this;e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===Ln.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Ln.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return t===-1&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const r=e.end||0,n=this.config.timelineOffset||0;if(r<=n)return!1;const s=e.nextStart;if(s&&s>n&&s<t.edge||this.media.currentTime<e.start)return!1;const c=t.partList;if(c!=null&&c.length){const f=c[c.length-1];return Ti.isBuffered(this.media,f.start+f.duration/2)}const A=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(A)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const r=this.media=this.mediaBuffer=t.media;r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),r.addEventListener("seeking",this.onMediaSeeking),r.addEventListener("ended",this.onMediaEnded);const n=this.config;this.levels&&n.autoStartLoad&&this.state===Ln.STOPPED&&this.startLoad(n.startPosition)}onMediaDetaching(e,t){const r=!!t.transferMedia,n=this.media;if(n!==null){if(n.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!r&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,r){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=Ln.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,r){this.startFragRequested=!0,this._loadFragForPlayback(e,t,r)}_loadFragForPlayback(e,t,r){const n=s=>{const o=s.frag;if(this.fragContextChanged(o)){this.warn(`${o.type} sn: ${o.sn}${s.part?" part: "+s.part.index:""} of ${this.fragInfo(o,!1,s.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(o);return}o.stats.chunkCount++,this._handleFragmentLoadProgress(s)};this._doFragLoad(e,t,r,n).then(s=>{if(!s)return;const o=this.state,c=s.frag;if(this.fragContextChanged(c)){(o===Ln.FRAG_LOADING||!this.fragCurrent&&o===Ln.PARSING)&&(this.fragmentTracker.removeFragment(c),this.state=Ln.IDLE);return}"payload"in s&&(this.log(`Loaded ${c.type} sn: ${c.sn} of ${this.playlistLabel()} ${c.level}`),this.hls.trigger(g.FRAG_LOADED,s)),this._handleFragmentLoadComplete(s)}).catch(s=>{this.state===Ln.STOPPED||this.state===Ln.ERROR||(this.warn(`Frag error: ${(s==null?void 0:s.message)||s}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:r}=this;if(r.getState(e)===$n.APPENDING){const s=e.type,o=this.getFwdBufferInfo(this.mediaBuffer,s),c=Math.max(e.duration,o?o.len:this.config.maxBufferLength),A=this.backtrackFragment;((A?e.sn-A.sn:0)===1||this.reduceMaxBufferLength(c,e.duration))&&r.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?r.removeAllFragments():r.hasParts(e.type)&&(r.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),r.getState(e)===$n.PARTIAL&&r.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,r=null){if(!(e-t))return;const n={startOffset:e,endOffset:t,type:r};this.hls.trigger(g.BUFFER_FLUSHING,n)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(r=>{const n=r==null?void 0:r.frag;if(!n||this.fragContextChanged(n)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:n}=this,{frag:s,payload:o}=r,c=s.decryptdata;if(o&&o.byteLength>0&&c!=null&&c.key&&c.iv&&Di(c.method)){const A=self.performance.now();return this.decrypter.decrypt(new Uint8Array(o),c.key.buffer,c.iv.buffer,wi(c.method)).catch(f=>{throw n.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.FRAG_DECRYPT_ERROR,fatal:!1,error:f,reason:f.message,frag:s}),f}).then(f=>{const M=self.performance.now();return n.trigger(g.FRAG_DECRYPTED,{frag:s,payload:f,stats:{tstart:A,tdecrypt:M}}),r.payload=f,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===Ln.STOPPED||this.state===Ln.ERROR||(this.warn(r),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const r=e.frag.stats;this.state!==Ln.STOPPED&&(this.state=Ln.IDLE),e.frag.data=new Uint8Array(e.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const r=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${r?ma.toString(Ti.getBuffered(r)):"(detached)"})`),de(e)){var n;if(e.type!==T.SUBTITLE){const o=e.elementaryStreams;if(!Object.keys(o).some(c=>!!o[c])){this.state=Ln.IDLE;return}}const s=(n=this.levels)==null?void 0:n[e.level];s!=null&&s.fragmentError&&(this.log(`Resetting level fragment error count of ${s.fragmentError} on frag buffered`),s.fragmentError=0)}this.state=Ln.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:r,part:n,partsLoaded:s}=e,o=!s||s.length===0||s.some(A=>!A),c=new gi(r.level,r.sn,r.stats.chunkCount+1,0,n?n.index:-1,!o);t.flush(c)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,r=null,n){var s;this.fragCurrent=e;const o=t==null?void 0:t.details;if(!this.levels||!o)throw new Error(`frag load aborted, missing level${o?"":" detail"}s`);let c=null;e.encrypted&&!((s=e.decryptdata)!=null&&s.key)?(this.log(`Loading key for ${e.sn} of [${o.startSN}-${o.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=Ln.KEY_LOADING,this.fragCurrent=e,c=this.keyLoader.load(e).then(a=>{if(!this.fragContextChanged(a.frag))return this.hls.trigger(g.KEY_LOADED,a),this.state===Ln.KEY_LOADING&&(this.state=Ln.IDLE),a}),this.hls.trigger(g.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(c=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&o.encryptedFragments.length&&this.keyLoader.loadClear(e,o.encryptedFragments);const A=this.fragPrevious;if(de(e)&&(!A||e.sn!==A.sn)){const a=this.shouldLoadParts(t.details,e.end);a!==this.loadingParts&&(this.log(`LL-Part loading ${a?"ON":"OFF"} loading sn ${A==null?void 0:A.sn}->${e.sn}`),this.loadingParts=a)}if(r=Math.max(e.start,r||0),this.loadingParts&&de(e)){const a=o.partList;if(a&&n){r>e.end&&o.fragmentHint&&(e=o.fragmentHint);const u=this.getNextPart(a,e,r);if(u>-1){const w=a[u];e=this.fragCurrent=w.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${w.index} (${u}/${a.length-1}) of ${this.fragInfo(e,!1,w)}) cc: ${e.cc} [${o.startSN}-${o.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=w.start+w.duration,this.state=Ln.FRAG_LOADING;let B;return c?B=c.then(Y=>!Y||this.fragContextChanged(Y.frag)?null:this.doFragPartsLoad(e,w,t,n)).catch(Y=>this.handleFragLoadError(Y)):B=this.doFragPartsLoad(e,w,t,n).catch(Y=>this.handleFragLoadError(Y)),this.hls.trigger(g.FRAG_LOADING,{frag:e,part:w,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):B}else if(!e.url||this.loadedEndOfParts(a,r))return Promise.resolve(null)}}if(de(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)}`),this.loadingParts=!1;else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${o?"["+o.startSN+"-"+o.endSN+"]":""}, target: ${parseFloat(r.toFixed(3))}`),le(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Ln.FRAG_LOADING;const f=this.config.progressive;let M;return f&&c?M=c.then(a=>!a||this.fragContextChanged(a==null?void 0:a.frag)?null:this.fragmentLoader.load(e,n)).catch(a=>this.handleFragLoadError(a)):M=Promise.all([this.fragmentLoader.load(e,f?n:void 0),c]).then(([a])=>(!f&&a&&n&&n(a),a)).catch(a=>this.handleFragLoadError(a)),this.hls.trigger(g.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):M}doFragPartsLoad(e,t,r,n){return new Promise((s,o)=>{var c;const A=[],f=(c=r.details)==null?void 0:c.partList,M=a=>{this.fragmentLoader.loadPart(e,a,n).then(u=>{A[a.index]=u;const w=u.part;this.hls.trigger(g.FRAG_LOADED,u);const B=zo(r.details,e.sn,a.index+1)||pl(f,e.sn,a.index+1);if(B)M(B);else return s({frag:e,part:w,partsLoaded:A})}).catch(o)};M(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===K.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(g.ERROR,t)}else this.hls.trigger(g.ERROR,{type:Re.OTHER_ERROR,details:K.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Ln.PARSING){!this.fragCurrent&&this.state!==Ln.STOPPED&&this.state!==Ln.ERROR&&(this.state=Ln.IDLE);return}const{frag:r,part:n,level:s}=t,o=self.performance.now();r.stats.parsing.end=o,n&&(n.stats.parsing.end=o);const c=this.getLevelDetails(),f=c&&r.sn>c.endSN||this.shouldLoadParts(c,r.end);f!==this.loadingParts&&(this.log(`LL-Part loading ${f?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=f),this.updateLevelTiming(r,n,s,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e!=null&&e.partList){var r;const s=e.partList[0],o=s.end+(((r=e.fragmentHint)==null?void 0:r.duration)||0);if(t>=o){var n;if((this.hls.hasEnoughToStart?((n=this.media)==null?void 0:n.currentTime)||this.lastCurrentTime:this.getLoadPosition())>s.start-s.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:r}=this,{level:n,sn:s,part:o}=e;if(!(t!=null&&t[n]))return this.warn(`Levels object was unset while buffering fragment ${s} of ${this.playlistLabel()} ${n}. The current chunk will not be buffered.`),null;const c=t[n],A=c.details,f=o>-1?zo(A,s,o):null,M=f?f.fragment:qo(A,s,r);return M?(r&&r!==M&&(M.stats=r.stats),{frag:M,part:f,level:c}):null}bufferFragmentData(e,t,r,n,s){var o;if(!e||this.state!==Ln.PARSING)return;const{data1:c,data2:A}=e;let f=c;if(c&&A&&(f=ze(c,A)),!((o=f)!=null&&o.length))return;const M={type:e.type,frag:t,part:r,chunkMeta:n,parent:t.type,data:f};if(this.hls.trigger(g.BUFFER_APPENDING,M),e.dropped&&e.independent&&!r){if(s)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Ti.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,n=Ti.bufferInfo(t,r,0),s=e.duration,o=Math.min(this.config.maxFragLookUpTolerance*2,s*.25),c=Math.max(Math.min(e.start-o,n.end-o),r+o);e.start-c>o&&this.flushMainBuffer(c,e.start)}getFwdBufferInfo(e,t){var r;const n=this.getLoadPosition();if(!le(n))return null;const o=this.lastCurrentTime>n||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,n,t,o)}getFwdBufferInfoAtPos(e,t,r,n){const s=Ti.bufferInfo(e,t,n);if(s.len===0&&s.nextStart!==void 0){const o=this.fragmentTracker.getBufferedFrag(t,r);if(o&&(s.nextStart<=o.end||o.gap)){const c=Math.max(Math.min(s.nextStart,o.end)-t,n);return Ti.bufferInfo(e,t,c)}}return s}getMaxBufferLength(e){const{config:t}=this;let r;return e?r=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):r=t.maxBufferLength,Math.min(r,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const r=this.config,n=Math.max(Math.min(e-t,r.maxBufferLength),t),s=Math.max(e-t*3,r.maxMaxBufferLength/2,n);return s>=n?(r.maxMaxBufferLength=s,this.warn(`Reduce max buffer length to ${s}s`),!0):!1}getAppendedFrag(e,t=T.MAIN){var r;const n=(r=this.fragmentTracker)==null?void 0:r.getAppendedFrag(e,t);return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const r=t.fragments,n=r.length;if(!n)return null;const{config:s}=this,o=r[0].start,c=s.lowLatencyMode&&!!t.partList;let A=null;if(t.live){const a=s.initialLiveManifestSize;if(n<a)return this.warn(`Not enough fragments to start playback (have: ${n}, need: ${a})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<o){var f;c&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),A=this.getInitialLiveFragment(t,r);const u=this.hls.startPosition,w=this.hls.liveSyncPosition,B=A?(u!==-1&&u>=o?u:w)||A.start:e;this.log(`Setting startPosition to ${B} to match start frag at live edge. mainStart: ${u} liveSyncPosition: ${w} frag.start: ${(f=A)==null?void 0:f.start}`),this.startPosition=this.nextLoadPosition=B}}else e<=o&&(A=r[0]);if(!A){const a=this.loadingParts?t.partEnd:t.fragmentEnd;A=this.getFragmentAtPosition(e,a,t)}let M=this.filterReplacedPrimary(A,t);if(!M&&A){const a=A.sn-t.startSN;M=this.filterReplacedPrimary(r[a+1]||null,t)}return this.mapToInitFragWhenRequired(M)}isLoopLoading(e,t){const r=this.fragmentTracker.getState(e);return(r===$n.OK||r===$n.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,r,n,s){let o=null;if(e.gap&&(o=this.getNextFragment(this.nextLoadPosition,t),o&&!o.gap&&r.nextStart)){const c=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,n,0);if(c!==null&&r.len+c.len>=s){const A=o.sn;return this.loopSn!==A&&(this.log(`buffer full after gaps in "${n}" playlist starting at sn: ${A}`),this.loopSn=A),null}}return this.loopSn=void 0,o}get primaryPrefetch(){if(el(this.hls.config)){var e,t;if((e=this.hls.interstitialsManager)==null||(t=e.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(el(this.hls.config)&&e.type!==T.SUBTITLE){const r=this.hls.interstitialsManager,n=r==null?void 0:r.bufferingItem;if(n){const o=n.event;if(o){if(o.appendInPlace||Math.abs(e.start-n.start)>1||n.start===0)return null}else if(e.end<=n.start&&(t==null?void 0:t.live)===!1||e.start>n.end&&n.nextEvent&&(n.nextEvent.appendInPlace||e.start-n.end>1))return null}const s=r==null?void 0:r.playerQueue;if(s)for(let o=s.length;o--;){const c=s[o].interstitial;if(c.appendInPlace&&e.start>=c.startTime&&e.end<=c.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!(e!=null&&e.initSegment.data)&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,r){let n=-1,s=!1,o=!0;for(let c=0,A=e.length;c<A;c++){const f=e[c];if(o=o&&!f.independent,n>-1&&r<f.start)break;const M=f.loaded;M?n=-1:(s||f.independent||o)&&f.fragment===t&&(n=c),s=M}return n}loadedEndOfParts(e,t){const r=e[e.length-1];return r&&t>r.start&&r.loaded}getInitialLiveFragment(e,t){const r=this.fragPrevious;let n=null;if(r){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),n=mi(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!n){const s=r.sn+1;if(s>=e.startSN&&s<=e.endSN){const o=t[s-e.startSN];r.cc===o.cc&&(n=o,this.log(`Live playlist, switching playlist, load frag with next SN: ${n.sn}`))}n||(n=zn(t,r.cc),n&&this.log(`Live playlist, switching playlist, load frag with same CC: ${n.sn}`))}}else{const s=this.hls.liveSyncPosition;s!==null&&(n=this.getFragmentAtPosition(s,this.bitrateTest?e.fragmentEnd:e.edge,e))}return n}getFragmentAtPosition(e,t,r){const{config:n}=this;let{fragPrevious:s}=this,{fragments:o,endSN:c}=r;const{fragmentHint:A}=r,{maxFragLookUpTolerance:f}=n,M=r.partList,a=!!(this.loadingParts&&M!=null&&M.length&&A);a&&A&&!this.bitrateTest&&M[M.length-1].fragment.sn===A.sn&&(o=o.concat(A),c=A.sn);let u;if(e<t){var w;const Y=e<this.lastCurrentTime||e>t-f||(w=this.media)!=null&&w.paused||!this.startFragRequested?0:f;u=hr(s,o,e,Y)}else u=o[o.length-1];if(u){const B=u.sn-r.startSN,Y=this.fragmentTracker.getState(u);if((Y===$n.OK||Y===$n.PARTIAL&&u.gap)&&(s=u),s&&u.sn===s.sn&&(!a||M[0].fragment.sn>u.sn||!r.live&&!a)&&s&&u.level===s.level){const xe=o[B+1];u.sn<c&&this.fragmentTracker.getState(xe)!==$n.OK?u=xe:u=null}}return u}alignPlaylists(e,t,r){const n=e.fragments.length;if(!n)return this.warn("No fragments in live playlist"),0;const s=e.fragmentStart,o=!t,c=e.alignedSliding&&le(s);if(o||!c&&!s){zs(r,e);const A=e.fragmentStart;return this.log(`Live playlist sliding: ${A.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${n}`),A}return s}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let r=this.startPosition;r<t&&(r=-1);const n=this.timelineOffset;if(r===-1){const s=this.startTimeOffset!==null,o=s?this.startTimeOffset:e.startTimeOffset;o!==null&&le(o)?(r=t+o,o<0&&(r+=e.edge),r=Math.min(Math.max(t,r),t+e.totalduration),this.log(`Setting startPosition to ${r} for start time offset ${o} found in ${s?"multivariant":"media"} playlist`),this.startPosition=r):e.live?(r=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${r}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=r=0),this.lastCurrentTime=r+n}this.nextLoadPosition=r+n}getLoadPosition(){var e;const{media:t}=this;let r=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?r=t.currentTime:this.nextLoadPosition>=0&&(r=this.nextLoadPosition),r}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&de(e)&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==Ln.FRAG_LOADING_WAITING_RETRY)&&(this.state=Ln.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const B=this.getCurrentContext(t.chunkMeta);B&&(t.frag=B.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var n;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(n=this.fragCurrent)==null?void 0:n.url}`);return}const s=t.details===K.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const o=t.errorAction,{action:c,flags:A,retryCount:f=0,retryConfig:M}=o||{},a=!!o&&!!M,u=a&&c===yn.RetryRequest,w=a&&!o.resolved&&A===Yt.MoveAllAlternatesMatchingHost;if(!u&&w&&de(r)&&!r.endList)this.resetFragmentErrors(e),this.treatAsGap(r),o.resolved=!0;else if((u||w)&&f<M.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const B=si(M,f);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${f+1}/${M.maxNumRetry} in ${B}ms`),o.resolved=!0,this.retryDate=self.performance.now()+B,this.state=Ln.FRAG_LOADING_WAITING_RETRY}else if(M&&o)if(this.resetFragmentErrors(e),f<M.maxNumRetry)!s&&c!==yn.RemoveAlternatePermanently&&(o.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${f})`);return}else c===yn.SendAlternateToPenaltyBox?this.state=Ln.WAITING_LEVEL:this.state=Ln.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===Ln.PARSING||this.state===Ln.PARSED){const t=e.frag,r=e.parent,n=this.getFwdBufferInfo(this.mediaBuffer,r),s=n&&n.len>.5;s&&this.reduceMaxBufferLength(n.len,(t==null?void 0:t.duration)||10);const o=!s;return o&&this.warn(`Buffer full error while media.currentTime is not buffered, flush ${r} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),o}return!1}resetFragmentErrors(e){e===T.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Ln.STOPPED&&(this.state=Ln.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const n=Ti.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,n,r),this.state===Ln.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Ln.STOPPED&&(this.state=Ln.IDLE)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,r,n){const s=r.details;if(!s){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((A,f)=>{const M=e.elementaryStreams[f];if(M){const a=M.endPTS-M.startPTS;if(a<=0)return this.warn(`Could not parse fragment ${e.sn} ${f} duration reliably (${a})`),A||!1;const u=n?0:da(s,e,M.startPTS,M.endPTS,M.startDTS,M.endDTS);return this.hls.trigger(g.LEVEL_PTS_UPDATED,{details:s,level:r,drift:u,type:f,frag:e,start:M.startPTS,end:M.endPTS}),!0}return A},!1)){var c;if(r.fragmentError===0&&this.treatAsGap(e,r),((c=this.transmuxer)==null?void 0:c.error)===null){const A=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(A.message),this.hls.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.FRAG_PARSING_ERROR,fatal:!1,error:A,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=Ln.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(g.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===T.MAIN?"level":"track"}fragInfo(e,t=!0,r){var n,s;return`${this.playlistLabel()} ${e.level} (${r?"part":"frag"}:[${((n=t&&!r?e.startPTS:(r||e).start)!=null?n:NaN).toFixed(3)}-${((s=t&&!r?e.endPTS:(r||e).end)!=null?s:NaN).toFixed(3)}]${r&&e.type==="main"?"INDEPENDENT="+(r.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function el(i){return!!i.interstitialsController&&i.enableInterstitialPlayback!==!1}class Rl{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let r;if(e.length)e.length===1?r=e[0]:r=Ol(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function Ol(i,e){const t=new Uint8Array(e);let r=0;for(let n=0;n<i.length;n++){const s=i[n];t.set(s,r),r+=s.length}return t}var Zo={exports:{}},tl;function xu(){return tl||(tl=1,function(i){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function n(A,f,M){this.fn=A,this.context=f,this.once=M||!1}function s(A,f,M,a,u){if(typeof M!="function")throw new TypeError("The listener must be a function");var w=new n(M,a||A,u),B=t?t+f:f;return A._events[B]?A._events[B].fn?A._events[B]=[A._events[B],w]:A._events[B].push(w):(A._events[B]=w,A._eventsCount++),A}function o(A,f){--A._eventsCount===0?A._events=new r:delete A._events[f]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var f=[],M,a;if(this._eventsCount===0)return f;for(a in M=this._events)e.call(M,a)&&f.push(t?a.slice(1):a);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(M)):f},c.prototype.listeners=function(f){var M=t?t+f:f,a=this._events[M];if(!a)return[];if(a.fn)return[a.fn];for(var u=0,w=a.length,B=new Array(w);u<w;u++)B[u]=a[u].fn;return B},c.prototype.listenerCount=function(f){var M=t?t+f:f,a=this._events[M];return a?a.fn?1:a.length:0},c.prototype.emit=function(f,M,a,u,w,B){var Y=t?t+f:f;if(!this._events[Y])return!1;var oe=this._events[Y],xe=arguments.length,Ne,Me;if(oe.fn){switch(oe.once&&this.removeListener(f,oe.fn,void 0,!0),xe){case 1:return oe.fn.call(oe.context),!0;case 2:return oe.fn.call(oe.context,M),!0;case 3:return oe.fn.call(oe.context,M,a),!0;case 4:return oe.fn.call(oe.context,M,a,u),!0;case 5:return oe.fn.call(oe.context,M,a,u,w),!0;case 6:return oe.fn.call(oe.context,M,a,u,w,B),!0}for(Me=1,Ne=new Array(xe-1);Me<xe;Me++)Ne[Me-1]=arguments[Me];oe.fn.apply(oe.context,Ne)}else{var We=oe.length,ct;for(Me=0;Me<We;Me++)switch(oe[Me].once&&this.removeListener(f,oe[Me].fn,void 0,!0),xe){case 1:oe[Me].fn.call(oe[Me].context);break;case 2:oe[Me].fn.call(oe[Me].context,M);break;case 3:oe[Me].fn.call(oe[Me].context,M,a);break;case 4:oe[Me].fn.call(oe[Me].context,M,a,u);break;default:if(!Ne)for(ct=1,Ne=new Array(xe-1);ct<xe;ct++)Ne[ct-1]=arguments[ct];oe[Me].fn.apply(oe[Me].context,Ne)}}return!0},c.prototype.on=function(f,M,a){return s(this,f,M,a,!1)},c.prototype.once=function(f,M,a){return s(this,f,M,a,!0)},c.prototype.removeListener=function(f,M,a,u){var w=t?t+f:f;if(!this._events[w])return this;if(!M)return o(this,w),this;var B=this._events[w];if(B.fn)B.fn===M&&(!u||B.once)&&(!a||B.context===a)&&o(this,w);else{for(var Y=0,oe=[],xe=B.length;Y<xe;Y++)(B[Y].fn!==M||u&&!B[Y].once||a&&B[Y].context!==a)&&oe.push(B[Y]);oe.length?this._events[w]=oe.length===1?oe[0]:oe:o(this,w)}return this},c.prototype.removeAllListeners=function(f){var M;return f?(M=t?t+f:f,this._events[M]&&o(this,M)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,i.exports=c}(Zo)),Zo.exports}var zl=xu(),au=O(zl);const Pl="1.6.0",Vo={};function Mu(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Eu(){const i=Vo[Pl];if(i)return i.clientCount++,i;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),n={worker:new self.Worker(t),objectURL:t,clientCount:1};return Vo[Pl]=n,n}function sc(i){const e=Vo[i];if(e)return e.clientCount++,e;const t=new self.URL(i,self.location.href).href,n={worker:new self.Worker(t),scriptURL:t,clientCount:1};return Vo[i]=n,n}function C(i){const e=Vo[i||Pl];if(e&&e.clientCount--===1){const{worker:r,objectURL:n}=e;delete Vo[i||Pl],n&&self.URL.revokeObjectURL(n),r.terminate()}}function h(i,e){return e+10<=i.length&&i[e]===51&&i[e+1]===68&&i[e+2]===73&&i[e+3]<255&&i[e+4]<255&&i[e+6]<128&&i[e+7]<128&&i[e+8]<128&&i[e+9]<128}function _(i,e){return e+10<=i.length&&i[e]===73&&i[e+1]===68&&i[e+2]===51&&i[e+3]<255&&i[e+4]<255&&i[e+6]<128&&i[e+7]<128&&i[e+8]<128&&i[e+9]<128}function j(i,e){let t=0;return t=(i[e]&127)<<21,t|=(i[e+1]&127)<<14,t|=(i[e+2]&127)<<7,t|=i[e+3]&127,t}function ie(i,e){const t=e;let r=0;for(;_(i,e);){r+=10;const n=j(i,e+6);r+=n,h(i,e+10)&&(r+=10),e+=r}if(r>0)return i.subarray(t,t+r)}function X(i,e,t,r){const n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],s=e[t+2],o=s>>2&15;if(o>12){const w=new Error(`invalid ADTS sampling index:${o}`);i.emit(g.ERROR,g.ERROR,{type:Re.MEDIA_ERROR,details:K.FRAG_PARSING_ERROR,fatal:!0,error:w,reason:w.message});return}const c=(s>>6&3)+1,A=e[t+3]>>6&3|(s&1)<<2,f="mp4a.40."+c,M=n[o];let a=o;(c===5||c===29)&&(a-=3);const u=[c<<3|(a&14)>>1,(a&1)<<7|A<<3];return q.log(`manifest codec:${r}, parsed codec:${f}, channels:${A}, rate:${M} (ADTS object type:${c} sampling index:${o})`),{config:u,samplerate:M,channelCount:A,codec:f,parsedCodec:f,manifestCodec:r}}function me(i,e){return i[e]===255&&(i[e+1]&246)===240}function De(i,e){return i[e+1]&1?7:9}function ke(i,e){return(i[e+3]&3)<<11|i[e+4]<<3|(i[e+5]&224)>>>5}function et(i,e){return e+5<i.length}function dt(i,e){return e+1<i.length&&me(i,e)}function ft(i,e){return et(i,e)&&me(i,e)&&ke(i,e)<=i.length-e}function Ct(i,e){if(dt(i,e)){const t=De(i,e);if(e+t>=i.length)return!1;const r=ke(i,e);if(r<=t)return!1;const n=e+r;return n===i.length||dt(i,n)}return!1}function Ve(i,e,t,r,n){if(!i.samplerate){const s=X(e,t,r,n);if(!s)return;v(i,s)}}function nr(i){return 1024*9e4/i}function Zt(i,e){const t=De(i,e);if(e+t<=i.length){const r=ke(i,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function or(i,e,t,r,n){const s=nr(i.samplerate),o=r+n*s,c=Zt(e,t);let A;if(c){const{frameLength:a,headerLength:u}=c,w=u+a,B=Math.max(0,t+w-e.length);B?(A=new Uint8Array(w-u),A.set(e.subarray(t+u,e.length),0)):A=e.subarray(t+u,t+w);const Y={unit:A,pts:o};return B||i.samples.push(Y),{sample:Y,length:w,missing:B}}const f=e.length-t;return A=new Uint8Array(f),A.set(e.subarray(t,e.length),0),{sample:{unit:A,pts:o},length:f,missing:-1}}function Lt(i,e){return _(i,e)&&j(i,e+6)+10<=i.length-e}function ar(i){if(i.size<2)return;const e=se(i.data,!0),t=new Uint8Array(i.data.subarray(e.length+1));return{key:i.type,info:e,data:t.buffer}}function Ir(i){if(i.size<2)return;if(i.type==="TXXX"){let t=1;const r=se(i.data.subarray(t),!0);t+=r.length+1;const n=se(i.data.subarray(t));return{key:i.type,info:r,data:n}}const e=se(i.data.subarray(1));return{key:i.type,info:"",data:e}}function Zr(i){if(i.type==="WXXX"){if(i.size<2)return;let t=1;const r=se(i.data.subarray(t),!0);t+=r.length+1;const n=se(i.data.subarray(t));return{key:i.type,info:r,data:n}}const e=se(i.data);return{key:i.type,info:"",data:e}}function mn(i){return btoa(String.fromCharCode(...i))}function Gn(i,e){if(i<0)return-Gn(-i,e);const t=Math.pow(10,e);if(Math.abs(i*t%1-.5)<Number.EPSILON){const n=Math.floor(i*t);return(n%2===0?n:n+1)/t}else return Math.round(i*t)/t}function Jr(i,e){const t=new URL(i),r=new URL(e);if(t.origin!==r.origin)return i;const n=t.pathname.split("/").slice(1),s=r.pathname.split("/").slice(1,-1);for(;n[0]===s[0];)n.shift(),s.shift();for(;s.length;)s.shift(),n.unshift("..");return n.join("/")}function br(){try{return crypto.randomUUID()}catch(i){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n=="x"?s:s&3|8).toString(16)})}}}function en(i){return i instanceof ArrayBuffer?i:i.byteOffset==0&&i.byteLength==i.buffer.byteLength?i.buffer:new Uint8Array(i).buffer}function In(i,e=0,t=1/0){return Nt(i,e,t,Uint8Array)}function Nt(i,e,t,r){const n=Wt(i);let s=1;"BYTES_PER_ELEMENT"in r&&(s=r.BYTES_PER_ELEMENT);const o=Cr(i)?i.byteOffset:0,c=(o+i.byteLength)/s,A=(o+e)/s,f=Math.floor(Math.max(0,Math.min(A,c))),M=Math.floor(Math.min(f+Math.max(t,0),c));return new r(n,f,M-f)}function Wt(i){return i instanceof ArrayBuffer?i:i.buffer}function Cr(i){return i&&i.buffer instanceof ArrayBuffer&&i.byteLength!==void 0&&i.byteOffset!==void 0}function ge(i){const e={key:i.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(i.size<2)return;if(i.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const r=i.data.subarray(1).indexOf(0);if(r===-1)return;const n=se(In(i.data,1,r)),s=i.data[2+r],o=i.data.subarray(3+r).indexOf(0);if(o===-1)return;const c=se(In(i.data,3+r,o));let A;return n==="-->"?A=se(In(i.data,4+r+o)):A=en(i.data.subarray(4+r+o)),e.mimeType=n,e.pictureType=s,e.description=c,e.data=A,e}function Pe(i){return i.type==="PRIV"?ar(i):i.type[0]==="W"?Zr(i):i.type==="APIC"?ge(i):Ir(i)}function Ye(i){const e=String.fromCharCode(i[0],i[1],i[2],i[3]),t=j(i,4),r=10;return{type:e,size:t,data:i.subarray(r,r+t)}}const st=10,ot=10;function gt(i){let e=0;const t=[];for(;_(i,e);){const r=j(i,e+6);i[e+5]>>6&1&&(e+=st),e+=st;const n=e+r;for(;e+ot<n;){const s=Ye(i.subarray(e)),o=Pe(s);o&&t.push(o),e+=s.size+st}h(i,e)&&(e+=st)}return t}function Ft(i){return i&&i.key==="PRIV"&&i.info==="com.apple.streaming.transportStreamTimestamp"}function er(i){if(i.data.byteLength===8){const e=new Uint8Array(i.data),t=e[3]&1;let r=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return r/=45,t&&(r+=4772185884e-2),Math.round(r)}}function je(i){const e=gt(i);for(let t=0;t<e.length;t++){const r=e[t];if(Ft(r))return er(r)}}let at=function(i){return i.audioId3="org.id3",i.dateRange="com.apple.quicktime.HLS",i.emsg="https://aomedia.org/emsg/ID3",i.misbklv="urn:misb:KLV:bin:1910.1",i}({});function Ie(i="",e=9e4){return{type:i,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class bt{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,r,n){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,r){}demux(e,t){this.cachedData&&(e=ze(this.cachedData,e),this.cachedData=null);let r=ie(e,0),n=r?r.length:0,s;const o=this._audioTrack,c=this._id3Track,A=r?je(r):void 0,f=e.length;for((this.basePTS===null||this.frameIndex===0&&le(A))&&(this.basePTS=Kt(A,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:at.audioId3,duration:Number.POSITIVE_INFINITY});n<f;){if(this.canParse(e,n)){const M=this.appendFrame(o,e,n);M?(this.frameIndex++,this.lastPTS=M.sample.pts,n+=M.length,s=n):n=f}else Lt(e,n)?(r=ie(e,n),c.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:at.audioId3,duration:Number.POSITIVE_INFINITY}),n+=r.length,s=n):n++;if(n===f&&s!==f){const M=e.slice(s);this.cachedData?this.cachedData=ze(this.cachedData,M):this.cachedData=M}}return{audioTrack:o,videoTrack:Ie(),id3Track:c,textTrack:Ie()}}demuxSampleAes(e,t,r){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:Ie(),id3Track:this._id3Track,textTrack:Ie()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const Kt=(i,e,t)=>{if(le(i))return i*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};let Jt=null;const rr=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],dr=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Lr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Or=[0,1,1,4];function Mr(i,e,t,r,n){if(t+24>e.length)return;const s=Yr(e,t);if(s&&t+s.frameLength<=e.length){const o=s.samplesPerFrame*9e4/s.sampleRate,c=r+n*o,A={unit:e.subarray(t,t+s.frameLength),pts:c,dts:c};return i.config=[],i.channelCount=s.channelCount,i.samplerate=s.sampleRate,i.samples.push(A),{sample:A,length:s.frameLength,missing:0}}}function Yr(i,e){const t=i[e+1]>>3&3,r=i[e+1]>>1&3,n=i[e+2]>>4&15,s=i[e+2]>>2&3;if(t!==1&&n!==0&&n!==15&&s!==3){const o=i[e+2]>>1&1,c=i[e+3]>>6,A=t===3?3-r:r===3?3:4,f=rr[A*14+n-1]*1e3,a=dr[(t===3?0:t===2?1:2)*3+s],u=c===3?1:2,w=Lr[t][r],B=Or[r],Y=w*8*B,oe=Math.floor(w*f/a+o)*B;if(Jt===null){const Me=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Jt=Me?parseInt(Me[1]):0}return!!Jt&&Jt<=87&&r===2&&f>=224e3&&c===0&&(i[e+3]=i[e+3]|128),{sampleRate:a,channelCount:u,frameLength:oe,samplesPerFrame:Y}}}function Qn(i,e){return i[e]===255&&(i[e+1]&224)===224&&(i[e+1]&6)!==0}function Tr(i,e){return e+1<i.length&&Qn(i,e)}function Qt(i,e){return Qn(i,e)&&4<=i.length-e}function ei(i,e){if(e+1<i.length&&Qn(i,e)){const r=Yr(i,e);let n=4;r!=null&&r.frameLength&&(n=r.frameLength);const s=e+n;return s===i.length||Tr(i,s)}return!1}class Yn extends bt{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,r,n){super.resetInitSegment(e,t,r,n),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:n,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const r=ie(e,0);let n=(r==null?void 0:r.length)||0;if(ei(e,n))return!1;for(let s=e.length;n<s;n++)if(Ct(e,n))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return ft(e,t)}appendFrame(e,t,r){Ve(e,this.observer,t,r,e.manifestCodec);const n=or(e,t,r,this.basePTS,this.frameIndex);if(n&&n.missing===0)return n}}const Qr=(i,e)=>{let t=0,r=5;e+=r;const n=new Uint32Array(1),s=new Uint32Array(1),o=new Uint8Array(1);for(;r>0;){o[0]=i[e];const c=Math.min(r,8),A=8-c;s[0]=4278190080>>>24+A<<A,n[0]=(o[0]&s[0])>>A,t=t?t<<c|n[0]:n[0],e+=1,r-=c}return t};class sn extends bt{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,r,n){super.resetInitSegment(e,t,r,n),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:n,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,r){const n=rn(e,t,r,this.basePTS,this.frameIndex);if(n!==-1)return{sample:e.samples[e.samples.length-1],length:n,missing:0}}static probe(e){if(!e)return!1;const t=ie(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&je(t)!==void 0&&Qr(e,r)<16}}function rn(i,e,t,r,n){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const s=e[t+4]>>6;if(s>=3)return-1;const c=[48e3,44100,32e3][s],A=e[t+4]&63,M=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][A*3+s]*2;if(t+M>e.length)return-1;const a=e[t+6]>>5;let u=0;a===2?u+=2:(a&1&&a!==1&&(u+=2),a&4&&(u+=2));const w=(e[t+6]<<8|e[t+7])>>12-u&1,Y=[2,1,2,3,3,4,4,5][a]+w,oe=e[t+5]>>3,xe=e[t+5]&7,Ne=new Uint8Array([s<<6|oe<<1|xe>>2,(xe&3)<<6|a<<3|w<<2|A>>4,A<<4&224]),Me=1536/c*9e4,We=r+n*Me,ct=e.subarray(t,t+M);return i.config=Ne,i.channelCount=Y,i.samplerate=c,i.samples.push({unit:ct,pts:We}),M}class Vr extends bt{resetInitSegment(e,t,r,n){super.resetInitSegment(e,t,r,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:n,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=ie(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&je(t)!==void 0&&Qr(e,r)<=16)return!1;for(let n=e.length;r<n;r++)if(ei(e,r))return q.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Qt(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return Mr(e,t,r,this.basePTS,this.frameIndex)}}const Sn=/\/emsg[-/]ID3/i;class qn{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,r,n){const s=this.videoTrack=Ie("video",1),o=this.audioTrack=Ie("audio",1),c=this.txtTrack=Ie("text",1);if(this.id3Track=Ie("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const A=k(e);if(A.video){const{id:f,timescale:M,codec:a,supplemental:u}=A.video;s.id=f,s.timescale=c.timescale=M,s.codec=a,s.supplemental=u}if(A.audio){const{id:f,timescale:M,codec:a}=A.audio;o.id=f,o.timescale=M,o.codec=a}c.id=Ze.text,s.sampleDuration=0,s.duration=o.duration=n}resetContiguity(){this.remainderData=null}static probe(e){return Z(e)}demux(e,t){this.timeOffset=t;let r=e;const n=this.videoTrack,s=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=ze(this.remainderData,e));const c=At(r);this.remainderData=c.remainder,n.samples=c.valid||new Uint8Array}else n.samples=r;const o=this.extractID3Track(n,t);return s.samples=He(t,n),{videoTrack:n,audioTrack:this.audioTrack,id3Track:o,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const n=this.extractID3Track(t,this.timeOffset);return r.samples=He(e,t),{videoTrack:t,audioTrack:Ie(),id3Track:n,textTrack:Ie()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const n=x(e.samples,["emsg"]);n&&n.forEach(s=>{const o=gr(s);if(Sn.test(o.schemeIdUri)){const c=pi(o,t);let A=o.eventDuration===4294967295?Number.POSITIVE_INFINITY:o.eventDuration/o.timeScale;A<=.001&&(A=Number.POSITIVE_INFINITY);const f=o.payload;r.samples.push({data:f,len:f.byteLength,dts:c,pts:c,type:at.emsg,duration:A})}else if(this.config.enableEmsgKLVMetadata&&o.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const c=pi(o,t);r.samples.push({data:o.payload,len:o.payload.byteLength,dts:c,pts:c,type:at.misbklv,duration:Number.POSITIVE_INFINITY})}})}return r}demuxSampleAes(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function pi(i,e){return le(i.presentationTime)?i.presentationTime/i.timeScale:e+i.presentationTimeDelta/i.timeScale}class Qe{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new js(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Ci.cbc)}decryptAacSample(e,t,r){const n=e[t].unit;if(n.length<=16)return;const s=n.subarray(16,n.length-n.length%16),o=s.buffer.slice(s.byteOffset,s.byteOffset+s.length);this.decryptBuffer(o).then(c=>{const A=new Uint8Array(c);n.set(A,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,r)})}decryptAacSamples(e,t,r){for(;;t++){if(t>=e.length){r();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,r=new Int8Array(t);let n=0;for(let s=32;s<e.length-16;s+=160,n+=16)r.set(e.subarray(s,s+16),n);return r}getAvcDecryptedUnit(e,t){const r=new Uint8Array(t);let n=0;for(let s=32;s<e.length-16;s+=160,n+=16)e.set(r.subarray(n,n+16),s);return e}decryptAvcSample(e,t,r,n,s){const o=lr(s.data),c=this.getAvcEncryptedData(o);this.decryptBuffer(c.buffer).then(A=>{s.data=this.getAvcDecryptedUnit(o,A),this.decrypter.isSync()||this.decryptAvcSamples(e,t,r+1,n)})}decryptAvcSamples(e,t,r,n){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length){n();return}const s=e[t].units;for(;!(r>=s.length);r++){const o=s[r];if(!(o.data.length<=48||o.type!==1&&o.type!==5)&&(this.decryptAvcSample(e,t,r,n,o),!this.decrypter.isSync()))return}}}}class p{constructor(){this.VideoSample=null}createVideoSample(e,t,r){return{key:e,frame:!1,pts:t,dts:r,units:[],length:0}}getLastNalUnit(e){var t;let r=this.VideoSample,n;if((!r||r.units.length===0)&&(r=e[e.length-1]),(t=r)!=null&&t.units){const s=r.units;n=s[s.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const r=t.samples,n=r.length;if(n){const s=r[n-1];e.pts=s.pts,e.dts=s.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,r){const n=t.byteLength;let s=e.naluState||0;const o=s,c=[];let A=0,f,M,a,u=-1,w=0;for(s===-1&&(u=0,w=this.getNALuType(t,0),s=0,A=1);A<n;){if(f=t[A++],!s){s=f?0:1;continue}if(s===1){s=f?0:2;continue}if(!f)s=3;else if(f===1){if(M=A-s-1,u>=0){const B={data:t.subarray(u,M),type:w};c.push(B)}else{const B=this.getLastNalUnit(e.samples);B&&(o&&A<=4-o&&B.state&&(B.data=B.data.subarray(0,B.data.byteLength-o)),M>0&&(B.data=ze(B.data,t.subarray(0,M)),B.state=0))}A<n?(a=this.getNALuType(t,A),u=A,w=a,s=0):s=-1}else s=0}if(u>=0&&s>=0){const B={data:t.subarray(u,n),type:w,state:s};c.push(B)}if(c.length===0){const B=this.getLastNalUnit(e.samples);B&&(B.data=ze(B.data,t))}return e.naluState=s,c}}class S{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,r=e.byteLength-t,n=new Uint8Array(4),s=Math.min(4,t);if(s===0)throw new Error("no bytes available");n.set(e.subarray(r,r+s)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=s*8,this.bytesAvailable-=s}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const r=this.word>>>32-t;if(e>32&&q.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?r<<t|this.readBits(t):r}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class D extends p{parsePES(e,t,r,n){const s=this.parseNALu(e,r.data,n);let o=this.VideoSample,c,A=!1;r.data=null,o&&s.length&&!e.audFound&&(this.pushAccessUnit(o,e),o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),s.forEach(f=>{var M,a;switch(f.type){case 1:{let Y=!1;c=!0;const oe=f.data;if(A&&oe.length>4){const xe=this.readSliceType(oe);(xe===2||xe===4||xe===7||xe===9)&&(Y=!0)}if(Y){var u;(u=o)!=null&&u.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null)}o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.frame=!0,o.key=Y;break}case 5:c=!0,(M=o)!=null&&M.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null),o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.key=!0,o.frame=!0;break;case 6:{c=!0,Dt(f.data,1,r.pts,t.samples);break}case 7:{var w,B;c=!0,A=!0;const Y=f.data,oe=this.readSPS(Y);if(!e.sps||e.width!==oe.width||e.height!==oe.height||((w=e.pixelRatio)==null?void 0:w[0])!==oe.pixelRatio[0]||((B=e.pixelRatio)==null?void 0:B[1])!==oe.pixelRatio[1]){e.width=oe.width,e.height=oe.height,e.pixelRatio=oe.pixelRatio,e.sps=[Y];const xe=Y.subarray(1,4);let Ne="avc1.";for(let Me=0;Me<3;Me++){let We=xe[Me].toString(16);We.length<2&&(We="0"+We),Ne+=We}e.codec=Ne}break}case 8:c=!0,e.pps=[f.data];break;case 9:c=!0,e.audFound=!0,(a=o)!=null&&a.frame&&(this.pushAccessUnit(o,e),o=null),o||(o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;case 12:c=!0;break;default:c=!1;break}o&&c&&o.units.push(f)}),n&&o&&(this.pushAccessUnit(o,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new S(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let r=8,n=8,s;for(let o=0;o<e;o++)n!==0&&(s=t.readEG(),n=(r+s+256)%256),r=n===0?r:n}readSPS(e){const t=new S(e);let r=0,n=0,s=0,o=0,c,A,f;const M=t.readUByte.bind(t),a=t.readBits.bind(t),u=t.readUEG.bind(t),w=t.readBoolean.bind(t),B=t.skipBits.bind(t),Y=t.skipEG.bind(t),oe=t.skipUEG.bind(t),xe=this.skipScalingList.bind(this);M();const Ne=M();if(a(5),B(3),M(),oe(),Ne===100||Ne===110||Ne===122||Ne===244||Ne===44||Ne===83||Ne===86||Ne===118||Ne===128){const Et=u();if(Et===3&&B(1),oe(),oe(),B(1),w())for(A=Et!==3?8:12,f=0;f<A;f++)w()&&(f<6?xe(16,t):xe(64,t))}oe();const Me=u();if(Me===0)u();else if(Me===1)for(B(1),Y(),Y(),c=u(),f=0;f<c;f++)Y();oe(),B(1);const We=u(),ct=u(),xt=a(1);xt===0&&B(1),B(1),w()&&(r=u(),n=u(),s=u(),o=u());let wt=[1,1];if(w()&&w())switch(M()){case 1:wt=[1,1];break;case 2:wt=[12,11];break;case 3:wt=[10,11];break;case 4:wt=[16,11];break;case 5:wt=[40,33];break;case 6:wt=[24,11];break;case 7:wt=[20,11];break;case 8:wt=[32,11];break;case 9:wt=[80,33];break;case 10:wt=[18,11];break;case 11:wt=[15,11];break;case 12:wt=[64,33];break;case 13:wt=[160,99];break;case 14:wt=[4,3];break;case 15:wt=[3,2];break;case 16:wt=[2,1];break;case 255:{wt=[M()<<8|M(),M()<<8|M()];break}}return{width:Math.ceil((We+1)*16-r*2-n*2),height:(2-xt)*(ct+1)*16-(xt?2:4)*(s+o),pixelRatio:wt}}}class V extends p{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,r,n){const s=this.parseNALu(e,r.data,n);let o=this.VideoSample,c,A=!1;r.data=null,o&&s.length&&!e.audFound&&(this.pushAccessUnit(o,e),o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),s.forEach(f=>{var M,a;switch(f.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:o||(o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),o.frame=!0,c=!0;break;case 16:case 17:case 18:case 21:if(c=!0,A){var u;(u=o)!=null&&u.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null)}o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.key=!0,o.frame=!0;break;case 19:case 20:c=!0,(M=o)!=null&&M.frame&&!o.key&&(this.pushAccessUnit(o,e),o=this.VideoSample=null),o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.key=!0,o.frame=!0;break;case 39:c=!0,Dt(f.data,2,r.pts,t.samples);break;case 32:c=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=v(e.params,this.readVPS(f.data)),this.initVPS=f.data),e.vps=[f.data];break;case 33:if(c=!0,A=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],f.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const w=this.readSPS(f.data);e.width=w.width,e.height=w.height,e.pixelRatio=w.pixelRatio,e.codec=w.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const B in w.params)e.params[B]=w.params[B]}this.pushParameterSet(e.sps,f.data,e.vps),o||(o=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),o.key=!0;break;case 34:if(c=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const w=this.readPPS(f.data);for(const B in w)e.params[B]=w[B]}this.pushParameterSet(e.pps,f.data,e.vps)}break;case 35:c=!0,e.audFound=!0,(a=o)!=null&&a.frame&&(this.pushAccessUnit(o,e),o=null),o||(o=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;default:c=!1;break}o&&c&&o.units.push(f)}),n&&o&&(this.pushAccessUnit(o,e),this.VideoSample=null)}pushParameterSet(e,t,r){(r&&r[0]===this.initVPS||!r&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let r=0;for(let n=0;n<e.byteLength;n++)n>=2&&e[n]===3&&e[n-1]===0&&e[n-2]===0||(t[r]=e[n],r++);return new Uint8Array(t.buffer,0,r)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new S(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const r=t.readBits(3),n=t.readBoolean();return{numTemporalLayers:r+1,temporalIdNested:n}}readSPS(e){const t=new S(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const r=t.readBits(3);t.readBoolean();const n=t.readBits(2),s=t.readBoolean(),o=t.readBits(5),c=t.readUByte(),A=t.readUByte(),f=t.readUByte(),M=t.readUByte(),a=t.readUByte(),u=t.readUByte(),w=t.readUByte(),B=t.readUByte(),Y=t.readUByte(),oe=t.readUByte(),xe=t.readUByte(),Ne=[],Me=[];for(let Cs=0;Cs<r;Cs++)Ne.push(t.readBoolean()),Me.push(t.readBoolean());if(r>0)for(let Cs=r;Cs<8;Cs++)t.readBits(2);for(let Cs=0;Cs<r;Cs++)Ne[Cs]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),Me[Cs]&&t.readUByte();t.readUEG();const We=t.readUEG();We==3&&t.skipBits(1);const ct=t.readUEG(),xt=t.readUEG(),wt=t.readBoolean();let Et=0,qt=0,Pt=0,Gt=0;wt&&(Et+=t.readUEG(),qt+=t.readUEG(),Pt+=t.readUEG(),Gt+=t.readUEG());const tr=t.readUEG(),Ur=t.readUEG(),Wr=t.readUEG(),zr=t.readBoolean();for(let Cs=zr?0:r;Cs<=r;Cs++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let La=0;La<4;La++)for(let po=0;po<(La===3?2:6);po++)if(!t.readBoolean())t.readUEG();else{const Do=Math.min(64,1<<4+(La<<1));La>1&&t.readEG();for(let Hl=0;Hl<Do;Hl++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const Wn=t.readUEG();let jr=0;for(let Cs=0;Cs<Wn;Cs++){let La=!1;if(Cs!==0&&(La=t.readBoolean()),La){Cs===Wn&&t.readUEG(),t.readBoolean(),t.readUEG();let po=0;for(let Ja=0;Ja<=jr;Ja++){const Do=t.readBoolean();let Hl=!1;Do||(Hl=t.readBoolean()),(Do||Hl)&&po++}jr=po}else{const po=t.readUEG(),Ja=t.readUEG();jr=po+Ja;for(let Do=0;Do<po;Do++)t.readUEG(),t.readBoolean();for(let Do=0;Do<Ja;Do++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Cs=t.readUEG();for(let La=0;La<Cs;La++){for(let po=0;po<Wr+4;po++)t.readBits(1);t.readBits(1)}}let Ii=0,Ei=1,Si=1,Ki=!0,zi=1,ki=0;t.readBoolean(),t.readBoolean();let Qs=!1;if(t.readBoolean()){if(t.readBoolean()){const Kl=t.readUByte(),ku=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],za=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Kl>0&&Kl<16?(Ei=ku[Kl-1],Si=za[Kl-1]):Kl===255&&(Ei=t.readBits(16),Si=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),Qs=t.readBoolean(),Qs&&(Et+=t.readUEG(),qt+=t.readUEG(),Pt+=t.readUEG(),Gt+=t.readUEG()),t.readBoolean()&&(zi=t.readBits(32),ki=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const za=t.readBoolean(),qc=t.readBoolean();let Ic=!1;(za||qc)&&(Ic=t.readBoolean(),Ic&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Ic&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let dA=0;dA<=r;dA++){Ki=t.readBoolean();const eA=Ki||t.readBoolean();let Tc=!1;eA?t.readEG():Tc=t.readBoolean();const Kc=Tc?1:t.readUEG()+1;if(za)for(let dl=0;dl<Kc;dl++)t.readUEG(),t.readUEG(),Ic&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(qc)for(let dl=0;dl<Kc;dl++)t.readUEG(),t.readUEG(),Ic&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),Ii=t.readUEG())}let Fa=ct,cl=xt;if(wt||Qs){let Cs=1,La=1;We===1?Cs=La=2:We==2&&(Cs=2),Fa=ct-Cs*qt-Cs*Et,cl=xt-La*Gt-La*Pt}const ya=n?["A","B","C"][n]:"",Ll=c<<24|A<<16|f<<8|M;let Al=0;for(let Cs=0;Cs<32;Cs++)Al=(Al|(Ll>>Cs&1)<<31-Cs)>>>0;let xo=Al.toString(16);return o===1&&xo==="2"&&(xo="6"),{codecString:`hvc1.${ya}${o}.${xo}.${s?"H":"L"}${xe}.B0`,params:{general_tier_flag:s,general_profile_idc:o,general_profile_space:n,general_profile_compatibility_flags:[c,A,f,M],general_constraint_indicator_flags:[a,u,w,B,Y,oe],general_level_idc:xe,bit_depth:tr+8,bit_depth_luma_minus8:tr,bit_depth_chroma_minus8:Ur,min_spatial_segmentation_idc:Ii,chroma_format_idc:We,frame_rate:{fixed:Ki,fps:ki/zi}},width:Fa,height:cl,pixelRatio:[Ei,Si]}}readPPS(e){const t=new S(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const n=t.readBoolean(),s=t.readBoolean();let o=1;return s&&n?o=0:s?o=3:n&&(o=2),{parallelismType:o}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const pe=188;class Ke{constructor(e,t,r,n){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.logger=n,this.videoParser=null}static probe(e,t){const r=Ke.syncOffset(e);return r>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(e){const t=e.length;let r=Math.min(pe*5,t-pe)+1,n=0;for(;n<r;){let s=!1,o=-1,c=0;for(let A=n;A<t;A+=pe)if(e[A]===71&&(t-A===pe||e[A+pe]===71)){if(c++,o===-1&&(o=A,o!==0&&(r=Math.min(o+pe*99,e.length-pe)+1)),s||(s=lt(e,A)===0),s&&c>1&&(o===0&&c>2||A+pe>r))return o}else{if(c)return-1;break}n++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:Ze[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,r,n){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Ke.createTrack("video"),this._videoTrack.duration=n,this._audioTrack=Ke.createTrack("audio",n),this._id3Track=Ke.createTrack("id3"),this._txtTrack=Ke.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:r}=this;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,r=!1,n=!1){r||(this.sampleAes=null);let s;const o=this._videoTrack,c=this._audioTrack,A=this._id3Track,f=this._txtTrack;let M=o.pid,a=o.pesData,u=c.pid,w=A.pid,B=c.pesData,Y=A.pesData,oe=null,xe=this.pmtParsed,Ne=this._pmtId,Me=e.length;if(this.remainderData&&(e=ze(this.remainderData,e),Me=e.length,this.remainderData=null),Me<pe&&!n)return this.remainderData=e,{audioTrack:c,videoTrack:o,id3Track:A,textTrack:f};const We=Math.max(0,Ke.syncOffset(e));Me-=(Me-We)%pe,Me<e.byteLength&&!n&&(this.remainderData=new Uint8Array(e.buffer,Me,e.buffer.byteLength-Me));let ct=0;for(let wt=We;wt<Me;wt+=pe)if(e[wt]===71){const Et=!!(e[wt+1]&64),qt=lt(e,wt),Pt=(e[wt+3]&48)>>4;let Gt;if(Pt>1){if(Gt=wt+5+e[wt+4],Gt===wt+pe)continue}else Gt=wt+4;switch(qt){case M:if(Et){if(a&&(s=Sr(a,this.logger))){if(this.videoParser===null)switch(o.segmentCodec){case"avc":this.videoParser=new D;break;case"hevc":this.videoParser=new V;break}this.videoParser!==null&&this.videoParser.parsePES(o,f,s,!1)}a={data:[],size:0}}a&&(a.data.push(e.subarray(Gt,wt+pe)),a.size+=wt+pe-Gt);break;case u:if(Et){if(B&&(s=Sr(B,this.logger)))switch(c.segmentCodec){case"aac":this.parseAACPES(c,s);break;case"mp3":this.parseMPEGPES(c,s);break;case"ac3":this.parseAC3PES(c,s);break}B={data:[],size:0}}B&&(B.data.push(e.subarray(Gt,wt+pe)),B.size+=wt+pe-Gt);break;case w:Et&&(Y&&(s=Sr(Y,this.logger))&&this.parseID3PES(A,s),Y={data:[],size:0}),Y&&(Y.data.push(e.subarray(Gt,wt+pe)),Y.size+=wt+pe-Gt);break;case 0:Et&&(Gt+=e[Gt]+1),Ne=this._pmtId=yt(e,Gt);break;case Ne:{Et&&(Gt+=e[Gt]+1);const tr=Ot(e,Gt,this.typeSupported,r,this.observer,this.logger);M=tr.videoPid,M>0&&(o.pid=M,o.segmentCodec=tr.segmentVideoCodec),u=tr.audioPid,u>0&&(c.pid=u,c.segmentCodec=tr.segmentAudioCodec),w=tr.id3Pid,w>0&&(A.pid=w),oe!==null&&!xe&&(this.logger.warn(`MPEG-TS PMT found at ${wt} after unknown PID '${oe}'. Backtracking to sync byte @${We} to parse all TS packets.`),oe=null,wt=We-188),xe=this.pmtParsed=!0;break}case 17:case 8191:break;default:oe=qt;break}}else ct++;ct>0&&ir(this.observer,new Error(`Found ${ct} TS packet/s that do not start with 0x47`),void 0,this.logger),o.pesData=a,c.pesData=B,A.pesData=Y;const xt={audioTrack:c,videoTrack:o,id3Track:A,textTrack:f};return n&&this.extractRemainingSamples(xt),xt}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:r,id3Track:n,textTrack:s}=e,o=r.pesData,c=t.pesData,A=n.pesData;let f;if(o&&(f=Sr(o,this.logger))){if(this.videoParser===null)switch(r.segmentCodec){case"avc":this.videoParser=new D;break;case"hevc":this.videoParser=new V;break}this.videoParser!==null&&(this.videoParser.parsePES(r,s,f,!0),r.pesData=null)}else r.pesData=o;if(c&&(f=Sr(c,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,f);break;case"mp3":this.parseMPEGPES(t,f);break;case"ac3":this.parseAC3PES(t,f);break}t.pesData=null}else c!=null&&c.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=c;A&&(f=Sr(A,this.logger))?(this.parseID3PES(n,f),n.pesData=null):n.pesData=A}demuxSampleAes(e,t,r){const n=this.demux(e,r,!0,!this.config.progressive),s=this.sampleAes=new Qe(this.observer,this.config,t);return this.decrypt(n,s)}decrypt(e,t){return new Promise(r=>{const{audioTrack:n,videoTrack:s}=e;n.samples&&n.segmentCodec==="aac"?t.decryptAacSamples(n.samples,0,()=>{s.samples?t.decryptAvcSamples(s.samples,0,0,()=>{r(e)}):r(e)}):s.samples&&t.decryptAvcSamples(s.samples,0,0,()=>{r(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let r=0;const n=this.aacOverFlow;let s=t.data;if(n){this.aacOverFlow=null;const a=n.missing,u=n.sample.unit.byteLength;if(a===-1)s=ze(n.sample.unit,s);else{const w=u-a;n.sample.unit.set(s.subarray(0,a),w),e.samples.push(n.sample),r=n.missing}}let o,c;for(o=r,c=s.length;o<c-1&&!dt(s,o);o++);if(o!==r){let a;const u=o<c-1;if(u?a=`AAC PES did not start with ADTS header,offset:${o}`:a="No ADTS header found in AAC PES",ir(this.observer,new Error(a),u,this.logger),!u)return}Ve(e,this.observer,s,o,this.audioCodec);let A;if(t.pts!==void 0)A=t.pts;else if(n){const a=nr(e.samplerate);A=n.sample.pts+a}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let f=0,M;for(;o<c;)if(M=or(e,s,o,A,f),o+=M.length,M.missing){this.aacOverFlow=M;break}else for(f++;o<c-1&&!dt(s,o);o++);}parseMPEGPES(e,t){const r=t.data,n=r.length;let s=0,o=0;const c=t.pts;if(c===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;o<n;)if(Tr(r,o)){const A=Mr(e,r,o,c,s);if(A)o+=A.length,s++;else break}else o++}parseAC3PES(e,t){{const r=t.data,n=t.pts;if(n===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const s=r.length;let o=0,c=0,A;for(;c<s&&(A=rn(e,r,c,n,o++))>0;)c+=A}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=v({},t,{type:this._videoTrack?at.emsg:at.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function lt(i,e){return((i[e+1]&31)<<8)+i[e+2]}function yt(i,e){return(i[e+10]&31)<<8|i[e+11]}function Ot(i,e,t,r,n,s){const o={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},c=(i[e+1]&15)<<8|i[e+2],A=e+3+c-4,f=(i[e+10]&15)<<8|i[e+11];for(e+=12+f;e<A;){const M=lt(i,e),a=(i[e+3]&15)<<8|i[e+4];switch(i[e]){case 207:if(!r){wr("ADTS AAC",s);break}case 15:o.audioPid===-1&&(o.audioPid=M);break;case 21:o.id3Pid===-1&&(o.id3Pid=M);break;case 219:if(!r){wr("H.264",s);break}case 27:o.videoPid===-1&&(o.videoPid=M);break;case 3:case 4:!t.mpeg&&!t.mp3?s.log("MPEG audio found, not supported in this browser"):o.audioPid===-1&&(o.audioPid=M,o.segmentAudioCodec="mp3");break;case 193:if(!r){wr("AC-3",s);break}case 129:t.ac3?o.audioPid===-1&&(o.audioPid=M,o.segmentAudioCodec="ac3"):s.log("AC-3 audio found, not supported in this browser");break;case 6:if(o.audioPid===-1&&a>0){let u=e+5,w=a;for(;w>2;){switch(i[u]){case 106:t.ac3!==!0?s.log("AC-3 audio found, not supported in this browser for now"):(o.audioPid=M,o.segmentAudioCodec="ac3");break}const Y=i[u+1]+2;u+=Y,w-=Y}}break;case 194:case 135:return ir(n,new Error("Unsupported EC-3 in M2TS found"),void 0,s),o;case 36:o.videoPid===-1&&(o.videoPid=M,o.segmentVideoCodec="hevc",s.log("HEVC in M2TS found"));break}e+=a+5}return o}function ir(i,e,t,r){r.warn(`parsing error: ${e.message}`),i.emit(g.ERROR,g.ERROR,{type:Re.MEDIA_ERROR,details:K.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function wr(i,e){e.log(`${i} with AES-128-CBC encryption found in unencrypted stream`)}function Sr(i,e){let t=0,r,n,s,o,c;const A=i.data;if(!i||i.size===0)return null;for(;A[0].length<19&&A.length>1;)A[0]=ze(A[0],A[1]),A.splice(1,1);if(r=A[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(n=(r[4]<<8)+r[5],n&&n>i.size-6)return null;const M=r[7];M&192&&(o=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,M&64?(c=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[18]&254)/2,o-c>60*9e4&&(e.warn(`${Math.round((o-c)/9e4)}s delta between PTS and DTS, align them`),o=c)):c=o),s=r[8];let a=s+9;if(i.size<=a)return null;i.size-=a;const u=new Uint8Array(i.size);for(let w=0,B=A.length;w<B;w++){r=A[w];let Y=r.byteLength;if(a)if(a>Y){a-=Y;continue}else r=r.subarray(a),Y-=a,a=0;u.set(r,t),t+=Y}return n&&(n-=s+3),{data:u,pts:o,dts:c,len:n}}return null}class Tn{static getSilentFrame(e,t){switch(e){case"mp4a.40.2":if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const _r=Math.pow(2,32)-1;class kt{static init(){kt.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in kt.types)kt.types.hasOwnProperty(e)&&(kt.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);kt.HDLR_TYPES={video:t,audio:r};const n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),s=new Uint8Array([0,0,0,0,0,0,0,0]);kt.STTS=kt.STSC=kt.STCO=s,kt.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),kt.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),kt.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),kt.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const o=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),A=new Uint8Array([0,0,0,1]);kt.FTYP=kt.box(kt.types.ftyp,o,A,o,c),kt.DINF=kt.box(kt.types.dinf,kt.box(kt.types.dref,n))}static box(e,...t){let r=8,n=t.length;const s=n;for(;n--;)r+=t[n].byteLength;const o=new Uint8Array(r);for(o[0]=r>>24&255,o[1]=r>>16&255,o[2]=r>>8&255,o[3]=r&255,o.set(e,4),n=0,r=8;n<s;n++)o.set(t[n],r),r+=t[n].byteLength;return o}static hdlr(e){return kt.box(kt.types.hdlr,kt.HDLR_TYPES[e])}static mdat(e){return kt.box(kt.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(_r+1)),n=Math.floor(t%(_r+1));return kt.box(kt.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,r>>24,r>>16&255,r>>8&255,r&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))}static mdia(e){return kt.box(kt.types.mdia,kt.mdhd(e.timescale||0,e.duration||0),kt.hdlr(e.type),kt.minf(e))}static mfhd(e){return kt.box(kt.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?kt.box(kt.types.minf,kt.box(kt.types.smhd,kt.SMHD),kt.DINF,kt.stbl(e)):kt.box(kt.types.minf,kt.box(kt.types.vmhd,kt.VMHD),kt.DINF,kt.stbl(e))}static moof(e,t,r){return kt.box(kt.types.moof,kt.mfhd(e),kt.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=kt.trak(e[t]);return kt.box.apply(null,[kt.types.moov,kt.mvhd(e[0].timescale||0,e[0].duration||0)].concat(r).concat(kt.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=kt.trex(e[t]);return kt.box.apply(null,[kt.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(_r+1)),n=Math.floor(t%(_r+1)),s=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,r>>24,r>>16&255,r>>8&255,r&255,n>>24,n>>16&255,n>>8&255,n&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return kt.box(kt.types.mvhd,s)}static sdtp(e){const t=e.samples||[],r=new Uint8Array(4+t.length);let n,s;for(n=0;n<t.length;n++)s=t[n].flags,r[n+4]=s.dependsOn<<4|s.isDependedOn<<2|s.hasRedundancy;return kt.box(kt.types.sdtp,r)}static stbl(e){return kt.box(kt.types.stbl,kt.stsd(e),kt.box(kt.types.stts,kt.STTS),kt.box(kt.types.stsc,kt.STSC),kt.box(kt.types.stsz,kt.STSZ),kt.box(kt.types.stco,kt.STCO))}static avc1(e){let t=[],r=[],n,s,o;for(n=0;n<e.sps.length;n++)s=e.sps[n],o=s.byteLength,t.push(o>>>8&255),t.push(o&255),t=t.concat(Array.prototype.slice.call(s));for(n=0;n<e.pps.length;n++)s=e.pps[n],o=s.byteLength,r.push(o>>>8&255),r.push(o&255),r=r.concat(Array.prototype.slice.call(s));const c=kt.box(kt.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),A=e.width,f=e.height,M=e.pixelRatio[0],a=e.pixelRatio[1];return kt.box(kt.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,A>>8&255,A&255,f>>8&255,f&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),c,kt.box(kt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),kt.box(kt.types.pasp,new Uint8Array([M>>24,M>>16&255,M>>8&255,M&255,a>>24,a>>16&255,a>>8&255,a&255])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return kt.box(kt.types.mp4a,kt.audioStsd(e),kt.box(kt.types.esds,kt.esds(e)))}static mp3(e){return kt.box(kt.types[".mp3"],kt.audioStsd(e))}static ac3(e){return kt.box(kt.types["ac-3"],kt.audioStsd(e),kt.box(kt.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return kt.box(kt.types.stsd,kt.STSD,kt.mp4a(e));if(t==="ac3"&&e.config)return kt.box(kt.types.stsd,kt.STSD,kt.ac3(e));if(t==="mp3"&&e.codec==="mp3")return kt.box(kt.types.stsd,kt.STSD,kt.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return kt.box(kt.types.stsd,kt.STSD,kt.avc1(e));if(t==="hevc"&&e.vps)return kt.box(kt.types.stsd,kt.STSD,kt.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,r=(e.duration||0)*(e.timescale||0),n=e.width||0,s=e.height||0,o=Math.floor(r/(_r+1)),c=Math.floor(r%(_r+1));return kt.box(kt.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255,c>>24,c>>16&255,c>>8&255,c&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,n>>8&255,n&255,0,0,s>>8&255,s&255,0,0]))}static traf(e,t){const r=kt.sdtp(e),n=e.id,s=Math.floor(t/(_r+1)),o=Math.floor(t%(_r+1));return kt.box(kt.types.traf,kt.box(kt.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),kt.box(kt.types.tfdt,new Uint8Array([1,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,o>>24,o>>16&255,o>>8&255,o&255])),kt.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,kt.box(kt.types.trak,kt.tkhd(e),kt.mdia(e))}static trex(e){const t=e.id;return kt.box(kt.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const r=e.samples||[],n=r.length,s=12+16*n,o=new Uint8Array(s);let c,A,f,M,a,u;for(t+=8+s,o.set([e.type==="video"?1:0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),c=0;c<n;c++)A=r[c],f=A.duration,M=A.size,a=A.flags,u=A.cts,o.set([f>>>24&255,f>>>16&255,f>>>8&255,f&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,a.isLeading<<2|a.dependsOn,a.isDependedOn<<6|a.hasRedundancy<<4|a.paddingValue<<1|a.isNonSync,a.degradPrio&61440,a.degradPrio&15,u>>>24&255,u>>>16&255,u>>>8&255,u&255],12+16*c);return kt.box(kt.types.trun,o)}static initSegment(e){kt.types||kt.init();const t=kt.moov(e);return ze(kt.FTYP,t)}static hvc1(e){const t=e.params,r=[e.vps,e.sps,e.pps],n=4,s=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),n-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),r.length]);let o=s.length;for(let B=0;B<r.length;B+=1){o+=3;for(let Y=0;Y<r[B].length;Y+=1)o+=2+r[B][Y].length}const c=new Uint8Array(o);c.set(s,0),o=s.length;const A=r.length-1;for(let B=0;B<r.length;B+=1){c.set(new Uint8Array([32+B|(B===A?128:0),0,r[B].length]),o),o+=3;for(let Y=0;Y<r[B].length;Y+=1)c.set(new Uint8Array([r[B][Y].length>>8,r[B][Y].length&255]),o),o+=2,c.set(r[B][Y],o),o+=r[B][Y].length}const f=kt.box(kt.types.hvcC,c),M=e.width,a=e.height,u=e.pixelRatio[0],w=e.pixelRatio[1];return kt.box(kt.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,M>>8&255,M&255,a>>8&255,a&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),f,kt.box(kt.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),kt.box(kt.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,u&255,w>>24,w>>16&255,w>>8&255,w&255])))}}kt.types=void 0,kt.HDLR_TYPES=void 0,kt.STTS=void 0,kt.STSC=void 0,kt.STCO=void 0,kt.STSZ=void 0,kt.VMHD=void 0,kt.SMHD=void 0,kt.STSD=void 0,kt.FTYP=void 0,kt.DINF=void 0;const wn=9e4;function xn(i,e,t=1,r=!1){const n=i*e*t;return r?Math.round(n):n}function kn(i,e,t=1,r=!1){return xn(i,e,1/t,r)}function pn(i,e=!1){return xn(i,1e3,1/wn,e)}function yi(i,e=1){return xn(i,wn,1/e)}const xi=10*1e3,Fi=1024,os=1152,fi=1536;let Es=null,ns=null;function Xi(i,e,t,r){return{duration:e,size:t,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:i?2:1,isNonSync:i?0:1}}}class Nn{constructor(e,t,r,n){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.logger=n,this.ISGenerated=!1,Es===null){const o=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Es=o?parseInt(o[1]):0}if(ns===null){const s=navigator.userAgent.match(/Safari\/(\d+)/i);ns=s?parseInt(s[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const r=e[0].pts,n=e.reduce((s,o)=>{let c=o.pts,A=c-s;return A<-4294967296&&(t=!0,c=qi(c,r),A=c-s),A>0?s:c},r);return t&&this.logger.debug("PTS rollover detected"),n}remux(e,t,r,n,s,o,c,A){let f,M,a,u,w,B,Y=s,oe=s;const xe=e.pid>-1,Ne=t.pid>-1,Me=t.samples.length,We=e.samples.length>0,ct=c&&Me>0||Me>1;if((!xe||We)&&(!Ne||ct)||this.ISGenerated||c){if(this.ISGenerated){var wt,Et,qt,Pt;const Wr=this.videoTrackConfig;(Wr&&(t.width!==Wr.width||t.height!==Wr.height||((wt=t.pixelRatio)==null?void 0:wt[0])!==((Et=Wr.pixelRatio)==null?void 0:Et[0])||((qt=t.pixelRatio)==null?void 0:qt[1])!==((Pt=Wr.pixelRatio)==null?void 0:Pt[1]))||!Wr&&ct||this.nextAudioPts===null&&We)&&this.resetInitSegment()}this.ISGenerated||(a=this.generateIS(e,t,s,o));const Gt=this.isVideoContiguous;let tr=-1,Ur;if(ct&&(tr=Js(t.samples),!Gt&&this.config.forceKeyFrameOnDiscontinuity))if(B=!0,tr>0){this.logger.warn(`[mp4-remuxer]: Dropped ${tr} out of ${Me} video samples due to a missing keyframe`);const Wr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(tr),t.dropped+=tr,oe+=(t.samples[0].pts-Wr)/t.inputTimeScale,Ur=oe}else tr===-1&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${Me} video samples`),B=!1);if(this.ISGenerated){if(We&&ct){const Wr=this.getVideoStartPts(t.samples),An=(qi(e.samples[0].pts,Wr)-Wr)/t.inputTimeScale;Y+=Math.max(0,An),oe+=Math.max(0,-An)}if(We){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),a=this.generateIS(e,t,s,o)),M=this.remuxAudio(e,Y,this.isAudioContiguous,o,Ne||ct||A===T.AUDIO?oe:void 0),ct){const Wr=M?M.endPTS-M.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),a=this.generateIS(e,t,s,o)),f=this.remuxVideo(t,oe,Gt,Wr)}}else ct&&(f=this.remuxVideo(t,oe,Gt,0));f&&(f.firstKeyFrame=tr,f.independent=tr!==-1,f.firstKeyFramePTS=Ur)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(w=Zi(r,s,this._initPTS,this._initDTS)),n.samples.length&&(u=Gi(n,s,this._initPTS))),{audio:M,video:f,initSegment:a,independent:B,text:u,id3:w}}generateIS(e,t,r,n){const s=e.samples,o=t.samples,c=this.typeSupported,A={},f=this._initPTS;let M=!f||n,a="audio/mp4",u,w,B;if(M&&(u=w=1/0),e.config&&s.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":c.mpeg?(a="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}A.audio={id:"audio",container:a,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&c.mpeg?new Uint8Array(0):kt.initSegment([e]),metadata:{channelCount:e.channelCount}},M&&(B=e.inputTimeScale,!f||B!==f.timescale?u=w=s[0].pts-Math.round(B*r):M=!1)}if(t.sps&&t.pps&&o.length){if(t.timescale=t.inputTimeScale,A.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:kt.initSegment([t]),metadata:{width:t.width,height:t.height}},M)if(B=t.inputTimeScale,!f||B!==f.timescale){const Y=this.getVideoStartPts(o),oe=Math.round(B*r);w=Math.min(w,qi(o[0].dts,Y)-oe),u=Math.min(u,Y-oe)}else M=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(A).length)return this.ISGenerated=!0,M?(this._initPTS={baseTime:u,timescale:B},this._initDTS={baseTime:w,timescale:B}):u=B=void 0,{tracks:A,initPTS:u,timescale:B}}remuxVideo(e,t,r,n){const s=e.inputTimeScale,o=e.samples,c=[],A=o.length,f=this._initPTS;let M=this.nextAvcDts,a=8,u=this.videoSampleDuration,w,B,Y=Number.POSITIVE_INFINITY,oe=Number.NEGATIVE_INFINITY,xe=!1;if(!r||M===null){const jr=t*s,Mn=o[0].pts-qi(o[0].dts,o[0].pts);Es&&M!==null&&Math.abs(jr-Mn-M)<15e3?r=!0:M=jr-Mn}const Ne=f.baseTime*s/f.timescale;for(let jr=0;jr<A;jr++){const Mn=o[jr];Mn.pts=qi(Mn.pts-Ne,M),Mn.dts=qi(Mn.dts-Ne,M),Mn.dts<o[jr>0?jr-1:jr].dts&&(xe=!0)}xe&&o.sort(function(jr,Mn){const Ii=jr.dts-Mn.dts,Ei=jr.pts-Mn.pts;return Ii||Ei}),w=o[0].dts,B=o[o.length-1].dts;const Me=B-w,We=Me?Math.round(Me/(A-1)):u||e.inputTimeScale/30;if(r){const jr=w-M,Mn=jr>We,Ii=jr<-1;if((Mn||Ii)&&(Mn?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${pn(jr,!0)} ms (${jr}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${pn(-jr,!0)} ms (${jr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!Ii||M>=o[0].pts||Es)){w=M;const Ei=o[0].pts-jr;if(Mn)o[0].dts=w,o[0].pts=Ei;else{let Si=!0;for(let Ki=0;Ki<o.length&&!(o[Ki].dts>Ei&&Si);Ki++){const zi=o[Ki].pts;if(o[Ki].dts-=jr,o[Ki].pts-=jr,Ki<o.length-1){const ki=o[Ki+1].pts,Qs=o[Ki].pts,Da=ki<=Qs,Fa=ki<=zi;Si=Da==Fa}}}this.logger.log(`Video: Initial PTS/DTS adjusted: ${pn(Ei,!0)}/${pn(w,!0)}, delta: ${pn(jr,!0)} ms`)}}w=Math.max(0,w);let ct=0,xt=0,wt=w;for(let jr=0;jr<A;jr++){const Mn=o[jr],Ii=Mn.units,Ei=Ii.length;let Si=0;for(let Ki=0;Ki<Ei;Ki++)Si+=Ii[Ki].data.length;xt+=Si,ct+=Ei,Mn.length=Si,Mn.dts<wt?(Mn.dts=wt,wt+=We/4|0||1):wt=Mn.dts,Y=Math.min(Mn.pts,Y),oe=Math.max(Mn.pts,oe)}B=o[A-1].dts;const Et=xt+4*ct+8;let qt;try{qt=new Uint8Array(Et)}catch(jr){this.observer.emit(g.ERROR,g.ERROR,{type:Re.MUX_ERROR,details:K.REMUX_ALLOC_ERROR,fatal:!1,error:jr,bytes:Et,reason:`fail allocating video mdat ${Et}`});return}const Pt=new DataView(qt.buffer);Pt.setUint32(0,Et),qt.set(kt.types.mdat,4);let Gt=!1,tr=Number.POSITIVE_INFINITY,Ur=Number.POSITIVE_INFINITY,Wr=Number.NEGATIVE_INFINITY,zr=Number.NEGATIVE_INFINITY;for(let jr=0;jr<A;jr++){const Mn=o[jr],Ii=Mn.units;let Ei=0;for(let zi=0,ki=Ii.length;zi<ki;zi++){const Qs=Ii[zi],Da=Qs.data,Fa=Qs.data.byteLength;Pt.setUint32(a,Fa),a+=4,qt.set(Da,a),a+=Fa,Ei+=4+Fa}let Si;if(jr<A-1)u=o[jr+1].dts-Mn.dts,Si=o[jr+1].pts-Mn.pts;else{const zi=this.config,ki=jr>0?Mn.dts-o[jr-1].dts:We;if(Si=jr>0?Mn.pts-o[jr-1].pts:We,zi.stretchShortVideoTrack&&this.nextAudioPts!==null){const Qs=Math.floor(zi.maxBufferHole*s),Da=(n?Y+n*s:this.nextAudioPts)-Mn.pts;Da>Qs?(u=Da-ki,u<0?u=ki:Gt=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${Da/90} ms to the next segment; using duration ${u/90} ms for the last video frame.`)):u=ki}else u=ki}const Ki=Math.round(Mn.pts-Mn.dts);tr=Math.min(tr,u),Wr=Math.max(Wr,u),Ur=Math.min(Ur,Si),zr=Math.max(zr,Si),c.push(Xi(Mn.key,u,Ei,Ki))}if(c.length){if(Es){if(Es<70){const jr=c[0].flags;jr.dependsOn=2,jr.isNonSync=0}}else if(ns&&zr-Ur<Wr-tr&&We/Wr<.025&&c[0].cts===0){this.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let jr=w;for(let Mn=0,Ii=c.length;Mn<Ii;Mn++){const Ei=jr+c[Mn].duration,Si=jr+c[Mn].cts;if(Mn<Ii-1){const Ki=Ei+c[Mn+1].cts;c[Mn].duration=Ki-Si}else c[Mn].duration=Mn?c[Mn-1].duration:We;c[Mn].cts=0,jr=Ei}}}u=Gt||!u?We:u,this.nextAvcDts=M=B+u,this.videoSampleDuration=u,this.isVideoContiguous=!0;const Wn={data1:kt.moof(e.sequenceNumber++,w,v(e,{samples:c})),data2:qt,startPTS:Y/s,endPTS:(oe+u)/s,startDTS:w/s,endDTS:M/s,type:"video",hasAudio:!1,hasVideo:!0,nb:c.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Wn}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return os;case"ac3":return fi;default:return Fi}}remuxAudio(e,t,r,n,s){const o=e.inputTimeScale,c=e.samplerate?e.samplerate:o,A=o/c,f=this.getSamplesPerFrame(e),M=f*A,a=this._initPTS,u=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,w=[],B=s!==void 0;let Y=e.samples,oe=u?0:8,xe=this.nextAudioPts||-1;const Ne=t*o,Me=a.baseTime*o/a.timescale;if(this.isAudioContiguous=r=r||Y.length&&xe>0&&(n&&Math.abs(Ne-xe)<9e3||Math.abs(qi(Y[0].pts-Me,Ne)-xe)<20*M),Y.forEach(function(An){An.pts=qi(An.pts-Me,Ne)}),!r||xe<0){if(Y=Y.filter(An=>An.pts>=0),!Y.length)return;s===0?xe=0:n&&!B?xe=Math.max(0,Ne):xe=Y[0].pts}if(e.segmentCodec==="aac"){const An=this.config.maxAudioFramesDrift;for(let dn=0,Wn=xe;dn<Y.length;dn++){const jr=Y[dn],Mn=jr.pts,Ii=Mn-Wn,Ei=Math.abs(1e3*Ii/o);if(Ii<=-An*M&&B)dn===0&&(this.logger.warn(`Audio frame @ ${(Mn/o).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*Ii/o)} ms.`),this.nextAudioPts=xe=Wn=Mn);else if(Ii>=An*M&&Ei<xi&&B){let Si=Math.round(Ii/M);Wn=Mn-Si*M,Wn<0&&(Si--,Wn+=M),dn===0&&(this.nextAudioPts=xe=Wn),this.logger.warn(`[mp4-remuxer]: Injecting ${Si} audio frame @ ${(Wn/o).toFixed(3)}s due to ${Math.round(1e3*Ii/o)} ms gap.`);for(let Ki=0;Ki<Si;Ki++){const zi=Math.max(Wn,0);let ki=Tn.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);ki||(this.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),ki=jr.unit.subarray()),Y.splice(dn,0,{unit:ki,pts:zi}),Wn+=M,dn++}}jr.pts=Wn,Wn+=M}}let We=null,ct=null,xt,wt=0,Et=Y.length;for(;Et--;)wt+=Y[Et].unit.byteLength;for(let An=0,dn=Y.length;An<dn;An++){const Wn=Y[An],jr=Wn.unit;let Mn=Wn.pts;if(ct!==null){const Ei=w[An-1];Ei.duration=Math.round((Mn-ct)/A)}else if(r&&e.segmentCodec==="aac"&&(Mn=xe),We=Mn,wt>0){wt+=oe;try{xt=new Uint8Array(wt)}catch(Ei){this.observer.emit(g.ERROR,g.ERROR,{type:Re.MUX_ERROR,details:K.REMUX_ALLOC_ERROR,fatal:!1,error:Ei,bytes:wt,reason:`fail allocating audio mdat ${wt}`});return}u||(new DataView(xt.buffer).setUint32(0,wt),xt.set(kt.types.mdat,4))}else return;xt.set(jr,oe);const Ii=jr.byteLength;oe+=Ii,w.push(Xi(!0,f,Ii,0)),ct=Mn}const qt=w.length;if(!qt)return;const Pt=w[w.length-1];this.nextAudioPts=xe=ct+A*Pt.duration;const Gt=u?new Uint8Array(0):kt.moof(e.sequenceNumber++,We/A,v({},e,{samples:w}));e.samples=[];const tr=We/o,Ur=xe/o,zr={data1:Gt,data2:xt,startPTS:tr,endPTS:Ur,startDTS:tr,endDTS:Ur,type:"audio",hasAudio:!0,hasVideo:!1,nb:qt};return this.isAudioContiguous=!0,zr}}function qi(i,e){let t;if(e===null)return i;for(e<i?t=-8589934592:t=8589934592;Math.abs(i-e)>4294967296;)i+=t;return i}function Js(i){for(let e=0;e<i.length;e++)if(i[e].key)return e;return-1}function Zi(i,e,t,r){const n=i.samples.length;if(!n)return;const s=i.inputTimeScale;for(let c=0;c<n;c++){const A=i.samples[c];A.pts=qi(A.pts-t.baseTime*s/t.timescale,e*s)/s,A.dts=qi(A.dts-r.baseTime*s/r.timescale,e*s)/s}const o=i.samples;return i.samples=[],{samples:o}}function Gi(i,e,t){const r=i.samples.length;if(!r)return;const n=i.inputTimeScale;for(let o=0;o<r;o++){const c=i.samples[o];c.pts=qi(c.pts-t.baseTime*n/t.timescale,e*n)/n}i.samples.sort((o,c)=>o.pts-c.pts);const s=i.samples;return i.samples=[],{samples:s}}class hs{constructor(e,t,r,n){this.logger=void 0,this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.logger=n}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,r,n){this.audioCodec=t,this.videoCodec=r,this.generateInitSegment(Be(e,n)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const n=this.initData=k(e);n.audio&&(t=Ls(n.audio,U.AUDIO)),n.video&&(r=Ls(n.video,U.VIDEO));const s={};n.audio&&n.video?s.audiovideo={container:"video/mp4",codec:t+","+r,supplemental:n.video.supplemental,initSegment:e,id:"main"}:n.audio?s.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:n.video?s.video={container:"video/mp4",codec:r,supplemental:n.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=s}remux(e,t,r,n,s,o){var c,A;let{initPTS:f,lastEndTime:M}=this;const a={audio:void 0,video:void 0,text:n,id3:r,initSegment:void 0};le(M)||(M=this.lastEndTime=s||0);const u=t.samples;if(!(u!=null&&u.length))return a;const w={initPTS:void 0,timescale:1};let B=this.initData;if((c=B)!=null&&c.length||(this.generateInitSegment(u),B=this.initData),!((A=B)!=null&&A.length))return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),a;this.emitInitSegment&&(w.tracks=this.initTracks,this.emitInitSegment=!1);const Y=ut(u,B),oe=Ge(B,u),xe=oe===null?s:oe;(o||!f)&&(Ms(f,xe,s,Y)||w.timescale!==f.timescale)&&(w.initPTS=xe-s,f&&f.timescale===1&&this.logger.warn(`Adjusting initPTS @${s} from ${f.baseTime/f.timescale} to ${w.initPTS}`),this.initPTS=f={baseTime:w.initPTS,timescale:1});const Ne=e?xe-f.baseTime/f.timescale:M,Me=Ne+Y;Je(B,u,f.baseTime/f.timescale),Y>0?this.lastEndTime=Me:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const We=!!B.audio,ct=!!B.video;let xt="";We&&(xt+="audio"),ct&&(xt+="video");const wt={data1:u,startPTS:Ne,startDTS:Ne,endPTS:Me,endDTS:Me,type:xt,hasAudio:We,hasVideo:ct,nb:1,dropped:0};return a.audio=wt.type==="audio"?wt:void 0,a.video=wt.type!=="audio"?wt:void 0,a.initSegment=w,a.id3=Zi(r,s,f,f),n.samples.length&&(a.text=Gi(n,s,f)),a}}function Ms(i,e,t,r){if(i===null)return!0;const n=Math.max(r,1),s=e-i.baseTime/i.timescale;return Math.abs(s-t)>n}function Ls(i,e){const t=i==null?void 0:i.codec;return t&&t.length>4?t:e===U.AUDIO?t==="ec-3"||t==="ac-3"||t==="alac"?t:t==="fLaC"||t==="Opus"?Bt(t,!1):(q.warn(`Unhandled audio codec "${t}" in mp4 MAP`),t||"mp4a"):(q.warn(`Unhandled video codec "${t}" in mp4 MAP`),t||"avc1")}let Ni;try{Ni=self.performance.now.bind(self.performance)}catch(i){Ni=Date.now}const Ps=[{demux:qn,remux:hs},{demux:Ke,remux:Nn},{demux:Yn,remux:Nn},{demux:Vr,remux:Nn}];Ps.splice(2,0,{demux:sn,remux:Nn});class Gs{constructor(e,t,r,n,s,o){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=r,this.id=s,this.logger=o}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,r,n){const s=r.transmuxing;s.executeStart=Ni();let o=new Uint8Array(e);const{currentTransmuxState:c,transmuxConfig:A}=this;n&&(this.currentTransmuxState=n);const{contiguous:f,discontinuity:M,trackSwitch:a,accurateTimeOffset:u,timeOffset:w,initSegmentChange:B}=n||c,{audioCodec:Y,videoCodec:oe,defaultInitPts:xe,duration:Ne,initSegmentData:Me}=A,We=ga(o,t);if(We&&Di(We.method)){const Et=this.getDecrypter(),qt=wi(We.method);if(Et.isSync()){let Pt=Et.softwareDecrypt(o,We.key.buffer,We.iv.buffer,qt);if(r.part>-1){const tr=Et.flush();Pt=tr&&tr.buffer}if(!Pt)return s.executeEnd=Ni(),oa(r);o=new Uint8Array(Pt)}else return this.asyncResult=!0,this.decryptionPromise=Et.webCryptoDecrypt(o,We.key.buffer,We.iv.buffer,qt).then(Pt=>{const Gt=this.push(Pt,null,r);return this.decryptionPromise=null,Gt}),this.decryptionPromise}const ct=this.needsProbing(M,a);if(ct){const Et=this.configureTransmuxer(o);if(Et)return this.logger.warn(`[transmuxer] ${Et.message}`),this.observer.emit(g.ERROR,g.ERROR,{type:Re.MEDIA_ERROR,details:K.FRAG_PARSING_ERROR,fatal:!1,error:Et,reason:Et.message}),s.executeEnd=Ni(),oa(r)}(M||a||B||ct)&&this.resetInitSegment(Me,Y,oe,Ne,t),(M||B||ct)&&this.resetInitialTimestamp(xe),f||this.resetContiguity();const xt=this.transmux(o,We,w,u,r);this.asyncResult=wa(xt);const wt=this.currentTransmuxState;return wt.contiguous=!0,wt.discontinuity=!1,wt.trackSwitch=!1,s.executeEnd=Ni(),xt}flush(e){const t=e.transmuxing;t.executeStart=Ni();const{decrypter:r,currentTransmuxState:n,decryptionPromise:s}=this;if(s)return this.asyncResult=!0,s.then(()=>this.flush(e));const o=[],{timeOffset:c}=n;if(r){const a=r.flush();a&&o.push(this.push(a.buffer,null,e))}const{demuxer:A,remuxer:f}=this;if(!A||!f){t.executeEnd=Ni();const a=[oa(e)];return this.asyncResult?Promise.resolve(a):a}const M=A.flush(c);return wa(M)?(this.asyncResult=!0,M.then(a=>(this.flushRemux(o,a,e),o))):(this.flushRemux(o,M,e),this.asyncResult?Promise.resolve(o):o)}flushRemux(e,t,r){const{audioTrack:n,videoTrack:s,id3Track:o,textTrack:c}=t,{accurateTimeOffset:A,timeOffset:f}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===T.MAIN?"level":"track"} ${r.level}`);const M=this.remuxer.remux(n,s,o,c,f,A,!0,this.id);e.push({remuxResult:M,chunkMeta:r}),r.transmuxing.executeEnd=Ni()}resetInitialTimestamp(e){const{demuxer:t,remuxer:r}=this;!t||!r||(t.resetTimeStamp(e),r.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,r,n,s){const{demuxer:o,remuxer:c}=this;!o||!c||(o.resetInitSegment(e,t,r,n),c.resetInitSegment(e,t,r,s))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,r,n,s){let o;return t&&t.method==="SAMPLE-AES"?o=this.transmuxSampleAes(e,t,r,n,s):o=this.transmuxUnencrypted(e,r,n,s),o}transmuxUnencrypted(e,t,r,n){const{audioTrack:s,videoTrack:o,id3Track:c,textTrack:A}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(s,o,c,A,t,r,!1,this.id),chunkMeta:n}}transmuxSampleAes(e,t,r,n,s){return this.demuxer.demuxSampleAes(e,t,r).then(o=>({remuxResult:this.remuxer.remux(o.audioTrack,o.videoTrack,o.id3Track,o.textTrack,r,n,!1,this.id),chunkMeta:s}))}configureTransmuxer(e){const{config:t,observer:r,typeSupported:n}=this;let s;for(let a=0,u=Ps.length;a<u;a++){var o;if((o=Ps[a].demux)!=null&&o.probe(e,this.logger)){s=Ps[a];break}}if(!s)return new Error("Failed to find demuxer by probing fragment data");const c=this.demuxer,A=this.remuxer,f=s.remux,M=s.demux;(!A||!(A instanceof f))&&(this.remuxer=new f(r,t,n,this.logger)),(!c||!(c instanceof M))&&(this.demuxer=new M(r,t,n,this.logger),this.probe=M.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new js(this.config)),e}}function ga(i,e){let t=null;return i.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const oa=i=>({remuxResult:{},chunkMeta:i});function wa(i){return"then"in i&&i.then instanceof Function}class Lo{constructor(e,t,r,n,s){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=r,this.duration=n,this.defaultInitPts=s||null}}class go{constructor(e,t,r,n,s,o){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=r,this.trackSwitch=n,this.timeOffset=s,this.initSegmentChange=o}}let Ua=0;class Qa{constructor(e,t,r,n){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Ua++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=A=>{const f=A.data,M=this.hls;if(!(!M||!(f!=null&&f.event)||f.instanceNo!==this.instanceNo))switch(f.event){case"init":{var a;const u=(a=this.workerContext)==null?void 0:a.objectURL;u&&self.URL.revokeObjectURL(u);break}case"transmuxComplete":{this.handleTransmuxComplete(f.data);break}case"flush":{this.onFlush(f.data);break}case"workerLog":{M.logger[f.data.logType]&&M.logger[f.data.logType](f.data.message);break}default:{f.data=f.data||{},f.data.frag=this.frag,f.data.part=this.part,f.data.id=this.id,M.trigger(f.event,f.data);break}}},this.onWorkerError=A=>{if(!this.hls)return;const f=new Error(`${A.message} (${A.filename}:${A.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(g.ERROR,{type:Re.OTHER_ERROR,details:K.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:f})};const s=e.config;this.hls=e,this.id=t,this.useWorker=!!s.enableWorker,this.onTransmuxComplete=r,this.onFlush=n;const o=(A,f)=>{f=f||{},f.frag=this.frag||void 0,A===g.ERROR&&(f=f,f.parent=this.id,f.part=this.part,this.error=f.error),this.hls.trigger(A,f)};this.observer=new au,this.observer.on(g.FRAG_DECRYPTED,o),this.observer.on(g.ERROR,o);const c=En(s.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const A=this.hls.logger;if(s.workerPath||Mu()){try{s.workerPath?(A.log(`loading Web Worker ${s.workerPath} for "${t}"`),this.workerContext=sc(s.workerPath)):(A.log(`injecting Web Worker for "${t}"`),this.workerContext=Eu());const{worker:M}=this.workerContext;M.addEventListener("message",this.onWorkerMessage),M.addEventListener("error",this.onWorkerError),M.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:c,id:t,config:ln(s)})}catch(M){A.warn(`Error setting up "${t}" Web Worker, fallback to inline`,M),this.terminateWorker(),this.error=null,this.transmuxer=new Gs(this.observer,c,s,"",t,e.logger)}return}}this.transmuxer=new Gs(this.observer,c,s,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=Ua++;const t=this.hls.config,r=En(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:r,id:this.id,config:ln(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),C(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,r,n,s,o,c,A,f,M){var a,u;f.transmuxing.start=self.performance.now();const{instanceNo:w,transmuxer:B}=this,Y=o?o.start:s.start,oe=s.decryptdata,xe=this.frag,Ne=!(xe&&s.cc===xe.cc),Me=!(xe&&f.level===xe.level),We=xe?f.sn-xe.sn:-1,ct=this.part?f.part-this.part.index:-1,xt=We===0&&f.id>1&&f.id===(xe==null?void 0:xe.stats.chunkCount),wt=!Me&&(We===1||We===0&&(ct===1||xt&&ct<=0)),Et=self.performance.now();(Me||We||s.stats.parsing.start===0)&&(s.stats.parsing.start=Et),o&&(ct||!wt)&&(o.stats.parsing.start=Et);const qt=!(xe&&((a=s.initSegment)==null?void 0:a.url)===((u=xe.initSegment)==null?void 0:u.url)),Pt=new go(Ne,wt,A,Me,Y,qt);if(!wt||Ne||qt){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${s.type} sn: ${f.sn}${f.part>-1?" part: "+f.part:""} ${this.id===T.MAIN?"level":"track"}: ${f.level} id: ${f.id}
|
|
|
discontinuity: ${Ne}
|
|
|
trackSwitch: ${Me}
|
|
|
contiguous: ${wt}
|
|
|
accurateTimeOffset: ${A}
|
|
|
timeOffset: ${Y}
|
|
|
initSegmentChange: ${qt}`);const Gt=new Lo(r,n,t,c,M);this.configureTransmuxer(Gt)}if(this.frag=s,this.part=o,this.workerContext)this.workerContext.worker.postMessage({instanceNo:w,cmd:"demux",data:e,decryptdata:oe,chunkMeta:f,state:Pt},e instanceof ArrayBuffer?[e]:[]);else if(B){const Gt=B.push(e,oe,f,Pt);wa(Gt)?Gt.then(tr=>{this.handleTransmuxComplete(tr)}).catch(tr=>{this.transmuxerError(tr,f,"transmuxer-interface push error")}):this.handleTransmuxComplete(Gt)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(r){const n=r.flush(e);wa(n)?n.then(s=>{this.handleFlushResult(s,e)}).catch(s=>{this.transmuxerError(s,e,"transmuxer-interface flush error")}):this.handleFlushResult(n,e)}}transmuxerError(e,t,r){this.hls&&(this.error=e,this.hls.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,t){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:r}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):r&&r.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const xa=100;class ra extends _o{constructor(e,t,r){super(e,t,r,"audio-stream-controller",T.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(g.BUFFER_RESET,this.onBufferReset,this),e.on(g.BUFFER_CREATED,this.onBufferCreated,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(g.FRAG_LOADING,this.onFragLoading,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(g.BUFFER_RESET,this.onBufferReset,this),e.off(g.BUFFER_CREATED,this.onBufferCreated,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(g.FRAG_LOADING,this.onFragLoading,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:r,initPTS:n,timescale:s}){if(r===T.MAIN){const o=t.cc,c=this.fragCurrent;if(this.initPTS[o]={baseTime:n,timescale:s},this.log(`InitPTS for cc: ${o} found from main: ${n}/${s}`),this.mainAnchor=t,this.state===Ln.WAITING_INIT_PTS){const A=this.waitingData;(!A&&!this.loadingParts||A&&A.frag.cc!==o)&&(this.nextLoadPosition=this.findSyncFrag(t).start),this.tick()}else!this.hls.hasEnoughToStart&&c&&c.cc!==o?(this.startFragRequested=!1,this.nextLoadPosition=this.findSyncFrag(t).start,c.abortRequests(),this.resetLoadingState()):this.state===Ln.IDLE&&this.tick()}}findSyncFrag(e){const t=this.getLevelDetails(),r=e.cc;return Hn(t,r,e)||t&&zn(t.fragments,r)||e}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=Ln.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(xa),r>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),e=r,this.state=Ln.IDLE):this.state=Ln.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case Ln.IDLE:this.doTickIdle();break;case Ln.WAITING_TRACK:{const{levels:t,trackId:r}=this,n=t==null?void 0:t[r],s=n==null?void 0:n.details;if(s&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(s))break;this.state=Ln.WAITING_INIT_PTS}break}case Ln.FRAG_LOADING_WAITING_RETRY:{var e;const t=performance.now(),r=this.retryDate;if(!r||t>=r||(e=this.media)!=null&&e.seeking){const{levels:n,trackId:s}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((n==null?void 0:n[s])||null),this.state=Ln.IDLE}break}case Ln.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:r,part:n,cache:s,complete:o}=t,c=this.mainAnchor;if(this.initPTS[r.cc]!==void 0){this.waitingData=null,this.state=Ln.FRAG_LOADING;const A=s.flush().buffer,f={frag:r,part:n,payload:A,networkDetails:null};this._handleFragmentLoadProgress(f),o&&super._handleFragmentLoadComplete(f)}else c&&c.cc!==t.frag.cc&&(this.log(`Waiting fragment cc (${r.cc}) cancelled because video is at cc ${c.cc}`),this.nextLoadPosition=this.findSyncFrag(c).start,this.clearWaitingFragment())}else this.state=Ln.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.state!==Ln.STOPPED&&(this.state=Ln.IDLE))}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:r,media:n,trackId:s}=this,o=t.config;if(!this.buffering||!n&&!this.primaryPrefetch&&(this.startFragRequested||!o.startFragPrefetch)||!(r!=null&&r[s]))return;const c=r[s],A=c.details;if(!A||this.waitForLive(c)||this.waitForCdnTuneIn(A)){this.state=Ln.WAITING_TRACK,this.startFragRequested=!1;return}const f=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&f&&(this.bufferFlushed=!1,this.afterBufferFlushed(f,U.AUDIO,T.AUDIO));const M=this.getFwdBufferInfo(f,T.AUDIO);if(M===null)return;if(!this.switchingTrack&&this._streamEnded(M,A)){t.trigger(g.BUFFER_EOS,{type:"audio"}),this.state=Ln.ENDED;return}const a=M.len,u=t.maxBufferLength,w=A.fragments,B=w[0].start,Y=this.getLoadPosition(),oe=this.flushing?Y:M.end;if(this.switchingTrack&&n){const Me=Y;A.PTSKnown&&Me<B&&(M.end>B||M.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=B+.05)}if(a>=u&&!this.switchingTrack&&oe<w[w.length-1].start)return;let xe=this.getNextFragment(oe,A);if(xe&&this.isLoopLoading(xe,oe)&&(xe=this.getNextFragmentLoopLoading(xe,A,M,T.MAIN,u)),!xe){this.bufferFlushed=!0;return}let Ne=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&Ne&&de(xe)&&!xe.endList&&(!A.live||!this.loadingParts&&oe<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(Ne)===$n.OK&&(this.mainFragLoading=Ne=null),Ne&&de(Ne))){if(xe.start>Ne.end){const We=this.fragmentTracker.getFragAtPos(oe,T.MAIN);We&&We.end>Ne.end&&(Ne=We,this.mainFragLoading={frag:We,targetBufferTime:null})}if(xe.start>Ne.end)return}this.loadFragment(xe,c,oe)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(r=>new vn(r))}onAudioTrackSwitching(e,t){const r=!!t.url;this.trackId=t.id;const{fragCurrent:n}=this;n&&(n.abortRequests(),this.removeUnbufferedFrags(n.start)),this.resetLoadingState(),r?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==Ln.STOPPED&&(this.setInterval(xa),this.state=Ln.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(g.AUDIO_TRACK_LOADED,r))}onAudioTrackLoaded(e,t){var r;const{levels:n}=this,{details:s,id:o,groupId:c,track:A}=t;if(!n){this.warn(`Audio tracks reset while loading track ${o} "${A.name}" of "${c}"`);return}const f=this.mainDetails;if(!f||s.endCC>f.endCC||f.expired){this.cachedTrackLoadedData=t,this.state!==Ln.STOPPED&&(this.state=Ln.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${o} "${A.name}" of "${c}" loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`);const M=n[o];let a=0;if(s.live||(r=M.details)!=null&&r.live){if(this.checkLiveUpdate(s),s.deltaUpdateFailed)return;if(M.details){var u;a=this.alignPlaylists(s,M.details,(u=this.levelLastLoaded)==null?void 0:u.details)}s.alignedSliding||(Is(s,f),s.alignedSliding||sa(s,f),a=s.fragmentStart)}M.details=s,this.levelLastLoaded=M,this.startFragRequested||this.setStartPosition(f,a),this.hls.trigger(g.AUDIO_TRACK_UPDATED,{details:s,id:o,groupId:t.groupId}),this.state===Ln.WAITING_TRACK&&!this.waitForCdnTuneIn(s)&&(this.state=Ln.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const r=e.frag,{part:n,payload:s}=e,{config:o,trackId:c,levels:A}=this;if(!A){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const f=A[c];if(!f){this.warn("Audio track is undefined on fragment load progress");return}const M=f.details;if(!M){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const a=o.defaultAudioCodec||f.audioCodec||"mp4a.40.2";let u=this.transmuxer;u||(u=this.transmuxer=new Qa(this.hls,T.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const w=this.initPTS[r.cc],B=(t=r.initSegment)==null?void 0:t.data;if(w!==void 0){const oe=n?n.index:-1,xe=oe!==-1,Ne=new gi(r.level,r.sn,r.stats.chunkCount,s.byteLength,oe,xe);u.push(s,B,a,"",r,n,M.totalduration,!1,Ne,w)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${M.startSN} ,${M.endSN}],track ${c}`);const{cache:Y}=this.waitingData=this.waitingData||{frag:r,part:n,cache:new Rl,complete:!1};Y.push(new Uint8Array(s)),this.state!==Ln.STOPPED&&(this.state=Ln.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===T.MAIN&&de(t.frag)&&(this.mainFragLoading=t,this.state===Ln.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:r,part:n}=t;if(r.type!==T.AUDIO){!this.audioOnly&&r.type===T.MAIN&&!r.elementaryStreams.video&&!r.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${n?" p: "+n.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(de(r)){this.fragPrevious=r;const s=this.switchingTrack;s&&(this.bufferedTrack=s,this.switchingTrack=null,this.hls.trigger(g.AUDIO_TRACK_SWITCHED,b({},s)))}this.fragBufferedComplete(r,n),this.media&&this.tick()}onError(e,t){var r;if(t.fatal){this.state=Ln.ERROR;return}switch(t.details){case K.FRAG_GAP:case K.FRAG_PARSING_ERROR:case K.FRAG_DECRYPT_ERROR:case K.FRAG_LOAD_ERROR:case K.FRAG_LOAD_TIMEOUT:case K.KEY_LOAD_ERROR:case K.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(T.AUDIO,t);break;case K.AUDIO_TRACK_LOAD_ERROR:case K.AUDIO_TRACK_LOAD_TIMEOUT:case K.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Ln.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===R.AUDIO_TRACK&&(this.state=Ln.IDLE);break;case K.BUFFER_ADD_CODEC_ERROR:case K.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.resetLoadingState();break;case K.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case K.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==U.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==U.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Ln.ENDED&&(this.state=Ln.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,T.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const r="audio",{hls:n}=this,{remuxResult:s,chunkMeta:o}=e,c=this.getCurrentContext(o);if(!c){this.resetWhenMissingContext(o);return}const{frag:A,part:f,level:M}=c,{details:a}=M,{audio:u,text:w,id3:B,initSegment:Y}=s;if(this.fragContextChanged(A)||!a){this.fragmentTracker.removeFragment(A);return}if(this.state=Ln.PARSING,this.switchingTrack&&u&&this.completeAudioSwitch(this.switchingTrack),Y!=null&&Y.tracks){const oe=A.initSegment||A;this._bufferInitSegment(M,Y.tracks,oe,o),n.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:oe,id:r,tracks:Y.tracks})}if(u){const{startPTS:oe,endPTS:xe,startDTS:Ne,endDTS:Me}=u;f&&(f.elementaryStreams[U.AUDIO]={startPTS:oe,endPTS:xe,startDTS:Ne,endDTS:Me}),A.setElementaryStreamInfo(U.AUDIO,oe,xe,Ne,Me),this.bufferFragmentData(u,A,f,o)}if(B!=null&&(t=B.samples)!=null&&t.length){const oe=v({id:r,frag:A,details:a},B);n.trigger(g.FRAG_PARSING_METADATA,oe)}if(w){const oe=v({id:r,frag:A,details:a},w);n.trigger(g.FRAG_PARSING_USERDATA,oe)}}_bufferInitSegment(e,t,r,n){if(this.state!==Ln.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const s=t.audio;s.id=T.AUDIO;const o=e.audioCodec;this.log(`Init audio buffer, container:${s.container}, codecs[level/parsed]=[${o}/${s.codec}]`),o&&o.split(",").length===1&&(s.levelCodec=o),this.hls.trigger(g.BUFFER_CODECS,t);const c=s.initSegment;if(c!=null&&c.byteLength){const A={type:"audio",frag:r,part:null,chunkMeta:n,parent:r.type,data:c};this.hls.trigger(g.BUFFER_APPENDING,A)}this.tickImmediate()}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);if(this.switchingTrack||n===$n.NOT_LOADED||n===$n.PARTIAL){var s;if(!de(e))this._loadInitSegment(e,t);else if((s=t.details)!=null&&s.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=Ln.WAITING_INIT_PTS;const o=this.mainDetails;o&&o.fragmentStart!==t.details.fragmentStart&&sa(t.details,o)}else super.loadFragment(e,t,r)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:r,assocLang:n,characteristics:s,audioCodec:o,channels:c}=this.bufferedTrack;Fr({name:t,lang:r,assocLang:n,characteristics:s,audioCodec:o,channels:c},e,Nr)||(Kn(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(g.AUDIO_TRACK_SWITCHED,b({},e))}}class Ns extends z{constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,r){const n=t==null?void 0:t.renditionReports;if(n){let s=-1;for(let o=0;o<n.length;o++){const c=n[o];let A;try{A=new self.URL(c.URI,t.url).href}catch(f){this.warn(`Could not construct new URL for Rendition Report: ${f}`),A=c.URI||""}if(A===e){s=o;break}else A===e.substring(0,A.length)&&(s=o)}if(s!==-1){const o=n[s],c=parseInt(o["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let A=parseInt(o["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const M=Math.min(t.age-t.partTarget,t.targetduration);A>=0&&M>t.partTarget&&(A+=1)}const f=r&&_n(r);return new Un(c,A>=0?A:void 0,f)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(r){this.warn(`Could not construct new URL with HLS Delivery Directives: ${r}`)}return e}playlistLoaded(e,t,r){const{details:n,stats:s}=t,o=self.performance.now(),c=s.loading.first?Math.max(0,o-s.loading.first):0;n.advancedDateTime=Date.now()-c;const A=this.hls.config.timelineOffset;if(A!==n.appliedTimelineOffset){const M=Math.max(A||0,0);n.appliedTimelineOffset=M,n.fragments.forEach(a=>{a.start=a.playlistOffset+M})}if(n.live||r!=null&&r.live){const M="levelInfo"in t?t.levelInfo:t.track;if(n.reloaded(r),r&&n.fragments.length>0){Wa(r,n);const Ne=n.playlistParsingError;if(Ne){this.warn(Ne);const Me=this.hls;if(!Me.config.ignorePlaylistParsingErrors){var f;const{networkDetails:We}=t;Me.trigger(g.ERROR,{type:Re.NETWORK_ERROR,details:K.LEVEL_PARSING_ERROR,fatal:!1,url:n.url,error:Ne,reason:Ne.message,level:t.level||void 0,parent:(f=n.fragments[0])==null?void 0:f.type,networkDetails:We,stats:s});return}n.playlistParsingError=null}}n.requestScheduled===-1&&(n.requestScheduled=s.loading.start);const a=this.hls.mainForwardBufferInfo,u=a?a.end-a.len:0,w=(n.edge-u)*1e3,B=El(n,w);if(n.requestScheduled+B<o?n.requestScheduled=o:n.requestScheduled+=B,this.log(`live playlist ${e} ${n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:n.updated?"UPDATED":"MISSED"}`),!this.canLoad||!n.live)return;let Y,oe,xe;if(n.canBlockReload&&n.endSN&&n.advanced){const Ne=this.hls.config.lowLatencyMode,Me=n.lastPartSn,We=n.endSN,ct=n.lastPartIndex,xt=ct!==-1,wt=Me===We;xt?wt?(oe=We+1,xe=Ne?0:ct):(oe=Me,xe=Ne?ct+1:n.maxPartIndex):oe=We+1;const Et=n.age,qt=Et+n.ageHeader;let Pt=Math.min(qt-n.partTarget,n.targetduration*1.5);if(Pt>0){if(qt>n.targetduration*3)this.log(`Playlist last advanced ${Et.toFixed(2)}s ago. Omitting segment and part directives.`),oe=void 0,xe=void 0;else if(r!=null&&r.tuneInGoal&&qt-n.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${Pt} with playlist age: ${n.age}`),Pt=0;else{const Gt=Math.floor(Pt/n.targetduration);if(oe+=Gt,xe!==void 0){const tr=Math.round(Pt%n.targetduration/n.partTarget);xe+=tr}this.log(`CDN Tune-in age: ${n.ageHeader}s last advanced ${Et.toFixed(2)}s goal: ${Pt} skip sn ${Gt} to part ${xe}`)}n.tuneInGoal=Pt}if(Y=this.getDeliveryDirectives(n,t.deliveryDirectives,oe,xe),Ne||!wt){n.requestScheduled=o,this.loadingPlaylist(M,Y);return}}else(n.canBlockReload||n.canSkipUntil)&&(Y=this.getDeliveryDirectives(n,t.deliveryDirectives,oe,xe));Y&&oe!==void 0&&n.canBlockReload&&(n.requestScheduled=s.loading.first+Math.max(B-c*2,B/2)),this.scheduleLoading(M,Y,n)}else this.clearTimer()}scheduleLoading(e,t,r){const n=r||e.details;if(!n){this.loadingPlaylist(e,t);return}const s=self.performance.now(),o=n.requestScheduled;if(s>=o){this.loadingPlaylist(e,t);return}const c=o-s;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(c)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),c)}getDeliveryDirectives(e,t,r,n){let s=_n(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,n=t.part,s=nn.No),new Un(r,n,s)}checkRetry(e){const t=e.details,r=Xn(e),n=e.errorAction,{action:s,retryCount:o=0,retryConfig:c}=n||{},A=!!n&&!!c&&(s===yn.RetryRequest||!n.resolved&&s===yn.SendAlternateToPenaltyBox);if(A){var f;if(o>=c.maxNumRetry)return!1;if(r&&(f=e.context)!=null&&f.deliveryDirectives)this.warn(`Retrying playlist loading ${o+1}/${c.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const M=si(c,o);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),M),this.warn(`Retrying playlist loading ${o+1}/${c.maxNumRetry} after "${t}" in ${M}ms`)}e.levelRetry=!0,n.resolved=!0}return A}}function Uo(i,e){if(i.length!==e.length)return!1;for(let t=0;t<i.length;t++)if(!Co(i[t].attrs,e[t].attrs))return!1;return!0}function Co(i,e,t){const r=i["STABLE-RENDITION-ID"];return r&&!t?r===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(n=>i[n]!==e[n])}function Wo(i,e){return e.label.toLowerCase()===i.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(i.lang||"").toLowerCase())}class Qo extends Ns{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVEL_LOADING,this.onLevelLoading,this),e.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(g.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(g.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:r,groupId:n,details:s}=t,o=this.tracksInGroup[r];if(!o||o.groupId!==n){this.warn(`Audio track with id:${r} and group:${n} not found in active group ${o==null?void 0:o.groupId}`);return}const c=o.details;o.details=t.details,this.log(`Audio track ${r} "${o.name}" lang:${o.lang} group:${n} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const r=t.audioGroups||null,n=this.groupIds;let s=this.currentTrack;if(!r||(n==null?void 0:n.length)!==(r==null?void 0:r.length)||r!=null&&r.some(c=>(n==null?void 0:n.indexOf(c))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const c=this.tracks.filter(u=>!r||r.indexOf(u.groupId)!==-1);if(c.length)this.selectDefaultTrack&&!c.some(u=>u.default)&&(this.selectDefaultTrack=!1),c.forEach((u,w)=>{u.id=w});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=c;const A=this.hls.config.audioPreference;if(!s&&A){const u=pr(A,c,Nr);if(u>-1)s=c[u];else{const w=pr(A,this.tracks);s=this.tracks[w]}}let f=this.findTrackId(s);f===-1&&s&&(f=this.findTrackId(null));const M={audioTracks:c};this.log(`Updating audio tracks, ${c.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(g.AUDIO_TRACKS_UPDATED,M);const a=this.trackId;if(f!==-1&&a===-1)this.setAudioTrack(f);else if(c.length&&a===-1){var o;const u=new Error(`No audio track selected for current audio group-ID(s): ${(o=this.groupIds)==null?void 0:o.join(",")} track count: ${c.length}`);this.warn(u.message),this.hls.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:u})}}}onError(e,t){t.fatal||!t.context||t.context.type===R.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const n=this.currentTrack;if(n&&Fr(e,n,Nr))return n;const s=pr(e,this.tracksInGroup,Nr);if(s>-1){const o=this.tracksInGroup[s];return this.setAudioTrack(s),o}else if(n){let o=t.loadLevel;o===-1&&(o=t.firstAutoLevel);const c=Cn(e,t.levels,r,o,Nr);if(c===-1)return null;t.nextLoadLevel=c}if(e.channels||e.audioCodec){const o=pr(e,r);if(o>-1)return r[o]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,n=t[e],s=n.details&&!n.details.live;if(e===this.trackId&&n===r&&s||(this.log(`Switching to audio-track ${e} "${n.name}" lang:${n.lang} group:${n.groupId} channels:${n.channels}`),this.trackId=e,this.currentTrack=n,this.hls.trigger(g.AUDIO_TRACK_SWITCHING,b({},n)),s))return;const o=this.switchParams(n.url,r==null?void 0:r.details,n.details);this.loadPlaylist(o)}findTrackId(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const n=t[r];if(!(this.selectDefaultTrack&&!n.default)&&(!e||Fr(e,n,Nr)))return r}if(e){const{name:r,lang:n,assocLang:s,characteristics:o,audioCodec:c,channels:A}=e;for(let f=0;f<t.length;f++){const M=t[f];if(Fr({name:r,lang:n,assocLang:s,characteristics:o,audioCodec:c,channels:A},M,Nr))return f}for(let f=0;f<t.length;f++){const M=t[f];if(Co(e.attrs,M.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return f}for(let f=0;f<t.length;f++){const M=t[f];if(Co(e.attrs,M.attrs,["LANGUAGE"]))return f}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Kn(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=e.id,n=e.groupId,s=this.getUrlWithDirectives(e.url,t),o=e.details,c=o==null?void 0:o.age;this.log(`Loading audio-track ${r} "${e.name}" lang:${e.lang} group:${n}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${c&&o.live?" age "+c.toFixed(1)+(o.type?" "+o.type||0:""):""} ${s}`),this.hls.trigger(g.AUDIO_TRACK_LOADING,{url:s,id:r,groupId:n,deliveryDirectives:t||null,track:e})}}class ou{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,r){if(this.queues===null||this.tracks===null)return;const n=this.queues[t];n.push(e),n.length===1&&!r&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const r={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(r,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const r={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(r)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const r=(t=e[0])==null?void 0:t.label;(r==="async-blocker"||r==="async-blocker-prepend")&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){if(this.queues===null)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const n=t[0];try{n.execute()}catch(s){var r;if(n.onError(s),this.queues===null||this.tracks===null)return;const o=(r=this.tracks[e])==null?void 0:r.buffer;o!=null&&o.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
|
|
|
${this.list("video")}
|
|
|
${this.list("audio")}
|
|
|
${this.list("audiovideo")}}`}list(e){var t,r;return(t=this.queues)!=null&&t[e]||(r=this.tracks)!=null&&r[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const r=(t=this.tracks)==null?void 0:t[e],n=r==null?void 0:r.buffer;return n?`SourceBuffer${n.updating?" updating":""}${r.ended?" ended":""}${r.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(r=>r.label).join(", "))||""}}const _l=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,bs="HlsJsTrackRemovedError";class cs extends Error{constructor(e){super(e),this.name=bs}}class ja extends z{constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=r=>{var n;this.hls&&((n=this.mediaSource)==null?void 0:n.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=r=>{const{media:n,mediaSource:s}=this;r&&this.log("Media source opened"),!(!n||!s)&&(s.removeEventListener("sourceopen",this._onMediaSourceOpen),n.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(g.MEDIA_ATTACHED,{media:n,mediaSource:s}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:n}=this;r!==n&&this.error(`Media element src was set while attaching MediaSource (${n} > ${r})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=_e(ye(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.BUFFER_RESET,this.onBufferReset,this),e.on(g.BUFFER_APPENDING,this.onBufferAppending,this),e.on(g.BUFFER_CODECS,this.onBufferCodecs,this),e.on(g.BUFFER_EOS,this.onBufferEos,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.FRAG_PARSED,this.onFragParsed,this),e.on(g.FRAG_CHANGED,this.onFragChanged,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.BUFFER_RESET,this.onBufferReset,this),e.off(g.BUFFER_APPENDING,this.onBufferAppending,this),e.off(g.BUFFER_CODECS,this.onBufferCodecs,this),e.off(g.BUFFER_EOS,this.onBufferEos,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.FRAG_PARSED,this.onFragParsed,this),e.off(g.FRAG_CHANGED,this.onFragChanged,this),e.off(g.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const r={};if(this.operationQueue){const s=this.isUpdating();s||this.operationQueue.removeBlockers();const o=this.isQueued();(s||o)&&this.warn(`Transfering MediaSource with${o?" operations in queue":""}${s?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const n=this.transferData;return!this.sourceBufferCount&&n&&n.mediaSource===t?v(r,n.tracks):this.sourceBuffers.forEach(s=>{const[o]=s;o&&(r[o]=v({},this.tracks[o]),this.removeBuffer(o)),s[0]=s[1]=null}),{media:e,mediaSource:t,tracks:r}}initTracks(){const e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var r;let n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsTotal=n,this.log(`${n} bufferCodec event(s) expected.`),(r=this.transferData)!=null&&r.mediaSource&&this.sourceBufferCount&&n&&this.bufferCreated()}onMediaAttaching(e,t){const r=this.media=t.media,n=ye(this.appendSource);if(this.transferData=this.overrides=void 0,r&&n){const s=!!t.mediaSource;(s||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const o=this.mediaSource=t.mediaSource||new n;if(this.assignMediaSource(o),s)this._objectUrl=r.src,this.attachTransferred();else{const c=this._objectUrl=self.URL.createObjectURL(o);if(this.appendSource)try{r.removeAttribute("src");const A=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||A&&o instanceof A,qs(r),$a(r,c),r.load()}catch(A){r.src=c}else r.src=c}r.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,r;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(r=e.constructor)==null?void 0:r.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const r=this.tracks,n=t.tracks,s=n?Object.keys(n):null,o=s?s.length:0,c=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(n&&s&&o){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
|
|
|
required tracks: ${ln(r,(A,f)=>A==="initSegment"?void 0:f)};
|
|
|
transfer tracks: ${ln(n,(A,f)=>A==="initSegment"?void 0:f)}}`),!Le(n,r)){t.mediaSource=null,t.tracks=void 0;const A=e.currentTime,f=this.details,M=Math.max(A,(f==null?void 0:f.fragments[0].start)||0);if(M-A>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${A} -> ${M}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(n)}"->"${Object.keys(r)}") start time: ${M} currentTime: ${A}`),this.onMediaDetaching(g.MEDIA_DETACHING,{}),this.onMediaAttaching(g.MEDIA_ATTACHING,t),e.currentTime=M;return}this.transferData=void 0,s.forEach(A=>{const f=A,M=n[f];if(M){const a=M.buffer;if(a){const u=this.fragmentTracker,w=M.id;if(u.hasFragments(w)||u.hasParts(w)){const oe=Ti.getBuffered(a);u.detectEvictedFragments(f,oe,w,null,!0)}const B=Ha(f),Y=[f,a];this.sourceBuffers[B]=Y,a.updating&&this.operationQueue&&this.operationQueue.prependBlocker(f),this.trackSourceBuffer(f,M)}}}),c(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),c()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const r=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:n,mediaSource:s,_objectUrl:o}=this;if(s){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([c])=>{c&&this.removeBuffer(c)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const c=s.readyState==="open";try{const A=s.sourceBuffers;for(let f=A.length;f--;)c&&A[f].abort(),s.removeSourceBuffer(A[f]);c&&s.endOfStream()}catch(A){this.warn(`onMediaDetaching: ${A.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}s.removeEventListener("sourceopen",this._onMediaSourceOpen),s.removeEventListener("sourceended",this._onMediaSourceEnded),s.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(s.removeEventListener("startstreaming",this._onStartStreaming),s.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}n&&(n.removeEventListener("emptied",this._onMediaEmptied),r||(o&&self.URL.revokeObjectURL(o),this.mediaSrc===o?(n.removeAttribute("src"),this.appendSource&&qs(n),n.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(g.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const r=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),r)try{var n;(n=this.mediaSource)!=null&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(s){this.warn(`onBufferReset ${e}`,s)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Ha(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new ou(this.tracks)}onBufferCodecs(e,t){const r=this.tracks,n=Object.keys(t);this.log(`BUFFER_CODECS: "${n}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in t&&(r.audio||r.video)||r.audiovideo&&("audio"in t||"video"in t),o=!s&&this.sourceBufferCount&&this.media&&n.some(c=>!r[c]);if(s||o){this.warn(`Unsupported transition between "${Object.keys(r)}" and "${n}" SourceBuffers`);return}n.forEach(c=>{var A,f,M;const a=t[c],{id:u,codec:w,levelCodec:B,container:Y,metadata:oe,supplemental:xe}=a;let Ne=r[c];const Me=(A=this.transferData)==null||(f=A.tracks)==null?void 0:f[c],We=Me!=null&&Me.buffer?Me:Ne,ct=(We==null?void 0:We.pendingCodec)||(We==null?void 0:We.codec),xt=We==null?void 0:We.levelCodec;Ne||(Ne=r[c]={buffer:void 0,listeners:[],codec:w,supplemental:xe,container:Y,levelCodec:B,metadata:oe,id:u});const wt=On(ct,xt),Et=wt==null?void 0:wt.replace(_l,"$1");let qt=On(w,B);const Pt=(M=qt)==null?void 0:M.replace(_l,"$1");qt&&wt&&Et!==Pt&&(c.slice(0,5)==="audio"&&(qt=Bt(qt,this.appendSource)),this.log(`switching codec ${ct} to ${qt}`),qt!==(Ne.pendingCodec||Ne.codec)&&(Ne.pendingCodec=qt),Ne.container=Y,this.appendChangeType(c,Y,qt))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&this.mediaSourceOpenOrEnded&&this.checkPendingTracks()}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const r=this.tracks[t];return e[t]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},e},{})}appendChangeType(e,t,r){const n=`${t};codecs=${r}`,s={label:`change-type=${n}`,execute:()=>{const o=this.tracks[e];if(o){const c=o.buffer;c!=null&&c.changeType&&(this.log(`changing ${e} sourceBuffer type to ${n}`),c.changeType(n),o.codec=r,o.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:o=>{this.warn(`Failed to change ${e} SourceBuffer type`,o)}};this.append(s,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const r=e.start,n=r+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(r,T.MAIN))==null?void 0:t.gap)===!0)return;const o={label:"block-audio",execute:()=>{var c;const A=this.tracks.video;(this.lastVideoAppendEnd>n||A!=null&&A.buffer&&Ti.isBuffered(A.buffer,n)||((c=this.fragmentTracker.getAppendedFrag(n,T.MAIN))==null?void 0:c.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:c=>{this.warn("Error executing block-audio operation",c)}};this.blockedAudioAppend={op:o,frag:e},this.append(o,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:r}=this,{data:n,type:s,parent:o,frag:c,part:A,chunkMeta:f}=t,M=f.buffering[s],a=c.sn,u=self.performance.now();M.start=u;const w=c.stats.buffering,B=A?A.stats.buffering:null;w.start===0&&(w.start=u),B&&B.start===0&&(B.start=u);const Y=r.audio;let oe=!1;s==="audio"&&(Y==null?void 0:Y.container)==="audio/mpeg"&&(oe=!this.lastMpegAudioChunk||f.id===1||this.lastMpegAudioChunk.sn!==f.sn,this.lastMpegAudioChunk=f);const xe=this.tracks.video,Ne=xe==null?void 0:xe.buffer;if(Ne&&a!=="initSegment"){const ct=A||c,xt=this.blockedAudioAppend;if(s==="audio"&&o!=="main"&&!this.blockedAudioAppend){const Et=ct.start+ct.duration*.05,qt=Ne.buffered,Pt=this.currentOp("video");!qt.length&&!Pt?this.blockAudio(ct):!Pt&&!Ti.isBuffered(Ne,Et)&&this.lastVideoAppendEnd<Et&&this.blockAudio(ct)}else if(s==="video"){const wt=ct.end;if(xt){const Et=xt.frag.start;(wt>Et||wt<this.lastVideoAppendEnd||Ti.isBuffered(Ne,Et))&&this.unblockAudio()}this.lastVideoAppendEnd=wt}}const Me=(A||c).start,We={label:`append-${s}`,execute:()=>{if(M.executeStart=self.performance.now(),oe){const ct=this.tracks[s];if(ct){const xt=ct.buffer;if(xt){const wt=Me-xt.timestampOffset;Math.abs(wt)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${Me} (delta: ${wt}) sn: ${a})`),xt.timestampOffset=Me)}}}this.appendExecutor(n,s)},onStart:()=>{},onComplete:()=>{const ct=self.performance.now();M.executeEnd=M.end=ct,w.first===0&&(w.first=ct),B&&B.first===0&&(B.first=ct);const xt={};this.sourceBuffers.forEach(([wt,Et])=>{wt&&(xt[wt]=Ti.getBuffered(Et))}),this.appendErrors[s]=0,s==="audio"||s==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(g.BUFFER_APPENDED,{type:s,frag:c,part:A,chunkMeta:f,parent:c.type,timeRanges:xt})},onError:ct=>{var xt;const wt={type:Re.MEDIA_ERROR,parent:c.type,details:K.BUFFER_APPEND_ERROR,sourceBufferName:s,frag:c,part:A,chunkMeta:f,error:ct,err:ct,fatal:!1};if(ct.code===DOMException.QUOTA_EXCEEDED_ERR)wt.details=K.BUFFER_FULL_ERROR;else if(ct.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!((xt=this.media)!=null&&xt.error))wt.errorAction=Fn(!0);else if(ct.name===bs)this.sourceBufferCount===0?wt.errorAction=Fn(!0):++this.appendErrors[s];else{const Et=++this.appendErrors[s];this.warn(`Failed ${Et}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${s}" sourceBuffer`),Et>=this.hls.config.appendErrorMaxRetry&&(wt.fatal=!0)}this.hls.trigger(g.ERROR,wt)}};this.append(We,s,this.isPending(this.tracks[s]))}getFlushOp(e,t,r){return this.log(`queuing "${e}" remove ${t}-${r}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,r)},onStart:()=>{},onComplete:()=>{this.hls.trigger(g.BUFFER_FLUSHED,{type:e})},onError:n=>{this.warn(`Failed to remove ${t}-${r} from "${e}" SourceBuffer`,n)}}}onBufferFlushing(e,t){const{type:r,startOffset:n,endOffset:s}=t;r?this.append(this.getFlushOp(r,n,s),r):this.sourceBuffers.forEach(([o])=>{o&&this.append(this.getFlushOp(o,n,s),o)})}onFragParsed(e,t){const{frag:r,part:n}=t,s=[],o=n?n.elementaryStreams:r.elementaryStreams;o[U.AUDIOVIDEO]?s.push("audiovideo"):(o[U.AUDIO]&&s.push("audio"),o[U.VIDEO]&&s.push("video"));const c=()=>{const A=self.performance.now();r.stats.buffering.end=A,n&&(n.stats.buffering.end=A);const f=n?n.stats:r.stats;this.hls.trigger(g.FRAG_BUFFERED,{frag:r,part:n,stats:f,id:r.type})};s.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(c,s)}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t,r;return e&&(!((t=this.tracks[e])!=null&&t.ended)||((r=this.tracks[e])==null?void 0:r.ending))})}onBufferEos(e,t){var r;this.sourceBuffers.forEach(([o])=>{if(o){const c=this.tracks[o];(!t.type||t.type===o)&&(c.ending=!0,c.ended||(c.ended=!0,this.log(`${o} buffer reached EOS`)))}});const n=((r=this.overrides)==null?void 0:r.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([o])=>{var c;return o&&!((c=this.tracks[o])!=null&&c.ended)})&&(n?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:o}=this;if(!o||o.readyState!=="open"){o&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${o.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),o.endOfStream(),this.hls.trigger(g.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(g.BUFFERED_TO_END,void 0)))}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){const e=this.getDurationAndRange();e&&this.blockUntilOpen(()=>this.updateMediaSource(e))}onError(e,t){if(t.details===K.BUFFER_APPEND_ERROR&&t.frag){var r;const n=(r=t.errorAction)==null?void 0:r.nextAutoLevel;le(n)&&n!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:r}=this;if(!r||t===null||!this.sourceBufferCount)return;const n=e.config,s=r.currentTime,o=t.levelTargetDuration,c=t.live&&n.liveBackBufferLength!==null?n.liveBackBufferLength:n.backBufferLength;if(le(c)&&c>=0){const A=Math.max(c,o),f=Math.floor(s/o)*o-A;this.flushBackBuffer(s,o,f)}if(le(n.frontBufferFlushThreshold)&&n.frontBufferFlushThreshold>0){const A=Math.max(n.maxBufferLength,n.frontBufferFlushThreshold),f=Math.max(A,o),M=Math.floor(s/o)*o+f;this.flushFrontBuffer(s,o,M)}}flushBackBuffer(e,t,r){this.sourceBuffers.forEach(([n,s])=>{if(s){const c=Ti.getBuffered(s);if(c.length>0&&r>c.start(0)){var o;this.hls.trigger(g.BACK_BUFFER_REACHED,{bufferEnd:r});const A=this.tracks[n];if((o=this.details)!=null&&o.live)this.hls.trigger(g.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(A!=null&&A.ended){this.log(`Cannot flush ${n} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:n})}}})}flushFrontBuffer(e,t,r){this.sourceBuffers.forEach(([n,s])=>{if(s){const o=Ti.getBuffered(s),c=o.length;if(c<2)return;const A=o.start(c-1),f=o.end(c-1);if(r>A||e>=A&&e<=f)return;this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:A,endOffset:1/0,type:n})}})}getDurationAndRange(){var e;const{details:t,mediaSource:r}=this;if(!t||!this.media||(r==null?void 0:r.readyState)!=="open")return null;const n=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&r.setLiveSeekableRange){const f=Math.max(0,t.fragmentStart),M=Math.max(f,n);return{duration:1/0,start:f,end:M}}return{duration:1/0}}const s=(e=this.overrides)==null?void 0:e.duration;if(s)return le(s)?{duration:s}:null;const o=this.media.duration,c=le(r.duration)?r.duration:0;return n>c&&n>o||!le(o)?{duration:n}:null}updateMediaSource({duration:e,start:t,end:r}){const n=this.mediaSource;!this.media||!n||n.readyState!=="open"||(n.duration!==e&&(le(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),n.duration=e),t!==void 0&&r!==void 0&&(this.log(`MediaSource duration is set to ${n.duration}. Setting seekable range to ${t}-${r}.`),n.setLiveSeekableRange(t,r)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:r}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${ln(r)}`),this.tracksReady){var n;const s=(n=this.transferData)==null?void 0:n.tracks;s&&Object.keys(s).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,r])=>{if(t){const n=this.tracks[t];e[t]={buffer:r,container:n.container,codec:n.codec,supplemental:n.supplemental,levelCodec:n.levelCodec,id:n.id,metadata:n.metadata}}}),this.hls.trigger(g.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:r}=this;if(!r)throw new Error("createSourceBuffers called when mediaSource was null");for(const s in e){const o=s,c=e[o];if(this.isPending(c)){const A=this.getTrackCodec(c,o),f=`${c.container};codecs=${A}`;c.codec=A,this.log(`creating sourceBuffer(${f})${this.currentOp(o)?" Queued":""} ${ln(c)}`);try{const M=r.addSourceBuffer(f),a=Ha(o),u=[o,M];t[a]=u,c.buffer=M}catch(M){var n;this.error(`error while trying to add sourceBuffer: ${M.message}`),this.shiftAndExecuteNext(o),(n=this.operationQueue)==null||n.removeBlockers(),delete this.tracks[o],this.hls.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:M,sourceBufferName:o,mimeType:f,parent:c.id});return}this.trackSourceBuffer(o,c)}}this.bufferCreated()}getTrackCodec(e,t){const r=e.supplemental;let n=e.codec;r&&(t==="video"||t==="audiovideo")&&Rt(r,"video")&&(n=gn(n,r));const s=On(n,e.levelCodec);return s?t.slice(0,5)==="audio"?Bt(s,this.appendSource):s:""}trackSourceBuffer(e,t){const r=t.buffer;if(!r)return;const n=this.getTrackCodec(t,e);this.tracks[e]={buffer:r,codec:n,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(s,o)=>{const c=o.removedRanges;c!=null&&c.length&&this.hls.trigger(g.BUFFER_FLUSHED,{type:s})})}get mediaSrc(){var e,t;const r=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return r==null?void 0:r.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const r=this.currentOp(e);r&&(r.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var r;const n=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${n}`,t),this.hls.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:n,fatal:!1});const s=this.currentOp(e);s&&s.onError(n)}removeExecutor(e,t,r){const{media:n,mediaSource:s}=this,o=this.tracks[e],c=o==null?void 0:o.buffer;if(!n||!s||!c){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const A=le(n.duration)?n.duration:1/0,f=le(s.duration)?s.duration:1/0,M=Math.max(0,t),a=Math.min(r,A,f);a>M&&(!o.ending||o.ended)?(o.ended=!1,this.log(`Removing [${M},${a}] from the ${e} SourceBuffer`),c.remove(M,a)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const r=this.tracks[t],n=r==null?void 0:r.buffer;if(!n)throw new cs(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);r.ending=!1,r.ended=!1,n.appendBuffer(e)}blockUntilOpen(e){this.isUpdating()||this.isQueued()?this.blockBuffers(e):e()}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:r}=this,n=t.map(o=>this.appendBlocker(o));t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(n).then(o=>{r===this.operationQueue&&(e(),this.stepOperationQueue(t))})}stepOperationQueue(e){e.forEach(t=>{var r;const n=(r=this.tracks[t])==null?void 0:r.buffer;!n||n.updating||this.shiftAndExecuteNext(t)})}append(e,t,r){this.operationQueue&&this.operationQueue.append(e,t,r)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,r){const n=this.tracks[e];if(!n)return;const s=n.buffer;if(!s)return;const o=r.bind(this,e);n.listeners.push({event:t,listener:o}),s.addEventListener(t,o)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const r=t.buffer;r&&(t.listeners.forEach(n=>{r.removeEventListener(n.event,n.listener)}),t.listeners.length=0)}}function qs(i){const e=i.querySelectorAll("source");[].slice.call(e).forEach(t=>{i.removeChild(t)})}function $a(i,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,i.appendChild(t)}function Ha(i){return i==="audio"?1:0}class Ra{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(g.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.BUFFER_CODECS,this.onBufferCodecs,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(g.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.BUFFER_CODECS,this.onBufferCodecs,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const r=this.hls.levels[t.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const r=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,r.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&le(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,r=this.getMaxLevel(e.length-1);r!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const r=t.filter((n,s)=>this.isLevelAllowed(n)&&s<=e);return this.clientRect=null,Ra.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,!t.width&&!t.height&&(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(r=>e.bitrate===r.bitrate&&e.width===r.width&&e.height===r.height)}static getMaxLevelByMediaSize(e,t,r){if(!(e!=null&&e.length))return-1;const n=(c,A)=>A?c.width!==A.width||c.height!==A.height:!0;let s=e.length-1;const o=Math.max(t,r);for(let c=0;c<e.length;c+=1){const A=e[c];if((A.width>=o||A.height>=o)&&n(A,e[c+1])){s=c;break}}return s}}const Oa={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},Gl={HLS:"h"},rl={OBJECT:"CMCD-Object",REQUEST:"CMCD-Request",SESSION:"CMCD-Session",STATUS:"CMCD-Status"},Qu={[rl.OBJECT]:["br","d","ot","tb"],[rl.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[rl.SESSION]:["cid","pr","sf","sid","st","v"],[rl.STATUS]:["bs","rtp"]};class Yo{constructor(e,t){Array.isArray(e)&&(e=e.map(r=>r instanceof Yo?r:new Yo(r))),this.value=e,this.params=t}}const ju="Dict";function _u(i){return Array.isArray(i)?JSON.stringify(i):i instanceof Map?"Map{}":i instanceof Set?"Set{}":typeof i=="object"?JSON.stringify(i):String(i)}function Nl(i,e,t,r){return new Error(`failed to ${i} "${_u(e)}" as ${t}`,{cause:r})}function to(i,e,t){return Nl("serialize",i,e,t)}class Vl{constructor(e){this.description=e}}const kl="Bare Item",vo="Boolean";function oo(i){if(typeof i!="boolean")throw to(i,vo);return i?"?1":"?0"}const oc="Byte Sequence";function $u(i){if(ArrayBuffer.isView(i)===!1)throw to(i,oc);return`:${mn(i)}:`}const ms="Integer";function lu(i){return i<-999999999999999||999999999999999<i}function uu(i){if(lu(i))throw to(i,ms);return i.toString()}function Xo(i){return`@${uu(i.getTime()/1e3)}`}const Cu="Decimal";function Su(i){const e=Gn(i,3);if(Math.floor(Math.abs(e)).toString().length>12)throw to(i,Cu);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Wl="String",Yl=/[\x00-\x1f\x7f]+/;function lc(i){if(Yl.test(i))throw to(i,Wl);return`"${i.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function cu(i){return i.description||i.toString().slice(7,-1)}const Au="Token";function Ba(i){const e=cu(i);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw to(e,Au);return e}function Bo(i){switch(typeof i){case"number":if(!le(i))throw to(i,kl);return Number.isInteger(i)?uu(i):Su(i);case"string":return lc(i);case"symbol":return Ba(i);case"boolean":return oo(i);case"object":if(i instanceof Date)return Xo(i);if(i instanceof Uint8Array)return $u(i);if(i instanceof Vl)return Ba(i);default:throw to(i,kl)}}const Sl="Key";function Bu(i){if(/^[a-z*][a-z0-9\-_.*]*$/.test(i)===!1)throw to(i,Sl);return i}function ws(i){return i==null?"":Object.entries(i).map(([e,t])=>t===!0?`;${Bu(e)}`:`;${Bu(e)}=${Bo(t)}`).join("")}function Hs(i){return i instanceof Yo?`${Bo(i.value)}${ws(i.params)}`:Bo(i)}function lo(i){return`(${i.value.map(Hs).join(" ")})${ws(i.params)}`}function nl(i,e={whitespace:!0}){if(typeof i!="object")throw to(i,ju);const t=i instanceof Map?i.entries():Object.entries(i),r=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([n,s])=>{s instanceof Yo||(s=new Yo(s));let o=Bu(n);return s.value===!0?o+=ws(s.params):(o+="=",Array.isArray(s.value)?o+=lo(s):o+=Hs(s)),o}).join(`,${r}`)}function il(i,e){return nl(i,e)}function Iu(i){return i==="ot"||i==="sf"||i==="st"}function du(i){return typeof i=="number"?le(i):i!=null&&i!==""&&i!==!1}const Io=i=>Math.round(i),sl=(i,e)=>(e!=null&&e.baseUrl&&(i=Jr(i,e.baseUrl)),encodeURIComponent(i)),Ml=i=>Io(i/100)*100,Xl={br:Io,d:Io,bl:Ml,dl:Ml,mtp:Ml,nor:sl,rtp:Ml,tb:Io};function ml(i,e){const t={};if(i==null||typeof i!="object")return t;const r=Object.keys(i).sort(),n=v({},Xl,e==null?void 0:e.formatters),s=e==null?void 0:e.filter;return r.forEach(o=>{if(s!=null&&s(o))return;let c=i[o];const A=n[o];A&&(c=A(c,e)),!(o==="v"&&c===1)&&(o=="pr"&&c===1||du(c)&&(Iu(o)&&typeof c=="string"&&(c=new Vl(c)),t[o]=c))}),t}function Tu(i,e={}){return i?il(ml(i,e),v({whitespace:!1},e)):""}function fu(i,e={}){const t={};if(!i)return t;const r=Object.entries(i),n=Object.entries(Qu).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),s=r.reduce((o,c)=>{var A,f;const[M,a]=c,u=((A=n.find(w=>w[1].includes(M)))===null||A===void 0?void 0:A[0])||rl.REQUEST;return(f=o[u])!==null&&f!==void 0||(o[u]={}),o[u][M]=a,o},{});return Object.entries(s).reduce((o,[c,A])=>(o[c]=Tu(A,e),o),t)}function uc(i,e,t){return v(i,fu(e,t))}const Hu="CMCD";function Oc(i,e={}){if(!i)return"";const t=Tu(i,e);return`${Hu}=${encodeURIComponent(t)}`}const Ku=/CMCD=[^&#]+/;function cc(i,e,t){const r=Oc(e,t);if(!r)return i;if(Ku.test(i))return i.replace(Ku,r);const n=i.includes("?")?"&":"?";return`${i}${n}${r}`}class Du{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=n=>{try{this.apply(n,{ot:Oa.MANIFEST,su:!this.initialized})}catch(s){this.hls.logger.warn("Could not generate manifest CMCD data.",s)}},this.applyFragmentData=n=>{try{const{frag:s,part:o}=n,c=this.hls.levels[s.level],A=this.getObjectType(s),f={d:(o||s).duration*1e3,ot:A};(A===Oa.VIDEO||A===Oa.AUDIO||A==Oa.MUXED)&&(f.br=c.bitrate/1e3,f.tb=this.getTopBandwidth(A)/1e3,f.bl=this.getBufferLength(A));const M=o?this.getNextPart(o):this.getNextFrag(s);M!=null&&M.url&&M.url!==s.url&&(f.nor=M.url),this.apply(n,f)}catch(s){this.hls.logger.warn("Could not generate segment CMCD data.",s)}},this.hls=e;const t=this.config=e.config,{cmcd:r}=t;r!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||e.sessionId,this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHED,this.onMediaDetached,this),e.on(g.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHED,this.onMediaDetached,this),e.off(g.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var r,n;this.audioBuffer=(r=t.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(n=t.tracks.video)==null?void 0:n.buffer}createData(){var e;return{v:1,sf:Gl.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){v(t,this.createData());const r=t.ot===Oa.INIT||t.ot===Oa.VIDEO||t.ot===Oa.MUXED;this.starved&&r&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:n}=this;n&&(t=Object.keys(t).reduce((o,c)=>(n.includes(c)&&(o[c]=t[c]),o),{}));const s={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),uc(e.headers,t,s)):e.url=cc(e.url,t,s)}getNextFrag(e){var t;const r=(t=this.hls.levels[e.level])==null?void 0:t.details;if(r){const n=e.sn-r.startSN;return r.fragments[n+1]}}getNextPart(e){var t,r;const{index:n,fragment:s}=e,o=(t=this.hls.levels[s.level])==null||(r=t.details)==null?void 0:r.partList;if(o){const{sn:c}=s;for(let A=o.length-1;A>=0;A--){const f=o[A];if(f.index===n&&f.fragment.sn===c)return o[A+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Oa.TIMED_TEXT;if(e.sn==="initSegment")return Oa.INIT;if(t==="audio")return Oa.AUDIO;if(t==="main")return this.hls.audioTracks.length?Oa.VIDEO:Oa.MUXED}getTopBandwidth(e){let t=0,r;const n=this.hls;if(e===Oa.AUDIO)r=n.audioTracks;else{const s=n.maxAutoLevel,o=s>-1?s+1:n.levels.length;r=n.levels.slice(0,o)}for(const s of r)s.bitrate>t&&(t=s.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.media,r=e===Oa.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:Ti.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,r=e||this.config.loader;return class{constructor(s){this.loader=void 0,this.loader=new r(s)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(s,o,c){t(s),this.loader.load(s,o,c)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,r=e||this.config.loader;return class{constructor(s){this.loader=void 0,this.loader=new r(s)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(s,o,c){t(s),this.loader.load(s,o,c)}}}}const Jl=3e5;class Ac extends z{constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(r=>r!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:r}=t;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:r}=t;if((r==null?void 0:r.action)===yn.SendAlternateToPenaltyBox&&r.flags===Yt.MoveAllAlternatesMatchingHost){const n=this.levels;let s=this._pathwayPriority,o=this.pathwayId;if(t.context){const{groupId:c,pathwayId:A,type:f}=t.context;c&&n?o=this.getPathwayForGroupId(c,f,o):A&&(o=A)}o in this.penalizedPathways||(this.penalizedPathways[o]=performance.now()),!s&&n&&(s=this.pathways()),s&&s.length>1&&(this.updatePathwayPriority(s),r.resolved=this.pathwayId!==o),r.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${o} levels: ${n&&n.length} priorities: ${ln(s)} penalized: ${ln(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const r=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),t=this.getLevelsForPathway(r),this.pathwayId=r}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this._pathwayPriority=e;let t;const r=this.penalizedPathways,n=performance.now();Object.keys(r).forEach(s=>{n-r[s]>Jl&&delete r[s]});for(let s=0;s<e.length;s++){const o=e[s];if(o in r)continue;if(o===this.pathwayId)return;const c=this.hls.nextLoadLevel,A=this.hls.levels[c];if(t=this.getLevelsForPathway(o),t.length>0){this.log(`Setting Pathway to "${o}"`),this.pathwayId=o,Go(t),this.hls.trigger(g.LEVELS_UPDATED,{levels:t});const f=this.hls.levels[c];A&&f&&this.levels&&(f.attrs["STABLE-VARIANT-ID"]!==A.attrs["STABLE-VARIANT-ID"]&&f.bitrate!==A.bitrate&&this.log(`Unstable Pathways change from bitrate ${A.bitrate} to ${f.bitrate}`),this.hls.nextLoadLevel=c);break}}}getPathwayForGroupId(e,t,r){const n=this.getLevelsForPathway(r).concat(this.levels||[]);for(let s=0;s<n.length;s++)if(t===R.AUDIO_TRACK&&n[s].hasAudioGroup(e)||t===R.SUBTITLE_TRACK&&n[s].hasSubtitleGroup(e))return n[s].pathwayId;return r}clonePathways(e){const t=this.levels;if(!t)return;const r={},n={};e.forEach(s=>{const{ID:o,"BASE-ID":c,"URI-REPLACEMENT":A}=s;if(t.some(M=>M.pathwayId===o))return;const f=this.getLevelsForPathway(c).map(M=>{const a=new Vi(M.attrs);a["PATHWAY-ID"]=o;const u=a.AUDIO&&`${a.AUDIO}_clone_${o}`,w=a.SUBTITLES&&`${a.SUBTITLES}_clone_${o}`;u&&(r[a.AUDIO]=u,a.AUDIO=u),w&&(n[a.SUBTITLES]=w,a.SUBTITLES=w);const B=Lu(M.uri,a["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",A),Y=new vn({attrs:a,audioCodec:M.audioCodec,bitrate:M.bitrate,height:M.height,name:M.name,url:B,videoCodec:M.videoCodec,width:M.width});if(M.audioGroups)for(let oe=1;oe<M.audioGroups.length;oe++)Y.addGroupId("audio",`${M.audioGroups[oe]}_clone_${o}`);if(M.subtitleGroups)for(let oe=1;oe<M.subtitleGroups.length;oe++)Y.addGroupId("text",`${M.subtitleGroups[oe]}_clone_${o}`);return Y});t.push(...f),Fu(this.audioTracks,r,A,o),Fu(this.subtitleTracks,n,A,o)})}loadSteeringManifest(e){const t=this.hls.config,r=t.loader;this.loader&&this.loader.destroy(),this.loader=new r(t);let n;try{n=new self.URL(e)}catch(M){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(n.protocol!=="data:"){const M=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;n.searchParams.set("_HLS_pathway",this.pathwayId),n.searchParams.set("_HLS_throughput",""+M)}const s={responseType:"json",url:n.href},o=t.steeringManifestLoadPolicy.default,c=o.errorRetry||o.timeoutRetry||{},A={loadPolicy:o,timeout:o.maxLoadTimeMs,maxRetry:c.maxNumRetry||0,retryDelay:c.retryDelayMs||0,maxRetryDelay:c.maxRetryDelayMs||0},f={onSuccess:(M,a,u,w)=>{this.log(`Loaded steering manifest: "${n}"`);const B=M.data;if((B==null?void 0:B.VERSION)!==1){this.log(`Steering VERSION ${B.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=B.TTL;const{"RELOAD-URI":Y,"PATHWAY-CLONES":oe,"PATHWAY-PRIORITY":xe}=B;if(Y)try{this.uri=new self.URL(Y,n).href}catch(Me){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Y}`);return}this.scheduleRefresh(this.uri||u.url),oe&&this.clonePathways(oe);const Ne={steeringManifest:B,url:n.toString()};this.hls.trigger(g.STEERING_MANIFEST_LOADED,Ne),xe&&this.updatePathwayPriority(xe)},onError:(M,a,u,w)=>{if(this.log(`Error loading steering manifest: ${M.code} ${M.text} (${a.url})`),this.stopLoad(),M.code===410){this.enabled=!1,this.log(`Steering manifest ${a.url} no longer available`);return}let B=this.timeToLoad*1e3;if(M.code===429){const Y=this.loader;if(typeof(Y==null?void 0:Y.getResponseHeader)=="function"){const oe=Y.getResponseHeader("Retry-After");oe&&(B=parseFloat(oe)*1e3)}this.log(`Steering manifest ${a.url} rate limited`);return}this.scheduleRefresh(this.uri||a.url,B)},onTimeout:(M,a,u)=>{this.log(`Timeout loading steering manifest (${a.url})`),this.scheduleRefresh(this.uri||a.url)}};this.log(`Requesting steering manifest: ${n}`),this.loader.load(s,A,f)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const n=(r=this.hls)==null?void 0:r.media;if(n&&!n.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Fu(i,e,t,r){i&&Object.keys(e).forEach(n=>{const s=i.filter(o=>o.groupId===n).map(o=>{const c=v({},o);return c.details=void 0,c.attrs=new Vi(c.attrs),c.url=c.attrs.URI=Lu(o.url,o.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),c.groupId=c.attrs["GROUP-ID"]=e[n],c.attrs["PATHWAY-ID"]=r,c});i.push(...s)})}function Lu(i,e,t,r){const{HOST:n,PARAMS:s,[t]:o}=r;let c;e&&(c=o==null?void 0:o[e],c&&(i=c));const A=new self.URL(i);return n&&!c&&(A.host=n),s&&Object.keys(s).sort().forEach(f=>{f&&A.searchParams.set(f,s[f])}),A.href}class ql extends z{constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=ql.CDMCleanupPromise?[ql.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:r,initData:n}=t,s=`"${t.type}" event: init data type: "${r}"`;if(this.debug(s),n!==null){if(!this.keyFormatPromise){let o=Object.keys(this.keySystemAccessPromises);o.length||(o=li(this.config));const c=o.map(Xs).filter(A=>!!A);this.keyFormatPromise=this.getKeyFormatPromise(c)}this.keyFormatPromise.then(o=>{const c=Za(o);let A,f;if(r==="sinf"){if(c!==Qi.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${c}`);return}const B=fr(new Uint8Array(n));try{const Y=vi(JSON.parse(B).sinf),oe=Te(Y);if(!oe)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");A=new Uint8Array(oe.subarray(8,24)),f=Qi.FAIRPLAY}catch(Y){this.warn(`${s} Failed to parse sinf: ${Y}`);return}}else{if(c!==Qi.WIDEVINE&&c!==Qi.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${c}`);return}const B=Vt(n),Y=B.filter(xe=>!!xe.systemId&&ua(xe.systemId)===c);Y.length>1&&this.warn(`${s} Using first of ${Y.length} pssh found for selected key-system ${c}`);const oe=Y[0];if(!oe){B.length===0||B.some(xe=>!xe.systemId)?this.warn(`${s} contains incomplete or invalid pssh data`):this.log(`ignoring ${s} for ${B.map(xe=>ua(xe.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(f=ua(oe.systemId),oe.version===0&&oe.data)if(f===Qi.WIDEVINE){const xe=oe.data.length-22;A=new Uint8Array(oe.data.subarray(xe,xe+16))}else f===Qi.PLAYREADY&&(A=As(oe.data))}if(!f||!A)return;const M=be.hexDump(A),{keyIdToKeySessionPromise:a,mediaKeySessions:u}=this;let w=a[M];for(let B=0;B<u.length;B++){const Y=u[B],oe=Y.decryptdata;if(!oe.keyId)continue;const xe=be.hexDump(oe.keyId);if(M===xe||oe.uri.replace(/-/g,"").indexOf(M)!==-1){if(w=a[xe],oe.pssh)break;delete a[xe],oe.pssh=new Uint8Array(n),oe.keyId=A,w=a[M]=w.then(()=>this.generateRequestWithPreferredKeySession(Y,r,n,"encrypted-event-key-match")),w.catch(Ne=>this.handleError(Ne));break}}if(!w){if(f!==c){this.log(`Ignoring "${t.type}" event with ${f} init data for selected key-system ${c}`);return}w=a[M]=this.getKeySystemSelectionPromise([f]).then(({keySystem:B,mediaKeys:Y})=>{var oe;this.throwIfDestroyed();const xe=new ea("ISO-23001-7",M,(oe=Xs(B))!=null?oe:"");return xe.pssh=new Uint8Array(n),xe.keyId=A,this.attemptSetMediaKeys(B,Y).then(()=>{this.throwIfDestroyed();const Ne=this.createMediaKeySessionContext({decryptdata:xe,keySystem:B,mediaKeys:Y});return this.generateRequestWithPreferredKeySession(Ne,r,n,"encrypted-event-no-match")})}),w.catch(B=>this.handleError(B))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){const e=this.media;this.unregisterListeners(),this.onMediaDetached(),this._clear(e);const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(g.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(g.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(g.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(g.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(g.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:r}=this.config,n=t[e];if(n)return n.licenseUrl;if(e===Qi.WIDEVINE&&r)return r}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,r=t[e];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,r=(o,c,A)=>!!o&&A.indexOf(o)===c,n=t.map(o=>o.audioCodec).filter(r),s=t.map(o=>o.videoCodec).filter(r);return n.length+s.length===0&&s.push("avc1.42e01e"),new Promise((o,c)=>{const A=f=>{const M=f.shift();this.getMediaKeysPromise(M,n,s).then(a=>o({keySystem:M,mediaKeys:a})).catch(a=>{f.length?A(f):a instanceof yo?c(a):c(new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_NO_ACCESS,error:a,fatal:!0},a.message))})};A(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let n=`Configured requestMediaKeySystemAccess is not a function ${r}`;return oi===null&&self.location.protocol==="http:"&&(n=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(n))}return r(e,t)}getMediaKeysPromise(e,t,r){const n=Ji(e,t,r,this.config.drmSystemOptions),s=this.keySystemAccessPromises[e];let o=s==null?void 0:s.keySystemAccess;if(!o){this.log(`Requesting encrypted media "${e}" key-system access with config: ${ln(n)}`),o=this.requestMediaKeySystemAccess(e,n);const c=this.keySystemAccessPromises[e]={keySystemAccess:o};return o.catch(A=>{this.log(`Failed to obtain access to key-system "${e}": ${A}`)}),o.then(A=>{this.log(`Access for key-system "${A.keySystem}" obtained`);const f=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),c.mediaKeys=A.createMediaKeys().then(M=>(this.log(`Media-keys created for "${e}"`),f.then(a=>a?this.setMediaKeysServerCertificate(M,e,a):M))),c.mediaKeys.catch(M=>{this.error(`Failed to create media-keys for "${e}"}: ${M}`)}),c.mediaKeys})}return o.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:r}){this.log(`Creating key-system session "${t}" keyId: ${be.hexDump(e.keyId||[])}`);const n=r.createSession(),s={decryptdata:e,keySystem:t,mediaKeys:r,mediaKeysSession:n,keyStatus:"status-pending"};return this.mediaKeySessions.push(s),s}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const r=this.createMediaKeySessionContext(e),n=this.getKeyIdString(t),s="cenc";this.keyIdToKeySessionPromise[n]=this.generateRequestWithPreferredKeySession(r,s,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return be.hexDump(e.keyId)}updateKeySession(e,t){var r;const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyID ${be.hexDump(((r=e.decryptdata)==null?void 0:r.keyId)||[])}
|
|
|
} (data length: ${t&&t.byteLength})`),n.update(t)}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){return new Promise((t,r)=>{const n=li(this.config),s=e.map(Za).filter(o=>!!o&&n.indexOf(o)!==-1);return this.getKeySystemSelectionPromise(s).then(({keySystem:o})=>{const c=Xs(o);c?t(c):r(new Error(`Unable to find format for key-system "${o}"`))}).catch(r)})}loadKey(e){const t=e.keyInfo.decryptdata,r=this.getKeyIdString(t),n=`(keyId: ${r} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${n}`);let s=this.keyIdToKeySessionPromise[r];return s||(s=this.getKeySystemForKeyPromise(t).then(({keySystem:c,mediaKeys:A})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${n}`),this.attemptSetMediaKeys(c,A).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:c,mediaKeys:A,decryptdata:t}))))),(this.keyIdToKeySessionPromise[r]=s.then(c=>{const A="cenc",f=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(c,A,f,"playlist-key")})).catch(c=>this.handleError(c))),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof yo?this.hls.trigger(g.ERROR,e.data):this.hls.trigger(g.ERROR,{type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){const n=Za(e.keyFormat),s=n?[n]:li(this.config);return this.attemptKeySystemAccess(s)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=li(this.config)),e.length===0)throw new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${ln({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const n=Promise.all(r).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(n),n.then(()=>{this.log(`Media-keys set for "${e}"`),r.push(n),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(s=>r.indexOf(s)===-1)})}generateRequestWithPreferredKeySession(e,t,r,n){var s,o;const c=(s=this.config.drmSystems)==null||(o=s[e.keySystem])==null?void 0:o.generateRequest;if(c)try{const B=c.call(this.hls,t,r,e);if(!B)throw new Error("Invalid response from configured generateRequest filter");t=B.initDataType,r=B.initData?B.initData:null,e.decryptdata.pssh=r?new Uint8Array(r):null}catch(B){var A;if(this.warn(B.message),(A=this.hls)!=null&&A.config.debug)throw B}if(r===null)return this.log(`Skipping key-session request for "${n}" (no initData)`),Promise.resolve(e);const f=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${n}": ${f} (init data type: ${t} length: ${r?r.byteLength:null})`);const M=new au,a=e._onmessage=B=>{const Y=e.mediaKeysSession;if(!Y){M.emit("error",new Error("invalid state"));return}const{messageType:oe,message:xe}=B;this.log(`"${oe}" message event for session "${Y.sessionId}" message size: ${xe.byteLength}`),oe==="license-request"||oe==="license-renewal"?this.renewLicense(e,xe).catch(Ne=>{M.eventNames().length?M.emit("error",Ne):this.handleError(Ne)}):oe==="license-release"?e.keySystem===Qi.FAIRPLAY&&(this.updateKeySession(e,Yi("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${oe}"`)},u=e._onkeystatuseschange=B=>{if(!e.mediaKeysSession){M.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const oe=e.keyStatus;M.emit("keyStatus",oe),oe==="expired"&&(this.warn(`${e.keySystem} expired for key ${f}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",a),e.mediaKeysSession.addEventListener("keystatuseschange",u);const w=new Promise((B,Y)=>{M.on("error",Y),M.on("keyStatus",oe=>{oe.startsWith("usable")?B():oe==="output-restricted"?Y(new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):oe==="internal-error"?Y(new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${oe}"`)):oe==="expired"?Y(new Error("key expired while generating request")):this.warn(`unhandled key status change "${oe}"`)})});return e.mediaKeysSession.generateRequest(t,r).then(()=>{var B;this.log(`Request generated for key-session "${(B=e.mediaKeysSession)==null?void 0:B.sessionId}" keyId: ${f}`)}).catch(B=>{throw new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_NO_SESSION,error:B,fatal:!1},`Error generating key-session request: ${B}`)}).then(()=>w).catch(B=>{throw M.removeAllListeners(),this.removeSession(e),B}).then(()=>(M.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,r)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${be.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${be.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,r=t.loader,n=new r(t),s=this.getServerCertificateUrl(e);return s?(this.log(`Fetching server certificate for "${e}"`),new Promise((o,c)=>{const A={responseType:"arraybuffer",url:s},f=t.certLoadPolicy.default,M={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},a={onSuccess:(u,w,B,Y)=>{o(u.data)},onError:(u,w,B,Y)=>{c(new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:B,response:b({url:A.url,data:void 0},u)},`"${e}" certificate request failed (${s}). Status: ${u.code} (${u.text})`))},onTimeout:(u,w,B)=>{c(new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:B,response:{url:A.url,data:void 0}},`"${e}" certificate request timed out (${s})`))},onAbort:(u,w,B)=>{c(new Error("aborted"))}};n.load(A,M,a)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,r){return new Promise((n,s)=>{e.setServerCertificate(r).then(o=>{this.log(`setServerCertificate ${o?"success":"not supported by CDM"} (${r==null?void 0:r.byteLength}) on "${t}"`),n(e)}).catch(o=>{s(new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:o,fatal:!0},o.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(r=>this.updateKeySession(e,new Uint8Array(r)).catch(n=>{throw new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:n,fatal:!0},n.message)}))}unpackPlayReadyKeyMessage(e,t){const r=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!r.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const n=new DOMParser().parseFromString(r,"application/xml"),s=n.querySelectorAll("HttpHeader");if(s.length>0){let M;for(let a=0,u=s.length;a<u;a++){var o,c;M=s[a];const w=(o=M.querySelector("name"))==null?void 0:o.textContent,B=(c=M.querySelector("value"))==null?void 0:c.textContent;w&&B&&e.setRequestHeader(w,B)}}const A=n.querySelector("Challenge"),f=A==null?void 0:A.textContent;if(!f)throw new Error("Cannot find <Challenge> in key message");return Yi(atob(f))}setupLicenseXHR(e,t,r,n){const s=this.config.licenseXhrSetup;return s?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return s.call(this.hls,e,t,r,n)}).catch(o=>{if(!r.decryptdata)throw o;return e.open("POST",t,!0),s.call(this.hls,e,t,r,n)}).then(o=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:o||n})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:n}))}requestLicense(e,t){const r=this.config.keyLoadPolicy.default;return new Promise((n,s)=>{const o=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${o}`);const c=new XMLHttpRequest;c.responseType="arraybuffer",c.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return s(new Error("invalid state"));if(c.readyState===4)if(c.status===200){this._requestLicenseFailureCount=0;let A=c.response;this.log(`License received ${A instanceof ArrayBuffer?A.byteLength:A}`);const f=this.config.licenseResponseCallback;if(f)try{A=f.call(this.hls,c,o,e)}catch(M){this.error(M)}n(A)}else{const A=r.errorRetry,f=A?A.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>f||c.status>=400&&c.status<500)s(new yo({type:Re.KEY_SYSTEM_ERROR,details:K.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:c,response:{url:o,data:void 0,code:c.status,text:c.statusText}},`License Request XHR failed (${o}). Status: ${c.status} (${c.statusText})`));else{const M=f-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${M} attempts left`),this.requestLicense(e,t).then(n,s)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=c,this.setupLicenseXHR(c,o,e,t).then(({xhr:A,licenseChallenge:f})=>{e.keySystem==Qi.PLAYREADY&&(f=this.unpackPlayReadyKeyMessage(A,f)),A.send(f)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const r=t.media;this.media=r,r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null)}_clear(e){var t;const r=this.mediaKeySessions;this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},ea.clearKeyUriToKeyIdMap();const n=r.length;ql.CDMCleanupPromise=Promise.all(r.map(s=>this.removeSession(s)).concat(e==null||(t=e.setMediaKeys(null))==null?void 0:t.catch(s=>{var o;this.log(`Could not clear media keys: ${s}`),(o=this.hls)==null||o.trigger(g.ERROR,{type:Re.OTHER_ERROR,details:K.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${s}`)})}))).then(()=>{n&&(this.log("finished closing key sessions and clearing media keys"),r.length=0)}).catch(s=>{var o;this.log(`Could not close sessions and clear media keys: ${s}`),(o=this.hls)==null||o.trigger(g.ERROR,{type:Re.OTHER_ERROR,details:K.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${s}`)})})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=t.reduce((n,s)=>(n.indexOf(s.keyFormat)===-1&&n.push(s.keyFormat),n),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:r}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const n=this.mediaKeySessions.indexOf(e);return n>-1&&this.mediaKeySessions.splice(n,1),t.remove().catch(s=>{var o;this.log(`Could not remove session: ${s}`),(o=this.hls)==null||o.trigger(g.ERROR,{type:Re.OTHER_ERROR,details:K.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${s}`)})}).then(()=>t.close()).catch(s=>{var o;this.log(`Could not close session: ${s}`),(o=this.hls)==null||o.trigger(g.ERROR,{type:Re.OTHER_ERROR,details:K.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${s}`)})})}}}ql.CDMCleanupPromise=void 0;class yo extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}class hu{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(g.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(g.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const r=this.hls.config;if(r.capLevelOnFPSDrop){const n=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=n,n&&typeof n.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,r){const n=performance.now();if(t){if(this.lastTime){const s=n-this.lastTime,o=r-this.lastDroppedFrames,c=t-this.lastDecodedFrames,A=1e3*o/s,f=this.hls;if(f.trigger(g.FPS_DROP,{currentDropped:o,currentDecoded:c,totalDroppedFrames:r}),A>0&&o>f.config.fpsDroppedMonitoringThreshold*c){let M=f.currentLevel;f.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+M),M>0&&(f.autoLevelCapping===-1||f.autoLevelCapping>=M)&&(M=M-1,f.trigger(g.FPS_DROP_LEVEL_CAPPING,{level:M,droppedLevel:f.currentLevel}),f.autoLevelCapping=M,this.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=r,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}function zu(i,e){let t;try{t=new Event("addtrack")}catch(r){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=i,e.dispatchEvent(t)}function gl(i,e){const t=i.mode;if(t==="disabled"&&(i.mode="hidden"),i.cues&&!i.cues.getCueById(e.id))try{if(i.addCue(e),!i.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(r){q.debug(`[texttrack-utils]: ${r}`);try{const n=new self.TextTrackCue(e.startTime,e.endTime,e.text);n.id=e.id,i.addCue(n)}catch(n){q.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${n}`)}}t==="disabled"&&(i.mode=t)}function Bl(i,e){const t=i.mode;if(t==="disabled"&&(i.mode="hidden"),i.cues)for(let r=i.cues.length;r--;)e&&i.cues[r].removeEventListener("enter",e),i.removeCue(i.cues[r]);t==="disabled"&&(i.mode=t)}function Ae(i,e,t,r){const n=i.mode;if(n==="disabled"&&(i.mode="hidden"),i.cues&&i.cues.length>0){const s=ur(i.cues,e,t);for(let o=0;o<s.length;o++)(!r||r(s[o]))&&i.removeCue(s[o])}n==="disabled"&&(i.mode=n)}function ht(i,e){if(e<=i[0].startTime)return 0;const t=i.length-1;if(e>i[t].endTime)return-1;let r=0,n=t,s;for(;r<=n;)if(s=Math.floor((n+r)/2),e<i[s].startTime)n=s-1;else if(e>i[s].startTime&&r<t)r=s+1;else return s;return i[r].startTime-e<e-i[n].startTime?r:n}function ur(i,e,t){const r=[],n=ht(i,e);if(n>-1)for(let s=n,o=i.length;s<o;s++){const c=i[s];if(c.startTime>=e&&c.endTime<=t)r.push(c);else if(c.startTime>t)return r}return r}function Er(i){const e=[];for(let t=0;t<i.length;t++){const r=i[t];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&e.push(i[t])}return e}class Gr extends Ns{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const r=Er(this.media.textTracks);for(let s=0;s<r.length;s++)if(r[s].mode==="hidden")t=r[s];else if(r[s].mode==="showing"){t=r[s];break}const n=this.findTrackForTextTrack(t);this.subtitleTrack!==n&&this.setSubtitleTrack(n)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(g.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVEL_LOADING,this.onLevelLoading,this),e.off(g.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(g.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const r=this.media;if(!r)return;const n=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,n)return;Er(r.textTracks).forEach(o=>{Bl(o)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:r,groupId:n,details:s}=t,o=this.tracksInGroup[r];if(!o||o.groupId!==n){this.warn(`Subtitle track with id:${r} and group:${n} not found in active group ${o==null?void 0:o.groupId}`);return}const c=o.details;o.details=t.details,this.log(`Subtitle track ${r} "${o.name}" lang:${o.lang} group:${n} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,c)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const r=t.subtitleGroups||null,n=this.groupIds;let s=this.currentTrack;if(!r||(n==null?void 0:n.length)!==(r==null?void 0:r.length)||r!=null&&r.some(o=>(n==null?void 0:n.indexOf(o))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const o=this.tracks.filter(M=>!r||r.indexOf(M.groupId)!==-1);if(o.length)this.selectDefaultTrack&&!o.some(M=>M.default)&&(this.selectDefaultTrack=!1),o.forEach((M,a)=>{M.id=a});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=o;const c=this.hls.config.subtitlePreference;if(!s&&c){this.selectDefaultTrack=!1;const M=pr(c,o);if(M>-1)s=o[M];else{const a=pr(c,this.tracks);s=this.tracks[a]}}let A=this.findTrackId(s);A===-1&&s&&(A=this.findTrackId(null));const f={subtitleTracks:o};this.log(`Updating subtitle tracks, ${o.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(g.SUBTITLE_TRACKS_UPDATED,f),A!==-1&&this.trackId===-1&&this.setSubtitleTrack(A)}}findTrackId(e){const t=this.tracksInGroup,r=this.selectDefaultTrack;for(let n=0;n<t.length;n++){const s=t[n];if(!(r&&!s.default||!r&&!e)&&(!e||Fr(s,e)))return n}if(e){for(let n=0;n<t.length;n++){const s=t[n];if(Co(e.attrs,s.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const s=t[n];if(Co(e.attrs,s.attrs,["LANGUAGE"]))return n}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const n=t[r];if(Wo(n,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===R.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const r=this.currentTrack;if(r&&Fr(e,r))return r;const n=pr(e,this.tracksInGroup);if(n>-1){const s=this.tracksInGroup[n];return this.setSubtitleTrack(n),s}else{if(r)return null;{const s=pr(e,t);if(s>-1)return t[s]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=e.id,n=e.groupId,s=this.getUrlWithDirectives(e.url,t),o=e.details,c=o==null?void 0:o.age;this.log(`Loading subtitle ${r} "${e.name}" lang:${e.lang} group:${n}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${c&&o.live?" age "+c.toFixed(1)+(o.type?" "+o.type||0:""):""} ${s}`),this.hls.trigger(g.SUBTITLE_TRACK_LOADING,{url:s,id:r,groupId:n,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=Er(e.textTracks),r=this.currentTrack;let n;if(r&&(n=t.filter(s=>Wo(r,s))[0],n||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(t).forEach(s=>{s.mode!=="disabled"&&s!==n&&(s.mode="disabled")}),n){const s=this.subtitleDisplay?"showing":"hidden";n.mode!==s&&(n.mode=s)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!le(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,n=t[e]||null;if(this.trackId=e,this.currentTrack=n,this.toggleTrackModes(),!n){this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:e});return}const s=!!n.details&&!n.details.live;if(e===this.trackId&&n===r&&s)return;this.log(`Switching to subtitle-track ${e}`+(n?` "${n.name}" lang:${n.lang} group:${n.groupId}`:""));const{id:o,groupId:c="",name:A,type:f,url:M}=n;this.hls.trigger(g.SUBTITLE_TRACK_SWITCH,{id:o,groupId:c,name:A,type:f,url:M});const a=this.switchParams(n.url,r==null?void 0:r.details,n.details);this.loadPlaylist(a)}}function Bn(i){let e=5381,t=i.length;for(;t;)e=e*33^i.charCodeAt(--t);return(e>>>0).toString()}const Jn=.025;let Pi=function(i){return i[i.Point=0]="Point",i[i.Range=1]="Range",i}({});function ts(i,e,t){return`${i.identifier}-${t+1}-${Bn(e)}`}class Ss{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){if(e>=this.assetList.length)return!0;const t=this.playoutLimit;return e<=0||isNaN(t)?!1:this.assetList[e].startOffset>t}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return xs(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,r=xs(t,e);return t-r<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=le(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return xs(e,t)}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<Jn))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?Pi.Range:Pi.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return Ia(this)}}function xs(i,e){return i-e.start<e.duration/2&&!(Math.abs(i-(e.start+e.duration))<Jn)?e.start:e.start+e.duration}function Zs(i,e,t){const r=new self.URL(i,t);return r.protocol!=="data:"&&r.searchParams.set("_HLS_primary_id",e),r}function Ia(i){return`["${i.identifier}" ${i.cue.pre?"<pre>":i.cue.post?"<post>":""}${i.timelineStart.toFixed(2)}-${i.resumeTime.toFixed(2)}]`}function Ta(i){const e=i.timelineStart,t=i.duration||0;return`["${i.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class ro{constructor(e,t,r,n){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{const f=this.interstitial.playoutLimit,M=this.currentTime;this.startOffset+M>=f&&this.hls.trigger(g.PLAYOUT_LIMIT_REACHED,{})};const s=this.hls=new e(t);this.interstitial=r,this.assetItem=n;let o=n.uri;try{o=Zs(o,s.sessionId).href}catch(A){}s.loadSource(o);const c=()=>{this.hasDetails=!0};s.once(g.LEVEL_LOADED,c),s.once(g.AUDIO_TRACK_LOADED,c),s.once(g.SUBTITLE_TRACK_LOADED,c),s.on(g.MEDIA_ATTACHING,(A,{media:f})=>{this.removeMediaListeners(),this.mediaAttached=f,this.interstitial.playoutLimit&&f.addEventListener("timeupdate",this.checkPlayout)})}bufferedInPlaceToEnd(e){var t;if(!this.interstitial.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const r=this.timelineOffset,n=Ti.bufferInfo(e,r,0);return this.getAssetTime(n.end)>=this._bufferedEosTime-.02}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=Ti.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;return e||0}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const r=e-t;if(Math.abs(r)>1/9e4){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,r=this.duration;return Math.min(Math.max(0,e-t),r)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}on(e,t,r){this.hls.on(e,t)}once(e,t,r){this.hls.once(e,t)}off(e,t,r){this.hls.off(e,t)}toString(){var e,t;return`HlsAssetPlayer: ${Ta(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${(t=this.interstitial)!=null&&t.appendInPlace?"append-in-place":""}`}}const uo=.033;class co extends z{constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((r,n)=>e<=n.startOffset&&t>n.startOffset?(delete n.error,r+1):r,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let r=-1;e.nextEvent?r=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(r=this.findEventIndex(e.previousEvent.identifier)+1);const n=this.items;if(n)for(n[r]||(t===void 0&&(t=e.start),r=this.findItemIndexAtTime(t));r>=0&&(s=n[r])!=null&&s.event;){var s;r--}return r}findItemIndexAtTime(e,t){const r=this.items;if(r)for(let n=0;n<r.length;n++){let s=r[n];if(t&&t!=="primary"&&(s=s[t]),e===s.start||e>s.start&&e<s.end)return n}return-1}findJumpRestrictedIndex(e,t){const r=this.items;if(r)for(let n=e;n<=t&&r[n];n++){const s=r[n].event;if(s!=null&&s.restrictions.jump&&!s.appendInPlace)return n}return-1}findEventIndex(e){const t=this.items;if(t)for(let n=t.length;n--;){var r;if(((r=t[n].event)==null?void 0:r.identifier)===e)return n}return-1}findAssetIndex(e,t){const r=e.assetList,n=r.length;if(n>1)for(let s=0;s<n;s++){const o=r[s];if(!o.error){const c=o.timelineStart;if(t===c||t>c&&t<c+(o.duration||0))return s}}return 0}get assetIdAtEnd(){var e,t;const r=(e=this.items)==null||(t=e[this.length-1])==null?void 0:t.event;if(r){const n=r.assetList,s=n[n.length-1];if(s)return s.identifier}return null}parseInterstitialDateRanges(e,t){const r=e.main.details,{dateRanges:n}=r,s=this.events,o=this.parseDateRanges(n,{url:r.url},t),c=Object.keys(n),A=s?s.filter(f=>!c.includes(f.identifier)):[];o.length&&o.sort((f,M)=>{const a=f.cue.pre,u=f.cue.post,w=M.cue.pre,B=M.cue.post;if(a&&!w)return-1;if(w&&!a||u&&!B)return 1;if(B&&!u)return-1;if(!a&&!w&&!u&&!B){const Y=f.startTime,oe=M.startTime;if(Y!==oe)return Y-oe}return f.dateRange.tagOrder-M.dateRange.tagOrder}),this.events=o,A.forEach(f=>{this.removeEvent(f)}),this.updateSchedule(e,A)}updateSchedule(e,t=[]){const r=this.events||[];if(r.length||t.length||this.length<2){const n=this.items,s=this.parseSchedule(r,e);(t.length||(n==null?void 0:n.length)!==s.length||s.some((c,A)=>Math.abs(c.playout.start-n[A].playout.start)>.005||Math.abs(c.playout.end-n[A].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(t,n))}}parseDateRanges(e,t,r){const n=[],s=Object.keys(e);for(let o=0;o<s.length;o++){const c=s[o],A=e[c];if(A.isInterstitial){let f=this.eventMap[c];f?f.setDateRange(A):(f=new Ss(A,t),this.eventMap[c]=f,r===!1&&(f.appendInPlace=r)),n.push(f)}}return n}parseSchedule(e,t){const r=[],n=t.main.details,s=n.live?1/0:n.edge;let o=0;if(e=e.filter(A=>!A.error&&!(A.cue.once&&A.hasPlayed)),e.length){this.resolveOffsets(e,t);let A=0,f=0;if(e.forEach((M,a)=>{const u=M.cue.pre,w=M.cue.post,B=e[a-1]||null,Y=M.appendInPlace,oe=w?s:M.startOffset,xe=M.duration,Ne=M.timelineOccupancy===Pi.Range?xe:0,Me=M.resumptionOffset,We=(B==null?void 0:B.startTime)===oe,ct=oe+M.cumulativeDuration;let xt=Y?ct+xe:oe+Me;if(u||!w&&oe<=0){const Et=f;f+=Ne,M.timelineStart=ct;const qt=o;o+=xe,r.push({event:M,start:ct,end:xt,playout:{start:qt,end:o},integrated:{start:Et,end:f}})}else if(oe<=s){if(!We){const Pt=oe-A;if(Pt>uo){const Gt=A,tr=f;f+=Pt;const Ur=o;o+=Pt;const Wr={previousEvent:e[a-1]||null,nextEvent:M,start:Gt,end:Gt+Pt,playout:{start:Ur,end:o},integrated:{start:tr,end:f}};r.push(Wr)}else Pt>0&&B&&(B.cumulativeDuration+=Pt,r[r.length-1].end=oe)}w&&(xt=ct),M.timelineStart=ct;const Et=f;f+=Ne;const qt=o;o+=xe,r.push({event:M,start:ct,end:xt,playout:{start:qt,end:o},integrated:{start:Et,end:f}})}else return;const wt=M.resumeTime;w||wt>s?A=s:A=wt}),A<s){var c;const M=A,a=f,u=s-A;f+=u;const w=o;o+=u,r.push({previousEvent:((c=r[r.length-1])==null?void 0:c.event)||null,nextEvent:null,start:A,end:M+u,playout:{start:w,end:o},integrated:{start:a,end:f}})}this.setDurations(s,o,f)}else r.push({previousEvent:null,nextEvent:null,start:0,end:s,playout:{start:0,end:s},integrated:{start:0,end:s}}),this.setDurations(s,s,s);return r}setDurations(e,t,r){this.durations={primary:e,playout:t,integrated:r}}resolveOffsets(e,t){const r=t.main.details,n=r.live?1/0:r.edge;let s=0,o=-1;e.forEach((c,A)=>{const f=c.cue.pre,M=c.cue.post,a=f?0:M?n:c.startTime;this.updateAssetDurations(c),o===a?c.cumulativeDuration=s:(s=0,o=a),!M&&c.snapOptions.in&&(c.resumeAnchor=hr(null,r.fragments,c.startOffset+c.resumptionOffset,0,0)||void 0),c.appendInPlace&&!c.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(c,t)||(c.appendInPlace=!1)),!c.appendInPlace&&A+1<e.length&&e[A+1].startTime-e[A].resumeTime<uo&&(e[A+1].appendInPlace=!1,e[A+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${c}`));const w=le(c.resumeOffset)?c.resumeOffset:c.duration;s+=w})}primaryCanResumeInPlaceAt(e,t){const r=e.resumeTime,n=e.startTime+e.resumptionOffset;return Math.abs(r-n)>Jn?(this.log(`"${e.identifier}" resumption ${r} not aligned with estimated timeline end ${n}`),!1):t?!Object.keys(t).some(o=>{const c=t[o].details,A=c.edge;if(r>=A)return this.log(`"${e.identifier}" resumption ${r} past ${o} playlist end ${A}`),!1;const f=hr(null,c.fragments,r);if(!f)return this.log(`"${e.identifier}" resumption ${r} does not align with any fragments in ${o} playlist (${c.fragStart}-${c.fragmentEnd})`),!0;const M=o==="audio"?.175:0;return Math.abs(f.start-r)<Jn+M||Math.abs(f.end-r)<Jn+M?!1:(this.log(`"${e.identifier}" resumption ${r} not aligned with ${o} fragment bounds (${f.start}-${f.end} sn: ${f.sn} cc: ${f.cc})`),!0)}):(this.log(`"${e.identifier}" resumption ${r} can not be aligned with media (none selected)`),!1)}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let r=0,n=!1,s=!1;e.assetList.forEach((o,c)=>{const A=t+r;o.startOffset=r,o.timelineStart=A,n||(n=o.duration===null),s||(s=!!o.error);const f=o.error?0:o.duration||0;r+=f}),n&&!s?e.duration=Math.max(r,e.duration):e.duration=r}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Ao(i){return`[${i.event?'"'+i.event.identifier+'"':"primary"}: ${i.start.toFixed(2)}-${i.end.toFixed(2)}]`}class al{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const r=e.assetListUrl;let n;try{n=Zs(r,this.hls.sessionId,e.baseUrl)}catch(u){const w=this.assignAssetListError(e,K.ASSET_LIST_LOAD_ERROR,u,r);this.hls.trigger(g.ERROR,w);return}t&&n.protocol!=="data:"&&n.searchParams.set("_HLS_start_offset",""+t);const s=this.hls.config,o=s.loader,c=new o(s),A={responseType:"json",url:n.href},f=s.interstitialAssetListLoadPolicy.default,M={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},a={onSuccess:(u,w,B,Y)=>{const oe=u.data,xe=oe==null?void 0:oe.ASSETS;if(!Array.isArray(xe)){const Ne=this.assignAssetListError(e,K.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),B.url,w,Y);this.hls.trigger(g.ERROR,Ne);return}e.assetListResponse=oe,this.hls.trigger(g.ASSET_LIST_LOADED,{event:e,assetListResponse:oe,networkDetails:Y})},onError:(u,w,B,Y)=>{const oe=this.assignAssetListError(e,K.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${u.code} ${u.text} (${w.url})`),w.url,Y,B);this.hls.trigger(g.ERROR,oe)},onTimeout:(u,w,B)=>{const Y=this.assignAssetListError(e,K.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${w.url})`),w.url,u,B);this.hls.trigger(g.ERROR,Y)}};return c.load(A,M,a),this.hls.trigger(g.ASSET_LIST_LOADING,{event:e}),c}assignAssetListError(e,t,r,n,s,o){return e.error=r,{type:Re.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:n,error:r,networkDetails:o,stats:s}}}function no(i,e,t){Ro(i,e,t),i.addEventListener(e,t)}function Ro(i,e,t){i.removeEventListener(e,t)}function Ru(i){i==null||i.play().catch(()=>{})}class Gu extends z{constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;const n=r-this.timelinePos;if(Math.abs(n)<1/7056e5)return;const o=n<=-.01;this.timelinePos=r,this.bufferedPos=r;const c=this.playingItem;if(!c){this.checkBuffer();return}if(o&&this.schedule.resetErrorsInRange(r,r-n)&&this.updateSchedule(),this.checkBuffer(),o&&r<c.start||r>=c.end){var A;const u=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(c)&&(A=this.media)!=null&&A.paused&&(this.shouldPlay=!1),!o){const w=this.findItemIndex(c);if(u>w){const B=this.schedule.findJumpRestrictedIndex(w+1,u);if(B>w){this.setSchedulePosition(B);return}}}this.setSchedulePosition(u);return}const f=this.playingAsset;if(!f){if(this.playingLastItem&&this.isInterstitial(c)){const u=c.event.assetList[0];u&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,u))}return}const M=f.timelineStart,a=f.duration||0;(o&&r<M||r>=M+a)&&this.setScheduleToAssetAtTime(r,f)},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const n=this.playingItem;if(!n||this.playingLastItem)return;if(r>=n.end){this.timelinePos=n.end;const c=this.findItemIndex(n);this.setSchedulePosition(c+1)}const s=this.playingAsset;if(!s)return;const o=s.timelineStart+(s.duration||0);r>=o&&this.setScheduleToAssetAtTime(r,s)},this.onScheduleUpdate=(r,n)=>{const s=this.schedule,o=this.playingItem,c=s.events||[],A=s.items||[],f=s.durations,M=r.map(w=>w.identifier),a=!!(c.length||M.length);if(a&&this.log(`INTERSTITIALS_UPDATED (${c.length}): ${c}
|
|
|
Schedule: ${A.map(w=>Ao(w))}`),M.length&&this.log(`Removed events ${M}`),this.playerQueue.forEach(w=>{if(w.interstitial.appendInPlace){const B=w.assetItem.timelineStart,Y=w.timelineOffset-B;if(Y)try{w.timelineOffset=B}catch(oe){Math.abs(Y)>Jn&&this.warn(`${oe} ("${w.assetId}" ${w.timelineOffset}->${B})`)}}}),o){const w=this.updateItem(o,this.timelinePos);this.itemsMatch(o,w)&&(this.playingItem=w,this.waitingItem=this.endedItem=null)}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const u=this.bufferingItem;if(u){const w=this.updateItem(u,this.bufferedPos);this.itemsMatch(u,w)?this.bufferingItem=w:u.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(u.event,null))}if(r.forEach(w=>{w.assetList.forEach(B=>{this.clearAssetPlayer(B.identifier,null)})}),a||n){if(this.hls.trigger(g.INTERSTITIALS_UPDATED,{events:c.slice(0),schedule:A.slice(0),durations:f,removedIds:M}),this.isInterstitial(o)&&M.includes(o.event.identifier)){this.warn(`Interstitial "${o.event.identifier}" removed while playing`),this.primaryFallback(o.event);return}this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new al(e),this.schedule=new co(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(g.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(g.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(g.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(g.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(g.BUFFER_APPENDED,this.onBufferAppended,this),e.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(g.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(g.MEDIA_ENDED,this.onMediaEnded,this),e.on(g.ERROR,this.onError,this),e.on(g.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;e&&(e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(g.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(g.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(g.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(g.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(g.BUFFER_CODECS,this.onBufferCodecs,this),e.off(g.BUFFER_APPENDED,this.onBufferAppended,this),e.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(g.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(g.MEDIA_ENDED,this.onMediaEnded,this),e.off(g.ERROR,this.onError,this),e.off(g.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.manager=null,this.hls=this.HlsPlayerClass=this.schedule=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Ro(e,"play",this.onPlay),Ro(e,"pause",this.onPause),Ro(e,"seeking",this.onSeeking),Ro(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const r=this.media=t.media;no(r,"seeking",this.onSeeking),no(r,"timeupdate",this.onTimeupdate),no(r,"play",this.onPlay),no(r,"pause",this.onPause)}onMediaAttached(e,t){const r=this.effectivePlayingItem,n=this.detachedData;if(this.detachedData=null,r===null)this.checkStart();else if(!n){this.clearScheduleState();const s=this.findItemIndex(r);this.setSchedulePosition(s)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const r=!!t.transferMedia,n=this.media;if(this.media=null,!r&&(n&&this.removeMediaListeners(n),this.detachedData)){const s=this.getBufferingPlayer();s&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,s.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,r=a=>a&&e.getAssetPlayer(a.identifier),n=(a,u,w,B,Y)=>{if(a){let oe=a[u].start;const xe=a.event;if(xe){if(u==="playout"||xe.timelineOccupancy!==Pi.Point){const Ne=r(w);(Ne==null?void 0:Ne.interstitial)===xe&&(oe+=Ne.assetItem.startOffset+Ne[Y])}}else{const Ne=B==="bufferedPos"?o():e[B];oe+=Ne-a.start}return oe}return 0},s=(a,u)=>{if(a!==0&&u!=="primary"&&e.schedule.length){var w;const B=e.schedule.findItemIndexAtTime(a),Y=(w=e.schedule.items)==null?void 0:w[B];if(Y){const oe=Y[u].start-Y.start;return a+oe}}return a},o=()=>{const a=e.bufferedPos;return a===Number.MAX_VALUE?c("primary"):Math.max(a,0)},c=a=>{var u;return(u=e.primaryDetails)!=null&&u.live?e.primaryDetails.edge:e.schedule.durations[a]},A=(a,u)=>{var w,B;const Y=e.effectivePlayingItem;if(Y!=null&&(w=Y.event)!=null&&w.restrictions.skip)return;e.log(`seek to ${a} "${u}"`);const oe=e.effectivePlayingItem,xe=e.schedule.findItemIndexAtTime(a,u),Ne=(B=e.schedule.items)==null?void 0:B[xe],Me=e.getBufferingPlayer(),We=Me==null?void 0:Me.interstitial,ct=We==null?void 0:We.appendInPlace,xt=oe&&e.itemsMatch(oe,Ne);if(oe&&(ct||xt)){const Et=r(e.playingAsset),qt=(Et==null?void 0:Et.media)||e.primaryMedia;if(qt){const Pt=u==="primary"?qt.currentTime:n(oe,u,e.playingAsset,"timelinePos","currentTime"),Gt=a-Pt,tr=(ct?Pt:qt.currentTime)+Gt;if(tr>=0&&(!Et||ct||tr<=Et.duration)){qt.currentTime=tr;return}}}if(Ne){let Et=a;if(u!=="primary"){const Pt=Ne[u].start,Gt=a-Pt;Et=Ne.start+Gt}const qt=!e.isInterstitial(Ne);if((!e.isInterstitial(oe)||oe.event.appendInPlace)&&(qt||Ne.event.appendInPlace)){const Pt=e.media||(ct?Me==null?void 0:Me.media:null);Pt&&(Pt.currentTime=Et)}else if(oe){const Pt=e.findItemIndex(oe);if(xe>Pt){const tr=e.schedule.findJumpRestrictedIndex(Pt+1,xe);if(tr>Pt){e.setSchedulePosition(tr);return}}let Gt=0;if(qt)e.timelinePos=Et,e.checkBuffer();else{var wt;const tr=Ne==null||(wt=Ne.event)==null?void 0:wt.assetList;if(tr){const Ur=a-(Ne[u]||Ne).start;for(let Wr=tr.length;Wr--;){const zr=tr[Wr];if(zr.duration&&Ur>=zr.startOffset&&Ur<zr.startOffset+zr.duration){Gt=Wr;break}}}}e.setSchedulePosition(xe,Gt)}}},f=()=>{const a=e.effectivePlayingItem;if(e.isInterstitial(a))return a;const u=t();return e.isInterstitial(u)?u:null},M={get currentTime(){const a=f(),u=e.effectivePlayingItem;return u&&u===a?n(u,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-u.playout.start:0},set currentTime(a){const u=f(),w=e.effectivePlayingItem;w&&w===u&&A(a+w.playout.start,"playout")},get duration(){const a=f();return a?a.playout.end-a.playout.start:0},get assetPlayers(){var a;const u=(a=f())==null?void 0:a.event.assetList;return u?u.map(w=>e.getAssetPlayer(w.identifier)):[]},get playingIndex(){var a;const u=(a=f())==null?void 0:a.event;return u&&e.effectivePlayingAsset?u.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return f()}};this.manager={get events(){var a,u;return((a=e.schedule)==null||(u=a.events)==null?void 0:u.slice(0))||[]},get schedule(){var a,u;return((a=e.schedule)==null||(u=a.items)==null?void 0:u.slice(0))||[]},get interstitialPlayer(){return f()?M:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const a=t();return e.findItemIndex(a)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const a=e.effectivePlayingItem;return e.findItemIndex(a)},primary:{get bufferedEnd(){return o()},get currentTime(){const a=e.timelinePos;return a>0?a:0},set currentTime(a){A(a,"primary")},get duration(){return c("primary")},get seekableStart(){var a;return((a=e.primaryDetails)==null?void 0:a.fragmentStart)||0}},integrated:{get bufferedEnd(){return n(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return n(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(a){A(a,"integrated")},get duration(){return c("integrated")},get seekableStart(){var a;return s(((a=e.primaryDetails)==null?void 0:a.fragmentStart)||0,"integrated")}},skip:()=>{const a=e.effectivePlayingItem,u=a==null?void 0:a.event;if(u&&!u.restrictions.skip){const w=e.findItemIndex(a);if(u.appendInPlace){const B=a.playout.start+a.event.duration;A(B+.001,"playout")}else e.advanceAfterAssetEnded(u,w,1/0)}}}}return this.manager}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,r=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!r?!1:this.findItemIndex(t)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t,r;if(this.mediaSelection===null)return;const n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let s=this.media;!s&&(e=this.bufferingItem)!=null&&(t=e.event)!=null&&t.appendInPlace&&(s=this.primaryMedia);const o=(r=s)==null?void 0:r.currentTime;if(!(o===void 0||!le(o)))return o}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const r=this.getAssetPlayer(e);r&&this.transferMediaFromPlayer(r,t)}transferMediaFromPlayer(e,t){const r=e.interstitial.appendInPlace,n=e.media;if(r&&n===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&n){this.detachedData={media:n};return}const s=e.transferMedia();this.log(`transfer MediaSource from ${e} ${ln(s)}`),this.detachedData=s}else t&&n&&(this.shouldPlay||(this.shouldPlay=!n.paused))}transferMediaTo(e,t){var r,n;if(e.media===t)return;let s=null;const o=this.hls,c=e!==o,A=c&&e.interstitial.appendInPlace,f=(r=this.detachedData)==null?void 0:r.mediaSource;let M;if(o.media)A&&(s=o.transferMedia(),this.detachedData=s),M="Primary";else if(f){const w=this.getBufferingPlayer();w?(s=w.transferMedia(),M=`${w}`):M="detached MediaSource"}else M="detached media";if(!s){if(f)s=this.detachedData,this.log(`using detachedData: MediaSource ${ln(s)}`);else if(!this.detachedData||o.media===t){const w=this.playerQueue;w.length>1&&w.forEach(B=>{if(c&&B.interstitial.appendInPlace!==A){const Y=B.interstitial;this.clearInterstitial(B.interstitial,null),Y.appendInPlace=!1,Y.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${Y}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const a=s&&"mediaSource"in s&&((n=s.mediaSource)==null?void 0:n.readyState)!=="closed",u=a&&s?s:t;if(this.log(`${a?"transfering MediaSource":"attaching media"} to ${c?e:"Primary"} from ${M}`),u===s){const w=c&&e.assetId===this.schedule.assetIdAtEnd;u.overrides={duration:this.schedule.duration,endOfStream:!c||w,cueRemoval:!c}}e.attachMedia(u)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e.events;if(!t||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const r=this.timelinePos,n=this.effectivePlayingItem;if(r===-1){const s=this.hls.startPosition;if(this.timelinePos=s,t.length&&t[0].cue.pre){const o=e.findEventIndex(t[0].identifier);this.setSchedulePosition(o)}else if(s>=0||!this.primaryLive){const o=this.timelinePos=s>0?s:0,c=e.findItemIndexAtTime(o);this.setSchedulePosition(c)}}else if(n&&!this.playingItem){const s=e.findItemIndex(n);this.setSchedulePosition(s)}}advanceAfterAssetEnded(e,t,r){const n=r+1;if(!e.isAssetPastPlayoutLimit(n)&&!e.assetList[n].error)this.setSchedulePosition(t,n);else{const s=this.schedule.items;if(s){const o=t+1,c=s.length;if(o>=c){this.setSchedulePosition(-1);return}const A=e.resumeTime;this.timelinePos<A&&(this.timelinePos=A,this.checkBuffer()),this.setSchedulePosition(o)}}}setScheduleToAssetAtTime(e,t){const r=this.schedule,n=t.parentIdentifier,s=r.getEvent(n);if(s){const o=r.findEventIndex(n),c=r.findAssetIndex(s,e);this.setSchedulePosition(o,c)}}setSchedulePosition(e,t){const r=this.schedule.items;if(!r||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);const n=e>=0?r[e]:null,s=this.playingItem,o=this.playingLastItem;if(this.isInterstitial(s)){var c;const f=s.event,M=this.playingAsset,a=M==null?void 0:M.identifier,u=a?this.getAssetPlayer(a):null;if(u&&a&&(!this.eventItemsMatch(s,n)||t!==void 0&&a!==((c=f.assetList)==null?void 0:c[t].identifier))){var A;const w=f.findAssetIndex(M);this.log(`INTERSTITIAL_ASSET_ENDED ${w+1}/${f.assetList.length} ${Ta(M)}`),this.endedAsset=M,this.playingAsset=null,this.hls.trigger(g.INTERSTITIAL_ASSET_ENDED,{asset:M,assetListIndex:w,event:f,schedule:r.slice(0),scheduleIndex:e,player:u}),this.retreiveMediaSource(a,n),u.media&&!((A=this.detachedData)!=null&&A.mediaSource)&&u.detachMedia()}if(!this.eventItemsMatch(s,n)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${f} ${Ao(s)}`),f.hasPlayed=!0,this.hls.trigger(g.INTERSTITIAL_ENDED,{event:f,schedule:r.slice(0),scheduleIndex:e}),f.cue.once)){this.updateSchedule();const w=this.schedule.items;if(n&&w){const B=this.schedule.findItemIndex(n);this.advanceSchedule(B,w,t,s,o)}return}}this.advanceSchedule(e,r,t,s,o)}advanceSchedule(e,t,r,n,s){const o=e>=0?t[e]:null,c=this.primaryMedia,A=this.playerQueue;if(A.length&&A.forEach(f=>{const M=f.interstitial,a=this.schedule.findEventIndex(M.identifier);(a<e||a>e+1)&&this.clearInterstitial(M,o)}),this.isInterstitial(o)){this.timelinePos=Math.min(Math.max(this.timelinePos,o.start),o.end);const f=o.event;r===void 0&&(r=this.schedule.findAssetIndex(f,this.timelinePos));const M=this.waitingItem;this.assetsBuffered(o,c)||this.setBufferingItem(o);let a=this.preloadAssets(f,r);if(this.eventItemsMatch(o,M||n)||(this.waitingItem=o,this.log(`INTERSTITIAL_STARTED ${Ao(o)} ${f.appendInPlace?"append in place":""}`),this.hls.trigger(g.INTERSTITIAL_STARTED,{event:f,schedule:t.slice(0),scheduleIndex:e})),!f.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${f}`);return}if(f.assetListLoader&&(f.assetListLoader.destroy(),f.assetListLoader=void 0),!c){this.log(`Waiting for attachMedia to start Interstitial ${f}`);return}this.waitingItem=this.endedItem=null,this.playingItem=o;const u=f.assetList[r];if(!u){const w=t[e+1],B=this.media;w&&B&&!this.isInterstitial(w)&&B.currentTime<w.start&&(B.currentTime=this.timelinePos=w.start),this.advanceAfterAssetEnded(f,e,r||0);return}if(a||(a=this.getAssetPlayer(u.identifier)),a===null||a.destroyed){const w=f.assetList.length;this.warn(`asset ${r+1}/${w} player destroyed ${f}`),a=this.createAssetPlayer(f,u,r)}if(!this.eventItemsMatch(o,this.bufferingItem)&&f.appendInPlace&&this.isAssetBuffered(u))return;this.startAssetPlayer(a,r,t,e,c),this.shouldPlay&&Ru(a.media)}else o!==null?(this.resumePrimary(o,e,n),this.shouldPlay&&Ru(this.hls.media)):s&&this.isInterstitial(n)&&(this.endedItem=null,this.playingItem=n,n.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e,t;return(e=this.mediaSelection)==null||(t=e.main)==null?void 0:t.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,r){var n;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Ao(e)}`),!((n=this.detachedData)!=null&&n.mediaSource)){let o=this.timelinePos;(o<e.start||o>=e.end)&&(o=this.getPrimaryResumption(e,t),this.timelinePos=o),this.attachPrimary(o,e)}if(!r)return;const s=this.schedule.items;s&&(this.log(`resumed ${Ao(e)}`),this.hls.trigger(g.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const r=e.start;if(this.primaryLive){const n=this.primaryDetails;if(t===0)return this.hls.startPosition;if(n&&(r<n.fragmentStart||r>n.edge))return this.hls.liveSyncPosition||-1}return r}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:Ti.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,r){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const n=this.primaryMedia;if(!n)return;const s=this.hls;s.media?this.checkBuffer():(this.transferMediaTo(s,n),r&&this.startLoadingPrimaryAt(e,r)),r||(this.timelinePos=e,this.startLoadingPrimaryAt(e,r))}startLoadingPrimaryAt(e,t){var r;const n=this.hls;!n.loadingEnabled||!n.media||Math.abs((((r=n.mainForwardBufferInfo)==null?void 0:r.start)||n.media.currentTime)-e)>.5?n.startLoad(e,t):n.bufferingEnabled||n.resumeBuffering()}onManifestLoading(){this.stopLoad(),this.schedule.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(g.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(g.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1)return;const r=this.hls.levels[t.level],n=b(b({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=n,this.schedule.parseInterstitialDateRanges(n,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const r=this.hls.audioTracks[t.id],n=this.mediaSelection;if(!n){this.altSelection=b(b({},this.altSelection),{},{audio:r});return}const s=b(b({},n),{},{audio:r});this.mediaSelection=s}onSubtitleTrackUpdated(e,t){const r=this.hls.subtitleTracks[t.id],n=this.mediaSelection;if(!n){this.altSelection=b(b({},this.altSelection),{},{subtitles:r});return}const s=b(b({},n),{},{subtitles:r});this.mediaSelection=s}onAudioTrackSwitching(e,t){const r=cr(t);this.playerQueue.forEach(n=>n.hls.setAudioOption(t)||n.hls.setAudioOption(r))}onSubtitleTrackSwitch(e,t){const r=cr(t);this.playerQueue.forEach(n=>n.hls.setSubtitleOption(t)||t.id!==-1&&n.hls.setSubtitleOption(r))}onBufferCodecs(e,t){const r=t.tracks;r&&(this.requiredTracks=r)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){const n=this.timelinePos;this.bufferedPos=n,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let n=0;n<t.length;n++){const s=t[n];if(s.cue.post){var r;const o=this.schedule.findEventIndex(s.identifier),c=(r=this.schedule.items)==null?void 0:r[o];this.isInterstitial(c)&&this.eventItemsMatch(c,this.bufferingItem)&&this.bufferedToItem(c,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const r=this.findItemIndex(t);this.setSchedulePosition(r+1)}else this.shouldPlay=!1}updateItem(e,t){const r=this.schedule.items;if(e&&r){const n=this.findItemIndex(e,t);return r[n]||null}return null}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var r;return!!t&&(e===t||e.event.identifier===((r=t.event)==null?void 0:r.identifier))}findItemIndex(e,t){return e?this.schedule.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const r=Ti.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=r.len<1),this.updateBufferedPos(r.end,t,e)}updateBufferedPos(e,t,r){const n=this.schedule,s=this.bufferingItem;if(this.bufferedPos>e)return;if(t.length===1&&this.itemsMatch(t[0],s)){this.bufferedPos=e;return}const o=this.playingItem,c=this.findItemIndex(o);let A=n.findItemIndexAtTime(e);if(this.bufferedPos<e){var f,M;const a=this.findItemIndex(s),u=Math.min(a+1,t.length-1),w=t[u];if((A===-1&&s&&e>=s.end||(f=w.event)!=null&&f.appendInPlace&&e+.01>=w.start)&&(A=u),u-c>1&&(s==null||(M=s.event)==null?void 0:M.appendInPlace)===!1)return;if(this.bufferedPos=e,A>a&&A>c)this.bufferedToItem(w);else{const B=this.primaryDetails;this.primaryLive&&B&&e>B.edge-B.targetduration&&w.start<B.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(w)&&this.preloadAssets(w.event,0)}}else r&&o&&!this.itemsMatch(o,s)&&(A===c?this.bufferedToItem(o):A===c+1&&this.bufferedToItem(t[A]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(n=>{const s=this.getAssetPlayer(n.identifier);return!(s!=null&&s.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,r=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:n,events:s}=r;if(!n||!s)return t;const o=this.isInterstitial(e),c=this.getBufferingPlayer();if(this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos)),!this.playbackDisabled){const A=c?c.remaining:t?t.end-this.timelinePos:0;this.log(`buffered to boundary ${Ao(e)}`+(t?` (${A.toFixed(2)} remaining)`:"")),o?e.event.assetList.forEach(f=>{const M=this.getAssetPlayer(f.identifier);M&&M.resumeBuffering()}):(this.hls.resumeBuffering(),this.playerQueue.forEach(f=>f.pauseBuffering()))}this.hls.trigger(g.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:s.slice(0),schedule:n.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const r=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(r!==null){this.bufferingAsset=null;const n=this.detachedData;n?n.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),r=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(r)}bufferedToEvent(e,t){const r=e.event,n=r.assetList.length===0&&!r.assetListLoader,s=r.cue.once;if(n||!s){const o=this.preloadAssets(r,t);if(o!=null&&o.interstitial.appendInPlace){const c=r.assetList[t],A=this.primaryMedia;c&&A&&this.bufferAssetPlayer(o,A)}}}preloadAssets(e,t){const r=e.assetUrl,n=e.assetList.length,s=n===0&&!e.assetListLoader,o=e.cue.once;if(s){const A=e.timelineStart;if(e.appendInPlace){var c;const u=this.playingItem;!this.isInterstitial(u)&&(u==null||(c=u.nextEvent)==null?void 0:c.identifier)===e.identifier&&this.flushFrontBuffer(A+.25)}let f,M=0;if(!this.playingItem&&this.primaryLive&&(M=this.hls.startPosition,M===-1&&(M=this.hls.liveSyncPosition||0)),M&&!(e.cue.pre||e.cue.post)){const u=M-A;u>0&&(f=Math.round(u*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${r?1:n} ${e}${f?` live-start: ${M} start-offset: ${f}`:""}`),r)return this.createAsset(e,0,0,A,e.duration,r);const a=this.assetListLoader.loadAssetList(e,f);a&&(e.assetListLoader=a)}else if(!o&&n){for(let A=t;A<n;A++){const f=e.assetList[A],M=this.getAssetPlayerQueueIndex(f.identifier);(M===-1||this.playerQueue[M].destroyed)&&!f.error&&this.createAssetPlayer(e,f,A)}return this.getAssetPlayer(e.assetList[t].identifier)}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(n=>{this.hls.trigger(g.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:n})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let r=0;r<t.length;r++)if(e===t[r].assetId)return r;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let r=0;r<e.length;r++)if(e[r].media===t)return e[r]}return null}createAsset(e,t,r,n,s,o){const c={parentIdentifier:e.identifier,identifier:ts(e,o,t),duration:s,startOffset:r,timelineStart:n,uri:o};return this.createAssetPlayer(e,c,t)}createAssetPlayer(e,t,r){this.log(`create HLSAssetPlayer for ${Ta(t)}`);const n=this.hls,s=n.userConfig;let o=s.videoPreference;const c=n.loadLevelObj||n.levels[n.currentLevel];(o||c)&&(o=v({},o),c.videoCodec&&(o.videoCodec=c.videoCodec),c.videoRange&&(o.allowedVideoRanges=[c.videoRange]));const A=n.audioTracks[n.audioTrack],f=n.subtitleTracks[n.subtitleTrack];let M=0;if(this.primaryLive||e.appendInPlace){const Me=this.timelinePos-t.timelineStart;if(Me>1){const We=t.duration;We&&Me<We&&(M=Me)}}const a=t.identifier,u=b(b({},s),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:n.sessionId,assetPlayerId:a,abrEwmaDefaultEstimate:n.bandwidthEstimate,interstitialsController:void 0,startPosition:M,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:o,audioPreference:A||s.audioPreference,subtitlePreference:f||s.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(u.timelineOffset=t.timelineStart));const w=u.cmcd;w!=null&&w.sessionId&&w.contentId&&(u.cmcd=v({},w,{contentId:Bn(t.uri)})),this.getAssetPlayer(a)&&this.warn(`Duplicate date range identifier ${e} and asset ${a}`);const B=new ro(this.HlsPlayerClass,u,e,t);this.playerQueue.push(B),e.assetList[r]=t;const Y=Me=>{if(Me.live){const xt=new Error(`Interstitials MUST be VOD assets ${e}`),wt={fatal:!0,type:Re.OTHER_ERROR,details:K.INTERSTITIAL_ASSET_ITEM_ERROR,error:xt};this.handleAssetItemError(wt,e,this.schedule.findEventIndex(e.identifier),r,xt.message);return}const We=Me.edge-Me.fragmentStart,ct=t.duration;(ct===null||We>ct)&&(this.log(`Interstitial asset "${a}" duration change ${ct} > ${We}`),t.duration=We,this.updateSchedule())};B.on(g.LEVEL_UPDATED,(Me,{details:We})=>Y(We)),B.on(g.LEVEL_PTS_UPDATED,(Me,{details:We})=>Y(We));const oe=(Me,We)=>{const ct=this.getAssetPlayer(a);if(ct&&We.tracks){ct.off(g.BUFFER_CODECS,oe),ct.tracks=We.tracks;const xt=this.primaryMedia;this.bufferingAsset===ct.assetItem&&xt&&!ct.media&&this.bufferAssetPlayer(ct,xt)}};B.on(g.BUFFER_CODECS,oe);const xe=()=>{var Me;const We=this.getAssetPlayer(a);if(this.log(`buffered to end of asset ${We}`),!We)return;const ct=this.schedule.findEventIndex(e.identifier),xt=e.findAssetIndex(t),wt=xt+1,Et=(Me=this.schedule.items)==null?void 0:Me[ct];if(this.isInterstitial(Et))if(xt!==-1&&!e.isAssetPastPlayoutLimit(wt)&&!e.assetList[wt].error)this.bufferedToItem(Et,wt);else{var qt;const Pt=(qt=this.schedule.items)==null?void 0:qt[ct+1];Pt&&this.bufferedToItem(Pt)}};B.on(g.BUFFERED_TO_END,xe);const Ne=Me=>()=>{if(!this.getAssetPlayer(a))return;this.shouldPlay=!0;const ct=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,ct,Me)};return B.once(g.MEDIA_ENDED,Ne(r)),B.once(g.PLAYOUT_LIMIT_REACHED,Ne(1/0)),B.on(g.ERROR,(Me,We)=>{const ct=this.getAssetPlayer(a);if(We.details===K.BUFFER_STALLED_ERROR){if(ct!=null&&ct.media){const xt=ct.currentTime,wt=ct.duration-xt;xt&&e.appendInPlace&&wt/ct.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${a} ${e} at ${ct.media.currentTime}`),xe()):(this.warn(`Stalled at ${xt} of ${xt+wt} in asset ${a} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}return}this.handleAssetItemError(We,e,this.schedule.findEventIndex(e.identifier),r,`Asset player error ${We.error} ${e}`)}),B.on(g.DESTROYING,()=>{if(!this.getAssetPlayer(a))return;const We=new Error(`Asset player destroyed unexpectedly ${a}`),ct={fatal:!0,type:Re.OTHER_ERROR,details:K.INTERSTITIAL_ASSET_ITEM_ERROR,error:We};this.handleAssetItemError(ct,e,this.schedule.findEventIndex(e.identifier),r,We.message)}),this.hls.trigger(g.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:r,event:e,player:B}),B}clearInterstitial(e,t){e.assetList.forEach(r=>{this.clearAssetPlayer(r.identifier,t)}),e.reset()}clearAssetPlayer(e,t){const r=this.getAssetPlayerQueueIndex(e);if(r!==-1){this.log(`clearAssetPlayer "${e}" toSegment: ${t&&Ao(t)}`);const n=this.playerQueue[r];this.transferMediaFromPlayer(n,t),this.playerQueue.splice(r,1),n.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,r,n,s){const{interstitial:o,assetItem:c,assetId:A}=e,f=o.assetList.length,M=this.playingAsset;this.endedAsset=null,this.playingAsset=c,(!M||M.identifier!==A)&&(M&&(this.clearAssetPlayer(M.identifier,r[n]),delete M.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${f} ${e}`),this.hls.trigger(g.INTERSTITIAL_ASSET_STARTED,{asset:c,assetListIndex:t,event:o,schedule:r.slice(0),scheduleIndex:n,player:e})),this.bufferAssetPlayer(e,s)}bufferAssetPlayer(e,t){var r,n;const{interstitial:s,assetItem:o,assetId:c}=e,A=this.schedule.findEventIndex(s.identifier),f=(r=this.schedule.items)==null?void 0:r[A];if(!f)return;this.setBufferingItem(f),this.bufferingAsset=o;const M=this.getBufferingPlayer();if(M===e)return;const a=s.appendInPlace;if(a&&(M==null?void 0:M.interstitial.appendInPlace)===!1)return;const u=(M==null?void 0:M.tracks)||((n=this.detachedData)==null?void 0:n.tracks)||this.requiredTracks;if(a&&o!==this.playingAsset){if(!e.tracks)return;if(u&&!Le(u,e.tracks)){const w=new Error(`Asset "${c}" SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(u)}')`),B={fatal:!0,type:Re.OTHER_ERROR,details:K.INTERSTITIAL_ASSET_ITEM_ERROR,error:w},Y=s.findAssetIndex(o);this.handleAssetItemError(B,s,A,Y,w.message);return}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,r,n,s){if(e.details===K.BUFFER_STALLED_ERROR)return;const o=t.assetList[n]||null;let c=null;if(o){const a=this.getAssetPlayerQueueIndex(o.identifier);c=this.playerQueue[a]||null}const A=this.schedule.items,f=v({},e,{fatal:!1,errorAction:Fn(!0),asset:o,assetListIndex:n,event:t,schedule:A,scheduleIndex:r,player:c});if(this.warn(`Asset item error: ${e.error}`),this.hls.trigger(g.INTERSTITIAL_ASSET_ERROR,f),!e.fatal)return;const M=new Error(s);o&&(this.playingAsset!==o&&this.clearAssetPlayer(o.identifier,null),o.error=M),t.assetList.some(a=>!a.error)?t.appendInPlace&&(t.error=M):t.error=M,this.primaryFallback(t)}primaryFallback(e){const t=e.timelineStart,r=this.effectivePlayingItem;if(this.updateSchedule(),r){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${r?Ao(r):"<none>"} error: ${e.error}`),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));let n=this.timelinePos;n===-1&&(n=this.hls.startPosition);const s=this.updateItem(r,n);if(this.itemsMatch(r,s))this.clearInterstitial(e,null);else{const o=this.schedule.findItemIndexAtTime(n);this.setSchedulePosition(o)}}else this.checkStart()}onAssetListLoaded(e,t){var r;const n=t.event,s=n.identifier,o=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(s))return;const c=n.timelineStart,A=n.duration;let f=0;o.forEach((B,Y)=>{const oe=parseFloat(B.DURATION);this.createAsset(n,Y,f,c+f,oe,B.URI),f+=oe}),n.duration=f,this.log(`Loaded asset-list with duration: ${f} (was: ${A}) ${n}`);const M=this.waitingItem,a=(M==null?void 0:M.event.identifier)===s;this.updateSchedule();const u=(r=this.bufferingItem)==null?void 0:r.event;if(a){var w;const B=this.schedule.findEventIndex(s),Y=(w=this.schedule.items)==null?void 0:w[B];if(Y){if(!this.playingItem&&this.timelinePos>Y.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==B){n.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${n}`),this.primaryFallback(n);return}this.setBufferingItem(Y)}this.setSchedulePosition(B)}else if((u==null?void 0:u.identifier)===s&&u.appendInPlace){const B=n.assetList[0],Y=this.getAssetPlayer(B.identifier),oe=this.primaryMedia;B&&Y&&oe&&this.bufferAssetPlayer(Y,oe)}}onError(e,t){switch(t.details){case K.ASSET_LIST_PARSING_ERROR:case K.ASSET_LIST_LOAD_ERROR:case K.ASSET_LIST_LOAD_TIMEOUT:{const r=t.interstitial;r&&this.primaryFallback(r);break}case K.BUFFER_STALLED_ERROR:{this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Ou=500;class Zu extends _o{constructor(e,t,r){super(e,t,r,"subtitle-stream-controller",T.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(g.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(g.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(g.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(g.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=Ln.IDLE,this.setInterval(Ou),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:r,success:n}=t;if(de(r)&&(this.fragPrevious=r),this.state=Ln.IDLE,!n)return;const s=this.tracksBuffered[this.currentTrackId];if(!s)return;let o;const c=r.start;for(let f=0;f<s.length;f++)if(c>=s[f].start&&c<=s[f].end){o=s[f];break}const A=r.start+r.duration;o?o.end=A:(o={start:c,end:A},s.push(o)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:r,endOffset:n}=t;if(r===0&&n!==Number.POSITIVE_INFINITY){const s=n-1;if(s<=0)return;t.endOffsetSubtitles=Math.max(0,s),this.tracksBuffered.forEach(o=>{for(let c=0;c<o.length;){if(o[c].end<=s){o.shift();continue}else if(o[c].start<s)o[c].start=s;else break;c++}}),this.fragmentTracker.removeFragmentsInRange(r,s,T.SUBTITLE)}}onError(e,t){const r=t.frag;(r==null?void 0:r.type)===T.SUBTITLE&&(t.details===K.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Ln.STOPPED&&(this.state=Ln.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Uo(this.levels,t)){this.levels=t.map(r=>new vn(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const n=new vn(r);return this.tracksBuffered[n.id]=[],n}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,T.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var r;if(this.currentTrackId=t.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const n=this.levels[this.currentTrackId];n!=null&&n.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,n&&this.state!==Ln.STOPPED&&this.setInterval(Ou)}onSubtitleTrackLoaded(e,t){var r;const{currentTrackId:n,levels:s}=this,{details:o,id:c}=t;if(!s){this.warn(`Subtitle tracks were reset while loading level ${c}`);return}const A=s[c];if(c>=s.length||!A)return;this.log(`Subtitle track ${c} loaded [${o.startSN},${o.endSN}]${o.lastPartSn?`[part-${o.lastPartSn}-${o.lastPartIndex}]`:""},duration:${o.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let f=0;if(o.live||(r=A.details)!=null&&r.live){const a=this.mainDetails;if(o.deltaUpdateFailed||!a)return;const u=a.fragments[0];if(!A.details)o.hasProgramDateTime&&a.hasProgramDateTime?(sa(o,a),f=o.fragmentStart):u&&(f=u.start,Ya(o,f));else{var M;f=this.alignPlaylists(o,A.details,(M=this.levelLastLoaded)==null?void 0:M.details),f===0&&u&&(f=u.start,Ya(o,f))}}A.details=o,this.levelLastLoaded=A,c===n&&(this.hls.trigger(g.SUBTITLE_TRACK_UPDATED,{details:o,id:c,groupId:t.groupId}),this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===Ln.IDLE&&(hr(null,o.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),A.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:r}=e,n=t.decryptdata,s=this.hls;if(!this.fragContextChanged(t)&&r&&r.byteLength>0&&n!=null&&n.key&&n.iv&&Di(n.method)){const o=performance.now();this.decrypter.decrypt(new Uint8Array(r),n.key.buffer,n.iv.buffer,wi(n.method)).catch(c=>{throw s.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:t}),c}).then(c=>{const A=performance.now();s.trigger(g.FRAG_DECRYPTED,{frag:t,payload:c,stats:{tstart:o,tdecrypt:A}})}).catch(c=>{this.warn(`${c.name}: ${c.message}`),this.state=Ln.IDLE})}}doTick(){if(!this.media){this.state=Ln.IDLE;return}if(this.state===Ln.IDLE){const{currentTrackId:e,levels:t}=this,r=t==null?void 0:t[e];if(!r||!t.length||!r.details||this.waitForLive(r))return;const{config:n}=this,s=this.getLoadPosition(),o=Ti.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],s,n.maxBufferHole),{end:c,len:A}=o,f=r.details,M=this.hls.maxBufferLength+f.levelTargetDuration;if(A>M)return;const a=f.fragments,u=a.length,w=f.edge;let B=null;const Y=this.fragPrevious;if(c<w){const Ne=n.maxFragLookUpTolerance,Me=c>w-Ne?0:Ne;B=hr(Y,a,Math.max(a[0].start,c),Me),!B&&Y&&Y.start<a[0].start&&(B=a[0])}else B=a[u-1];if(B=this.filterReplacedPrimary(B,r.details),!B)return;const oe=B.sn-f.startSN,xe=a[oe-1];if(xe&&xe.cc===B.cc&&this.fragmentTracker.getState(xe)===$n.NOT_LOADED&&(B=xe),this.fragmentTracker.getState(B)===$n.NOT_LOADED){const Ne=this.mapToInitFragWhenRequired(B);Ne&&this.loadFragment(Ne,r,c)}}}loadFragment(e,t,r){de(e)?super.loadFragment(e,t,r):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Vu(this.tracksBuffered[this.currentTrackId]||[])}}class Vu{constructor(e){this.buffered=void 0;const t=(r,n,s)=>{if(n=n>>>0,n>s-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${s})`);return e[n][r]};this.buffered={get length(){return e.length},end(r){return t("end",r,e.length)},start(r){return t("start",r,e.length)}}}}const Wu={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},bo=i=>String.fromCharCode(Wu[i]||i),io=15,jo=100,Ea={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Il={17:2,18:4,21:6,22:8,23:10,19:13,20:15},fo={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Ul={25:2,26:4,29:6,30:8,31:10,27:13,28:15},vl=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class pu{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;q.log(`${this.time} [${e}] ${r}`)}}}const _a=function(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r].toString(16));return t};class mu{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let r=0;r<t.length;r++){const n=t[r];e.hasOwnProperty(n)&&(this[n]=e[n])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class dc{constructor(){this.uchar=" ",this.penState=new mu}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class fc{constructor(e){this.chars=[],this.pos=0,this.currPenState=new mu,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<jo;t++)this.chars.push(new dc);this.logger=e}equals(e){for(let t=0;t<jo;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<jo;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<jo;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>jo&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=jo)}moveCursor(e){const t=this.pos+e;if(e>1)for(let r=this.pos+1;r<t+1;r++)this.chars[r].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=bo(e);if(this.pos>=jo){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<jo;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let r=0;r<jo;r++){const n=this.chars[r].uchar;n!==" "&&(t=!1),e.push(n)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class yl{constructor(e){this.rows=[],this.currRow=io-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<io;t++)this.rows.push(new fc(e));this.logger=e}reset(){for(let e=0;e<io;e++)this.rows[e].clear();this.currRow=io-1}equals(e){let t=!0;for(let r=0;r<io;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<io;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<io;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+ln(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let c=0;c<io;c++)this.rows[c].clear();const s=this.currRow+1-this.nrRollUpRows,o=this.lastOutputScreen;if(o){const c=o.rows[s].cueStartTime,A=this.logger.time;if(c!==null&&A!==null&&c<A)for(let f=0;f<this.nrRollUpRows;f++)this.rows[t-this.nrRollUpRows+f+1].copy(o.rows[s+f])}}this.currRow=t;const r=this.rows[this.currRow];if(e.indent!==null){const s=e.indent,o=Math.max(s-1,0);r.setCursor(e.indent),e.color=r.chars[o].penState.foreground}const n={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(n)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+ln(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let r="",n=-1;for(let s=0;s<io;s++){const o=this.rows[s].getTextString();o&&(n=s+1,e?t.push("Row "+n+": '"+o+"'"):t.push(o.trim()))}return t.length>0&&(e?r="["+t.join(" | ")+"]":r=t.join(`
|
|
|
`)),r}getTextAndFormat(){return this.rows}}class bl{constructor(e,t,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new yl(r),this.nonDisplayedMemory=new yl(r),this.lastOutputScreen=new yl(r),this.currRollUpRow=this.displayedMemory.rows[io-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[io-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const r=Math.floor(e/2)-16,n=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=n[r]}this.logger.log(2,"MIDROW: "+ln(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class Oo{constructor(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=eu(),this.logger=void 0;const n=this.logger=new pu;this.channels=[null,new bl(e,t,n),new bl(e+1,r,n)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let r=0;r<t.length;r+=2){const n=t[r]&127,s=t[r+1]&127;let o=!1,c=null;if(n===0&&s===0)continue;this.logger.log(3,()=>"["+_a([t[r],t[r+1]])+"] -> ("+_a([n,s])+")");const A=this.cmdHistory;if(n>=16&&n<=31){if(wl(n,s,A)){ho(null,null,A),this.logger.log(3,()=>"Repeated command ("+_a([n,s])+") is dropped");continue}ho(n,s,this.cmdHistory),o=this.parseCmd(n,s),o||(o=this.parseMidrow(n,s)),o||(o=this.parsePAC(n,s)),o||(o=this.parseBackgroundAttributes(n,s))}else ho(null,null,A);if(!o&&(c=this.parseChars(n,s),c)){const M=this.currentChannel;M&&M>0?this.channels[M].insertChars(c):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!o&&!c&&this.logger.log(2,()=>"Couldn't parse cleaned data "+_a([n,s])+" orig: "+_a([t[r],t[r+1]]))}}parseCmd(e,t){const r=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,n=(e===23||e===31)&&t>=33&&t<=35;if(!(r||n))return!1;const s=e===20||e===21||e===23?1:2,o=this.channels[s];return e===20||e===21||e===28||e===29?t===32?o.ccRCL():t===33?o.ccBS():t===34?o.ccAOF():t===35?o.ccAON():t===36?o.ccDER():t===37?o.ccRU(2):t===38?o.ccRU(3):t===39?o.ccRU(4):t===40?o.ccFON():t===41?o.ccRDC():t===42?o.ccTR():t===43?o.ccRTD():t===44?o.ccEDM():t===45?o.ccCR():t===46?o.ccENM():t===47&&o.ccEOC():o.ccTO(t-32),this.currentChannel=s,!0}parseMidrow(e,t){let r=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const n=this.channels[r];return n?(n.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+_a([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let r;const n=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,s=(e===16||e===24)&&t>=64&&t<=95;if(!(n||s))return!1;const o=e<=23?1:2;t>=64&&t<=95?r=o===1?Ea[e]:fo[e]:r=o===1?Il[e]:Ul[e];const c=this.channels[o];return c?(c.setPAC(this.interpretPAC(r,t)),this.currentChannel=o,!0):!1}interpretPAC(e,t){let r;const n={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?r=t-96:r=t-64,n.underline=(r&1)===1,r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=Math.floor((r-16)/2)*4,n}parseChars(e,t){let r,n=null,s=null;if(e>=25?(r=2,s=e-8):(r=1,s=e),s>=17&&s<=19){let o;s===17?o=t+80:s===18?o=t+112:o=t+144,this.logger.log(2,()=>"Special char '"+bo(o)+"' in channel "+r),n=[o]}else e>=32&&e<=127&&(n=t===0?[e]:[e,t]);return n&&this.logger.log(3,()=>"Char codes = "+_a(n).join(",")),n}parseBackgroundAttributes(e,t){const r=(e===16||e===24)&&t>=32&&t<=47,n=(e===23||e===31)&&t>=45&&t<=47;if(!(r||n))return!1;let s;const o={};e===16||e===24?(s=Math.floor((t-32)/2),o.background=vl[s],t%2===1&&(o.background=o.background+"_semi")):t===45?o.background="transparent":(o.foreground="black",t===47&&(o.underline=!0));const c=e<=23?1:2;return this.channels[c].setBkgData(o),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}ho(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const r=this.channels[t];r&&r.cueSplitAtTime(e)}}}function ho(i,e,t){t.a=i,t.b=e}function wl(i,e,t){return t.a===i&&t.b===e}function eu(){return{a:null,b:null}}var Tl=function(){if(Os!=null&&Os.VTTCue)return self.VTTCue;const i=["","lr","rl"],e=["start","middle","end","left","right"];function t(c,A){if(typeof A!="string"||!Array.isArray(c))return!1;const f=A.toLowerCase();return~c.indexOf(f)?f:!1}function r(c){return t(i,c)}function n(c){return t(e,c)}function s(c,...A){let f=1;for(;f<arguments.length;f++){const M=arguments[f];for(const a in M)c[a]=M[a]}return c}function o(c,A,f){const M=this,a={enumerable:!0};M.hasBeenReset=!1;let u="",w=!1,B=c,Y=A,oe=f,xe=null,Ne="",Me=!0,We="auto",ct="start",xt=50,wt="middle",Et=50,qt="middle";Object.defineProperty(M,"id",s({},a,{get:function(){return u},set:function(Pt){u=""+Pt}})),Object.defineProperty(M,"pauseOnExit",s({},a,{get:function(){return w},set:function(Pt){w=!!Pt}})),Object.defineProperty(M,"startTime",s({},a,{get:function(){return B},set:function(Pt){if(typeof Pt!="number")throw new TypeError("Start time must be set to a number.");B=Pt,this.hasBeenReset=!0}})),Object.defineProperty(M,"endTime",s({},a,{get:function(){return Y},set:function(Pt){if(typeof Pt!="number")throw new TypeError("End time must be set to a number.");Y=Pt,this.hasBeenReset=!0}})),Object.defineProperty(M,"text",s({},a,{get:function(){return oe},set:function(Pt){oe=""+Pt,this.hasBeenReset=!0}})),Object.defineProperty(M,"region",s({},a,{get:function(){return xe},set:function(Pt){xe=Pt,this.hasBeenReset=!0}})),Object.defineProperty(M,"vertical",s({},a,{get:function(){return Ne},set:function(Pt){const Gt=r(Pt);if(Gt===!1)throw new SyntaxError("An invalid or illegal string was specified.");Ne=Gt,this.hasBeenReset=!0}})),Object.defineProperty(M,"snapToLines",s({},a,{get:function(){return Me},set:function(Pt){Me=!!Pt,this.hasBeenReset=!0}})),Object.defineProperty(M,"line",s({},a,{get:function(){return We},set:function(Pt){if(typeof Pt!="number"&&Pt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");We=Pt,this.hasBeenReset=!0}})),Object.defineProperty(M,"lineAlign",s({},a,{get:function(){return ct},set:function(Pt){const Gt=n(Pt);if(!Gt)throw new SyntaxError("An invalid or illegal string was specified.");ct=Gt,this.hasBeenReset=!0}})),Object.defineProperty(M,"position",s({},a,{get:function(){return xt},set:function(Pt){if(Pt<0||Pt>100)throw new Error("Position must be between 0 and 100.");xt=Pt,this.hasBeenReset=!0}})),Object.defineProperty(M,"positionAlign",s({},a,{get:function(){return wt},set:function(Pt){const Gt=n(Pt);if(!Gt)throw new SyntaxError("An invalid or illegal string was specified.");wt=Gt,this.hasBeenReset=!0}})),Object.defineProperty(M,"size",s({},a,{get:function(){return Et},set:function(Pt){if(Pt<0||Pt>100)throw new Error("Size must be between 0 and 100.");Et=Pt,this.hasBeenReset=!0}})),Object.defineProperty(M,"align",s({},a,{get:function(){return qt},set:function(Pt){const Gt=n(Pt);if(!Gt)throw new SyntaxError("An invalid or illegal string was specified.");qt=Gt,this.hasBeenReset=!0}})),M.displayState=void 0}return o.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},o}();class Yu{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Ql(i){function e(r,n,s,o){return(r|0)*3600+(n|0)*60+(s|0)+parseFloat(o||0)}const t=i.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class so{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,r){for(let n=0;n<r.length;++n)if(t===r[n]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const r=parseFloat(t);if(r>=0&&r<=100)return this.set(e,r),!0}return!1}}function gu(i,e,t,r){const n=r?i.split(r):[i];for(const s in n){if(typeof n[s]!="string")continue;const o=n[s].split(t);if(o.length!==2)continue;const c=o[0],A=o[1];e(c,A)}}const To=new Tl(0,0,""),$o=To.align==="middle"?"middle":"center";function Xu(i,e,t){const r=i;function n(){const c=Ql(i);if(c===null)throw new Error("Malformed timestamp: "+r);return i=i.replace(/^[^\sa-zA-Z-]+/,""),c}function s(c,A){const f=new so;gu(c,function(u,w){let B;switch(u){case"region":for(let Y=t.length-1;Y>=0;Y--)if(t[Y].id===w){f.set(u,t[Y].region);break}break;case"vertical":f.alt(u,w,["rl","lr"]);break;case"line":B=w.split(","),f.integer(u,B[0]),f.percent(u,B[0])&&f.set("snapToLines",!1),f.alt(u,B[0],["auto"]),B.length===2&&f.alt("lineAlign",B[1],["start",$o,"end"]);break;case"position":B=w.split(","),f.percent(u,B[0]),B.length===2&&f.alt("positionAlign",B[1],["start",$o,"end","line-left","line-right","auto"]);break;case"size":f.percent(u,w);break;case"align":f.alt(u,w,["start",$o,"end","left","right"]);break}},/:/,/\s/),A.region=f.get("region",null),A.vertical=f.get("vertical","");let M=f.get("line","auto");M==="auto"&&To.line===-1&&(M=-1),A.line=M,A.lineAlign=f.get("lineAlign","start"),A.snapToLines=f.get("snapToLines",!0),A.size=f.get("size",100),A.align=f.get("align",$o);let a=f.get("position","auto");a==="auto"&&To.position===50&&(a=A.align==="start"||A.align==="left"?0:A.align==="end"||A.align==="right"?100:50),A.position=a}function o(){i=i.replace(/^\s+/,"")}if(o(),e.startTime=n(),o(),i.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);i=i.slice(3),o(),e.endTime=n(),o(),s(i,e)}function hc(i){return i.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class pc{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new Yu,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function r(){let s=t.buffer,o=0;for(s=hc(s);o<s.length&&s[o]!=="\r"&&s[o]!==`
|
|
|
`;)++o;const c=s.slice(0,o);return s[o]==="\r"&&++o,s[o]===`
|
|
|
`&&++o,t.buffer=s.slice(o),c}function n(s){gu(s,function(o,c){},/:/)}try{let s="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;s=r();const c=s.match(/^()?WEBVTT([ \t].*)?$/);if(!(c!=null&&c[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let o=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(o?o=!1:s=r(),t.state){case"HEADER":/:/.test(s)?n(s):s||(t.state="ID");continue;case"NOTE":s||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(s)){t.state="NOTE";break}if(!s)continue;if(t.cue=new Tl(0,0,""),t.state="CUE",s.indexOf("-->")===-1){t.cue.id=s;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{Xu(s,t.cue,t.regionList)}catch(c){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const c=s.indexOf("-->")!==-1;if(!s||c&&(o=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
|
|
|
`),t.cue.text+=s}continue;case"BADCUE":s||(t.state="ID")}}}catch(s){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
|
|
|
|
|
|
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const tu=/\r\n|\n\r|\n|\r/g,Dl=function(e,t,r=0){return e.slice(r,r+t.length)===t},ru=function(e){let t=parseInt(e.slice(-3));const r=parseInt(e.slice(-6,-4)),n=parseInt(e.slice(-9,-7)),s=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!le(t)||!le(r)||!le(n)||!le(s))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*r,t+=60*1e3*n,t+=60*60*1e3*s,t};function nu(i,e,t){return Bn(i.toString())+Bn(e.toString())+Bn(t)}const Ju=function(e,t,r){let n=e[t],s=e[n.prevCC];if(!s||!s.new&&n.new){e.ccOffset=e.presentationOffset=n.start,n.new=!1;return}for(;(o=s)!=null&&o.new;){var o;e.ccOffset+=n.start-s.start,n.new=!1,n=s,s=e[n.prevCC]}e.presentationOffset=r};function vu(i,e,t,r,n,s,o){const c=new pc,A=se(new Uint8Array(i)).trim().replace(tu,`
|
|
|
`).split(`
|
|
|
`),f=[],M=e?yi(e.baseTime,e.timescale):0;let a="00:00.000",u=0,w=0,B,Y=!0;c.oncue=function(oe){const xe=t[r];let Ne=t.ccOffset;const Me=(u-M)/9e4;if(xe!=null&&xe.new&&(w!==void 0?Ne=t.ccOffset=xe.start:Ju(t,r,Me)),Me){if(!e){B=new Error("Missing initPTS for VTT MPEGTS");return}Ne=Me-t.presentationOffset}const We=oe.endTime-oe.startTime,ct=qi((oe.startTime+Ne-w)*9e4,n*9e4)/9e4;oe.startTime=Math.max(ct,0),oe.endTime=Math.max(ct+We,0);const xt=oe.text.trim();oe.text=decodeURIComponent(encodeURIComponent(xt)),oe.id||(oe.id=nu(oe.startTime,oe.endTime,xt)),oe.endTime>0&&f.push(oe)},c.onparsingerror=function(oe){B=oe},c.onflush=function(){if(B){o(B);return}s(f)},A.forEach(oe=>{if(Y)if(Dl(oe,"X-TIMESTAMP-MAP=")){Y=!1,oe.slice(16).split(",").forEach(xe=>{Dl(xe,"LOCAL:")?a=xe.slice(6):Dl(xe,"MPEGTS:")&&(u=parseInt(xe.slice(7)))});try{w=ru(a)/1e3}catch(xe){B=xe}return}else oe===""&&(Y=!1);c.parse(oe+`
|
|
|
`)}),c.flush()}const jl="stpp.ttml.im1t",qu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,ol=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,xl={left:"start",center:"center",right:"end",start:"start",end:"end"};function va(i,e,t,r){const n=x(new Uint8Array(i),["mdat"]);if(n.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const s=n.map(c=>se(c)),o=kn(e.baseTime,1,e.timescale);try{s.forEach(c=>t(ha(c,o)))}catch(c){r(c)}}function ha(i,e){const n=new DOMParser().parseFromString(i,"text/xml").getElementsByTagName("tt")[0];if(!n)throw new Error("Invalid ttml");const s={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},o=Object.keys(s).reduce((a,u)=>(a[u]=n.getAttribute(`ttp:${u}`)||s[u],a),{}),c=n.getAttribute("xml:space")!=="preserve",A=Xa(Ka(n,"styling","style")),f=Xa(Ka(n,"layout","region")),M=Ka(n,"body","[begin]");return[].map.call(M,a=>{const u=$l(a,c);if(!u||!a.hasAttribute("begin"))return null;const w=Po(a.getAttribute("begin"),o),B=Po(a.getAttribute("dur"),o);let Y=Po(a.getAttribute("end"),o);if(w===null)throw yu(a);if(Y===null){if(B===null)throw yu(a);Y=w+B}const oe=new Tl(w-e,Y-e,u);oe.id=nu(oe.startTime,oe.endTime,oe.text);const xe=f[a.getAttribute("region")],Ne=A[a.getAttribute("style")],Me=Oi(xe,Ne,A),{textAlign:We}=Me;if(We){const ct=xl[We];ct&&(oe.lineAlign=ct),oe.align=We}return v(oe,Me),oe}).filter(a=>a!==null)}function Ka(i,e,t){const r=i.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function Xa(i){return i.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function $l(i,e){return[].slice.call(i.childNodes).reduce((t,r,n)=>{var s;return r.nodeName==="br"&&n?t+`
|
|
|
`:(s=r.childNodes)!=null&&s.length?$l(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function Oi(i,e,t){const r="http://www.w3.org/ns/ttml#styling";let n=null;const s=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],o=i!=null&&i.hasAttribute("style")?i.getAttribute("style"):null;return o&&t.hasOwnProperty(o)&&(n=t[o]),s.reduce((c,A)=>{const f=ll(e,r,A)||ll(i,r,A)||ll(n,r,A);return f&&(c[A]=f),c},{})}function ll(i,e,t){return i&&i.hasAttributeNS(e,t)?i.getAttributeNS(e,t):null}function yu(i){return new Error(`Could not parse ttml timestamp ${i}`)}function Po(i,e){if(!i)return null;let t=Ql(i);return t===null&&(qu.test(i)?t=bc(i,e):ol.test(i)&&(t=Ts(i,e))),t}function bc(i,e){const t=qu.exec(i),r=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+r/e.frameRate}function Ts(i,e){const t=ol.exec(i),r=Number(t[1]);switch(t[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/e.frameRate;case"t":return r/e.tickRate}return r}class Us{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,r){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class Pu{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=bu(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(g.FRAG_LOADING,this.onFragLoading,this),e.on(g.FRAG_LOADED,this.onFragLoaded,this),e.on(g.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(g.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(g.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(g.FRAG_LOADING,this.onFragLoading,this),e.off(g.FRAG_LOADED,this.onFragLoaded,this),e.off(g.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(g.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(g.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(g.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new Us(this,"textTrack1"),t=new Us(this,"textTrack2"),r=new Us(this,"textTrack3"),n=new Us(this,"textTrack4");this.cea608Parser1=new Oo(1,e,t),this.cea608Parser2=new Oo(3,r,n)}addCues(e,t,r,n,s){let o=!1;for(let c=s.length;c--;){const A=s[c],f=wc(A[0],A[1],t,r);if(f>=0&&(A[0]=Math.min(A[0],t),A[1]=Math.max(A[1],r),o=!0,f/(r-t)>.5))return}if(o||s.push([t,r]),this.config.renderTextTracksNatively){const c=this.captionsTracks[e];this.Cues.newCue(c,t,r,n)}else{const c=this.Cues.newCue(null,t,r,n);this.hls.trigger(g.CUES_PARSED,{type:"captions",cues:c,track:e})}}onInitPtsFound(e,{frag:t,id:r,initPTS:n,timescale:s}){const{unparsedVttFrags:o}=this;r===T.MAIN&&(this.initPTS[t.cc]={baseTime:n,timescale:s}),o.length&&(this.unparsedVttFrags=[],o.forEach(c=>{this.onFragLoaded(g.FRAG_LOADED,c)}))}getExistingTrack(e,t){const{media:r}=this;if(r)for(let n=0;n<r.textTracks.length;n++){const s=r.textTracks[n];if(ec(s,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return s}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:r,media:n}=this,{label:s,languageCode:o}=t[e],c=this.getExistingTrack(s,o);if(c)r[e]=c,Bl(r[e]),zu(r[e],n);else{const A=this.createTextTrack("captions",s,o);A&&(A[e]=!0,r[e]=A)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const r=t.label,n={_id:e,label:r,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(g.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}createTextTrack(e,t,r){const n=this.media;if(n)return n.addTextTrack(e,t,r)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const r=!!t.transferMedia;if(this.media=null,r)return;const{captionsTracks:n}=this;Object.keys(n).forEach(s=>{Bl(n[s]),delete n[s]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=bu(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let r=0;r<t.length;r++)Bl(t[r])}onSubtitleTracksUpdated(e,t){const r=t.subtitleTracks||[],n=r.some(s=>s.textCodec===jl);if(this.config.enableWebVTT||n&&this.config.enableIMSC1){if(Uo(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const o=this.media,c=o?Er(o.textTracks):null;if(this.tracks.forEach((A,f)=>{let M;if(c){let a=null;for(let u=0;u<c.length;u++)if(c[u]&&ec(c[u],A)){a=c[u],c[u]=null;break}a&&(M=a)}if(M)Bl(M);else{const a=mc(A);M=this.createTextTrack(a,A.name,A.lang),M&&(M.mode="disabled")}M&&this.textTracks.push(M)}),c!=null&&c.length){const A=c.filter(f=>f!==null).map(f=>f.label);A.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${A.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const o=this.tracks.map(c=>({label:c.name,kind:c.type.toLowerCase(),default:c.default,subtitleTrack:c}));this.hls.trigger(g.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:o})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(r=>{const n=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!n)return;const s=`textTrack${n[1]}`,o=this.captionsProperties[s];o&&(o.label=r.name,r.lang&&(o.languageCode=r.lang),o.media=r)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===T.MAIN){var r,n;const{cea608Parser1:s,cea608Parser2:o,lastSn:c}=this,{cc:A,sn:f}=t.frag,M=(r=(n=t.part)==null?void 0:n.index)!=null?r:-1;s&&o&&(f!==c+1||f===c&&M!==this.lastPartIndex+1||A!==this.lastCc)&&(s.reset(),o.reset()),this.lastCc=A,this.lastSn=f,this.lastPartIndex=M}}onFragLoaded(e,t){const{frag:r,payload:n}=t;if(r.type===T.SUBTITLE)if(n.byteLength){const s=r.decryptdata,o="stats"in t;if(s==null||!s.encrypted||o){const c=this.tracks[r.level],A=this.vttCCs;A[r.cc]||(A[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),c&&c.textCodec===jl?this._parseIMSC1(r,n):this._parseVTTs(t)}}else this.hls.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const r=this.hls;va(t,this.initPTS[e.cc],n=>{this._appendCues(n,e.level),r.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},n=>{r.logger.log(`Failed to parse IMSC1: ${n}`),r.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:n})})}_parseVTTs(e){var t;const{frag:r,payload:n}=e,{initPTS:s,unparsedVttFrags:o}=this,c=s.length-1;if(!s[r.cc]&&c===-1){o.push(e);return}const A=this.hls,f=(t=r.initSegment)!=null&&t.data?ze(r.initSegment.data,new Uint8Array(n)).buffer:n;vu(f,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,M=>{this._appendCues(M,r.level),A.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},M=>{const a=M.message==="Missing initPTS for VTT MPEGTS";a?o.push(e):this._fallbackToIMSC1(r,n),A.logger.log(`Failed to parse VTT cue: ${M}`),!(a&&c>r.cc)&&A.trigger(g.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:M})})}_fallbackToIMSC1(e,t){const r=this.tracks[e.level];r.textCodec||va(t,this.initPTS[e.cc],()=>{r.textCodec=jl,this._parseIMSC1(e,t)},()=>{r.textCodec="wvtt"})}_appendCues(e,t){const r=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[t];if(!n||n.mode==="disabled")return;e.forEach(s=>gl(n,s))}else{const n=this.tracks[t];if(!n)return;const s=n.default?"default":"subtitles"+t;r.trigger(g.CUES_PARSED,{type:"subtitles",cues:e,track:s})}}onFragDecrypted(e,t){const{frag:r}=t;r.type===T.SUBTITLE&&this.onFragLoaded(g.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:r,samples:n}=t;if(!(r.type===T.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let s=0;s<n.length;s++){const o=n[s].bytes;if(o){this.cea608Parser1||this.initCea608Parsers();const c=this.extractCea608Data(o);this.cea608Parser1.addData(n[s].pts,c[0]),this.cea608Parser2.addData(n[s].pts,c[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:r,endOffsetSubtitles:n,type:s}){const{media:o}=this;if(!(!o||o.currentTime<r)){if(!s||s==="video"){const{captionsTracks:c}=this;Object.keys(c).forEach(A=>Ae(c[A],t,r))}if(this.config.renderTextTracksNatively&&t===0&&n!==void 0){const{textTracks:c}=this;Object.keys(c).forEach(A=>Ae(c[A],t,n))}}}extractCea608Data(e){const t=[[],[]],r=e[0]&31;let n=2;for(let s=0;s<r;s++){const o=e[n++],c=127&e[n++],A=127&e[n++];if(c===0&&A===0)continue;if((4&o)!==0){const M=3&o;(M===0||M===1)&&(t[M].push(c),t[M].push(A))}}return t}}function mc(i){return i.characteristics&&/transcribes-spoken-dialog/gi.test(i.characteristics)&&/describes-music-and-sound/gi.test(i.characteristics)?"captions":"subtitles"}function ec(i,e){return!!i&&i.kind===mc(e)&&Wo(e,i)}function wc(i,e,t,r){return Math.min(e,r)-Math.max(i,t)}function bu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const Pc=/\s/,zc={newCue(i,e,t,r){const n=[];let s,o,c,A,f;const M=self.VTTCue||self.TextTrackCue;for(let u=0;u<r.rows.length;u++)if(s=r.rows[u],c=!0,A=0,f="",!s.isEmpty()){var a;for(let Y=0;Y<s.chars.length;Y++)Pc.test(s.chars[Y].uchar)&&c?A++:(f+=s.chars[Y].uchar,c=!1);s.cueStartTime=e,e===t&&(t+=1e-4),A>=16?A--:A++;const w=hc(f.trim()),B=nu(e,t,w);i!=null&&(a=i.cues)!=null&&a.getCueById(B)||(o=new M(e,t,w),o.id=B,o.line=u+1,o.align="left",o.position=10+Math.min(80,Math.floor(A*8/32)*10),n.push(o))}return i&&n.length&&(n.sort((u,w)=>u.line==="auto"||w.line==="auto"?0:u.line>8&&w.line>8?w.line-u.line:u.line-w.line),n.forEach(u=>gl(i,u))),n}};function xc(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(i){}return!1}const Nc=/(\d+)-(\d+)\/(\d+)/;class tc{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||Ec,this.controller=new self.AbortController,this.stats=new F}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,r){const n=this.stats;if(n.loading.start)throw new Error("Loader can only be used once.");n.loading.start=self.performance.now();const s=kc(e,this.controller.signal),o=e.responseType==="arraybuffer",c=o?"byteLength":"length",{maxTimeToFirstByteMs:A,maxLoadTimeMs:f}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,s),self.clearTimeout(this.requestTimeout),t.timeout=A&&le(A)?A:f,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(n,e,this.response))},t.timeout),(wa(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(a=>{var u;this.response=this.loader=a;const w=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=f,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(n,e,this.response))},f-(w-n.loading.start)),!a.ok){const{status:Y,statusText:oe}=a;throw new Vc(oe||"fetch, bad network response",Y,a)}n.loading.first=w,n.total=Zc(a.headers)||n.total;const B=(u=this.callbacks)==null?void 0:u.onProgress;return B&&le(t.highWaterMark)?this.loadProgressively(a,n,e,t.highWaterMark,B):o?a.arrayBuffer():e.responseType==="json"?a.json():a.text()}).then(a=>{var u,w;const B=this.response;if(!B)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);const Y=a[c];Y&&(n.loaded=n.total=Y);const oe={url:B.url,data:a,code:B.status},xe=(u=this.callbacks)==null?void 0:u.onProgress;xe&&!le(t.highWaterMark)&&xe(n,e,a,B),(w=this.callbacks)==null||w.onSuccess(oe,n,e,B)}).catch(a=>{var u;if(self.clearTimeout(this.requestTimeout),n.aborted)return;const w=a&&a.code||0,B=a?a.message:null;(u=this.callbacks)==null||u.onError({code:w,text:B},e,a?a.details:null,n)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,r,n=0,s){const o=new Rl,c=e.body.getReader(),A=()=>c.read().then(f=>{if(f.done)return o.dataLength&&s(t,r,o.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const M=f.value,a=M.length;return t.loaded+=a,a<n||o.dataLength?(o.push(M),o.dataLength>=n&&s(t,r,o.flush().buffer,e)):s(t,r,M.buffer,e),A()}).catch(()=>Promise.reject());return A()}}function kc(i,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(v({},i.headers))};return i.rangeEnd&&t.headers.set("Range","bytes="+i.rangeStart+"-"+String(i.rangeEnd-1)),t}function Gc(i){const e=Nc.exec(i);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Zc(i){const e=i.get("Content-Range");if(e){const r=Gc(e);if(le(r))return r}const t=i.get("Content-Length");if(t)return parseInt(t)}function Ec(i,e){return new self.Request(i.url,e)}class Vc extends Error{constructor(e,t,r){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=r}}const iA=/^age:\s*[\d.]+\s*$/im;class Mc{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new F,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const r=this.loader=new self.XMLHttpRequest,n=this.stats;n.loading.first=0,n.loaded=0,n.aborted=!1;const s=this.xhrSetup;s?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return s(r,t.url)}).catch(o=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",t.url,!0),s(r,t.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,t,e)}).catch(o=>{var c;(c=this.callbacks)==null||c.onError({code:r.status,text:o.message},t,r,n)}):this.openAndSendXhr(r,t,e)}openAndSendXhr(e,t,r){e.readyState||e.open("GET",t.url,!0);const n=t.headers,{maxTimeToFirstByteMs:s,maxLoadTimeMs:o}=r.loadPolicy;if(n)for(const c in n)e.setRequestHeader(c,n[c]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),r.timeout=s&&le(s)?s:o,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:r}=this;if(!e||!t)return;const n=t.readyState,s=this.config;if(!r.aborted&&n>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),s.timeout!==s.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),s.timeout=s.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),n===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const f=t.status,M=t.responseType==="text"?t.responseText:null;if(f>=200&&f<300){const B=M!=null?M:t.response;if(B!=null){var o,c;r.loading.end=Math.max(self.performance.now(),r.loading.first);const Y=t.responseType==="arraybuffer"?B.byteLength:B.length;r.loaded=r.total=Y,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const oe=(o=this.callbacks)==null?void 0:o.onProgress;oe&&oe(r,e,B,t);const xe={url:t.responseURL,data:B,code:f};(c=this.callbacks)==null||c.onSuccess(xe,r,e,t);return}}const a=s.loadPolicy.errorRetry,u=r.retry,w={url:e.url,data:void 0,code:f};if(ji(a,u,!1,w))this.retry(a);else{var A;q.error(`${f} while loading ${e.url}`),(A=this.callbacks)==null||A.onError({code:f,text:t.statusText},e,t,r)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(ji(e,t,!0))this.retry(e);else{var r;q.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:r}=this;this.retryDelay=si(e,r.retry),r.retry++,q.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${r.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&iA.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const sA={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},aA=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:Mc,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Ai,bufferController:ja,capLevelController:Ra,errorController:hn,fpsController:hu,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:oi,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,certLoadPolicy:{default:sA},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},Uc()),{},{subtitleStreamController:Zu,subtitleTrackController:Gr,timelineController:Pu,audioStreamController:ra,audioTrackController:Qo,emeController:ql,cmcdController:Du,contentSteeringController:Ac,interstitialsController:Gu});function Uc(){return{cueHandler:zc,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function rc(i,e,t){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const r=wo(i),n=["manifest","level","frag"],s=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return n.forEach(o=>{const c=`${o==="level"?"playlist":o}LoadPolicy`,A=e[c]===void 0,f=[];s.forEach(M=>{const a=`${o}Loading${M}`,u=e[a];if(u!==void 0&&A){f.push(a);const w=r[c].default;switch(e[c]={default:w},M){case"TimeOut":w.maxLoadTimeMs=u,w.maxTimeToFirstByteMs=u;break;case"MaxRetry":w.errorRetry.maxNumRetry=u,w.timeoutRetry.maxNumRetry=u;break;case"RetryDelay":w.errorRetry.retryDelayMs=u,w.timeoutRetry.retryDelayMs=u;break;case"MaxRetryTimeout":w.errorRetry.maxRetryDelayMs=u,w.timeoutRetry.maxRetryDelayMs=u;break}}}),f.length&&t.warn(`hls.js config: "${f.join('", "')}" setting(s) are deprecated, use "${c}": ${ln(e[c])}`)}),b(b({},r),e)}function wo(i){return i&&typeof i=="object"?Array.isArray(i)?i.map(wo):Object.keys(i).reduce((e,t)=>(e[t]=wo(i[t]),e),{}):i}function Wc(i,e){const t=i.loader;t!==tc&&t!==Mc?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),i.progressive=!1):xc()&&(i.loader=tc,i.progressive=!0,i.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const Nu=2,Yc=.1,oA=.05,Qc=100;class nc extends ss{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var r;(r=this.media)!=null&&r.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var r;this.ended=((r=this.media)==null?void 0:r.currentTime)||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(Qc),this.mediaSource=t.mediaSource;const r=this.media=t.media;no(r,"playing",this.onMediaPlaying),no(r,"waiting",this.onMediaWaiting),no(r,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:r}=this;r&&(Ro(r,"playing",this.onMediaPlaying),Ro(r,"waiting",this.onMediaWaiting),Ro(r,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var r,n;const s=(r=this.hls)==null?void 0:r.config;if(!s)return;const{media:o,stalled:c}=this;if(!o)return;const{seeking:A}=o,f=this.seeking&&!A,M=!this.seeking&&A,a=o.paused&&!A||o.ended||o.playbackRate===0;if(this.seeking=A,e!==t){t&&(this.ended=0),this.moved=!0,A||(this.nudgeRetry=0,s.nudgeOnVideoHole&&!a&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(M||f){f&&this.stallResolved(e);return}if(a){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&o.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!1}));return}if(!Ti.getBuffered(o).length){this.nudgeRetry=0;return}const u=Ti.bufferInfo(o,e,0),w=u.nextStart||0,B=this.fragmentTracker;if(A&&B&&this.hls){const xt=gc(this.hls.inFlightFragments,e),wt=u.len>Nu,Et=!w||xt||w-e>Nu&&!B.getPartialFragment(e);if(wt||Et)return;this.moved=!1}const Y=(n=this.hls)==null?void 0:n.latestLevelDetails;if(!this.moved&&this.stalled!==null&&B){if(!(u.len>0)&&!w)return;const wt=Math.max(w,u.start||0)-e,qt=!!(Y!=null&&Y.live)?Y.targetduration*2:Nu,Pt=B.getPartialFragment(e);if(wt>0&&(wt<=qt||Pt)){o.paused||this._trySkipBufferHole(Pt);return}}const oe=s.detectStallWithCurrentTimeMs,xe=self.performance.now(),Ne=this.waiting;if(c===null){Ne>0&&xe-Ne<oe?this.stalled=Ne:this.stalled=xe;return}const Me=xe-c;if(!A&&(Me>=oe||Ne)&&this.hls){var We;if(((We=this.mediaSource)==null?void 0:We.readyState)==="ended"&&!(Y!=null&&Y.live)&&Math.abs(e-((Y==null?void 0:Y.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(g.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(u),!this.media||!this.hls)return}const ct=Ti.bufferInfo(o,e,s.maxBufferHole);this._tryFixBufferStall(ct,Me)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(g.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var r;const n=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&n&&n.length>1&&e>n.end(0)){const s=Ti.bufferedInfo(Ti.timeRangesToArray(this.buffered.audio),e,0);if(s.len>1&&t>=s.start){const o=Ti.timeRangesToArray(n),c=Ti.bufferedInfo(o,t,0).bufferedIndex;if(c>-1&&c<o.length-1){const A=Ti.bufferedInfo(o,e,0).bufferedIndex,f=o[c].end,M=o[c+1].start;if((A===-1||A>c)&&M-f<1&&e-f<2){const a=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${f} -> ${M} buffered index: ${A}`);this.warn(a.message),this.media.currentTime+=1e-6;const u=this.fragmentTracker.getPartialFragment(e)||void 0,w=Ti.bufferInfo(this.media,e,0);this.hls.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:a,reason:a.message,frag:u,buffer:w.len,bufferInfo:w})}}}}}_tryFixBufferStall(e,t){var r,n;const{fragmentTracker:s,media:o}=this,c=(r=this.hls)==null?void 0:r.config;if(!o||!s||!c)return;const A=o.currentTime,f=(n=this.hls)==null?void 0:n.latestLevelDetails,M=s.getPartialFragment(A);if((M||f!=null&&f.live&&A<f.fragmentStart)&&(this._trySkipBufferHole(M)||!this.media))return;const a=e.buffered;(a&&a.length>1&&e.len>c.maxBufferHole||e.nextStart&&e.nextStart-A<c.maxBufferHole)&&(t>c.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}_reportStall(e){const{hls:t,media:r,stallReported:n,stalled:s}=this;if(!n&&s!==null&&r&&t){this.stallReported=!0;const o=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${ln(e)})`);this.warn(o.message),t.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.BUFFER_STALLED_ERROR,fatal:!1,error:o,buffer:e.len,bufferInfo:e,stalled:{start:s}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:r,media:n}=this,s=(t=this.hls)==null?void 0:t.config;if(!n||!r||!s)return 0;const o=n.currentTime,c=Ti.bufferInfo(n,o,0),A=o<c.start?c.start:c.nextStart;if(A&&this.hls){const M=c.len<=s.maxBufferHole,a=c.len>0&&c.len<1&&n.readyState<3,u=A-o;if(u>0&&(M||a)){if(u>s.maxBufferHole){let B=!1;if(o===0){const Y=r.getAppendedFrag(0,T.MAIN);Y&&A<Y.end&&(B=!0)}if(!B){const Y=e||r.getAppendedFrag(o,T.MAIN);if(Y){var f;if(!((f=this.hls.loadLevelObj)!=null&&f.details)||gc(this.hls.inFlightFragments,A))return 0;let xe=!1,Ne=Y.end;for(;Ne<A;){const Me=r.getPartialFragment(Ne);if(Me)Ne+=Me.duration;else{xe=!0;break}}if(xe)return 0}}}const w=Math.max(A+oA,o+Yc);if(this.warn(`skipping hole, adjusting currentTime from ${o} to ${w}`),this.moved=!0,n.currentTime=w,!(e!=null&&e.gap)){const B=new Error(`fragment loaded with buffer holes, seeking from ${o} to ${w}`);this.hls.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:B,reason:B.message,frag:e||void 0,buffer:c.len,bufferInfo:c})}return w}}return 0}_tryNudgeBuffer(e){const{hls:t,media:r,nudgeRetry:n}=this,s=t==null?void 0:t.config;if(!r||!s)return 0;const o=r.currentTime;if(this.nudgeRetry++,n<s.nudgeMaxRetry){const c=o+(n+1)*s.nudgeOffset,A=new Error(`Nudging 'currentTime' from ${o} to ${c}`);this.warn(A.message),r.currentTime=c,t.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.BUFFER_NUDGE_ON_STALL,error:A,fatal:!1,buffer:e.len,bufferInfo:e})}else{const c=new Error(`Playhead still not moving while enough data buffered @${o} after ${s.nudgeMaxRetry} nudges`);this.error(c.message),t.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.BUFFER_STALLED_ERROR,error:c,fatal:!0,buffer:e.len,bufferInfo:e})}}}function gc(i,e){const t=iu(i.main);if(t&&t.start<=e)return t;const r=iu(i.audio);return r&&r.start<=e?r:null}function iu(i){if(!i)return null;switch(i.state){case Ln.IDLE:case Ln.STOPPED:case Ln.ENDED:case Ln.ERROR:return null}return i.frag}const No=.25;function Fl(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Xc(i,e,t,r,n){let s=new i(e,t,"");try{s.value=r,n&&(s.type=n)}catch(o){s=new i(e,t,ln(n?b({type:n},r):r))}return s}const ic=(()=>{const i=Fl();try{i&&new i(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function wu(i){return Uint8Array.from(i.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class ul{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(g.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e.on(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(g.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(g.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var r;this.media=t.media,((r=t.overrides)==null?void 0:r.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&Bl(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const r=e[t];if(r.kind==="metadata"&&r.label==="id3")return zu(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:r,enableID3MetadataCues:n}}}=this;if(!r&&!n)return;const{samples:s}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const o=Fl();if(o)for(let c=0;c<s.length;c++){const A=s[c].type;if(A===at.emsg&&!r||!n)continue;const f=gt(s[c].data);if(f){const M=s[c].pts;let a=M+s[c].duration;a>ic&&(a=ic),a-M<=0&&(a=M+No);for(let w=0;w<f.length;w++){const B=f[w];if(!Ft(B)){this.updateId3CueEnds(M,A);const Y=Xc(o,M,a,B,A);Y&&this.id3Track.addCue(Y)}}}}}updateId3CueEnds(e,t){var r;const n=(r=this.id3Track)==null?void 0:r.cues;if(n)for(let s=n.length;s--;){const o=n[s];o.type===t&&o.startTime<e&&o.endTime===ic&&(o.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:r,type:n}){const{id3Track:s,hls:o}=this;if(!o)return;const{config:{enableEmsgMetadataCues:c,enableID3MetadataCues:A}}=o;if(s&&(c||A)){let f;n==="audio"?f=M=>M.type===at.audioId3&&A:n==="video"?f=M=>M.type===at.emsg&&c:f=M=>M.type===at.audioId3&&A||M.type===at.emsg&&c,Ae(s,t,r,f)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:r}=this,{dateRanges:n}=e,s=Object.keys(n);let o=this.dateRangeCuesAppended;if(r&&t){var c;if((c=r.cues)!=null&&c.length){const M=Object.keys(o).filter(a=>!s.includes(a));for(let a=M.length;a--;){const u=M[a],w=o[u].cues;delete o[u],Object.keys(w).forEach(B=>{try{const Y=w[B];Y.removeEventListener("enter",this.onEventCueEnter),r.removeCue(Y)}catch(Y){}})}}else o=this.dateRangeCuesAppended={}}const A=e.fragments[e.fragments.length-1];if(s.length===0||!le(A==null?void 0:A.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const f=Fl();for(let M=0;M<s.length;M++){const a=s[M],u=n[a],w=u.startTime,B=o[a],Y=(B==null?void 0:B.cues)||{};let oe=(B==null?void 0:B.durationKnown)||!1,xe=ic;const{duration:Ne,endDate:Me}=u;if(Me&&Ne!==null)xe=w+Ne,oe=!0;else if(u.endOnNext&&!oe){const ct=s.reduce((xt,wt)=>{if(wt!==u.id){const Et=n[wt];if(Et.class===u.class&&Et.startDate>u.startDate&&(!xt||u.startDate<xt.startDate))return Et}return xt},null);ct&&(xe=ct.startTime,oe=!0)}const We=Object.keys(u.attr);for(let ct=0;ct<We.length;ct++){const xt=We[ct];if(!Rs(xt))continue;const wt=Y[xt];if(wt)oe&&!B.durationKnown?wt.endTime=xe:Math.abs(wt.startTime-w)>.01&&(wt.startTime=w,wt.endTime=xe);else if(f){let Et=u.attr[xt];Pn(xt)&&(Et=wu(Et));const Pt=Xc(f,w,xe,{key:xt,data:Et},at.dateRange);Pt&&(Pt.id=a,this.id3Track.addCue(Pt),Y[xt]=Pt,this.hls.config.interstitialsController&&(xt==="X-ASSET-LIST"||xt==="X-ASSET-URL")&&Pt.addEventListener("enter",this.onEventCueEnter))}}o[a]={cues:Y,dateRange:u,durationKnown:oe}}}}class lA{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,r=this.levelDetails;if(!t||!r)return;this.currentTime=t.currentTime;const n=this.computeLatency();if(n===null)return;this._latency=n;const{lowLatencyMode:s,maxLiveSyncPlaybackRate:o}=this.config;if(!s||o===1||!r.live)return;const c=this.targetLatency;if(c===null)return;const A=n-c,f=Math.min(this.maxLatency,c+r.targetduration);if(A<f&&A>.05&&this.forwardBufferLength>1){const a=Math.min(2,Math.max(1,o)),u=Math.round(2/(1+Math.exp(-.75*A-this.edgeStalled))*20)/20,w=Math.min(a,Math.max(1,u));this.changeMediaPlaybackRate(t,w)}else t.playbackRate!==1&&t.playbackRate!==0&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(e.liveMaxLatencyDuration!==void 0)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||this.hls===null)return null;const{holdBack:t,partHoldBack:r,targetduration:n}=e,{liveSyncDuration:s,liveSyncDurationCount:o,lowLatencyMode:c}=this.config,A=this.hls.userConfig;let f=c&&r||t;(this._targetLatencyUpdated||A.liveSyncDuration||A.liveSyncDurationCount||f===0)&&(f=s!==void 0?s:o*n);const M=n;return f+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,M)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null)return null;const r=this.levelDetails;if(r===null)return null;const n=r.edge,s=e-t-this.edgeStalled,o=n-r.totalduration,c=n-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(o,s),c)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(g.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(g.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(g.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(g.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var r;t.details===K.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(r=this.levelDetails)!=null&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var r,n;e.playbackRate!==t&&((r=this.hls)==null||r.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(n=this.targetLatency)==null?void 0:n.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}class uA extends Ns{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this),e.on(g.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this),e.off(g.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const r=this.hls.config.preferManagedMediaSource,n=[],s={},o={};let c=!1,A=!1,f=!1;t.levels.forEach(M=>{var a;const u=M.attrs;let{audioCodec:w,videoCodec:B}=M;w&&(M.audioCodec=w=Bt(w,r)||void 0),((a=B)==null?void 0:a.indexOf("avc1"))===0&&(B=M.videoCodec=hi(B));const{width:Y,height:oe,unknownCodecs:xe}=M;let Ne=xe?xe.length:0;if(xe)for(let Gt=Ne;Gt--;){const tr=xe[Gt];this.isAudioSupported(tr)?(M.audioCodec=w=w?`${w},${tr}`:tr,Ne--,Rr.audio[w.substring(0,4)]=2):this.isVideoSupported(tr)&&(M.videoCodec=B=B?`${B},${tr}`:tr,Ne--,Rr.video[B.substring(0,4)]=2)}if(c||(c=!!(Y&&oe)),A||(A=!!B),f||(f=!!w),Ne||w&&!this.isAudioSupported(w)||B&&!this.isVideoSupported(B)){this.log(`Some or all CODECS not supported "${u.CODECS}"`);return}const{CODECS:Me,"FRAME-RATE":We,"HDCP-LEVEL":ct,"PATHWAY-ID":xt,RESOLUTION:wt,"VIDEO-RANGE":Et}=u,Pt=`${`${xt||"."}-`}${M.bitrate}-${wt}-${We}-${Me}-${Et}-${ct}`;if(s[Pt])if(s[Pt].uri!==M.url&&!M.attrs["PATHWAY-ID"]){const Gt=o[Pt]+=1;M.attrs["PATHWAY-ID"]=new Array(Gt+1).join(".");const tr=this.createLevel(M);s[Pt]=tr,n.push(tr)}else s[Pt].addGroupId("audio",u.AUDIO),s[Pt].addGroupId("text",u.SUBTITLES);else{const Gt=this.createLevel(M);s[Pt]=Gt,o[Pt]=1,n.push(Gt)}}),this.filterAndSortMediaOptions(n,t,c,A,f)}createLevel(e){const t=new vn(e),r=e.supplemental;if(r!=null&&r.videoCodec&&!this.isVideoSupported(r.videoCodec)){const n=new Error(`SUPPLEMENTAL-CODECS not supported "${r.videoCodec}"`);this.log(n.message),t.supportedResult=Dr(n,[])}return t}isAudioSupported(e){return Rt(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return Rt(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,r,n,s){let o=[],c=[],A=e;if((r||n)&&s&&(A=A.filter(({videoCodec:B,videoRange:Y,width:oe,height:xe})=>(!!B||!!(oe&&xe))&&un(Y))),A.length===0){Promise.resolve().then(()=>{if(this.hls){let B="no level with compatible codecs found in manifest",Y=B;t.levels.length&&(Y=`one or more CODECS in variant not supported: ${ln(t.levels.map(xe=>xe.attrs.CODECS).filter((xe,Ne,Me)=>Me.indexOf(xe)===Ne))}`,this.warn(Y),B+=` (${Y})`);const oe=new Error(B);this.hls.trigger(g.ERROR,{type:Re.MEDIA_ERROR,details:K.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:oe,reason:Y})}});return}t.audioTracks&&(o=t.audioTracks.filter(B=>!B.audioCodec||this.isAudioSupported(B.audioCodec)),jc(o)),t.subtitles&&(c=t.subtitles,jc(c));const f=A.slice(0);A.sort((B,Y)=>{if(B.attrs["HDCP-LEVEL"]!==Y.attrs["HDCP-LEVEL"])return(B.attrs["HDCP-LEVEL"]||"")>(Y.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&B.height!==Y.height)return B.height-Y.height;if(B.frameRate!==Y.frameRate)return B.frameRate-Y.frameRate;if(B.videoRange!==Y.videoRange)return kr.indexOf(B.videoRange)-kr.indexOf(Y.videoRange);if(B.videoCodec!==Y.videoCodec){const oe=pt(B.videoCodec),xe=pt(Y.videoCodec);if(oe!==xe)return xe-oe}if(B.uri===Y.uri&&B.codecSet!==Y.codecSet){const oe=rt(B.codecSet),xe=rt(Y.codecSet);if(oe!==xe)return xe-oe}return B.averageBitrate!==Y.averageBitrate?B.averageBitrate-Y.averageBitrate:0});let M=f[0];if(this.steering&&(A=this.steering.filterParsedLevels(A),A.length!==f.length)){for(let B=0;B<f.length;B++)if(f[B].pathwayId===A[0].pathwayId){M=f[B];break}}this._levels=A;for(let B=0;B<A.length;B++)if(A[B]===M){var a;this._firstLevel=B;const Y=M.bitrate,oe=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${A.length} level(s) found, first bitrate: ${Y}`),((a=this.hls.userConfig)==null?void 0:a.abrEwmaDefaultEstimate)===void 0){const xe=Math.min(Y,this.hls.config.abrEwmaDefaultEstimateMax);xe>oe&&oe===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=xe)}break}const u=s&&!n,w={levels:A,audioTracks:o,subtitleTracks:c,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:s,video:n,altAudio:!u&&o.some(B=>!!B.url)};this.hls.trigger(g.MANIFEST_PARSED,w)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const M=new Error("invalid level idx"),a=e<0;if(this.hls.trigger(g.ERROR,{type:Re.OTHER_ERROR,details:K.LEVEL_SWITCH_ERROR,level:e,fatal:a,error:M,reason:M.message}),a)return;e=Math.min(e,t.length-1)}const r=this.currentLevelIndex,n=this.currentLevel,s=n?n.attrs["PATHWAY-ID"]:void 0,o=t[e],c=o.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=o,r===e&&n&&s===c)return;this.log(`Switching to level ${e} (${o.height?o.height+"p ":""}${o.videoRange?o.videoRange+" ":""}${o.codecSet?o.codecSet+" ":""}@${o.bitrate})${c?" with Pathway "+c:""} from level ${r}${s?" with Pathway "+s:""}`);const A={level:e,attrs:o.attrs,details:o.details,bitrate:o.bitrate,averageBitrate:o.averageBitrate,maxBitrate:o.maxBitrate,realBitrate:o.realBitrate,width:o.width,height:o.height,codecSet:o.codecSet,audioCodec:o.audioCodec,videoCodec:o.videoCodec,audioGroups:o.audioGroups,subtitleGroups:o.subtitleGroups,loaded:o.loaded,loadError:o.loadError,fragmentError:o.fragmentError,name:o.name,id:o.id,uri:o.uri,url:o.url,urlId:0,audioGroupIds:o.audioGroupIds,textGroupIds:o.textGroupIds};this.hls.trigger(g.LEVEL_SWITCHING,A);const f=o.details;if(!f||f.live){const M=this.switchParams(o.uri,n==null?void 0:n.details,f);this.loadPlaylist(M)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),r=e.filter(n=>t.indexOf(n)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=r}}onError(e,t){t.fatal||!t.context||t.context.type===R.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===T.MAIN){const r=t.elementaryStreams;if(!Object.keys(r).some(s=>!!r[s]))return;const n=this._levels[t.level];n!=null&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(e,t){var r;const{level:n,details:s}=t,o=t.levelInfo;if(!o){var c;this.warn(`Invalid level index ${n}`),(c=t.deliveryDirectives)!=null&&c.skip&&(s.deltaUpdateFailed=!0);return}if(o===this.currentLevel||t.withoutMultiVariant){o.fragmentError===0&&(o.loadError=0);let A=o.details;A===t.details&&A.advanced&&(A=void 0),this.playlistLoaded(n,t,A)}else(r=t.deliveryDirectives)!=null&&r.skip&&(s.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=this.getUrlWithDirectives(e.uri,t),n=this.currentLevelIndex,s=e.attrs["PATHWAY-ID"],o=e.details,c=o==null?void 0:o.age;this.log(`Loading level index ${n}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${s?" Pathway "+s:""}${c&&o.live?" age "+c.toFixed(1)+(o.type?" "+o.type||0:""):""} ${r}`),this.hls.trigger(g.LEVEL_LOADING,{url:r,level:n,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(this._levels.length===1)return;const r=this._levels.filter((s,o)=>o!==e?!0:(this.steering&&this.steering.removeLevel(s),s===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,s.details&&s.details.fragments.forEach(c=>c.level=-1)),!1));Go(r),this._levels=r,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const n=r.length-1;this._firstLevel=Math.min(this._firstLevel,n),this._startLevel&&(this._startLevel=Math.min(this._startLevel,n)),this.hls.trigger(g.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(g.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function jc(i){const e={};i.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}function $c(){return self.SourceBuffer||self.WebKitSourceBuffer}function Hc(){if(!ye())return!1;const e=$c();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function Jc(){if(!Hc())return!1;const i=ye();return typeof(i==null?void 0:i.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>i.isTypeSupported(qe(e,"video")))||["mp4a.40.2","fLaC"].some(e=>i.isTypeSupported(qe(e,"audio"))))}function cA(){var i;const e=$c();return typeof(e==null||(i=e.prototype)==null?void 0:i.changeType)=="function"}const _c=100;class Cc extends _o{constructor(e,t,r){super(e,t,r,"stream-controller",T.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const n=this.media,s=n?n.currentTime:null;if(s===null||!le(s)||(this.log(`Media seeked to ${s.toFixed(3)}`),!this.getBufferedFrag(s)))return;const o=this.getFwdBufferInfoAtPos(n,s,T.MAIN,0);if(o===null||o.len===0){this.warn(`Main forward buffer length at ${s} on "seeked" event ${o?o.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(g.MANIFEST_PARSED,this.onManifestParsed,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.LEVEL_LOADED,this.onLevelLoaded,this),e.on(g.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(g.BUFFER_CREATED,this.onBufferCreated,this),e.on(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(g.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(g.MANIFEST_PARSED,this.onManifestParsed,this),e.off(g.LEVEL_LOADED,this.onLevelLoaded,this),e.off(g.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(g.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(g.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(g.BUFFER_CREATED,this.onBufferCreated,this),e.off(g.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(g.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:r,hls:n}=this;if(this.stopLoad(),this.setInterval(_c),this.level=-1,!this.startFragRequested){let s=n.startLevel;s===-1&&(n.config.testBandwidth&&this.levels.length>1?(s=0,this.bitrateTest=!0):s=n.firstAutoLevel),n.nextLoadLevel=s,this.level=n.loadLevel,this._hasEnoughToStart=!!t}r>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),e=r),this.state=Ln.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Ln.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Ln.WAITING_LEVEL:{const{levels:t,level:r}=this,n=t==null?void 0:t[r],s=n==null?void 0:n.details;if(s&&(!s.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(s))break;this.state=Ln.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Ln.IDLE;break}break}case Ln.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),r=this.retryDate;if(!r||t>=r||(e=this.media)!=null&&e.seeking){const{levels:n,level:s}=this,o=n==null?void 0:n[s];this.resetStartWhenNotLoaded(o||null),this.state=Ln.IDLE}}break}this.state===Ln.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:r,media:n}=this;if(t===null||!n&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const s=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(r!=null&&r[s]))return;const o=r[s],c=this.getMainFwdBufferInfo();if(c===null)return;const A=this.getLevelDetails();if(A&&this._streamEnded(c,A)){const Y={};this.altAudio===2&&(Y.type="video"),this.hls.trigger(g.BUFFER_EOS,Y),this.state=Ln.ENDED;return}if(!this.buffering)return;e.loadLevel!==s&&e.manualLevel===-1&&this.log(`Adapting to level ${s} from level ${this.level}`),this.level=e.nextLoadLevel=s;const f=o.details;if(!f||this.state===Ln.WAITING_LEVEL||this.waitForLive(o)){this.level=s,this.state=Ln.WAITING_LEVEL,this.startFragRequested=!1;return}const M=c.len,a=this.getMaxBufferLength(o.maxBitrate);if(M>=a)return;this.backtrackFragment&&this.backtrackFragment.start>c.end&&(this.backtrackFragment=null);const u=this.backtrackFragment?this.backtrackFragment.start:c.end;let w=this.getNextFragment(u,f);if(this.couldBacktrack&&!this.fragPrevious&&w&&de(w)&&this.fragmentTracker.getState(w)!==$n.OK){var B;const oe=((B=this.backtrackFragment)!=null?B:w).sn-f.startSN,xe=f.fragments[oe-1];xe&&w.cc===xe.cc&&(w=xe,this.fragmentTracker.removeFragment(xe))}else this.backtrackFragment&&c.len&&(this.backtrackFragment=null);if(w&&this.isLoopLoading(w,u)){if(!w.gap){const oe=this.audioOnly&&!this.altAudio?U.AUDIO:U.VIDEO,xe=(oe===U.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;xe&&this.afterBufferFlushed(xe,oe,T.MAIN)}w=this.getNextFragmentLoopLoading(w,f,c,T.MAIN,a)}w&&(w.initSegment&&!w.initSegment.data&&!this.bitrateTest&&(w=w.initSegment),this.loadFragment(w,o,u))}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);n===$n.NOT_LOADED||n===$n.PARTIAL?de(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,r):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,T.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let r;const n=this.getAppendedFrag(t.currentTime);n&&n.start>1&&this.flushMainBuffer(0,n.start-1);const s=this.getLevelDetails();if(s!=null&&s.live){const c=this.getMainFwdBufferInfo();if(!c||c.len<s.targetduration*2)return}if(!t.paused&&e){const c=this.hls.nextLoadLevel,A=e[c],f=this.fragLastKbps;f&&this.fragCurrent?r=this.fragCurrent.duration*A.maxBitrate/(1e3*f)+1:r=0}else r=0;const o=this.getBufferedFrag(t.currentTime+r);if(o){const c=this.followingBufferedFrag(o);if(c){this.abortCurrentFrag();const A=c.maxStartPTS?c.maxStartPTS:c.start,f=c.duration,M=Math.max(o.end,A+Math.min(Math.max(f-this.config.maxFragLookUpTolerance,f*(this.couldBacktrack?.5:.125)),f*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(M,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case Ln.KEY_LOADING:case Ln.FRAG_LOADING:case Ln.FRAG_LOADING_WAITING_RETRY:case Ln.PARSING:case Ln.PARSED:this.state=Ln.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio===2?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const r=t.media;no(r,"playing",this.onMediaPlaying),no(r,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:r}=this;r&&(Ro(r,"playing",this.onMediaPlaying),Ro(r,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(g.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let r=!1,n=!1;t.levels.forEach(s=>{const o=s.audioCodec;o&&(r=r||o.indexOf("mp4a.40.2")!==-1,n=n||o.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=r&&n&&!cA(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:r}=this;if(!r||this.state!==Ln.IDLE)return;const n=t.levelInfo;(!n.details||n.details.live&&(this.levelLastLoaded!==n||n.details.expired)||this.waitForCdnTuneIn(n.details))&&(this.state=Ln.WAITING_LEVEL)}onLevelLoaded(e,t){var r;const{levels:n,startFragRequested:s}=this,o=t.level,c=t.details,A=c.totalduration;if(!n){this.warn(`Levels were reset while loading level ${o}`);return}this.log(`Level ${o} loaded [${c.startSN},${c.endSN}]${c.lastPartSn?`[part-${c.lastPartSn}-${c.lastPartIndex}]`:""}, cc [${c.startCC}, ${c.endCC}] duration:${A}`);const f=t.levelInfo,M=this.fragCurrent;M&&(this.state===Ln.FRAG_LOADING||this.state===Ln.FRAG_LOADING_WAITING_RETRY)&&M.level!==t.level&&M.loader&&this.abortCurrentFrag();let a=0;if(c.live||(r=f.details)!=null&&r.live){var u;if(this.checkLiveUpdate(c),c.deltaUpdateFailed)return;a=this.alignPlaylists(c,f.details,(u=this.levelLastLoaded)==null?void 0:u.details)}if(f.details=c,this.levelLastLoaded=f,s||this.setStartPosition(c,a),this.hls.trigger(g.LEVEL_UPDATED,{details:c,level:o}),this.state===Ln.WAITING_LEVEL){if(this.waitForCdnTuneIn(c))return;this.state=Ln.IDLE}s&&c.live&&this.synchronizeToLiveEdge(c),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:r}=this;if(!r)return;const n=this.hls.liveSyncPosition,s=this.getLoadPosition(),o=e.fragmentStart,c=e.edge,A=s>=o-t.maxFragLookUpTolerance&&s<=c;if(n!==null&&r.duration>n&&(s<n||!A)){const f=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!A&&r.readyState<4||s<c-f)&&(this._hasEnoughToStart||(this.nextLoadPosition=n),r.readyState&&(this.warn(`Playback: ${s.toFixed(3)} is located too far from the end of live sliding playlist: ${c}, reset currentTime to : ${n.toFixed(3)}`),r.currentTime=n))}}_handleFragmentLoadProgress(e){var t;const r=e.frag,{part:n,payload:s}=e,{levels:o}=this;if(!o){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const c=o[r.level];if(!c){this.warn(`Level ${r.level} not found on progress`);return}const A=c.details;if(!A){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const f=c.videoCodec,M=A.PTSKnown||!A.live,a=(t=r.initSegment)==null?void 0:t.data,u=this._getAudioCodec(c),w=this.transmuxer=this.transmuxer||new Qa(this.hls,T.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),B=n?n.index:-1,Y=B!==-1,oe=new gi(r.level,r.sn,r.stats.chunkCount,s.byteLength,B,Y),xe=this.initPTS[r.cc];w.push(s,a,u,f,r,n,A.totalduration,M,oe,xe)}onAudioTrackSwitching(e,t){const r=this.hls,n=this.altAudio===2;if(Kn(t.url,r))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const o=this.fragCurrent;o&&(this.log("Switching to main audio track, cancel main fragment load"),o.abortRequests(),this.fragmentTracker.removeFragment(o)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(n){this.fragmentTracker.removeAllFragments(),r.once(g.BUFFER_FLUSHED,()=>{var o;(o=this.hls)==null||o.trigger(g.AUDIO_TRACK_SWITCHED,t)}),r.trigger(g.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(g.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const r=Kn(t.url,this.hls);if(r){const n=this.videoBuffer;n&&this.mediaBuffer!==n&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=n)}this.altAudio=r?2:0,this.tick()}onBufferCreated(e,t){const r=t.tracks;let n,s,o=!1;for(const c in r){const A=r[c];if(A.id==="main"){if(s=c,n=A,c==="video"){const f=r[c];f&&(this.videoBuffer=f.buffer)}}else o=!0}o&&n?(this.log(`Alternate track found, use ${s}.buffered to schedule main fragment loading`),this.mediaBuffer=n.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:r,part:n}=t,s=r.type===T.MAIN;if(s){if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${n?" p: "+n.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Ln.PARSED&&(this.state=Ln.IDLE);return}const c=n?n.stats:r.stats;this.fragLastKbps=Math.round(8*c.total/(c.buffering.end-c.loading.first)),de(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,n)}const o=this.media;o&&(!this._hasEnoughToStart&&Ti.getBuffered(o).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),s&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var r;if(t.fatal){this.state=Ln.ERROR;return}switch(t.details){case K.FRAG_GAP:case K.FRAG_PARSING_ERROR:case K.FRAG_DECRYPT_ERROR:case K.FRAG_LOAD_ERROR:case K.FRAG_LOAD_TIMEOUT:case K.KEY_LOAD_ERROR:case K.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(T.MAIN,t);break;case K.LEVEL_LOAD_ERROR:case K.LEVEL_LOAD_TIMEOUT:case K.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Ln.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===R.LEVEL&&(this.state=Ln.IDLE);break;case K.BUFFER_ADD_CODEC_ERROR:case K.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.resetLoadingState();break;case K.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case K.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=Ln.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==U.AUDIO||!this.altAudio){const r=(t===U.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,t,T.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let r=this.startPosition;if(r>=0&&t<r){if(e.seeking){this.log(`could not seek to ${r}, already seeking at ${t}`);return}const n=this.timelineOffset;n&&r&&(r+=n);const s=this.getLevelDetails(),o=Ti.getBuffered(e),c=o.length?o.start(0):0,A=c-r,f=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);A>0&&(A<f||this.loadingParts&&A<2*((s==null?void 0:s.partTarget)||0))&&(this.log(`adjusting start position by ${A} to match buffer start`),r+=A,this.startPosition=r),t<r&&(this.log(`seek to target start position ${r} from current time ${t} buffer start ${c}`),e.currentTime=r)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(r=>{const{hls:n}=this,s=r==null?void 0:r.frag;if(!s||this.fragContextChanged(s))return;t.fragmentError=0,this.state=Ln.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const o=s.stats;o.parsing.start=o.parsing.end=o.buffering.start=o.buffering.end=self.performance.now(),n.trigger(g.FRAG_LOADED,r),s.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const r=this.playlistType,{hls:n}=this,{remuxResult:s,chunkMeta:o}=e,c=this.getCurrentContext(o);if(!c){this.resetWhenMissingContext(o);return}const{frag:A,part:f,level:M}=c,{video:a,text:u,id3:w,initSegment:B}=s,{details:Y}=M,oe=this.altAudio?void 0:s.audio;if(this.fragContextChanged(A)){this.fragmentTracker.removeFragment(A);return}if(this.state=Ln.PARSING,B){if(B!=null&&B.tracks){const Me=A.initSegment||A;this._bufferInitSegment(M,B.tracks,Me,o),n.trigger(g.FRAG_PARSING_INIT_SEGMENT,{frag:Me,id:r,tracks:B.tracks})}const xe=B.initPTS,Ne=B.timescale;le(xe)&&(this.initPTS[A.cc]={baseTime:xe,timescale:Ne},n.trigger(g.INIT_PTS_FOUND,{frag:A,id:r,initPTS:xe,timescale:Ne}))}if(a&&Y){const xe=Y.fragments[A.sn-1-Y.startSN],Ne=A.sn===Y.startSN,Me=!xe||A.cc>xe.cc;if(s.independent!==!1){const{startPTS:We,endPTS:ct,startDTS:xt,endDTS:wt}=a;if(f)f.elementaryStreams[a.type]={startPTS:We,endPTS:ct,startDTS:xt,endDTS:wt};else if(a.firstKeyFrame&&a.independent&&o.id===1&&!Me&&(this.couldBacktrack=!0),a.dropped&&a.independent){const Et=this.getMainFwdBufferInfo(),qt=(Et?Et.end:this.getLoadPosition())+this.config.maxBufferHole,Pt=a.firstKeyFramePTS?a.firstKeyFramePTS:We;if(!Ne&&qt<Pt-this.config.maxBufferHole&&!Me){this.backtrack(A);return}else Me&&(A.gap=!0);A.setElementaryStreamInfo(a.type,A.start,ct,A.start,wt,!0)}else Ne&&We-(Y.appliedTimelineOffset||0)>Nu&&(A.gap=!0);A.setElementaryStreamInfo(a.type,We,ct,xt,wt),this.backtrackFragment&&(this.backtrackFragment=A),this.bufferFragmentData(a,A,f,o,Ne||Me)}else if(Ne||Me)A.gap=!0;else{this.backtrack(A);return}}if(oe){const{startPTS:xe,endPTS:Ne,startDTS:Me,endDTS:We}=oe;f&&(f.elementaryStreams[U.AUDIO]={startPTS:xe,endPTS:Ne,startDTS:Me,endDTS:We}),A.setElementaryStreamInfo(U.AUDIO,xe,Ne,Me,We),this.bufferFragmentData(oe,A,f,o)}if(Y&&w!=null&&(t=w.samples)!=null&&t.length){const xe={id:r,frag:A,details:Y,samples:w.samples};n.trigger(g.FRAG_PARSING_METADATA,xe)}if(Y&&u){const xe={id:r,frag:A,details:Y,samples:u.samples};n.trigger(g.FRAG_PARSING_USERDATA,xe)}}_bufferInitSegment(e,t,r,n){if(this.state!==Ln.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:s,video:o,audiovideo:c}=t;if(s){let f=On(s.codec,e.audioCodec);f==="mp4a"&&(f="mp4a.40.5");const M=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const a=s.metadata;a&&"channelCount"in a&&(a.channelCount||1)!==1&&M.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&M.indexOf("android")!==-1&&s.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),e.audioCodec&&e.audioCodec!==f&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${f}"`),s.levelCodec=f,s.id=T.MAIN,this.log(`Init audio buffer, container:${s.container}, codecs[selected/level/parsed]=[${f||""}/${e.audioCodec||""}/${s.codec}]`),delete t.audiovideo}if(o){o.levelCodec=e.videoCodec,o.id=T.MAIN;const f=o.codec;if((f==null?void 0:f.length)===4)switch(f){case"hvc1":case"hev1":o.codec="hvc1.1.6.L120.90";break;case"av01":o.codec="av01.0.04M.08";break;case"avc1":o.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${o.container}, codecs[level/parsed]=[${e.videoCodec||""}/${f}]${o.codec!==f?" parsed-corrected="+o.codec:""}${o.supplemental?" supplemental="+o.supplemental:""}`),delete t.audiovideo}c&&(this.log(`Init audiovideo buffer, container:${c.container}, codecs[level/parsed]=[${e.codecs}/${c.codec}]`),delete t.video,delete t.audio);const A=Object.keys(t);if(A.length){if(this.hls.trigger(g.BUFFER_CODECS,t),!this.hls)return;A.forEach(f=>{const a=t[f].initSegment;a!=null&&a.byteLength&&this.hls.trigger(g.BUFFER_APPENDING,{type:f,data:a,frag:r,part:null,chunkMeta:n,parent:r.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,T.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,r=e==null?void 0:e[t];return r?this.getMaxBufferLength(r.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Ln.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(Ti.isBuffered(e,r)?t=this.getAppendedFrag(r):Ti.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;const n=this.fragPlaying,s=t.level;(!n||t.sn!==n.sn||n.level!==s)&&(this.fragPlaying=t,this.hls.trigger(g.FRAG_CHANGED,{frag:t}),(!n||n.level!==s)&&this.hls.trigger(g.LEVEL_SWITCHED,{level:s}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return le(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(le(t)){const r=this.getLevelDetails(),n=this.currentFrag||(r?hr(null,r.fragments,t):null);if(n){const s=n.programDateTime;if(s!==null){const o=s+(t-n.start)*1e3;return new Date(o)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class vc{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyUriToKeyInfo){const n=this.keyUriToKeyInfo[r].loader;if(n){var t;if(e&&e!==((t=n.context)==null?void 0:t.frag.type))return;n.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=K.KEY_LOAD_ERROR,r,n,s){return new vs({type:Re.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:s,error:r,networkDetails:n})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:r,cc:n}=e;for(let s=0;s<t.length;s++){const o=t[s];if(n<=o.cc&&(r==="initSegment"||o.sn==="initSegment"||r<o.sn)){this.emeController.selectKeySystemFormat(o).then(c=>{o.setKeyFormat(c)});break}}}}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var r,n;t&&e.setKeyFormat(t);const s=e.decryptdata;if(!s){const f=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,K.KEY_LOAD_ERROR,f))}const o=s.uri;if(!o)return Promise.reject(this.createKeyLoadError(e,K.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${o}"`)));let c=this.keyUriToKeyInfo[o];if((r=c)!=null&&r.decryptdata.key)return s.key=c.decryptdata.key,Promise.resolve({frag:e,keyInfo:c});if((n=c)!=null&&n.keyLoadPromise){var A;switch((A=c.mediaKeySessionContext)==null?void 0:A.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return c.keyLoadPromise.then(f=>(s.key=f.keyInfo.decryptdata.key,{frag:e,keyInfo:c}))}}switch(c=this.keyUriToKeyInfo[o]={decryptdata:s,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},s.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return s.keyFormat==="identity"?this.loadKeyHTTP(c,e):this.loadKeyEME(c,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(c,e);default:return Promise.reject(this.createKeyLoadError(e,K.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${s.method}"`)))}}loadKeyEME(e,t){const r={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const n=this.emeController.loadKey(r);if(n)return(e.keyLoadPromise=n.then(s=>(e.mediaKeySessionContext=s,r))).catch(s=>{throw e.keyLoadPromise=null,s})}return Promise.resolve(r)}loadKeyHTTP(e,t){const r=this.config,n=r.loader,s=new n(r);return t.keyLoader=e.loader=s,e.keyLoadPromise=new Promise((o,c)=>{const A={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},f=r.keyLoadPolicy.default,M={loadPolicy:f,timeout:f.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},a={onSuccess:(u,w,B,Y)=>{const{frag:oe,keyInfo:xe,url:Ne}=B;if(!oe.decryptdata||xe!==this.keyUriToKeyInfo[Ne])return c(this.createKeyLoadError(oe,K.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Y));xe.decryptdata.key=oe.decryptdata.key=new Uint8Array(u.data),oe.keyLoader=null,xe.loader=null,o({frag:oe,keyInfo:xe})},onError:(u,w,B,Y)=>{this.resetLoader(w),c(this.createKeyLoadError(t,K.KEY_LOAD_ERROR,new Error(`HTTP Error ${u.code} loading key ${u.text}`),B,b({url:A.url,data:void 0},u)))},onTimeout:(u,w,B)=>{this.resetLoader(w),c(this.createKeyLoadError(t,K.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),B))},onAbort:(u,w,B)=>{this.resetLoader(w),c(this.createKeyLoadError(t,K.INTERNAL_ABORTED,new Error("key loading aborted"),B))}};s.load(A,M,a)})}resetLoader(e){const{frag:t,keyInfo:r,url:n}=e,s=r.loader;t.keyLoader===s&&(t.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[n],s&&s.destroy()}}function Sc(i){const{type:e}=i;switch(e){case R.AUDIO_TRACK:return T.AUDIO;case R.SUBTITLE_TRACK:return T.SUBTITLE;default:return T.MAIN}}function Bc(i,e){let t=i.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class AA{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(g.MANIFEST_LOADING,this.onManifestLoading,this),e.on(g.LEVEL_LOADING,this.onLevelLoading,this),e.on(g.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(g.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(g.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(g.MANIFEST_LOADING,this.onManifestLoading,this),e.off(g.LEVEL_LOADING,this.onLevelLoading,this),e.off(g.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(g.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(g.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,r=t.pLoader,n=t.loader,s=r||n,o=new s(t);return this.loaders[e.type]=o,o}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:r}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:R.MANIFEST,url:r,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:r,level:n,pathwayId:s,url:o,deliveryDirectives:c,levelInfo:A}=t;this.load({id:r,level:n,pathwayId:s,responseType:"text",type:R.LEVEL,url:o,deliveryDirectives:c,levelOrTrack:A})}onAudioTrackLoading(e,t){const{id:r,groupId:n,url:s,deliveryDirectives:o,track:c}=t;this.load({id:r,groupId:n,level:null,responseType:"text",type:R.AUDIO_TRACK,url:s,deliveryDirectives:o,levelOrTrack:c})}onSubtitleTrackLoading(e,t){const{id:r,groupId:n,url:s,deliveryDirectives:o,track:c}=t;this.load({id:r,groupId:n,level:null,responseType:"text",type:R.SUBTITLE_TRACK,url:s,deliveryDirectives:o,levelOrTrack:c})}onLevelsUpdated(e,t){const r=this.loaders[R.LEVEL];if(r){const n=r.context;n&&!t.levels.some(s=>s===n.levelOrTrack)&&(r.abort(),delete this.loaders[R.LEVEL])}}load(e){var t;const r=this.hls.config;let n=this.getInternalLoader(e);if(n){const f=this.hls.logger,M=n.context;if(M&&M.levelOrTrack===e.levelOrTrack&&(M.url===e.url||M.deliveryDirectives&&!e.deliveryDirectives)){M.url===e.url?f.log(`[playlist-loader]: ignore ${e.url} ongoing request`):f.log(`[playlist-loader]: ignore ${e.url} in favor of ${M.url}`);return}f.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),n.abort()}let s;if(e.type===R.MANIFEST?s=r.manifestLoadPolicy.default:s=v({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),n=this.createInternalLoader(e),le((t=e.deliveryDirectives)==null?void 0:t.part)){let f;if(e.type===R.LEVEL&&e.level!==null?f=this.hls.levels[e.level].details:e.type===R.AUDIO_TRACK&&e.id!==null?f=this.hls.audioTracks[e.id].details:e.type===R.SUBTITLE_TRACK&&e.id!==null&&(f=this.hls.subtitleTracks[e.id].details),f){const M=f.partTarget,a=f.targetduration;if(M&&a){const u=Math.max(M*3,a*.8)*1e3;s=v({},s,{maxTimeToFirstByteMs:Math.min(u,s.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(u,s.maxTimeToFirstByteMs)})}}}const o=s.errorRetry||s.timeoutRetry||{},c={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:o.maxNumRetry||0,retryDelay:o.retryDelayMs||0,maxRetryDelay:o.maxRetryDelayMs||0},A={onSuccess:(f,M,a,u)=>{const w=this.getInternalLoader(a);this.resetInternalLoader(a.type);const B=f.data;if(B.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(f,a,new Error("no EXTM3U delimiter"),u||null,M);return}M.parsing.start=performance.now(),fa.isMediaPlaylist(B)||a.type!==R.MANIFEST?this.handleTrackOrLevelPlaylist(f,M,a,u||null,w):this.handleMasterPlaylist(f,M,a,u)},onError:(f,M,a,u)=>{this.handleNetworkError(M,a,!1,f,u)},onTimeout:(f,M,a)=>{this.handleNetworkError(M,a,!0,void 0,f)}};n.load(e,c,A)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:r}=this.hls;(e||r)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,r,n){const s=this.hls,o=e.data,c=Bc(e,r),A=fa.parseMasterPlaylist(o,c);if(A.playlistParsingError){this.handleManifestParsingError(e,r,A.playlistParsingError,n,t);return}const{contentSteering:f,levels:M,sessionData:a,sessionKeys:u,startTimeOffset:w,variableList:B}=A;this.variableList=B;const{AUDIO:Y=[],SUBTITLES:oe,"CLOSED-CAPTIONS":xe}=fa.parseMasterPlaylistMedia(o,c,A);Y.length&&!Y.some(Me=>!Me.url)&&M[0].audioCodec&&!M[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Y.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Vi({}),bitrate:0,url:""})),s.trigger(g.MANIFEST_LOADED,{levels:M,audioTracks:Y,subtitles:oe,captions:xe,contentSteering:f,url:c,stats:t,networkDetails:n,sessionData:a,sessionKeys:u,startTimeOffset:w,variableList:B})}handleTrackOrLevelPlaylist(e,t,r,n,s){const o=this.hls,{id:c,level:A,type:f}=r,M=Bc(e,r),a=le(A)?A:le(c)?c:0,u=Sc(r),w=fa.parseLevelPlaylist(e.data,M,a,u,0,this.variableList);if(f===R.MANIFEST){const B={attrs:new Vi({}),bitrate:0,details:w,name:"",url:M};w.requestScheduled=t.loading.start+El(w,0),o.trigger(g.MANIFEST_LOADED,{levels:[B],audioTracks:[],url:M,stats:t,networkDetails:n,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=w,this.handlePlaylistLoaded(w,e,t,r,n,s)}handleManifestParsingError(e,t,r,n,s){this.hls.trigger(g.ERROR,{type:Re.NETWORK_ERROR,details:K.MANIFEST_PARSING_ERROR,fatal:t.type===R.MANIFEST,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:n,stats:s})}handleNetworkError(e,t,r=!1,n,s){let o=`A network ${r?"timeout":"error"+(n?" (status "+n.code+")":"")} occurred while loading ${e.type}`;e.type===R.LEVEL?o+=`: ${e.level} id: ${e.id}`:(e.type===R.AUDIO_TRACK||e.type===R.SUBTITLE_TRACK)&&(o+=` id: ${e.id} group-id: "${e.groupId}"`);const c=new Error(o);this.hls.logger.warn(`[playlist-loader]: ${o}`);let A=K.UNKNOWN,f=!1;const M=this.getInternalLoader(e);switch(e.type){case R.MANIFEST:A=r?K.MANIFEST_LOAD_TIMEOUT:K.MANIFEST_LOAD_ERROR,f=!0;break;case R.LEVEL:A=r?K.LEVEL_LOAD_TIMEOUT:K.LEVEL_LOAD_ERROR,f=!1;break;case R.AUDIO_TRACK:A=r?K.AUDIO_TRACK_LOAD_TIMEOUT:K.AUDIO_TRACK_LOAD_ERROR,f=!1;break;case R.SUBTITLE_TRACK:A=r?K.SUBTITLE_TRACK_LOAD_TIMEOUT:K.SUBTITLE_LOAD_ERROR,f=!1;break}M&&this.resetInternalLoader(e.type);const a={type:Re.NETWORK_ERROR,details:A,fatal:f,url:e.url,loader:M,context:e,error:c,networkDetails:t,stats:s};if(n){const u=(t==null?void 0:t.url)||e.url;a.response=b({url:u,data:void 0},n)}this.hls.trigger(g.ERROR,a)}handlePlaylistLoaded(e,t,r,n,s,o){const c=this.hls,{type:A,level:f,id:M,groupId:a,deliveryDirectives:u}=n,w=Bc(t,n),B=Sc(n),Y=typeof n.level=="number"&&B===T.MAIN?f:void 0;if(!e.fragments.length){const xe=e.playlistParsingError=new Error("No Segments found in Playlist");c.trigger(g.ERROR,{type:Re.NETWORK_ERROR,details:K.LEVEL_EMPTY_ERROR,fatal:!1,url:w,error:xe,reason:xe.message,response:t,context:n,level:Y,parent:B,networkDetails:s,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const oe=e.playlistParsingError;if(oe){if(this.hls.logger.warn(oe),!c.config.ignorePlaylistParsingErrors){c.trigger(g.ERROR,{type:Re.NETWORK_ERROR,details:K.LEVEL_PARSING_ERROR,fatal:!1,url:w,error:oe,reason:oe.message,response:t,context:n,level:Y,parent:B,networkDetails:s,stats:r});return}e.playlistParsingError=null}switch(e.live&&o&&(o.getCacheAge&&(e.ageHeader=o.getCacheAge()||0),(!o.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),A){case R.MANIFEST:case R.LEVEL:c.trigger(g.LEVEL_LOADED,{details:e,levelInfo:n.levelOrTrack||c.levels[0],level:Y||0,id:M||0,stats:r,networkDetails:s,deliveryDirectives:u,withoutMultiVariant:A===R.MANIFEST});break;case R.AUDIO_TRACK:c.trigger(g.AUDIO_TRACK_LOADED,{details:e,track:n.levelOrTrack,id:M||0,groupId:a||"",stats:r,networkDetails:s,deliveryDirectives:u});break;case R.SUBTITLE_TRACK:c.trigger(g.SUBTITLE_TRACK_LOADED,{details:e,track:n.levelOrTrack,id:M||0,groupId:a||"",stats:r,networkDetails:s,deliveryDirectives:u});break}}}class su{static get version(){return Pl}static isMSESupported(){return Hc()}static isSupported(){return Jc()}static getMediaSource(){return ye()}static get Events(){return g}static get MetadataSchema(){return at}static get ErrorTypes(){return Re}static get ErrorDetails(){return K}static get DefaultConfig(){return su.defaultConfig?su.defaultConfig:aA}static set DefaultConfig(e){su.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new au,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=ce(e.debug||!1,"Hls instance",e.assetPlayerId),r=this.config=rc(su.DefaultConfig,e,t);this.userConfig=e,r.progressive&&Wc(r,t);const{abrController:n,bufferController:s,capLevelController:o,errorController:c,fpsController:A}=r,f=new c(this),M=this.abrController=new n(this),a=new bi(this),u=r.interstitialsController,w=u?this.interstitialsController=new u(this,su):null,B=this.bufferController=new s(this,a),Y=this.capLevelController=new o(this),oe=new A(this),xe=new AA(this),Ne=r.contentSteeringController,Me=Ne?new Ne(this):null,We=this.levelController=new uA(this,Me),ct=new ul(this),xt=new vc(this.config),wt=this.streamController=new Cc(this,a,xt),Et=this.gapController=new nc(this,a);Y.setStreamController(wt),oe.setStreamController(wt);const qt=[xe,We,wt];w&&qt.splice(1,0,w),Me&&qt.splice(1,0,Me),this.networkControllers=qt;const Pt=[M,B,Et,Y,oe,ct,a];this.audioTrackController=this.createController(r.audioTrackController,qt);const Gt=r.audioStreamController;Gt&&qt.push(this.audioStreamController=new Gt(this,a,xt)),this.subtitleTrackController=this.createController(r.subtitleTrackController,qt);const tr=r.subtitleStreamController;tr&&qt.push(this.subtititleStreamController=new tr(this,a,xt)),this.createController(r.timelineController,Pt),xt.emeController=this.emeController=this.createController(r.emeController,Pt),this.cmcdController=this.createController(r.cmcdController,Pt),this.latencyController=this.createController(lA,Pt),this.coreComponents=Pt,qt.push(f);const Ur=f.onErrorOut;typeof Ur=="function"&&this.on(g.ERROR,Ur,f),this.on(g.MANIFEST_LOADED,xe.onManifestLoaded,xe)}createController(e,t){if(e){const r=new e(this);return t&&t.push(r),r}return null}on(e,t,r=this){this._emitter.on(e,t,r)}once(e,t,r=this){this._emitter.once(e,t,r)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,r=this,n){this._emitter.off(e,t,r,n)}listeners(e){return this._emitter.listeners(e)}emit(e,t,r){return this._emitter.emit(e,t,r)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(r){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const n=e===g.ERROR;this.trigger(g.ERROR,{type:Re.OTHER_ERROR,details:K.INTERNAL_EXCEPTION,fatal:n,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(g.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const s=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(g.ERROR,{type:Re.OTHER_ERROR,details:K.ATTACH_MEDIA_ERROR,fatal:!0,error:s});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,r=t?e.media:e,n=t?e:{media:r};this._media=r,this.trigger(g.MEDIA_ATTACHING,n)}detachMedia(){this.logger.log("detachMedia"),this.trigger(g.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(g.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,r=this._url,n=this._url=ve.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${n}`),t&&r&&(r!==n||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(g.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let r=0;r<this.networkControllers.length&&(this.networkControllers[r].startLoad(e,t),!(!this.started||!this.networkControllers));r++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[T.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[T.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[T.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=br()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){on(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const r=e.length;for(let n=0;n<r;n++)if(e[n].maxBitrate>=t)return n;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:r}=this;let n;if(t===-1&&e!=null&&e.length?n=e.length-1:n=t,r)for(let s=n;s--;){const o=e[s].attrs["HDCP-LEVEL"];if(o&&o<=r)return s}return n}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){var e;return((e=this.interstitialsController)==null?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){const r=cn(t);return mt(e,r,navigator.mediaCapabilities)}}su.defaultConfig=void 0},16722:function(tn,Mt,E){"use strict";E.d(Mt,{Z:function(){return T}});const le=l=>typeof l=="object"&&l!=null&&l.nodeType===1,Fe=(l,d)=>(!d||l!=="hidden")&&l!=="visible"&&l!=="clip",ae=(l,d)=>{if(l.clientHeight<l.scrollHeight||l.clientWidth<l.scrollWidth){const N=getComputedStyle(l,null);return Fe(N.overflowY,d)||Fe(N.overflowX,d)||(v=>{const m=(b=>{if(!b.ownerDocument||!b.ownerDocument.defaultView)return null;try{return b.ownerDocument.defaultView.frameElement}catch(I){return null}})(v);return!!m&&(m.clientHeight<v.scrollHeight||m.clientWidth<v.scrollWidth)})(l)}return!1},Re=(l,d,N,v,m,b,I,L)=>b<l&&I>d||b>l&&I<d?0:b<=l&&L<=N||I>=d&&L>=N?b-l-v:I>d&&L<N||b<l&&L>N?I-d+m:0,K=l=>{const d=l.parentElement;return d==null?l.getRootNode().host||null:d},g=(l,d)=>{var N,v,m,b;if(typeof document=="undefined")return[];const{scrollMode:I,block:L,inline:z,boundary:P,skipOverflowHiddenElements:$}=d,J=typeof P=="function"?P:tt=>tt!==P;if(!le(l))throw new TypeError("Invalid target");const te=document.scrollingElement||document.documentElement,H=[];let G=l;for(;le(G)&&J(G);){if(G=K(G),G===te){H.push(G);break}G!=null&&G===document.body&&ae(G)&&!ae(document.documentElement)||G!=null&&ae(G,$)&&H.push(G)}const ce=(v=(N=window.visualViewport)==null?void 0:N.width)!=null?v:innerWidth,q=(b=(m=window.visualViewport)==null?void 0:m.height)!=null?b:innerHeight,{scrollX:ye,scrollY:_e}=window,{height:Le,width:se,top:be,right:O,bottom:Ee,left:ue}=l.getBoundingClientRect(),{top:he,right:ve,bottom:F,left:U}=(tt=>{const nt=window.getComputedStyle(tt);return{top:parseFloat(nt.scrollMarginTop)||0,right:parseFloat(nt.scrollMarginRight)||0,bottom:parseFloat(nt.scrollMarginBottom)||0,left:parseFloat(nt.scrollMarginLeft)||0}})(l);let ee=L==="start"||L==="nearest"?be-he:L==="end"?Ee+F:be+Le/2-he+F,de=z==="center"?ue+se/2-U+ve:z==="end"?O+ve:ue-U;const Xe=[];for(let tt=0;tt<H.length;tt++){const nt=H[tt],{height:_t,width:Xt,top:zt,right:Ze,bottom:fr,left:yr}=nt.getBoundingClientRect();if(I==="if-needed"&&be>=0&&ue>=0&&Ee<=q&&O<=ce&&(nt===te&&!ae(nt)||be>=zt&&Ee<=fr&&ue>=yr&&O<=Ze))return Xe;const Ar=getComputedStyle(nt),vr=parseInt(Ar.borderLeftWidth,10),Ce=parseInt(Ar.borderTopWidth,10),It=parseInt(Ar.borderRightWidth,10),Z=parseInt(Ar.borderBottomWidth,10);let x=0,y=0;const k="offsetWidth"in nt?nt.offsetWidth-nt.clientWidth-vr-It:0,fe="offsetHeight"in nt?nt.offsetHeight-nt.clientHeight-Ce-Z:0,W="offsetWidth"in nt?nt.offsetWidth===0?0:Xt/nt.offsetWidth:0,Q="offsetHeight"in nt?nt.offsetHeight===0?0:_t/nt.offsetHeight:0;if(te===nt)x=L==="start"?ee:L==="end"?ee-q:L==="nearest"?Re(_e,_e+q,q,Ce,Z,_e+ee,_e+ee+Le,Le):ee-q/2,y=z==="start"?de:z==="center"?de-ce/2:z==="end"?de-ce:Re(ye,ye+ce,ce,vr,It,ye+de,ye+de+se,se),x=Math.max(0,x+_e),y=Math.max(0,y+ye);else{x=L==="start"?ee-zt-Ce:L==="end"?ee-fr+Z+fe:L==="nearest"?Re(zt,fr,_t,Ce,Z+fe,ee,ee+Le,Le):ee-(zt+_t/2)+fe/2,y=z==="start"?de-yr-vr:z==="center"?de-(yr+Xt/2)+k/2:z==="end"?de-Ze+It+k:Re(yr,Ze,Xt,vr,It+k,de,de+se,se);const{scrollLeft:re,scrollTop:Se}=nt;x=Q===0?0:Math.max(0,Math.min(Se+x/Q,nt.scrollHeight-_t/Q+fe)),y=W===0?0:Math.max(0,Math.min(re+y/W,nt.scrollWidth-Xt/W+k)),ee+=Se-x,de+=re-y}Xe.push({el:nt,top:x,left:y})}return Xe},R=l=>l===!1?{block:"end",inline:"nearest"}:(d=>d===Object(d)&&Object.keys(d).length!==0)(l)?l:{block:"start",inline:"nearest"};function T(l,d){if(!l.isConnected||!(m=>{let b=m;for(;b&&b.parentNode;){if(b.parentNode===document)return!0;b=b.parentNode instanceof ShadowRoot?b.parentNode.host:b.parentNode}return!1})(l))return;const N=(m=>{const b=window.getComputedStyle(m);return{top:parseFloat(b.scrollMarginTop)||0,right:parseFloat(b.scrollMarginRight)||0,bottom:parseFloat(b.scrollMarginBottom)||0,left:parseFloat(b.scrollMarginLeft)||0}})(l);if((m=>typeof m=="object"&&typeof m.behavior=="function")(d))return d.behavior(g(l,d));const v=typeof d=="boolean"||d==null?void 0:d.behavior;for(const{el:m,top:b,left:I}of g(l,R(d))){const L=b-N.top+N.bottom,z=I-N.left+N.right;m.scroll({top:L,left:z,behavior:v})}}}}]);
|
|
|
}()); |