|
|
!(function(){var GA=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[2303],{63093:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},66720:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},35323:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},19155:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},10402:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},72295:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},93343:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},18290:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},19362:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},80205:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},61441:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},30631:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},43971:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},58358:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},44757:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},16537:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},77042:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},5527:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},86902:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},53878:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},21970:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},83281:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},88551:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(o,L){return Fe.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:ke}))},O=Fe.forwardRef(Y),T=O},35593:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return Tt}});var we=g(57259),Fe=g(29043),se=g(19149),ke=g(43403),ie=g(92310),Y=g.n(ie),O=g(29301),T=g(85899),n=g(70653),o=g(8107),L=g(49879),p=g(28800),a=g(93144),A=g(59301),m=g(5891),S=g(43469),K=g(20475);function F(z){var v=z.prefixCls,f=z.align,D=z.arrow,de=z.arrowPos,W=D||{},P=W.className,te=W.content,Ie=de.x,Te=Ie===void 0?0:Ie,Se=de.y,Ge=Se===void 0?0:Se,ft=A.useRef();if(!f||!f.points)return null;var Ke={position:"absolute"};if(f.autoArrow!==!1){var Xe=f.points[0],At=f.points[1],We=Xe[0],$e=Xe[1],Bt=At[0],Kt=At[1];We===Bt||!["t","b"].includes(We)?Ke.top=Ge:We==="t"?Ke.top=0:Ke.bottom=0,$e===Kt||!["l","r"].includes($e)?Ke.left=Te:$e==="l"?Ke.left=0:Ke.right=0}return A.createElement("div",{ref:ft,className:Y()("".concat(v,"-arrow"),P),style:Ke},te)}function H(z){var v=z.prefixCls,f=z.open,D=z.zIndex,de=z.mask,W=z.motion;return de?A.createElement(S.default,(0,m.Z)({},W,{motionAppear:!0,visible:f,removeOnLeave:!0}),function(P){var te=P.className;return A.createElement("div",{style:{zIndex:D},className:Y()("".concat(v,"-mask"),te)})}):null}var V=A.memo(function(z){var v=z.children;return v},function(z,v){return v.cache}),ee=V,B=A.forwardRef(function(z,v){var f=z.popup,D=z.className,de=z.prefixCls,W=z.style,P=z.target,te=z.onVisibleChanged,Ie=z.open,Te=z.keepDom,Se=z.fresh,Ge=z.onClick,ft=z.mask,Ke=z.arrow,Xe=z.arrowPos,At=z.align,We=z.motion,$e=z.maskMotion,Bt=z.forceRender,Kt=z.getPopupContainer,Mt=z.autoDestroy,wr=z.portal,vr=z.zIndex,re=z.onMouseEnter,le=z.onMouseLeave,rr=z.onPointerEnter,Ue=z.ready,ot=z.offsetX,Yr=z.offsetY,St=z.offsetR,Vt=z.offsetB,Zt=z.onAlign,nt=z.onPrepare,ct=z.stretch,dt=z.targetWidth,Xt=z.targetHeight,Re=typeof f=="function"?f():f,fn=Ie||Te,kt=(Kt==null?void 0:Kt.length)>0,Nn=A.useState(!Kt||!kt),Jn=(0,Fe.Z)(Nn,2),vi=Jn[0],Fi=Jn[1];if((0,p.Z)(function(){!vi&&kt&&P&&Fi(!0)},[vi,kt,P]),!vi)return null;var Mn="auto",Hn={left:"-1000vw",top:"-1000vh",right:Mn,bottom:Mn};if(Ue||!Ie){var Yt,kr=At.points,tn=At.dynamicInset||((Yt=At._experimental)===null||Yt===void 0?void 0:Yt.dynamicInset),Nt=tn&&kr[0][1]==="r",_t=tn&&kr[0][0]==="b";Nt?(Hn.right=St,Hn.left=Mn):(Hn.left=ot,Hn.right=Mn),_t?(Hn.bottom=Vt,Hn.top=Mn):(Hn.top=Yr,Hn.bottom=Mn)}var Ir={};return ct&&(ct.includes("height")&&Xt?Ir.height=Xt:ct.includes("minHeight")&&Xt&&(Ir.minHeight=Xt),ct.includes("width")&&dt?Ir.width=dt:ct.includes("minWidth")&&dt&&(Ir.minWidth=dt)),Ie||(Ir.pointerEvents="none"),A.createElement(wr,{open:Bt||fn,getContainer:Kt&&function(){return Kt(P)},autoDestroy:Mt},A.createElement(H,{prefixCls:de,open:Ie,zIndex:vr,mask:ft,motion:$e}),A.createElement(O.Z,{onResize:Zt,disabled:!Ie},function(Dr){return A.createElement(S.default,(0,m.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Bt,leavedClassName:"".concat(de,"-hidden")},We,{onAppearPrepare:nt,onEnterPrepare:nt,visible:Ie,onVisibleChanged:function(qr){var Sn;We==null||(Sn=We.onVisibleChanged)===null||Sn===void 0||Sn.call(We,qr),te(qr)}}),function(In,qr){var Sn=In.className,hn=In.style,$n=Y()(de,Sn,D);return A.createElement("div",{ref:(0,K.sQ)(Dr,v,qr),className:$n,style:(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({"--arrow-x":"".concat(Xe.x||0,"px"),"--arrow-y":"".concat(Xe.y||0,"px")},Hn),Ir),hn),{},{boxSizing:"border-box",zIndex:vr},W),onMouseEnter:re,onMouseLeave:le,onPointerEnter:rr,onClick:Ge},Ke&&A.createElement(F,{prefixCls:de,arrow:Ke,arrowPos:Xe,align:At}),A.createElement(ee,{cache:!Ie&&!Se},Re))})}))}),G=B,ce=A.forwardRef(function(z,v){var f=z.children,D=z.getTriggerDOMNode,de=(0,K.Yr)(f),W=A.useCallback(function(te){(0,K.mH)(v,D?D(te):te)},[D]),P=(0,K.x1)(W,f.ref);return de?A.cloneElement(f,{ref:P}):f}),q=ce,be=A.createContext(null),xe=be;function Le(z){return z?Array.isArray(z)?z:[z]:[]}function ae(z,v,f,D){return A.useMemo(function(){var de=Le(f!=null?f:v),W=Le(D!=null?D:v),P=new Set(de),te=new Set(W);return z&&(P.has("hover")&&(P.delete("hover"),P.add("click")),te.has("hover")&&(te.delete("hover"),te.add("click"))),[P,te]},[z,v,f,D])}var me=g(48886);function I(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=arguments.length>2?arguments[2]:void 0;return f?z[0]===v[0]:z[0]===v[0]&&z[1]===v[1]}function _e(z,v,f,D){for(var de=f.points,W=Object.keys(z),P=0;P<W.length;P+=1){var te,Ie=W[P];if(I((te=z[Ie])===null||te===void 0?void 0:te.points,de,D))return"".concat(v,"-placement-").concat(Ie)}return""}function oe(z,v,f,D){return v||(f?{motionName:"".concat(z,"-").concat(f)}:D?{motionName:D}:null)}function he(z){return z.ownerDocument.defaultView}function ve(z){for(var v=[],f=z==null?void 0:z.parentElement,D=["hidden","scroll","clip","auto"];f;){var de=he(f).getComputedStyle(f),W=de.overflowX,P=de.overflowY,te=de.overflow;[W,P,te].some(function(Ie){return D.includes(Ie)})&&v.push(f),f=f.parentElement}return v}function _(z){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(z)?v:z}function N(z){return _(parseFloat(z),0)}function X(z,v){var f=(0,we.Z)({},z);return(v||[]).forEach(function(D){if(!(D instanceof HTMLBodyElement||D instanceof HTMLHtmlElement)){var de=he(D).getComputedStyle(D),W=de.overflow,P=de.overflowClipMargin,te=de.borderTopWidth,Ie=de.borderBottomWidth,Te=de.borderLeftWidth,Se=de.borderRightWidth,Ge=D.getBoundingClientRect(),ft=D.offsetHeight,Ke=D.clientHeight,Xe=D.offsetWidth,At=D.clientWidth,We=N(te),$e=N(Ie),Bt=N(Te),Kt=N(Se),Mt=_(Math.round(Ge.width/Xe*1e3)/1e3),wr=_(Math.round(Ge.height/ft*1e3)/1e3),vr=(Xe-At-Bt-Kt)*Mt,re=(ft-Ke-We-$e)*wr,le=We*wr,rr=$e*wr,Ue=Bt*Mt,ot=Kt*Mt,Yr=0,St=0;if(W==="clip"){var Vt=N(P);Yr=Vt*Mt,St=Vt*wr}var Zt=Ge.x+Ue-Yr,nt=Ge.y+le-St,ct=Zt+Ge.width+2*Yr-Ue-ot-vr,dt=nt+Ge.height+2*St-le-rr-re;f.left=Math.max(f.left,Zt),f.top=Math.max(f.top,nt),f.right=Math.min(f.right,ct),f.bottom=Math.min(f.bottom,dt)}}),f}function pe(z){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f="".concat(v),D=f.match(/^(.*)\%$/);return D?z*(parseFloat(D[1])/100):parseFloat(f)}function qe(z,v){var f=v||[],D=(0,Fe.Z)(f,2),de=D[0],W=D[1];return[pe(z.width,de),pe(z.height,W)]}function at(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[z[0],z[1]]}function rt(z,v){var f=v[0],D=v[1],de,W;return f==="t"?W=z.y:f==="b"?W=z.y+z.height:W=z.y+z.height/2,D==="l"?de=z.x:D==="r"?de=z.x+z.width:de=z.x+z.width/2,{x:de,y:W}}function Rt(z,v){var f={t:"b",b:"t",l:"r",r:"l"};return z.map(function(D,de){return de===v?f[D]||"c":D}).join("")}function lr(z,v,f,D,de,W,P){var te=A.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:de[D]||{}}),Ie=(0,Fe.Z)(te,2),Te=Ie[0],Se=Ie[1],Ge=A.useRef(0),ft=A.useMemo(function(){return v?ve(v):[]},[v]),Ke=A.useRef({}),Xe=function(){Ke.current={}};z||Xe();var At=(0,o.Z)(function(){if(v&&f&&z){let $i=function(wa,Pa){var Ls=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$n,cs=Re.x+wa,Es=Re.y+Pa,rs=cs+Yt,Bo=Es+Hn,go=Math.max(cs,Ls.left),eo=Math.max(Es,Ls.top),zs=Math.min(rs,Ls.right),Rs=Math.min(Bo,Ls.bottom);return Math.max(0,(zs-go)*(Rs-eo))},Ui=function(){Ln=Re.y+_n,Gn=Ln+Hn,Ci=Re.x+Tr,ji=Ci+Yt};var Bt,Kt,Mt=v,wr=Mt.ownerDocument,vr=he(Mt),re=vr.getComputedStyle(Mt),le=re.width,rr=re.height,Ue=re.position,ot=Mt.style.left,Yr=Mt.style.top,St=Mt.style.right,Vt=Mt.style.bottom,Zt=Mt.style.overflow,nt=(0,we.Z)((0,we.Z)({},de[D]),W),ct=wr.createElement("div");(Bt=Mt.parentElement)===null||Bt===void 0||Bt.appendChild(ct),ct.style.left="".concat(Mt.offsetLeft,"px"),ct.style.top="".concat(Mt.offsetTop,"px"),ct.style.position=Ue,ct.style.height="".concat(Mt.offsetHeight,"px"),ct.style.width="".concat(Mt.offsetWidth,"px"),Mt.style.left="0",Mt.style.top="0",Mt.style.right="auto",Mt.style.bottom="auto",Mt.style.overflow="hidden";var dt;if(Array.isArray(f))dt={x:f[0],y:f[1],width:0,height:0};else{var Xt=f.getBoundingClientRect();dt={x:Xt.x,y:Xt.y,width:Xt.width,height:Xt.height}}var Re=Mt.getBoundingClientRect(),fn=wr.documentElement,kt=fn.clientWidth,Nn=fn.clientHeight,Jn=fn.scrollWidth,vi=fn.scrollHeight,Fi=fn.scrollTop,Mn=fn.scrollLeft,Hn=Re.height,Yt=Re.width,kr=dt.height,tn=dt.width,Nt={left:0,top:0,right:kt,bottom:Nn},_t={left:-Mn,top:-Fi,right:Jn-Mn,bottom:vi-Fi},Ir=nt.htmlRegion,Dr="visible",In="visibleFirst";Ir!=="scroll"&&Ir!==In&&(Ir=Dr);var qr=Ir===In,Sn=X(_t,ft),hn=X(Nt,ft),$n=Ir===Dr?hn:Sn,ri=qr?hn:$n;Mt.style.left="auto",Mt.style.top="auto",Mt.style.right="0",Mt.style.bottom="0";var Hr=Mt.getBoundingClientRect();Mt.style.left=ot,Mt.style.top=Yr,Mt.style.right=St,Mt.style.bottom=Vt,Mt.style.overflow=Zt,(Kt=Mt.parentElement)===null||Kt===void 0||Kt.removeChild(ct);var zr=_(Math.round(Yt/parseFloat(le)*1e3)/1e3),Tn=_(Math.round(Hn/parseFloat(rr)*1e3)/1e3);if(zr===0||Tn===0||(0,T.Sh)(f)&&!(0,me.Z)(f))return;var Bn=nt.offset,Qn=nt.targetOffset,Xn=qe(Re,Bn),Hi=(0,Fe.Z)(Xn,2),fi=Hi[0],wn=Hi[1],hr=qe(dt,Qn),yr=(0,Fe.Z)(hr,2),Pr=yr[0],Zr=yr[1];dt.x-=Pr,dt.y-=Zr;var Qr=nt.points||[],on=(0,Fe.Z)(Qr,2),en=on[0],jn=on[1],qn=at(jn),oi=at(en),Qi=rt(dt,qn),Ri=rt(Re,oi),ki=(0,we.Z)({},nt),Tr=Qi.x-Ri.x+fi,_n=Qi.y-Ri.y+wn,gn=$i(Tr,_n),ui=$i(Tr,_n,hn),ii=rt(dt,["t","l"]),ti=rt(Re,["t","l"]),wi=rt(dt,["b","r"]),Pi=rt(Re,["b","r"]),Bi=nt.overflow||{},zi=Bi.adjustX,ca=Bi.adjustY,xi=Bi.shiftX,vn=Bi.shiftY,Ht=function(Pa){return typeof Pa=="boolean"?Pa:Pa>=0},Ln,Gn,Ci,ji;Ui();var fa=Ht(ca),va=oi[0]===qn[0];if(fa&&oi[0]==="t"&&(Gn>ri.bottom||Ke.current.bt)){var ea=_n;va?ea-=Hn-kr:ea=ii.y-Pi.y-wn;var _i=$i(Tr,ea),yi=$i(Tr,ea,hn);_i>gn||_i===gn&&(!qr||yi>=ui)?(Ke.current.bt=!0,_n=ea,wn=-wn,ki.points=[Rt(oi,0),Rt(qn,0)]):Ke.current.bt=!1}if(fa&&oi[0]==="b"&&(Ln<ri.top||Ke.current.tb)){var Si=_n;va?Si+=Hn-kr:Si=wi.y-ti.y-wn;var ra=$i(Tr,Si),Aa=$i(Tr,Si,hn);ra>gn||ra===gn&&(!qr||Aa>=ui)?(Ke.current.tb=!0,_n=Si,wn=-wn,ki.points=[Rt(oi,0),Rt(qn,0)]):Ke.current.tb=!1}var es=Ht(zi),ps=oi[1]===qn[1];if(es&&oi[1]==="l"&&(ji>ri.right||Ke.current.rl)){var hi=Tr;ps?hi-=Yt-tn:hi=ii.x-Pi.x-fi;var Ca=$i(hi,_n),ma=$i(hi,_n,hn);Ca>gn||Ca===gn&&(!qr||ma>=ui)?(Ke.current.rl=!0,Tr=hi,fi=-fi,ki.points=[Rt(oi,1),Rt(qn,1)]):Ke.current.rl=!1}if(es&&oi[1]==="r"&&(Ci<ri.left||Ke.current.lr)){var ka=Tr;ps?ka+=Yt-tn:ka=wi.x-ti.x-fi;var Ps=$i(ka,_n),is=$i(ka,_n,hn);Ps>gn||Ps===gn&&(!qr||is>=ui)?(Ke.current.lr=!0,Tr=ka,fi=-fi,ki.points=[Rt(oi,1),Rt(qn,1)]):Ke.current.lr=!1}Ui();var Fa=xi===!0?0:xi;typeof Fa=="number"&&(Ci<hn.left&&(Tr-=Ci-hn.left-fi,dt.x+tn<hn.left+Fa&&(Tr+=dt.x-hn.left+tn-Fa)),ji>hn.right&&(Tr-=ji-hn.right-fi,dt.x>hn.right-Fa&&(Tr+=dt.x-hn.right+Fa)));var Mi=vn===!0?0:vn;typeof Mi=="number"&&(Ln<hn.top&&(_n-=Ln-hn.top-wn,dt.y+kr<hn.top+Mi&&(_n+=dt.y-hn.top+kr-Mi)),Gn>hn.bottom&&(_n-=Gn-hn.bottom-wn,dt.y>hn.bottom-Mi&&(_n+=dt.y-hn.bottom+Mi)));var la=Re.x+Tr,ms=la+Yt,as=Re.y+_n,ts=as+Hn,Wi=dt.x,gs=Wi+tn,aa=dt.y,co=aa+kr,Qs=Math.max(la,Wi),Co=Math.min(ms,gs),fs=(Qs+Co)/2,_o=fs-la,ss=Math.max(as,aa),Yn=Math.min(ts,co),Da=(ss+Yn)/2,io=Da-as;P==null||P(v,ki);var Zi=Hr.right-Re.x-(Tr+Re.width),ta=Hr.bottom-Re.y-(_n+Re.height);Se({ready:!0,offsetX:Tr/zr,offsetY:_n/Tn,offsetR:Zi/zr,offsetB:ta/Tn,arrowX:_o/zr,arrowY:io/Tn,scaleX:zr,scaleY:Tn,align:ki})}}),We=function(){Ge.current+=1;var Kt=Ge.current;Promise.resolve().then(function(){Ge.current===Kt&&At()})},$e=function(){Se(function(Kt){return(0,we.Z)((0,we.Z)({},Kt),{},{ready:!1})})};return(0,p.Z)($e,[D]),(0,p.Z)(function(){z||$e()},[z]),[Te.ready,Te.offsetX,Te.offsetY,Te.offsetR,Te.offsetB,Te.arrowX,Te.arrowY,Te.scaleX,Te.scaleY,Te.align,We]}var qt=g(26390);function Ze(z,v,f,D,de){(0,p.Z)(function(){if(z&&v&&f){let Ge=function(){D(),de()};var W=v,P=f,te=ve(W),Ie=ve(P),Te=he(P),Se=new Set([Te].concat((0,qt.Z)(te),(0,qt.Z)(Ie)));return Se.forEach(function(ft){ft.addEventListener("scroll",Ge,{passive:!0})}),Te.addEventListener("resize",Ge,{passive:!0}),D(),function(){Se.forEach(function(ft){ft.removeEventListener("scroll",Ge),Te.removeEventListener("resize",Ge)})}}},[z,v,f])}var Er=g(51395),Cr=g(23073);function Kr(z,v,f,D,de,W,P,te){var Ie=A.useRef(z),Te=A.useRef(!1);Ie.current!==z&&(Te.current=!0,Ie.current=z),A.useEffect(function(){var Se=(0,Cr.Z)(function(){Te.current=!1});return function(){Cr.Z.cancel(Se)}},[z]),A.useEffect(function(){if(v&&D&&(!de||W)){var Se=function(){var Ue=!1,ot=function(Vt){var Zt=Vt.target;Ue=P(Zt)},Yr=function(Vt){var Zt=Vt.target;!Te.current&&Ie.current&&!Ue&&!P(Zt)&&te(!1)};return[ot,Yr]},Ge=Se(),ft=(0,Fe.Z)(Ge,2),Ke=ft[0],Xe=ft[1],At=Se(),We=(0,Fe.Z)(At,2),$e=We[0],Bt=We[1],Kt=he(D);Kt.addEventListener("mousedown",Ke,!0),Kt.addEventListener("click",Xe,!0),Kt.addEventListener("contextmenu",Xe,!0);var Mt=(0,n.A)(f);if(Mt&&(Mt.addEventListener("mousedown",$e,!0),Mt.addEventListener("click",Bt,!0),Mt.addEventListener("contextmenu",Bt,!0)),0)var wr,vr,re,le;return function(){Kt.removeEventListener("mousedown",Ke,!0),Kt.removeEventListener("click",Xe,!0),Kt.removeEventListener("contextmenu",Xe,!0),Mt&&(Mt.removeEventListener("mousedown",$e,!0),Mt.removeEventListener("click",Bt,!0),Mt.removeEventListener("contextmenu",Bt,!0))}}},[v,f,D,de,W])}var _r=["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 Me(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ke.Z,v=A.forwardRef(function(f,D){var de=f.prefixCls,W=de===void 0?"rc-trigger-popup":de,P=f.children,te=f.action,Ie=te===void 0?"hover":te,Te=f.showAction,Se=f.hideAction,Ge=f.popupVisible,ft=f.defaultPopupVisible,Ke=f.onPopupVisibleChange,Xe=f.afterPopupVisibleChange,At=f.mouseEnterDelay,We=f.mouseLeaveDelay,$e=We===void 0?.1:We,Bt=f.focusDelay,Kt=f.blurDelay,Mt=f.mask,wr=f.maskClosable,vr=wr===void 0?!0:wr,re=f.getPopupContainer,le=f.forceRender,rr=f.autoDestroy,Ue=f.destroyPopupOnHide,ot=f.popup,Yr=f.popupClassName,St=f.popupStyle,Vt=f.popupPlacement,Zt=f.builtinPlacements,nt=Zt===void 0?{}:Zt,ct=f.popupAlign,dt=f.zIndex,Xt=f.stretch,Re=f.getPopupClassNameFromAlign,fn=f.fresh,kt=f.alignPoint,Nn=f.onPopupClick,Jn=f.onPopupAlign,vi=f.arrow,Fi=f.popupMotion,Mn=f.maskMotion,Hn=f.popupTransitionName,Yt=f.popupAnimation,kr=f.maskTransitionName,tn=f.maskAnimation,Nt=f.className,_t=f.getTriggerDOMNode,Ir=(0,se.Z)(f,_r),Dr=rr||Ue||!1,In=A.useState(!1),qr=(0,Fe.Z)(In,2),Sn=qr[0],hn=qr[1];(0,p.Z)(function(){hn((0,a.Z)())},[]);var $n=A.useRef({}),ri=A.useContext(xe),Hr=A.useMemo(function(){return{registerSubPopup:function(Ai,ua){$n.current[Ai]=ua,ri==null||ri.registerSubPopup(Ai,ua)}}},[ri]),zr=(0,L.Z)(),Tn=A.useState(null),Bn=(0,Fe.Z)(Tn,2),Qn=Bn[0],Xn=Bn[1],Hi=(0,o.Z)(function(Oi){(0,T.Sh)(Oi)&&Qn!==Oi&&Xn(Oi),ri==null||ri.registerSubPopup(zr,Oi)}),fi=A.useState(null),wn=(0,Fe.Z)(fi,2),hr=wn[0],yr=wn[1],Pr=A.useRef(null),Zr=(0,o.Z)(function(Oi){(0,T.Sh)(Oi)&&hr!==Oi&&(yr(Oi),Pr.current=Oi)}),Qr=A.Children.only(P),on=(Qr==null?void 0:Qr.props)||{},en={},jn=(0,o.Z)(function(Oi){var Ai,ua,vs=hr;return(vs==null?void 0:vs.contains(Oi))||((Ai=(0,n.A)(vs))===null||Ai===void 0?void 0:Ai.host)===Oi||Oi===vs||(Qn==null?void 0:Qn.contains(Oi))||((ua=(0,n.A)(Qn))===null||ua===void 0?void 0:ua.host)===Oi||Oi===Qn||Object.values($n.current).some(function(Ra){return(Ra==null?void 0:Ra.contains(Oi))||Oi===Ra})}),qn=oe(W,Fi,Yt,Hn),oi=oe(W,Mn,tn,kr),Qi=A.useState(ft||!1),Ri=(0,Fe.Z)(Qi,2),ki=Ri[0],Tr=Ri[1],_n=Ge!=null?Ge:ki,gn=(0,o.Z)(function(Oi){Ge===void 0&&Tr(Oi)});(0,p.Z)(function(){Tr(Ge||!1)},[Ge]);var ui=A.useRef(_n);ui.current=_n;var ii=A.useRef([]);ii.current=[];var ti=(0,o.Z)(function(Oi){var Ai;gn(Oi),((Ai=ii.current[ii.current.length-1])!==null&&Ai!==void 0?Ai:_n)!==Oi&&(ii.current.push(Oi),Ke==null||Ke(Oi))}),wi=A.useRef(),Pi=function(){clearTimeout(wi.current)},Bi=function(Ai){var ua=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Pi(),ua===0?ti(Ai):wi.current=setTimeout(function(){ti(Ai)},ua*1e3)};A.useEffect(function(){return Pi},[]);var zi=A.useState(!1),ca=(0,Fe.Z)(zi,2),xi=ca[0],vn=ca[1];(0,p.Z)(function(Oi){(!Oi||_n)&&vn(!0)},[_n]);var Ht=A.useState(null),Ln=(0,Fe.Z)(Ht,2),Gn=Ln[0],Ci=Ln[1],ji=A.useState([0,0]),fa=(0,Fe.Z)(ji,2),va=fa[0],ea=fa[1],_i=function(Ai){ea([Ai.clientX,Ai.clientY])},yi=lr(_n,Qn,kt?va:hr,Vt,nt,ct,Jn),Si=(0,Fe.Z)(yi,11),ra=Si[0],Aa=Si[1],es=Si[2],ps=Si[3],hi=Si[4],Ca=Si[5],ma=Si[6],ka=Si[7],Ps=Si[8],is=Si[9],Fa=Si[10],Mi=ae(Sn,Ie,Te,Se),la=(0,Fe.Z)(Mi,2),ms=la[0],as=la[1],ts=ms.has("click"),Wi=as.has("click")||as.has("contextMenu"),gs=(0,o.Z)(function(){xi||Fa()}),aa=function(){ui.current&&kt&&Wi&&Bi(!1)};Ze(_n,hr,Qn,gs,aa),(0,p.Z)(function(){gs()},[va,Vt]),(0,p.Z)(function(){_n&&!(nt!=null&&nt[Vt])&&gs()},[JSON.stringify(ct)]);var co=A.useMemo(function(){var Oi=_e(nt,W,is,kt);return Y()(Oi,Re==null?void 0:Re(is))},[is,Re,nt,W,kt]);A.useImperativeHandle(D,function(){return{nativeElement:Pr.current,forceAlign:gs}});var Qs=A.useState(0),Co=(0,Fe.Z)(Qs,2),fs=Co[0],_o=Co[1],ss=A.useState(0),Yn=(0,Fe.Z)(ss,2),Da=Yn[0],io=Yn[1],Zi=function(){if(Xt&&hr){var Ai=hr.getBoundingClientRect();_o(Ai.width),io(Ai.height)}},ta=function(){Zi(),gs()},$i=function(Ai){vn(!1),Fa(),Xe==null||Xe(Ai)},Ui=function(){return new Promise(function(Ai){Zi(),Ci(function(){return Ai})})};(0,p.Z)(function(){Gn&&(Fa(),Gn(),Ci(null))},[Gn]);function wa(Oi,Ai,ua,vs){en[Oi]=function(Ra){var Ns;vs==null||vs(Ra),Bi(Ai,ua);for(var Vs=arguments.length,vo=new Array(Vs>1?Vs-1:0),Os=1;Os<Vs;Os++)vo[Os-1]=arguments[Os];(Ns=on[Oi])===null||Ns===void 0||Ns.call.apply(Ns,[on,Ra].concat(vo))}}(ts||Wi)&&(en.onClick=function(Oi){var Ai;ui.current&&Wi?Bi(!1):!ui.current&&ts&&(_i(Oi),Bi(!0));for(var ua=arguments.length,vs=new Array(ua>1?ua-1:0),Ra=1;Ra<ua;Ra++)vs[Ra-1]=arguments[Ra];(Ai=on.onClick)===null||Ai===void 0||Ai.call.apply(Ai,[on,Oi].concat(vs))}),Kr(_n,Wi,hr,Qn,Mt,vr,jn,Bi);var Pa=ms.has("hover"),Ls=as.has("hover"),cs,Es;Pa&&(wa("onMouseEnter",!0,At,function(Oi){_i(Oi)}),wa("onPointerEnter",!0,At,function(Oi){_i(Oi)}),cs=function(Ai){(_n||xi)&&Qn!==null&&Qn!==void 0&&Qn.contains(Ai.target)&&Bi(!0,At)},kt&&(en.onMouseMove=function(Oi){var Ai;(Ai=on.onMouseMove)===null||Ai===void 0||Ai.call(on,Oi)})),Ls&&(wa("onMouseLeave",!1,$e),wa("onPointerLeave",!1,$e),Es=function(){Bi(!1,$e)}),ms.has("focus")&&wa("onFocus",!0,Bt),as.has("focus")&&wa("onBlur",!1,Kt),ms.has("contextMenu")&&(en.onContextMenu=function(Oi){var Ai;ui.current&&as.has("contextMenu")?Bi(!1):(_i(Oi),Bi(!0)),Oi.preventDefault();for(var ua=arguments.length,vs=new Array(ua>1?ua-1:0),Ra=1;Ra<ua;Ra++)vs[Ra-1]=arguments[Ra];(Ai=on.onContextMenu)===null||Ai===void 0||Ai.call.apply(Ai,[on,Oi].concat(vs))}),Nt&&(en.className=Y()(on.className,Nt));var rs=(0,we.Z)((0,we.Z)({},on),en),Bo={},go=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];go.forEach(function(Oi){Ir[Oi]&&(Bo[Oi]=function(){for(var Ai,ua=arguments.length,vs=new Array(ua),Ra=0;Ra<ua;Ra++)vs[Ra]=arguments[Ra];(Ai=rs[Oi])===null||Ai===void 0||Ai.call.apply(Ai,[rs].concat(vs)),Ir[Oi].apply(Ir,vs)})});var eo=A.cloneElement(Qr,(0,we.Z)((0,we.Z)({},rs),Bo)),zs={x:Ca,y:ma},Rs=vi?(0,we.Z)({},vi!==!0?vi:{}):null;return A.createElement(A.Fragment,null,A.createElement(O.Z,{disabled:!_n,ref:Zr,onResize:ta},A.createElement(q,{getTriggerDOMNode:_t},eo)),A.createElement(xe.Provider,{value:Hr},A.createElement(G,{portal:z,ref:Hi,prefixCls:W,popup:ot,className:Y()(Yr,co),style:St,target:hr,onMouseEnter:cs,onMouseLeave:Es,onPointerEnter:cs,zIndex:dt,open:_n,keepDom:xi,fresh:fn,onClick:Nn,mask:Mt,motion:qn,maskMotion:oi,onVisibleChanged:$i,onPrepare:Ui,forceRender:le,autoDestroy:Dr,getPopupContainer:re,align:is,arrow:Rs,arrowPos:zs,ready:ra,offsetX:Aa,offsetY:es,offsetR:ps,offsetB:hi,onAlign:gs,stretch:Xt,targetWidth:fs/ka,targetHeight:Da/Ps})))});return v}var Tt=Me(ke.Z)},1751:function(){"use strict"},97267:function(yn,Gt,g){"use strict";var we=g(59301),Fe=g(93314),se=g(3113),ke=Object.defineProperty,ie=Object.defineProperties,Y=Object.getOwnPropertyDescriptors,O=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,o=(A,m,S)=>m in A?ke(A,m,{enumerable:!0,configurable:!0,writable:!0,value:S}):A[m]=S,L=(A,m)=>{for(var S in m||(m={}))T.call(m,S)&&o(A,S,m[S]);if(O)for(var S of O(m))n.call(m,S)&&o(A,S,m[S]);return A},p=(A,m)=>ie(A,Y(m));const a=({img:A,buttonProps:m={},styles:S={},customText:K,ButtonText:F,ButtonClick:H,Buttonclass:V,ButtonTwo:ee,imgStyles:B,loading:G=!1})=>we.createElement("section",{className:"tc animated fadeIn",style:L(L({},{color:"#999",margin:"100px auto",visibility:G?"hidden":"visible"}),S)},we.createElement("img",{src:A||Fe,style:p(L({},B),{pointerEvents:"none",userSelect:"none"})}),we.createElement("p",{className:"mt20 font14"},K||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),F&&we.createElement(se.ZP,L({className:V,onClick:H},m),F),ee&&ee);Gt.Z=a},79646:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return V}});var we=g(59301),Fe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},se=g(3113),ke=g(63093),ie=g(48551),Y=g(6848),O=g(58130),T=g(79124),n=g(97267),o=g(10148),L=g(63486),p=g(59301),a=Object.defineProperty,A=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,K=(ee,B,G)=>B in ee?a(ee,B,{enumerable:!0,configurable:!0,writable:!0,value:G}):ee[B]=G,F=(ee,B)=>{for(var G in B||(B={}))m.call(B,G)&&K(ee,G,B[G]);if(A)for(var G of A(B))S.call(B,G)&&K(ee,G,B[G]);return ee},H=(ee,B,G)=>new Promise((ce,q)=>{var be=ae=>{try{Le(G.next(ae))}catch(me){q(me)}},xe=ae=>{try{Le(G.throw(ae))}catch(me){q(me)}},Le=ae=>ae.done?ce(ae.value):Promise.resolve(ae.value).then(be,xe);Le((G=G.apply(ee,B)).next())}),V=({editOffice:ee="view",data:B,theme:G,type:ce,filename:q,monacoEditor:be,className:xe,style:Le,close:ae,onClose:me,hasMask:I,disabledDownload:_e,onImgDimensions:oe,showNodata:he,recordInfo:ve})=>{const[_,N]=(0,we.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[X,pe]=(0,we.useState)(""),[qe,at]=(0,we.useState)(),rt=window.ENV==="build"?"/react/build":"",Rt=location.host.startsWith("localhost")?o.Z.PROXY_SERVER:o.Z.API_SERVER,qt=10*(1024*1024),Ze=(0,we.useRef)();B!=null&&B.startsWith("/api")&&ce!=="txt"&&(B=o.Z.API_SERVER+B);const Er=Me=>Me.substring(Me.lastIndexOf("/")+1).split(".").pop();q&&be&&(be.filename=q),(0,we.useEffect)(()=>{var Me,Tt;const z=(Tt=(Me=document.cookie)==null?void 0:Me.replace(/\s/g,""))==null?void 0:Tt.split(";");z==null||z.map(v=>{let f=v.split("=");f[0]==="_educoder_session"&&pe(f[1])})},[]),(0,we.useEffect)(()=>{ce==="office"&&(B.indexOf("bigfilescdn.")>-1||B.indexOf("bigfiles1")>-1?at({url:B,fileType:Er(B),model:B.indexOf("model=edit")?"edit":"view"}):Cr())},[ce,B]);const Cr=()=>H(void 0,null,function*(){console.log("data:",B);let Me=B;B.startsWith("http")||(Me=location.origin+Me);let Tt=new URL(Me).pathname.split("/").pop();const z=yield(0,T.gJ)({attachment_id:Tt});z.url=Rt+z.url,at(z)}),Kr=()=>{if(B.startsWith("http")||B.startsWith("blob:")){_r();return}(0,O.Sv)(q||"educoder",B,q)},_r=()=>{ve&&(0,L.fc)({id:ve==null?void 0:ve.id,watch_type:1,course_id:ve==null?void 0:ve.course_id}),(0,O.Nd)(q||"educoder",decodeURIComponent(B))};return p.createElement("div",{style:F({},Le||{}),className:`${I&&Fe.bgBlack} ${ce?Fe.wrp:"hide"}`},ae&&p.createElement("div",{className:Fe.close,ref:Ze},!!oe&&p.createElement(Y.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ze.current},p.createElement("span",{onClick:()=>{me(),oe()}},p.createElement("i",{className:"icon-yulanpizhu"}))),!_e&&p.createElement(Y.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ze.current},p.createElement("span",{onClick:_r},p.createElement("i",{className:"icon-quxiaozhiding"}))),p.createElement(Y.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ze.current},p.createElement("span",{className:"",onClick:me},p.createElement("i",{className:"icon-guanbi1"})))),p.createElement("div",{className:`${Fe[xe]} ${xe} ${Fe.monaco} ${ce==="txt"?"show":"hide"}`},ce==="txt"&&p.createElement(p.Fragment,null,p.createElement(ie.ZP,F({},be)))),ce==="audio"&&p.createElement("audio",{src:`${(B==null?void 0:B.indexOf("http://"))>-1||(B==null?void 0:B.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${B}`,autoPlay:!0}),ce==="video"&&p.createElement(p.Fragment,null,(B==null?void 0:B.indexOf("http"))>-1?p.createElement("video",{controls:!0,src:`${B}`,autoPlay:!0}):p.createElement("video",{controls:!0,src:`data:video/mp4;base64,${B}`,autoPlay:!0})),ce==="office"&&qe&&p.createElement("iframe",{src:`${rt}/office.html?key=${qe.key}&url=${btoa(qe.url)}&callbackUrl=${Rt+(qe.callbackUrl||"")}&fileType=${qe.fileType}&title=${qe.title||""}&model=${ee}&officeServer=${o.Z.ONLYOFFICE}&disabledDownload=${!!_e}`}),ce==="html"&&p.createElement("iframe",{src:B+"&disposition=inline"}),ce==="pdf"&&p.createElement("iframe",{src:`${rt}/js/pdfview/index.html?filename=${q||"educoder.pdf"}&url=${encodeURIComponent(B)}&disabledDownload=${!!_e}`}),ce==="image"&&p.createElement("img",{src:`${(B==null?void 0:B.indexOf("http://"))>-1||(B==null?void 0:B.indexOf("https://"))>-1?"":"data:image/png;base64,"}${B}`}),(ce==="other"||ce==="download")&&p.createElement(p.Fragment,null,he?p.createElement(n.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:p.createElement(se.ZP,{icon:p.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Kr,disabled:_e},"\u4E0B\u8F7D")}):p.createElement(se.ZP,{type:"primary",size:"middle",onClick:Kr,disabled:_e},p.createElement(ke.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(yn,Gt,g){"use strict";g.d(Gt,{z:function(){return ce},Z:function(){return q}});var we=g(59301),Fe=g(1751),se=g(31087),ke=g(64018),ie=g(37312),Y=g(10148),O=g(58130),T=g(15342),n=g(1012),o=g(79646),L=g(59301),a=({html:be})=>{const xe=(0,we.useRef)(null),Le=(0,we.useRef)(null),ae=`.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,we.useEffect)(()=>{const me=xe.current.attachShadow({mode:"open"});Le.current=document.createElement("div"),Le.current.className="markdown-body",Le.current.innerHTML=be,me.appendChild(Le.current);const I=document.createElement("style");return I.textContent=ae,me.appendChild(I),()=>{me.innerHTML=""}},[]),(0,we.useEffect)(()=>{Le.current&&(Le.current.innerHTML=be)},[be]),L.createElement("div",{ref:xe})},A=Object.defineProperty,m=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,F=(be,xe,Le)=>xe in be?A(be,xe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):be[xe]=Le,H=(be,xe)=>{for(var Le in xe||(xe={}))S.call(xe,Le)&&F(be,Le,xe[Le]);if(m)for(var Le of m(xe))K.call(xe,Le)&&F(be,Le,xe[Le]);return be};const V="@\u2581\u2581@",ee="@\u2581@",B=/<pre[^>]*>/g;function G(be){let xe=document.createElement("div");return xe.innerHTML=be,xe.childNodes.length===0?"":xe.childNodes[0].nodeValue}const ce=(be,xe)=>{be=be||"";const Le=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ae=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,me=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,I=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return xe?be.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Le,(_e,oe,he,ve,_,N,X)=>{const pe=oe||ve||N,qe=he||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+pe+qe+"&t="+(0,O.Jn)(pe,Date.now())+(_e.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(be=be.replace(I,(_e,oe,he,ve,_,N,X)=>{const pe=oe||ve||N,qe=he||_||X||"?";return Y.Z.API_SERVER+"/attachments/download/"+pe+qe+"&t="+(0,O.Jn)(pe,Date.now())+(_e.indexOf(")")>-1?")":"&")}).replace(Le,(_e,oe,he,ve,_,N,X)=>{const pe=oe||ve||N,qe=he||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+pe+qe+"&t="+(0,O.Jn)(pe,Date.now())+(_e.indexOf(")")>-1?")":"&")}).replace(ae,(_e,oe,he,ve,_)=>{const N=oe||ve,X=he||_||"";return'"'+Y.Z.API_SERVER+"/api/attachments/"+N+X+N+X+"&t="+(0,O.Jn)(N,Date.now())}).replace(me,(_e,oe,he,ve,_)=>{const N=oe||ve,X=he||_||"";return"("+Y.Z.API_SERVER+"/files/uploads/"+N+X+N+X+"&t="+(0,O.Jn)(N,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,`
|
|
|
`),be)};var q=({value:be="",className:xe,showTextOnly:Le,showLines:ae,style:me={},stylesPrev:I={},highlightKeywords:_e,showProgramFill:oe,isProgramFill:he,disabledFill:ve=!1,programFillValue:_,onFillChange:N=qe=>{},onFillBlur:X=()=>{},onFillFocus:pe=()=>{}})=>{let qe=String(be);const[at,rt]=(0,we.useState)(""),[Rt,lr]=(0,we.useState)("office"),[qt,Ze]=(0,we.useState)([]),Er=(0,we.useRef)("a"+(0,n.Z)()),Cr={},Kr=(Ie,Te,Se)=>{const Ge=document.createElement(Ie===ee?"input":"textarea");Ge.style.width="100%",Ge.style.height=Ie===ee?"40px":"151px",Ge.rows=5,Ge.spellcheck=!1,Ge.name="edu-program-fill",Ge.placeholder="\u8BF7\u8F93\u5165",Ge.dataset.id=Te;const ft=Object.keys(Cr).length;return Cr[ft]=Ge,`<span class="edu-program-fill-wrap ${Ie===ee?"":"show"}" style="width:${Ie===ee?"400px":"100%"}" title=${Se||""}><span>${Ge.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function _r(Ie){return Ie=Ie.replace(/!\[.*?\]\(.*?\)/g,""),Ie=Ie.replace(/\[.*?\]\(.*?\)/g,""),Ie=Ie.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ie=Ie.replace(/<embed.*?>/g,""),Ie=Ie.replace(/<img.*?>/g,""),Ie=Ie.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ie=Ie.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ie=Ie.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ie=Ie.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ie}const Me=Ie=>Ie.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Te,Se){let Ge=Se.replace(/(\n|\r)/g,"").split("}"),ft=[];return Ge.map(Ke=>{Ke!=""&&ft.push(`.${Er.current} ${Ke}`)}),`<style>${ft.join("}")}</style>`}),Tt=(0,we.useMemo)(()=>{try{const Ge=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ft=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ke=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Xe=/\(\/attachments\/download\//g;qe=qe.replace(Xe,"("+Y.Z.API_SERVER+"/attachments/download/").replace(Ge,"("+Y.Z.API_SERVER+"/api/attachments/").replace(ft,'"'+Y.Z.API_SERVER+"/api/attachments/").replace(Ke,'"'+Y.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(oe){let Ge=-1;return qe=qe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ft,Ke,Xe){var At;return++Ge,Kr(ft,Ge,(At=_==null?void 0:_[Ge])==null?void 0:At.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Me(qe||"")}</pre>`}let Ie=Me(qe);Ie=(0,se.ZP)(Ie);const Te=(0,se.ez)();qe.match(/\[TOC\]/)&&(Ie=Ie.replace("<p>[TOC]</p>",(0,se.Qv)()),(0,se.Iy)()),Ie=Ie.replace(/(__special_katext_id_\d+__)/g,(Ge,ft)=>{const{type:Ke,expression:Xe}=Te[ft];return(0,T.renderToString)(G(Xe)||"",{displayMode:Ke==="block",throwOnError:!1,output:"html"})}),Ie=Ie.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,se.AL)();const Se=document.createElement("div");if(Se.innerHTML=Ie,Le)return Se.innerText;if(_e){const Ge=_e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return D(Se,Ge),Se.innerHTML}return setTimeout(()=>P(),500),Se.innerHTML},[qe,_e]);(0,we.useEffect)(()=>{de.current&&de.current.querySelectorAll(["input","textarea"]).forEach(Te=>{Te.oninput=z,Te.onblur=v,Te.onfocus=f})},[qt]),(0,we.useEffect)(()=>{var Ie,Te,Se,Ge,ft;if(_!=null&&_.length)try{const Ke=de.current.querySelectorAll(".edu-program-fill-score"),Xe=de.current.querySelectorAll('[name="edu-program-fill"]');for(const[At,We]of Xe.entries())We.value=((Ie=_==null?void 0:_[At])==null?void 0:Ie.value)||"",((Te=_==null?void 0:_[At])==null?void 0:Te.type)==="warning"?We.className="program-fill-warning":((Se=_==null?void 0:_[At])==null?void 0:Se.type)==="success"?We.className="program-fill-success":We.className="";for(const[At,We]of Ke.entries())We.innerHTML=(Ge=_==null?void 0:_[At])!=null&&Ge.score?`${(ft=_==null?void 0:_[At])==null?void 0:ft.score}\u5206`:"";Ze(_)}catch(Ke){console.log(Ke,"error")}},[_]);const z=Ie=>{qt[Ie.target.dataset.id]=qt[Ie.target.dataset.id]||{},qt[Ie.target.dataset.id].value=Ie.target.value,Ze([...qt]),N(qt,Ie.target.dataset.id)},v=Ie=>{qt[Ie.target.dataset.id]=qt[Ie.target.dataset.id]||{},qt[Ie.target.dataset.id].value=Ie.target.value,Ze([...qt]),X(qt,Ie.target.dataset.id)},f=Ie=>{qt[Ie.target.dataset.id]=qt[Ie.target.dataset.id]||{},qt[Ie.target.dataset.id].value=Ie.target.value,Ze([...qt]),pe(qt,Ie.target.dataset.id)};function D(Ie,Te){return Ie.childNodes.forEach(Se=>{var Ge;if(Se.childNodes.length>0)D(Se,Te);else if(Se.nodeName!=="IMG")if(Se.innerHTML)Se.innerHTML=(Ge=Se.innerHTML)==null?void 0:Ge.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ft=document.createElement("span");ft.innerHTML=Se.textContent.replace(new RegExp(Te,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Se.replaceWith(ft)}})}const de=(0,we.useRef)();se.jb.WebkitLineClamp=ae,ae&&(me=H(H({},me),se.jb));function W(Ie){let Te=Ie.target;if(Te.tagName.toUpperCase()==="A"){let Se=Te.getAttribute("href");if(Se.indexOf("office")>-1)Ie.preventDefault(),rt(Se),lr("office");else if(Se.indexOf("application/pdf")>-1)Ie.preventDefault(),rt(Se),lr("pdf");else if(Se.indexOf("text/html")>-1)Ie.preventDefault(),rt(Se),lr("html");else if(Se.startsWith("#")){Ie.preventDefault();let Ge=document.getElementById(Se.replace("#",""));Ge&&Ge.scrollIntoView(!0)}}}const P=()=>{var Ie;const Te=(Ie=de.current)==null?void 0:Ie.querySelectorAll("video");Te==null||Te.forEach(Se=>{if(Se.oncontextmenu=()=>!1,Se.src.indexOf(".m3u8")>-1&&!Se.canPlayType("application/vnd.apple.mpegurl")){if(ie.ZP.isSupported()){var Ge=new ie.ZP;Ge.loadSource(Se.src),Ge.attachMedia(Se)}}})};(0,we.useEffect)(()=>{if(de.current&&Tt&&Tt.match(B)&&window.PR.prettyPrint(),de.current)return de.current.addEventListener("click",W),()=>{var Ie;(Ie=de.current)==null||Ie.removeEventListener("click",W),(0,se.AL)(),(0,se.Iy)()}},[Tt,de.current,W]),(0,we.useEffect)(()=>{var Ie;const Te=Se=>{Se.preventDefault(),Se.clipboardData.setData("text",window.getSelection().toString())};return(Ie=de.current)==null||Ie.addEventListener("copy",Te),()=>{var Se;(Se=de.current)==null||Se.removeEventListener("copy",Te)}},[de.current]);const te=Ie=>/<style[\s\S]*?>/i.test(Ie||"");return we.createElement(we.Fragment,null,Le&&we.createElement("div",{ref:de},Tt),!Le&&!te(Tt)&&we.createElement("div",{ref:de,style:H({},me),className:`${xe||""} ${ve?"disabled-fill":""} markdown-body ${Er.current}`,dangerouslySetInnerHTML:{__html:Tt}}),!Le&&te(Tt)&&we.createElement(a,{html:Tt}),we.createElement(o.Z,{close:!0,data:at,type:at!=null&&at.length?Rt:"",style:H({},I),onClose:()=>rt("")}))}},48551:function(yn,Gt,g){"use strict";g.d(Gt,{SV:function(){return de},ZP:function(){return D}});var we=g(59301),Fe=g(76374);const se={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"]},ke={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"]},ie={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(`
|
|
|
`)}]},Y={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(`
|
|
|
`)}]},O={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=g(86061),n=g.n(T),o=Object.defineProperty,L=Object.defineProperties,p=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,S=(W,P,te)=>P in W?o(W,P,{enumerable:!0,configurable:!0,writable:!0,value:te}):W[P]=te,K=(W,P)=>{for(var te in P||(P={}))A.call(P,te)&&S(W,te,P[te]);if(a)for(var te of a(P))m.call(P,te)&&S(W,te,P[te]);return W},F=(W,P)=>L(W,p(P)),H=(W,P,te)=>new Promise((Ie,Te)=>{var Se=Ke=>{try{ft(te.next(Ke))}catch(Xe){Te(Xe)}},Ge=Ke=>{try{ft(te.throw(Ke))}catch(Xe){Te(Xe)}},ft=Ke=>Ke.done?Ie(Ke.value):Promise.resolve(Ke.value).then(Se,Ge);ft((te=te.apply(W,P)).next())});const V={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"]}},ee=(W,P)=>P.map(te=>({label:te,kind:W.languages.CompletionItemKind.Keyword,insertText:te})),B=W=>Object.keys(V.tables).map(P=>({label:P,kind:W.languages.CompletionItemKind.Variable,insertText:P})),G=(W,P)=>{const te=V.tables[W];return te?te.map(Ie=>({label:Ie,kind:P.languages.CompletionItemKind.Field,insertText:Ie})):[]};function ce(W,P,te,Ie,Te){let Se=P.getWordUntilPosition(te),Ge={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Se.startColumn,endColumn:Se.endColumn},ft=Ie.map(Ke=>({label:Ke,kind:W.languages.CompletionItemKind.Keyword,insertText:Ke,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}));return Te.map(Ke=>{ft.push(F(K({},Ke),{range:Ge}))}),ft}var q=W=>{V.languages.map(Te=>(W.languages.registerDocumentFormattingEditProvider(Te,{provideDocumentFormattingEdits(Se,Ge,ft){return H(this,null,function*(){const Ke=n()(Se.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:Se.getFullModelRange(),text:Ke}]})}}),Te));const P=ie.quickKey.map(Te=>({label:Te.label,kind:W.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet})),te=Y.quickKey.map(Te=>({label:Te.label,kind:W.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ie=ke.quickKey.map(Te=>({label:Te.label,kind:W.languages.CompletionItemKind.Method,insertText:Te.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet}));W.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),ft={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ke=Te.getLineContent(Se.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...ie.keywords.map(Xe=>({label:Xe,kind:W.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ft})),...ie.quickKey.map(Xe=>({label:Xe.label,kind:W.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ke.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ft}))]}}}),W.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),ft={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn};return{suggestions:[...se.keywords.map(Ke=>({label:Ke,kind:W.languages.CompletionItemKind.Function,documentation:Ke,insertText:Ke,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ft}))]}}}),W.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),ft={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ke=Te.getLineContent(Se.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...ke.keywords.map(Xe=>({label:Xe,kind:W.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ft})),...ke.quickKey.map(Xe=>({label:Xe.label,kind:W.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ke.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ft}))]}}}),W.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),ft={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ke=Te.getLineContent(Se.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...O.keywords.map(Xe=>({label:Xe,kind:W.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ft})),...O.quickKey.map(Xe=>({label:Xe.label,kind:W.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ke.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ft}))]}}}),W.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Te,Se){var Ge=Te.getWordUntilPosition(Se),ft={startLineNumber:Se.lineNumber,endLineNumber:Se.lineNumber,startColumn:Ge.startColumn,endColumn:Ge.endColumn},Ke=Te.getLineContent(Se.lineNumber).substring(Ge.startColumn-2,Ge.endColumn);return{suggestions:[...Y.keywords.map(Xe=>({label:Xe,kind:W.languages.CompletionItemKind.Function,documentation:Xe,insertText:Xe,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ft})),...Y.quickKey.map(Xe=>({label:Xe.label,kind:W.languages.CompletionItemKind.Function,documentation:Xe.content,insertText:Ke.startsWith("#")?Xe.content.replace(/#/,""):Xe.content,insertTextRules:W.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ft}))]}}})};const be="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var xe=Object.defineProperty,Le=(W,P,te)=>P in W?xe(W,P,{enumerable:!0,configurable:!0,writable:!0,value:te}):W[P]=te,ae=(W,P,te)=>Le(W,typeof P!="symbol"?P+"":P,te);const me=class ZA{constructor(P,te,Ie){this.placeholder=P,this.editor=te,this.monaco=Ie,te.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ZA.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)}};ae(me,"ID","editor.widget.placeholderHint");var _e=me,oe=g(96236),he=g(8591),ve=g(6848),_=g(89392),N=g(86766),X=g(56102),pe=Object.defineProperty,qe=Object.defineProperties,at=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable,qt=(W,P,te)=>P in W?pe(W,P,{enumerable:!0,configurable:!0,writable:!0,value:te}):W[P]=te,Ze=(W,P)=>{for(var te in P||(P={}))Rt.call(P,te)&&qt(W,te,P[te]);if(rt)for(var te of rt(P))lr.call(P,te)&&qt(W,te,P[te]);return W},Er=(W,P)=>qe(W,at(P)),Cr=(W,P)=>{var te={};for(var Ie in W)Rt.call(W,Ie)&&P.indexOf(Ie)<0&&(te[Ie]=W[Ie]);if(W!=null&&rt)for(var Ie of rt(W))P.indexOf(Ie)<0&&lr.call(W,Ie)&&(te[Ie]=W[Ie]);return te},Kr=(W,P,te)=>new Promise((Ie,Te)=>{var Se=Ke=>{try{ft(te.next(Ke))}catch(Xe){Te(Xe)}},Ge=Ke=>{try{ft(te.throw(Ke))}catch(Xe){Te(Xe)}},ft=Ke=>Ke.done?Ie(Ke.value):Promise.resolve(Ke.value).then(Se,Ge);ft((te=te.apply(W,P)).next())});function _r(W){return/^\d+$/.test(W)?`${W}px`:W}function Me(){}let Tt=!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 v(W=[]){let P=W;if(Array.isArray(W)){for(let te=0;te<W.length;te++){let Ie=z[W[te]];if(Ie)return Ie}return P[0]}return z[P]||P}let f=null;var D=W=>{var P=W,{width:te="100%",height:Ie="100%",value:Te,language:Se="javascript",style:Ge={},options:ft={},overrideServices:Ke={},theme:Xe="vs-dark",onEditBlur:At,isCopy:We=!1,onSave:$e,autoHeight:Bt=!1,forbidCopy:Kt=!1,onChange:Mt=Me,editorDidMount:wr=Me,onFocus:vr=Me,onBreakPoint:re=Me,breakPointValue:le=[],filename:rr="educoder.txt",errorLine:Ue,errorContent:ot="",highlightLine:Yr,openBreakPoint:St=!1,placeholder:Vt=""}=P,Zt=Cr(P,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const nt=(0,we.useRef)(),ct=(0,we.useRef)({}),dt=(0,we.useRef)(),Xt=(0,we.useRef)(),Re=(0,we.useRef)([]),fn=(0,we.useRef)(!1),kt=(0,we.useRef)(),Nn=(0,we.useRef)(),Jn=(0,we.useRef)(!1),[vi,Fi]=(0,we.useState)(!1);function Mn(){let Hr;return nt.current&&(Hr=new Fe.Z(zr=>{for(let Tn of zr)(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&ct.current.instance.layout()}),Hr.observe(nt.current)),Hr}function Hn(){he.ZP.warning({content:decodeURIComponent(be),key:"monaco-editor-tip"})}const Yt=()=>{let Hr=ct.current.instance;if(Te!=null&&Hr&&vi){const zr=Hr.getModel();zr&&Te!==zr.getValue()&&(Tt=!0,zr.setValue(Te),Hr.layout(),Tt=!1)}};(0,we.useEffect)(()=>{const Hr=N.Z.subscribe("formatDocument",zr=>{var Tn;let Bn=ct.current.instance;(Tn=Bn==null?void 0:Bn.getAction)==null||Tn.call(Bn,"editor.action.formatDocument").run()});return window.updateMonacoValue=zr=>{Mt(zr)},Hr},[]),(0,we.useEffect)(()=>{var Hr;let zr=ct.current.instance;Xt.current&&clearTimeout(Xt.current),Xt.current=setTimeout(()=>{Yt()},500),Te&&(Te!=null&&Te.length)&&((Hr=zr==null?void 0:zr.updateOptions)==null||Hr.call(zr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Te.split(/\r\n|\r|\n/g).length))+3,5)}))},[Te,vi,ct.current]),(0,we.useEffect)(()=>{if(Ue&&ct.current&&ct.current.instance){let zr=ct.current.instance;zr.changeViewZones(function(Tn){var Bn=document.createElement("div");Bn.style.padding="10px 20px",Bn.style.width="calc(100% - 20px)",Bn.className="my-error-line-wrp",Bn.innerHTML=ot,Tn.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}};zr.addOverlayWidget(Hr),zr.revealPositionInCenter({lineNumber:20,column:1})}},[Ue,ct.current,vi]);const kr=(Hr="",zr)=>{if(!Hr||Hr.trim()==="")return!0;const Bn=ct.current.instance.getModel().getLineTokens(zr);let Qn=!1;for(let Xn=0;Xn<2;Xn++)Bn.getStandardTokenType(Xn)===1&&(Qn=!0);return Qn};(0,we.useEffect)(()=>{var Hr;const zr=(Hr=ct.current)==null?void 0:Hr.instance;if(zr&&vi&&Kt){const Tn=zr.onDidBlurEditorWidget(()=>{Jn.current=!1}),Bn=zr.onDidFocusEditorText(()=>{Jn.current=!0});return()=>{Tn.dispose(),Bn.dispose()}}},[ct.current,vi,Kt]),(0,we.useEffect)(()=>{var Hr;if((Hr=ct.current)!=null&&Hr.instance&&vi&&St){let zr=ct.current.instance,Tn=zr.getModel();if(!Tn)return;(()=>{var on;let en=[],jn=[];const qn=Tn.getAllDecorations();for(let Qi of qn)Qi.options.className==="highlighted-line"&&(en.push((on=Qi==null?void 0:Qi.range)==null?void 0:on.startLineNumber),jn.push(Qi==null?void 0:Qi.id));if(Yr===en[0])return;Tn.deltaDecorations(jn,[]);const oi=Tn.getLineCount();Yr&&Yr<=oi&&(zr.deltaDecorations([],[{range:new f.Range(Yr,1,Yr,Tn.getLineMaxColumn(Yr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),zr.revealLineInCenter(Yr))})();const Qn=(on=!1)=>{var en;let jn=[],qn=[];const oi=Tn.getAllDecorations();for(let Qi of oi)Qi.options.linesDecorationsClassName==="breakpoints-select"&&(jn.push((en=Qi==null?void 0:Qi.range)==null?void 0:en.startLineNumber),qn.push(Qi==null?void 0:Qi.id));if(on)return{lines:jn,ids:qn};re(jn)},Xn=on=>Kr(void 0,null,function*(){let en={range:new f.Range(on,1,on,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Tn.deltaDecorations([],[en]),Qn()}),Hi=on=>Kr(void 0,null,function*(){let en=[];const jn=zr.getLineDecorations(on);for(let qn of jn)qn.options.linesDecorationsClassName==="breakpoints-select"&&en.push(qn.id);yield Tn.deltaDecorations(en,[]),Qn()}),fi=on=>{let en=zr.getLineDecorations(on);for(let jn of en)if(jn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_.isEqual)(le,Qn(!0).lines)){Tn.deltaDecorations(Qn(!0).ids,[]);const on=le.map(en=>({range:new f.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Tn.deltaDecorations([],on)}const wn=zr.onDidChangeModelContent(on=>{let en=zr.getPosition();if(en){let jn=en.lineNumber;clearTimeout(Nn.current),Nn.current=setTimeout(()=>{kr(Tn.getLineContent(jn),jn)?Hi(jn):fi(jn)?(Hi(jn),Xn(jn)):Qn()},100)}}),hr=zr.onMouseDown(on=>{var en,jn,qn;if(on.target.detail&&((qn=(jn=(en=on.target)==null?void 0:en.element)==null?void 0:jn.className)!=null&&qn.includes("line-numbers"))){let oi=on.target.position.lineNumber;if(kr(Tn.getLineContent(oi),oi))return;fi(oi)?Hi(oi):Xn(oi)}}),yr=on=>{let en={range:new f.Range(on,1,on,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Re.current=zr.deltaDecorations(Re.current,[en])},Pr=()=>{Re.current=zr.deltaDecorations(Re.current,[])},Zr=zr.onMouseMove(on=>{var en,jn,qn;if(Pr(),on.target.detail&&((qn=(jn=(en=on.target)==null?void 0:en.element)==null?void 0:jn.className)!=null&&qn.includes("line-numbers"))){let oi=on.target.position.lineNumber;if(kr(Tn.getLineContent(oi),oi))return;yr(oi)}}),Qr=zr.onMouseLeave(()=>{Pr()});return()=>{wn.dispose(),hr.dispose(),Zr.dispose(),Qr.dispose()}}},[ct.current,vi,le,Yr,St,Se]),(0,we.useEffect)(()=>{var Hr;(Hr=ct.current)!=null&&Hr.instance&&St&&ct.current.instance.setPosition({lineNumber:0,column:0})},[Yr]);function tn(){let Hr=ct.current.instance;if(Hr){const zr=Hr.getSelection(),Tn=ct.current.pastePos||{},Bn=new f.Range(Tn.startLineNumber||zr.endLineNumber,Tn.startColumn||zr.endColumn,Tn.endLineNumber||zr.endLineNumber,Tn.endColumn||zr.endColumn);setTimeout(()=>{Hr.executeEdits("",[{range:Bn,text:""}])},300)}}function Nt(Hr){(window.navigator.platform.match("Mac")?Hr.metaKey:Hr.ctrlKey)&&Hr.keyCode==83&&(Hr.preventDefault(),$e())}const _t=()=>{if(Bt&&ct.current.instance){const Hr=ct.current.instance.getContentHeight();$n(Hr<Ie?Ie:Hr)}else $n(Ie)};function Ir(Hr){var zr=document.createEvent("MouseEvents");zr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Hr.dispatchEvent(zr)}const Dr=Hr=>{if(!Jn.current)return;const{keyCode:zr,ctrlKey:Tn,metaKey:Bn,target:Qn,type:Xn}=Hr;return(Xn==="paste"||(zr===67||zr===86)&&(Bn||Tn))&&Qn.nodeName==="TEXTAREA"&&(Hn(),Hr.preventDefault()),!1};function In(Hr,zr){var Tn=window.URL||window.webkitURL||window,Bn=new Blob([zr]),Qn=document.createElementNS("http://www.w3.org/1999/xhtml","a");Qn.href=Tn.createObjectURL(Bn),Qn.download=Hr,Ir(Qn)}(0,we.useEffect)(()=>{_t()},[_t]),(0,we.useEffect)(()=>{nt.current&&!vi&&Promise.all([g.e(8909),g.e(1810)]).then(g.bind(g,71448)).then(Hr=>{try{f=Hr,ct.current.instance=f.editor.create(nt.current,{value:Te,language:v(Se),theme:Xe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ke);const zr=ct.current.instance;let Qn=[...oe.BH._menuItems].find(wn=>wn[0]._debugName=="EditorContext")[1],Xn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Hi=(wn,hr)=>{var yr,Pr;let Zr=wn._first;do hr.includes((Pr=(yr=Zr.element)==null?void 0:yr.command)==null?void 0:Pr.id)&&wn._remove(Zr);while(Zr=Zr.next)};if(wr(zr,f),setTimeout(()=>{_t(),ct.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{In(rr||"educoder.txt",zr.getValue())}})},500),ct.current.subscription=zr.onDidChangeModelContent(wn=>{fn.current?clearTimeout(kt.current):(_t(),Mt(zr.getValue(),wn)),kt.current=setTimeout(()=>{fn.current=!1},500)}),window.Monaco||q(f,v(Se)),Kt&&(Hi(Qn,Xn),nt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Dr),window.removeEventListener("paste",Dr),window.addEventListener("keydown",Dr),window.addEventListener("paste",Dr)),window.Monaco=f,At&&zr.onDidBlurEditorWidget(()=>{At(zr.getValue())}),vr&&zr.onDidFocusEditorText(()=>{vr(zr.getValue())}),Kt)try{zr.onDidPaste(wn=>{const hr=zr.getSelection(),yr=ct.current.pastePos||{},Pr=new f.Range(yr.startLineNumber||hr.endLineNumber,yr.startColumn||hr.endColumn,yr.endLineNumber||hr.endLineNumber,yr.endColumn||hr.endColumn);zr.executeEdits("",[{range:wn.range,text:""}])})}catch(wn){}let fi=Mn();return Vt&&typeof Vt=="string"&&new _e(Vt,zr,f),Fi(!0),()=>{const wn=ct.current.instance;wn.dispose();const hr=wn.getModel();hr&&hr.dispose(),ct.current.subscription&&ct.current.subscription.dispose(),fi.unobserve(nt.current)}}catch(zr){}})},[]),(0,we.useEffect)(()=>{if(ct.current.instance&&vi)return document.addEventListener("keydown",Nt,!1),()=>{document.removeEventListener("keydown",Nt)}},[$e,vi]),(0,we.useEffect)(()=>{let Hr=ct.current.instance;if(Hr&&vi){let zr=v(Se);f.editor.setModelLanguage(Hr.getModel(),zr)}},[Se,vi]),(0,we.useEffect)(()=>{ct.current.instance&&vi&&f.editor.setTheme(Xe)},[Xe,vi]),(0,we.useEffect)(()=>{let Hr=ct.current.instance;dt.current=ft,Hr&&vi&&(Hr.updateOptions(Ze({},ft)),setTimeout(()=>{Hr.getModel().updateOptions(Ze({},ft))},200))},[JSON.stringify(ft),vi]),(0,we.useEffect)(()=>{let Hr=ct.current.instance;Hr&&vi&&Hr.layout()},[te,Ie,vi]);const[qr,Sn]=(0,we.useState)(_r(te)),[hn,$n]=(0,we.useState)(_r(Ie)),ri=Er(Ze({},Ge),{width:qr,height:hn,position:"relative"});return we.createElement("div",{className:"my-monaco-editor",ref:nt,style:ri},We&&we.createElement(X.CopyToClipboard,{text:Te,onCopy:()=>he.ZP.success("\u590D\u5236\u6210\u529F")},we.createElement(ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},we.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},we.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function de({width:W="100%",height:P="100%",original:te,modified:Ie,language:Te,options:Se={}}){const Ge=(0,we.useRef)(),[ft,Ke]=(0,we.useState)(null);function Xe(Bt){let Kt;return Ge.current&&(Kt=new Fe.Z(Mt=>{for(let wr of Mt)(wr.target.offsetHeight>0||wr.target.offsetWidth>0)&&Bt.layout()}),Kt.observe(Ge.current)),Kt}(0,we.useEffect)(()=>(Ge.current&&Promise.all([g.e(8909),g.e(9404)]).then(g.bind(g,2550)).then(Bt=>{f=Bt;const Kt=f.editor.createDiffEditor(Ge.current,Er(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},Se),{wordWrap:!0}));Ke(Kt);let Mt=Xe(Kt);return()=>{Kt.dispose();const wr=Kt.getModel();wr&&wr.dispose(),Mt.unobserve(Ge.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,we.useEffect)(()=>{ft&&ft.setModel({original:f.editor.createModel(te,Te),modified:f.editor.createModel(Ie,Te)})},[te,Ie,Te,ft]);const At=_r(W),We=_r(P),$e={width:At,height:We};return we.createElement("div",{className:"my-diff-editor",ref:Ge,style:$e})}},15398:function(yn,Gt,g){"use strict";g.r(Gt),g.d(Gt,{default:function(){return D}});var we=g(59301),Fe=g(61186),se=g.n(Fe),ke=g(86129),ie=g.n(ke),Y=g(70635),O=g(42203),T=g(43418),n=g(8591),o=g(95237),L=g(43604),p=g(3113),a=g(78485),A=g(66104),m=g(28103),S=g(2595),K=g(10777),F=g(57809),H=g(71418),V=g(66720),ee=g(83281),B=g(80205),G=g(72295),ce=g(10148),q=g(2119),be=g(58130),xe=g(78241),Le=g(88897),ae=g(92832),me=({defaultValue:de,onBlur:W,max:P,className:te="game-score"})=>{const[Ie,Te]=(0,we.useState)(de);(0,we.useEffect)(()=>{Te(de)},[de]);function Se(ft){Te(ft)}function Ge(){Ie&&(W(Ie>P?P:Ie),Te(null))}return we.createElement(Le.Z,{max:P,min:0,className:te,value:Ie,onChange:Se,onBlur:Ge})},I={greyText:"greyText___lvEE6",info:"info___El01Z",label:"label___GmvST",blackContent:"blackContent___FYo0Z",orangeContent:"orangeContent____uYQ3",inputLabel:"inputLabel___ruiZm",tableTitle:"tableTitle___ir3x7",scoreTable:"scoreTable___b9Z37"},_e=g(59301),oe=(de,W,P)=>new Promise((te,Ie)=>{var Te=ft=>{try{Ge(P.next(ft))}catch(Ke){Ie(Ke)}},Se=ft=>{try{Ge(P.throw(ft))}catch(Ke){Ie(Ke)}},Ge=ft=>ft.done?te(ft.value):Promise.resolve(ft.value).then(Te,Se);Ge((P=P.apply(de,W)).next())});const he=({shixunHomeworks:de,dispatch:W,classroomList:P,gethomeworkreport:te,homeWorkReport:Ie})=>{var Te,Se;const{shixunWorkReport:Ge}=de,ft=(0,O.useParams)(),[Ke,Xe]=(0,we.useState)(!1),[At,We]=(0,we.useState)(!1),[$e,Bt]=(0,we.useState)(""),[Kt]=xe.default.useForm(),Mt=()=>oe(void 0,null,function*(){We(!0);const re=Kt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${ft.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:re.hidden_comment,comment:re.comment}})).status===0&&(n.ZP.success("\u70B9\u8BC4\u6210\u529F"),Kt.resetFields(),W({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),We(!1)}),wr=()=>oe(void 0,null,function*(){if(!$e){n.ZP.warning("\u8BF7\u586B\u5199\u5206\u6570");return}We(!0);const re=Kt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${ft.homeworkId}/add_score.json`,{method:"post",body:{comment:re.comment,score:$e}})).status===0&&(n.ZP.success("\u70B9\u8BC4\u6210\u529F"),W({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),We(!1)}),vr=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:160,render:re=>re||"--"},{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:re=>re||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:90,render:(re,le)=>_e.createElement("div",null,_e.createElement("span",{style:{color:parseFloat(le.score_full)!==parseFloat(re)?"#E30000":"#53C41B"}},re),"/",le.score_full)},{title:"\u8C03\u5206",width:100,dataIndex:"action",render:(re,le)=>(0,q.GJ)()?_e.createElement(me,{max:le.score_full,onBlur:rr=>oe(void 0,null,function*(){var Ue;if((0,q.Rm)()&&!((Ue=P.AssistantObject.practice)!=null&&Ue.can_appraise)){n.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 ot=yield(0,Y.ZP)(`/api/student_works/${ft.homeworkId}/adjust_score.json`,{method:"post",body:{score:rr}});te(),ot.status===0&&n.ZP.success("\u8C03\u5206\u6210\u529F")})}):Ie!=null&&Ie.is_anonymous?_e.createElement(Le.Z,{min:0,value:$e,onChange:rr=>Bt(rr),max:le.score_full}):re}].filter(re=>Ie!=null&&Ie.is_anonymous?!["late_penalty","score","absence_penalty"].includes(re.dataIndex):!0);return _e.createElement(T.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",afterClose:()=>{Kt.resetFields(),Bt("")},confirmLoading:At,open:de.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>oe(void 0,null,function*(){var re;if((0,q.Rm)()&&!((re=P.AssistantObject.practice)!=null&&re.can_appraise)){n.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(Ie!=null&&Ie.is_anonymous){wr();return}const le=Kt.getFieldsValue();JSON.stringify(le)==="{}"||le.hidden_comment===""&&le.comment===""?Xe(!0):Mt()}),onCancel:()=>{W({type:"shixunHomeworks/setActionTabs",payload:{}})}},_e.createElement(o.Z,{className:I.info},_e.createElement(L.Z,null,_e.createElement("span",{className:`${I.label} ${I.greyText}`},"\u59D3\u540D"),_e.createElement("span",{className:I.blackContent},Ie==null?void 0:Ie.username)),_e.createElement(L.Z,null,_e.createElement("span",{className:`${I.label} ${I.greyText}`},"\u5B66\u53F7"),_e.createElement("span",{className:I.blackContent},(Ie==null?void 0:Ie.student_id)||"--")),!(Ie!=null&&Ie.is_anonymous)&&_e.createElement(_e.Fragment,null,_e.createElement(L.Z,null,_e.createElement("span",{className:`${I.label} ${I.greyText}`},"\u73ED\u7EA7"),_e.createElement("span",{className:I.blackContent},(Ie==null?void 0:Ie.group_name)||"--")),_e.createElement(L.Z,null,_e.createElement("span",{className:`${I.label} ${I.greyText}`},"\u8865\u4EA4\u6263\u5206"),_e.createElement("span",{className:I.orangeContent},((Te=Ie==null?void 0:Ie.stage_list[0])==null?void 0:Te.late_penalty)||"--")),_e.createElement(L.Z,null,_e.createElement("span",{className:`${I.label} ${I.greyText}`},"\u7F3A\u8BC4\u6263\u5206"),_e.createElement("span",{className:I.orangeContent},((Se=Ie==null?void 0:Ie.stage_list[0])==null?void 0:Se.absence_penalty)||"--")),_e.createElement(L.Z,null,_e.createElement("span",{className:`${I.label} ${I.greyText}`},"\u603B\u6210\u7EE9"),_e.createElement("span",{className:I.orangeContent},(Ie==null?void 0:Ie.stage_list[0].score)||"--")))),_e.createElement(xe.default,{form:Kt,onChange:()=>{Ke&&Xe(!1)}},_e.createElement("div",{className:`${I.inputLabel} ${I.greyText}`},Ie!=null&&Ie.is_anonymous?"\u8BC4\u8BED":"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),_e.createElement(xe.default.Item,{name:"comment"},_e.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),!(Ie!=null&&Ie.is_anonymous)&&_e.createElement(_e.Fragment,null,_e.createElement("div",{className:`${I.inputLabel} ${I.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),_e.createElement(xe.default.Item,{name:"hidden_comment"},_e.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))," ")),Ke&&_e.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),_e.createElement("div",{className:I.tableTitle},"\u5173\u5361\u6210\u7EE9"),_e.createElement(S.default,{className:I.scoreTable,dataSource:Ie==null?void 0:Ie.stage_list,rowKey:"challenge_id",pagination:!1,columns:vr}))};var ve=(0,O.connect)(({shixunHomeworks:de,classroomList:W})=>({shixunHomeworks:de,classroomList:W}))(he),_={},N=(de,W,P)=>new Promise((te,Ie)=>{var Te=ft=>{try{Ge(P.next(ft))}catch(Ke){Ie(Ke)}},Se=ft=>{try{Ge(P.throw(ft))}catch(Ke){Ie(Ke)}},Ge=ft=>ft.done?te(ft.value):Promise.resolve(ft.value).then(Te,Se);Ge((P=P.apply(de,W)).next())});const X=({shixunHomeworks:de,dispatch:W,gethomeworkreport:P,homeWorkReport:te})=>{var Ie,Te;const{shixunWorkReport:Se}=de;console.log(te,"homeWorkReport");const Ge=(0,O.useParams)(),[ft,Ke]=(0,we.useState)(!1),[Xe]=xe.default.useForm(),{user_name:At,score:We,comment_time:$e,content:Bt,score_id:Kt,user_id:Mt}=((Te=(Ie=de==null?void 0:de.actionTabs)==null?void 0:Ie.selectArrs)==null?void 0:Te.data)||{},wr=()=>N(void 0,null,function*(){yield Xe.validateFields(),Ke(!0);const vr=Xe.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${Ge.homeworkId}/appeal_anonymous_score.json`,{method:"post",body:{comment:vr.comment,score_id:Kt,userId:Mt}})).status===0&&(n.ZP.success("\u64CD\u4F5C\u6210\u529F"),W({type:"shixunHomeworks/setActionTabs",payload:{}}),P()),Ke(!1)});return we.createElement(T.default,{centered:!0,width:600,title:"\u533F\u8BC4\u7533\u8BC9",afterClose:()=>{Xe.resetFields()},confirmLoading:ft,open:de.actionTabs.key==="\u533F\u8BC4\u7533\u8BC9",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:wr,onCancel:()=>{W({type:"shixunHomeworks/setActionTabs",payload:{}})}},we.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15,marginBottom:20}},we.createElement(o.Z,{justify:"space-between",className:_.info},we.createElement("span",null,we.createElement("span",{className:"c-grey-666"},At),we.createElement("span",{className:"c-grey-333 ml5"},"\u8C03\u5206\u4E3A"),we.createElement("span",{className:"c-orange ml5"},We,"\u5206")),we.createElement("span",{className:"c-grey-333"},$e)),we.createElement("div",{className:"c-grey-333 mt5"},Bt)),we.createElement(xe.default,{form:Xe,className:"mt15",layout:"vertical"},we.createElement(xe.default.Item,{name:"comment",label:"\u7533\u8BC9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0"}]},we.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0",rows:3}))))};var pe=(0,O.connect)(({shixunHomeworks:de})=>({shixunHomeworks:de}))(X),qe=g(41362),at={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"},rt=g(25711),Rt=g(32583),lr=g(65022),qt=g.n(lr),Ze=g(59301),Er=Object.defineProperty,Cr=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Me=(de,W,P)=>W in de?Er(de,W,{enumerable:!0,configurable:!0,writable:!0,value:P}):de[W]=P,Tt=(de,W)=>{for(var P in W||(W={}))Kr.call(W,P)&&Me(de,P,W[P]);if(Cr)for(var P of Cr(W))_r.call(W,P)&&Me(de,P,W[P]);return de},z=(de,W)=>{var P={};for(var te in de)Kr.call(de,te)&&W.indexOf(te)<0&&(P[te]=de[te]);if(de!=null&&Cr)for(var te of Cr(de))W.indexOf(te)<0&&_r.call(de,te)&&(P[te]=de[te]);return P},v=(de,W,P)=>new Promise((te,Ie)=>{var Te=ft=>{try{Ge(P.next(ft))}catch(Ke){Ie(Ke)}},Se=ft=>{try{Ge(P.throw(ft))}catch(Ke){Ie(Ke)}},Ge=ft=>ft.done?te(ft.value):Promise.resolve(ft.value).then(Te,Se);Ge((P=P.apply(de,W)).next())});const f=de=>{var W=de,{shixunHomeworks:P,classroomList:te,globalSetting:Ie,loading:Te,user:Se,dispatch:Ge}=W,ft=z(W,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),Ke,Xe,At,We,$e,Bt,Kt;const[Mt,wr]=(0,we.useState)(Tt({},(0,O.useParams)())),vr=(0,O.useParams)(),re=(0,O.useLocation)(),[]=(0,we.useState)([]),[le,rr]=(0,we.useState)({last:!1}),[Ue,ot]=(0,we.useState)({last:!1}),Yr=(0,we.useRef)(),St=(0,we.useRef)(),[Vt,Zt]=(0,we.useState)(!1),[nt,ct]=(0,we.useState)(!1),[dt,Xt]=(0,we.useState)(!1),[Re,fn]=(0,we.useState)(),[kt,Nn]=(0,we.useState)(),[Jn,vi]=(0,we.useState)(!0),[Fi,Mn]=(0,we.useState)(),Hn=(0,q.GJ)(),[Yt,kr]=(0,we.useState)(new(ie())),[tn,Nt]=(0,we.useState)(0),[_t,Ir]=(0,we.useState)([]),[Dr,In]=(0,we.useState)(!1),[qr,Sn]=(0,we.useState)(!1),[hn,$n]=(0,we.useState)(""),[ri,Hr]=(0,we.useState)(!1),[zr,Tn]=(0,we.useState)(!0),[Bn,Qn]=(0,we.useState)(0),[Xn]=(0,O.useSearchParams)(),Hi=()=>v(void 0,null,function*(){(Se.userInfo.is_teacher||Se.userInfo.admin)&&(Hr(!0),Tn(!1))});(0,we.useEffect)(()=>{Hi(),console.log("\u6253\u5370\u7684------",Re),console.log(P),$n(Re==null?void 0:Re.repeat_minus_score)},[Re,Se]),(0,we.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Re==null?void 0:Re.work_score),Qn(Re==null?void 0:Re.work_score)},[Re==null?void 0:Re.work_score,hn]),(0,we.useEffect)(()=>(Ge({type:"globalSetting/footerToggle",payload:!1}),()=>{Ge({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,we.useEffect)(()=>{var Tr;if(Re){let _n=[];(Tr=Re==null?void 0:Re.target_test_sets)==null||Tr.map((gn,ui)=>{var ii;(ii=gn==null?void 0:gn.targets)==null||ii.map((ti,wi)=>{var Pi;ti.name=gn==null?void 0:gn.name,ti.total_target_score=gn==null?void 0:gn.total_target_score,ti.actual_target_score=gn==null?void 0:gn.actual_target_score,ti.rowSpan=wi===0?(Pi=gn==null?void 0:gn.targets)==null?void 0:Pi.length:0,ti.order=ui+1,_n.push(ti)})}),Mn(_n),Ge({type:"classroomList/getAssistantPermissions",payload:{course_id:Mt.coursesId}})}},[Re]),(0,we.useEffect)(()=>{P.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&_t.length>0&&Re!=null&&Re.course_name&&yr("all")},[Re==null?void 0:Re.course_name]),(0,we.useEffect)(()=>{console.log(vr),wr(Tt({},vr))},[re.pathname]);const fi=()=>{document.body.scrollIntoView()};function wn(){return v(this,null,function*(){var Tr,_n,gn,ui;const ii=JSON.parse(localStorage.all_student_works_param||"{}"),ti=yield Ge({type:"shixunHomeworks/getAllStudentWorks",payload:Tt(Tt({},Mt),ii)});Ir(ti.all_student_works);const wi=(Tr=ti.all_student_works)==null?void 0:Tr.map(Pi=>String(Pi.student_work_id)).indexOf(Mt.homeworkId);wi===((_n=ti.all_student_works)==null?void 0:_n.length)-1?rr({last:!0}):rr((gn=ti.all_student_works)==null?void 0:gn[wi+1]),ot(wi===0?{last:!0}:(ui=ti.all_student_works)==null?void 0:ui[wi-1])})}const hr=()=>{document.querySelectorAll("canvas").forEach(Tr=>{(!Tr.clientWidth||!Tr.clientHeight)&&Tr.remove()})},yr=Tr=>v(void 0,null,function*(){let _n=0,gn;gn=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"},_n+1),"/",Tr!=="all"?1:_t==null?void 0:_t.length,Ze.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:at.modal,onOk:()=>{}});const ui={margin:[0,0],filename:`${Re==null?void 0:Re.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};function ii(){return v(this,null,function*(){fi(),_n++,setTimeout(()=>v(this,null,function*(){var wi;hr();const Pi=Yt.folder(`${(wi=Re==null?void 0:Re.stage_list[0])==null?void 0:wi.shixun_name}`),Bi=document.querySelector("#export-all").children;let zi=qt()();for(let ca=0;ca<Bi.length;ca++)yield zi.set(ui).from(Bi[ca]).toContainer().toCanvas().toPdf().get("pdf").then(xi=>v(this,null,function*(){ca<Bi.length-1&&(yield xi.addPage())}));Pi.file(`${_t[_n-1].student_work_user_name}.pdf`,zi.output("blob")),gn.update({content:Ze.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",Ze.createElement("span",{className:"c-blue"},_n),"/",_t==null?void 0:_t.length,Ze.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),_n==(_t==null?void 0:_t.length)?(gn.destroy(),Pr()):ti()}),2200)})}function ti(){return v(this,null,function*(){var wi,Pi,Bi,zi,ca;const xi=yield(0,Y.ZP)(`/api/student_works/${_t[_n].student_work_id}/jupyter_work_report.json`,{method:"get"});if((xi==null?void 0:xi.status)===0)if(fn(xi.data),(Pi=(wi=xi==null?void 0:xi.data)==null?void 0:wi.shixun_detail[0])!=null&&Pi.myshixun_identifier){vi(!0);const vn=yield(0,Y.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(zi=(Bi=xi==null?void 0:xi.data)==null?void 0:Bi.shixun_detail[0])==null?void 0:zi.myshixun_identifier,student_work_id:(ca=xi==null?void 0:xi.data)==null?void 0:ca.work_id}});vn.status===0&&(Nn(vn.html_content),vi(!1),en(),ii())}else ii()})}if(Tr!=="all"||(_t==null?void 0:_t.length)<2){hr(),fi();const wi=St.current.children;let Pi=qt()();const Bi=Yt.folder(`${Re==null?void 0:Re.username}`);for(let zi=0;zi<wi.length;zi++)yield Pi.set(ui).from(wi[zi]).toContainer().toCanvas().toPdf().get("pdf").then(ca=>v(void 0,null,function*(){zi<wi.length-1&&(yield ca.addPage())}));Zt(!1),Bi.file(`${Re==null?void 0:Re.username}.pdf`,Pi.output("blob"),{base64:!1}),gn.destroy(),Pr();return}else ti()}),Pr=()=>{Yt.generateAsync({type:"blob"}).then(function(Tr){const _n=document.createElement("a");_n.href=window.URL.createObjectURL(Tr),_n.download=(Re==null?void 0:Re.course_name)+".zip",document.body.appendChild(_n);const gn=document.createEvent("MouseEvents");gn.initEvent("click",!1,!1),_n.dispatchEvent(gn),document.body.removeChild(_n),kr(new(ie()))}),Xt(!1)};(0,we.useEffect)(()=>{jn()},[Mt.homeworkId]),(0,we.useEffect)(()=>{Re!=null&&Re.work_id&&((0,q.GJ)()||Re!=null&&Re.is_anonymous)&&wn()},[Re==null?void 0:Re.work_id]),(0,we.useEffect)(()=>{console.log(Re)},[Re]);const Zr=()=>v(void 0,null,function*(){const Tr=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/jupyter_work_report.json`,{method:"get"});(Tr==null?void 0:Tr.status)===0&&fn(Tr.data)}),Qr=()=>v(void 0,null,function*(){var Tr,_n,gn,ui,ii;const ti=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/jupyter_work_report.json`,{method:"get"});if((ti==null?void 0:ti.status)===0&&(fn(ti.data),(_n=(Tr=ti==null?void 0:ti.data)==null?void 0:Tr.shixun_detail[0])!=null&&_n.myshixun_identifier)){vi(!0);const wi=yield(0,Y.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(ui=(gn=ti==null?void 0:ti.data)==null?void 0:gn.shixun_detail[0])==null?void 0:ui.myshixun_identifier,student_work_id:(ii=ti==null?void 0:ti.data)==null?void 0:ii.work_id}});if(wi.status===0){Nn(wi.html_content),vi(!1),on(wi.html_content);return}}}),on=Tr=>{var _n,gn;(gn=(_n=Tr==null?void 0:Tr.match)==null?void 0:_n.call(Tr,/<script [^>]*src=['"]([^'"]+)[^>]*>/gi))==null||gn.map(ui=>{const ii=document.createElement("script");ii.src=/<script [^>]*src=['"]([^'"]+)[^>]*>/gi.exec(ui)[1],document.body.appendChild(ii)}),en()},en=()=>{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(Tr){}},jn=()=>v(void 0,null,function*(){ct(!0),Qr(),ct(!1)}),qn=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0,render:(Tr,_n,gn)=>Tr},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:Re!=null&&Re.is_anonymous?220:170,render:Tr=>Tr||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:Re!=null&&Re.is_anonymous?140:90},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:Re!=null&&Re.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:Tr=>Tr||"--"},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:Tr=>Tr||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:100,render:(Tr,_n)=>Ze.createElement("div",null,Ze.createElement("span",{style:{color:parseFloat(_n.score_full)!==parseFloat(Tr)?"red":"green"}},Tr||0),"/",_n.score_full)},{title:"\u8C03\u5206",dataIndex:"action",width:110,render:(Tr,_n)=>Hn?Ze.createElement(me,{max:_n.score_full,onBlur:gn=>v(void 0,null,function*(){var ui;if((0,q.Rm)()&&!((ui=te.AssistantObject.practice)!=null&&ui.can_appraise)){n.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 ii=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/adjust_score.json`,{method:"post",body:{score:gn}});Zr(),ii.status===0&&n.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):Tr}].filter(Tr=>Re!=null&&Re.is_anonymous?!["late_penalty","absence_penalty","score","action"].includes(Tr.dataIndex):!0),oi=Re==null?void 0:Re.comment_scores.map(Tr=>{var _n,gn,ui;return{children:Ze.createElement(o.Z,null,Ze.createElement(L.Z,{span:24},Ze.createElement(o.Z,null,Ze.createElement(L.Z,{flex:1},Ze.createElement("span",{className:"c-light-black mr10"},Tr.user_name),Ze.createElement("span",null,"\u8C03\u5206\u4E3A"),Ze.createElement("span",{className:"ml10 c-orange"},Tr.score?Tr.score:0,"\u5206")),Ze.createElement(L.Z,null,Ze.createElement("span",{className:"c-light-black ml10"},Tr.comment_time)))),Ze.createElement(L.Z,{span:24,className:"mt8"},Ze.createElement(o.Z,{className:"mt8"},Ze.createElement(L.Z,{span:22},Tr.content?Ze.createElement("span",{style:{color:"#333333"}},Tr.content):Ze.createElement("span",{className:"c-light-black"},"\u6682\u672A\u5199\u8BC4\u8BED")),Ze.createElement(L.Z,{className:"tr",span:2},(Tr==null?void 0:Tr.can_appeal)&&!(Tr!=null&&Tr.is_invalid)&&Ze.createElement(p.ZP,{size:"small",type:"primary",onClick:()=>{Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u533F\u8BC4\u7533\u8BC9",selectArrs:{data:Tt({},Tr)}}})}},"\u7533\u8BC9")))),!!(Tr!=null&&Tr.appeal_info)&&Ze.createElement(L.Z,{span:24,className:"mt8"},Ze.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15}},Ze.createElement(o.Z,{justify:"space-between"},Ze.createElement("span",null,Ze.createElement("span",{className:"c-grey-333"},(_n=Tr==null?void 0:Tr.appeal_info)==null?void 0:_n.user_name),Ze.createElement("span",null,(Tr==null?void 0:Tr.appeal_status)===1&&Ze.createElement("span",{className:`tag-style bg-orange ml10 ${at.tag}`},"\u7533\u8BC9\u4E2D"),(Tr==null?void 0:Tr.appeal_status)===2&&Ze.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${at.tag}`},"\u7533\u8BC9\u5DF2\u64A4\u9500"),(Tr==null?void 0:Tr.appeal_status)===3&&Ze.createElement("span",{className:`tag-style ml10 ${at.tag}`,style:{background:"#57BE40"}},"\u7533\u8BC9\u6210\u529F"),(Tr==null?void 0:Tr.appeal_status)===4&&Ze.createElement("span",{className:`tag-style bg-grey-ede c-light-black ml10 ${at.tag}`},"\u7533\u8BC9\u88AB\u62D2\u7EDD"),(Tr==null?void 0:Tr.appeal_status)===5&&Ze.createElement("span",{className:`tag-style c-light-black ml10 ${at.tag}`,style:{background:"#E9EAED"}},"\u7533\u8BC9\u5931\u8D25"))),Ze.createElement("span",{className:"c-light-black"}," ",se()((gn=Tr==null?void 0:Tr.appeal_info)==null?void 0:gn.time).format("YYYY-MM-DD HH:mm:ss"))),Ze.createElement(o.Z,{justify:"space-between",className:"mt10"},Ze.createElement(L.Z,{flex:1},(ui=Tr.appeal_info)==null?void 0:ui.content),Ze.createElement(L.Z,{style:{flexShrink:0,marginLeft:"auto"}},(Tr==null?void 0:Tr.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:()=>v(void 0,null,function*(){const ii=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Tr.score_id,status:3}});(ii==null?void 0:ii.status)===0&&Zr()})})},className:"c-red current"},"\u63A5\u53D7\u7533\u8BC9"),(Tr==null?void 0:Tr.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:()=>v(void 0,null,function*(){const ii=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/deal_appeal_score.json`,{method:"post",body:{score_id:Tr.score_id,status:4}});(ii==null?void 0:ii.status)===0&&Zr()})})},className:"c-light-black current ml10"},"\u62D2\u7EDD\u7533\u8BC9"))))))}}),Qi=Tr=>{Nn(null),Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{Tr==="next"?O.history.push(`/classrooms/${Mt.coursesId}/common_homework/${Mt.categoryId}/${le==null?void 0:le.student_work_id}/comment?page=${Xn.get("page")}`):O.history.push(`/classrooms/${Mt.coursesId}/common_homework/${Mt.categoryId}/${Ue==null?void 0:Ue.student_work_id}/comment?page=${Xn.get("page")}`)},200)},Ri=Tr=>{$n(""),Tr.target.value&&(console.log("\u8FDB\u6765",Re),Tr.target.value=Tr.target.value>(Re==null?void 0:Re.repeat_setting_score)?Re==null?void 0:Re.repeat_setting_score:Tr.target.value,$n(Tr.target.value))},ki=()=>v(void 0,null,function*(){const Tr=yield(0,Y.ZP)(`/api/student_works/${Re==null?void 0:Re.work_id}/update_repeat_score`,{method:"put",body:{score:hn}});yield Ge({type:"shixunHomeworks/gethomeWorkReport",payload:Tt({},Mt)}),Tr.status===0&&n.ZP.info("\u64CD\u4F5C\u6210\u529F")});return console.log(!!(Re!=null&&Re.category),Re==null?void 0:Re.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(a.Z,{loading:nt,active:!0,avatar:{size:40},paragraph:{rows:5}},Ze.createElement("div",{className:"edu-container"},(Re==null?void 0:Re.course_id)&&Ze.createElement("section",{className:"animated fadeIn"},Ze.createElement("aside",{className:""},(Re==null?void 0:Re.category)&&Ze.createElement(A.Z,{separator:">"},Ze.createElement(A.Z.Item,null,Ze.createElement(O.Link,{to:`/classrooms/${Re==null?void 0:Re.course_id}/common_homework`},Re==null?void 0:Re.course_name)),Ze.createElement(A.Z.Item,null,Ze.createElement(O.Link,{to:`/classrooms/${Re==null?void 0:Re.course_id}/common_homework/${Re!=null&&Re.category.main?"":Re==null?void 0:Re.category.category_id}`},Re==null?void 0:Re.category.category_name)),Ze.createElement(A.Z.Item,null,Ze.createElement(O.Link,{to:`/classrooms/${Re==null?void 0:Re.course_id}/common_homework/${Re==null?void 0:Re.homework_common_id}/detail`},"\u4F5C\u4E1A\u8BE6\u60C5")),Ze.createElement(A.Z.Item,null,Re==null?void 0:Re.username))),Ze.createElement("aside",{className:[at.title1,"mt20"].join(" ")},Ze.createElement(o.Z,{align:"middle"},Ze.createElement(L.Z,{flex:1},Ze.createElement(O.Link,{to:`/classrooms/${Re==null?void 0:Re.course_id}/common_homework/${Re==null?void 0:Re.homework_common_id}/detail?page=${Xn.get("page")}`},Ze.createElement(V.Z,{className:"font16 c-black"})),Ze.createElement("strong",{style:{fontWeight:700},className:"font20 ml5"},Re==null?void 0:Re.shixun_name),Ze.createElement(be.VV,{status:Re==null?void 0:Re.homework_status})),Ze.createElement(L.Z,{className:at.title1_right},!(Re!=null&&Re.is_anonymous)&&!!(Re!=null&&Re.work_status)&&Ze.createElement(p.ZP,null,Ze.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),Ze.createElement(O.Link,{className:"c-black",target:"_blank",to:`/tasks/${(Xe=(Ke=Re==null?void 0:Re.shixun_detail)==null?void 0:Ke[0])==null?void 0:Xe.myshixun_identifier}/jupyter${(0,q.GJ)()?"":`?homework_common_id=${vr.categoryId}`}`},(0,q.GJ)()?"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD":"\u67E5\u770B\u5B9E\u8BAD")),(0,q.GJ)()&&!((At=Re==null?void 0:Re.homework_status)!=null&&At.includes("\u5DF2\u622A\u6B62"))&&Ze.createElement(p.ZP,{className:"ml10",onClick:()=>v(void 0,null,function*(){yield Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"redoShixunModal",homework_common_id:vr.categoryId,student_work_id:vr.homeworkId}})})},Ze.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),!(Re!=null&&Re.is_anonymous)&&Ze.createElement(p.ZP,{className:"ml10",onClick:()=>{var Tr;if((0,q.Rm)()&&!((Tr=te.AssistantObject.normal)!=null&&Tr.can_download)){n.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}yr("")},loading:Vt},Ze.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,q.GJ)()&&(_t==null?void 0:_t.length)>1&&Ze.createElement(p.ZP,{className:"ml10",onClick:()=>{var Tr;if((0,q.Rm)()&&!((Tr=te.AssistantObject.normal)!=null&&Tr.can_download)){n.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}yr("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:Yr},Ze.createElement("div",{id:"export-all",ref:St},Ze.createElement("div",{id:"export-all-1"},Ze.createElement("div",{className:at.title},Ze.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),Ze.createElement("div",null,!((We=Re==null?void 0:Re.homework_status)!=null&&We.includes("\u5DF2\u622A\u6B62")&&(0,q.dE)())&&((0,q.GJ)()||(Re==null?void 0:Re.is_anonymous))&&Ze.createElement(p.ZP,{className:"mr20",type:"primary",onClick:()=>{Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Re==null?void 0:Re.user_id,data:Tt({},Re)}}})}},Ze.createElement(ee.Z,null),Re!=null&&Re.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),Ze.createElement(m.Z,{style:{marginTop:0}}),Ze.createElement(o.Z,{className:"pl30 pr30"},Ze.createElement(L.Z,null,Ze.createElement("img",{className:at.userPic,src:`${ce.Z.IMG_SERVER}/images/${Re==null?void 0:Re.image_url}`,alt:Re==null?void 0:Re.username})),Ze.createElement(L.Z,{className:"pt20"},Ze.createElement("span",{className:"font16 ml40"},Re==null?void 0:Re.username),Ze.createElement(be.Y,{status:Re==null?void 0:Re.work_status}),Ze.createElement("ul",{className:at.userInfo},Ze.createElement("li",null,"\u5B66\u53F7\uFF1A",(Re==null?void 0:Re.student_id)||"--"),((0,q.GJ)()||!(Re!=null&&Re.is_anonymous))&&Ze.createElement("li",null,"\u5206\u73ED\uFF1A",(Re==null?void 0:Re.group_name)||"--"),Ze.createElement("br",null)))),Ze.createElement("aside",{className:"pl30 pr30 mt30 mb10"},Ze.createElement(S.default,{dataSource:Re==null?void 0:Re.stage_list,rowKey:Tr=>Tr==null?void 0:Tr.challenge_id,pagination:!1,columns:qn})),((Re==null?void 0:Re.work_comment_hidden)||(Re==null?void 0:Re.work_comment))&&Ze.createElement("div",null,Ze.createElement(o.Z,{align:"middle"},Ze.createElement(L.Z,{flex:1},Ze.createElement("h1",{className:at.title},"\u70B9\u8BC4\u5185\u5BB9")),Ze.createElement(L.Z,{className:"pr30"},(0,q.GJ)()&&Ze.createElement(p.ZP,{onClick:()=>v(void 0,null,function*(){T.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:Ze.createElement(B.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return v(this,null,function*(){(yield(0,Rt.gZ)({comment_id:Re==null?void 0:Re.comment_id,homeworkId:Mt.homeworkId})).status===0&&(n.ZP.success("\u5220\u9664\u6210\u529F"),Zr())})}})})},Ze.createElement(G.Z,null),"\u5220\u9664"))),(Re==null?void 0:Re.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(rt.Z,{value:Re==null?void 0:Re.work_comment,className:"font14"})),(Re==null?void 0:Re.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(rt.Z,{value:Re==null?void 0:Re.work_comment_hidden,className:"font14"}))),(Re==null?void 0:Re.comment_scores.length)>0&&Ze.createElement(Ze.Fragment,null,Ze.createElement("h1",{className:at.title},"\u8C03\u5206\u539F\u56E0"),Ze.createElement("aside",{className:"pl30 pr30",style:{marginTop:"4px"}},Ze.createElement(K.Z,{items:oi}))),(($e=Re==null?void 0:Re.shixun_detail[0])==null?void 0:$e.myshixun_identifier)&&Ze.createElement(Ze.Fragment,null,Ze.createElement("h1",{className:at.title,style:{marginTop:"-20px"}},"\u5B9E\u8BAD\u8BE6\u60C5"),Ze.createElement("aside",{className:"pl30 pr30"},Ze.createElement("div",{className:at.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(F.default,{style:{width:200},value:(Bt=Re==null?void 0:Re.shixun_detail[0])==null?void 0:Bt.path}," ",Re==null?void 0:Re.shixun_detail.map(Tr=>Ze.createElement(Option,{value:Tr.path},Tr.path))," "))),Ze.createElement(H.Z,{spinning:Jn},Ze.createElement("div",{style:{width:"100%",minHeight:"550px",padding:"16px"},dangerouslySetInnerHTML:{__html:kt}})))))))),((0,q.GJ)()||(Re==null?void 0:Re.is_anonymous))&&Ze.createElement("aside",{className:`${at.footerBar} ${Vt?at.footerBarStatic:""}`},Ze.createElement("aside",{className:"edu-container"},Ze.createElement(o.Z,{align:"middle"},Ze.createElement(L.Z,{flex:"1"},Ze.createElement(O.Link,{className:at.exitComment,to:`/classrooms/${Mt.coursesId}/common_homework/${Mt.categoryId}/detail?page=${Xn.get("page")}`},"\u8FD4\u56DE\u5217\u8868")),Ze.createElement(L.Z,{flex:"1",className:"tr"},Ze.createElement(p.ZP,{type:"default",disabled:Ue==null?void 0:Ue.last,onClick:()=>Qi()},"\u4E0A\u4E00\u4E2A"),Ze.createElement(p.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:le==null?void 0:le.last,onClick:()=>Qi("next")},"\u4E0B\u4E00\u4E2A"),!((Kt=Re==null?void 0:Re.homework_status)!=null&&Kt.includes("\u5DF2\u622A\u6B62")&&(0,q.dE)())&&((0,q.GJ)()||(Re==null?void 0:Re.is_anonymous))&&Ze.createElement(p.ZP,{type:"primary",onClick:()=>v(void 0,null,function*(){Ge({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:Re==null?void 0:Re.user_id,data:Tt({},Re)}}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),Ze.createElement(pe,{gethomeworkreport:Zr,homeWorkReport:Re}),Ze.createElement(ve,{gethomeworkreport:Zr,homeWorkReport:Re}),Ze.createElement(qe.Z,{getData:Zr}),Ze.createElement(T.default,{open:Dr,width:860,centered:!0,onCancel:()=>{In(!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:qr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{Sn(!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 D=(0,O.connect)(({shixunHomeworks:de,classroomList:W,loading:P,globalSetting:te,user:Ie})=>({shixunHomeworks:de,classroomList:W,globalSetting:te,loading:P.effects,user:Ie}))(f)},41362:function(yn,Gt,g){"use strict";var we=g(43418),Fe=g(8591),se=g(70635),ke=g(42203),ie=g(2119),Y=g(59301),O=(n,o,L)=>new Promise((p,a)=>{var A=K=>{try{S(L.next(K))}catch(F){a(F)}},m=K=>{try{S(L.throw(K))}catch(F){a(F)}},S=K=>K.done?p(K.value):Promise.resolve(K.value).then(A,m);S((L=L.apply(n,o)).next())});const T=({shixunHomeworks:n,dispatch:o,classroomList:L,getData:p})=>Y.createElement(we.default,{centered:!0,title:"\u63D0\u793A",open:n.actionTabs.key==="redoShixunModal",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>O(void 0,null,function*(){var a;if((0,ie.Rm)()&&!((a=L.AssistantObject.normal)!=null&&a.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,se.ZP)(`/api/homework_commons/${n.actionTabs.homework_common_id}/batch_redo_modal.json`,{method:"post",body:{student_work_id:n.actionTabs.student_work_id}})).status===0&&(Fe.ZP.success("\u64CD\u4F5C\u6210\u529F"),o({type:"shixunHomeworks/setActionTabs",payload:{}}),p())}),onCancel:()=>{o({type:"shixunHomeworks/setActionTabs",payload:{}})}},Y.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C",n.actionTabs.isshixun?"\u5B66\u751F\u5B9E\u8BAD":"\u5B66\u751F\u4F5C\u54C1\u63D0\u4EA4","\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),Y.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"));Gt.Z=(0,ke.connect)(({shixunHomeworks:n,classroomList:o})=>({shixunHomeworks:n,classroomList:o}))(T)},31087:function(yn,Gt,g){"use strict";g.d(Gt,{AL:function(){return ee},Iy:function(){return L},Qv:function(){return A},ez:function(){return V},jb:function(){return p}});var we=g(32834),Fe=g.n(we),se=g(11690),ke=g.n(se);let ie=1;function Y(be,xe){const Le=be.match(/^(\s+)(?:```)/);if(Le===null)return xe;const ae=Le[1];return xe.split(`
|
|
|
`).map(me=>{const I=me.match(/^\s+/);if(I===null)return me;const[_e]=I;return _e.length>=ae.length?me.slice(ae.length):me}).join(`
|
|
|
`)}let O=[],T=["<ul>"];const n=new(Fe()).Renderer,o=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function L(){O.length=0,T=["<ul>"]}const p={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function a(be,xe,Le,ae){if(xe>=be.length||be[xe].level<=Le)return xe;var me=be[xe];ae.push("<li><a href='#"+ie+me.anchor+"'>"+me.text+"</a>"),xe++;var I=[];return xe=a(be,xe,me.level,I),I.length>0&&(ae.push("<ul>"),I.forEach(function(_e){ae.push(_e)}),ae.push("</ul>")),ae.push("</li>"),xe=a(be,xe,Le,ae),xe}function A(){return a(O,0,0,T),T.push("</ul>"),T.join("")}const m={heading(be){const xe=o.exec(be);if(ie+=1,xe)return{type:"heading",raw:xe[0],depth:xe[1].length,text:xe[2]}},fences(be){const xe=this.rules.block.fences.exec(be);if(xe){const Le=xe[0];let ae=Y(Le,xe[3]||"");const me=xe[2]?xe[2].trim():xe[2];if(["latex","katex","math"].indexOf(me)>=0){const I=F(),_e=ae;ae=I,H[I]={type:"block",expression:_e}}return{type:"code",raw:Le,lang:me,text:ae}}}},S=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let K=0;const F=()=>`__special_katext_id_${K++}__`;let H={};function V(){return H}function ee(){K=0,H={}}function B(be){return be=be.replace(S,(xe,Le)=>{const ae=F();return H[ae]={type:"inline",expression:Le},ae}),be}const G=n.listitem;n.listitem=function(be){return G(B(be))};const ce=n.paragraph;n.paragraph=function(be){return ce(B(be))};const q=n.tablecell;n.tablecell=function(be,xe){return q(B(be),xe)},n.code=function(be,xe,Le){const ae=(xe||"").match(/\S*/)[0];return ae?["latex","katex","math"].indexOf(ae)>=0?`<p class='editormd-tex'>${be}</p>`:`<pre class="prettyprint linenums"><code class="language-${xe}">${Le?be:(0,se.escape)(be,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Le?be:(0,se.escape)(be,!0))+"</code></pre>"},n.heading=function(be,xe,Le){let ae=this.options.headerPrefix+Le.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return O.push({anchor:ae,level:xe,text:be}),"<h"+xe+' id="'+ie+ae+'">'+be+"</h"+xe+">"},Fe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Fe().use({tokenizer:m,renderer:n}),Gt.ZP=Fe()},36785:function(yn,Gt,g){"use strict";g.d(Gt,{o2:function(){return ie},yT:function(){return Y}});var we=g(26390),Fe=g(33166);const se=Fe.i.map(O=>`${O}-inverse`),ke=["success","processing","error","default","warning"];function ie(O){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,we.Z)(se),(0,we.Z)(Fe.i)).includes(O):Fe.i.includes(O)}function Y(O){return ke.includes(O)}},50371:function(yn,Gt){"use strict";function g(){const we=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Fe=1;Fe<arguments.length;Fe++){const se=Fe<0||arguments.length<=Fe?void 0:arguments[Fe];se&&Object.keys(se).forEach(ke=>{const ie=se[ke];ie!==void 0&&(we[ke]=ie)})}return we}Gt.Z=g},13845:function(yn,Gt,g){"use strict";g.d(Gt,{F:function(){return we},Z:function(){return Fe}});function we(se){return se!=null&&se===se.window}function Fe(se,ke){var ie,Y;if(typeof window=="undefined")return 0;const O=ke?"scrollTop":"scrollLeft";let T=0;return we(se)?T=se[ke?"pageYOffset":"pageXOffset"]:se instanceof Document?T=se.documentElement[O]:(se instanceof HTMLElement||se)&&(T=se[O]),se&&!we(se)&&typeof T!="number"&&(T=(Y=((ie=se.ownerDocument)!==null&&ie!==void 0?ie:se).documentElement)===null||Y===void 0?void 0:Y[O]),T}},56762:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return Fe}});var we=g(59301);function Fe(){const[,se]=we.useReducer(ke=>ke+1,0);return se}},79676:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return Y}});var we=g(19447);function Fe(O,T,n,o){if(o===!1)return{adjustX:!1,adjustY:!1};const L=o&&typeof o=="object"?o:{},p={};switch(O){case"top":case"bottom":p.shiftX=T.dropdownArrowOffset*2+n;break;case"left":case"right":p.shiftY=T.dropdownArrowOffsetVertical*2+n;break}const a=Object.assign(Object.assign({},p),L);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const se={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"]}},ke={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"]}},ie=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Y(O){const{arrowWidth:T,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:L,borderRadius:p,visibleFirst:a}=O,A=T/2,m={};return Object.keys(se).forEach(S=>{const K=o&&ke[S]||se[S],F=Object.assign(Object.assign({},K),{offset:[0,0]});switch(m[S]=F,ie.has(S)&&(F.autoArrow=!1),S){case"top":case"topLeft":case"topRight":F.offset[1]=-A-L;break;case"bottom":case"bottomLeft":case"bottomRight":F.offset[1]=A+L;break;case"left":case"leftTop":case"leftBottom":F.offset[0]=-A-L;break;case"right":case"rightTop":case"rightBottom":F.offset[0]=A+L;break}const H=(0,we.fS)({contentRadius:p,limitVerticalRadius:!0});if(o)switch(S){case"topLeft":case"bottomLeft":F.offset[0]=-H.dropdownArrowOffset-A;break;case"topRight":case"bottomRight":F.offset[0]=H.dropdownArrowOffset+A;break;case"leftTop":case"rightTop":F.offset[1]=-H.dropdownArrowOffset-A;break;case"leftBottom":case"rightBottom":F.offset[1]=H.dropdownArrowOffset+A;break}F.overflow=Fe(S,H,T,n),a&&(F.htmlRegion="visibleFirst")}),m}},68031:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return ke}});var we=g(23073);function Fe(ie,Y,O,T){const n=O-Y;return ie/=T/2,ie<1?n/2*ie*ie*ie+Y:n/2*((ie-=2)*ie*ie+2)+Y}var se=g(13845);function ke(ie){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:O=()=>window,callback:T,duration:n=450}=Y,o=O(),L=(0,se.Z)(o,!0),p=Date.now(),a=()=>{const m=Date.now()-p,S=Fe(m>n?n:m,L,ie,n);(0,se.F)(o)?o.scrollTo(window.pageXOffset,S):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=S:o.scrollTop=S,m<n?(0,we.Z)(a):typeof T=="function"&&T()};(0,we.Z)(a)}},19080:function(yn,Gt,g){"use strict";g.d(Gt,{F:function(){return ie},Z:function(){return ke}});var we=g(92310),Fe=g.n(we);const se=null;function ke(Y,O,T){return Fe()({[`${Y}-status-success`]:O==="success",[`${Y}-status-warning`]:O==="warning",[`${Y}-status-error`]:O==="error",[`${Y}-status-validating`]:O==="validating",[`${Y}-has-feedback`]:T})}const ie=(Y,O)=>O||Y},66104:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return _e}});var we=g(92310),Fe=g.n(we),se=g(38298),ke=g(36994),ie=g(59301),Y=g(92343),O=g(36355),T=g(18290),n=g(91857);const o=oe=>{let{children:he}=oe;const{getPrefixCls:ve}=ie.useContext(O.E_),_=ve("breadcrumb");return ie.createElement("li",{className:`${_}-separator`,"aria-hidden":"true"},he===""?he:he||"/")};o.__ANT_BREADCRUMB_SEPARATOR=!0;var L=o,p=function(oe,he){var ve={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&he.indexOf(_)<0&&(ve[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)he.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ve[_[N]]=oe[_[N]]);return ve};function a(oe,he){if(oe.title===void 0||oe.title===null)return null;const ve=Object.keys(he).join("|");return typeof oe.title=="object"?oe.title:String(oe.title).replace(new RegExp(`:(${ve})`,"g"),(_,N)=>he[N]||_)}function A(oe,he,ve,_){if(ve==null)return null;const{className:N,onClick:X}=he,pe=p(he,["className","onClick"]),qe=Object.assign(Object.assign({},(0,ke.Z)(pe,{data:!0,aria:!0})),{onClick:X});return _!==void 0?ie.createElement("a",Object.assign({},qe,{className:Fe()(`${oe}-link`,N),href:_}),ve):ie.createElement("span",Object.assign({},qe,{className:Fe()(`${oe}-link`,N)}),ve)}function m(oe,he){return(_,N,X,pe,qe)=>{if(he)return he(_,N,X,pe);const at=a(_,N);return A(oe,_,at,qe)}}var S=function(oe,he){var ve={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&he.indexOf(_)<0&&(ve[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)he.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ve[_[N]]=oe[_[N]]);return ve};const K=oe=>{const{prefixCls:he,separator:ve="/",children:_,menu:N,overlay:X,dropdownProps:pe,href:qe}=oe,rt=(Rt=>{if(N||X){const lr=Object.assign({},pe);if(N){const qt=N||{},{items:Ze}=qt,Er=S(qt,["items"]);lr.menu=Object.assign(Object.assign({},Er),{items:Ze==null?void 0:Ze.map((Cr,Kr)=>{var{key:_r,title:Me,label:Tt,path:z}=Cr,v=S(Cr,["key","title","label","path"]);let f=Tt!=null?Tt:Me;return z&&(f=ie.createElement("a",{href:`${qe}${z}`},f)),Object.assign(Object.assign({},v),{key:_r!=null?_r:Kr,label:f})})})}else X&&(lr.overlay=X);return ie.createElement(n.Z,Object.assign({placement:"bottom"},lr),ie.createElement("span",{className:`${he}-overlay-link`},Rt,ie.createElement(T.Z,null)))}return Rt})(_);return rt!=null?ie.createElement(ie.Fragment,null,ie.createElement("li",null,rt),ve&&ie.createElement(L,null,ve)):null},F=oe=>{const{prefixCls:he,children:ve,href:_}=oe,N=S(oe,["prefixCls","children","href"]),{getPrefixCls:X}=ie.useContext(O.E_),pe=X("breadcrumb",he);return ie.createElement(K,Object.assign({},N,{prefixCls:pe}),A(pe,N,ve,_))};F.__ANT_BREADCRUMB_ITEM=!0;var H=F,V=g(17313),ee=g(83116),B=g(37613);const G=oe=>{const{componentCls:he,iconCls:ve}=oe;return{[he]:Object.assign(Object.assign({},(0,V.Wf)(oe)),{color:oe.itemColor,fontSize:oe.fontSize,[ve]:{fontSize:oe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:oe.linkColor,transition:`color ${oe.motionDurationMid}`,padding:`0 ${oe.paddingXXS}px`,borderRadius:oe.borderRadiusSM,height:oe.lineHeight*oe.fontSize,display:"inline-block",marginInline:-oe.marginXXS,"&:hover":{color:oe.linkHoverColor,backgroundColor:oe.colorBgTextHover}},(0,V.Qy)(oe)),"li:last-child":{color:oe.lastItemColor},[`${he}-separator`]:{marginInline:oe.separatorMargin,color:oe.separatorColor},[`${he}-link`]:{[`
|
|
|
> ${ve} + span,
|
|
|
> ${ve} + a
|
|
|
`]:{marginInlineStart:oe.marginXXS}},[`${he}-overlay-link`]:{borderRadius:oe.borderRadiusSM,height:oe.lineHeight*oe.fontSize,display:"inline-block",padding:`0 ${oe.paddingXXS}px`,marginInline:-oe.marginXXS,[`> ${ve}`]:{marginInlineStart:oe.marginXXS,fontSize:oe.fontSizeIcon},"&:hover":{color:oe.linkHoverColor,backgroundColor:oe.colorBgTextHover,a:{color:oe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${oe.componentCls}-rtl`]:{direction:"rtl"}})}};var ce=(0,ee.Z)("Breadcrumb",oe=>{const he=(0,B.TS)(oe,{});return[G(he)]},oe=>({itemColor:oe.colorTextDescription,lastItemColor:oe.colorText,iconFontSize:oe.fontSize,linkColor:oe.colorTextDescription,linkHoverColor:oe.colorText,separatorColor:oe.colorTextDescription,separatorMargin:oe.marginXS})),q=function(oe,he){var ve={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&he.indexOf(_)<0&&(ve[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)he.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ve[_[N]]=oe[_[N]]);return ve};function be(oe){const{breadcrumbName:he,children:ve}=oe,_=q(oe,["breadcrumbName","children"]),N=Object.assign({title:he},_);return ve&&(N.menu={items:ve.map(X=>{var{breadcrumbName:pe}=X,qe=q(X,["breadcrumbName"]);return Object.assign(Object.assign({},qe),{title:pe})})}),N}function xe(oe,he){return(0,ie.useMemo)(()=>oe||(he?he.map(be):null),[oe,he])}var Le=function(oe,he){var ve={};for(var _ in oe)Object.prototype.hasOwnProperty.call(oe,_)&&he.indexOf(_)<0&&(ve[_]=oe[_]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,_=Object.getOwnPropertySymbols(oe);N<_.length;N++)he.indexOf(_[N])<0&&Object.prototype.propertyIsEnumerable.call(oe,_[N])&&(ve[_[N]]=oe[_[N]]);return ve};const ae=(oe,he)=>{if(he===void 0)return he;let ve=(he||"").replace(/^\//,"");return Object.keys(oe).forEach(_=>{ve=ve.replace(`:${_}`,oe[_])}),ve},me=oe=>{const{prefixCls:he,separator:ve="/",style:_,className:N,rootClassName:X,routes:pe,items:qe,children:at,itemRender:rt,params:Rt={}}=oe,lr=Le(oe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:qt,direction:Ze,breadcrumb:Er}=ie.useContext(O.E_);let Cr;const Kr=qt("breadcrumb",he),[_r,Me]=ce(Kr),Tt=xe(qe,pe),z=m(Kr,rt);if(Tt&&Tt.length>0){const D=[],de=qe||pe;Cr=Tt.map((W,P)=>{const{path:te,key:Ie,type:Te,menu:Se,overlay:Ge,onClick:ft,className:Ke,separator:Xe,dropdownProps:At}=W,We=ae(Rt,te);We!==void 0&&D.push(We);const $e=Ie!=null?Ie:P;if(Te==="separator")return ie.createElement(L,{key:$e},Xe);const Bt={},Kt=P===Tt.length-1;Se?Bt.menu=Se:Ge&&(Bt.overlay=Ge);let{href:Mt}=W;return D.length&&We!==void 0&&(Mt=`#/${D.join("/")}`),ie.createElement(K,Object.assign({key:$e},Bt,(0,ke.Z)(W,{data:!0,aria:!0}),{className:Ke,dropdownProps:At,href:Mt,separator:Kt?"":ve,onClick:ft,prefixCls:Kr}),z(W,Rt,de,D,Mt))})}else if(at){const D=(0,se.Z)(at).length;Cr=(0,se.Z)(at).map((de,W)=>{if(!de)return de;const P=W===D-1;return(0,Y.Tm)(de,{separator:P?"":ve,key:W})})}const v=Fe()(Kr,Er==null?void 0:Er.className,{[`${Kr}-rtl`]:Ze==="rtl"},N,X,Me),f=Object.assign(Object.assign({},Er==null?void 0:Er.style),_);return _r(ie.createElement("nav",Object.assign({className:v,style:f},lr),ie.createElement("ol",null,Cr)))};me.Item=H,me.Separator=L;var I=me,_e=I},24905:function(yn,Gt,g){"use strict";g.d(Gt,{default:function(){return ce}});var we=g(92310),Fe=g.n(we),se=g(5630),ke=g(59301),ie=g(36355),Y=g(1684),O=g(32441),n=ke.createContext(null),o=g(98447),L=g(14088),p=g(4572),a=function(q,be){var xe={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&be.indexOf(Le)<0&&(xe[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(q);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[ae])&&(xe[Le[ae]]=q[Le[ae]]);return xe};const A=(q,be)=>{var xe;const{prefixCls:Le,className:ae,rootClassName:me,children:I,indeterminate:_e=!1,style:oe,onMouseEnter:he,onMouseLeave:ve,skipGroup:_=!1,disabled:N}=q,X=a(q,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:pe,direction:qe,checkbox:at}=ke.useContext(ie.E_),rt=ke.useContext(n),{isFormItemInput:Rt}=ke.useContext(O.aM),lr=ke.useContext(Y.Z),qt=(xe=(rt==null?void 0:rt.disabled)||N)!==null&&xe!==void 0?xe:lr,Ze=ke.useRef(X.value);ke.useEffect(()=>{rt==null||rt.registerValue(X.value)},[]),ke.useEffect(()=>{if(!_)return X.value!==Ze.current&&(rt==null||rt.cancelValue(Ze.current),rt==null||rt.registerValue(X.value),Ze.current=X.value),()=>rt==null?void 0:rt.cancelValue(X.value)},[X.value]);const Er=pe("checkbox",Le),[Cr,Kr]=(0,o.ZP)(Er),_r=Object.assign({},X);rt&&!_&&(_r.onChange=function(){X.onChange&&X.onChange.apply(X,arguments),rt.toggleOption&&rt.toggleOption({label:I,value:X.value})},_r.name=rt.name,_r.checked=rt.value.includes(X.value));const Me=Fe()(`${Er}-wrapper`,{[`${Er}-rtl`]:qe==="rtl",[`${Er}-wrapper-checked`]:_r.checked,[`${Er}-wrapper-disabled`]:qt,[`${Er}-wrapper-in-form-item`]:Rt},at==null?void 0:at.className,ae,me,Kr),Tt=Fe()({[`${Er}-indeterminate`]:_e},p.A,Kr),z=_e?"mixed":void 0;return Cr(ke.createElement(L.Z,{component:"Checkbox",disabled:qt},ke.createElement("label",{className:Me,style:Object.assign(Object.assign({},at==null?void 0:at.style),oe),onMouseEnter:he,onMouseLeave:ve},ke.createElement(se.Z,Object.assign({"aria-checked":z},_r,{prefixCls:Er,className:Tt,disabled:qt,ref:be})),I!==void 0&&ke.createElement("span",null,I))))};var S=ke.forwardRef(A),K=g(26390),F=g(64002),H=function(q,be){var xe={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&be.indexOf(Le)<0&&(xe[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(q);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[ae])&&(xe[Le[ae]]=q[Le[ae]]);return xe};const V=(q,be)=>{const{defaultValue:xe,children:Le,options:ae=[],prefixCls:me,className:I,rootClassName:_e,style:oe,onChange:he}=q,ve=H(q,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:_,direction:N}=ke.useContext(ie.E_),[X,pe]=ke.useState(ve.value||xe||[]),[qe,at]=ke.useState([]);ke.useEffect(()=>{"value"in ve&&pe(ve.value||[])},[ve.value]);const rt=ke.useMemo(()=>ae.map(v=>typeof v=="string"||typeof v=="number"?{label:v,value:v}:v),[ae]),Rt=v=>{at(f=>f.filter(D=>D!==v))},lr=v=>{at(f=>[].concat((0,K.Z)(f),[v]))},qt=v=>{const f=X.indexOf(v.value),D=(0,K.Z)(X);f===-1?D.push(v.value):D.splice(f,1),"value"in ve||pe(D),he==null||he(D.filter(de=>qe.includes(de)).sort((de,W)=>{const P=rt.findIndex(Ie=>Ie.value===de),te=rt.findIndex(Ie=>Ie.value===W);return P-te}))},Ze=_("checkbox",me),Er=`${Ze}-group`,[Cr,Kr]=(0,o.ZP)(Ze),_r=(0,F.Z)(ve,["value","disabled"]),Me=ae.length?rt.map(v=>ke.createElement(S,{prefixCls:Ze,key:v.value.toString(),disabled:"disabled"in v?v.disabled:ve.disabled,value:v.value,checked:X.includes(v.value),onChange:v.onChange,className:`${Er}-item`,style:v.style,title:v.title},v.label)):Le,Tt={toggleOption:qt,value:X,disabled:ve.disabled,name:ve.name,registerValue:lr,cancelValue:Rt},z=Fe()(Er,{[`${Er}-rtl`]:N==="rtl"},I,_e,Kr);return Cr(ke.createElement("div",Object.assign({className:z,style:oe},_r,{ref:be}),ke.createElement(n.Provider,{value:Tt},Me)))},ee=ke.forwardRef(V);var B=ke.memo(ee);const G=S;G.Group=B,G.__ANT_CHECKBOX=!0;var ce=G},98447:function(yn,Gt,g){"use strict";g.d(Gt,{C2:function(){return ie}});var we=g(17313),Fe=g(37613),se=g(83116);const ke=Y=>{const{checkboxCls:O}=Y,T=`${O}-wrapper`;return[{[`${O}-group`]:Object.assign(Object.assign({},(0,we.Wf)(Y)),{display:"inline-flex",flexWrap:"wrap",columnGap:Y.marginXS,[`> ${Y.antCls}-row`]:{flex:1}}),[T]:Object.assign(Object.assign({},(0,we.Wf)(Y)),{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}}}),[O]:Object.assign(Object.assign({},(0,we.Wf)(Y)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Y.borderRadiusSM,alignSelf:"center",[`${O}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${O}-inner`]:Object.assign({},(0,we.oN)(Y))},[`${O}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Y.checkboxSize,height:Y.checkboxSize,direction:"ltr",backgroundColor:Y.colorBgContainer,border:`${Y.lineWidth}px ${Y.lineType} ${Y.colorBorder}`,borderRadius:Y.borderRadiusSM,borderCollapse:"separate",transition:`all ${Y.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Y.checkboxSize/14*5,height:Y.checkboxSize/14*8,border:`${Y.lineWidthBold}px solid ${Y.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Y.motionDurationFast} ${Y.motionEaseInBack}, opacity ${Y.motionDurationFast}`}},"& + span":{paddingInlineStart:Y.paddingXS,paddingInlineEnd:Y.paddingXS}})},{[`
|
|
|
${T}:not(${T}-disabled),
|
|
|
${O}:not(${O}-disabled)
|
|
|
`]:{[`&:hover ${O}-inner`]:{borderColor:Y.colorPrimary}},[`${T}:not(${T}-disabled)`]:{[`&:hover ${O}-checked:not(${O}-disabled) ${O}-inner`]:{backgroundColor:Y.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${O}-checked:not(${O}-disabled):after`]:{borderColor:Y.colorPrimaryHover}}},{[`${O}-checked`]:{[`${O}-inner`]:{backgroundColor:Y.colorPrimary,borderColor:Y.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Y.motionDurationMid} ${Y.motionEaseOutBack} ${Y.motionDurationFast}`}}},[`
|
|
|
${T}-checked:not(${T}-disabled),
|
|
|
${O}-checked:not(${O}-disabled)
|
|
|
`]:{[`&:hover ${O}-inner`]:{backgroundColor:Y.colorPrimaryHover,borderColor:"transparent"}}},{[O]:{"&-indeterminate":{[`${O}-inner`]:{backgroundColor:Y.colorBgContainer,borderColor:Y.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Y.fontSizeLG/2,height:Y.fontSizeLG/2,backgroundColor:Y.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${T}-disabled`]:{cursor:"not-allowed"},[`${O}-disabled`]:{[`&, ${O}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${O}-inner`]:{background:Y.colorBgContainerDisabled,borderColor:Y.colorBorder,"&:after":{borderColor:Y.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Y.colorTextDisabled},[`&${O}-indeterminate ${O}-inner::after`]:{background:Y.colorTextDisabled}}}]};function ie(Y,O){const T=(0,Fe.TS)(O,{checkboxCls:`.${Y}`,checkboxSize:O.controlInteractiveSize});return[ke(T)]}Gt.ZP=(0,se.Z)("Checkbox",(Y,O)=>{let{prefixCls:T}=O;return[ie(T,Y)]})},93891:function(yn,Gt,g){"use strict";var we=g(59301),Fe=g(36355),se=g(64165);const ke=ie=>{const{componentName:Y}=ie,{getPrefixCls:O}=(0,we.useContext)(Fe.E_),T=O("empty");switch(Y){case"Table":case"List":return we.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return we.createElement(se.Z,{image:se.Z.PRESENTED_IMAGE_SIMPLE,className:`${T}-small`});default:return we.createElement(se.Z,null)}};Gt.Z=ke},28103:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return p}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=g(36355),ie=g(17313),Y=g(83116),O=g(37613);const T=a=>{const{componentCls:A,sizePaddingEdgeHorizontal:m,colorSplit:S,lineWidth:K,textPaddingInline:F,orientationMargin:H,verticalMarginInline:V}=a;return{[A]:Object.assign(Object.assign({},(0,ie.Wf)(a)),{borderBlockStart:`${K}px solid ${S}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:V,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${K}px solid ${S}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${a.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${A}-with-text`]:{display:"flex",alignItems:"center",margin:`${a.dividerHorizontalWithTextGutterMargin}px 0`,color:a.colorTextHeading,fontWeight:500,fontSize:a.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${S}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${K}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${A}-with-text-left`]:{"&::before":{width:`${H*100}%`},"&::after":{width:`${100-H*100}%`}},[`&-horizontal${A}-with-text-right`]:{"&::before":{width:`${100-H*100}%`},"&::after":{width:`${H*100}%`}},[`${A}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:F},"&-dashed":{background:"none",borderColor:S,borderStyle:"dashed",borderWidth:`${K}px 0 0`},[`&-horizontal${A}-with-text${A}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${A}-dashed`]:{borderInlineStartWidth:K,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${A}-with-text`]:{color:a.colorText,fontWeight:"normal",fontSize:a.fontSize},[`&-horizontal${A}-with-text-left${A}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${A}-inner-text`]:{paddingInlineStart:m}},[`&-horizontal${A}-with-text-right${A}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${A}-inner-text`]:{paddingInlineEnd:m}}})}};var n=(0,Y.Z)("Divider",a=>{const A=(0,O.TS)(a,{dividerHorizontalWithTextGutterMargin:a.margin,dividerHorizontalGutterMargin:a.marginLG,sizePaddingEdgeHorizontal:0});return[T(A)]},a=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:a.marginXS})),o=function(a,A){var m={};for(var S in a)Object.prototype.hasOwnProperty.call(a,S)&&A.indexOf(S)<0&&(m[S]=a[S]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,S=Object.getOwnPropertySymbols(a);K<S.length;K++)A.indexOf(S[K])<0&&Object.prototype.propertyIsEnumerable.call(a,S[K])&&(m[S[K]]=a[S[K]]);return m},p=a=>{const{getPrefixCls:A,direction:m,divider:S}=se.useContext(ke.E_),{prefixCls:K,type:F="horizontal",orientation:H="center",orientationMargin:V,className:ee,rootClassName:B,children:G,dashed:ce,plain:q,style:be}=a,xe=o(a,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Le=A("divider",K),[ae,me]=n(Le),I=H.length>0?`-${H}`:H,_e=!!G,oe=H==="left"&&V!=null,he=H==="right"&&V!=null,ve=Fe()(Le,S==null?void 0:S.className,me,`${Le}-${F}`,{[`${Le}-with-text`]:_e,[`${Le}-with-text${I}`]:_e,[`${Le}-dashed`]:!!ce,[`${Le}-plain`]:!!q,[`${Le}-rtl`]:m==="rtl",[`${Le}-no-default-orientation-margin-left`]:oe,[`${Le}-no-default-orientation-margin-right`]:he},ee,B),_=se.useMemo(()=>typeof V=="number"?V:/^\d+$/.test(V)?Number(V):V,[V]),N=Object.assign(Object.assign({},oe&&{marginLeft:_}),he&&{marginRight:_});return ae(se.createElement("div",Object.assign({className:ve,style:Object.assign(Object.assign({},S==null?void 0:S.style),be)},xe,{role:"separator"}),G&&F!=="vertical"&&se.createElement("span",{className:`${Le}-inner-text`,style:N},G)))}},91857:function(yn,Gt,g){"use strict";var we=g(59301),Fe=g(53878),se=g(92310),ke=g.n(se),ie=g(31561),Y=g(80764),O=g(35788),T=g(64002),n=g(79676),o=g(53487),L=g(92343),p=g(36355),a=g(20834),A=g(40875),m=g(88088),S=g(47211);const K=null,F=B=>{const{menu:G,arrow:ce,prefixCls:q,children:be,trigger:xe,disabled:Le,dropdownRender:ae,getPopupContainer:me,overlayClassName:I,rootClassName:_e,open:oe,onOpenChange:he,visible:ve,onVisibleChange:_,mouseEnterDelay:N=.15,mouseLeaveDelay:X=.1,autoAdjustOverflow:pe=!0,placement:qe="",overlay:at,transitionName:rt}=B,{getPopupContainer:Rt,getPrefixCls:lr,direction:qt}=we.useContext(p.E_),Ze=we.useMemo(()=>{const Se=lr();return rt!==void 0?rt:qe.includes("top")?`${Se}-slide-down`:`${Se}-slide-up`},[lr,qe,rt]),Er=we.useMemo(()=>qe?qe.includes("Center")?qe.slice(0,qe.indexOf("Center")):qe:qt==="rtl"?"bottomRight":"bottomLeft",[qe,qt]),Cr=lr("dropdown",q),[Kr,_r]=(0,S.Z)(Cr),[,Me]=(0,m.Z)(),Tt=we.Children.only(be),z=(0,L.Tm)(Tt,{className:ke()(`${Cr}-trigger`,{[`${Cr}-rtl`]:qt==="rtl"},Tt.props.className),disabled:Le}),v=Le?[]:xe;let f;v&&v.includes("contextMenu")&&(f=!0);const[D,de]=(0,O.Z)(!1,{value:oe!=null?oe:ve}),W=(0,Y.useEvent)(Se=>{he==null||he(Se),_==null||_(Se),de(Se)}),P=ke()(I,_e,_r,{[`${Cr}-rtl`]:qt==="rtl"}),te=(0,n.Z)({arrowPointAtCenter:typeof ce=="object"&&ce.pointAtCenter,autoAdjustOverflow:pe,offset:Me.marginXXS,arrowWidth:ce?Me.sizePopupArrow:0,borderRadius:Me.borderRadius}),Ie=we.useCallback(()=>{de(!1)},[]),Te=()=>{let Se;return G!=null&&G.items?Se=we.createElement(a.default,Object.assign({},G)):typeof at=="function"?Se=at():Se=at,ae&&(Se=ae(Se)),Se=we.Children.only(typeof Se=="string"?we.createElement("span",null,Se):Se),we.createElement(A.J,{prefixCls:`${Cr}-menu`,expandIcon:we.createElement("span",{className:`${Cr}-menu-submenu-arrow`},we.createElement(Fe.Z,{className:`${Cr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ie,validator:Ge=>{let{mode:ft}=Ge}},Se)};return Kr(we.createElement(ie.Z,Object.assign({alignPoint:f},(0,T.Z)(B,["rootClassName"]),{mouseEnterDelay:N,mouseLeaveDelay:X,visible:D,builtinPlacements:te,arrow:!!ce,overlayClassName:P,prefixCls:Cr,getPopupContainer:me||Rt,transitionName:Ze,trigger:v,overlay:Te,placement:Er,onVisibleChange:W}),z))};function H(B){return Object.assign(Object.assign({},B),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const V=(0,o.Z)(F,"dropdown",B=>B,H),ee=B=>we.createElement(V,Object.assign({},B),we.createElement("span",null));F._InternalPanelDoNotUseOrYouWillBeFired=ee,Gt.Z=F},38854:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return m}});var we=g(91857),Fe=g(92310),se=g.n(Fe),ke=g(59301),ie=g(19362),Y=g(3113),O=g(36355),T=g(81327),n=g(33234),o=g(47211),L=function(S,K){var F={};for(var H in S)Object.prototype.hasOwnProperty.call(S,H)&&K.indexOf(H)<0&&(F[H]=S[H]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,H=Object.getOwnPropertySymbols(S);V<H.length;V++)K.indexOf(H[V])<0&&Object.prototype.propertyIsEnumerable.call(S,H[V])&&(F[H[V]]=S[H[V]]);return F};const p=S=>{const{getPopupContainer:K,getPrefixCls:F,direction:H}=ke.useContext(O.E_),{prefixCls:V,type:ee="default",danger:B,disabled:G,loading:ce,onClick:q,htmlType:be,children:xe,className:Le,menu:ae,arrow:me,autoFocus:I,overlay:_e,trigger:oe,align:he,open:ve,onOpenChange:_,placement:N,getPopupContainer:X,href:pe,icon:qe=ke.createElement(ie.Z,null),title:at,buttonsRender:rt=Te=>Te,mouseEnterDelay:Rt,mouseLeaveDelay:lr,overlayClassName:qt,overlayStyle:Ze,destroyPopupOnHide:Er,dropdownRender:Cr}=S,Kr=L(S,["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"]),_r=F("dropdown",V),Me=`${_r}-button`,[Tt,z]=(0,o.Z)(_r),v={menu:ae,arrow:me,autoFocus:I,align:he,disabled:G,trigger:G?[]:oe,onOpenChange:_,getPopupContainer:X||K,mouseEnterDelay:Rt,mouseLeaveDelay:lr,overlayClassName:qt,overlayStyle:Ze,destroyPopupOnHide:Er,dropdownRender:Cr},{compactSize:f,compactItemClassnames:D}=(0,n.ri)(_r,H),de=se()(Me,D,Le,z);"overlay"in S&&(v.overlay=_e),"open"in S&&(v.open=ve),"placement"in S?v.placement=N:v.placement=H==="rtl"?"bottomLeft":"bottomRight";const W=ke.createElement(Y.ZP,{type:ee,danger:B,disabled:G,loading:ce,onClick:q,htmlType:be,href:pe,title:at},xe),P=ke.createElement(Y.ZP,{type:ee,danger:B,icon:qe}),[te,Ie]=rt([W,P]);return Tt(ke.createElement(T.Z.Compact,Object.assign({className:de,size:f,block:!0},Kr),te,ke.createElement(we.Z,Object.assign({},v),Ie)))};p.__ANT_BUTTON=!0;var a=p;const A=we.Z;A.Button=a;var m=A},47211:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return L}});var we=g(17313),Fe=g(13826),se=g(92899),ke=g(29878),ie=g(19447),Y=g(83116),O=g(37613),n=p=>{const{componentCls:a,menuCls:A,colorError:m,colorTextLightSolid:S}=p,K=`${A}-item`;return{[`${a}, ${a}-menu-submenu`]:{[`${A} ${K}`]:{[`&${K}-danger:not(${K}-disabled)`]:{color:m,"&:hover":{color:S,backgroundColor:m}}}}}};const o=p=>{const{componentCls:a,menuCls:A,zIndexPopup:m,dropdownArrowDistance:S,sizePopupArrow:K,antCls:F,iconCls:H,motionDurationMid:V,dropdownPaddingVertical:ee,fontSize:B,dropdownEdgeChildPadding:G,colorTextDisabled:ce,fontSizeIcon:q,controlPaddingHorizontal:be,colorBgElevated:xe}=p;return[{[a]:Object.assign(Object.assign({},(0,we.Wf)(p)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:m,display:"block","&::before":{position:"absolute",insetBlock:-S+K/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${F}-btn`]:{[`& > ${H}-down, & > ${F}-btn-icon > ${H}-down`]:{fontSize:q}},[`${a}-wrap`]:{position:"relative",[`${F}-btn > ${H}-down`]:{fontSize:q},[`${H}-down::before`]:{transition:`transform ${V}`}},[`${a}-wrap-open`]:{[`${H}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${F}-slide-down-enter${F}-slide-down-enter-active${a}-placement-bottomLeft,
|
|
|
&${F}-slide-down-appear${F}-slide-down-appear-active${a}-placement-bottomLeft,
|
|
|
&${F}-slide-down-enter${F}-slide-down-enter-active${a}-placement-bottom,
|
|
|
&${F}-slide-down-appear${F}-slide-down-appear-active${a}-placement-bottom,
|
|
|
&${F}-slide-down-enter${F}-slide-down-enter-active${a}-placement-bottomRight,
|
|
|
&${F}-slide-down-appear${F}-slide-down-appear-active${a}-placement-bottomRight`]:{animationName:Fe.fJ},[`&${F}-slide-up-enter${F}-slide-up-enter-active${a}-placement-topLeft,
|
|
|
&${F}-slide-up-appear${F}-slide-up-appear-active${a}-placement-topLeft,
|
|
|
&${F}-slide-up-enter${F}-slide-up-enter-active${a}-placement-top,
|
|
|
&${F}-slide-up-appear${F}-slide-up-appear-active${a}-placement-top,
|
|
|
&${F}-slide-up-enter${F}-slide-up-enter-active${a}-placement-topRight,
|
|
|
&${F}-slide-up-appear${F}-slide-up-appear-active${a}-placement-topRight`]:{animationName:Fe.Qt},[`&${F}-slide-down-leave${F}-slide-down-leave-active${a}-placement-bottomLeft,
|
|
|
&${F}-slide-down-leave${F}-slide-down-leave-active${a}-placement-bottom,
|
|
|
&${F}-slide-down-leave${F}-slide-down-leave-active${a}-placement-bottomRight`]:{animationName:Fe.Uw},[`&${F}-slide-up-leave${F}-slide-up-leave-active${a}-placement-topLeft,
|
|
|
&${F}-slide-up-leave${F}-slide-up-leave-active${a}-placement-top,
|
|
|
&${F}-slide-up-leave${F}-slide-up-leave-active${a}-placement-topRight`]:{animationName:Fe.ly}})},(0,ie.ZP)(p,{colorBg:xe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${a} ${A}`]:{position:"relative",margin:0},[`${A}-submenu-popup`]:{position:"absolute",zIndex:m,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${a}, ${a}-menu-submenu`]:{[A]:Object.assign(Object.assign({padding:G,listStyleType:"none",backgroundColor:xe,backgroundClip:"padding-box",borderRadius:p.borderRadiusLG,outline:"none",boxShadow:p.boxShadowSecondary},(0,we.Qy)(p)),{[`${A}-item-group-title`]:{padding:`${ee}px ${be}px`,color:p.colorTextDescription,transition:`all ${V}`},[`${A}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${A}-item-icon`]:{minWidth:B,marginInlineEnd:p.marginXS,fontSize:p.fontSizeSM},[`${A}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${V}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${A}-item, ${A}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${be}px`,color:p.colorText,fontWeight:"normal",fontSize:B,lineHeight:p.lineHeight,cursor:"pointer",transition:`all ${V}`,borderRadius:p.borderRadiusSM,"&:hover, &-active":{backgroundColor:p.controlItemBgHover}},(0,we.Qy)(p)),{"&-selected":{color:p.colorPrimary,backgroundColor:p.controlItemBgActive,"&:hover, &-active":{backgroundColor:p.controlItemBgActiveHover}},"&-disabled":{color:ce,cursor:"not-allowed","&:hover":{color:ce,backgroundColor:xe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${p.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:p.colorSplit},[`${a}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:p.paddingXS,[`${a}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:p.colorTextDescription,fontSize:q,fontStyle:"normal"}}}),[`${A}-item-group-list`]:{margin:`0 ${p.marginXS}px`,padding:0,listStyle:"none"},[`${A}-submenu-title`]:{paddingInlineEnd:be+p.fontSizeSM},[`${A}-submenu-vertical`]:{position:"relative"},[`${A}-submenu${A}-submenu-disabled ${a}-menu-submenu-title`]:{[`&, ${a}-menu-submenu-arrow-icon`]:{color:ce,backgroundColor:xe,cursor:"not-allowed"}},[`${A}-submenu-selected ${a}-menu-submenu-title`]:{color:p.colorPrimary}})}},[(0,Fe.oN)(p,"slide-up"),(0,Fe.oN)(p,"slide-down"),(0,se.Fm)(p,"move-up"),(0,se.Fm)(p,"move-down"),(0,ke._y)(p,"zoom-big")]]};var L=(0,Y.Z)("Dropdown",(p,a)=>{let{rootPrefixCls:A}=a;const{marginXXS:m,sizePopupArrow:S,controlHeight:K,fontSize:F,lineHeight:H,paddingXXS:V,componentCls:ee,borderRadiusLG:B}=p,G=(K-F*H)/2,{dropdownArrowOffset:ce}=(0,ie.fS)({contentRadius:B}),q=(0,O.TS)(p,{menuCls:`${ee}-menu`,rootPrefixCls:A,dropdownArrowDistance:S/2+m,dropdownArrowOffset:ce,dropdownPaddingVertical:G,dropdownEdgeChildPadding:V});return[o(q),n(q)]},p=>({zIndexPopup:p.zIndexPopupBase+50}))},64165:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return V}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=g(36355),ie=g(9763),Y=g(64993),O=g(88088),n=()=>{const[,ee]=(0,O.Z)(),G=new Y.C(ee.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return se.createElement("svg",{style:G,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("g",{transform:"translate(24 31.67)"},se.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),se.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"}),se.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)"}),se.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"}),se.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"})),se.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"}),se.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},se.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),se.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},L=()=>{const[,ee]=(0,O.Z)(),{colorFill:B,colorFillTertiary:G,colorFillQuaternary:ce,colorBgContainer:q}=ee,{borderColor:be,shadowColor:xe,contentColor:Le}=(0,se.useMemo)(()=>({borderColor:new Y.C(B).onBackground(q).toHexShortString(),shadowColor:new Y.C(G).onBackground(q).toHexShortString(),contentColor:new Y.C(ce).onBackground(q).toHexShortString()}),[B,G,ce,q]);return se.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},se.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},se.createElement("ellipse",{fill:xe,cx:"32",cy:"33",rx:"32",ry:"7"}),se.createElement("g",{fillRule:"nonzero",stroke:be},se.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"}),se.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}))))},p=g(83116),a=g(37613);const A=ee=>{const{componentCls:B,margin:G,marginXS:ce,marginXL:q,fontSize:be,lineHeight:xe}=ee;return{[B]:{marginInline:ce,fontSize:be,lineHeight:xe,textAlign:"center",[`${B}-image`]:{height:ee.emptyImgHeight,marginBottom:ce,opacity:ee.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${B}-description`]:{color:ee.colorText},[`${B}-footer`]:{marginTop:G},"&-normal":{marginBlock:q,color:ee.colorTextDisabled,[`${B}-description`]:{color:ee.colorTextDisabled},[`${B}-image`]:{height:ee.emptyImgHeightMD}},"&-small":{marginBlock:ce,color:ee.colorTextDisabled,[`${B}-image`]:{height:ee.emptyImgHeightSM}}}}};var m=(0,p.Z)("Empty",ee=>{const{componentCls:B,controlHeightLG:G}=ee,ce=(0,a.TS)(ee,{emptyImgCls:`${B}-img`,emptyImgHeight:G*2.5,emptyImgHeightMD:G,emptyImgHeightSM:G*.875});return[A(ce)]}),S=function(ee,B){var G={};for(var ce in ee)Object.prototype.hasOwnProperty.call(ee,ce)&&B.indexOf(ce)<0&&(G[ce]=ee[ce]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,ce=Object.getOwnPropertySymbols(ee);q<ce.length;q++)B.indexOf(ce[q])<0&&Object.prototype.propertyIsEnumerable.call(ee,ce[q])&&(G[ce[q]]=ee[ce[q]]);return G};const K=se.createElement(n,null),F=se.createElement(L,null),H=ee=>{var{className:B,rootClassName:G,prefixCls:ce,image:q=K,description:be,children:xe,imageStyle:Le,style:ae}=ee,me=S(ee,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:I,direction:_e,empty:oe}=se.useContext(ke.E_),he=I("empty",ce),[ve,_]=m(he),[N]=(0,ie.Z)("Empty"),X=typeof be!="undefined"?be:N==null?void 0:N.description,pe=typeof X=="string"?X:"empty";let qe=null;return typeof q=="string"?qe=se.createElement("img",{alt:pe,src:q}):qe=q,ve(se.createElement("div",Object.assign({className:Fe()(_,he,oe==null?void 0:oe.className,{[`${he}-normal`]:q===F,[`${he}-rtl`]:_e==="rtl"},B,G),style:Object.assign(Object.assign({},oe==null?void 0:oe.style),ae)},me),se.createElement("div",{className:`${he}-image`,style:Le},qe),X&&se.createElement("div",{className:`${he}-description`},X),xe&&se.createElement("div",{className:`${he}-footer`},xe)))};H.PRESENTED_IMAGE_DEFAULT=K,H.PRESENTED_IMAGE_SIMPLE=F;var V=H},78241:function(yn,Gt,g){"use strict";g.d(Gt,{default:function(){return Hn}});var we=g(26390),Fe=g(92310),se=g.n(Fe),ke=g(43469),ie=g(59301),Y=g(62892),O=g(32441);function T(Yt){const[kr,tn]=ie.useState(Yt);return ie.useEffect(()=>{const Nt=setTimeout(()=>{tn(Yt)},Yt.length?0:10);return()=>{clearTimeout(Nt)}},[Yt]),kr}var n=g(17313),o=g(29878),L=g(8378),p=g(37613),a=g(83116),m=Yt=>{const{componentCls:kr}=Yt,tn=`${kr}-show-help`,Nt=`${kr}-show-help-item`;return{[tn]:{transition:`opacity ${Yt.motionDurationSlow} ${Yt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Nt]:{overflow:"hidden",transition:`height ${Yt.motionDurationSlow} ${Yt.motionEaseInOut},
|
|
|
opacity ${Yt.motionDurationSlow} ${Yt.motionEaseInOut},
|
|
|
transform ${Yt.motionDurationSlow} ${Yt.motionEaseInOut} !important`,[`&${Nt}-appear, &${Nt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Nt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const S=Yt=>({legend:{display:"block",width:"100%",marginBottom:Yt.marginLG,padding:0,color:Yt.colorTextDescription,fontSize:Yt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Yt.lineWidth}px ${Yt.lineType} ${Yt.colorBorder}`},label:{fontSize:Yt.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 ${Yt.controlOutlineWidth}px ${Yt.controlOutline}`},output:{display:"block",paddingTop:15,color:Yt.colorText,fontSize:Yt.fontSize,lineHeight:Yt.lineHeight}}),K=(Yt,kr)=>{const{formItemCls:tn}=Yt;return{[tn]:{[`${tn}-label > label`]:{height:kr},[`${tn}-control-input`]:{minHeight:kr}}}},F=Yt=>{const{componentCls:kr}=Yt;return{[Yt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,n.Wf)(Yt)),S(Yt)),{[`${kr}-text`]:{display:"inline-block",paddingInlineEnd:Yt.paddingSM},"&-small":Object.assign({},K(Yt,Yt.controlHeightSM)),"&-large":Object.assign({},K(Yt,Yt.controlHeightLG))})}},H=Yt=>{const{formItemCls:kr,iconCls:tn,componentCls:Nt,rootPrefixCls:_t,labelRequiredMarkColor:Ir,labelColor:Dr,labelFontSize:In,labelHeight:qr,labelColonMarginInlineStart:Sn,labelColonMarginInlineEnd:hn,itemMarginBottom:$n}=Yt;return{[kr]:Object.assign(Object.assign({},(0,n.Wf)(Yt)),{marginBottom:$n,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${_t}-row`]:{display:"none"},"&-has-warning":{[`${kr}-split`]:{color:Yt.colorError}},"&-has-error":{[`${kr}-split`]:{color:Yt.colorWarning}},[`${kr}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Yt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:qr,color:Dr,fontSize:In,[`> ${tn}`]:{fontSize:Yt.fontSize,verticalAlign:"top"},[`&${kr}-required:not(${kr}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Yt.marginXXS,color:Ir,fontSize:Yt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Nt}-hide-required-mark &`]:{display:"none"}},[`${kr}-optional`]:{display:"inline-block",marginInlineStart:Yt.marginXXS,color:Yt.colorTextDescription,[`${Nt}-hide-required-mark &`]:{display:"none"}},[`${kr}-tooltip`]:{color:Yt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Yt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Sn,marginInlineEnd:hn},[`&${kr}-no-colon::after`]:{content:'"\\a0"'}}},[`${kr}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${_t}-col-'"]):not([class*="' ${_t}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Yt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[kr]:{"&-explain, &-extra":{clear:"both",color:Yt.colorTextDescription,fontSize:Yt.fontSize,lineHeight:Yt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Yt.controlHeightSM,transition:`color ${Yt.motionDurationMid} ${Yt.motionEaseOut}`},"&-explain":{"&-error":{color:Yt.colorError},"&-warning":{color:Yt.colorWarning}}},[`&-with-help ${kr}-explain`]:{height:"auto",opacity:1},[`${kr}-feedback-icon`]:{fontSize:Yt.fontSize,textAlign:"center",visibility:"visible",animationName:o.kr,animationDuration:Yt.motionDurationMid,animationTimingFunction:Yt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Yt.colorSuccess},"&-error":{color:Yt.colorError},"&-warning":{color:Yt.colorWarning},"&-validating":{color:Yt.colorPrimary}}})}},V=Yt=>{const{componentCls:kr,formItemCls:tn}=Yt;return{[`${kr}-horizontal`]:{[`${tn}-label`]:{flexGrow:0},[`${tn}-control`]:{flex:"1 1 0",minWidth:0},[`${tn}-label[class$='-24'], ${tn}-label[class*='-24 ']`]:{[`& + ${tn}-control`]:{minWidth:"unset"}}}}},ee=Yt=>{const{componentCls:kr,formItemCls:tn}=Yt;return{[`${kr}-inline`]:{display:"flex",flexWrap:"wrap",[tn]:{flex:"none",marginInlineEnd:Yt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${tn}-label,
|
|
|
> ${tn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${tn}-label`]:{flex:"none"},[`${kr}-text`]:{display:"inline-block"},[`${tn}-has-feedback`]:{display:"inline-block"}}}}},B=Yt=>({padding:Yt.verticalLabelPadding,margin:Yt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),G=Yt=>{const{componentCls:kr,formItemCls:tn,rootPrefixCls:Nt}=Yt;return{[`${tn} ${tn}-label`]:B(Yt),[kr]:{[tn]:{flexWrap:"wrap",[`${tn}-label, ${tn}-control`]:{[`&:not([class*=" ${Nt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ce=Yt=>{const{componentCls:kr,formItemCls:tn,rootPrefixCls:Nt}=Yt;return{[`${kr}-vertical`]:{[tn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${kr}-item-control`]:{width:"100%"}}},[`${kr}-vertical ${tn}-label,
|
|
|
.${Nt}-col-24${tn}-label,
|
|
|
.${Nt}-col-xl-24${tn}-label`]:B(Yt),[`@media (max-width: ${Yt.screenXSMax}px)`]:[G(Yt),{[kr]:{[`.${Nt}-col-xs-24${tn}-label`]:B(Yt)}}],[`@media (max-width: ${Yt.screenSMMax}px)`]:{[kr]:{[`.${Nt}-col-sm-24${tn}-label`]:B(Yt)}},[`@media (max-width: ${Yt.screenMDMax}px)`]:{[kr]:{[`.${Nt}-col-md-24${tn}-label`]:B(Yt)}},[`@media (max-width: ${Yt.screenLGMax}px)`]:{[kr]:{[`.${Nt}-col-lg-24${tn}-label`]:B(Yt)}}}},q=(Yt,kr)=>(0,p.TS)(Yt,{formItemCls:`${Yt.componentCls}-item`,rootPrefixCls:kr});var be=(0,a.Z)("Form",(Yt,kr)=>{let{rootPrefixCls:tn}=kr;const Nt=q(Yt,tn);return[F(Nt),H(Nt),m(Nt),V(Nt),ee(Nt),ce(Nt),(0,L.Z)(Nt),o.kr]},Yt=>({labelRequiredMarkColor:Yt.colorError,labelColor:Yt.colorTextHeading,labelFontSize:Yt.fontSize,labelHeight:Yt.controlHeight,labelColonMarginInlineStart:Yt.marginXXS/2,labelColonMarginInlineEnd:Yt.marginXS,itemMarginBottom:Yt.marginLG,verticalLabelPadding:`0 0 ${Yt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const xe=[];function Le(Yt,kr,tn){let Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Yt=="string"?Yt:`${kr}-${Nt}`,error:Yt,errorStatus:tn}}var me=Yt=>{let{help:kr,helpStatus:tn,errors:Nt=xe,warnings:_t=xe,className:Ir,fieldId:Dr,onVisibleChanged:In}=Yt;const{prefixCls:qr}=ie.useContext(O.Rk),Sn=`${qr}-item-explain`,[,hn]=be(qr),$n=(0,ie.useMemo)(()=>(0,Y.Z)(qr),[qr]),ri=T(Nt),Hr=T(_t),zr=ie.useMemo(()=>kr!=null?[Le(kr,"help",tn)]:[].concat((0,we.Z)(ri.map((Bn,Qn)=>Le(Bn,"error","error",Qn))),(0,we.Z)(Hr.map((Bn,Qn)=>Le(Bn,"warning","warning",Qn)))),[kr,tn,ri,Hr]),Tn={};return Dr&&(Tn.id=`${Dr}_help`),ie.createElement(ke.default,{motionDeadline:$n.motionDeadline,motionName:`${qr}-show-help`,visible:!!zr.length,onVisibleChanged:In},Bn=>{const{className:Qn,style:Xn}=Bn;return ie.createElement("div",Object.assign({},Tn,{className:se()(Sn,Qn,Ir,hn),style:Xn,role:"alert"}),ie.createElement(ke.CSSMotionList,Object.assign({keys:zr},(0,Y.Z)(qr),{motionName:`${qr}-show-help-item`,component:!1}),Hi=>{const{key:fi,error:wn,errorStatus:hr,className:yr,style:Pr}=Hi;return ie.createElement("div",{key:fi,className:se()(yr,{[`${Sn}-${hr}`]:hr}),style:Pr},wn)}))})},I=g(95013),_e=g(36355),oe=g(1684),he=g(52946),ve=g(19716),_=g(16722);const N=["parentNode"],X="form_item";function pe(Yt){return Yt===void 0||Yt===!1?[]:Array.isArray(Yt)?Yt:[Yt]}function qe(Yt,kr){if(!Yt.length)return;const tn=Yt.join("_");return kr?`${kr}_${tn}`:N.includes(tn)?`${X}_${tn}`:tn}function at(Yt,kr,tn,Nt,_t,Ir){let Dr=Nt;return Ir!==void 0?Dr=Ir:tn.validating?Dr="validating":Yt.length?Dr="error":kr.length?Dr="warning":(tn.touched||_t&&tn.validated)&&(Dr="success"),Dr}function rt(Yt){return pe(Yt).join("_")}function Rt(Yt){const[kr]=(0,I.useForm)(),tn=ie.useRef({}),Nt=ie.useMemo(()=>Yt!=null?Yt:Object.assign(Object.assign({},kr),{__INTERNAL__:{itemRef:_t=>Ir=>{const Dr=rt(_t);Ir?tn.current[Dr]=Ir:delete tn.current[Dr]}},scrollToField:function(_t){let Ir=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Dr=pe(_t),In=qe(Dr,Nt.__INTERNAL__.name),qr=In?document.getElementById(In):null;qr&&(0,_.Z)(qr,Object.assign({scrollMode:"if-needed",block:"nearest"},Ir))},getFieldInstance:_t=>{const Ir=rt(_t);return tn.current[Ir]}}),[Yt,kr]);return[Nt]}var lr=g(28726),qt=function(Yt,kr){var tn={};for(var Nt in Yt)Object.prototype.hasOwnProperty.call(Yt,Nt)&&kr.indexOf(Nt)<0&&(tn[Nt]=Yt[Nt]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Nt=Object.getOwnPropertySymbols(Yt);_t<Nt.length;_t++)kr.indexOf(Nt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Nt[_t])&&(tn[Nt[_t]]=Yt[Nt[_t]]);return tn};const Ze=(Yt,kr)=>{const tn=ie.useContext(oe.Z),{getPrefixCls:Nt,direction:_t,form:Ir}=ie.useContext(_e.E_),{prefixCls:Dr,className:In,rootClassName:qr,size:Sn,disabled:hn=tn,form:$n,colon:ri,labelAlign:Hr,labelWrap:zr,labelCol:Tn,wrapperCol:Bn,hideRequiredMark:Qn,layout:Xn="horizontal",scrollToFirstError:Hi,requiredMark:fi,onFinishFailed:wn,name:hr,style:yr,feedbackIcons:Pr}=Yt,Zr=qt(Yt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Qr=(0,ve.Z)(Sn),on=ie.useContext(lr.Z),en=(0,ie.useMemo)(()=>fi!==void 0?fi:Ir&&Ir.requiredMark!==void 0?Ir.requiredMark:!Qn,[Qn,fi,Ir]),jn=ri!=null?ri:Ir==null?void 0:Ir.colon,qn=Nt("form",Dr),[oi,Qi]=be(qn),Ri=se()(qn,`${qn}-${Xn}`,{[`${qn}-hide-required-mark`]:en===!1,[`${qn}-rtl`]:_t==="rtl",[`${qn}-${Qr}`]:Qr},Qi,Ir==null?void 0:Ir.className,In,qr),[ki]=Rt($n),{__INTERNAL__:Tr}=ki;Tr.name=hr;const _n=(0,ie.useMemo)(()=>({name:hr,labelAlign:Hr,labelCol:Tn,labelWrap:zr,wrapperCol:Bn,vertical:Xn==="vertical",colon:jn,requiredMark:en,itemRef:Tr.itemRef,form:ki,feedbackIcons:Pr}),[hr,Hr,Tn,Bn,Xn,jn,en,ki,Pr]);ie.useImperativeHandle(kr,()=>ki);const gn=(ii,ti)=>{if(ii){let wi={block:"nearest"};typeof ii=="object"&&(wi=ii),ki.scrollToField(ti,wi)}},ui=ii=>{if(wn==null||wn(ii),ii.errorFields.length){const ti=ii.errorFields[0].name;if(Hi!==void 0){gn(Hi,ti);return}Ir&&Ir.scrollToFirstError!==void 0&&gn(Ir.scrollToFirstError,ti)}};return oi(ie.createElement(oe.n,{disabled:hn},ie.createElement(he.q,{size:Qr},ie.createElement(O.RV,Object.assign({},{validateMessages:on}),ie.createElement(O.q3.Provider,{value:_n},ie.createElement(I.default,Object.assign({id:hr},Zr,{name:hr,onFinishFailed:ui,form:ki,style:Object.assign(Object.assign({},Ir==null?void 0:Ir.style),yr),className:Ri})))))))};var Cr=ie.forwardRef(Ze),Kr=g(12383),_r=g(20475),Me=g(92343),Tt=g(38298);function z(Yt){if(typeof Yt=="function")return Yt;const kr=(0,Tt.Z)(Yt);return kr.length<=1?kr[0]:kr}const v=()=>{const{status:Yt,errors:kr=[],warnings:tn=[]}=(0,ie.useContext)(O.aM);return{status:Yt,errors:kr,warnings:tn}};v.Context=O.aM;var f=v,D=g(23073);function de(Yt){const[kr,tn]=ie.useState(Yt),Nt=(0,ie.useRef)(null),_t=(0,ie.useRef)([]),Ir=(0,ie.useRef)(!1);ie.useEffect(()=>(Ir.current=!1,()=>{Ir.current=!0,D.Z.cancel(Nt.current),Nt.current=null}),[]);function Dr(In){Ir.current||(Nt.current===null&&(_t.current=[],Nt.current=(0,D.Z)(()=>{Nt.current=null,tn(qr=>{let Sn=qr;return _t.current.forEach(hn=>{Sn=hn(Sn)}),Sn})})),_t.current.push(In))}return[kr,Dr]}function W(){const{itemRef:Yt}=ie.useContext(O.q3),kr=ie.useRef({});function tn(Nt,_t){const Ir=_t&&typeof _t=="object"&&_t.ref,Dr=Nt.join("_");return(kr.current.name!==Dr||kr.current.originRef!==Ir)&&(kr.current.name=Dr,kr.current.originRef=Ir,kr.current.ref=(0,_r.sQ)(Yt(Nt),Ir)),kr.current.ref}return tn}var P=g(48886),te=g(28800),Ie=g(64002),Te=g(27382),Se=g(37028);const Ge=Yt=>{const{formItemCls:kr}=Yt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${kr}-control`]:{display:"flex"}}}};var ft=(0,a.b)(["Form","item-item"],(Yt,kr)=>{let{rootPrefixCls:tn}=kr;const Nt=q(Yt,tn);return[Ge(Nt)]}),Xe=Yt=>{const{prefixCls:kr,status:tn,wrapperCol:Nt,children:_t,errors:Ir,warnings:Dr,_internalItemRender:In,extra:qr,help:Sn,fieldId:hn,marginBottom:$n,onErrorVisibleChanged:ri}=Yt,Hr=`${kr}-item`,zr=ie.useContext(O.q3),Tn=Nt||zr.wrapperCol||{},Bn=se()(`${Hr}-control`,Tn.className),Qn=ie.useMemo(()=>Object.assign({},zr),[zr]);delete Qn.labelCol,delete Qn.wrapperCol;const Xn=ie.createElement("div",{className:`${Hr}-control-input`},ie.createElement("div",{className:`${Hr}-control-input-content`},_t)),Hi=ie.useMemo(()=>({prefixCls:kr,status:tn}),[kr,tn]),fi=$n!==null||Ir.length||Dr.length?ie.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ie.createElement(O.Rk.Provider,{value:Hi},ie.createElement(me,{fieldId:hn,errors:Ir,warnings:Dr,help:Sn,helpStatus:tn,className:`${Hr}-explain-connected`,onVisibleChanged:ri})),!!$n&&ie.createElement("div",{style:{width:0,height:$n}})):null,wn={};hn&&(wn.id=`${hn}_extra`);const hr=qr?ie.createElement("div",Object.assign({},wn,{className:`${Hr}-extra`}),qr):null,yr=In&&In.mark==="pro_table_render"&&In.render?In.render(Yt,{input:Xn,errorList:fi,extra:hr}):ie.createElement(ie.Fragment,null,Xn,fi,hr);return ie.createElement(O.q3.Provider,{value:Qn},ie.createElement(Se.Z,Object.assign({},Tn,{className:Bn}),yr),ie.createElement(ft,{prefixCls:kr}))},At=g(86902),We=g(31724),$e=g(9763),Bt=g(6848),Kt=function(Yt,kr){var tn={};for(var Nt in Yt)Object.prototype.hasOwnProperty.call(Yt,Nt)&&kr.indexOf(Nt)<0&&(tn[Nt]=Yt[Nt]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Nt=Object.getOwnPropertySymbols(Yt);_t<Nt.length;_t++)kr.indexOf(Nt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Nt[_t])&&(tn[Nt[_t]]=Yt[Nt[_t]]);return tn};function Mt(Yt){return Yt?typeof Yt=="object"&&!ie.isValidElement(Yt)?Yt:{title:Yt}:null}var vr=Yt=>{let{prefixCls:kr,label:tn,htmlFor:Nt,labelCol:_t,labelAlign:Ir,colon:Dr,required:In,requiredMark:qr,tooltip:Sn}=Yt;var hn;const[$n]=(0,$e.Z)("Form"),{vertical:ri,labelAlign:Hr,labelCol:zr,labelWrap:Tn,colon:Bn}=ie.useContext(O.q3);if(!tn)return null;const Qn=_t||zr||{},Xn=Ir||Hr,Hi=`${kr}-item-label`,fi=se()(Hi,Xn==="left"&&`${Hi}-left`,Qn.className,{[`${Hi}-wrap`]:!!Tn});let wn=tn;const hr=Dr===!0||Bn!==!1&&Dr!==!1;hr&&!ri&&typeof tn=="string"&&tn.trim()!==""&&(wn=tn.replace(/[:|:]\s*$/,""));const Pr=Mt(Sn);if(Pr){const{icon:en=ie.createElement(At.Z,null)}=Pr,jn=Kt(Pr,["icon"]),qn=ie.createElement(Bt.Z,Object.assign({},jn),ie.cloneElement(en,{className:`${kr}-item-tooltip`,title:""}));wn=ie.createElement(ie.Fragment,null,wn,qn)}const Zr=qr==="optional",Qr=typeof qr=="function";Qr?wn=qr(wn,{required:!!In}):Zr&&!In&&(wn=ie.createElement(ie.Fragment,null,wn,ie.createElement("span",{className:`${kr}-item-optional`,title:""},($n==null?void 0:$n.optional)||((hn=We.Z.Form)===null||hn===void 0?void 0:hn.optional))));const on=se()({[`${kr}-item-required`]:In,[`${kr}-item-required-mark-optional`]:Zr||Qr,[`${kr}-item-no-colon`]:!hr});return ie.createElement(Se.Z,Object.assign({},Qn,{className:fi}),ie.createElement("label",{htmlFor:Nt,className:on,title:typeof tn=="string"?tn:""},wn))},re=g(79999),le=g(33130),rr=g(85404),Ue=g(50023);const ot={success:re.Z,warning:rr.Z,error:le.Z,validating:Ue.Z};function Yr(Yt){let{children:kr,errors:tn,warnings:Nt,hasFeedback:_t,validateStatus:Ir,prefixCls:Dr,meta:In,noStyle:qr}=Yt;const Sn=`${Dr}-item`,{feedbackIcons:hn}=ie.useContext(O.q3),$n=at(tn,Nt,In,null,!!_t,Ir),{isFormItemInput:ri,status:Hr}=ie.useContext(O.aM),zr=ie.useMemo(()=>{var Tn;let Bn;if(_t){const Hi=_t!==!0&&_t.icons||hn,fi=$n&&((Tn=Hi==null?void 0:Hi({status:$n,errors:tn,warnings:Nt}))===null||Tn===void 0?void 0:Tn[$n]),wn=$n&&ot[$n];Bn=fi!==!1&&wn?ie.createElement("span",{className:se()(`${Sn}-feedback-icon`,`${Sn}-feedback-icon-${$n}`)},fi||ie.createElement(wn,null)):null}let Qn=!0,Xn=$n||"";return qr&&(Qn=ri,Xn=($n!=null?$n:Hr)||""),{status:Xn,errors:tn,warnings:Nt,hasFeedback:!!_t,feedbackIcon:Bn,isFormItemInput:Qn}},[$n,_t,qr,ri,Hr]);return ie.createElement(O.aM.Provider,{value:zr},kr)}var St=function(Yt,kr){var tn={};for(var Nt in Yt)Object.prototype.hasOwnProperty.call(Yt,Nt)&&kr.indexOf(Nt)<0&&(tn[Nt]=Yt[Nt]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Nt=Object.getOwnPropertySymbols(Yt);_t<Nt.length;_t++)kr.indexOf(Nt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Nt[_t])&&(tn[Nt[_t]]=Yt[Nt[_t]]);return tn};function Vt(Yt){const{prefixCls:kr,className:tn,rootClassName:Nt,style:_t,help:Ir,errors:Dr,warnings:In,validateStatus:qr,meta:Sn,hasFeedback:hn,hidden:$n,children:ri,fieldId:Hr,required:zr,isRequired:Tn,onSubItemMetaChange:Bn}=Yt,Qn=St(Yt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Xn=`${kr}-item`,{requiredMark:Hi}=ie.useContext(O.q3),fi=ie.useRef(null),wn=T(Dr),hr=T(In),yr=Ir!=null,Pr=!!(yr||Dr.length||In.length),Zr=!!fi.current&&(0,P.Z)(fi.current),[Qr,on]=ie.useState(null);(0,te.Z)(()=>{if(Pr&&fi.current){const Qi=getComputedStyle(fi.current);on(parseInt(Qi.marginBottom,10))}},[Pr,Zr]);const en=Qi=>{Qi||on(null)},qn=function(){let Qi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ri=Qi?wn:Sn.errors,ki=Qi?hr:Sn.warnings;return at(Ri,ki,Sn,"",!!hn,qr)}(),oi=se()(Xn,tn,Nt,{[`${Xn}-with-help`]:yr||wn.length||hr.length,[`${Xn}-has-feedback`]:qn&&hn,[`${Xn}-has-success`]:qn==="success",[`${Xn}-has-warning`]:qn==="warning",[`${Xn}-has-error`]:qn==="error",[`${Xn}-is-validating`]:qn==="validating",[`${Xn}-hidden`]:$n});return ie.createElement("div",{className:oi,style:_t,ref:fi},ie.createElement(Te.Z,Object.assign({className:`${Xn}-row`},(0,Ie.Z)(Qn,["_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"])),ie.createElement(vr,Object.assign({htmlFor:Hr},Yt,{requiredMark:Hi,required:zr!=null?zr:Tn,prefixCls:kr})),ie.createElement(Xe,Object.assign({},Yt,Sn,{errors:wn,warnings:hr,prefixCls:kr,status:qn,help:Ir,marginBottom:Qr,onErrorVisibleChanged:en}),ie.createElement(O.qI.Provider,{value:Bn},ie.createElement(Yr,{prefixCls:kr,meta:Sn,errors:Sn.errors,warnings:Sn.warnings,hasFeedback:hn,validateStatus:qn},ri)))),!!Qr&&ie.createElement("div",{className:`${Xn}-margin-offset`,style:{marginBottom:-Qr}}))}const Zt="__SPLIT__",nt=null,ct=ie.memo(Yt=>{let{children:kr}=Yt;return kr},(Yt,kr)=>Yt.value===kr.value&&Yt.update===kr.update&&Yt.childProps.length===kr.childProps.length&&Yt.childProps.every((tn,Nt)=>tn===kr.childProps[Nt]));function dt(Yt){return Yt!=null}function Xt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Re(Yt){const{name:kr,noStyle:tn,className:Nt,dependencies:_t,prefixCls:Ir,shouldUpdate:Dr,rules:In,children:qr,required:Sn,label:hn,messageVariables:$n,trigger:ri="onChange",validateTrigger:Hr,hidden:zr,help:Tn}=Yt,{getPrefixCls:Bn}=ie.useContext(_e.E_),{name:Qn}=ie.useContext(O.q3),Xn=z(qr),Hi=typeof Xn=="function",fi=ie.useContext(O.qI),{validateTrigger:wn}=ie.useContext(I.FieldContext),hr=Hr!==void 0?Hr:wn,yr=dt(kr),Pr=Bn("form",Ir),[Zr,Qr]=be(Pr),on=ie.useContext(I.ListContext),en=ie.useRef(),[jn,qn]=de({}),[oi,Qi]=(0,Kr.Z)(()=>Xt()),Ri=ti=>{const wi=on==null?void 0:on.getKey(ti.name);if(Qi(ti.destroy?Xt():ti,!0),tn&&Tn!==!1&&fi){let Pi=ti.name;if(ti.destroy)Pi=en.current||Pi;else if(wi!==void 0){const[Bi,zi]=wi;Pi=[Bi].concat((0,we.Z)(zi)),en.current=Pi}fi(ti,Pi)}},ki=(ti,wi)=>{qn(Pi=>{const Bi=Object.assign({},Pi),ca=[].concat((0,we.Z)(ti.name.slice(0,-1)),(0,we.Z)(wi)).join(Zt);return ti.destroy?delete Bi[ca]:Bi[ca]=ti,Bi})},[Tr,_n]=ie.useMemo(()=>{const ti=(0,we.Z)(oi.errors),wi=(0,we.Z)(oi.warnings);return Object.values(jn).forEach(Pi=>{ti.push.apply(ti,(0,we.Z)(Pi.errors||[])),wi.push.apply(wi,(0,we.Z)(Pi.warnings||[]))}),[ti,wi]},[jn,oi.errors,oi.warnings]),gn=W();function ui(ti,wi,Pi){return tn&&!zr?ie.createElement(Yr,{prefixCls:Pr,hasFeedback:Yt.hasFeedback,validateStatus:Yt.validateStatus,meta:oi,errors:Tr,warnings:_n,noStyle:!0},ti):ie.createElement(Vt,Object.assign({key:"row"},Yt,{className:se()(Nt,Qr),prefixCls:Pr,fieldId:wi,isRequired:Pi,errors:Tr,warnings:_n,meta:oi,onSubItemMetaChange:ki}),ti)}if(!yr&&!Hi&&!_t)return Zr(ui(Xn));let ii={};return typeof hn=="string"?ii.label=hn:kr&&(ii.label=String(kr)),$n&&(ii=Object.assign(Object.assign({},ii),$n)),Zr(ie.createElement(I.Field,Object.assign({},Yt,{messageVariables:ii,trigger:ri,validateTrigger:hr,onMetaChange:Ri}),(ti,wi,Pi)=>{const Bi=pe(kr).length&&wi?wi.name:[],zi=qe(Bi,Qn),ca=Sn!==void 0?Sn:!!(In&&In.some(Ht=>{if(Ht&&typeof Ht=="object"&&Ht.required&&!Ht.warningOnly)return!0;if(typeof Ht=="function"){const Ln=Ht(Pi);return Ln&&Ln.required&&!Ln.warningOnly}return!1})),xi=Object.assign({},ti);let vn=null;if(Array.isArray(Xn)&&yr)vn=Xn;else if(!(Hi&&(!(Dr||_t)||yr))){if(!(_t&&!Hi&&!yr))if((0,Me.l$)(Xn)){const Ht=Object.assign(Object.assign({},Xn.props),xi);if(Ht.id||(Ht.id=zi),Tn||Tr.length>0||_n.length>0||Yt.extra){const Ci=[];(Tn||Tr.length>0)&&Ci.push(`${zi}_help`),Yt.extra&&Ci.push(`${zi}_extra`),Ht["aria-describedby"]=Ci.join(" ")}Tr.length>0&&(Ht["aria-invalid"]="true"),ca&&(Ht["aria-required"]="true"),(0,_r.Yr)(Xn)&&(Ht.ref=gn(Bi,Xn)),new Set([].concat((0,we.Z)(pe(ri)),(0,we.Z)(pe(hr)))).forEach(Ci=>{Ht[Ci]=function(){for(var ji,fa,va,ea,_i,yi=arguments.length,Si=new Array(yi),ra=0;ra<yi;ra++)Si[ra]=arguments[ra];(va=xi[Ci])===null||va===void 0||(ji=va).call.apply(ji,[xi].concat(Si)),(_i=(ea=Xn.props)[Ci])===null||_i===void 0||(fa=_i).call.apply(fa,[ea].concat(Si))}});const Gn=[Ht["aria-required"],Ht["aria-invalid"],Ht["aria-describedby"]];vn=ie.createElement(ct,{value:xi[Yt.valuePropName||"value"],update:Xn,childProps:Gn},(0,Me.Tm)(Xn,Ht))}else Hi&&(Dr||_t)&&!yr?vn=Xn(Pi):vn=Xn}return ui(vn,zi,ca)}))}const fn=Re;fn.useStatus=f;var kt=fn,Nn=function(Yt,kr){var tn={};for(var Nt in Yt)Object.prototype.hasOwnProperty.call(Yt,Nt)&&kr.indexOf(Nt)<0&&(tn[Nt]=Yt[Nt]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,Nt=Object.getOwnPropertySymbols(Yt);_t<Nt.length;_t++)kr.indexOf(Nt[_t])<0&&Object.prototype.propertyIsEnumerable.call(Yt,Nt[_t])&&(tn[Nt[_t]]=Yt[Nt[_t]]);return tn},vi=Yt=>{var{prefixCls:kr,children:tn}=Yt,Nt=Nn(Yt,["prefixCls","children"]);const{getPrefixCls:_t}=ie.useContext(_e.E_),Ir=_t("form",kr),Dr=ie.useMemo(()=>({prefixCls:Ir,status:"error"}),[Ir]);return ie.createElement(I.List,Object.assign({},Nt),(In,qr,Sn)=>ie.createElement(O.Rk.Provider,{value:Dr},tn(In.map(hn=>Object.assign(Object.assign({},hn),{fieldKey:hn.key})),qr,{errors:Sn.errors,warnings:Sn.warnings})))};function Fi(){const{form:Yt}=(0,ie.useContext)(O.q3);return Yt}const Mn=Cr;Mn.Item=kt,Mn.List=vi,Mn.ErrorList=me,Mn.useForm=Rt,Mn.useFormInstance=Fi,Mn.useWatch=I.useWatch,Mn.Provider=O.RV,Mn.create=()=>{};var Hn=Mn},8628:function(yn,Gt,g){"use strict";var we=g(59301),Fe=g(28800),se=g(56762),ke=g(69507);function ie(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const O=(0,we.useRef)({}),T=(0,se.Z)(),n=(0,ke.ZP)();return(0,Fe.Z)(()=>{const o=n.subscribe(L=>{O.current=L,Y&&T()});return()=>n.unsubscribe(o)},[]),O.current}Gt.Z=ie},88897:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return At}});var we=g(18290),Fe=g(88551),se=g(92310),ke=g.n(se),ie=g(5891),Y=g(80962),O=g(80665),T=g(29043),n=g(19149),o=g(79545),L=g(68550);function p(){return typeof BigInt=="function"}function a(We){return!We&&We!==0&&!Number.isNaN(We)||!String(We).trim()}function A(We){var $e=We.trim(),Bt=$e.startsWith("-");Bt&&($e=$e.slice(1)),$e=$e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),$e.startsWith(".")&&($e="0".concat($e));var Kt=$e||"0",Mt=Kt.split("."),wr=Mt[0]||"0",vr=Mt[1]||"0";wr==="0"&&vr==="0"&&(Bt=!1);var re=Bt?"-":"";return{negative:Bt,negativeStr:re,trimStr:Kt,integerStr:wr,decimalStr:vr,fullStr:"".concat(re).concat(Kt)}}function m(We){var $e=String(We);return!Number.isNaN(Number($e))&&$e.includes("e")}function S(We){var $e=String(We);if(m(We)){var Bt=Number($e.slice($e.indexOf("e-")+2)),Kt=$e.match(/\.(\d+)/);return Kt!=null&&Kt[1]&&(Bt+=Kt[1].length),Bt}return $e.includes(".")&&F($e)?$e.length-$e.indexOf(".")-1:0}function K(We){var $e=String(We);if(m(We)){if(We>Number.MAX_SAFE_INTEGER)return String(p()?BigInt(We).toString():Number.MAX_SAFE_INTEGER);if(We<Number.MIN_SAFE_INTEGER)return String(p()?BigInt(We).toString():Number.MIN_SAFE_INTEGER);$e=We.toFixed(S($e))}return A($e).fullStr}function F(We){return typeof We=="number"?!Number.isNaN(We):We?/^\s*-?\d+(\.\d+)?\s*$/.test(We)||/^\s*-?\d+\.\s*$/.test(We)||/^\s*-?\.\d+\s*$/.test(We):!1}var H=function(){function We($e){if((0,o.Z)(this,We),(0,Y.Z)(this,"origin",""),(0,Y.Z)(this,"negative",void 0),(0,Y.Z)(this,"integer",void 0),(0,Y.Z)(this,"decimal",void 0),(0,Y.Z)(this,"decimalLen",void 0),(0,Y.Z)(this,"empty",void 0),(0,Y.Z)(this,"nan",void 0),a($e)){this.empty=!0;return}if(this.origin=String($e),$e==="-"||Number.isNaN($e)){this.nan=!0;return}var Bt=$e;if(m(Bt)&&(Bt=Number(Bt)),Bt=typeof Bt=="string"?Bt:K(Bt),F(Bt)){var Kt=A(Bt);this.negative=Kt.negative;var Mt=Kt.trimStr.split(".");this.integer=BigInt(Mt[0]);var wr=Mt[1]||"0";this.decimal=BigInt(wr),this.decimalLen=wr.length}else this.nan=!0}return(0,L.Z)(We,[{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(Bt){var Kt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Bt,"0"));return BigInt(Kt)}},{key:"negate",value:function(){var Bt=new We(this.toString());return Bt.negative=!Bt.negative,Bt}},{key:"cal",value:function(Bt,Kt,Mt){var wr=Math.max(this.getDecimalStr().length,Bt.getDecimalStr().length),vr=this.alignDecimal(wr),re=Bt.alignDecimal(wr),le=Kt(vr,re).toString(),rr=Mt(wr),Ue=A(le),ot=Ue.negativeStr,Yr=Ue.trimStr,St="".concat(ot).concat(Yr.padStart(rr+1,"0"));return new We("".concat(St.slice(0,-rr),".").concat(St.slice(-rr)))}},{key:"add",value:function(Bt){if(this.isInvalidate())return new We(Bt);var Kt=new We(Bt);return Kt.isInvalidate()?this:this.cal(Kt,function(Mt,wr){return Mt+wr},function(Mt){return Mt})}},{key:"multi",value:function(Bt){var Kt=new We(Bt);return this.isInvalidate()||Kt.isInvalidate()?new We(NaN):this.cal(Kt,function(Mt,wr){return Mt*wr},function(Mt){return Mt*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(Bt){return this.toString()===(Bt==null?void 0:Bt.toString())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":A("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),We}(),V=function(){function We($e){if((0,o.Z)(this,We),(0,Y.Z)(this,"origin",""),(0,Y.Z)(this,"number",void 0),(0,Y.Z)(this,"empty",void 0),a($e)){this.empty=!0;return}this.origin=String($e),this.number=Number($e)}return(0,L.Z)(We,[{key:"negate",value:function(){return new We(-this.toNumber())}},{key:"add",value:function(Bt){if(this.isInvalidate())return new We(Bt);var Kt=Number(Bt);if(Number.isNaN(Kt))return this;var Mt=this.number+Kt;if(Mt>Number.MAX_SAFE_INTEGER)return new We(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new We(Number.MIN_SAFE_INTEGER);var wr=Math.max(S(this.number),S(Kt));return new We(Mt.toFixed(wr))}},{key:"multi",value:function(Bt){var Kt=Number(Bt);if(this.isInvalidate()||Number.isNaN(Kt))return new We(NaN);var Mt=this.number*Kt;if(Mt>Number.MAX_SAFE_INTEGER)return new We(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new We(Number.MIN_SAFE_INTEGER);var wr=Math.max(S(this.number),S(Kt));return new We(Mt.toFixed(wr))}},{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(Bt){return this.toNumber()===(Bt==null?void 0:Bt.toNumber())}},{key:"lessEquals",value:function(Bt){return this.add(Bt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Bt?this.isInvalidate()?"":K(this.number):this.origin}}]),We}();function ee(We){return p()?new H(We):new V(We)}function B(We,$e,Bt){var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(We==="")return"";var Mt=A(We),wr=Mt.negativeStr,vr=Mt.integerStr,re=Mt.decimalStr,le="".concat($e).concat(re),rr="".concat(wr).concat(vr);if(Bt>=0){var Ue=Number(re[Bt]);if(Ue>=5&&!Kt){var ot=ee(We).add("".concat(wr,"0.").concat("0".repeat(Bt)).concat(10-Ue));return B(ot.toString(),$e,Bt,Kt)}return Bt===0?rr:"".concat(rr).concat($e).concat(re.padEnd(Bt,"0").slice(0,Bt))}return le===".0"?rr:"".concat(rr).concat(le)}var G=ee,ce=g(93681),q=g(28800),be=g(20475),xe=g(59301),Le=g(51395);function ae(We,$e){var Bt=(0,xe.useRef)(null);function Kt(){try{var wr=We.selectionStart,vr=We.selectionEnd,re=We.value,le=re.substring(0,wr),rr=re.substring(vr);Bt.current={start:wr,end:vr,value:re,beforeTxt:le,afterTxt:rr}}catch(Ue){}}function Mt(){if(We&&Bt.current&&$e)try{var wr=We.value,vr=Bt.current,re=vr.beforeTxt,le=vr.afterTxt,rr=vr.start,Ue=wr.length;if(wr.endsWith(le))Ue=wr.length-Bt.current.afterTxt.length;else if(wr.startsWith(re))Ue=re.length;else{var ot=re[rr-1],Yr=wr.indexOf(ot,rr-1);Yr!==-1&&(Ue=Yr+1)}We.setSelectionRange(Ue,Ue)}catch(St){(0,Le.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(St.message))}}return[Kt,Mt]}var me=g(93144),I=function(){var $e=(0,xe.useState)(!1),Bt=(0,T.Z)($e,2),Kt=Bt[0],Mt=Bt[1];return(0,q.Z)(function(){Mt((0,me.Z)())},[]),Kt},_e=I,oe=g(23073),he=200,ve=600;function _(We){var $e=We.prefixCls,Bt=We.upNode,Kt=We.downNode,Mt=We.upDisabled,wr=We.downDisabled,vr=We.onStep,re=xe.useRef(),le=xe.useRef([]),rr=xe.useRef();rr.current=vr;var Ue=function(){clearTimeout(re.current)},ot=function(Xt,Re){Xt.preventDefault(),Ue(),rr.current(Re);function fn(){rr.current(Re),re.current=setTimeout(fn,he)}re.current=setTimeout(fn,ve)};xe.useEffect(function(){return function(){Ue(),le.current.forEach(function(dt){return oe.Z.cancel(dt)})}},[]);var Yr=_e();if(Yr)return null;var St="".concat($e,"-handler"),Vt=ke()(St,"".concat(St,"-up"),(0,Y.Z)({},"".concat(St,"-up-disabled"),Mt)),Zt=ke()(St,"".concat(St,"-down"),(0,Y.Z)({},"".concat(St,"-down-disabled"),wr)),nt=function(){return le.current.push((0,oe.Z)(Ue))},ct={unselectable:"on",role:"button",onMouseUp:nt,onMouseLeave:nt};return xe.createElement("div",{className:"".concat(St,"-wrap")},xe.createElement("span",(0,ie.Z)({},ct,{onMouseDown:function(Xt){ot(Xt,!0)},"aria-label":"Increase Value","aria-disabled":Mt,className:Vt}),Bt||xe.createElement("span",{unselectable:"on",className:"".concat($e,"-handler-up-inner")})),xe.createElement("span",(0,ie.Z)({},ct,{onMouseDown:function(Xt){ot(Xt,!1)},"aria-label":"Decrease Value","aria-disabled":wr,className:Zt}),Kt||xe.createElement("span",{unselectable:"on",className:"".concat($e,"-handler-down-inner")})))}function N(We){var $e=typeof We=="number"?K(We):A(We).fullStr,Bt=$e.includes(".");return Bt?A($e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:We+"0"}var X=g(5643),pe=function(){var We=(0,xe.useRef)(0),$e=function(){oe.Z.cancel(We.current)};return(0,xe.useEffect)(function(){return $e},[]),function(Bt){$e(),We.current=(0,oe.Z)(function(){Bt()})}},qe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],at=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],rt=function($e,Bt){return $e||Bt.isEmpty()?Bt.toString():Bt.toNumber()},Rt=function($e){var Bt=G($e);return Bt.isInvalidate()?null:Bt},lr=xe.forwardRef(function(We,$e){var Bt,Kt=We.prefixCls,Mt=Kt===void 0?"rc-input-number":Kt,wr=We.className,vr=We.style,re=We.min,le=We.max,rr=We.step,Ue=rr===void 0?1:rr,ot=We.defaultValue,Yr=We.value,St=We.disabled,Vt=We.readOnly,Zt=We.upHandler,nt=We.downHandler,ct=We.keyboard,dt=We.controls,Xt=dt===void 0?!0:dt,Re=We.classNames,fn=We.stringMode,kt=We.parser,Nn=We.formatter,Jn=We.precision,vi=We.decimalSeparator,Fi=We.onChange,Mn=We.onInput,Hn=We.onPressEnter,Yt=We.onStep,kr=(0,n.Z)(We,qe),tn="".concat(Mt,"-input"),Nt=xe.useRef(null),_t=xe.useState(!1),Ir=(0,T.Z)(_t,2),Dr=Ir[0],In=Ir[1],qr=xe.useRef(!1),Sn=xe.useRef(!1),hn=xe.useRef(!1),$n=xe.useState(function(){return G(Yr!=null?Yr:ot)}),ri=(0,T.Z)($n,2),Hr=ri[0],zr=ri[1];function Tn(vn){Yr===void 0&&zr(vn)}var Bn=xe.useCallback(function(vn,Ht){if(!Ht)return Jn>=0?Jn:Math.max(S(vn),S(Ue))},[Jn,Ue]),Qn=xe.useCallback(function(vn){var Ht=String(vn);if(kt)return kt(Ht);var Ln=Ht;return vi&&(Ln=Ln.replace(vi,".")),Ln.replace(/[^\w.-]+/g,"")},[kt,vi]),Xn=xe.useRef(""),Hi=xe.useCallback(function(vn,Ht){if(Nn)return Nn(vn,{userTyping:Ht,input:String(Xn.current)});var Ln=typeof vn=="number"?K(vn):vn;if(!Ht){var Gn=Bn(Ln,Ht);if(F(Ln)&&(vi||Gn>=0)){var Ci=vi||".";Ln=B(Ln,Ci,Gn)}}return Ln},[Nn,Bn,vi]),fi=xe.useState(function(){var vn=ot!=null?ot:Yr;return Hr.isInvalidate()&&["string","number"].includes((0,O.Z)(vn))?Number.isNaN(vn)?"":vn:Hi(Hr.toString(),!1)}),wn=(0,T.Z)(fi,2),hr=wn[0],yr=wn[1];Xn.current=hr;function Pr(vn,Ht){yr(Hi(vn.isInvalidate()?vn.toString(!1):vn.toString(!Ht),Ht))}var Zr=xe.useMemo(function(){return Rt(le)},[le,Jn]),Qr=xe.useMemo(function(){return Rt(re)},[re,Jn]),on=xe.useMemo(function(){return!Zr||!Hr||Hr.isInvalidate()?!1:Zr.lessEquals(Hr)},[Zr,Hr]),en=xe.useMemo(function(){return!Qr||!Hr||Hr.isInvalidate()?!1:Hr.lessEquals(Qr)},[Qr,Hr]),jn=ae(Nt.current,Dr),qn=(0,T.Z)(jn,2),oi=qn[0],Qi=qn[1],Ri=function(Ht){return Zr&&!Ht.lessEquals(Zr)?Zr:Qr&&!Qr.lessEquals(Ht)?Qr:null},ki=function(Ht){return!Ri(Ht)},Tr=function(Ht,Ln){var Gn=Ht,Ci=ki(Gn)||Gn.isEmpty();if(!Gn.isEmpty()&&!Ln&&(Gn=Ri(Gn)||Gn,Ci=!0),!Vt&&!St&&Ci){var ji=Gn.toString(),fa=Bn(ji,Ln);return fa>=0&&(Gn=G(B(ji,".",fa)),ki(Gn)||(Gn=G(B(ji,".",fa,!0)))),Gn.equals(Hr)||(Tn(Gn),Fi==null||Fi(Gn.isEmpty()?null:rt(fn,Gn)),Yr===void 0&&Pr(Gn,Ln)),Gn}return Hr},_n=pe(),gn=function vn(Ht){if(oi(),Xn.current=Ht,yr(Ht),!Sn.current){var Ln=Qn(Ht),Gn=G(Ln);Gn.isNaN()||Tr(Gn,!0)}Mn==null||Mn(Ht),_n(function(){var Ci=Ht;kt||(Ci=Ht.replace(/。/g,".")),Ci!==Ht&&vn(Ci)})},ui=function(){Sn.current=!0},ii=function(){Sn.current=!1,gn(Nt.current.value)},ti=function(Ht){gn(Ht.target.value)},wi=function(Ht){var Ln;if(!(Ht&&on||!Ht&&en)){qr.current=!1;var Gn=G(hn.current?N(Ue):Ue);Ht||(Gn=Gn.negate());var Ci=(Hr||G(0)).add(Gn.toString()),ji=Tr(Ci,!1);Yt==null||Yt(rt(fn,ji),{offset:hn.current?N(Ue):Ue,type:Ht?"up":"down"}),(Ln=Nt.current)===null||Ln===void 0||Ln.focus()}},Pi=function(Ht){var Ln=G(Qn(hr)),Gn=Ln;Ln.isNaN()?Gn=Tr(Hr,Ht):Gn=Tr(Ln,Ht),Yr!==void 0?Pr(Hr,!1):Gn.isNaN()||Pr(Gn,!1)},Bi=function(){qr.current=!0},zi=function(Ht){var Ln=Ht.key,Gn=Ht.shiftKey;qr.current=!0,hn.current=Gn,Ln==="Enter"&&(Sn.current||(qr.current=!1),Pi(!1),Hn==null||Hn(Ht)),ct!==!1&&!Sn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ln)&&(wi(Ln==="Up"||Ln==="ArrowUp"),Ht.preventDefault())},ca=function(){qr.current=!1,hn.current=!1},xi=function(){Pi(!1),In(!1),qr.current=!1};return(0,q.o)(function(){Hr.isInvalidate()||Pr(Hr,!1)},[Jn]),(0,q.o)(function(){var vn=G(Yr);zr(vn);var Ht=G(Qn(hr));(!vn.equals(Ht)||!qr.current||Nn)&&Pr(vn,qr.current)},[Yr]),(0,q.o)(function(){Nn&&Qi()},[hr]),xe.createElement("div",{className:ke()(Mt,Re==null?void 0:Re.input,wr,(Bt={},(0,Y.Z)(Bt,"".concat(Mt,"-focused"),Dr),(0,Y.Z)(Bt,"".concat(Mt,"-disabled"),St),(0,Y.Z)(Bt,"".concat(Mt,"-readonly"),Vt),(0,Y.Z)(Bt,"".concat(Mt,"-not-a-number"),Hr.isNaN()),(0,Y.Z)(Bt,"".concat(Mt,"-out-of-range"),!Hr.isInvalidate()&&!ki(Hr)),Bt)),style:vr,onFocus:function(){In(!0)},onBlur:xi,onKeyDown:zi,onKeyUp:ca,onCompositionStart:ui,onCompositionEnd:ii,onBeforeInput:Bi},Xt&&xe.createElement(_,{prefixCls:Mt,upNode:Zt,downNode:nt,upDisabled:on,downDisabled:en,onStep:wi}),xe.createElement("div",{className:"".concat(tn,"-wrap")},xe.createElement("input",(0,ie.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":re,"aria-valuemax":le,"aria-valuenow":Hr.isInvalidate()?null:Hr.toString(),step:Ue},kr,{ref:(0,be.sQ)(Nt,$e),className:tn,value:hr,onChange:ti,disabled:St,readOnly:Vt}))))}),qt=xe.forwardRef(function(We,$e){var Bt=We.disabled,Kt=We.style,Mt=We.prefixCls,wr=We.value,vr=We.prefix,re=We.suffix,le=We.addonBefore,rr=We.addonAfter,Ue=We.classes,ot=We.className,Yr=We.classNames,St=(0,n.Z)(We,at),Vt=xe.useRef(null),Zt=function(ct){Vt.current&&(0,X.nH)(Vt.current,ct)};return xe.createElement(ce.BaseInput,{inputElement:xe.createElement(lr,(0,ie.Z)({prefixCls:Mt,disabled:Bt,classNames:Yr,ref:(0,be.sQ)(Vt,$e)},St)),className:ot,triggerFocus:Zt,prefixCls:Mt,value:wr,disabled:Bt,style:Kt,prefix:vr,suffix:re,addonAfter:rr,addonBefore:le,classes:Ue,classNames:Yr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});qt.displayName="InputNumber";var Ze=qt,Er=Ze,Cr=g(19080),Kr=g(36355),_r=g(92736),Me=g(1684),Tt=g(19716),z=g(32441),v=g(33234),f=g(9937),D=g(17313),de=g(74207),W=g(83116),P=g(37613);const te=(We,$e)=>{let{componentCls:Bt,borderRadiusSM:Kt,borderRadiusLG:Mt}=We;const wr=$e==="lg"?Mt:Kt;return{[`&-${$e}`]:{[`${Bt}-handler-wrap`]:{borderStartEndRadius:wr,borderEndEndRadius:wr},[`${Bt}-handler-up`]:{borderStartEndRadius:wr},[`${Bt}-handler-down`]:{borderEndEndRadius:wr}}}},Ie=We=>{const{componentCls:$e,lineWidth:Bt,lineType:Kt,colorBorder:Mt,borderRadius:wr,fontSizeLG:vr,controlHeightLG:re,controlHeightSM:le,colorError:rr,paddingInlineSM:Ue,colorTextDescription:ot,motionDurationMid:Yr,handleHoverColor:St,paddingInline:Vt,paddingBlock:Zt,handleBg:nt,handleActiveBg:ct,colorTextDisabled:dt,borderRadiusSM:Xt,borderRadiusLG:Re,controlWidth:fn,handleVisible:kt,handleBorderColor:Nn}=We;return[{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(We)),(0,f.ik)(We)),(0,f.bi)(We,$e)),{display:"inline-block",width:fn,margin:0,padding:0,border:`${Bt}px ${Kt} ${Mt}`,borderRadius:wr,"&-rtl":{direction:"rtl",[`${$e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:vr,borderRadius:Re,[`input${$e}-input`]:{height:re-2*Bt}},"&-sm":{padding:0,borderRadius:Xt,[`input${$e}-input`]:{height:le-2*Bt,padding:`0 ${Ue}px`}},"&:hover":Object.assign({},(0,f.pU)(We)),"&-focused":Object.assign({},(0,f.M1)(We)),"&-out-of-range":{[`${$e}-input-wrap`]:{input:{color:rr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,D.Wf)(We)),(0,f.s7)(We)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${$e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${$e}-group-addon`]:{borderRadius:Re,fontSize:We.fontSizeLG}},"&-sm":{[`${$e}-group-addon`]:{borderRadius:Xt}},[`${$e}-wrapper-disabled > ${$e}-group-addon`]:Object.assign({},(0,f.Xy)(We))}}),[`&-disabled ${$e}-input`]:{cursor:"not-allowed"},[$e]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(We)),{width:"100%",padding:`${Zt}px ${Vt}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:wr,outline:0,transition:`all ${Yr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,f.nz)(We.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[$e]:Object.assign(Object.assign(Object.assign({[`&:hover ${$e}-handler-wrap, &-focused ${$e}-handler-wrap`]:{opacity:1},[`${$e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:We.handleWidth,height:"100%",background:nt,borderStartStartRadius:0,borderStartEndRadius:wr,borderEndEndRadius:wr,borderEndStartRadius:0,opacity:kt===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Yr} linear ${Yr}`,[`${$e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${$e}-handler-up-inner,
|
|
|
${$e}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:We.handleFontSize}}},[`${$e}-handler`]:{height:"50%",overflow:"hidden",color:ot,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Bt}px ${Kt} ${Nn}`,transition:`all ${Yr} linear`,"&:active":{background:ct},"&:hover":{height:"60%",[`
|
|
|
${$e}-handler-up-inner,
|
|
|
${$e}-handler-down-inner
|
|
|
`]:{color:St}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,D.Ro)()),{color:ot,transition:`all ${Yr} linear`,userSelect:"none"})},[`${$e}-handler-up`]:{borderStartEndRadius:wr},[`${$e}-handler-down`]:{borderBlockStart:`${Bt}px ${Kt} ${Nn}`,borderEndEndRadius:wr}},te(We,"lg")),te(We,"sm")),{"&-disabled, &-readonly":{[`${$e}-handler-wrap`]:{display:"none"},[`${$e}-input`]:{color:"inherit"}},[`
|
|
|
${$e}-handler-up-disabled,
|
|
|
${$e}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${$e}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${$e}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:dt}})},{[`${$e}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${$e}-handler-down`]:{borderBlockStartWidth:0}}}]},Te=We=>{const{componentCls:$e,paddingBlock:Bt,paddingInline:Kt,inputAffixPadding:Mt,controlWidth:wr,borderRadiusLG:vr,borderRadiusSM:re}=We;return{[`${$e}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,f.ik)(We)),(0,f.bi)(We,`${$e}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:wr,padding:0,paddingInlineStart:Kt,"&-lg":{borderRadius:vr},"&-sm":{borderRadius:re},[`&:not(${$e}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,f.pU)(We)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${$e}-disabled`]:{background:"transparent"},[`> div${$e}`]:{width:"100%",border:"none",outline:"none",[`&${$e}-focused`]:{boxShadow:"none !important"}},[`input${$e}-input`]:{padding:`${Bt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${$e}-handler-wrap`]:{zIndex:2},[$e]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Mt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Kt,marginInlineStart:Mt}}})}};var Se=(0,W.Z)("InputNumber",We=>{const $e=(0,P.TS)(We,(0,f.e5)(We));return[Ie($e),Te($e),(0,de.c)($e)]},We=>Object.assign(Object.assign({},(0,f.TM)(We)),{controlWidth:90,handleWidth:We.controlHeightSM-We.lineWidth*2,handleFontSize:We.fontSize/2,handleVisible:"auto",handleActiveBg:We.colorFillAlter,handleBg:We.colorBgContainer,handleHoverColor:We.colorPrimary,handleBorderColor:We.colorBorder})),Ge=function(We,$e){var Bt={};for(var Kt in We)Object.prototype.hasOwnProperty.call(We,Kt)&&$e.indexOf(Kt)<0&&(Bt[Kt]=We[Kt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Kt=Object.getOwnPropertySymbols(We);Mt<Kt.length;Mt++)$e.indexOf(Kt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(We,Kt[Mt])&&(Bt[Kt[Mt]]=We[Kt[Mt]]);return Bt};const ft=xe.forwardRef((We,$e)=>{const{getPrefixCls:Bt,direction:Kt}=xe.useContext(Kr.E_),Mt=xe.useRef(null);xe.useImperativeHandle($e,()=>Mt.current);const{className:wr,rootClassName:vr,size:re,disabled:le,prefixCls:rr,addonBefore:Ue,addonAfter:ot,prefix:Yr,bordered:St=!0,readOnly:Vt,status:Zt,controls:nt}=We,ct=Ge(We,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),dt=Bt("input-number",rr),[Xt,Re]=Se(dt),{compactSize:fn,compactItemClassnames:kt}=(0,v.ri)(dt,Kt);let Nn=xe.createElement(Fe.Z,{className:`${dt}-handler-up-inner`}),Jn=xe.createElement(we.Z,{className:`${dt}-handler-down-inner`});const vi=typeof nt=="boolean"?nt:void 0;typeof nt=="object"&&(Nn=typeof nt.upIcon=="undefined"?Nn:xe.createElement("span",{className:`${dt}-handler-up-inner`},nt.upIcon),Jn=typeof nt.downIcon=="undefined"?Jn:xe.createElement("span",{className:`${dt}-handler-down-inner`},nt.downIcon));const{hasFeedback:Fi,status:Mn,isFormItemInput:Hn,feedbackIcon:Yt}=xe.useContext(z.aM),kr=(0,Cr.F)(Mn,Zt),tn=(0,Tt.Z)(qr=>{var Sn;return(Sn=re!=null?re:fn)!==null&&Sn!==void 0?Sn:qr}),Nt=xe.useContext(Me.Z),_t=le!=null?le:Nt,Ir=ke()({[`${dt}-lg`]:tn==="large",[`${dt}-sm`]:tn==="small",[`${dt}-rtl`]:Kt==="rtl",[`${dt}-borderless`]:!St,[`${dt}-in-form-item`]:Hn},(0,Cr.Z)(dt,kr),kt,Re),Dr=`${dt}-group`,In=xe.createElement(Er,Object.assign({ref:Mt,disabled:_t,className:ke()(wr,vr),upHandler:Nn,downHandler:Jn,prefixCls:dt,readOnly:Vt,controls:vi,prefix:Yr,suffix:Fi&&Yt,addonAfter:ot&&xe.createElement(v.BR,null,xe.createElement(z.Ux,{override:!0,status:!0},ot)),addonBefore:Ue&&xe.createElement(v.BR,null,xe.createElement(z.Ux,{override:!0,status:!0},Ue)),classNames:{input:Ir},classes:{affixWrapper:ke()((0,Cr.Z)(`${dt}-affix-wrapper`,kr,Fi),{[`${dt}-affix-wrapper-sm`]:tn==="small",[`${dt}-affix-wrapper-lg`]:tn==="large",[`${dt}-affix-wrapper-rtl`]:Kt==="rtl",[`${dt}-affix-wrapper-borderless`]:!St},Re),wrapper:ke()({[`${Dr}-rtl`]:Kt==="rtl",[`${dt}-wrapper-disabled`]:_t},Re),group:ke()({[`${dt}-group-wrapper-sm`]:tn==="small",[`${dt}-group-wrapper-lg`]:tn==="large",[`${dt}-group-wrapper-rtl`]:Kt==="rtl"},(0,Cr.Z)(`${dt}-group-wrapper`,kr,Fi),Re)}},ct));return Xt(In)}),Ke=ft,Xe=We=>xe.createElement(_r.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},xe.createElement(ft,Object.assign({},We)));Ke._InternalPanelDoNotUseOrYouWillBeFired=Xe;var At=Ke},9432:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return H},n:function(){return K}});var we=g(33130),Fe=g(92310),se=g.n(Fe),ke=g(93681),ie=g(20475),Y=g(59301),O=g(19080),T=g(36355),n=g(1684),o=g(19716),L=g(32441),p=g(33234),a=g(59412),A=g(9937);function m(V){return!!(V.prefix||V.suffix||V.allowClear)}var S=function(V,ee){var B={};for(var G in V)Object.prototype.hasOwnProperty.call(V,G)&&ee.indexOf(G)<0&&(B[G]=V[G]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,G=Object.getOwnPropertySymbols(V);ce<G.length;ce++)ee.indexOf(G[ce])<0&&Object.prototype.propertyIsEnumerable.call(V,G[ce])&&(B[G[ce]]=V[G[ce]]);return B};function K(V,ee){if(!V)return;V.focus(ee);const{cursor:B}=ee||{};if(B){const G=V.value.length;switch(B){case"start":V.setSelectionRange(0,0);break;case"end":V.setSelectionRange(G,G);break;default:V.setSelectionRange(0,G);break}}}var H=(0,Y.forwardRef)((V,ee)=>{var B;const{prefixCls:G,bordered:ce=!0,status:q,size:be,disabled:xe,onBlur:Le,onFocus:ae,suffix:me,allowClear:I,addonAfter:_e,addonBefore:oe,className:he,style:ve,styles:_,rootClassName:N,onChange:X,classNames:pe}=V,qe=S(V,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:at,direction:rt,input:Rt}=Y.useContext(T.E_),lr=at("input",G),qt=(0,Y.useRef)(null),[Ze,Er]=(0,A.ZP)(lr),{compactSize:Cr,compactItemClassnames:Kr}=(0,p.ri)(lr,rt),_r=(0,o.Z)(ft=>{var Ke;return(Ke=be!=null?be:Cr)!==null&&Ke!==void 0?Ke:ft}),Me=Y.useContext(n.Z),Tt=xe!=null?xe:Me,{status:z,hasFeedback:v,feedbackIcon:f}=(0,Y.useContext)(L.aM),D=(0,O.F)(z,q),de=m(V)||!!v,W=(0,Y.useRef)(de);(0,Y.useEffect)(()=>{var ft;de&&W.current,W.current=de},[de]);const P=(0,a.Z)(qt,!0),te=ft=>{P(),Le==null||Le(ft)},Ie=ft=>{P(),ae==null||ae(ft)},Te=ft=>{P(),X==null||X(ft)},Se=(v||me)&&Y.createElement(Y.Fragment,null,me,v&&f);let Ge;return typeof I=="object"&&(I!=null&&I.clearIcon)?Ge=I:I&&(Ge={clearIcon:Y.createElement(we.Z,null)}),Ze(Y.createElement(ke.default,Object.assign({ref:(0,ie.sQ)(ee,qt),prefixCls:lr,autoComplete:Rt==null?void 0:Rt.autoComplete},qe,{disabled:Tt,onBlur:te,onFocus:Ie,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),ve),styles:Object.assign(Object.assign({},Rt==null?void 0:Rt.styles),_),suffix:Se,allowClear:Ge,className:se()(he,N,Kr,Rt==null?void 0:Rt.className),onChange:Te,addonAfter:_e&&Y.createElement(p.BR,null,Y.createElement(L.Ux,{override:!0,status:!0},_e)),addonBefore:oe&&Y.createElement(p.BR,null,Y.createElement(L.Ux,{override:!0,status:!0},oe)),classNames:Object.assign(Object.assign(Object.assign({},pe),Rt==null?void 0:Rt.classNames),{input:se()({[`${lr}-sm`]:_r==="small",[`${lr}-lg`]:_r==="large",[`${lr}-rtl`]:rt==="rtl",[`${lr}-borderless`]:!ce},!de&&(0,O.Z)(lr,D),pe==null?void 0:pe.input,(B=Rt==null?void 0:Rt.classNames)===null||B===void 0?void 0:B.input,Er)}),classes:{affixWrapper:se()({[`${lr}-affix-wrapper-sm`]:_r==="small",[`${lr}-affix-wrapper-lg`]:_r==="large",[`${lr}-affix-wrapper-rtl`]:rt==="rtl",[`${lr}-affix-wrapper-borderless`]:!ce},(0,O.Z)(`${lr}-affix-wrapper`,D,v),Er),wrapper:se()({[`${lr}-group-rtl`]:rt==="rtl"},Er),group:se()({[`${lr}-group-wrapper-sm`]:_r==="small",[`${lr}-group-wrapper-lg`]:_r==="large",[`${lr}-group-wrapper-rtl`]:rt==="rtl",[`${lr}-group-wrapper-disabled`]:Tt},(0,O.Z)(`${lr}-group-wrapper`,D,v),Er)}})))})},1643:function(yn,Gt,g){"use strict";var we=g(33130),Fe=g(92310),se=g.n(Fe),ke=g(9296),ie=g(59301),Y=g(19080),O=g(36355),T=g(1684),n=g(19716),o=g(32441),L=g(9432),p=g(9937),a=function(m,S){var K={};for(var F in m)Object.prototype.hasOwnProperty.call(m,F)&&S.indexOf(F)<0&&(K[F]=m[F]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,F=Object.getOwnPropertySymbols(m);H<F.length;H++)S.indexOf(F[H])<0&&Object.prototype.propertyIsEnumerable.call(m,F[H])&&(K[F[H]]=m[F[H]]);return K};const A=(0,ie.forwardRef)((m,S)=>{const{prefixCls:K,bordered:F=!0,size:H,disabled:V,status:ee,allowClear:B,showCount:G,classNames:ce,rootClassName:q,className:be}=m,xe=a(m,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Le,direction:ae}=ie.useContext(O.E_),me=(0,n.Z)(H),I=ie.useContext(T.Z),_e=V!=null?V:I,{status:oe,hasFeedback:he,feedbackIcon:ve}=ie.useContext(o.aM),_=(0,Y.F)(oe,ee),N=ie.useRef(null);ie.useImperativeHandle(S,()=>{var rt;return{resizableTextArea:(rt=N.current)===null||rt===void 0?void 0:rt.resizableTextArea,focus:Rt=>{var lr,qt;(0,L.n)((qt=(lr=N.current)===null||lr===void 0?void 0:lr.resizableTextArea)===null||qt===void 0?void 0:qt.textArea,Rt)},blur:()=>{var Rt;return(Rt=N.current)===null||Rt===void 0?void 0:Rt.blur()}}});const X=Le("input",K);let pe;typeof B=="object"&&(B!=null&&B.clearIcon)?pe=B:B&&(pe={clearIcon:ie.createElement(we.Z,null)});const[qe,at]=(0,p.ZP)(X);return qe(ie.createElement(ke.default,Object.assign({},xe,{disabled:_e,allowClear:pe,className:se()(be,q),classes:{affixWrapper:se()(`${X}-textarea-affix-wrapper`,{[`${X}-affix-wrapper-rtl`]:ae==="rtl",[`${X}-affix-wrapper-borderless`]:!F,[`${X}-affix-wrapper-sm`]:me==="small",[`${X}-affix-wrapper-lg`]:me==="large",[`${X}-textarea-show-count`]:G},(0,Y.Z)(`${X}-affix-wrapper`,_),at)},classNames:Object.assign(Object.assign({},ce),{textarea:se()({[`${X}-borderless`]:!F,[`${X}-sm`]:me==="small",[`${X}-lg`]:me==="large"},(0,Y.Z)(X,_),at,ce==null?void 0:ce.textarea)}),prefixCls:X,suffix:he&&ie.createElement("span",{className:`${X}-textarea-suffix`},ve),showCount:G,ref:N})))});Gt.Z=A},59412:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return Fe}});var we=g(59301);function Fe(se,ke){const ie=(0,we.useRef)([]),Y=()=>{ie.current.push(setTimeout(()=>{var O,T,n,o;!((O=se.current)===null||O===void 0)&&O.input&&((T=se.current)===null||T===void 0?void 0:T.input.getAttribute("type"))==="password"&&(!((n=se.current)===null||n===void 0)&&n.input.hasAttribute("value"))&&((o=se.current)===null||o===void 0||o.input.removeAttribute("value"))}))};return(0,we.useEffect)(()=>(ke&&Y(),()=>ie.current.forEach(O=>{O&&clearTimeout(O)})),[]),Y}},92832:function(yn,Gt,g){"use strict";g.d(Gt,{default:function(){return me}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=g(36355),ie=g(32441),Y=g(9937),T=I=>{const{getPrefixCls:_e,direction:oe}=(0,se.useContext)(ke.E_),{prefixCls:he,className:ve}=I,_=_e("input-group",he),N=_e("input"),[X,pe]=(0,Y.ZP)(N),qe=Fe()(_,{[`${_}-lg`]:I.size==="large",[`${_}-sm`]:I.size==="small",[`${_}-compact`]:I.compact,[`${_}-rtl`]:oe==="rtl"},pe,ve),at=(0,se.useContext)(ie.aM),rt=(0,se.useMemo)(()=>Object.assign(Object.assign({},at),{isFormItemInput:!1}),[at]);return X(se.createElement("span",{className:qe,style:I.style,onMouseEnter:I.onMouseEnter,onMouseLeave:I.onMouseLeave,onFocus:I.onFocus,onBlur:I.onBlur},se.createElement(ie.aM.Provider,{value:rt},I.children)))},n=g(9432),o=g(61441),L=g(30631),p=g(64002),a=g(20475),A=g(59412),m=function(I,_e){var oe={};for(var he in I)Object.prototype.hasOwnProperty.call(I,he)&&_e.indexOf(he)<0&&(oe[he]=I[he]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,he=Object.getOwnPropertySymbols(I);ve<he.length;ve++)_e.indexOf(he[ve])<0&&Object.prototype.propertyIsEnumerable.call(I,he[ve])&&(oe[he[ve]]=I[he[ve]]);return oe};const S=I=>I?se.createElement(L.Z,null):se.createElement(o.Z,null),K={click:"onClick",hover:"onMouseOver"};var H=se.forwardRef((I,_e)=>{const{visibilityToggle:oe=!0}=I,he=typeof oe=="object"&&oe.visible!==void 0,[ve,_]=(0,se.useState)(()=>he?oe.visible:!1),N=(0,se.useRef)(null);se.useEffect(()=>{he&&_(oe.visible)},[he,oe]);const X=(0,A.Z)(N),pe=()=>{const{disabled:Tt}=I;Tt||(ve&&X(),_(z=>{var v;const f=!z;return typeof oe=="object"&&((v=oe.onVisibleChange)===null||v===void 0||v.call(oe,f)),f}))},qe=Tt=>{const{action:z="click",iconRender:v=S}=I,f=K[z]||"",D=v(ve),de={[f]:pe,className:`${Tt}-icon`,key:"passwordIcon",onMouseDown:W=>{W.preventDefault()},onMouseUp:W=>{W.preventDefault()}};return se.cloneElement(se.isValidElement(D)?D:se.createElement("span",null,D),de)},{className:at,prefixCls:rt,inputPrefixCls:Rt,size:lr}=I,qt=m(I,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ze}=se.useContext(ke.E_),Er=Ze("input",Rt),Cr=Ze("input-password",rt),Kr=oe&&qe(Cr),_r=Fe()(Cr,at,{[`${Cr}-${lr}`]:!!lr}),Me=Object.assign(Object.assign({},(0,p.Z)(qt,["suffix","iconRender","visibilityToggle"])),{type:ve?"text":"password",className:_r,prefixCls:Er,suffix:Kr});return lr&&(Me.size=lr),se.createElement(n.Z,Object.assign({ref:(0,a.sQ)(_e,N)},Me))}),V=g(21970),ee=g(92343),B=g(3113),G=g(19716),ce=g(33234),q=function(I,_e){var oe={};for(var he in I)Object.prototype.hasOwnProperty.call(I,he)&&_e.indexOf(he)<0&&(oe[he]=I[he]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,he=Object.getOwnPropertySymbols(I);ve<he.length;ve++)_e.indexOf(he[ve])<0&&Object.prototype.propertyIsEnumerable.call(I,he[ve])&&(oe[he[ve]]=I[he[ve]]);return oe},xe=se.forwardRef((I,_e)=>{const{prefixCls:oe,inputPrefixCls:he,className:ve,size:_,suffix:N,enterButton:X=!1,addonAfter:pe,loading:qe,disabled:at,onSearch:rt,onChange:Rt,onCompositionStart:lr,onCompositionEnd:qt}=I,Ze=q(I,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Er,direction:Cr}=se.useContext(ke.E_),Kr=se.useRef(!1),_r=Er("input-search",oe),Me=Er("input",he),{compactSize:Tt}=(0,ce.ri)(_r,Cr),z=(0,G.Z)(Xe=>{var At;return(At=_!=null?_:Tt)!==null&&At!==void 0?At:Xe}),v=se.useRef(null),f=Xe=>{Xe&&Xe.target&&Xe.type==="click"&&rt&&rt(Xe.target.value,Xe,{source:"clear"}),Rt&&Rt(Xe)},D=Xe=>{var At;document.activeElement===((At=v.current)===null||At===void 0?void 0:At.input)&&Xe.preventDefault()},de=Xe=>{var At,We;rt&&rt((We=(At=v.current)===null||At===void 0?void 0:At.input)===null||We===void 0?void 0:We.value,Xe,{source:"input"})},W=Xe=>{Kr.current||qe||de(Xe)},P=typeof X=="boolean"?se.createElement(V.Z,null):null,te=`${_r}-button`;let Ie;const Te=X||{},Se=Te.type&&Te.type.__ANT_BUTTON===!0;Se||Te.type==="button"?Ie=(0,ee.Tm)(Te,Object.assign({onMouseDown:D,onClick:Xe=>{var At,We;(We=(At=Te==null?void 0:Te.props)===null||At===void 0?void 0:At.onClick)===null||We===void 0||We.call(At,Xe),de(Xe)},key:"enterButton"},Se?{className:te,size:z}:{})):Ie=se.createElement(B.ZP,{className:te,type:X?"primary":void 0,size:z,disabled:at,key:"enterButton",onMouseDown:D,onClick:de,loading:qe,icon:P},X),pe&&(Ie=[Ie,(0,ee.Tm)(pe,{key:"addonAfter"})]);const Ge=Fe()(_r,{[`${_r}-rtl`]:Cr==="rtl",[`${_r}-${z}`]:!!z,[`${_r}-with-button`]:!!X},ve),ft=Xe=>{Kr.current=!0,lr==null||lr(Xe)},Ke=Xe=>{Kr.current=!1,qt==null||qt(Xe)};return se.createElement(n.Z,Object.assign({ref:(0,a.sQ)(v,_e),onPressEnter:W},Ze,{size:z,onCompositionStart:ft,onCompositionEnd:Ke,prefixCls:Me,addonAfter:Ie,suffix:N,onChange:f,className:Ge,disabled:at}))}),Le=g(1643);const ae=n.Z;ae.Group=T,ae.Search=xe,ae.TextArea=Le.Z,ae.Password=H;var me=ae},9937:function(yn,Gt,g){"use strict";g.d(Gt,{M1:function(){return O},TM:function(){return ee},Xy:function(){return T},bi:function(){return L},e5:function(){return V},ik:function(){return p},nz:function(){return ie},pU:function(){return Y},s7:function(){return a},x0:function(){return o}});var we=g(17313),Fe=g(74207),se=g(37613),ke=g(83116);const ie=B=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:B,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Y=B=>({borderColor:B.hoverBorderColor}),O=B=>({borderColor:B.activeBorderColor,boxShadow:B.activeShadow,outline:0}),T=B=>({color:B.colorTextDisabled,backgroundColor:B.colorBgContainerDisabled,borderColor:B.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Y((0,se.TS)(B,{hoverBorderColor:B.colorBorder})))}),n=B=>{const{paddingBlockLG:G,fontSizeLG:ce,lineHeightLG:q,borderRadiusLG:be,paddingInlineLG:xe}=B;return{padding:`${G}px ${xe}px`,fontSize:ce,lineHeight:q,borderRadius:be}},o=B=>({padding:`${B.paddingBlockSM}px ${B.paddingInlineSM}px`,borderRadius:B.borderRadiusSM}),L=(B,G)=>{const{componentCls:ce,colorError:q,colorWarning:be,errorActiveShadow:xe,warningActiveShadow:Le,colorErrorBorderHover:ae,colorWarningBorderHover:me}=B;return{[`&-status-error:not(${G}-disabled):not(${G}-borderless)${G}`]:{borderColor:q,"&:hover":{borderColor:ae},"&:focus, &-focused":Object.assign({},O((0,se.TS)(B,{activeBorderColor:q,activeShadow:xe}))),[`${ce}-prefix, ${ce}-suffix`]:{color:q}},[`&-status-warning:not(${G}-disabled):not(${G}-borderless)${G}`]:{borderColor:be,"&:hover":{borderColor:me},"&:focus, &-focused":Object.assign({},O((0,se.TS)(B,{activeBorderColor:be,activeShadow:Le}))),[`${ce}-prefix, ${ce}-suffix`]:{color:be}}}},p=B=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${B.paddingBlock}px ${B.paddingInline}px`,color:B.colorText,fontSize:B.fontSize,lineHeight:B.lineHeight,backgroundColor:B.colorBgContainer,backgroundImage:"none",borderWidth:B.lineWidth,borderStyle:B.lineType,borderColor:B.colorBorder,borderRadius:B.borderRadius,transition:`all ${B.motionDurationMid}`},ie(B.colorTextPlaceholder)),{"&:hover":Object.assign({},Y(B)),"&:focus, &-focused":Object.assign({},O(B)),"&-disabled, &[disabled]":Object.assign({},T(B)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:B.controlHeight,lineHeight:B.lineHeight,verticalAlign:"bottom",transition:`all ${B.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},n(B)),"&-sm":Object.assign({},o(B)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),a=B=>{const{componentCls:G,antCls:ce}=B;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:B.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${G}, &-lg > ${G}-group-addon`]:Object.assign({},n(B)),[`&-sm ${G}, &-sm > ${G}-group-addon`]:Object.assign({},o(B)),[`&-lg ${ce}-select-single ${ce}-select-selector`]:{height:B.controlHeightLG},[`&-sm ${ce}-select-single ${ce}-select-selector`]:{height:B.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 ${B.paddingInline}px`,color:B.colorText,fontWeight:"normal",fontSize:B.fontSize,textAlign:"center",backgroundColor:B.colorFillAlter,border:`${B.lineWidth}px ${B.lineType} ${B.colorBorder}`,borderRadius:B.borderRadius,transition:`all ${B.motionDurationSlow}`,lineHeight:1,[`${ce}-select`]:{margin:`-${B.paddingBlock+1}px -${B.paddingInline}px`,[`&${ce}-select-single:not(${ce}-select-customize-input)`]:{[`${ce}-select-selector`]:{backgroundColor:"inherit",border:`${B.lineWidth}px ${B.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${ce}-select-selector`]:{color:B.colorPrimary}}},[`${ce}-cascader-picker`]:{margin:`-9px -${B.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:B.borderRadius,borderEndStartRadius:B.borderRadius}},[`&:not(:first-child), ${G}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${G}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,we.dF)()),{[`${G}-group-addon, ${G}-group-wrap, > ${G}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:B.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:-B.lineWidth,borderInlineEndWidth:B.lineWidth},[`${G}`]:{float:"none"},[`& > ${ce}-select > ${ce}-select-selector,
|
|
|
& > ${ce}-select-auto-complete ${G},
|
|
|
& > ${ce}-cascader-picker ${G},
|
|
|
& > ${G}-group-wrapper ${G}`]:{borderInlineEndWidth:B.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:B.borderRadius,borderEndStartRadius:B.borderRadius},[`& > *:last-child,
|
|
|
& > ${ce}-select:last-child > ${ce}-select-selector,
|
|
|
& > ${ce}-cascader-picker:last-child ${G},
|
|
|
& > ${ce}-cascader-picker-focused:last-child ${G}`]:{borderInlineEndWidth:B.lineWidth,borderStartEndRadius:B.borderRadius,borderEndEndRadius:B.borderRadius},[`& > ${ce}-select-auto-complete ${G}`]:{verticalAlign:"top"},[`${G}-group-wrapper + ${G}-group-wrapper`]:{marginInlineStart:-B.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:B.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:B.borderRadius}}}})}},A=B=>{const{componentCls:G,controlHeightSM:ce,lineWidth:q}=B,xe=(ce-q*2-16)/2;return{[G]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(B)),p(B)),L(B,G)),{'&[type="color"]':{height:B.controlHeight,[`&${G}-lg`]:{height:B.controlHeightLG},[`&${G}-sm`]:{height:ce,paddingTop:xe,paddingBottom:xe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},m=B=>{const{componentCls:G}=B;return{[`${G}-clear-icon`]:{margin:0,color:B.colorTextQuaternary,fontSize:B.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${B.motionDurationSlow}`,"&:hover":{color:B.colorTextTertiary},"&:active":{color:B.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${B.inputAffixPadding}px`}}}},S=B=>{const{componentCls:G,inputAffixPadding:ce,colorTextDescription:q,motionDurationSlow:be,colorIcon:xe,colorIconHover:Le,iconCls:ae}=B;return{[`${G}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(B)),{display:"inline-flex",[`&:not(${G}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Y(B)),{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:B.paddingXS}},"&-show-count-suffix":{color:q},"&-show-count-has-suffix":{marginInlineEnd:B.paddingXXS},"&-prefix":{marginInlineEnd:ce},"&-suffix":{marginInlineStart:ce}}}),m(B)),{[`${ae}${G}-password-icon`]:{color:xe,cursor:"pointer",transition:`all ${be}`,"&:hover":{color:Le}}}),L(B,`${G}-affix-wrapper`))}},K=B=>{const{componentCls:G,colorError:ce,colorWarning:q,borderRadiusLG:be,borderRadiusSM:xe}=B;return{[`${G}-group`]:Object.assign(Object.assign(Object.assign({},(0,we.Wf)(B)),a(B)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${G}-group-addon`]:{borderRadius:be,fontSize:B.fontSizeLG}},"&-sm":{[`${G}-group-addon`]:{borderRadius:xe}},"&-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(B))},[`&: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}}}})}},F=B=>{const{componentCls:G,antCls:ce}=B,q=`${G}-search`;return{[q]:{[`${G}`]:{"&:hover, &:focus":{borderColor:B.colorPrimaryHover,[`+ ${G}-group-addon ${q}-button:not(${ce}-btn-primary)`]:{borderInlineStartColor:B.colorPrimaryHover}}},[`${G}-affix-wrapper`]:{borderRadius:0},[`${G}-lg`]:{lineHeight:B.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:B.borderRadius,borderEndEndRadius:B.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${q}-button:not(${ce}-btn-primary)`]:{color:B.colorTextDescription,"&:hover":{color:B.colorPrimaryHover},"&:active":{color:B.colorPrimaryActive},[`&${ce}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${q}-button`]:{height:B.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${q}-button`]:{height:B.controlHeightLG},[`&-small ${q}-button`]:{height:B.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${G}-compact-item`]:{[`&:not(${G}-compact-last-item)`]:{[`${G}-group-addon`]:{[`${G}-search-button`]:{marginInlineEnd:-B.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=B=>{const{componentCls:G,paddingLG:ce}=B,q=`${G}-textarea`;return{[q]:{position:"relative","&-show-count":{[`> ${G}`]:{height:"100%"},[`${G}-data-count`]:{position:"absolute",bottom:-B.fontSize*B.lineHeight,insetInlineEnd:0,color:B.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:B.paddingXS,insetBlockStart:B.paddingXS},[`${q}-suffix`]:{position:"absolute",top:0,insetInlineEnd:B.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function V(B){return(0,se.TS)(B,{inputAffixPadding:B.paddingXXS})}const ee=B=>{const{controlHeight:G,fontSize:ce,lineHeight:q,lineWidth:be,controlHeightSM:xe,controlHeightLG:Le,fontSizeLG:ae,lineHeightLG:me,paddingSM:I,controlPaddingHorizontalSM:_e,controlPaddingHorizontal:oe,colorFillAlter:he,colorPrimaryHover:ve,controlOutlineWidth:_,controlOutline:N,colorErrorOutline:X,colorWarningOutline:pe}=B;return{paddingBlock:Math.max(Math.round((G-ce*q)/2*10)/10-be,3),paddingBlockSM:Math.max(Math.round((xe-ce*q)/2*10)/10-be,0),paddingBlockLG:Math.ceil((Le-ae*me)/2*10)/10-be,paddingInline:I-be,paddingInlineSM:_e-be,paddingInlineLG:oe-be,addonBg:he,activeBorderColor:ve,hoverBorderColor:ve,activeShadow:`0 0 0 ${_}px ${N}`,errorActiveShadow:`0 0 0 ${_}px ${X}`,warningActiveShadow:`0 0 0 ${_}px ${pe}`}};Gt.ZP=(0,ke.Z)("Input",B=>{const G=(0,se.TS)(B,V(B));return[A(G),H(G),S(G),K(G),F(G),(0,Fe.c)(G)]},ee)},99580:function(yn,Gt,g){"use strict";g.d(Gt,{D:function(){return V},Z:function(){return G}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(q,be){return Fe.createElement(ie.Z,(0,we.Z)({},q,{ref:be,icon:ke}))},O=Fe.forwardRef(Y),T=O,n=g(16537),o=g(53878),L=g(92310),p=g.n(L),a=g(64002),m=ce=>!isNaN(parseFloat(ce))&&isFinite(ce),S=g(36355),K=g(84966),F=function(ce,q){var be={};for(var xe in ce)Object.prototype.hasOwnProperty.call(ce,xe)&&q.indexOf(xe)<0&&(be[xe]=ce[xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,xe=Object.getOwnPropertySymbols(ce);Le<xe.length;Le++)q.indexOf(xe[Le])<0&&Object.prototype.propertyIsEnumerable.call(ce,xe[Le])&&(be[xe[Le]]=ce[xe[Le]]);return be};const H={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},V=Fe.createContext({}),ee=(()=>{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:be,className:xe,trigger:Le,children:ae,defaultCollapsed:me=!1,theme:I="dark",style:_e={},collapsible:oe=!1,reverseArrow:he=!1,width:ve=200,collapsedWidth:_=80,zeroWidthTriggerStyle:N,breakpoint:X,onCollapse:pe,onBreakpoint:qe}=ce,at=F(ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,Fe.useContext)(K.Gs),[Rt,lr]=(0,Fe.useState)("collapsed"in ce?ce.collapsed:me),[qt,Ze]=(0,Fe.useState)(!1);(0,Fe.useEffect)(()=>{"collapsed"in ce&&lr(ce.collapsed)},[ce.collapsed]);const Er=(z,v)=>{"collapsed"in ce||lr(z),pe==null||pe(z,v)},Cr=(0,Fe.useRef)();Cr.current=z=>{Ze(z.matches),qe==null||qe(z.matches),Rt!==z.matches&&Er(z.matches,"responsive")},(0,Fe.useEffect)(()=>{function z(f){return Cr.current(f)}let v;if(typeof window!="undefined"){const{matchMedia:f}=window;if(f&&X&&X in H){v=f(`(max-width: ${H[X]})`);try{v.addEventListener("change",z)}catch(D){v.addListener(z)}z(v)}}return()=>{try{v==null||v.removeEventListener("change",z)}catch(f){v==null||v.removeListener(z)}}},[X]),(0,Fe.useEffect)(()=>{const z=ee("ant-sider-");return rt.addSider(z),()=>rt.removeSider(z)},[]);const Kr=()=>{Er(!Rt,"clickTrigger")},{getPrefixCls:_r}=(0,Fe.useContext)(S.E_),Me=()=>{const z=_r("layout-sider",be),v=(0,a.Z)(at,["collapsed"]),f=Rt?_:ve,D=m(f)?`${f}px`:String(f),de=parseFloat(String(_||0))===0?Fe.createElement("span",{onClick:Kr,className:p()(`${z}-zero-width-trigger`,`${z}-zero-width-trigger-${he?"right":"left"}`),style:N},Le||Fe.createElement(T,null)):null,te={expanded:he?Fe.createElement(o.Z,null):Fe.createElement(n.Z,null),collapsed:he?Fe.createElement(n.Z,null):Fe.createElement(o.Z,null)}[Rt?"collapsed":"expanded"],Ie=Le!==null?de||Fe.createElement("div",{className:`${z}-trigger`,onClick:Kr,style:{width:D}},Le||te):null,Te=Object.assign(Object.assign({},_e),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),Se=p()(z,`${z}-${I}`,{[`${z}-collapsed`]:!!Rt,[`${z}-has-trigger`]:oe&&Le!==null&&!de,[`${z}-below`]:!!qt,[`${z}-zero-width`]:parseFloat(D)===0},xe);return Fe.createElement("aside",Object.assign({className:Se},v,{style:Te,ref:q}),Fe.createElement("div",{className:`${z}-children`},ae),oe||qt&&de?Ie:null)},Tt=Fe.useMemo(()=>({siderCollapsed:Rt}),[Rt]);return Fe.createElement(V.Provider,{value:Tt},Me())})},84966:function(yn,Gt,g){"use strict";g.d(Gt,{VY:function(){return V},$_:function(){return H},h4:function(){return F},Gs:function(){return a},ZP:function(){return ee}});var we=g(26390),Fe=g(92310),se=g.n(Fe),ke=g(64002),ie=g(59301),Y=g(36355),O=g(83116),n=B=>{const{componentCls:G,bodyBg:ce,lightSiderBg:q,lightTriggerBg:be,lightTriggerColor:xe}=B;return{[`${G}-sider-light`]:{background:q,[`${G}-sider-trigger`]:{color:xe,background:be},[`${G}-sider-zero-width-trigger`]:{color:xe,background:be,border:`1px solid ${ce}`,borderInlineStart:0}}}};const o=B=>{const{antCls:G,componentCls:ce,colorText:q,triggerColor:be,footerBg:xe,triggerBg:Le,headerHeight:ae,headerPadding:me,headerColor:I,footerPadding:_e,triggerHeight:oe,zeroTriggerHeight:he,zeroTriggerWidth:ve,motionDurationMid:_,motionDurationSlow:N,fontSize:X,borderRadius:pe,bodyBg:qe,headerBg:at,siderBg:rt}=B;return{[ce]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:qe,"&, *":{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:rt,transition:`all ${_}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${G}-menu${G}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:oe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:oe,color:be,lineHeight:`${oe}px`,textAlign:"center",background:Le,cursor:"pointer",transition:`all ${_}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ae,insetInlineEnd:-ve,zIndex:1,width:ve,height:he,color:be,fontSize:B.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:pe,borderEndEndRadius:pe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${N} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${N}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ve,borderStartStartRadius:pe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:pe}}}}},n(B)),{"&-rtl":{direction:"rtl"}}),[`${ce}-header`]:{height:ae,padding:me,color:I,lineHeight:`${ae}px`,background:at,[`${G}-menu`]:{lineHeight:"inherit"}},[`${ce}-footer`]:{padding:_e,color:q,fontSize:X,background:xe},[`${ce}-content`]:{flex:"auto",minHeight:0}}};var L=(0,O.Z)("Layout",B=>[o(B)],B=>{const{colorBgLayout:G,controlHeight:ce,controlHeightLG:q,colorText:be,controlHeightSM:xe,marginXXS:Le,colorTextLightSolid:ae,colorBgContainer:me}=B,I=q*1.25;return{colorBgHeader:"#001529",colorBgBody:G,colorBgTrigger:"#002140",bodyBg:G,headerBg:"#001529",headerHeight:ce*2,headerPadding:`0 ${I}px`,headerColor:be,footerPadding:`${xe}px ${I}px`,footerBg:G,siderBg:"#001529",triggerHeight:q+Le*2,triggerBg:"#002140",triggerColor:ae,zeroTriggerWidth:q,zeroTriggerHeight:q,lightSiderBg:me,lightTriggerBg:me,lightTriggerColor:be}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),p=function(B,G){var ce={};for(var q in B)Object.prototype.hasOwnProperty.call(B,q)&&G.indexOf(q)<0&&(ce[q]=B[q]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,q=Object.getOwnPropertySymbols(B);be<q.length;be++)G.indexOf(q[be])<0&&Object.prototype.propertyIsEnumerable.call(B,q[be])&&(ce[q[be]]=B[q[be]]);return ce};const a=ie.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function A(B){let{suffixCls:G,tagName:ce,displayName:q}=B;return be=>ie.forwardRef((Le,ae)=>ie.createElement(be,Object.assign({ref:ae,suffixCls:G,tagName:ce},Le)))}const m=ie.forwardRef((B,G)=>{const{prefixCls:ce,suffixCls:q,className:be,tagName:xe}=B,Le=p(B,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ae}=ie.useContext(Y.E_),me=ae("layout",ce),[I,_e]=L(me),oe=q?`${me}-${q}`:me;return I(ie.createElement(xe,Object.assign({className:se()(ce||oe,be,_e),ref:G},Le)))}),S=ie.forwardRef((B,G)=>{const{direction:ce}=ie.useContext(Y.E_),[q,be]=ie.useState([]),{prefixCls:xe,className:Le,rootClassName:ae,children:me,hasSider:I,tagName:_e,style:oe}=B,he=p(B,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ve=(0,ke.Z)(he,["suffixCls"]),{getPrefixCls:_,layout:N}=ie.useContext(Y.E_),X=_("layout",xe),[pe,qe]=L(X),at=se()(X,{[`${X}-has-sider`]:typeof I=="boolean"?I:q.length>0,[`${X}-rtl`]:ce==="rtl"},N==null?void 0:N.className,Le,ae,qe),rt=ie.useMemo(()=>({siderHook:{addSider:Rt=>{be(lr=>[].concat((0,we.Z)(lr),[Rt]))},removeSider:Rt=>{be(lr=>lr.filter(qt=>qt!==Rt))}}}),[]);return pe(ie.createElement(a.Provider,{value:rt},ie.createElement(_e,Object.assign({ref:G,className:at,style:Object.assign(Object.assign({},N==null?void 0:N.style),oe)},ve),me)))}),K=A({tagName:"div",displayName:"Layout"})(S),F=A({suffixCls:"header",tagName:"header",displayName:"Header"})(m),H=A({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(m),V=A({suffixCls:"content",tagName:"main",displayName:"Content"})(m);var ee=K},40875:function(yn,Gt,g){"use strict";g.d(Gt,{J:function(){return Y}});var we=g(59301),Fe=g(33234),se=g(80764),ke=function(O,T){var n={};for(var o in O)Object.prototype.hasOwnProperty.call(O,o)&&T.indexOf(o)<0&&(n[o]=O[o]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,o=Object.getOwnPropertySymbols(O);L<o.length;L++)T.indexOf(o[L])<0&&Object.prototype.propertyIsEnumerable.call(O,o[L])&&(n[o[L]]=O[o[L]]);return n};const ie=we.createContext(null),Y=we.forwardRef((O,T)=>{const{children:n}=O,o=ke(O,["children"]),L=we.useContext(ie),p=we.useMemo(()=>Object.assign(Object.assign({},L),o),[L,o.prefixCls,o.mode,o.selectable]);return we.createElement(ie.Provider,{value:p},we.createElement(Fe.BR,null,(0,se.supportNodeRef)(n)?we.cloneElement(n,{ref:T}):n))});Gt.Z=ie},20834:function(yn,Gt,g){"use strict";g.d(Gt,{default:function(){return Tt}});var we=g(22798),Fe=g(59301),se=g(99580),ke=g(92310),ie=g.n(ke),Y=g(36355),O=function(z,v){var f={};for(var D in z)Object.prototype.hasOwnProperty.call(z,D)&&v.indexOf(D)<0&&(f[D]=z[D]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,D=Object.getOwnPropertySymbols(z);de<D.length;de++)v.indexOf(D[de])<0&&Object.prototype.propertyIsEnumerable.call(z,D[de])&&(f[D[de]]=z[D[de]]);return f},n=z=>{const{prefixCls:v,className:f,dashed:D}=z,de=O(z,["prefixCls","className","dashed"]),{getPrefixCls:W}=Fe.useContext(Y.E_),P=W("menu",v),te=ie()({[`${P}-item-divider-dashed`]:!!D},f);return Fe.createElement(we.iz,Object.assign({className:te},de))},o=g(38298),L=g(64002),p=g(6848),a=g(92343),m=(0,Fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),K=z=>{var v;const{className:f,children:D,icon:de,title:W,danger:P}=z,{prefixCls:te,firstLevel:Ie,direction:Te,disableMenuItemTitleTooltip:Se,inlineCollapsed:Ge}=Fe.useContext(m),ft=Bt=>{const Kt=Fe.createElement("span",{className:`${te}-title-content`},D);return(!de||(0,a.l$)(D)&&D.type==="span")&&D&&Bt&&Ie&&typeof D=="string"?Fe.createElement("div",{className:`${te}-inline-collapsed-noicon`},D.charAt(0)):Kt},{siderCollapsed:Ke}=Fe.useContext(se.D);let Xe=W;typeof W=="undefined"?Xe=Ie?D:"":W===!1&&(Xe="");const At={title:Xe};!Ke&&!Ge&&(At.title=null,At.open=!1);const We=(0,o.Z)(D).length;let $e=Fe.createElement(we.ck,Object.assign({},(0,L.Z)(z,["title","icon","danger"]),{className:ie()({[`${te}-item-danger`]:P,[`${te}-item-only-child`]:(de?We+1:We)===1},f),title:typeof W=="string"?W:void 0}),(0,a.Tm)(de,{className:ie()((0,a.l$)(de)?(v=de.props)===null||v===void 0?void 0:v.className:"",`${te}-item-icon`)}),ft(Ge));return Se||($e=Fe.createElement(p.Z,Object.assign({},At,{placement:Te==="rtl"?"left":"right",overlayClassName:`${te}-inline-collapsed-tooltip`}),$e)),$e},H=z=>{var v;const{popupClassName:f,icon:D,title:de,theme:W}=z,P=Fe.useContext(m),{prefixCls:te,inlineCollapsed:Ie,theme:Te}=P,Se=(0,we.Xl)();let Ge;if(!D)Ge=Ie&&!Se.length&&de&&typeof de=="string"?Fe.createElement("div",{className:`${te}-inline-collapsed-noicon`},de.charAt(0)):Fe.createElement("span",{className:`${te}-title-content`},de);else{const Ke=(0,a.l$)(de)&&de.type==="span";Ge=Fe.createElement(Fe.Fragment,null,(0,a.Tm)(D,{className:ie()((0,a.l$)(D)?(v=D.props)===null||v===void 0?void 0:v.className:"",`${te}-item-icon`)}),Ke?de:Fe.createElement("span",{className:`${te}-title-content`},de))}const ft=Fe.useMemo(()=>Object.assign(Object.assign({},P),{firstLevel:!1}),[P]);return Fe.createElement(m.Provider,{value:ft},Fe.createElement(we.Wd,Object.assign({},(0,L.Z)(z,["icon"]),{title:Ge,popupClassName:ie()(te,f,`${te}-${W||Te}`)})))},V=g(19362),ee=g(80764),B=g(62892),G=g(40875),ce=function(z,v){var f={};for(var D in z)Object.prototype.hasOwnProperty.call(z,D)&&v.indexOf(D)<0&&(f[D]=z[D]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,D=Object.getOwnPropertySymbols(z);de<D.length;de++)v.indexOf(D[de])<0&&Object.prototype.propertyIsEnumerable.call(z,D[de])&&(f[D[de]]=z[D[de]]);return f};function q(z){return(z||[]).map((v,f)=>{if(v&&typeof v=="object"){const D=v,{label:de,children:W,key:P,type:te}=D,Ie=ce(D,["label","children","key","type"]),Te=P!=null?P:`tmp-${f}`;return W||te==="group"?te==="group"?Fe.createElement(we.BW,Object.assign({key:Te},Ie,{title:de}),q(W)):Fe.createElement(H,Object.assign({key:Te},Ie,{title:de}),q(W)):te==="divider"?Fe.createElement(n,Object.assign({key:Te},Ie)):Fe.createElement(K,Object.assign({key:Te},Ie),de)}return null}).filter(v=>v)}function be(z){return Fe.useMemo(()=>z&&q(z),[z])}var xe=g(64993),Le=g(17313),ae=g(8378),me=g(13826),I=g(29878),_e=g(83116),oe=g(37613),ve=z=>{const{componentCls:v,motionDurationSlow:f,horizontalLineHeight:D,colorSplit:de,lineWidth:W,lineType:P,itemPaddingInline:te}=z;return{[`${v}-horizontal`]:{lineHeight:D,border:0,borderBottom:`${W}px ${P} ${de}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${v}-item, ${v}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:te},[`> ${v}-item:hover,
|
|
|
> ${v}-item-active,
|
|
|
> ${v}-submenu ${v}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${v}-item, ${v}-submenu-title`]:{transition:[`border-color ${f}`,`background ${f}`].join(",")},[`${v}-submenu-arrow`]:{display:"none"}}}},N=z=>{let{componentCls:v,menuArrowOffset:f}=z;return{[`${v}-rtl`]:{direction:"rtl"},[`${v}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${v}-rtl${v}-vertical,
|
|
|
${v}-submenu-rtl ${v}-vertical`]:{[`${v}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${f})`},"&::after":{transform:`rotate(45deg) translateY(${f})`}}}}};const X=z=>Object.assign({},(0,Le.oN)(z));var qe=(z,v)=>{const{componentCls:f,itemColor:D,itemSelectedColor:de,groupTitleColor:W,itemBg:P,subMenuItemBg:te,itemSelectedBg:Ie,activeBarHeight:Te,activeBarWidth:Se,activeBarBorderWidth:Ge,motionDurationSlow:ft,motionEaseInOut:Ke,motionEaseOut:Xe,itemPaddingInline:At,motionDurationMid:We,itemHoverColor:$e,lineType:Bt,colorSplit:Kt,itemDisabledColor:Mt,dangerItemColor:wr,dangerItemHoverColor:vr,dangerItemSelectedColor:re,dangerItemActiveBg:le,dangerItemSelectedBg:rr,itemHoverBg:Ue,itemActiveBg:ot,menuSubMenuBg:Yr,horizontalItemSelectedColor:St,horizontalItemSelectedBg:Vt,horizontalItemBorderRadius:Zt,horizontalItemHoverBg:nt,popupBg:ct}=z;return{[`${f}-${v}, ${f}-${v} > ${f}`]:{color:D,background:P,[`&${f}-root:focus-visible`]:Object.assign({},X(z)),[`${f}-item-group-title`]:{color:W},[`${f}-submenu-selected`]:{[`> ${f}-submenu-title`]:{color:de}},[`${f}-item-disabled, ${f}-submenu-disabled`]:{color:`${Mt} !important`},[`${f}-item:not(${f}-item-selected):not(${f}-submenu-selected)`]:{[`&:hover, > ${f}-submenu-title:hover`]:{color:$e}},[`&:not(${f}-horizontal)`]:{[`${f}-item:not(${f}-item-selected)`]:{"&:hover":{backgroundColor:Ue},"&:active":{backgroundColor:ot}},[`${f}-submenu-title`]:{"&:hover":{backgroundColor:Ue},"&:active":{backgroundColor:ot}}},[`${f}-item-danger`]:{color:wr,[`&${f}-item:hover`]:{[`&:not(${f}-item-selected):not(${f}-submenu-selected)`]:{color:vr}},[`&${f}-item:active`]:{background:le}},[`${f}-item a`]:{"&, &:hover":{color:"inherit"}},[`${f}-item-selected`]:{color:de,[`&${f}-item-danger`]:{color:re},"a, a:hover":{color:"inherit"}},[`& ${f}-item-selected`]:{backgroundColor:Ie,[`&${f}-item-danger`]:{backgroundColor:rr}},[`${f}-item, ${f}-submenu-title`]:{[`&:not(${f}-item-disabled):focus-visible`]:Object.assign({},X(z))},[`&${f}-submenu > ${f}`]:{backgroundColor:Yr},[`&${f}-popup > ${f}`]:{backgroundColor:ct},[`&${f}-horizontal`]:Object.assign(Object.assign({},v==="dark"?{borderBottom:0}:{}),{[`> ${f}-item, > ${f}-submenu`]:{top:Ge,marginTop:-Ge,marginBottom:0,borderRadius:Zt,"&::after":{position:"absolute",insetInline:At,bottom:0,borderBottom:`${Te}px solid transparent`,transition:`border-color ${ft} ${Ke}`,content:'""'},"&:hover, &-active, &-open":{background:nt,"&::after":{borderBottomWidth:Te,borderBottomColor:St}},"&-selected":{color:St,backgroundColor:Vt,"&:hover":{backgroundColor:Vt},"&::after":{borderBottomWidth:Te,borderBottomColor:St}}}}),[`&${f}-root`]:{[`&${f}-inline, &${f}-vertical`]:{borderInlineEnd:`${Ge}px ${Bt} ${Kt}`}},[`&${f}-inline`]:{[`${f}-sub${f}-inline`]:{background:te},[`${f}-item, ${f}-submenu-title`]:Ge&&Se?{width:`calc(100% + ${Ge}px)`}:{},[`${f}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Se}px solid ${de}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${We} ${Xe}`,`opacity ${We} ${Xe}`].join(","),content:'""'},[`&${f}-item-danger`]:{"&::after":{borderInlineEndColor:re}}},[`${f}-selected, ${f}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${We} ${Ke}`,`opacity ${We} ${Ke}`].join(",")}}}}}};const at=z=>{const{componentCls:v,itemHeight:f,itemMarginInline:D,padding:de,menuArrowSize:W,marginXS:P,itemMarginBlock:te}=z,Ie=de+W+P;return{[`${v}-item`]:{position:"relative",overflow:"hidden"},[`${v}-item, ${v}-submenu-title`]:{height:f,lineHeight:`${f}px`,paddingInline:de,overflow:"hidden",textOverflow:"ellipsis",marginInline:D,marginBlock:te,width:`calc(100% - ${D*2}px)`},[`> ${v}-item,
|
|
|
> ${v}-submenu > ${v}-submenu-title`]:{height:f,lineHeight:`${f}px`},[`${v}-item-group-list ${v}-submenu-title,
|
|
|
${v}-submenu-title`]:{paddingInlineEnd:Ie}}};var Rt=z=>{const{componentCls:v,iconCls:f,itemHeight:D,colorTextLightSolid:de,dropdownWidth:W,controlHeightLG:P,motionDurationMid:te,motionEaseOut:Ie,paddingXL:Te,itemMarginInline:Se,fontSizeLG:Ge,motionDurationSlow:ft,paddingXS:Ke,boxShadowSecondary:Xe,collapsedWidth:At,collapsedIconSize:We}=z,$e={height:D,lineHeight:`${D}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[v]:{"&-inline, &-vertical":Object.assign({[`&${v}-root`]:{boxShadow:"none"}},at(z))},[`${v}-submenu-popup`]:{[`${v}-vertical`]:Object.assign(Object.assign({},at(z)),{boxShadow:Xe})}},{[`${v}-submenu-popup ${v}-vertical${v}-sub`]:{minWidth:W,maxHeight:`calc(100vh - ${P*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${v}-inline`]:{width:"100%",[`&${v}-root`]:{[`${v}-item, ${v}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ft}`,`background ${ft}`,`padding ${te} ${Ie}`].join(","),[`> ${v}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${v}-sub${v}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${v}-submenu > ${v}-submenu-title`]:$e,[`& ${v}-item-group-title`]:{paddingInlineStart:Te}},[`${v}-item`]:$e}},{[`${v}-inline-collapsed`]:{width:At,[`&${v}-root`]:{[`${v}-item, ${v}-submenu ${v}-submenu-title`]:{[`> ${v}-inline-collapsed-noicon`]:{fontSize:Ge,textAlign:"center"}}},[`> ${v}-item,
|
|
|
> ${v}-item-group > ${v}-item-group-list > ${v}-item,
|
|
|
> ${v}-item-group > ${v}-item-group-list > ${v}-submenu > ${v}-submenu-title,
|
|
|
> ${v}-submenu > ${v}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ge/2}px - ${Se}px)`,textOverflow:"clip",[`
|
|
|
${v}-submenu-arrow,
|
|
|
${v}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${v}-item-icon, ${f}`]:{margin:0,fontSize:We,lineHeight:`${D}px`,"+ span":{display:"inline-block",opacity:0}}},[`${v}-item-icon, ${f}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${v}-item-icon, ${f}`]:{display:"none"},"a, a:hover":{color:de}},[`${v}-item-group-title`]:Object.assign(Object.assign({},Le.vS),{paddingInline:Ke})}}]};const lr=z=>{const{componentCls:v,motionDurationSlow:f,motionDurationMid:D,motionEaseInOut:de,motionEaseOut:W,iconCls:P,iconSize:te,iconMarginInlineEnd:Ie}=z;return{[`${v}-item, ${v}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${f}`,`background ${f}`,`padding ${f} ${de}`].join(","),[`${v}-item-icon, ${P}`]:{minWidth:te,fontSize:te,transition:[`font-size ${D} ${W}`,`margin ${f} ${de}`,`color ${f}`].join(","),"+ span":{marginInlineStart:Ie,opacity:1,transition:[`opacity ${f} ${de}`,`margin ${f}`,`color ${f}`].join(",")}},[`${v}-item-icon`]:Object.assign({},(0,Le.Ro)()),[`&${v}-item-only-child`]:{[`> ${P}, > ${v}-item-icon`]:{marginInlineEnd:0}}},[`${v}-item-disabled, ${v}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${v}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},qt=z=>{const{componentCls:v,motionDurationSlow:f,motionEaseInOut:D,borderRadius:de,menuArrowSize:W,menuArrowOffset:P}=z;return{[`${v}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:z.margin,width:W,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${f} ${D}, opacity ${f}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:W*.6,height:W*.15,backgroundColor:"currentcolor",borderRadius:de,transition:[`background ${f} ${D}`,`transform ${f} ${D}`,`top ${f} ${D}`,`color ${f} ${D}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${P})`},"&::after":{transform:`rotate(-45deg) translateY(${P})`}}}}},Ze=z=>{const{antCls:v,componentCls:f,fontSize:D,motionDurationSlow:de,motionDurationMid:W,motionEaseInOut:P,paddingXS:te,padding:Ie,colorSplit:Te,lineWidth:Se,zIndexPopup:Ge,borderRadiusLG:ft,subMenuItemBorderRadius:Ke,menuArrowSize:Xe,menuArrowOffset:At,lineType:We,menuPanelMaskInset:$e,groupTitleLineHeight:Bt,groupTitleFontSize:Kt}=z;return[{"":{[`${f}`]:Object.assign(Object.assign({},(0,Le.dF)()),{"&-hidden":{display:"none"}})},[`${f}-submenu-hidden`]:{display:"none"}},{[f]: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:D,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${de} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${f}-item`]:{flex:"none"}},[`${f}-item, ${f}-submenu, ${f}-submenu-title`]:{borderRadius:z.itemBorderRadius},[`${f}-item-group-title`]:{padding:`${te}px ${Ie}px`,fontSize:Kt,lineHeight:Bt,transition:`all ${de}`},[`&-horizontal ${f}-submenu`]:{transition:[`border-color ${de} ${P}`,`background ${de} ${P}`].join(",")},[`${f}-submenu, ${f}-submenu-inline`]:{transition:[`border-color ${de} ${P}`,`background ${de} ${P}`,`padding ${W} ${P}`].join(",")},[`${f}-submenu ${f}-sub`]:{cursor:"initial",transition:[`background ${de} ${P}`,`padding ${de} ${P}`].join(",")},[`${f}-title-content`]:{transition:`color ${de}`},[`${f}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${f}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Te,borderStyle:We,borderWidth:0,borderTopWidth:Se,marginBlock:Se,padding:0,"&-dashed":{borderStyle:"dashed"}}}),lr(z)),{[`${f}-item-group`]:{[`${f}-item-group-list`]:{margin:0,padding:0,[`${f}-item, ${f}-submenu-title`]:{paddingInline:`${D*2}px ${Ie}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ge,borderRadius:ft,boxShadow:"none",transformOrigin:"0 0",[`&${f}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${$e}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:$e},"\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},[`> ${f}`]:Object.assign(Object.assign(Object.assign({borderRadius:ft},lr(z)),qt(z)),{[`${f}-item, ${f}-submenu > ${f}-submenu-title`]:{borderRadius:Ke},[`${f}-submenu-title::after`]:{transition:`transform ${de} ${P}`}})}}),qt(z)),{[`&-inline-collapsed ${f}-submenu-arrow,
|
|
|
&-inline ${f}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${At})`},"&::after":{transform:`rotate(45deg) translateX(-${At})`}},[`${f}-submenu-open${f}-submenu-inline > ${f}-submenu-title > ${f}-submenu-arrow`]:{transform:`translateY(-${Xe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${At})`},"&::before":{transform:`rotate(45deg) translateX(${At})`}}})},{[`${v}-layout-header`]:{[f]:{lineHeight:"inherit"}}}]};var Er=(z,v)=>(0,_e.Z)("Menu",D=>{if(v===!1)return[];const{colorBgElevated:de,colorPrimary:W,colorTextLightSolid:P,controlHeightLG:te,fontSize:Ie,darkItemColor:Te,darkDangerItemColor:Se,darkItemBg:Ge,darkSubMenuItemBg:ft,darkItemSelectedColor:Ke,darkItemSelectedBg:Xe,darkDangerItemSelectedBg:At,darkItemHoverBg:We,darkGroupTitleColor:$e,darkItemHoverColor:Bt,darkItemDisabledColor:Kt,darkDangerItemHoverColor:Mt,darkDangerItemSelectedColor:wr,darkDangerItemActiveBg:vr}=D,re=Ie/7*5,le=(0,oe.TS)(D,{menuArrowSize:re,menuHorizontalHeight:te*1.15,menuArrowOffset:`${re*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:de}),rr=(0,oe.TS)(le,{itemColor:Te,itemHoverColor:Bt,groupTitleColor:$e,itemSelectedColor:Ke,itemBg:Ge,popupBg:Ge,subMenuItemBg:ft,itemActiveBg:"transparent",itemSelectedBg:Xe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:We,itemDisabledColor:Kt,dangerItemColor:Se,dangerItemHoverColor:Mt,dangerItemSelectedColor:wr,dangerItemActiveBg:vr,dangerItemSelectedBg:At,menuSubMenuBg:ft,horizontalItemSelectedColor:P,horizontalItemSelectedBg:W});return[Ze(le),ve(le),Rt(le),qe(le,"light"),qe(rr,"dark"),N(le),(0,ae.Z)(le),(0,me.oN)(le,"slide-up"),(0,me.oN)(le,"slide-down"),(0,I._y)(le,"zoom-big")]},D=>{const{colorPrimary:de,colorError:W,colorTextDisabled:P,colorErrorBg:te,colorText:Ie,colorTextDescription:Te,colorBgContainer:Se,colorFillAlter:Ge,colorFillContent:ft,lineWidth:Ke,lineWidthBold:Xe,controlItemBgActive:At,colorBgTextHover:We,controlHeightLG:$e,lineHeight:Bt,colorBgElevated:Kt,marginXXS:Mt,padding:wr,fontSize:vr,controlHeightSM:re,fontSizeLG:le,colorTextLightSolid:rr,colorErrorHover:Ue}=D,ot=new xe.C(rr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:D.zIndexPopupBase+50,radiusItem:D.borderRadiusLG,itemBorderRadius:D.borderRadiusLG,radiusSubMenuItem:D.borderRadiusSM,subMenuItemBorderRadius:D.borderRadiusSM,colorItemText:Ie,itemColor:Ie,colorItemTextHover:Ie,itemHoverColor:Ie,colorItemTextHoverHorizontal:de,horizontalItemHoverColor:de,colorGroupTitle:Te,groupTitleColor:Te,colorItemTextSelected:de,itemSelectedColor:de,colorItemTextSelectedHorizontal:de,horizontalItemSelectedColor:de,colorItemBg:Se,itemBg:Se,colorItemBgHover:We,itemHoverBg:We,colorItemBgActive:ft,itemActiveBg:At,colorSubItemBg:Ge,subMenuItemBg:Ge,colorItemBgSelected:At,itemSelectedBg:At,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Xe,activeBarHeight:Xe,colorActiveBarBorderSize:Ke,activeBarBorderWidth:Ke,colorItemTextDisabled:P,itemDisabledColor:P,colorDangerItemText:W,dangerItemColor:W,colorDangerItemTextHover:W,dangerItemHoverColor:W,colorDangerItemTextSelected:W,dangerItemSelectedColor:W,colorDangerItemBgActive:te,dangerItemActiveBg:te,colorDangerItemBgSelected:te,dangerItemSelectedBg:te,itemMarginInline:D.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:$e,groupTitleLineHeight:Bt,collapsedWidth:$e*2,popupBg:Kt,itemMarginBlock:Mt,itemPaddingInline:wr,horizontalLineHeight:`${$e*1.15}px`,iconSize:vr,iconMarginInlineEnd:re-vr,collapsedIconSize:le,groupTitleFontSize:vr,darkItemDisabledColor:new xe.C(rr).setAlpha(.25).toRgbString(),darkItemColor:ot,darkDangerItemColor:W,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:rr,darkItemSelectedBg:de,darkDangerItemSelectedBg:W,darkItemHoverBg:"transparent",darkGroupTitleColor:ot,darkItemHoverColor:rr,darkDangerItemHoverColor:Ue,darkDangerItemSelectedColor:rr,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),Cr=function(z,v){var f={};for(var D in z)Object.prototype.hasOwnProperty.call(z,D)&&v.indexOf(D)<0&&(f[D]=z[D]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,D=Object.getOwnPropertySymbols(z);de<D.length;de++)v.indexOf(D[de])<0&&Object.prototype.propertyIsEnumerable.call(z,D[de])&&(f[D[de]]=z[D[de]]);return f},_r=(0,Fe.forwardRef)((z,v)=>{var f,D;const de=Fe.useContext(G.Z),W=de||{},{getPrefixCls:P,getPopupContainer:te,direction:Ie,menu:Te}=Fe.useContext(Y.E_),Se=P(),{prefixCls:Ge,className:ft,style:Ke,theme:Xe="light",expandIcon:At,_internalDisableMenuItemTitleTooltip:We,inlineCollapsed:$e,siderCollapsed:Bt,items:Kt,children:Mt,rootClassName:wr,mode:vr,selectable:re,onClick:le,overflowedIndicatorPopupClassName:rr}=z,Ue=Cr(z,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ot=(0,L.Z)(Ue,["collapsedWidth"]),Yr=be(Kt)||Mt;(f=W.validator)===null||f===void 0||f.call(W,{mode:vr});const St=(0,ee.useEvent)(function(){var Jn;le==null||le.apply(void 0,arguments),(Jn=W.onClick)===null||Jn===void 0||Jn.call(W)}),Vt=W.mode||vr,Zt=re!=null?re:W.selectable,nt=Fe.useMemo(()=>Bt!==void 0?Bt:$e,[$e,Bt]),ct={horizontal:{motionName:`${Se}-slide-up`},inline:(0,B.Z)(Se),other:{motionName:`${Se}-zoom-big`}},dt=P("menu",Ge||W.prefixCls),[Xt,Re]=Er(dt,!de),fn=ie()(`${dt}-${Xe}`,Te==null?void 0:Te.className,ft);let kt;if(typeof At=="function")kt=At;else if(At===null||At===!1)kt=null;else if(W.expandIcon===null||W.expandIcon===!1)kt=null;else{const Jn=At!=null?At:W.expandIcon;kt=(0,a.Tm)(Jn,{className:ie()(`${dt}-submenu-expand-icon`,(0,a.l$)(Jn)?(D=Jn.props)===null||D===void 0?void 0:D.className:"")})}const Nn=Fe.useMemo(()=>({prefixCls:dt,inlineCollapsed:nt||!1,direction:Ie,firstLevel:!0,theme:Xe,mode:Vt,disableMenuItemTitleTooltip:We}),[dt,nt,Ie,We,Xe]);return Xt(Fe.createElement(G.Z.Provider,{value:null},Fe.createElement(m.Provider,{value:Nn},Fe.createElement(we.ZP,Object.assign({getPopupContainer:te,overflowedIndicator:Fe.createElement(V.Z,null),overflowedIndicatorPopupClassName:ie()(dt,`${dt}-${Xe}`,rr),mode:Vt,selectable:Zt,onClick:St},ot,{inlineCollapsed:nt,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),Ke),className:fn,prefixCls:dt,direction:Ie,defaultMotions:ct,expandIcon:kt,ref:v,rootClassName:ie()(wr,Re)}),Yr))))});const Me=(0,Fe.forwardRef)((z,v)=>{const f=(0,Fe.useRef)(null),D=Fe.useContext(se.D);return(0,Fe.useImperativeHandle)(v,()=>({menu:f.current,focus:de=>{var W;(W=f.current)===null||W===void 0||W.focus(de)}})),Fe.createElement(_r,Object.assign({ref:f},z,D))});Me.Item=K,Me.SubMenu=H,Me.Divider=n,Me.ItemGroup=we.BW;var Tt=Me},25700:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return W}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(te,Ie){return Fe.createElement(ie.Z,(0,we.Z)({},te,{ref:Ie,icon:ke}))},O=Fe.forwardRef(Y),T=O,n=g(93343),o=g(16537),L=g(53878),p=g(92310),a=g.n(p),A=g(80962),m=g(57259),S=g(79545),K=g(68550),F=g(17928),H=g(7711),V=g(36994),ee={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},B=ee,G=g(91735),ce=function(P){(0,F.Z)(Ie,P);var te=(0,H.Z)(Ie);function Ie(){var Te;(0,S.Z)(this,Ie);for(var Se=arguments.length,Ge=new Array(Se),ft=0;ft<Se;ft++)Ge[ft]=arguments[ft];return Te=te.call.apply(te,[this].concat(Ge)),Te.state={goInputText:""},Te.getValidValue=function(){var Ke=Te.state.goInputText;return!Ke||Number.isNaN(Ke)?void 0:Number(Ke)},Te.buildOptionText=function(Ke){return"".concat(Ke," ").concat(Te.props.locale.items_per_page)},Te.changeSize=function(Ke){Te.props.changeSize(Number(Ke))},Te.handleChange=function(Ke){Te.setState({goInputText:Ke.target.value})},Te.handleBlur=function(Ke){var Xe=Te.props,At=Xe.goButton,We=Xe.quickGo,$e=Xe.rootPrefixCls,Bt=Te.state.goInputText;At||Bt===""||(Te.setState({goInputText:""}),!(Ke.relatedTarget&&(Ke.relatedTarget.className.indexOf("".concat($e,"-item-link"))>=0||Ke.relatedTarget.className.indexOf("".concat($e,"-item"))>=0))&&We(Te.getValidValue()))},Te.go=function(Ke){var Xe=Te.state.goInputText;Xe!==""&&(Ke.keyCode===B.ENTER||Ke.type==="click")&&(Te.setState({goInputText:""}),Te.props.quickGo(Te.getValidValue()))},Te}return(0,K.Z)(Ie,[{key:"getPageSizeOptions",value:function(){var Se=this.props,Ge=Se.pageSize,ft=Se.pageSizeOptions;return ft.some(function(Ke){return Ke.toString()===Ge.toString()})?ft:ft.concat([Ge.toString()]).sort(function(Ke,Xe){var At=Number.isNaN(Number(Ke))?0:Number(Ke),We=Number.isNaN(Number(Xe))?0:Number(Xe);return At-We})}},{key:"render",value:function(){var Se=this,Ge=this.props,ft=Ge.pageSize,Ke=Ge.locale,Xe=Ge.rootPrefixCls,At=Ge.changeSize,We=Ge.quickGo,$e=Ge.goButton,Bt=Ge.selectComponentClass,Kt=Ge.buildOptionText,Mt=Ge.selectPrefixCls,wr=Ge.disabled,vr=this.state.goInputText,re="".concat(Xe,"-options"),le=Bt,rr=null,Ue=null,ot=null;if(!At&&!We)return null;var Yr=this.getPageSizeOptions();if(At&&le){var St=Yr.map(function(Vt,Zt){return Fe.createElement(le.Option,{key:Zt,value:Vt.toString()},(Kt||Se.buildOptionText)(Vt))});rr=Fe.createElement(le,{disabled:wr,prefixCls:Mt,showSearch:!1,className:"".concat(re,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(ft||Yr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Zt){return Zt.parentNode},"aria-label":Ke.page_size,defaultOpen:!1},St)}return We&&($e&&(ot=typeof $e=="boolean"?Fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:wr,className:"".concat(re,"-quick-jumper-button")},Ke.jump_to_confirm):Fe.createElement("span",{onClick:this.go,onKeyUp:this.go},$e)),Ue=Fe.createElement("div",{className:"".concat(re,"-quick-jumper")},Ke.jump_to,Fe.createElement("input",{disabled:wr,type:"text",value:vr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ke.page}),Ke.page,ot)),Fe.createElement("li",{className:"".concat(re)},rr,Ue)}}]),Ie}(Fe.Component);ce.defaultProps={pageSizeOptions:["10","20","50","100"]};var q=ce,be=function(te){var Ie,Te=te.rootPrefixCls,Se=te.page,Ge=te.active,ft=te.className,Ke=te.showTitle,Xe=te.onClick,At=te.onKeyPress,We=te.itemRender,$e="".concat(Te,"-item"),Bt=a()($e,"".concat($e,"-").concat(Se),(Ie={},(0,A.Z)(Ie,"".concat($e,"-active"),Ge),(0,A.Z)(Ie,"".concat($e,"-disabled"),!Se),(0,A.Z)(Ie,te.className,ft),Ie)),Kt=function(){Xe(Se)},Mt=function(re){At(re,Xe,Se)},wr=We(Se,"page",Fe.createElement("a",{rel:"nofollow"},Se));return wr?Fe.createElement("li",{title:Ke?Se.toString():null,className:Bt,onClick:Kt,onKeyPress:Mt,tabIndex:0},wr):null},xe=be;function Le(){}function ae(P){var te=Number(P);return typeof te=="number"&&!Number.isNaN(te)&&isFinite(te)&&Math.floor(te)===te}var me=function(te,Ie,Te){return Te};function I(P,te,Ie){var Te=typeof P=="undefined"?te.pageSize:P;return Math.floor((Ie.total-1)/Te)+1}var _e=function(P){(0,F.Z)(Ie,P);var te=(0,H.Z)(Ie);function Ie(Te){var Se;(0,S.Z)(this,Ie),Se=te.call(this,Te),Se.paginationNode=Fe.createRef(),Se.getJumpPrevPage=function(){return Math.max(1,Se.state.current-(Se.props.showLessItems?3:5))},Se.getJumpNextPage=function(){return Math.min(I(void 0,Se.state,Se.props),Se.state.current+(Se.props.showLessItems?3:5))},Se.getItemIcon=function(At,We){var $e=Se.props.prefixCls,Bt=At||Fe.createElement("button",{type:"button","aria-label":We,className:"".concat($e,"-item-link")});return typeof At=="function"&&(Bt=Fe.createElement(At,(0,m.Z)({},Se.props))),Bt},Se.isValid=function(At){var We=Se.props.total;return ae(At)&&At!==Se.state.current&&ae(We)&&We>0},Se.shouldDisplayQuickJumper=function(){var At=Se.props,We=At.showQuickJumper,$e=At.total,Bt=Se.state.pageSize;return $e<=Bt?!1:We},Se.handleKeyDown=function(At){(At.keyCode===B.ARROW_UP||At.keyCode===B.ARROW_DOWN)&&At.preventDefault()},Se.handleKeyUp=function(At){var We=Se.getValidValue(At),$e=Se.state.currentInputValue;We!==$e&&Se.setState({currentInputValue:We}),At.keyCode===B.ENTER?Se.handleChange(We):At.keyCode===B.ARROW_UP?Se.handleChange(We-1):At.keyCode===B.ARROW_DOWN&&Se.handleChange(We+1)},Se.handleBlur=function(At){var We=Se.getValidValue(At);Se.handleChange(We)},Se.changePageSize=function(At){var We=Se.state.current,$e=I(At,Se.state,Se.props);We=We>$e?$e:We,$e===0&&(We=Se.state.current),typeof At=="number"&&("pageSize"in Se.props||Se.setState({pageSize:At}),"current"in Se.props||Se.setState({current:We,currentInputValue:We})),Se.props.onShowSizeChange(We,At),"onChange"in Se.props&&Se.props.onChange&&Se.props.onChange(We,At)},Se.handleChange=function(At){var We=Se.props,$e=We.disabled,Bt=We.onChange,Kt=Se.state,Mt=Kt.pageSize,wr=Kt.current,vr=Kt.currentInputValue;if(Se.isValid(At)&&!$e){var re=I(void 0,Se.state,Se.props),le=At;return At>re?le=re:At<1&&(le=1),"current"in Se.props||Se.setState({current:le}),le!==vr&&Se.setState({currentInputValue:le}),Bt(le,Mt),le}return wr},Se.prev=function(){Se.hasPrev()&&Se.handleChange(Se.state.current-1)},Se.next=function(){Se.hasNext()&&Se.handleChange(Se.state.current+1)},Se.jumpPrev=function(){Se.handleChange(Se.getJumpPrevPage())},Se.jumpNext=function(){Se.handleChange(Se.getJumpNextPage())},Se.hasPrev=function(){return Se.state.current>1},Se.hasNext=function(){return Se.state.current<I(void 0,Se.state,Se.props)},Se.runIfEnter=function(At,We){if(At.key==="Enter"||At.charCode===13){for(var $e=arguments.length,Bt=new Array($e>2?$e-2:0),Kt=2;Kt<$e;Kt++)Bt[Kt-2]=arguments[Kt];We.apply(void 0,Bt)}},Se.runIfEnterPrev=function(At){Se.runIfEnter(At,Se.prev)},Se.runIfEnterNext=function(At){Se.runIfEnter(At,Se.next)},Se.runIfEnterJumpPrev=function(At){Se.runIfEnter(At,Se.jumpPrev)},Se.runIfEnterJumpNext=function(At){Se.runIfEnter(At,Se.jumpNext)},Se.handleGoTO=function(At){(At.keyCode===B.ENTER||At.type==="click")&&Se.handleChange(Se.state.currentInputValue)},Se.renderPrev=function(At){var We=Se.props,$e=We.prevIcon,Bt=We.itemRender,Kt=Bt(At,"prev",Se.getItemIcon($e,"prev page")),Mt=!Se.hasPrev();return(0,Fe.isValidElement)(Kt)?(0,Fe.cloneElement)(Kt,{disabled:Mt}):Kt},Se.renderNext=function(At){var We=Se.props,$e=We.nextIcon,Bt=We.itemRender,Kt=Bt(At,"next",Se.getItemIcon($e,"next page")),Mt=!Se.hasNext();return(0,Fe.isValidElement)(Kt)?(0,Fe.cloneElement)(Kt,{disabled:Mt}):Kt};var Ge=Te.onChange!==Le,ft="current"in Te;ft&&!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 Ke=Te.defaultCurrent;"current"in Te&&(Ke=Te.current);var Xe=Te.defaultPageSize;return"pageSize"in Te&&(Xe=Te.pageSize),Ke=Math.min(Ke,I(Xe,void 0,Te)),Se.state={current:Ke,currentInputValue:Ke,pageSize:Xe},Se}return(0,K.Z)(Ie,[{key:"componentDidUpdate",value:function(Se,Ge){var ft=this.props.prefixCls;if(Ge.current!==this.state.current&&this.paginationNode.current){var Ke=this.paginationNode.current.querySelector(".".concat(ft,"-item-").concat(Ge.current));if(Ke&&document.activeElement===Ke){var Xe;Ke==null||(Xe=Ke.blur)===null||Xe===void 0||Xe.call(Ke)}}}},{key:"getValidValue",value:function(Se){var Ge=Se.target.value,ft=I(void 0,this.state,this.props),Ke=this.state.currentInputValue,Xe;return Ge===""?Xe=Ge:Number.isNaN(Number(Ge))?Xe=Ke:Ge>=ft?Xe=ft:Xe=Number(Ge),Xe}},{key:"getShowSizeChanger",value:function(){var Se=this.props,Ge=Se.showSizeChanger,ft=Se.total,Ke=Se.totalBoundaryShowSizeChanger;return typeof Ge!="undefined"?Ge:ft>Ke}},{key:"render",value:function(){var Se=this.props,Ge=Se.prefixCls,ft=Se.className,Ke=Se.style,Xe=Se.disabled,At=Se.hideOnSinglePage,We=Se.total,$e=Se.locale,Bt=Se.showQuickJumper,Kt=Se.showLessItems,Mt=Se.showTitle,wr=Se.showTotal,vr=Se.simple,re=Se.itemRender,le=Se.showPrevNextJumpers,rr=Se.jumpPrevIcon,Ue=Se.jumpNextIcon,ot=Se.selectComponentClass,Yr=Se.selectPrefixCls,St=Se.pageSizeOptions,Vt=this.state,Zt=Vt.current,nt=Vt.pageSize,ct=Vt.currentInputValue;if(At===!0&&We<=nt)return null;var dt=I(void 0,this.state,this.props),Xt=[],Re=null,fn=null,kt=null,Nn=null,Jn=null,vi=Bt&&Bt.goButton,Fi=Kt?1:2,Mn=Zt-1>0?Zt-1:0,Hn=Zt+1<dt?Zt+1:dt,Yt=(0,V.Z)(this.props,{aria:!0,data:!0}),kr=wr&&Fe.createElement("li",{className:"".concat(Ge,"-total-text")},wr(We,[We===0?0:(Zt-1)*nt+1,Zt*nt>We?We:Zt*nt]));if(vr){vi&&(typeof vi=="boolean"?Jn=Fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},$e.jump_to_confirm):Jn=Fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},vi),Jn=Fe.createElement("li",{title:Mt?"".concat($e.jump_to).concat(Zt,"/").concat(dt):null,className:"".concat(Ge,"-simple-pager")},Jn));var tn=this.renderPrev(Mn);return Fe.createElement("ul",(0,we.Z)({className:a()(Ge,"".concat(Ge,"-simple"),(0,A.Z)({},"".concat(Ge,"-disabled"),Xe),ft),style:Ke,ref:this.paginationNode},Yt),kr,tn?Fe.createElement("li",{title:Mt?$e.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Ge,"-prev"),(0,A.Z)({},"".concat(Ge,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},tn):null,Fe.createElement("li",{title:Mt?"".concat(Zt,"/").concat(dt):null,className:"".concat(Ge,"-simple-pager")},Fe.createElement("input",{type:"text",value:ct,disabled:Xe,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Fe.createElement("span",{className:"".concat(Ge,"-slash")},"/"),dt),Fe.createElement("li",{title:Mt?$e.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(Ge,"-next"),(0,A.Z)({},"".concat(Ge,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Hn)),Jn)}if(dt<=3+Fi*2){var Nt={locale:$e,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Mt,itemRender:re};dt||Xt.push(Fe.createElement(xe,(0,we.Z)({},Nt,{key:"noPager",page:1,className:"".concat(Ge,"-item-disabled")})));for(var _t=1;_t<=dt;_t+=1){var Ir=Zt===_t;Xt.push(Fe.createElement(xe,(0,we.Z)({},Nt,{key:_t,page:_t,active:Ir})))}}else{var Dr=Kt?$e.prev_3:$e.prev_5,In=Kt?$e.next_3:$e.next_5,qr=re(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(rr,"prev page")),Sn=re(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ue,"next page"));le&&(Re=qr?Fe.createElement("li",{title:Mt?Dr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(Ge,"-jump-prev"),(0,A.Z)({},"".concat(Ge,"-jump-prev-custom-icon"),!!rr))},qr):null,fn=Sn?Fe.createElement("li",{title:Mt?In:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(Ge,"-jump-next"),(0,A.Z)({},"".concat(Ge,"-jump-next-custom-icon"),!!Ue))},Sn):null),Nn=Fe.createElement(xe,{locale:$e,last:!0,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:dt,page:dt,active:!1,showTitle:Mt,itemRender:re}),kt=Fe.createElement(xe,{locale:$e,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Mt,itemRender:re});var hn=Math.max(1,Zt-Fi),$n=Math.min(Zt+Fi,dt);Zt-1<=Fi&&($n=1+Fi*2),dt-Zt<=Fi&&(hn=dt-Fi*2);for(var ri=hn;ri<=$n;ri+=1){var Hr=Zt===ri;Xt.push(Fe.createElement(xe,{locale:$e,rootPrefixCls:Ge,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ri,page:ri,active:Hr,showTitle:Mt,itemRender:re}))}Zt-1>=Fi*2&&Zt!==3&&(Xt[0]=(0,Fe.cloneElement)(Xt[0],{className:"".concat(Ge,"-item-after-jump-prev")}),Xt.unshift(Re)),dt-Zt>=Fi*2&&Zt!==dt-2&&(Xt[Xt.length-1]=(0,Fe.cloneElement)(Xt[Xt.length-1],{className:"".concat(Ge,"-item-before-jump-next")}),Xt.push(fn)),hn!==1&&Xt.unshift(kt),$n!==dt&&Xt.push(Nn)}var zr=!this.hasPrev()||!dt,Tn=!this.hasNext()||!dt,Bn=this.renderPrev(Mn),Qn=this.renderNext(Hn);return Fe.createElement("ul",(0,we.Z)({className:a()(Ge,ft,(0,A.Z)({},"".concat(Ge,"-disabled"),Xe)),style:Ke,ref:this.paginationNode},Yt),kr,Bn?Fe.createElement("li",{title:Mt?$e.prev_page:null,onClick:this.prev,tabIndex:zr?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Ge,"-prev"),(0,A.Z)({},"".concat(Ge,"-disabled"),zr)),"aria-disabled":zr},Bn):null,Xt,Qn?Fe.createElement("li",{title:Mt?$e.next_page:null,onClick:this.next,tabIndex:Tn?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(Ge,"-next"),(0,A.Z)({},"".concat(Ge,"-disabled"),Tn)),"aria-disabled":Tn},Qn):null,Fe.createElement(q,{disabled:Xe,locale:$e,rootPrefixCls:Ge,selectComponentClass:ot,selectPrefixCls:Yr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Zt,pageSize:nt,pageSizeOptions:St,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:vi}))}}],[{key:"getDerivedStateFromProps",value:function(Se,Ge){var ft={};if("current"in Se&&(ft.current=Se.current,Se.current!==Ge.current&&(ft.currentInputValue=ft.current)),"pageSize"in Se&&Se.pageSize!==Ge.pageSize){var Ke=Ge.current,Xe=I(Se.pageSize,Ge,Se);Ke=Ke>Xe?Xe:Ke,"current"in Se||(ft.current=Ke,ft.currentInputValue=Ke),ft.pageSize=Se.pageSize}return ft}}]),Ie}(Fe.Component);_e.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:me,totalBoundaryShowSizeChanger:50};var oe=_e,he=g(22075),ve=g(36355),_=g(19716),N=g(8628),X=g(9763),pe=g(57809);const qe=P=>Fe.createElement(pe.default,Object.assign({},P,{showSearch:!0,size:"small"})),at=P=>Fe.createElement(pe.default,Object.assign({},P,{showSearch:!0,size:"middle"}));qe.Option=pe.default.Option,at.Option=pe.default.Option;var rt=g(9937),Rt=g(17313),lr=g(83116),qt=g(37613);const Ze=P=>{const{componentCls:te}=P;return{[`${te}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${te}-item-link`]:{color:P.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${te}-item-link`]:{color:P.colorTextDisabled,cursor:"not-allowed"}}},[`&${te}-disabled`]:{cursor:"not-allowed",[`${te}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:P.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:P.colorBorder,backgroundColor:P.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:P.itemActiveBgDisabled},a:{color:P.itemActiveColorDisabled}}},[`${te}-item-link`]:{color:P.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${te}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${te}-simple-pager`]:{color:P.colorTextDisabled},[`${te}-jump-prev, ${te}-jump-next`]:{[`${te}-item-link-icon`]:{opacity:0},[`${te}-item-ellipsis`]:{opacity:1}}},[`&${te}-simple`]:{[`${te}-prev, ${te}-next`]:{[`&${te}-disabled ${te}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Er=P=>{const{componentCls:te}=P;return{[`&${te}-mini ${te}-total-text, &${te}-mini ${te}-simple-pager`]:{height:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`},[`&${te}-mini ${te}-item`]:{minWidth:P.itemSizeSM,height:P.itemSizeSM,margin:0,lineHeight:`${P.itemSizeSM-2}px`},[`&${te}-mini:not(${te}-disabled) ${te}-item:not(${te}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:P.colorBgTextHover},"&:active":{backgroundColor:P.colorBgTextActive}},[`&${te}-mini ${te}-prev, &${te}-mini ${te}-next`]:{minWidth:P.itemSizeSM,height:P.itemSizeSM,margin:0,lineHeight:`${P.itemSizeSM}px`},[`&${te}-mini:not(${te}-disabled)`]:{[`${te}-prev, ${te}-next`]:{[`&:hover ${te}-item-link`]:{backgroundColor:P.colorBgTextHover},[`&:active ${te}-item-link`]:{backgroundColor:P.colorBgTextActive},[`&${te}-disabled:hover ${te}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${te}-mini ${te}-prev ${te}-item-link,
|
|
|
&${te}-mini ${te}-next ${te}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`}},[`&${te}-mini ${te}-jump-prev, &${te}-mini ${te}-jump-next`]:{height:P.itemSizeSM,marginInlineEnd:0,lineHeight:`${P.itemSizeSM}px`},[`&${te}-mini ${te}-options`]:{marginInlineStart:P.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:P.miniOptionsSizeChangerTop},"&-quick-jumper":{height:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,rt.x0)(P)),{width:P.paginationMiniQuickJumperInputWidth,height:P.controlHeightSM})}}}},Cr=P=>{const{componentCls:te}=P;return{[`
|
|
|
&${te}-simple ${te}-prev,
|
|
|
&${te}-simple ${te}-next
|
|
|
`]:{height:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`,verticalAlign:"top",[`${te}-item-link`]:{height:P.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:P.colorBgTextHover},"&:active":{backgroundColor:P.colorBgTextActive},"&::after":{height:P.itemSizeSM,lineHeight:`${P.itemSizeSM}px`}}},[`&${te}-simple ${te}-simple-pager`]:{display:"inline-block",height:P.itemSizeSM,marginInlineEnd:P.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:P.marginXS,padding:`0 ${P.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:P.itemInputBg,border:`${P.lineWidth}px ${P.lineType} ${P.colorBorder}`,borderRadius:P.borderRadius,outline:"none",transition:`border-color ${P.motionDurationMid}`,color:"inherit","&:hover":{borderColor:P.colorPrimary},"&:focus":{borderColor:P.colorPrimaryHover,boxShadow:`${P.inputOutlineOffset}px 0 ${P.controlOutlineWidth}px ${P.controlOutline}`},"&[disabled]":{color:P.colorTextDisabled,backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder,cursor:"not-allowed"}}}}},Kr=P=>{const{componentCls:te}=P;return{[`${te}-jump-prev, ${te}-jump-next`]:{outline:0,[`${te}-item-container`]:{position:"relative",[`${te}-item-link-icon`]:{color:P.colorPrimary,fontSize:P.fontSizeSM,opacity:0,transition:`all ${P.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${te}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:P.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:P.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:P.paginationEllipsisTextIndent,opacity:1,transition:`all ${P.motionDurationMid}`}},"&:hover":{[`${te}-item-link-icon`]:{opacity:1},[`${te}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${te}-prev,
|
|
|
${te}-jump-prev,
|
|
|
${te}-jump-next
|
|
|
`]:{marginInlineEnd:P.marginXS},[`
|
|
|
${te}-prev,
|
|
|
${te}-next,
|
|
|
${te}-jump-prev,
|
|
|
${te}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:P.itemSize,height:P.itemSize,color:P.colorText,fontFamily:P.fontFamily,lineHeight:`${P.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:P.borderRadius,cursor:"pointer",transition:`all ${P.motionDurationMid}`},[`${te}-prev, ${te}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:P.colorText,cursor:"pointer",userSelect:"none"},[`${te}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:P.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${P.lineWidth}px ${P.lineType} transparent`,borderRadius:P.borderRadius,outline:"none",transition:`all ${P.motionDurationMid}`},[`&:hover ${te}-item-link`]:{backgroundColor:P.colorBgTextHover},[`&:active ${te}-item-link`]:{backgroundColor:P.colorBgTextActive},[`&${te}-disabled:hover`]:{[`${te}-item-link`]:{backgroundColor:"transparent"}}},[`${te}-slash`]:{marginInlineEnd:P.paginationSlashMarginInlineEnd,marginInlineStart:P.paginationSlashMarginInlineStart},[`${te}-options`]:{display:"inline-block",marginInlineStart:P.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:P.controlHeight,marginInlineStart:P.marginXS,lineHeight:`${P.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,rt.ik)(P)),{width:P.controlHeightLG*1.25,height:P.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:P.marginXS,marginInlineEnd:P.marginXS})}}}},_r=P=>{const{componentCls:te}=P;return{[`${te}-item`]:{display:"inline-block",minWidth:P.itemSize,height:P.itemSize,marginInlineEnd:P.marginXS,fontFamily:P.fontFamily,lineHeight:`${P.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${P.lineWidth}px ${P.lineType} transparent`,borderRadius:P.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${P.paginationItemPaddingInline}px`,color:P.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${te}-item-active)`]:{"&:hover":{transition:`all ${P.motionDurationMid}`,backgroundColor:P.colorBgTextHover},"&:active":{backgroundColor:P.colorBgTextActive}},"&-active":{fontWeight:P.fontWeightStrong,backgroundColor:P.itemActiveBg,borderColor:P.colorPrimary,a:{color:P.colorPrimary},"&:hover":{borderColor:P.colorPrimaryHover},"&:hover a":{color:P.colorPrimaryHover}}}}},Me=P=>{const{componentCls:te}=P;return{[te]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(P)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${te}-total-text`]:{display:"inline-block",height:P.itemSize,marginInlineEnd:P.marginXS,lineHeight:`${P.itemSize-2}px`,verticalAlign:"middle"}}),_r(P)),Kr(P)),Cr(P)),Er(P)),Ze(P)),{[`@media only screen and (max-width: ${P.screenLG}px)`]:{[`${te}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${P.screenSM}px)`]:{[`${te}-options`]:{display:"none"}}}),[`&${P.componentCls}-rtl`]:{direction:"rtl"}}},Tt=P=>{const{componentCls:te}=P;return{[`${te}${te}-disabled:not(${te}-mini)`]:{"&, &:hover":{[`${te}-item-link`]:{borderColor:P.colorBorder}},"&:focus-visible":{[`${te}-item-link`]:{borderColor:P.colorBorder}},[`${te}-item, ${te}-item-link`]:{backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder,[`&:hover:not(${te}-item-active)`]:{backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder,a:{color:P.colorTextDisabled}},[`&${te}-item-active`]:{backgroundColor:P.itemActiveBgDisabled}},[`${te}-prev, ${te}-next`]:{"&:hover button":{backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder,color:P.colorTextDisabled},[`${te}-item-link`]:{backgroundColor:P.colorBgContainerDisabled,borderColor:P.colorBorder}}},[`${te}:not(${te}-mini)`]:{[`${te}-prev, ${te}-next`]:{"&:hover button":{borderColor:P.colorPrimaryHover,backgroundColor:P.itemBg},[`${te}-item-link`]:{backgroundColor:P.itemLinkBg,borderColor:P.colorBorder},[`&:hover ${te}-item-link`]:{borderColor:P.colorPrimary,backgroundColor:P.itemBg,color:P.colorPrimary},[`&${te}-disabled`]:{[`${te}-item-link`]:{borderColor:P.colorBorder,color:P.colorTextDisabled}}},[`${te}-item`]:{backgroundColor:P.itemBg,border:`${P.lineWidth}px ${P.lineType} ${P.colorBorder}`,[`&:hover:not(${te}-item-active)`]:{borderColor:P.colorPrimary,backgroundColor:P.itemBg,a:{color:P.colorPrimary}},"&-active":{borderColor:P.colorPrimary}}}}},z=P=>{const{componentCls:te}=P;return{[`${te}:not(${te}-disabled)`]:{[`${te}-item`]:Object.assign({},(0,Rt.Qy)(P)),[`${te}-jump-prev, ${te}-jump-next`]:{"&:focus-visible":Object.assign({[`${te}-item-link-icon`]:{opacity:1},[`${te}-item-ellipsis`]:{opacity:0}},(0,Rt.oN)(P))},[`${te}-prev, ${te}-next`]:{[`&:focus-visible ${te}-item-link`]:Object.assign({},(0,Rt.oN)(P))}}}};var v=(0,lr.Z)("Pagination",P=>{const te=(0,qt.TS)(P,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:P.marginXXS/2,paginationMiniQuickJumperInputWidth:P.controlHeightLG*1.1,paginationItemPaddingInline:P.marginXXS*1.5,paginationEllipsisLetterSpacing:P.marginXXS/2,paginationSlashMarginInlineStart:P.marginXXS,paginationSlashMarginInlineEnd:P.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,rt.e5)(P),(0,rt.TM)(P));return[Me(te),z(te),P.wireframe&&Tt(te)]},P=>({itemBg:P.colorBgContainer,itemSize:P.controlHeight,itemSizeSM:P.controlHeightSM,itemActiveBg:P.colorBgContainer,itemLinkBg:P.colorBgContainer,itemActiveColorDisabled:P.colorTextDisabled,itemActiveBgDisabled:P.controlItemBgActiveDisabled,itemInputBg:P.colorBgContainer,miniOptionsSizeChangerTop:0})),f=function(P,te){var Ie={};for(var Te in P)Object.prototype.hasOwnProperty.call(P,Te)&&te.indexOf(Te)<0&&(Ie[Te]=P[Te]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Te=Object.getOwnPropertySymbols(P);Se<Te.length;Se++)te.indexOf(Te[Se])<0&&Object.prototype.propertyIsEnumerable.call(P,Te[Se])&&(Ie[Te[Se]]=P[Te[Se]]);return Ie},de=P=>{const{prefixCls:te,selectPrefixCls:Ie,className:Te,rootClassName:Se,style:Ge,size:ft,locale:Ke,selectComponentClass:Xe,responsive:At,showSizeChanger:We}=P,$e=f(P,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Bt}=(0,N.Z)(At),{getPrefixCls:Kt,direction:Mt,pagination:wr={}}=Fe.useContext(ve.E_),vr=Kt("pagination",te),[re,le]=v(vr),rr=We!=null?We:wr.showSizeChanger,Ue=Fe.useMemo(()=>{const dt=Fe.createElement("span",{className:`${vr}-item-ellipsis`},"\u2022\u2022\u2022"),Xt=Fe.createElement("button",{className:`${vr}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?Fe.createElement(L.Z,null):Fe.createElement(o.Z,null)),Re=Fe.createElement("button",{className:`${vr}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?Fe.createElement(o.Z,null):Fe.createElement(L.Z,null)),fn=Fe.createElement("a",{className:`${vr}-item-link`},Fe.createElement("div",{className:`${vr}-item-container`},Mt==="rtl"?Fe.createElement(n.Z,{className:`${vr}-item-link-icon`}):Fe.createElement(T,{className:`${vr}-item-link-icon`}),dt)),kt=Fe.createElement("a",{className:`${vr}-item-link`},Fe.createElement("div",{className:`${vr}-item-container`},Mt==="rtl"?Fe.createElement(T,{className:`${vr}-item-link-icon`}):Fe.createElement(n.Z,{className:`${vr}-item-link-icon`}),dt));return{prevIcon:Xt,nextIcon:Re,jumpPrevIcon:fn,jumpNextIcon:kt}},[Mt,vr]),[ot]=(0,X.Z)("Pagination",he.Z),Yr=Object.assign(Object.assign({},ot),Ke),St=(0,_.Z)(ft),Vt=St==="small"||!!(Bt&&!St&&At),Zt=Kt("select",Ie),nt=a()({[`${vr}-mini`]:Vt,[`${vr}-rtl`]:Mt==="rtl"},wr==null?void 0:wr.className,Te,Se,le),ct=Object.assign(Object.assign({},wr==null?void 0:wr.style),Ge);return re(Fe.createElement(oe,Object.assign({},Ue,$e,{style:ct,prefixCls:vr,selectPrefixCls:Zt,className:nt,selectComponentClass:Xe||(Vt?qe:at),locale:Yr,showSizeChanger:rr})))},W=de},5112:function(yn,Gt,g){"use strict";g.d(Gt,{ZP:function(){return N}});var we=g(92310),Fe=g.n(we),se=g(35788),ke=g(36994),ie=g(59301),Y=g(36355),O=g(19716);const T=ie.createContext(null),n=T.Provider;var o=T;const L=ie.createContext(null),p=L.Provider;var a=g(5630),A=g(20475),m=g(1684),S=g(32441),K=g(17313),F=g(83116),H=g(37613);const V=X=>{const{componentCls:pe,antCls:qe}=X,at=`${pe}-group`;return{[at]:Object.assign(Object.assign({},(0,K.Wf)(X)),{display:"inline-block",fontSize:0,[`&${at}-rtl`]:{direction:"rtl"},[`${qe}-badge ${qe}-badge-count`]:{zIndex:1},[`> ${qe}-badge:not(:first-child) > ${qe}-button-wrapper`]:{borderInlineStart:"none"}})}},ee=X=>{const{componentCls:pe,wrapperMarginInlineEnd:qe,colorPrimary:at,radioSize:rt,motionDurationSlow:Rt,motionDurationMid:lr,motionEaseInOutCirc:qt,colorBgContainer:Ze,colorBorder:Er,lineWidth:Cr,dotSize:Kr,colorBgContainerDisabled:_r,colorTextDisabled:Me,paddingXS:Tt,dotColorDisabled:z,lineType:v,radioDotDisabledSize:f,wireframe:D,colorWhite:de}=X,W=`${pe}-inner`;return{[`${pe}-wrapper`]:Object.assign(Object.assign({},(0,K.Wf)(X)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:qe,cursor:"pointer",[`&${pe}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:X.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${pe}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Cr}px ${v} ${at}`,borderRadius:"50%",visibility:"hidden",content:'""'},[pe]:Object.assign(Object.assign({},(0,K.Wf)(X)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${pe}-wrapper:hover &,
|
|
|
&:hover ${W}`]:{borderColor:at},[`${pe}-input:focus-visible + ${W}`]:Object.assign({},(0,K.oN)(X)),[`${pe}:hover::after, ${pe}-wrapper:hover &::after`]:{visibility:"visible"},[`${pe}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:rt,height:rt,marginBlockStart:rt/-2,marginInlineStart:rt/-2,backgroundColor:D?at:de,borderBlockStart:0,borderInlineStart:0,borderRadius:rt,transform:"scale(0)",opacity:0,transition:`all ${Rt} ${qt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:rt,height:rt,backgroundColor:Ze,borderColor:Er,borderStyle:"solid",borderWidth:Cr,borderRadius:"50%",transition:`all ${lr}`},[`${pe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${pe}-checked`]:{[W]:{borderColor:at,backgroundColor:D?Ze:at,"&::after":{transform:`scale(${Kr/rt})`,opacity:1,transition:`all ${Rt} ${qt}`}}},[`${pe}-disabled`]:{cursor:"not-allowed",[W]:{backgroundColor:_r,borderColor:Er,cursor:"not-allowed","&::after":{backgroundColor:z}},[`${pe}-input`]:{cursor:"not-allowed"},[`${pe}-disabled + span`]:{color:Me,cursor:"not-allowed"},[`&${pe}-checked`]:{[W]:{"&::after":{transform:`scale(${f/rt})`}}}},[`span${pe} + *`]:{paddingInlineStart:Tt,paddingInlineEnd:Tt}})}},B=X=>{const{buttonColor:pe,controlHeight:qe,componentCls:at,lineWidth:rt,lineType:Rt,colorBorder:lr,motionDurationSlow:qt,motionDurationMid:Ze,buttonPaddingInline:Er,fontSize:Cr,buttonBg:Kr,fontSizeLG:_r,controlHeightLG:Me,controlHeightSM:Tt,paddingXS:z,borderRadius:v,borderRadiusSM:f,borderRadiusLG:D,buttonCheckedBg:de,buttonSolidCheckedColor:W,colorTextDisabled:P,colorBgContainerDisabled:te,buttonCheckedBgDisabled:Ie,buttonCheckedColorDisabled:Te,colorPrimary:Se,colorPrimaryHover:Ge,colorPrimaryActive:ft,buttonSolidCheckedBg:Ke,buttonSolidCheckedHoverBg:Xe,buttonSolidCheckedActiveBg:At}=X;return{[`${at}-button-wrapper`]:{position:"relative",display:"inline-block",height:qe,margin:0,paddingInline:Er,paddingBlock:0,color:pe,fontSize:Cr,lineHeight:`${qe-rt*2}px`,background:Kr,border:`${rt}px ${Rt} ${lr}`,borderBlockStartWidth:rt+.02,borderInlineStartWidth:0,borderInlineEndWidth:rt,cursor:"pointer",transition:[`color ${Ze}`,`background ${Ze}`,`box-shadow ${Ze}`].join(","),a:{color:pe},[`> ${at}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-rt,insetInlineStart:-rt,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:rt,paddingInline:0,backgroundColor:lr,transition:`background-color ${qt}`,content:'""'}},"&:first-child":{borderInlineStart:`${rt}px ${Rt} ${lr}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${at}-group-large &`]:{height:Me,fontSize:_r,lineHeight:`${Me-rt*2}px`,"&:first-child":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child":{borderStartEndRadius:D,borderEndEndRadius:D}},[`${at}-group-small &`]:{height:Tt,paddingInline:z-rt,paddingBlock:0,lineHeight:`${Tt-rt*2}px`,"&:first-child":{borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f}},"&:hover":{position:"relative",color:Se},"&:has(:focus-visible)":Object.assign({},(0,K.oN)(X)),[`${at}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${at}-button-wrapper-disabled)`]:{zIndex:1,color:Se,background:de,borderColor:Se,"&::before":{backgroundColor:Se},"&:first-child":{borderColor:Se},"&:hover":{color:Ge,borderColor:Ge,"&::before":{backgroundColor:Ge}},"&:active":{color:ft,borderColor:ft,"&::before":{backgroundColor:ft}}},[`${at}-group-solid &-checked:not(${at}-button-wrapper-disabled)`]:{color:W,background:Ke,borderColor:Ke,"&:hover":{color:W,background:Xe,borderColor:Xe},"&:active":{color:W,background:At,borderColor:At}},"&-disabled":{color:P,backgroundColor:te,borderColor:lr,cursor:"not-allowed","&:first-child, &:hover":{color:P,backgroundColor:te,borderColor:lr}},[`&-disabled${at}-button-wrapper-checked`]:{color:Te,backgroundColor:Ie,borderColor:lr,boxShadow:"none"}}}},G=X=>X-4*2;var ce=(0,F.Z)("Radio",X=>{const{controlOutline:pe,controlOutlineWidth:qe,radioSize:at}=X,rt=`0 0 0 ${qe}px ${pe}`,Rt=rt,lr=G(at),qt=(0,H.TS)(X,{radioDotDisabledSize:lr,radioFocusShadow:rt,radioButtonFocusShadow:Rt});return[V(qt),ee(qt),B(qt)]},X=>{const{wireframe:pe,padding:qe,marginXS:at,lineWidth:rt,fontSizeLG:Rt,colorText:lr,colorBgContainer:qt,colorTextDisabled:Ze,controlItemBgActiveDisabled:Er,colorTextLightSolid:Cr,colorPrimary:Kr,colorPrimaryHover:_r,colorPrimaryActive:Me}=X,Tt=4,z=Rt,v=pe?G(z):z-(Tt+rt)*2;return{radioSize:z,dotSize:v,dotColorDisabled:Ze,buttonSolidCheckedColor:Cr,buttonSolidCheckedBg:Kr,buttonSolidCheckedHoverBg:_r,buttonSolidCheckedActiveBg:Me,buttonBg:qt,buttonCheckedBg:qt,buttonColor:lr,buttonCheckedBgDisabled:Er,buttonCheckedColorDisabled:Ze,buttonPaddingInline:qe-rt,wrapperMarginInlineEnd:at}}),q=g(14088),be=g(4572),xe=function(X,pe){var qe={};for(var at in X)Object.prototype.hasOwnProperty.call(X,at)&&pe.indexOf(at)<0&&(qe[at]=X[at]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(X);rt<at.length;rt++)pe.indexOf(at[rt])<0&&Object.prototype.propertyIsEnumerable.call(X,at[rt])&&(qe[at[rt]]=X[at[rt]]);return qe};const Le=(X,pe)=>{var qe,at;const rt=ie.useContext(o),Rt=ie.useContext(L),{getPrefixCls:lr,direction:qt,radio:Ze}=ie.useContext(Y.E_),Er=ie.useRef(null),Cr=(0,A.sQ)(pe,Er),{isFormItemInput:Kr}=ie.useContext(S.aM),_r=ft=>{var Ke,Xe;(Ke=X.onChange)===null||Ke===void 0||Ke.call(X,ft),(Xe=rt==null?void 0:rt.onChange)===null||Xe===void 0||Xe.call(rt,ft)},{prefixCls:Me,className:Tt,rootClassName:z,children:v,style:f}=X,D=xe(X,["prefixCls","className","rootClassName","children","style"]),de=lr("radio",Me),W=((rt==null?void 0:rt.optionType)||Rt)==="button",P=W?`${de}-button`:de,[te,Ie]=ce(de),Te=Object.assign({},D),Se=ie.useContext(m.Z);rt&&(Te.name=rt.name,Te.onChange=_r,Te.checked=X.value===rt.value,Te.disabled=(qe=Te.disabled)!==null&&qe!==void 0?qe:rt.disabled),Te.disabled=(at=Te.disabled)!==null&&at!==void 0?at:Se;const Ge=Fe()(`${P}-wrapper`,{[`${P}-wrapper-checked`]:Te.checked,[`${P}-wrapper-disabled`]:Te.disabled,[`${P}-wrapper-rtl`]:qt==="rtl",[`${P}-wrapper-in-form-item`]:Kr},Ze==null?void 0:Ze.className,Tt,z,Ie);return te(ie.createElement(q.Z,{component:"Radio",disabled:Te.disabled},ie.createElement("label",{className:Ge,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),f),onMouseEnter:X.onMouseEnter,onMouseLeave:X.onMouseLeave},ie.createElement(a.Z,Object.assign({},Te,{className:Fe()(Te.className,!W&&be.A),type:"radio",prefixCls:P,ref:Cr})),v!==void 0?ie.createElement("span",null,v):null)))};var me=ie.forwardRef(Le);const I=ie.forwardRef((X,pe)=>{const{getPrefixCls:qe,direction:at}=ie.useContext(Y.E_),[rt,Rt]=(0,se.Z)(X.defaultValue,{value:X.value}),lr=Ke=>{const Xe=rt,At=Ke.target.value;"value"in X||Rt(At);const{onChange:We}=X;We&&At!==Xe&&We(Ke)},{prefixCls:qt,className:Ze,rootClassName:Er,options:Cr,buttonStyle:Kr="outline",disabled:_r,children:Me,size:Tt,style:z,id:v,onMouseEnter:f,onMouseLeave:D,onFocus:de,onBlur:W}=X,P=qe("radio",qt),te=`${P}-group`,[Ie,Te]=ce(P);let Se=Me;Cr&&Cr.length>0&&(Se=Cr.map(Ke=>typeof Ke=="string"||typeof Ke=="number"?ie.createElement(me,{key:Ke.toString(),prefixCls:P,disabled:_r,value:Ke,checked:rt===Ke},Ke):ie.createElement(me,{key:`radio-group-value-options-${Ke.value}`,prefixCls:P,disabled:Ke.disabled||_r,value:Ke.value,checked:rt===Ke.value,title:Ke.title,style:Ke.style},Ke.label)));const Ge=(0,O.Z)(Tt),ft=Fe()(te,`${te}-${Kr}`,{[`${te}-${Ge}`]:Ge,[`${te}-rtl`]:at==="rtl"},Ze,Er,Te);return Ie(ie.createElement("div",Object.assign({},(0,ke.Z)(X,{aria:!0,data:!0}),{className:ft,style:z,onMouseEnter:f,onMouseLeave:D,onFocus:de,onBlur:W,id:v,ref:pe}),ie.createElement(n,{value:{onChange:lr,value:rt,disabled:X.disabled,name:X.name,optionType:X.optionType}},Se)))});var _e=ie.memo(I),oe=function(X,pe){var qe={};for(var at in X)Object.prototype.hasOwnProperty.call(X,at)&&pe.indexOf(at)<0&&(qe[at]=X[at]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(X);rt<at.length;rt++)pe.indexOf(at[rt])<0&&Object.prototype.propertyIsEnumerable.call(X,at[rt])&&(qe[at[rt]]=X[at[rt]]);return qe};const he=(X,pe)=>{const{getPrefixCls:qe}=ie.useContext(Y.E_),{prefixCls:at}=X,rt=oe(X,["prefixCls"]),Rt=qe("radio",at);return ie.createElement(p,{value:"button"},ie.createElement(me,Object.assign({prefixCls:Rt},rt,{type:"radio",ref:pe})))};var ve=ie.forwardRef(he);const _=me;_.Button=ve,_.Group=_e,_.__ANT_RADIO=!0;var N=_},57809:function(yn,Gt,g){"use strict";var we=g(92310),Fe=g.n(we),se=g(77861),ke=g(64002),ie=g(59301),Y=g(53487),O=g(62892),T=g(19080),n=g(36355),o=g(1684),L=g(93891),p=g(19716),a=g(32441),A=g(33234),m=g(14154),S=g(58582),K=g(84443),F=g(66339),H=function(ce,q){var be={};for(var xe in ce)Object.prototype.hasOwnProperty.call(ce,xe)&&q.indexOf(xe)<0&&(be[xe]=ce[xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,xe=Object.getOwnPropertySymbols(ce);Le<xe.length;Le++)q.indexOf(xe[Le])<0&&Object.prototype.propertyIsEnumerable.call(ce,xe[Le])&&(be[xe[Le]]=ce[xe[Le]]);return be};const V="SECRET_COMBOBOX_MODE_DO_NOT_USE",ee=(ce,q)=>{var be,{prefixCls:xe,bordered:Le=!0,className:ae,rootClassName:me,getPopupContainer:I,popupClassName:_e,dropdownClassName:oe,listHeight:he=256,placement:ve,listItemHeight:_=24,size:N,disabled:X,notFoundContent:pe,status:qe,builtinPlacements:at,dropdownMatchSelectWidth:rt,popupMatchSelectWidth:Rt,direction:lr,style:qt,allowClear:Ze}=ce,Er=H(ce,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Cr,getPrefixCls:Kr,renderEmpty:_r,direction:Me,virtual:Tt,popupMatchSelectWidth:z,popupOverflow:v,select:f}=ie.useContext(n.E_),D=Kr("select",xe),de=Kr(),W=lr!=null?lr:Me,{compactSize:P,compactItemClassnames:te}=(0,A.ri)(D,W),[Ie,Te]=(0,m.Z)(D),Se=ie.useMemo(()=>{const{mode:ct}=Er;if(ct!=="combobox")return ct===V?"combobox":ct},[Er.mode]),Ge=Se==="multiple"||Se==="tags",ft=(0,K.Z)(Er.suffixIcon,Er.showArrow),Ke=(be=Rt!=null?Rt:rt)!==null&&be!==void 0?be:z,{status:Xe,hasFeedback:At,isFormItemInput:We,feedbackIcon:$e}=ie.useContext(a.aM),Bt=(0,T.F)(Xe,qe);let Kt;pe!==void 0?Kt=pe:Se==="combobox"?Kt=null:Kt=(_r==null?void 0:_r("Select"))||ie.createElement(L.Z,{componentName:"Select"});const{suffixIcon:Mt,itemIcon:wr,removeIcon:vr,clearIcon:re}=(0,F.Z)(Object.assign(Object.assign({},Er),{multiple:Ge,hasFeedback:At,feedbackIcon:$e,showSuffixIcon:ft,prefixCls:D,showArrow:Er.showArrow,componentName:"Select"})),le=Ze===!0?{clearIcon:re}:Ze,rr=(0,ke.Z)(Er,["suffixIcon","itemIcon"]),Ue=Fe()(_e||oe,{[`${D}-dropdown-${W}`]:W==="rtl"},me,Te),ot=(0,p.Z)(ct=>{var dt;return(dt=N!=null?N:P)!==null&&dt!==void 0?dt:ct}),Yr=ie.useContext(o.Z),St=X!=null?X:Yr,Vt=Fe()({[`${D}-lg`]:ot==="large",[`${D}-sm`]:ot==="small",[`${D}-rtl`]:W==="rtl",[`${D}-borderless`]:!Le,[`${D}-in-form-item`]:We},(0,T.Z)(D,Bt,At),te,f==null?void 0:f.className,ae,me,Te),Zt=ie.useMemo(()=>ve!==void 0?ve:W==="rtl"?"bottomRight":"bottomLeft",[ve,W]),nt=(0,S.Z)(at,v);return Ie(ie.createElement(se.ZP,Object.assign({ref:q,virtual:Tt,showSearch:f==null?void 0:f.showSearch},rr,{style:Object.assign(Object.assign({},f==null?void 0:f.style),qt),dropdownMatchSelectWidth:Ke,builtinPlacements:nt,transitionName:(0,O.m)(de,"slide-up",Er.transitionName),listHeight:he,listItemHeight:_,mode:Se,prefixCls:D,placement:Zt,direction:W,suffixIcon:Mt,menuItemSelectedIcon:wr,removeIcon:vr,allowClear:le,notFoundContent:Kt,className:Vt,getPopupContainer:I||Cr,dropdownClassName:Ue,disabled:St})))},B=ie.forwardRef(ee),G=(0,Y.Z)(B);B.SECRET_COMBOBOX_MODE_DO_NOT_USE=V,B.Option=se.Wx,B.OptGroup=se.Xo,B._InternalPanelDoNotUseOrYouWillBeFired=G,Gt.default=B},14154:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return B}});var we=g(17313),Fe=g(74207),se=g(37613),ke=g(83116),ie=g(13826),Y=g(92899);const O=G=>{const{optionHeight:ce,optionFontSize:q,optionLineHeight:be,optionPadding:xe}=G;return{position:"relative",display:"block",minHeight:ce,padding:xe,color:G.colorText,fontWeight:"normal",fontSize:q,lineHeight:be,boxSizing:"border-box"}};var n=G=>{const{antCls:ce,componentCls:q}=G,be=`${q}-item`,xe=`&${ce}-slide-up-enter${ce}-slide-up-enter-active`,Le=`&${ce}-slide-up-appear${ce}-slide-up-appear-active`,ae=`&${ce}-slide-up-leave${ce}-slide-up-leave-active`,me=`${q}-dropdown-placement-`;return[{[`${q}-dropdown`]:Object.assign(Object.assign({},(0,we.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,[`
|
|
|
${xe}${me}bottomLeft,
|
|
|
${Le}${me}bottomLeft
|
|
|
`]:{animationName:ie.fJ},[`
|
|
|
${xe}${me}topLeft,
|
|
|
${Le}${me}topLeft,
|
|
|
${xe}${me}topRight,
|
|
|
${Le}${me}topRight
|
|
|
`]:{animationName:ie.Qt},[`${ae}${me}bottomLeft`]:{animationName:ie.Uw},[`
|
|
|
${ae}${me}topLeft,
|
|
|
${ae}${me}topRight
|
|
|
`]:{animationName:ie.ly},"&-hidden":{display:"none"},[`${be}`]:Object.assign(Object.assign({},O(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"},we.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${be}-option-disabled)`]:{backgroundColor:G.optionActiveBg},[`&-selected:not(${be}-option-disabled)`]:{color:G.optionSelectedColor,fontWeight:G.optionSelectedFontWeight,backgroundColor:G.optionSelectedBg,[`${be}-option-state`]:{color:G.colorPrimary}},"&-disabled":{[`&${be}-option-selected`]:{backgroundColor:G.colorBgContainerDisabled},color:G.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:G.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ie.oN)(G,"slide-up"),(0,ie.oN)(G,"slide-down"),(0,Y.Fm)(G,"move-up"),(0,Y.Fm)(G,"move-down")]};const o=2,L=G=>{let{controlHeightSM:ce,controlHeight:q,lineWidth:be}=G;const xe=(q-ce)/2-be,Le=Math.ceil(xe/2);return[xe,Le]};function p(G,ce){const{componentCls:q,iconCls:be}=G,xe=`${q}-selection-overflow`,Le=G.multipleSelectItemHeight,[ae]=L(G),me=ce?`${q}-${ce}`:"";return{[`${q}-multiple${me}`]:{fontSize:G.fontSize,[xe]:{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:`${ae-o}px ${o*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:`${o}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:o,marginBottom:o,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:o*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,we.Ro)()),{display:"inline-flex",alignItems:"center",color:G.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${be}`]:{verticalAlign:"-0.2em"},"&:hover":{color:G.colorIconHover}})},[`${xe}-item + ${xe}-item`]:{[`${q}-selection-search`]:{marginInlineStart:0}},[`${q}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:G.inputPaddingHorizontalBase-ae,"\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 A=G=>{const{componentCls:ce}=G,q=(0,se.TS)(G,{controlHeight:G.controlHeightSM,multipleSelectItemHeight:G.controlHeightXS,borderRadius:G.borderRadiusSM,borderRadiusSM:G.borderRadiusXS}),be=(0,se.TS)(G,{fontSize:G.fontSizeLG,controlHeight:G.controlHeightLG,multipleSelectItemHeight:G.multipleItemHeightLG,borderRadius:G.borderRadiusLG,borderRadiusSM:G.borderRadius}),[,xe]=L(G);return[p(G),p(q,"sm"),{[`${ce}-multiple${ce}-sm`]:{[`${ce}-selection-placeholder`]:{insetInline:G.controlPaddingHorizontalSM-G.lineWidth},[`${ce}-selection-search`]:{marginInlineStart:xe}}},p(be,"lg")]};function m(G,ce){const{componentCls:q,inputPaddingHorizontalBase:be,borderRadius:xe}=G,Le=G.controlHeight-G.lineWidth*2,ae=Math.ceil(G.fontSize*1.25),me=ce?`${q}-${ce}`:"";return{[`${q}-single${me}`]:{fontSize:G.fontSize,[`${q}-selector`]:Object.assign(Object.assign({},(0,we.Wf)(G)),{display:"flex",borderRadius:xe,[`${q}-selection-search`]:{position:"absolute",top:0,insetInlineStart:be,insetInlineEnd:be,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:ae},[`&${q}-open ${q}-selection-item`]:{color:G.colorTextPlaceholder},[`&:not(${q}-customize-input)`]:{[`${q}-selector`]:{width:"100%",height:G.controlHeight,padding:`0 ${be}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 ${be}px`,"&:after":{display:"none"}}}}}}}function S(G){const{componentCls:ce}=G,q=G.controlPaddingHorizontalSM-G.lineWidth;return[m(G),m((0,se.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}}}},m((0,se.TS)(G,{controlHeight:G.singleItemHeightLG,fontSize:G.fontSizeLG,borderRadius:G.borderRadiusLG}),"lg")]}const K=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"}}}},F=function(G,ce){let q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:be,borderHoverColor:xe,outlineColor:Le,antCls:ae}=ce,me=q?{[`${be}-selector`]:{borderColor:xe}}:{};return{[G]:{[`&:not(${be}-disabled):not(${be}-customize-input):not(${ae}-pagination-size-changer)`]:Object.assign(Object.assign({},me),{[`${be}-focused& ${be}-selector`]:{borderColor:xe,boxShadow:`0 0 0 ${ce.controlOutlineWidth}px ${Le}`,outline:0},[`&:hover ${be}-selector`]:{borderColor:xe}})}}},H=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"}}}},V=G=>{const{componentCls:ce,inputPaddingHorizontalBase:q,iconCls:be}=G;return{[ce]:Object.assign(Object.assign({},(0,we.Wf)(G)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${ce}-customize-input) ${ce}-selector`]:Object.assign(Object.assign({},K(G)),H(G)),[`${ce}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},we.vS),[`${ce}-selection-placeholder`]:Object.assign(Object.assign({},we.vS),{flex:1,color:G.colorTextPlaceholder,pointerEvents:"none"}),[`${ce}-arrow`]:Object.assign(Object.assign({},(0,we.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",[be]:{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}}}},ee=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%"}}},V(G),S(G),A(G),n(G),{[`${ce}-rtl`]:{direction:"rtl"}},F(ce,(0,se.TS)(G,{borderHoverColor:G.colorPrimaryHover,outlineColor:G.controlOutline})),F(`${ce}-status-error`,(0,se.TS)(G,{borderHoverColor:G.colorErrorHover,outlineColor:G.colorErrorOutline}),!0),F(`${ce}-status-warning`,(0,se.TS)(G,{borderHoverColor:G.colorWarningHover,outlineColor:G.colorWarningOutline}),!0),(0,Fe.c)(G,{borderElCls:`${ce}-selector`,focusElCls:`${ce}-focused`})]};var B=(0,ke.Z)("Select",(G,ce)=>{let{rootPrefixCls:q}=ce;const be=(0,se.TS)(G,{rootPrefixCls:q,inputPaddingHorizontalBase:G.paddingSM-1,multipleSelectItemHeight:G.multipleItemHeight});return[ee(be)]},G=>{const{fontSize:ce,lineHeight:q,controlHeight:be,controlPaddingHorizontal:xe,zIndexPopupBase:Le,colorText:ae,fontWeightStrong:me,controlItemBgActive:I,controlItemBgHover:_e,colorBgContainer:oe,colorFillSecondary:he,controlHeightLG:ve,controlHeightSM:_,colorBgContainerDisabled:N,colorTextDisabled:X}=G;return{zIndexPopup:Le+50,optionSelectedColor:ae,optionSelectedFontWeight:me,optionSelectedBg:I,optionActiveBg:_e,optionPadding:`${(be-ce*q)/2}px ${xe}px`,optionFontSize:ce,optionLineHeight:q,optionHeight:be,selectorBg:oe,clearBg:oe,singleItemHeightLG:ve,multipleItemBg:he,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightLG:be,multipleSelectorBgDisabled:N,multipleItemColorDisabled:X,multipleItemBorderColorDisabled:"transparent"}})},58582:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return Fe}});const we=se=>{const ie={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:se==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ie),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ie),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ie),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ie),{points:["br","tr"],offset:[0,-4]})}};function Fe(se,ke){return se||we(ke)}},84443:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return we}});function we(Fe,se){return se!==void 0?se:Fe!==null}},66339:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});var we=g(10402),Fe=g(33130),se=g(72119),ke=g(18290),ie=g(50023),Y=g(21970),O=g(59301);function T(n){let{suffixIcon:o,clearIcon:L,menuItemSelectedIcon:p,removeIcon:a,loading:A,multiple:m,hasFeedback:S,prefixCls:K,showSuffixIcon:F,feedbackIcon:H,showArrow:V,componentName:ee}=n;const B=L!=null?L:O.createElement(Fe.Z,null),G=xe=>o===null&&!S&&!V?null:O.createElement(O.Fragment,null,F!==!1&&xe,S&&H);let ce=null;if(o!==void 0)ce=G(o);else if(A)ce=G(O.createElement(ie.Z,{spin:!0}));else{const xe=`${K}-suffix`;ce=Le=>{let{open:ae,showSearch:me}=Le;return G(ae&&me?O.createElement(Y.Z,{className:xe}):O.createElement(ke.Z,{className:xe}))}}let q=null;p!==void 0?q=p:m?q=O.createElement(we.Z,null):q=null;let be=null;return a!==void 0?be=a:be=O.createElement(se.Z,null),{clearIcon:B,suffixIcon:ce,itemIcon:q,removeIcon:be}}},78485:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return v}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=g(36355),ie=g(64002),O=f=>{const{prefixCls:D,className:de,style:W,size:P,shape:te}=f,Ie=Fe()({[`${D}-lg`]:P==="large",[`${D}-sm`]:P==="small"}),Te=Fe()({[`${D}-circle`]:te==="circle",[`${D}-square`]:te==="square",[`${D}-round`]:te==="round"}),Se=se.useMemo(()=>typeof P=="number"?{width:P,height:P,lineHeight:`${P}px`}:{},[P]);return se.createElement("span",{className:Fe()(D,Ie,Te,de),style:Object.assign(Object.assign({},Se),W)})},T=g(9792),n=g(83116),o=g(37613);const L=new T.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),p=f=>({height:f,lineHeight:`${f}px`}),a=f=>Object.assign({width:f},p(f)),A=f=>({background:f.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:L,animationDuration:f.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),m=f=>Object.assign({width:f*5,minWidth:f*5},p(f)),S=f=>{const{skeletonAvatarCls:D,gradientFromColor:de,controlHeight:W,controlHeightLG:P,controlHeightSM:te}=f;return{[`${D}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:de},a(W)),[`${D}${D}-circle`]:{borderRadius:"50%"},[`${D}${D}-lg`]:Object.assign({},a(P)),[`${D}${D}-sm`]:Object.assign({},a(te))}},K=f=>{const{controlHeight:D,borderRadiusSM:de,skeletonInputCls:W,controlHeightLG:P,controlHeightSM:te,gradientFromColor:Ie}=f;return{[`${W}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ie,borderRadius:de},m(D)),[`${W}-lg`]:Object.assign({},m(P)),[`${W}-sm`]:Object.assign({},m(te))}},F=f=>Object.assign({width:f},p(f)),H=f=>{const{skeletonImageCls:D,imageSizeBase:de,gradientFromColor:W,borderRadiusSM:P}=f;return{[`${D}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:W,borderRadius:P},F(de*2)),{[`${D}-path`]:{fill:"#bfbfbf"},[`${D}-svg`]:Object.assign(Object.assign({},F(de)),{maxWidth:de*4,maxHeight:de*4}),[`${D}-svg${D}-svg-circle`]:{borderRadius:"50%"}}),[`${D}${D}-circle`]:{borderRadius:"50%"}}},V=(f,D,de)=>{const{skeletonButtonCls:W}=f;return{[`${de}${W}-circle`]:{width:D,minWidth:D,borderRadius:"50%"},[`${de}${W}-round`]:{borderRadius:D}}},ee=f=>Object.assign({width:f*2,minWidth:f*2},p(f)),B=f=>{const{borderRadiusSM:D,skeletonButtonCls:de,controlHeight:W,controlHeightLG:P,controlHeightSM:te,gradientFromColor:Ie}=f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${de}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ie,borderRadius:D,width:W*2,minWidth:W*2},ee(W))},V(f,W,de)),{[`${de}-lg`]:Object.assign({},ee(P))}),V(f,P,`${de}-lg`)),{[`${de}-sm`]:Object.assign({},ee(te))}),V(f,te,`${de}-sm`))},G=f=>{const{componentCls:D,skeletonAvatarCls:de,skeletonTitleCls:W,skeletonParagraphCls:P,skeletonButtonCls:te,skeletonInputCls:Ie,skeletonImageCls:Te,controlHeight:Se,controlHeightLG:Ge,controlHeightSM:ft,gradientFromColor:Ke,padding:Xe,marginSM:At,borderRadius:We,titleHeight:$e,blockRadius:Bt,paragraphLiHeight:Kt,controlHeightXS:Mt,paragraphMarginTop:wr}=f;return{[`${D}`]:{display:"table",width:"100%",[`${D}-header`]:{display:"table-cell",paddingInlineEnd:Xe,verticalAlign:"top",[`${de}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ke},a(Se)),[`${de}-circle`]:{borderRadius:"50%"},[`${de}-lg`]:Object.assign({},a(Ge)),[`${de}-sm`]:Object.assign({},a(ft))},[`${D}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${W}`]:{width:"100%",height:$e,background:Ke,borderRadius:Bt,[`+ ${P}`]:{marginBlockStart:ft}},[`${P}`]:{padding:0,"> li":{width:"100%",height:Kt,listStyle:"none",background:Ke,borderRadius:Bt,"+ li":{marginBlockStart:Mt}}},[`${P}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${D}-content`]:{[`${W}, ${P} > li`]:{borderRadius:We}}},[`${D}-with-avatar ${D}-content`]:{[`${W}`]:{marginBlockStart:At,[`+ ${P}`]:{marginBlockStart:wr}}},[`${D}${D}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},B(f)),S(f)),K(f)),H(f)),[`${D}${D}-block`]:{width:"100%",[`${te}`]:{width:"100%"},[`${Ie}`]:{width:"100%"}},[`${D}${D}-active`]:{[`
|
|
|
${W},
|
|
|
${P} > li,
|
|
|
${de},
|
|
|
${te},
|
|
|
${Ie},
|
|
|
${Te}
|
|
|
`]:Object.assign({},A(f))}}};var ce=(0,n.Z)("Skeleton",f=>{const{componentCls:D}=f,de=(0,o.TS)(f,{skeletonAvatarCls:`${D}-avatar`,skeletonTitleCls:`${D}-title`,skeletonParagraphCls:`${D}-paragraph`,skeletonButtonCls:`${D}-button`,skeletonInputCls:`${D}-input`,skeletonImageCls:`${D}-image`,imageSizeBase:f.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${f.gradientFromColor} 25%, ${f.gradientToColor} 37%, ${f.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[G(de)]},f=>{const{colorFillContent:D,colorFill:de}=f,W=D,P=de;return{color:W,colorGradientEnd:P,gradientFromColor:W,gradientToColor:P,titleHeight:f.controlHeight/2,blockRadius:f.borderRadiusSM,paragraphMarginTop:f.marginLG+f.marginXXS,paragraphLiHeight:f.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),be=f=>{const{prefixCls:D,className:de,rootClassName:W,active:P,shape:te="circle",size:Ie="default"}=f,{getPrefixCls:Te}=se.useContext(ke.E_),Se=Te("skeleton",D),[Ge,ft]=ce(Se),Ke=(0,ie.Z)(f,["prefixCls","className"]),Xe=Fe()(Se,`${Se}-element`,{[`${Se}-active`]:P},de,W,ft);return Ge(se.createElement("div",{className:Xe},se.createElement(O,Object.assign({prefixCls:`${Se}-avatar`,shape:te,size:Ie},Ke))))},Le=f=>{const{prefixCls:D,className:de,rootClassName:W,active:P,block:te=!1,size:Ie="default"}=f,{getPrefixCls:Te}=se.useContext(ke.E_),Se=Te("skeleton",D),[Ge,ft]=ce(Se),Ke=(0,ie.Z)(f,["prefixCls"]),Xe=Fe()(Se,`${Se}-element`,{[`${Se}-active`]:P,[`${Se}-block`]:te},de,W,ft);return Ge(se.createElement("div",{className:Xe},se.createElement(O,Object.assign({prefixCls:`${Se}-button`,size:Ie},Ke))))};const ae="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 I=f=>{const{prefixCls:D,className:de,rootClassName:W,style:P,active:te}=f,{getPrefixCls:Ie}=se.useContext(ke.E_),Te=Ie("skeleton",D),[Se,Ge]=ce(Te),ft=Fe()(Te,`${Te}-element`,{[`${Te}-active`]:te},de,W,Ge);return Se(se.createElement("div",{className:ft},se.createElement("div",{className:Fe()(`${Te}-image`,de),style:P},se.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Te}-image-svg`},se.createElement("path",{d:ae,className:`${Te}-image-path`})))))},oe=f=>{const{prefixCls:D,className:de,rootClassName:W,active:P,block:te,size:Ie="default"}=f,{getPrefixCls:Te}=se.useContext(ke.E_),Se=Te("skeleton",D),[Ge,ft]=ce(Se),Ke=(0,ie.Z)(f,["prefixCls"]),Xe=Fe()(Se,`${Se}-element`,{[`${Se}-active`]:P,[`${Se}-block`]:te},de,W,ft);return Ge(se.createElement("div",{className:Xe},se.createElement(O,Object.assign({prefixCls:`${Se}-input`,size:Ie},Ke))))},he=g(5891),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"},_=ve,N=g(88853),X=function(D,de){return se.createElement(N.Z,(0,he.Z)({},D,{ref:de,icon:_}))},pe=se.forwardRef(X),qe=pe,rt=f=>{const{prefixCls:D,className:de,rootClassName:W,style:P,active:te,children:Ie}=f,{getPrefixCls:Te}=se.useContext(ke.E_),Se=Te("skeleton",D),[Ge,ft]=ce(Se),Ke=Fe()(Se,`${Se}-element`,{[`${Se}-active`]:te},ft,de,W),Xe=Ie!=null?Ie:se.createElement(qe,null);return Ge(se.createElement("div",{className:Ke},se.createElement("div",{className:Fe()(`${Se}-image`,de),style:P},Xe)))},Rt=g(26390),qt=f=>{const D=Te=>{const{width:Se,rows:Ge=2}=f;if(Array.isArray(Se))return Se[Te];if(Ge-1===Te)return Se},{prefixCls:de,className:W,style:P,rows:te}=f,Ie=(0,Rt.Z)(Array(te)).map((Te,Se)=>se.createElement("li",{key:Se,style:{width:D(Se)}}));return se.createElement("ul",{className:Fe()(de,W),style:P},Ie)},Er=f=>{let{prefixCls:D,className:de,width:W,style:P}=f;return se.createElement("h3",{className:Fe()(D,de),style:Object.assign({width:W},P)})};function Cr(f){return f&&typeof f=="object"?f:{}}function Kr(f,D){return f&&!D?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function _r(f,D){return!f&&D?{width:"38%"}:f&&D?{width:"50%"}:{}}function Me(f,D){const de={};return(!f||!D)&&(de.width="61%"),!f&&D?de.rows=3:de.rows=2,de}const Tt=f=>{const{prefixCls:D,loading:de,className:W,rootClassName:P,style:te,children:Ie,avatar:Te=!1,title:Se=!0,paragraph:Ge=!0,active:ft,round:Ke}=f,{getPrefixCls:Xe,direction:At,skeleton:We}=se.useContext(ke.E_),$e=Xe("skeleton",D),[Bt,Kt]=ce($e);if(de||!("loading"in f)){const Mt=!!Te,wr=!!Se,vr=!!Ge;let re;if(Mt){const Ue=Object.assign(Object.assign({prefixCls:`${$e}-avatar`},Kr(wr,vr)),Cr(Te));re=se.createElement("div",{className:`${$e}-header`},se.createElement(O,Object.assign({},Ue)))}let le;if(wr||vr){let Ue;if(wr){const Yr=Object.assign(Object.assign({prefixCls:`${$e}-title`},_r(Mt,vr)),Cr(Se));Ue=se.createElement(Er,Object.assign({},Yr))}let ot;if(vr){const Yr=Object.assign(Object.assign({prefixCls:`${$e}-paragraph`},Me(Mt,wr)),Cr(Ge));ot=se.createElement(qt,Object.assign({},Yr))}le=se.createElement("div",{className:`${$e}-content`},Ue,ot)}const rr=Fe()($e,{[`${$e}-with-avatar`]:Mt,[`${$e}-active`]:ft,[`${$e}-rtl`]:At==="rtl",[`${$e}-round`]:Ke},We==null?void 0:We.className,W,P,Kt);return Bt(se.createElement("div",{className:rr,style:Object.assign(Object.assign({},We==null?void 0:We.style),te)},re,le))}return typeof Ie!="undefined"?Ie:null};Tt.Button=Le,Tt.Avatar=be,Tt.Input=oe,Tt.Image=I,Tt.Node=rt;var z=Tt,v=z},81327:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return K}});var we=g(59301),Fe=g(92310),se=g.n(Fe),ke=g(38298),ie=g(36355),Y=g(33234);const O=we.createContext({latestIndex:0}),T=O.Provider;var o=F=>{let{className:H,index:V,children:ee,split:B,style:G}=F;const{latestIndex:ce}=we.useContext(O);return ee==null?null:we.createElement(we.Fragment,null,we.createElement("div",{className:H,style:G},ee),V<ce&&B&&we.createElement("span",{className:`${H}-split`},B))},L=g(2856);function p(F){return["small","middle","large"].includes(F)}function a(F){return F?typeof F=="number"&&!Number.isNaN(F):!1}var A=function(F,H){var V={};for(var ee in F)Object.prototype.hasOwnProperty.call(F,ee)&&H.indexOf(ee)<0&&(V[ee]=F[ee]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,ee=Object.getOwnPropertySymbols(F);B<ee.length;B++)H.indexOf(ee[B])<0&&Object.prototype.propertyIsEnumerable.call(F,ee[B])&&(V[ee[B]]=F[ee[B]]);return V};const S=we.forwardRef((F,H)=>{var V,ee;const{getPrefixCls:B,space:G,direction:ce}=we.useContext(ie.E_),{size:q=(G==null?void 0:G.size)||"small",align:be,className:xe,rootClassName:Le,children:ae,direction:me="horizontal",prefixCls:I,split:_e,style:oe,wrap:he=!1,classNames:ve,styles:_}=F,N=A(F,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[X,pe]=Array.isArray(q)?q:[q,q],qe=p(pe),at=p(X),rt=a(pe),Rt=a(X),lr=(0,ke.Z)(ae,{keepEmpty:!0}),qt=be===void 0&&me==="horizontal"?"center":be,Ze=B("space",I),[Er,Cr]=(0,L.Z)(Ze),Kr=se()(Ze,G==null?void 0:G.className,Cr,`${Ze}-${me}`,{[`${Ze}-rtl`]:ce==="rtl",[`${Ze}-align-${qt}`]:qt,[`${Ze}-gap-row-${pe}`]:qe,[`${Ze}-gap-col-${X}`]:at},xe,Le),_r=se()(`${Ze}-item`,(V=ve==null?void 0:ve.item)!==null&&V!==void 0?V:(ee=G==null?void 0:G.classNames)===null||ee===void 0?void 0:ee.item);let Me=0;const Tt=lr.map((f,D)=>{var de,W;f!=null&&(Me=D);const P=f&&f.key||`${_r}-${D}`;return we.createElement(o,{className:_r,key:P,index:D,split:_e,style:(de=_==null?void 0:_.item)!==null&&de!==void 0?de:(W=G==null?void 0:G.styles)===null||W===void 0?void 0:W.item},f)}),z=we.useMemo(()=>({latestIndex:Me}),[Me]);if(lr.length===0)return null;const v={};return he&&(v.flexWrap="wrap"),!at&&Rt&&(v.columnGap=X),!qe&&rt&&(v.rowGap=pe),Er(we.createElement("div",Object.assign({ref:H,className:Kr,style:Object.assign(Object.assign(Object.assign({},v),G==null?void 0:G.style),oe)},N),we.createElement(T,{value:z},Tt)))});S.Compact=Y.ZP;var K=S},8378:function(yn,Gt){"use strict";const g=we=>({[we.componentCls]:{[`${we.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${we.motionDurationMid} ${we.motionEaseInOut},
|
|
|
opacity ${we.motionDurationMid} ${we.motionEaseInOut} !important`}},[`${we.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${we.motionDurationMid} ${we.motionEaseInOut},
|
|
|
opacity ${we.motionDurationMid} ${we.motionEaseInOut} !important`}}});Gt.Z=g},92899:function(yn,Gt,g){"use strict";g.d(Gt,{Fm:function(){return p}});var we=g(9792),Fe=g(95406);const se=new we.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ke=new we.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ie=new we.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Y=new we.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),O=new we.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 we.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),n=new we.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),o=new we.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),L={"move-up":{inKeyframes:n,outKeyframes:o},"move-down":{inKeyframes:se,outKeyframes:ke},"move-left":{inKeyframes:ie,outKeyframes:Y},"move-right":{inKeyframes:O,outKeyframes:T}},p=(a,A)=>{const{antCls:m}=a,S=`${m}-${A}`,{inKeyframes:K,outKeyframes:F}=L[A];return[(0,Fe.R)(S,K,F,a.motionDurationMid),{[`
|
|
|
${S}-enter,
|
|
|
${S}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:a.motionEaseOutCirc},[`${S}-leave`]:{animationTimingFunction:a.motionEaseInOutCirc}}]}},13826:function(yn,Gt,g){"use strict";g.d(Gt,{Qt:function(){return ie},Uw:function(){return ke},fJ:function(){return se},ly:function(){return Y},oN:function(){return p}});var we=g(9792),Fe=g(95406);const se=new we.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ke=new we.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ie=new we.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Y=new we.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),O=new we.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),T=new we.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),n=new we.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),o=new we.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),L={"slide-up":{inKeyframes:se,outKeyframes:ke},"slide-down":{inKeyframes:ie,outKeyframes:Y},"slide-left":{inKeyframes:O,outKeyframes:T},"slide-right":{inKeyframes:n,outKeyframes:o}},p=(a,A)=>{const{antCls:m}=a,S=`${m}-${A}`,{inKeyframes:K,outKeyframes:F}=L[A];return[(0,Fe.R)(S,K,F,a.motionDurationMid),{[`
|
|
|
${S}-enter,
|
|
|
${S}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:a.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${S}-leave`]:{animationTimingFunction:a.motionEaseInQuint}}]}},15969:function(yn,Gt,g){"use strict";g.d(Gt,{N:function(){return we}});const we=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(yn,Gt,g){"use strict";g.d(Gt,{ZP:function(){return ie},fS:function(){return se},qN:function(){return Fe}});var we=g(47585);const Fe=8;function se(Y){const O=Fe,{contentRadius:T,limitVerticalRadius:n}=Y,o=T>12?T+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:n?O:o}}function ke(Y,O){return Y?O:{}}function ie(Y,O){const{componentCls:T,sizePopupArrow:n,borderRadiusXS:o,borderRadiusOuter:L,boxShadowPopoverArrow:p}=Y,{colorBg:a,contentRadius:A=Y.borderRadiusLG,limitVerticalRadius:m,arrowDistance:S=0,arrowPlacement:K={left:!0,right:!0,top:!0,bottom:!0}}=O,{dropdownArrowOffsetVertical:F,dropdownArrowOffset:H}=se({contentRadius:A,limitVerticalRadius:m});return{[T]:Object.assign(Object.assign(Object.assign(Object.assign({[`${T}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,we.r)(n,o,L,a,p)),{"&:before":{background:a}})]},ke(!!K.top,{[[`&-placement-top ${T}-arrow`,`&-placement-topLeft ${T}-arrow`,`&-placement-topRight ${T}-arrow`].join(",")]:{bottom:S,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:H}},[`&-placement-topRight ${T}-arrow`]:{right:{_skip_check_:!0,value:H}}})),ke(!!K.bottom,{[[`&-placement-bottom ${T}-arrow`,`&-placement-bottomLeft ${T}-arrow`,`&-placement-bottomRight ${T}-arrow`].join(",")]:{top:S,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:H}},[`&-placement-bottomRight ${T}-arrow`]:{right:{_skip_check_:!0,value:H}}})),ke(!!K.left,{[[`&-placement-left ${T}-arrow`,`&-placement-leftTop ${T}-arrow`,`&-placement-leftBottom ${T}-arrow`].join(",")]:{right:{_skip_check_:!0,value:S},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:F},[`&-placement-leftBottom ${T}-arrow`]:{bottom:F}})),ke(!!K.right,{[[`&-placement-right ${T}-arrow`,`&-placement-rightTop ${T}-arrow`,`&-placement-rightBottom ${T}-arrow`].join(",")]:{left:{_skip_check_:!0,value:S},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:F},[`&-placement-rightBottom ${T}-arrow`]:{bottom:F}}))}}},47585:function(yn,Gt,g){"use strict";g.d(Gt,{r:function(){return we}});const we=(Fe,se,ke,ie,Y)=>{const O=Fe/2,T=0,n=O,o=ke*1/Math.sqrt(2),L=O-ke*(1-1/Math.sqrt(2)),p=O-se*(1/Math.sqrt(2)),a=ke*(Math.sqrt(2)-1)+se*(1/Math.sqrt(2)),A=2*O-p,m=a,S=2*O-o,K=L,F=2*O-T,H=n,V=O*Math.sqrt(2)+ke*(Math.sqrt(2)-2),ee=ke*(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:ie,clipPath:{_multi_value_:!0,value:[`polygon(${ee}px 100%, 50% ${ee}px, ${2*O-ee}px 100%, ${ee}px 100%)`,`path('M ${T} ${n} A ${ke} ${ke} 0 0 0 ${o} ${L} L ${p} ${a} A ${se} ${se} 0 0 1 ${A} ${m} L ${S} ${K} A ${ke} ${ke} 0 0 0 ${F} ${H} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:V,height:V,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${se}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:Y,zIndex:0,background:"transparent"}}}},2595:function(yn,Gt,g){"use strict";g.d(Gt,{default:function(){return nr}});var we={},Fe="rc-table-internal-hook",se=g(29043),ke=g(8107),ie=g(28800),Y=g(51346),O=g(59301),T=g(4676);function n(ye){var Ee=O.createContext(void 0),et=function(gt){var ht=gt.value,Ut=gt.children,$t=O.useRef(ht);$t.current=ht;var sr=O.useState(function(){return{getValue:function(){return $t.current},listeners:new Set}}),ze=(0,se.Z)(sr,1),Ce=ze[0];return(0,ie.Z)(function(){(0,T.unstable_batchedUpdates)(function(){Ce.listeners.forEach(function(wt){wt(ht)})})},[ht]),O.createElement(Ee.Provider,{value:Ce},Ut)};return{Context:Ee,Provider:et,defaultValue:ye}}function o(ye,Ee){var et=(0,ke.Z)(typeof Ee=="function"?Ee:function(wt){if(Ee===void 0)return wt;if(!Array.isArray(Ee))return wt[Ee];var jt={};return Ee.forEach(function(Wt){jt[Wt]=wt[Wt]}),jt}),st=O.useContext(ye==null?void 0:ye.Context),gt=st||{},ht=gt.listeners,Ut=gt.getValue,$t=O.useRef();$t.current=et(st?Ut():ye==null?void 0:ye.defaultValue);var sr=O.useState({}),ze=(0,se.Z)(sr,2),Ce=ze[1];return(0,ie.Z)(function(){if(!st)return;function wt(jt){var Wt=et(jt);(0,Y.Z)($t.current,Wt,!0)||Ce({})}return ht.add(wt),function(){ht.delete(wt)}},[st]),$t.current}var L=g(5891),p=g(20475);function a(){var ye=O.createContext(null);function Ee(){return O.useContext(ye)}function et(gt,ht){var Ut=(0,p.Yr)(gt),$t=function(ze,Ce){var wt=Ut?{ref:Ce}:{},jt=O.useRef(0),Wt=O.useRef(ze),ur=Ee();return ur!==null?O.createElement(gt,(0,L.Z)({},ze,wt)):((!ht||ht(Wt.current,ze))&&(jt.current+=1),Wt.current=ze,O.createElement(ye.Provider,{value:jt.current},O.createElement(gt,(0,L.Z)({},ze,wt))))};return Ut?O.forwardRef($t):$t}function st(gt,ht){var Ut=(0,p.Yr)(gt),$t=function(ze,Ce){var wt=Ut?{ref:Ce}:{};return Ee(),O.createElement(gt,(0,L.Z)({},ze,wt))};return Ut?O.memo(O.forwardRef($t),ht):O.memo($t,ht)}return{makeImmutable:et,responseImmutable:st,useImmutableMark:Ee}}var A=a(),m=A.makeImmutable,S=A.responseImmutable,K=A.useImmutableMark,F=a(),H=F.makeImmutable,V=F.responseImmutable,ee=F.useImmutableMark,B=n(),G=B;function ce(ye,Ee){var et=O.useRef(0);et.current+=1;var st=O.useRef(ye),gt=[];Object.keys(ye||{}).map(function(Ut){var $t;(ye==null?void 0:ye[Ut])!==(($t=st.current)===null||$t===void 0?void 0:$t[Ut])&>.push(Ut)}),st.current=ye;var ht=O.useRef([]);return gt.length&&(ht.current=gt),O.useDebugValue(et.current),O.useDebugValue(ht.current.join(", ")),Ee&&console.log("".concat(Ee,":"),et.current,ht.current),et.current}var q=null,be=O.memo(function(){var ye=ce();return O.createElement("h1",null,"Render Times: ",ye)});be.displayName="RenderBlock";var xe=g(80665),Le=g(57259),ae=g(80962),me=g(92310),I=g.n(me),_e=g(79722),oe=g(69004),he=g(51395),ve=O.createContext({renderWithProps:!1}),_=ve,N="RC_TABLE_KEY";function X(ye){return ye==null?[]:Array.isArray(ye)?ye:[ye]}function pe(ye){var Ee=[],et={};return ye.forEach(function(st){for(var gt=st||{},ht=gt.key,Ut=gt.dataIndex,$t=ht||X(Ut).join("-")||N;et[$t];)$t="".concat($t,"_next");et[$t]=!0,Ee.push($t)}),Ee}function qe(ye){return ye!=null}function at(ye){return ye&&(0,xe.Z)(ye)==="object"&&!Array.isArray(ye)&&!O.isValidElement(ye)}function rt(ye,Ee,et,st,gt,ht){var Ut=O.useContext(_),$t=ee(),sr=(0,_e.Z)(function(){if(qe(st))return[st];var ze=Ee==null||Ee===""?[]:Array.isArray(Ee)?Ee:[Ee],Ce=(0,oe.Z)(ye,ze),wt=Ce,jt=void 0;if(gt){var Wt=gt(Ce,ye,et);at(Wt)?(wt=Wt.children,jt=Wt.props,Ut.renderWithProps=!0):wt=Wt}return[wt,jt]},[$t,ye,st,Ee,gt,et],function(ze,Ce){if(ht){var wt=(0,se.Z)(ze,2),jt=wt[1],Wt=(0,se.Z)(Ce,2),ur=Wt[1];return ht(ur,jt)}return Ut.renderWithProps?!0:!(0,Y.Z)(ze,Ce,!0)});return sr}function Rt(ye,Ee,et,st){var gt=ye+Ee-1;return ye<=st&>>=et}function lr(ye,Ee){return o(G,function(et){var st=Rt(ye,Ee||1,et.hoverStartRow,et.hoverEndRow);return[st,et.onHover]})}var qt=function(Ee){var et=Ee.ellipsis,st=Ee.rowType,gt=Ee.children,ht,Ut=et===!0?{showTitle:!0}:et;return Ut&&(Ut.showTitle||st==="header")&&(typeof gt=="string"||typeof gt=="number"?ht=gt.toString():O.isValidElement(gt)&&typeof gt.props.children=="string"&&(ht=gt.props.children)),ht};function Ze(ye){var Ee,et,st,gt,ht,Ut,$t,sr,ze=ye.component,Ce=ye.children,wt=ye.ellipsis,jt=ye.scope,Wt=ye.prefixCls,ur=ye.className,It=ye.align,br=ye.record,Gr=ye.render,$r=ye.dataIndex,cn=ye.renderIndex,Dn=ye.shouldCellUpdate,ni=ye.index,Mr=ye.rowType,ir=ye.colSpan,Ii=ye.rowSpan,Fn=ye.fixLeft,ln=ye.fixRight,An=ye.firstFixLeft,rn=ye.lastFixLeft,Cn=ye.firstFixRight,ai=ye.lastFixRight,Li=ye.appendNode,He=ye.additionalProps,c=He===void 0?{}:He,w=ye.isSticky,C="".concat(Wt,"-cell"),$=o(G,["supportSticky","allColumnsFixedLeft"]),Be=$.supportSticky,je=$.allColumnsFixedLeft,xt=rt(br,$r,cn,Ce,Gr,Dn),bt=(0,se.Z)(xt,2),Jt=bt[0],Ar=bt[1],xr={},nn=typeof Fn=="number"&&Be,xn=typeof ln=="number"&&Be;nn&&(xr.position="sticky",xr.left=Fn),xn&&(xr.position="sticky",xr.right=ln);var Xr=(Ee=(et=(st=Ar==null?void 0:Ar.colSpan)!==null&&st!==void 0?st:c.colSpan)!==null&&et!==void 0?et:ir)!==null&&Ee!==void 0?Ee:1,dn=(gt=(ht=(Ut=Ar==null?void 0:Ar.rowSpan)!==null&&Ut!==void 0?Ut:c.rowSpan)!==null&&ht!==void 0?ht:Ii)!==null&>!==void 0?gt:1,kn=lr(ni,dn),Zn=(0,se.Z)(kn,2),bi=Zn[0],En=Zn[1],pi=function(si){var Ha;br&&En(ni,ni+dn-1),c==null||(Ha=c.onMouseEnter)===null||Ha===void 0||Ha.call(c,si)},Ji=function(si){var Ha;br&&En(-1,-1),c==null||(Ha=c.onMouseLeave)===null||Ha===void 0||Ha.call(c,si)};if(Xr===0||dn===0)return null;var Ki=($t=c.title)!==null&&$t!==void 0?$t:qt({rowType:Mr,ellipsis:wt,children:Jt}),Sa=I()(C,ur,(sr={},(0,ae.Z)(sr,"".concat(C,"-fix-left"),nn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-left-first"),An&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-left-last"),rn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-left-all"),rn&&je&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-right"),xn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-right-first"),Cn&&Be),(0,ae.Z)(sr,"".concat(C,"-fix-right-last"),ai&&Be),(0,ae.Z)(sr,"".concat(C,"-ellipsis"),wt),(0,ae.Z)(sr,"".concat(C,"-with-append"),Li),(0,ae.Z)(sr,"".concat(C,"-fix-sticky"),(nn||xn)&&w&&Be),(0,ae.Z)(sr,"".concat(C,"-row-hover"),!Ar&&bi),sr),c.className,Ar==null?void 0:Ar.className),Ia={};It&&(Ia.textAlign=It);var Xi=(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},xr),c.style),Ia),Ar==null?void 0:Ar.style),Ta=Jt;return(0,xe.Z)(Ta)==="object"&&!Array.isArray(Ta)&&!O.isValidElement(Ta)&&(Ta=null),wt&&(rn||Cn)&&(Ta=O.createElement("span",{className:"".concat(C,"-content")},Ta)),O.createElement(ze,(0,L.Z)({},Ar,c,{className:Sa,style:Xi,title:Ki,scope:jt,onMouseEnter:pi,onMouseLeave:Ji,colSpan:Xr!==1?Xr:null,rowSpan:dn!==1?dn:null}),Li,Ta)}var Er=O.memo(Ze);function Cr(ye,Ee,et,st,gt,ht){var Ut=et[ye]||{},$t=et[Ee]||{},sr,ze;Ut.fixed==="left"?sr=st.left[gt==="rtl"?Ee:ye]:$t.fixed==="right"&&(ze=st.right[gt==="rtl"?ye:Ee]);var Ce=!1,wt=!1,jt=!1,Wt=!1,ur=et[Ee+1],It=et[ye-1],br=!(ht!=null&&ht.children);if(gt==="rtl"){if(sr!==void 0){var Gr=It&&It.fixed==="left";Wt=!Gr&&br}else if(ze!==void 0){var $r=ur&&ur.fixed==="right";jt=!$r&&br}}else if(sr!==void 0){var cn=ur&&ur.fixed==="left";Ce=!cn&&br}else if(ze!==void 0){var Dn=It&&It.fixed==="right";wt=!Dn&&br}return{fixLeft:sr,fixRight:ze,lastFixLeft:Ce,firstFixRight:wt,lastFixRight:jt,firstFixLeft:Wt,isSticky:st.isSticky}}var Kr=O.createContext({}),_r=Kr;function Me(ye){var Ee=ye.className,et=ye.index,st=ye.children,gt=ye.colSpan,ht=gt===void 0?1:gt,Ut=ye.rowSpan,$t=ye.align,sr=o(G,["prefixCls","direction"]),ze=sr.prefixCls,Ce=sr.direction,wt=O.useContext(_r),jt=wt.scrollColumnIndex,Wt=wt.stickyOffsets,ur=wt.flattenColumns,It=wt.columns,br=et+ht-1,Gr=br+1===jt?ht+1:ht,$r=Cr(et,et+Gr-1,ur,Wt,Ce,It==null?void 0:It[et]);return O.createElement(Er,(0,L.Z)({className:Ee,index:et,component:"td",prefixCls:ze,record:null,dataIndex:null,align:$t,colSpan:Gr,rowSpan:Ut,render:function(){return st}},$r))}var Tt=g(19149),z=["children"];function v(ye){var Ee=ye.children,et=(0,Tt.Z)(ye,z);return O.createElement("tr",et,Ee)}function f(ye){var Ee=ye.children;return Ee}f.Row=v,f.Cell=Me;var D=f;function de(ye){var Ee=ye.children,et=ye.stickyOffsets,st=ye.flattenColumns,gt=ye.columns,ht=o(G,"prefixCls"),Ut=st.length-1,$t=st[Ut],sr=O.useMemo(function(){return{stickyOffsets:et,flattenColumns:st,scrollColumnIndex:$t!=null&&$t.scrollbar?Ut:null,columns:gt}},[$t,st,Ut,et,gt]);return O.createElement(_r.Provider,{value:sr},O.createElement("tfoot",{className:"".concat(ht,"-summary")},Ee))}var W=V(de),P=D,te=g(80764),Ie=g(29301),Te=g(48886),Se=g(24387),Ge=g(59055),ft=g(36994);function Ke(ye,Ee,et,st,gt,ht,Ut){ye.push({record:Ee,indent:et,index:Ut});var $t=ht(Ee),sr=gt==null?void 0:gt.has($t);if(Ee&&Array.isArray(Ee[st])&&sr)for(var ze=0;ze<Ee[st].length;ze+=1)Ke(ye,Ee[st][ze],et+1,st,gt,ht,ze)}function Xe(ye,Ee,et,st){var gt=O.useMemo(function(){if(et!=null&&et.size){for(var ht=[],Ut=0;Ut<(ye==null?void 0:ye.length);Ut+=1){var $t=ye[Ut];Ke(ht,$t,0,Ee,et,st,Ut)}return ht}return ye==null?void 0:ye.map(function(sr,ze){return{record:sr,indent:0,index:ze}})},[ye,Ee,et,st]);return gt}function At(ye){var Ee=ye.prefixCls,et=ye.children,st=ye.component,gt=ye.cellComponent,ht=ye.className,Ut=ye.expanded,$t=ye.colSpan,sr=ye.isEmpty,ze=o(G,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ce=ze.scrollbarSize,wt=ze.fixHeader,jt=ze.fixColumn,Wt=ze.componentWidth,ur=ze.horizonScroll,It=et;return(sr?ur&&Wt:jt)&&(It=O.createElement("div",{style:{width:Wt-(wt?Ce:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ee,"-expanded-row-fixed")},It)),O.createElement(st,{className:ht,style:{display:Ut?null:"none"}},O.createElement(Er,{component:gt,prefixCls:Ee,colSpan:$t},It))}var We=At;function $e(ye,Ee,et,st){var gt=o(G,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ht=gt.flattenColumns,Ut=gt.expandableType,$t=gt.expandedKeys,sr=gt.childrenColumnName,ze=gt.onTriggerExpand,Ce=gt.rowExpandable,wt=gt.onRow,jt=gt.expandRowByClick,Wt=gt.rowClassName,ur=Ut==="nest",It=Ut==="row"&&(!Ce||Ce(ye)),br=It||ur,Gr=$t&&$t.has(Ee),$r=sr&&ye&&ye[sr],cn=(0,te.useEvent)(ze),Dn=wt==null?void 0:wt(ye,et),ni=Dn==null?void 0:Dn.onClick,Mr=function(ln){jt&&br&&ze(ye,ln);for(var An=arguments.length,rn=new Array(An>1?An-1:0),Cn=1;Cn<An;Cn++)rn[Cn-1]=arguments[Cn];ni==null||ni.apply(void 0,[ln].concat(rn))},ir;typeof Wt=="string"?ir=Wt:typeof Wt=="function"&&(ir=Wt(ye,et,st));var Ii=pe(ht);return(0,Le.Z)((0,Le.Z)({},gt),{},{columnsKey:Ii,nestExpandable:ur,expanded:Gr,hasNestChildren:$r,record:ye,onTriggerExpand:cn,rowSupportExpand:It,expandable:br,rowProps:(0,Le.Z)((0,Le.Z)({},Dn),{},{className:I()(ir,Dn==null?void 0:Dn.className),onClick:Mr})})}function Bt(ye,Ee,et,st,gt){var ht=ye.record,Ut=ye.prefixCls,$t=ye.columnsKey,sr=ye.fixedInfoList,ze=ye.expandIconColumnIndex,Ce=ye.nestExpandable,wt=ye.indentSize,jt=ye.expandIcon,Wt=ye.expanded,ur=ye.hasNestChildren,It=ye.onTriggerExpand,br=$t[et],Gr=sr[et],$r;et===(ze||0)&&Ce&&($r=O.createElement(O.Fragment,null,O.createElement("span",{style:{paddingLeft:"".concat(wt*st,"px")},className:"".concat(Ut,"-row-indent indent-level-").concat(st)}),jt({prefixCls:Ut,expanded:Wt,expandable:ur,record:ht,onExpand:It})));var cn;return Ee.onCell&&(cn=Ee.onCell(ht,gt)),{key:br,fixedInfo:Gr,appendCellNode:$r,additionalCellProps:cn||{}}}function Kt(ye){var Ee=ye.className,et=ye.style,st=ye.record,gt=ye.index,ht=ye.renderIndex,Ut=ye.rowKey,$t=ye.indent,sr=$t===void 0?0:$t,ze=ye.rowComponent,Ce=ye.cellComponent,wt=ye.scopeCellComponent,jt=$e(st,Ut,gt,sr),Wt=jt.prefixCls,ur=jt.flattenColumns,It=jt.expandedRowClassName,br=jt.expandedRowRender,Gr=jt.rowProps,$r=jt.expanded,cn=jt.rowSupportExpand,Dn=O.useState(!1),ni=(0,se.Z)(Dn,2),Mr=ni[0],ir=ni[1];O.useEffect(function(){$r&&ir(!0)},[$r]);var Ii=O.createElement(ze,(0,L.Z)({},Gr,{"data-row-key":Ut,className:I()(Ee,"".concat(Wt,"-row"),"".concat(Wt,"-row-level-").concat(sr),Gr==null?void 0:Gr.className),style:(0,Le.Z)((0,Le.Z)({},et),Gr==null?void 0:Gr.style)}),ur.map(function(rn,Cn){var ai=rn.render,Li=rn.dataIndex,He=rn.className,c=Bt(jt,rn,Cn,sr,gt),w=c.key,C=c.fixedInfo,$=c.appendCellNode,Be=c.additionalCellProps;return O.createElement(Er,(0,L.Z)({className:He,ellipsis:rn.ellipsis,align:rn.align,scope:rn.rowScope,component:rn.rowScope?wt:Ce,prefixCls:Wt,key:w,record:st,index:gt,renderIndex:ht,dataIndex:Li,render:ai,shouldCellUpdate:rn.shouldCellUpdate},C,{appendNode:$,additionalProps:Be}))})),Fn;if(cn&&(Mr||$r)){var ln=br(st,gt,sr+1,$r),An=It&&It(st,gt,sr);Fn=O.createElement(We,{expanded:$r,className:I()("".concat(Wt,"-expanded-row"),"".concat(Wt,"-expanded-row-level-").concat(sr+1),An),prefixCls:Wt,component:ze,cellComponent:Ce,colSpan:ur.length,isEmpty:!1},ln)}return O.createElement(O.Fragment,null,Ii,Fn)}Kt.displayName="BodyRow";var Mt=V(Kt);function wr(ye){var Ee=ye.columnKey,et=ye.onColumnResize,st=O.useRef();return O.useEffect(function(){st.current&&et(Ee,st.current.offsetWidth)},[]),O.createElement(Ie.Z,{data:Ee},O.createElement("td",{ref:st,style:{padding:0,border:0,height:0}},O.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function vr(ye){var Ee=ye.prefixCls,et=ye.columnsKey,st=ye.onColumnResize;return O.createElement("tr",{"aria-hidden":"true",className:"".concat(Ee,"-measure-row"),style:{height:0,fontSize:0}},O.createElement(Ie.Z.Collection,{onBatchResize:function(ht){ht.forEach(function(Ut){var $t=Ut.data,sr=Ut.size;st($t,sr.offsetWidth)})}},et.map(function(gt){return O.createElement(wr,{key:gt,columnKey:gt,onColumnResize:st})})))}function re(ye){var Ee=ye.data,et=ye.measureColumnWidth,st=o(G,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),gt=st.prefixCls,ht=st.getComponent,Ut=st.onColumnResize,$t=st.flattenColumns,sr=st.getRowKey,ze=st.expandedKeys,Ce=st.childrenColumnName,wt=st.emptyNode,jt=Xe(Ee,Ce,ze,sr),Wt=O.useRef({renderWithProps:!1}),ur=ht(["body","wrapper"],"tbody"),It=ht(["body","row"],"tr"),br=ht(["body","cell"],"td"),Gr=ht(["body","cell"],"th"),$r;Ee.length?$r=jt.map(function(Dn,ni){var Mr=Dn.record,ir=Dn.indent,Ii=Dn.index,Fn=sr(Mr,ni);return O.createElement(Mt,{key:Fn,rowKey:Fn,record:Mr,index:ni,renderIndex:Ii,rowComponent:It,cellComponent:br,scopeCellComponent:Gr,getRowKey:sr,indent:ir})}):$r=O.createElement(We,{expanded:!0,className:"".concat(gt,"-placeholder"),prefixCls:gt,component:It,cellComponent:br,colSpan:$t.length,isEmpty:!0},wt);var cn=pe($t);return O.createElement(_.Provider,{value:Wt.current},O.createElement(ur,{className:"".concat(gt,"-tbody")},et&&O.createElement(vr,{prefixCls:gt,columnsKey:cn,onColumnResize:Ut}),$r))}re.displayName="Body";var le=V(re),rr=["expandable"],Ue="RC_TABLE_INTERNAL_COL_DEFINE";function ot(ye){var Ee=ye.expandable,et=(0,Tt.Z)(ye,rr),st;return"expandable"in ye?st=(0,Le.Z)((0,Le.Z)({},et),Ee):st=et,st.showExpandColumn===!1&&(st.expandIconColumnIndex=-1),st}var Yr=["columnType"];function St(ye){for(var Ee=ye.colWidths,et=ye.columns,st=ye.columCount,gt=[],ht=st||et.length,Ut=!1,$t=ht-1;$t>=0;$t-=1){var sr=Ee[$t],ze=et&&et[$t],Ce=ze&&ze[Ue];if(sr||Ce||Ut){var wt=Ce||{},jt=wt.columnType,Wt=(0,Tt.Z)(wt,Yr);gt.unshift(O.createElement("col",(0,L.Z)({key:$t,style:{width:sr}},Wt))),Ut=!0}}return O.createElement("colgroup",null,gt)}var Vt=St,Zt=g(26390),nt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ct(ye,Ee){return(0,O.useMemo)(function(){for(var et=[],st=0;st<Ee;st+=1){var gt=ye[st];if(gt!==void 0)et[st]=gt;else return null}return et},[ye.join("_"),Ee])}var dt=O.forwardRef(function(ye,Ee){var et=ye.className,st=ye.noData,gt=ye.columns,ht=ye.flattenColumns,Ut=ye.colWidths,$t=ye.columCount,sr=ye.stickyOffsets,ze=ye.direction,Ce=ye.fixHeader,wt=ye.stickyTopOffset,jt=ye.stickyBottomOffset,Wt=ye.stickyClassName,ur=ye.onScroll,It=ye.maxContentScroll,br=ye.children,Gr=(0,Tt.Z)(ye,nt),$r=o(G,["prefixCls","scrollbarSize","isSticky"]),cn=$r.prefixCls,Dn=$r.scrollbarSize,ni=$r.isSticky,Mr=ni&&!Ce?0:Dn,ir=O.useRef(null),Ii=O.useCallback(function(He){(0,p.mH)(Ee,He),(0,p.mH)(ir,He)},[]);O.useEffect(function(){var He;function c(w){var C=w,$=C.currentTarget,Be=C.deltaX;Be&&(ur({currentTarget:$,scrollLeft:$.scrollLeft+Be}),w.preventDefault())}return(He=ir.current)===null||He===void 0||He.addEventListener("wheel",c),function(){var w;(w=ir.current)===null||w===void 0||w.removeEventListener("wheel",c)}},[]);var Fn=O.useMemo(function(){return ht.every(function(He){return He.width})},[ht]),ln=ht[ht.length-1],An={fixed:ln?ln.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(cn,"-cell-scrollbar")}}},rn=(0,O.useMemo)(function(){return Mr?[].concat((0,Zt.Z)(gt),[An]):gt},[Mr,gt]),Cn=(0,O.useMemo)(function(){return Mr?[].concat((0,Zt.Z)(ht),[An]):ht},[Mr,ht]),ai=(0,O.useMemo)(function(){var He=sr.right,c=sr.left;return(0,Le.Z)((0,Le.Z)({},sr),{},{left:ze==="rtl"?[].concat((0,Zt.Z)(c.map(function(w){return w+Mr})),[0]):c,right:ze==="rtl"?He:[].concat((0,Zt.Z)(He.map(function(w){return w+Mr})),[0]),isSticky:ni})},[Mr,sr,ni]),Li=ct(Ut,$t);return O.createElement("div",{style:(0,Le.Z)({overflow:"hidden"},ni?{top:wt,bottom:jt}:{}),ref:Ii,className:I()(et,(0,ae.Z)({},Wt,!!Wt))},O.createElement("table",{style:{tableLayout:"fixed",visibility:st||Li?null:"hidden"}},(!st||!It||Fn)&&O.createElement(Vt,{colWidths:Li?[].concat((0,Zt.Z)(Li),[Mr]):[],columCount:$t+1,columns:Cn}),br((0,Le.Z)((0,Le.Z)({},Gr),{},{stickyOffsets:ai,columns:rn,flattenColumns:Cn}))))});dt.displayName="FixedHolder";var Xt=O.memo(dt);function Re(ye){var Ee=ye.cells,et=ye.stickyOffsets,st=ye.flattenColumns,gt=ye.rowComponent,ht=ye.cellComponent,Ut=ye.tdCellComponent,$t=ye.onHeaderRow,sr=ye.index,ze=o(G,["prefixCls","direction"]),Ce=ze.prefixCls,wt=ze.direction,jt;$t&&(jt=$t(Ee.map(function(ur){return ur.column}),sr));var Wt=pe(Ee.map(function(ur){return ur.column}));return O.createElement(gt,jt,Ee.map(function(ur,It){var br=ur.column,Gr=Cr(ur.colStart,ur.colEnd,st,et,wt,br),$r;return br&&br.onHeaderCell&&($r=ur.column.onHeaderCell(br)),O.createElement(Er,(0,L.Z)({},ur,{scope:br.title?ur.colSpan>1?"colgroup":"col":null,ellipsis:br.ellipsis,align:br.align,component:br.title?ht:Ut,prefixCls:Ce,key:Wt[It]},Gr,{additionalProps:$r,rowType:"header"}))}))}Re.displayName="HeaderRow";var fn=Re;function kt(ye){var Ee=[];function et(Ut,$t){var sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ee[sr]=Ee[sr]||[];var ze=$t,Ce=Ut.filter(Boolean).map(function(wt){var jt={key:wt.key,className:wt.className||"",children:wt.title,column:wt,colStart:ze},Wt=1,ur=wt.children;return ur&&ur.length>0&&(Wt=et(ur,ze,sr+1).reduce(function(It,br){return It+br},0),jt.hasSubColumns=!0),"colSpan"in wt&&(Wt=wt.colSpan),"rowSpan"in wt&&(jt.rowSpan=wt.rowSpan),jt.colSpan=Wt,jt.colEnd=jt.colStart+Wt-1,Ee[sr].push(jt),ze+=Wt,Wt});return Ce}et(ye,0);for(var st=Ee.length,gt=function($t){Ee[$t].forEach(function(sr){!("rowSpan"in sr)&&!sr.hasSubColumns&&(sr.rowSpan=st-$t)})},ht=0;ht<st;ht+=1)gt(ht);return Ee}function Nn(ye){var Ee=ye.stickyOffsets,et=ye.columns,st=ye.flattenColumns,gt=ye.onHeaderRow,ht=o(G,["prefixCls","getComponent"]),Ut=ht.prefixCls,$t=ht.getComponent,sr=O.useMemo(function(){return kt(et)},[et]),ze=$t(["header","wrapper"],"thead"),Ce=$t(["header","row"],"tr"),wt=$t(["header","cell"],"th"),jt=$t(["header","cell"],"td");return O.createElement(ze,{className:"".concat(Ut,"-thead")},sr.map(function(Wt,ur){var It=O.createElement(fn,{key:ur,flattenColumns:st,cells:Wt,stickyOffsets:Ee,rowComponent:Ce,cellComponent:wt,tdCellComponent:jt,onHeaderRow:gt,index:ur});return It}))}var Jn=V(Nn),vi=g(38298);function Fi(ye){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ee=="number"?Ee:Ee.endsWith("%")?ye*parseFloat(Ee)/100:null}function Mn(ye,Ee){return O.useMemo(function(){if(Ee&&Ee>0){var et=0,st=0;ye.forEach(function(ze){var Ce=Fi(Ee,ze.width);Ce?et+=Ce:st+=1});var gt=Ee-et,ht=st,Ut=gt/st,$t=0,sr=ye.map(function(ze){var Ce=(0,Le.Z)({},ze),wt=Fi(Ee,Ce.width);if(wt)Ce.width=wt;else{var jt=Math.floor(Ut);Ce.width=ht===1?gt:jt,gt-=jt,ht-=1}return $t+=Ce.width,Ce});return[sr,$t]}return[ye,Ee]},[ye,Ee])}var Hn=["children"],Yt=["fixed"];function kr(ye){return(0,vi.Z)(ye).filter(function(Ee){return O.isValidElement(Ee)}).map(function(Ee){var et=Ee.key,st=Ee.props,gt=st.children,ht=(0,Tt.Z)(st,Hn),Ut=(0,Le.Z)({key:et},ht);return gt&&(Ut.children=kr(gt)),Ut})}function tn(ye){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ye.filter(function(et){return et&&(0,xe.Z)(et)==="object"}).reduce(function(et,st,gt){var ht=st.fixed,Ut=ht===!0?"left":ht,$t="".concat(Ee,"-").concat(gt),sr=st.children;return sr&&sr.length>0?[].concat((0,Zt.Z)(et),(0,Zt.Z)(tn(sr,$t).map(function(ze){return(0,Le.Z)({fixed:Ut},ze)}))):[].concat((0,Zt.Z)(et),[(0,Le.Z)((0,Le.Z)({key:$t},st),{},{fixed:Ut})])},[])}function Nt(ye){for(var Ee=!0,et=0;et<ye.length;et+=1){var st=ye[et];if(Ee&&st.fixed!=="left")Ee=!1;else if(!Ee&&st.fixed==="left"){warning(!1,"Index ".concat(et-1," of `columns` missing `fixed='left'` prop."));break}}for(var gt=!0,ht=ye.length-1;ht>=0;ht-=1){var Ut=ye[ht];if(gt&&Ut.fixed!=="right")gt=!1;else if(!gt&&Ut.fixed==="right"){warning(!1,"Index ".concat(ht+1," of `columns` missing `fixed='right'` prop."));break}}}function _t(ye){return ye.map(function(Ee){var et=Ee.fixed,st=(0,Tt.Z)(Ee,Yt),gt=et;return et==="left"?gt="right":et==="right"&&(gt="left"),(0,Le.Z)({fixed:gt},st)})}function Ir(ye,Ee){var et=ye.prefixCls,st=ye.columns,gt=ye.children,ht=ye.expandable,Ut=ye.expandedKeys,$t=ye.columnTitle,sr=ye.getRowKey,ze=ye.onTriggerExpand,Ce=ye.expandIcon,wt=ye.rowExpandable,jt=ye.expandIconColumnIndex,Wt=ye.direction,ur=ye.expandRowByClick,It=ye.columnWidth,br=ye.fixed,Gr=ye.scrollWidth,$r=O.useMemo(function(){return st||kr(gt)},[st,gt]),cn=O.useMemo(function(){if(ht){var ln,An=$r.slice();if(!An.includes(we)){var rn=jt||0;rn>=0&&An.splice(rn,0,we)}var Cn=An.indexOf(we);An=An.filter(function(c,w){return c!==we||w===Cn});var ai=$r[Cn],Li;(br==="left"||br)&&!jt?Li="left":(br==="right"||br)&&jt===$r.length?Li="right":Li=ai?ai.fixed:null;var He=(ln={},(0,ae.Z)(ln,Ue,{className:"".concat(et,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ae.Z)(ln,"title",$t),(0,ae.Z)(ln,"fixed",Li),(0,ae.Z)(ln,"className","".concat(et,"-row-expand-icon-cell")),(0,ae.Z)(ln,"width",It),(0,ae.Z)(ln,"render",function(w,C,$){var Be=sr(C,$),je=Ut.has(Be),xt=wt?wt(C):!0,bt=Ce({prefixCls:et,expanded:je,expandable:xt,record:C,onExpand:ze});return ur?O.createElement("span",{onClick:function(Ar){return Ar.stopPropagation()}},bt):bt}),ln);return An.map(function(c){return c===we?He:c})}return $r.filter(function(c){return c!==we})},[ht,$r,sr,Ut,Ce,Wt]),Dn=O.useMemo(function(){var ln=cn;return Ee&&(ln=Ee(ln)),ln.length||(ln=[{render:function(){return null}}]),ln},[Ee,cn,Wt]),ni=O.useMemo(function(){return Wt==="rtl"?_t(tn(Dn)):tn(Dn)},[Dn,Wt,Gr]),Mr=Mn(ni,Gr),ir=(0,se.Z)(Mr,2),Ii=ir[0],Fn=ir[1];return[Dn,Ii,Fn]}var Dr=Ir;function In(ye){var Ee,et=ye.prefixCls,st=ye.record,gt=ye.onExpand,ht=ye.expanded,Ut=ye.expandable,$t="".concat(et,"-row-expand-icon");if(!Ut)return O.createElement("span",{className:I()($t,"".concat(et,"-row-spaced"))});var sr=function(Ce){gt(st,Ce),Ce.stopPropagation()};return O.createElement("span",{className:I()($t,(Ee={},(0,ae.Z)(Ee,"".concat(et,"-row-expanded"),ht),(0,ae.Z)(Ee,"".concat(et,"-row-collapsed"),!ht),Ee)),onClick:sr})}function qr(ye,Ee,et){var st=[];function gt(ht){(ht||[]).forEach(function(Ut,$t){st.push(Ee(Ut,$t)),gt(Ut[et])})}return gt(ye),st}function Sn(ye,Ee,et){var st=ot(ye),gt=st.expandIcon,ht=st.expandedRowKeys,Ut=st.defaultExpandedRowKeys,$t=st.defaultExpandAllRows,sr=st.expandedRowRender,ze=st.onExpand,Ce=st.onExpandedRowsChange,wt=st.childrenColumnName,jt=gt||In,Wt=wt||"children",ur=O.useMemo(function(){return sr?"row":ye.expandable&&ye.internalHooks===Fe&&ye.expandable.__PARENT_RENDER_ICON__||Ee.some(function(ni){return ni&&(0,xe.Z)(ni)==="object"&&ni[Wt]})?"nest":!1},[!!sr,Ee]),It=O.useState(function(){return Ut||($t?qr(Ee,et,Wt):[])}),br=(0,se.Z)(It,2),Gr=br[0],$r=br[1],cn=O.useMemo(function(){return new Set(ht||Gr||[])},[ht,Gr]),Dn=O.useCallback(function(ni){var Mr=et(ni,Ee.indexOf(ni)),ir,Ii=cn.has(Mr);Ii?(cn.delete(Mr),ir=(0,Zt.Z)(cn)):ir=[].concat((0,Zt.Z)(cn),[Mr]),$r(ir),ze&&ze(!Ii,ni),Ce&&Ce(ir)},[et,cn,Ee,ze,Ce]);return[st,ur,cn,jt,Wt,Dn]}function hn(ye,Ee,et,st){var gt=ye.map(function(ht,Ut){return Cr(Ut,Ut,ye,Ee,et,st==null?void 0:st[Ut])});return(0,_e.Z)(function(){return gt},[gt],function(ht,Ut){return!(0,Y.Z)(ht,Ut)})}function $n(ye){var Ee=(0,O.useRef)(ye),et=(0,O.useState)({}),st=(0,se.Z)(et,2),gt=st[1],ht=(0,O.useRef)(null),Ut=(0,O.useRef)([]);function $t(sr){Ut.current.push(sr);var ze=Promise.resolve();ht.current=ze,ze.then(function(){if(ht.current===ze){var Ce=Ut.current,wt=Ee.current;Ut.current=[],Ce.forEach(function(jt){Ee.current=jt(Ee.current)}),ht.current=null,wt!==Ee.current&>({})}})}return(0,O.useEffect)(function(){return function(){ht.current=null}},[]),[Ee.current,$t]}function ri(ye){var Ee=(0,O.useRef)(ye||null),et=(0,O.useRef)();function st(){window.clearTimeout(et.current)}function gt(Ut){Ee.current=Ut,st(),et.current=window.setTimeout(function(){Ee.current=null,et.current=void 0},100)}function ht(){return Ee.current}return(0,O.useEffect)(function(){return st},[]),[gt,ht]}function Hr(){var ye=O.useState(-1),Ee=(0,se.Z)(ye,2),et=Ee[0],st=Ee[1],gt=O.useState(-1),ht=(0,se.Z)(gt,2),Ut=ht[0],$t=ht[1],sr=O.useCallback(function(ze,Ce){st(ze),$t(Ce)},[]);return[et,Ut,sr]}var zr=g(87746),Tn=(0,zr.Z)()?window:null;function Bn(ye,Ee){var et=(0,xe.Z)(ye)==="object"?ye:{},st=et.offsetHeader,gt=st===void 0?0:st,ht=et.offsetSummary,Ut=ht===void 0?0:ht,$t=et.offsetScroll,sr=$t===void 0?0:$t,ze=et.getContainer,Ce=ze===void 0?function(){return Tn}:ze,wt=Ce()||Tn;return O.useMemo(function(){var jt=!!ye;return{isSticky:jt,stickyClassName:jt?"".concat(Ee,"-sticky-holder"):"",offsetHeader:gt,offsetSummary:Ut,offsetScroll:sr,container:wt}},[sr,gt,Ut,Ee,wt])}function Qn(ye,Ee,et){var st=(0,O.useMemo)(function(){for(var gt=[],ht=[],Ut=0,$t=0,sr=0;sr<Ee;sr+=1)if(et==="rtl"){ht[sr]=$t,$t+=ye[sr]||0;var ze=Ee-sr-1;gt[ze]=Ut,Ut+=ye[ze]||0}else{gt[sr]=Ut,Ut+=ye[sr]||0;var Ce=Ee-sr-1;ht[Ce]=$t,$t+=ye[Ce]||0}return{left:gt,right:ht}},[ye,Ee,et]);return st}var Xn=Qn;function Hi(ye){var Ee=ye.className,et=ye.children;return O.createElement("div",{className:Ee},et)}var fi=Hi,wn=g(8178),hr=g(21783),yr=function(Ee,et){var st,gt,ht=Ee.scrollBodyRef,Ut=Ee.onScroll,$t=Ee.offsetScroll,sr=Ee.container,ze=o(G,"prefixCls"),Ce=((st=ht.current)===null||st===void 0?void 0:st.scrollWidth)||0,wt=((gt=ht.current)===null||gt===void 0?void 0:gt.clientWidth)||0,jt=Ce&&wt*(wt/Ce),Wt=O.useRef(),ur=$n({scrollLeft:0,isHiddenScrollBar:!1}),It=(0,se.Z)(ur,2),br=It[0],Gr=It[1],$r=O.useRef({delta:0,x:0}),cn=O.useState(!1),Dn=(0,se.Z)(cn,2),ni=Dn[0],Mr=Dn[1],ir=function(){Mr(!1)},Ii=function(Cn){Cn.persist(),$r.current.delta=Cn.pageX-br.scrollLeft,$r.current.x=0,Mr(!0),Cn.preventDefault()},Fn=function(Cn){var ai,Li=Cn||((ai=window)===null||ai===void 0?void 0:ai.event),He=Li.buttons;if(!ni||He===0){ni&&Mr(!1);return}var c=$r.current.x+Cn.pageX-$r.current.x-$r.current.delta;c<=0&&(c=0),c+jt>=wt&&(c=wt-jt),Ut({scrollLeft:c/wt*(Ce+2)}),$r.current.x=Cn.pageX},ln=function(){if(ht.current){var Cn=(0,hr.os)(ht.current).top,ai=Cn+ht.current.offsetHeight,Li=sr===window?document.documentElement.scrollTop+window.innerHeight:(0,hr.os)(sr).top+sr.clientHeight;ai-(0,Ge.Z)()<=Li||Cn>=Li-$t?Gr(function(He){return(0,Le.Z)((0,Le.Z)({},He),{},{isHiddenScrollBar:!0})}):Gr(function(He){return(0,Le.Z)((0,Le.Z)({},He),{},{isHiddenScrollBar:!1})})}},An=function(Cn){Gr(function(ai){return(0,Le.Z)((0,Le.Z)({},ai),{},{scrollLeft:Cn/Ce*wt||0})})};return O.useImperativeHandle(et,function(){return{setScrollLeft:An}}),O.useEffect(function(){var rn=(0,wn.Z)(document.body,"mouseup",ir,!1),Cn=(0,wn.Z)(document.body,"mousemove",Fn,!1);return ln(),function(){rn.remove(),Cn.remove()}},[jt,ni]),O.useEffect(function(){var rn=(0,wn.Z)(sr,"scroll",ln,!1),Cn=(0,wn.Z)(window,"resize",ln,!1);return function(){rn.remove(),Cn.remove()}},[sr]),O.useEffect(function(){br.isHiddenScrollBar||Gr(function(rn){var Cn=ht.current;return Cn?(0,Le.Z)((0,Le.Z)({},rn),{},{scrollLeft:Cn.scrollLeft/Cn.scrollWidth*Cn.clientWidth}):rn})},[br.isHiddenScrollBar]),Ce<=wt||!jt||br.isHiddenScrollBar?null:O.createElement("div",{style:{height:(0,Ge.Z)(),width:wt,bottom:$t},className:"".concat(ze,"-sticky-scroll")},O.createElement("div",{onMouseDown:Ii,ref:Wt,className:I()("".concat(ze,"-sticky-scroll-bar"),(0,ae.Z)({},"".concat(ze,"-sticky-scroll-bar-active"),ni)),style:{width:"".concat(jt,"px"),transform:"translate3d(".concat(br.scrollLeft,"px, 0, 0)")}}))},Pr=O.forwardRef(yr);function Zr(ye){return null}var Qr=Zr;function on(ye){return null}var en=on,jn="rc-table",qn=[],oi={};function Qi(){return"No Data"}function Ri(ye){var Ee,et=(0,Le.Z)({rowKey:"key",prefixCls:jn,emptyText:Qi},ye),st=et.prefixCls,gt=et.className,ht=et.rowClassName,Ut=et.style,$t=et.data,sr=et.rowKey,ze=et.scroll,Ce=et.tableLayout,wt=et.direction,jt=et.title,Wt=et.footer,ur=et.summary,It=et.caption,br=et.id,Gr=et.showHeader,$r=et.components,cn=et.emptyText,Dn=et.onRow,ni=et.onHeaderRow,Mr=et.internalHooks,ir=et.transformColumns,Ii=et.internalRefs,Fn=et.tailor,ln=et.sticky,An=$t||qn,rn=!!An.length,Cn=Mr===Fe,ai=O.useCallback(function($a,As){return(0,oe.Z)($r,$a)||As},[$r]),Li=O.useMemo(function(){return typeof sr=="function"?sr:function($a){var As=$a&&$a[sr];return As}},[sr]),He=ai(["body"]),c=Hr(),w=(0,se.Z)(c,3),C=w[0],$=w[1],Be=w[2],je=Sn(et,An,Li),xt=(0,se.Z)(je,6),bt=xt[0],Jt=xt[1],Ar=xt[2],xr=xt[3],nn=xt[4],xn=xt[5],Xr=ze==null?void 0:ze.x,dn=O.useState(0),kn=(0,se.Z)(dn,2),Zn=kn[0],bi=kn[1],En=Dr((0,Le.Z)((0,Le.Z)((0,Le.Z)({},et),bt),{},{expandable:!!bt.expandedRowRender,columnTitle:bt.columnTitle,expandedKeys:Ar,getRowKey:Li,onTriggerExpand:xn,expandIcon:xr,expandIconColumnIndex:bt.expandIconColumnIndex,direction:wt,scrollWidth:Cn&&Fn&&typeof Xr=="number"?Xr:null}),Cn?ir:null),pi=(0,se.Z)(En,3),Ji=pi[0],Ki=pi[1],Sa=pi[2],Ia=Sa!=null?Sa:Xr,Xi=O.useMemo(function(){return{columns:Ji,flattenColumns:Ki}},[Ji,Ki]),Ta=O.useRef(),Ba=O.useRef(),si=O.useRef(),Ha=O.useRef(),os=O.useRef(),sa=O.useState(!1),ha=(0,se.Z)(sa,2),xa=ha[0],ja=ha[1],ls=O.useState(!1),da=(0,se.Z)(ls,2),Is=da[0],bs=da[1],Hs=$n(new Map),Zs=(0,se.Z)(Hs,2),Xs=Zs[0],Wo=Zs[1],$o=pe(Ki),ho=$o.map(function($a){return Xs.get($a)}),oo=O.useMemo(function(){return ho},[ho.join("_")]),ro=Xn(oo,Ki.length,wt),$s=ze&&qe(ze.y),Ja=ze&&qe(Ia)||!!bt.fixed,al=Ja&&Ki.some(function($a){var As=$a.fixed;return As}),$l=O.useRef(),Vo=Bn(ln,st),Jo=Vo.isSticky,fu=Vo.offsetHeader,Iu=Vo.offsetSummary,Ma=Vo.offsetScroll,_s=Vo.stickyClassName,qa=Vo.container,Bs=O.useMemo(function(){return ur==null?void 0:ur(An)},[ur,An]),bo=($s||Jo)&&O.isValidElement(Bs)&&Bs.type===D&&Bs.props.fixed,Ro,po,Cl;$s&&(po={overflowY:"scroll",maxHeight:ze.y}),Ja&&(Ro={overflowX:"auto"},$s||(po={overflowY:"hidden"}),Cl={width:Ia===!0?"auto":Ia,minWidth:"100%"});var Ko=O.useCallback(function($a,As){(0,Te.Z)(Ta.current)&&Wo(function(zo){if(zo.get($a)!==As){var ll=new Map(zo);return ll.set($a,As),ll}return zo})},[]),Vl=ri(null),No=(0,se.Z)(Vl,2),Yl=No[0],$u=No[1];function hu($a,As){As&&(typeof As=="function"?As($a):As.scrollLeft!==$a&&(As.scrollLeft=$a,As.scrollLeft!==$a&&setTimeout(function(){As.scrollLeft=$a},0)))}var sl=(0,ke.Z)(function($a){var As=$a.currentTarget,zo=$a.scrollLeft,ll=wt==="rtl",Sl=typeof zo=="number"?zo:As.scrollLeft,Ru=As||oi;if(!$u()||$u()===Ru){var Ou;Yl(Ru),hu(Sl,Ba.current),hu(Sl,si.current),hu(Sl,os.current),hu(Sl,(Ou=$l.current)===null||Ou===void 0?void 0:Ou.setScrollLeft)}var Pu=As||Ba.current;if(Pu){var hl=Pu.scrollWidth,Il=Pu.clientWidth;if(hl===Il){ja(!1),bs(!1);return}ll?(ja(-Sl<hl-Il),bs(-Sl>0)):(ja(Sl>0),bs(Sl<hl-Il))}}),pu=function(){Ja&&si.current?sl({currentTarget:si.current}):(ja(!1),bs(!1))},Tu=function(As){var zo=As.width;zo!==Zn&&(pu(),bi(Ta.current?Ta.current.offsetWidth:zo))},Ku=O.useRef(!1);O.useEffect(function(){Ku.current&&pu()},[Ja,$t,Ji.length]),O.useEffect(function(){Ku.current=!0},[]);var mu=O.useState(0),zu=(0,se.Z)(mu,2),Nl=zu[0],Gu=zu[1],kl=O.useState(!0),gu=(0,se.Z)(kl,2),Io=gu[0],vu=gu[1];O.useEffect(function(){(!Fn||!Cn)&&(si.current instanceof Element?Gu((0,Ge.o)(si.current).width):Gu((0,Ge.o)(Ha.current).width)),vu((0,Se.G)("position","sticky"))},[]),O.useEffect(function(){Cn&&Ii&&(Ii.body.current=si.current)});var ko=O.useCallback(function($a){return O.createElement(O.Fragment,null,O.createElement(Jn,$a),bo==="top"&&O.createElement(W,$a,Bs))},[bo,Bs]),yc=O.useCallback(function($a){return O.createElement(W,$a,Bs)},[Bs]),Zu=ai(["table"],"table"),Oa=O.useMemo(function(){return Ce||(al?Ia==="max-content"?"auto":"fixed":$s||Jo||Ki.some(function($a){var As=$a.ellipsis;return As})?"fixed":"auto")},[$s,al,Ki,Ce,Jo]),Fu,Du={colWidths:oo,columCount:Ki.length,stickyOffsets:ro,onHeaderRow:ni,fixHeader:$s,scroll:ze},_l=O.useMemo(function(){return rn?null:typeof cn=="function"?cn():cn},[rn,cn]),Lu=O.createElement(le,{data:An,measureColumnWidth:$s||Ja||Jo}),yu=O.createElement(Vt,{colWidths:Ki.map(function($a){var As=$a.width;return As}),columns:Ki}),Xl=It!=null?O.createElement("caption",{className:"".concat(st,"-caption")},It):void 0,Jl=(0,ft.Z)(et,{data:!0}),Bl=(0,ft.Z)(et,{aria:!0});if($s||Jo){var Ho;typeof He=="function"?(Ho=He(An,{scrollbarSize:Nl,ref:si,onScroll:sl}),Du.colWidths=Ki.map(function($a,As){var zo=$a.width,ll=As===Ki.length-1?zo-Nl:zo;return typeof ll=="number"&&!Number.isNaN(ll)?ll:0})):Ho=O.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},Ro),po),onScroll:sl,ref:si,className:I()("".concat(st,"-body"))},O.createElement(Zu,(0,L.Z)({style:(0,Le.Z)((0,Le.Z)({},Cl),{},{tableLayout:Oa})},Bl),Xl,yu,Lu,!bo&&Bs&&O.createElement(W,{stickyOffsets:ro,flattenColumns:Ki,columns:Ji},Bs)));var ws=(0,Le.Z)((0,Le.Z)((0,Le.Z)({noData:!An.length,maxContentScroll:Ja&&Ia==="max-content"},Du),Xi),{},{direction:wt,stickyClassName:_s,onScroll:sl});Fu=O.createElement(O.Fragment,null,Gr!==!1&&O.createElement(Xt,(0,L.Z)({},ws,{stickyTopOffset:fu,className:"".concat(st,"-header"),ref:Ba}),ko),Ho,bo&&bo!=="top"&&O.createElement(Xt,(0,L.Z)({},ws,{stickyBottomOffset:Iu,className:"".concat(st,"-summary"),ref:os}),yc),Jo&&O.createElement(Pr,{ref:$l,offsetScroll:Ma,scrollBodyRef:si,onScroll:sl,container:qa}))}else Fu=O.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},Ro),po),className:I()("".concat(st,"-content")),onScroll:sl,ref:si},O.createElement(Zu,(0,L.Z)({style:(0,Le.Z)((0,Le.Z)({},Cl),{},{tableLayout:Oa})},Bl),Xl,yu,Gr!==!1&&O.createElement(Jn,(0,L.Z)({},Du,Xi)),Lu,Bs&&O.createElement(W,{stickyOffsets:ro,flattenColumns:Ki,columns:Ji},Bs)));var ol=O.createElement("div",(0,L.Z)({className:I()(st,gt,(Ee={},(0,ae.Z)(Ee,"".concat(st,"-rtl"),wt==="rtl"),(0,ae.Z)(Ee,"".concat(st,"-ping-left"),xa),(0,ae.Z)(Ee,"".concat(st,"-ping-right"),Is),(0,ae.Z)(Ee,"".concat(st,"-layout-fixed"),Ce==="fixed"),(0,ae.Z)(Ee,"".concat(st,"-fixed-header"),$s),(0,ae.Z)(Ee,"".concat(st,"-fixed-column"),al),(0,ae.Z)(Ee,"".concat(st,"-scroll-horizontal"),Ja),(0,ae.Z)(Ee,"".concat(st,"-has-fix-left"),Ki[0]&&Ki[0].fixed),(0,ae.Z)(Ee,"".concat(st,"-has-fix-right"),Ki[Ki.length-1]&&Ki[Ki.length-1].fixed==="right"),Ee)),style:Ut,id:br,ref:Ta},Jl),jt&&O.createElement(fi,{className:"".concat(st,"-title")},jt(An)),O.createElement("div",{ref:Ha,className:"".concat(st,"-container")},Fu),Wt&&O.createElement(fi,{className:"".concat(st,"-footer")},Wt(An)));Ja&&(ol=O.createElement(Ie.Z,{onResize:Tu},ol));var qo=hn(Ki,ro,wt,Ji),ql=O.useMemo(function(){return{scrollX:Ia,prefixCls:st,getComponent:ai,scrollbarSize:Nl,direction:wt,fixedInfoList:qo,isSticky:Jo,supportSticky:Io,componentWidth:Zn,fixHeader:$s,fixColumn:al,horizonScroll:Ja,tableLayout:Oa,rowClassName:ht,expandedRowClassName:bt.expandedRowClassName,expandIcon:xr,expandableType:Jt,expandRowByClick:bt.expandRowByClick,expandedRowRender:bt.expandedRowRender,onTriggerExpand:xn,expandIconColumnIndex:bt.expandIconColumnIndex,indentSize:bt.indentSize,allColumnsFixedLeft:Ki.every(function($a){return $a.fixed==="left"}),emptyNode:_l,columns:Ji,flattenColumns:Ki,onColumnResize:Ko,hoverStartRow:C,hoverEndRow:$,onHover:Be,rowExpandable:bt.rowExpandable,onRow:Dn,getRowKey:Li,expandedKeys:Ar,childrenColumnName:nn}},[Ia,st,ai,Nl,wt,qo,Jo,Io,Zn,$s,al,Ja,Oa,ht,bt.expandedRowClassName,xr,Jt,bt.expandRowByClick,bt.expandedRowRender,xn,bt.expandIconColumnIndex,bt.indentSize,_l,Ji,Ki,Ko,C,$,Be,bt.rowExpandable,Dn,Li,Ar,nn]);return O.createElement(G.Provider,{value:ql},ol)}function ki(ye){return H(Ri,ye)}var Tr=ki();Tr.EXPAND_COLUMN=we,Tr.INTERNAL_HOOKS=Fe,Tr.Column=Qr,Tr.ColumnGroup=en,Tr.Summary=P;var _n=Tr,gn=g(21881),ui=n(null),ii=n(null);function ti(ye,Ee,et){var st=Ee||1;return et[ye+st]-(et[ye]||0)}function wi(ye){var Ee=ye.rowInfo,et=ye.column,st=ye.colIndex,gt=ye.indent,ht=ye.index,Ut=ye.renderIndex,$t=ye.record,sr=ye.style,ze=ye.className,Ce=ye.inverse,wt=ye.getHeight,jt=et.render,Wt=et.dataIndex,ur=et.className,It=et.width,br=o(ii,["columnsOffset"]),Gr=br.columnsOffset,$r=Bt(Ee,et,st,gt,ht),cn=$r.key,Dn=$r.fixedInfo,ni=$r.appendCellNode,Mr=$r.additionalCellProps,ir=Mr.style,Ii=Mr.colSpan,Fn=Ii===void 0?1:Ii,ln=Mr.rowSpan,An=ln===void 0?1:ln,rn=st-1,Cn=ti(rn,Fn,Gr),ai=Fn>1?It-Cn:0,Li=(0,Le.Z)((0,Le.Z)((0,Le.Z)({},ir),sr),{},{flex:"0 0 ".concat(Cn,"px"),width:"".concat(Cn,"px"),marginRight:ai,pointerEvents:"auto"}),He=O.useMemo(function(){return Ce?An<=1:Fn===0||An===0||An>1},[An,Fn,Ce]);He?Li.visibility="hidden":Ce&&(Li.height=wt==null?void 0:wt(An));var c=He?function(){return null}:jt,w={};return(An===0||Fn===0)&&(w.rowSpan=1,w.colSpan=1),O.createElement(Er,(0,L.Z)({className:I()(ur,ze),ellipsis:et.ellipsis,align:et.align,scope:et.rowScope,component:"div",prefixCls:Ee.prefixCls,key:cn,record:$t,index:ht,renderIndex:Ut,dataIndex:Wt,render:c,shouldCellUpdate:et.shouldCellUpdate},Dn,{appendNode:ni,additionalProps:(0,Le.Z)((0,Le.Z)({},Mr),{},{style:Li},w)}))}var Pi=wi,Bi=["data","index","className","rowKey","style","extra","getHeight"],zi=O.forwardRef(function(ye,Ee){var et=ye.data,st=ye.index,gt=ye.className,ht=ye.rowKey,Ut=ye.style,$t=ye.extra,sr=ye.getHeight,ze=(0,Tt.Z)(ye,Bi),Ce=et.record,wt=et.indent,jt=et.index,Wt=o(G,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ur=Wt.scrollX,It=Wt.flattenColumns,br=Wt.prefixCls,Gr=Wt.fixColumn,$r=Wt.componentWidth,cn=$e(Ce,ht,st,wt),Dn=cn.rowSupportExpand,ni=cn.expanded,Mr=cn.rowProps,ir=cn.expandedRowRender,Ii=cn.expandedRowClassName,Fn;if(Dn&&ni){var ln=ir(Ce,st,wt+1,ni),An=Ii==null?void 0:Ii(Ce,st,wt),rn={};Gr&&(rn={style:(0,ae.Z)({},"--virtual-width","".concat($r,"px"))});var Cn="".concat(br,"-expanded-row-cell");Fn=O.createElement("div",{className:I()("".concat(br,"-expanded-row"),"".concat(br,"-expanded-row-level-").concat(wt+1),An)},O.createElement(Er,{component:"div",prefixCls:br,className:I()(Cn,(0,ae.Z)({},"".concat(Cn,"-fixed"),Gr)),additionalProps:rn},ln))}var ai=(0,Le.Z)((0,Le.Z)({},Ut),{},{width:ur});$t&&(ai.position="absolute",ai.pointerEvents="none");var Li=O.createElement("div",(0,L.Z)({},Mr,ze,{ref:Dn?null:Ee,className:I()(gt,"".concat(br,"-row"),Mr==null?void 0:Mr.className,(0,ae.Z)({},"".concat(br,"-row-extra"),$t)),style:(0,Le.Z)((0,Le.Z)({},ai),Mr==null?void 0:Mr.style)}),It.map(function(He,c){return O.createElement(Pi,{key:c,rowInfo:cn,column:He,colIndex:c,indent:wt,index:st,renderIndex:jt,record:Ce,inverse:$t,getHeight:sr})}));return Dn?O.createElement("div",{ref:Ee},Li,Fn):Li}),ca=V(zi),xi=ca,vn=O.forwardRef(function(ye,Ee){var et=ye.data,st=ye.onScroll,gt=o(G,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),ht=gt.flattenColumns,Ut=gt.onColumnResize,$t=gt.getRowKey,sr=gt.expandedKeys,ze=gt.prefixCls,Ce=gt.childrenColumnName,wt=gt.emptyNode,jt=gt.scrollX,Wt=o(ui),ur=Wt.scrollY,It=Wt.listItemHeight,br=O.useRef(),Gr=Xe(et,Ce,sr,$t),$r=O.useMemo(function(){var Fn=0;return ht.map(function(ln){var An=ln.width,rn=ln.key;return Fn+=An,[rn,An,Fn]})},[ht]),cn=O.useMemo(function(){return $r.map(function(Fn){return Fn[2]})},[$r]);O.useEffect(function(){$r.forEach(function(Fn){var ln=(0,se.Z)(Fn,2),An=ln[0],rn=ln[1];Ut(An,rn)})},[$r]),O.useImperativeHandle(Ee,function(){var Fn={};return Object.defineProperty(Fn,"scrollLeft",{get:function(){var An;return((An=br.current)===null||An===void 0?void 0:An.getScrollInfo().x)||0},set:function(An){var rn;(rn=br.current)===null||rn===void 0||rn.scrollTo({left:An})}}),Fn});var Dn=function(ln,An){var rn,Cn=(rn=Gr[An])===null||rn===void 0?void 0:rn.record,ai=ln.onCell;if(ai){var Li,He=ai(Cn,An);return(Li=He==null?void 0:He.rowSpan)!==null&&Li!==void 0?Li:1}return 1},ni=function(ln){var An=ln.start,rn=ln.end,Cn=ln.getSize,ai=ln.offsetY;if(rn<0)return null;for(var Li=ht.filter(function(Xr){return Dn(Xr,An)===0}),He=An,c=function(dn){if(Li=Li.filter(function(kn){return Dn(kn,dn)===0}),!Li.length)return He=dn,"break"},w=An;w>=0;w-=1){var C=c(w);if(C==="break")break}for(var $=ht.filter(function(Xr){return Dn(Xr,rn)!==1}),Be=rn,je=function(dn){if($=$.filter(function(kn){return Dn(kn,dn)!==1}),!$.length)return Be=Math.max(dn-1,rn),"break"},xt=rn;xt<Gr.length;xt+=1){var bt=je(xt);if(bt==="break")break}for(var Jt=[],Ar=function(dn){var kn=Gr[dn];if(!kn)return"continue";ht.some(function(Zn){return Dn(Zn,dn)>1})&&Jt.push(dn)},xr=He;xr<=Be;xr+=1)var nn=Ar(xr);var xn=Jt.map(function(Xr){var dn=Gr[Xr],kn=$t(dn.record,Xr),Zn=function(pi){var Ji=Xr+pi-1,Ki=$t(Gr[Ji].record,Ji),Sa=Cn(kn,Ki);return Sa.bottom-Sa.top},bi=Cn(kn);return O.createElement(xi,{key:Xr,data:dn,rowKey:kn,index:Xr,style:{top:-ai+bi.top},extra:!0,getHeight:Zn})});return xn},Mr=O.useMemo(function(){return{columnsOffset:cn}},[cn]),ir="".concat(ze,"-tbody"),Ii;return Gr.length?Ii=O.createElement(gn.Z,{fullHeight:!1,ref:br,className:I()(ir,"".concat(ir,"-virtual")),height:ur,itemHeight:It||24,data:Gr,itemKey:function(ln){return $t(ln.record)},scrollWidth:jt,onVirtualScroll:function(ln){var An=ln.x;st({scrollLeft:An})},extraRender:ni},function(Fn,ln,An){var rn=$t(Fn.record,ln);return O.createElement(xi,(0,L.Z)({data:Fn,rowKey:rn,index:ln},An))}):Ii=O.createElement("div",{className:I()("".concat(ze,"-placeholder"))},O.createElement(Er,{component:"div",prefixCls:ze},wt)),O.createElement(ii.Provider,{value:Mr},Ii)}),Ht=V(vn),Ln=Ht,Gn=function(Ee,et){var st=et.ref,gt=et.onScroll;return O.createElement(Ln,{ref:st,data:Ee,onScroll:gt})},Ci=100;function ji(ye){var Ee=ye.columns,et=ye.scroll,st=ye.prefixCls,gt=st===void 0?jn:st,ht=ye.className,Ut=ye.listItemHeight,$t=et||{},sr=$t.x,ze=$t.y;typeof sr!="number"&&(sr=((Ee||[]).length+1)*Ci),typeof ze!="number"&&(ze=500);var Ce=O.useMemo(function(){return{scrollY:ze,listItemHeight:Ut}},[ze,Ut]);return O.createElement(ui.Provider,{value:Ce},O.createElement(_n,(0,L.Z)({},ye,{className:I()(ht,"".concat(gt,"-virtual")),scroll:(0,Le.Z)((0,Le.Z)({},et),{},{x:sr}),components:{body:Gn},columns:Ee,internalHooks:Fe,tailor:!0})))}function fa(ye){return H(ji,ye)}var va=fa(),ea=null;function _i(ye){return null}var yi=_i;function Si(ye){return null}var ra=Si,Aa=g(64002),es=g(68031),ps=g(36355),hi=g(93891),Ca=g(19716),ma=g(8628),ka=g(31724),Ps=g(25700),is=g(71418),Fa=g(88088);function Mi(ye){return function(et){let{prefixCls:st,onExpand:gt,record:ht,expanded:Ut,expandable:$t}=et;const sr=`${st}-row-expand-icon`;return O.createElement("button",{type:"button",onClick:ze=>{gt(ht,ze),ze.stopPropagation()},className:I()(sr,{[`${sr}-spaced`]:!$t,[`${sr}-expanded`]:$t&&Ut,[`${sr}-collapsed`]:$t&&!Ut}),"aria-label":Ut?ye.collapse:ye.expand,"aria-expanded":Ut})}}var la=Mi;function ms(ye,Ee){return"key"in ye&&ye.key!==void 0&&ye.key!==null?ye.key:ye.dataIndex?Array.isArray(ye.dataIndex)?ye.dataIndex.join("."):ye.dataIndex:Ee}function as(ye,Ee){return Ee?`${Ee}-${ye}`:`${ye}`}function ts(ye,Ee){return typeof ye=="function"?ye(Ee):ye}function Wi(ye,Ee){const et=ts(ye,Ee);return Object.prototype.toString.call(et)==="[object Object]"?"":et}var gs={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"},aa=gs,co=g(88853),Qs=function(Ee,et){return O.createElement(co.Z,(0,L.Z)({},Ee,{ref:et,icon:aa}))},Co=O.forwardRef(Qs),fs=Co,_o=g(56762);function ss(ye){const Ee=O.useRef(ye),et=(0,_o.Z)();return[()=>Ee.current,st=>{Ee.current=st,et()}]}var Yn=g(3113),Da=g(24905),io=g(38854),Zi=g(64165),ta=g(20834),$i=g(40875),Ui=g(5112),wa=g(86914),Pa=g(21970),Ls=g(92832);function cs(ye){let{value:Ee,onChange:et,filterSearch:st,tablePrefixCls:gt,locale:ht}=ye;return st?O.createElement("div",{className:`${gt}-filter-dropdown-search`},O.createElement(Ls.default,{prefix:O.createElement(Pa.Z,null),placeholder:ht.filterSearchPlaceholder,onChange:et,value:Ee,htmlSize:1,className:`${gt}-filter-dropdown-search-input`})):null}var Es=cs,rs=g(85108);const Bo=ye=>{const{keyCode:Ee}=ye;Ee===rs.Z.ENTER&&ye.stopPropagation()};var eo=O.forwardRef((ye,Ee)=>O.createElement("div",{className:ye.className,onClick:et=>et.stopPropagation(),onKeyDown:Bo,ref:Ee},ye.children));function zs(ye){let Ee=[];return(ye||[]).forEach(et=>{let{value:st,children:gt}=et;Ee.push(st),gt&&(Ee=[].concat((0,Zt.Z)(Ee),(0,Zt.Z)(zs(gt))))}),Ee}function Rs(ye){return ye.some(Ee=>{let{children:et}=Ee;return et})}function Oi(ye,Ee){return typeof Ee=="string"||typeof Ee=="number"?Ee==null?void 0:Ee.toString().toLowerCase().includes(ye.trim().toLowerCase()):!1}function Ai(ye){let{filters:Ee,prefixCls:et,filteredKeys:st,filterMultiple:gt,searchValue:ht,filterSearch:Ut}=ye;return Ee.map(($t,sr)=>{const ze=String($t.value);if($t.children)return{key:ze||sr,label:$t.text,popupClassName:`${et}-dropdown-submenu`,children:Ai({filters:$t.children,prefixCls:et,filteredKeys:st,filterMultiple:gt,searchValue:ht,filterSearch:Ut})};const Ce=gt?Da.default:Ui.ZP,wt={key:$t.value!==void 0?ze:sr,label:O.createElement(O.Fragment,null,O.createElement(Ce,{checked:st.includes(ze)}),O.createElement("span",null,$t.text))};return ht.trim()?typeof Ut=="function"?Ut(ht,$t)?wt:null:Oi(ht,$t.text)?wt:null:wt})}function ua(ye){var Ee,et;const{tablePrefixCls:st,prefixCls:gt,column:ht,dropdownPrefixCls:Ut,columnKey:$t,filterMultiple:sr,filterMode:ze="menu",filterSearch:Ce=!1,filterState:wt,triggerFilter:jt,locale:Wt,children:ur,getPopupContainer:It}=ye,{filterDropdownOpen:br,onFilterDropdownOpenChange:Gr,filterResetToDefaultFilteredValue:$r,defaultFilteredValue:cn,filterDropdownVisible:Dn,onFilterDropdownVisibleChange:ni}=ht,[Mr,ir]=O.useState(!1),Ii=!!(wt&&(!((Ee=wt.filteredKeys)===null||Ee===void 0)&&Ee.length||wt.forceFiltered)),Fn=En=>{ir(En),Gr==null||Gr(En),ni==null||ni(En)},ln=(et=br!=null?br:Dn)!==null&&et!==void 0?et:Mr,An=wt==null?void 0:wt.filteredKeys,[rn,Cn]=ss(An||[]),ai=En=>{let{selectedKeys:pi}=En;Cn(pi)},Li=(En,pi)=>{let{node:Ji,checked:Ki}=pi;ai(sr?{selectedKeys:En}:{selectedKeys:Ki&&Ji.key?[Ji.key]:[]})};O.useEffect(()=>{Mr&&ai({selectedKeys:An||[]})},[An]);const[He,c]=O.useState([]),w=En=>{c(En)},[C,$]=O.useState(""),Be=En=>{const{value:pi}=En.target;$(pi)};O.useEffect(()=>{Mr||$("")},[Mr]);const je=En=>{const pi=En&&En.length?En:null;if(pi===null&&(!wt||!wt.filteredKeys)||(0,Y.Z)(pi,wt==null?void 0:wt.filteredKeys,!0))return null;jt({column:ht,key:$t,filteredKeys:pi})},xt=()=>{Fn(!1),je(rn())},bt=function(){let{confirm:En,closeDropdown:pi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};En&&je([]),pi&&Fn(!1),$(""),Cn($r?(cn||[]).map(Ji=>String(Ji)):[])},Jt=function(){let{closeDropdown:En}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};En&&Fn(!1),je(rn())},Ar=En=>{En&&An!==void 0&&Cn(An||[]),Fn(En),!En&&!ht.filterDropdown&&xt()},xr=I()({[`${Ut}-menu-without-submenu`]:!Rs(ht.filters||[])}),nn=En=>{if(En.target.checked){const pi=zs(ht==null?void 0:ht.filters).map(Ji=>String(Ji));Cn(pi)}else Cn([])},xn=En=>{let{filters:pi}=En;return(pi||[]).map((Ji,Ki)=>{const Sa=String(Ji.value),Ia={title:Ji.text,key:Ji.value!==void 0?Sa:Ki};return Ji.children&&(Ia.children=xn({filters:Ji.children})),Ia})},Xr=En=>{var pi;return Object.assign(Object.assign({},En),{text:En.title,value:En.key,children:((pi=En.children)===null||pi===void 0?void 0:pi.map(Ji=>Xr(Ji)))||[]})};let dn;if(typeof ht.filterDropdown=="function")dn=ht.filterDropdown({prefixCls:`${Ut}-custom`,setSelectedKeys:En=>ai({selectedKeys:En}),selectedKeys:rn(),confirm:Jt,clearFilters:bt,filters:ht.filters,visible:ln,close:()=>{Fn(!1)}});else if(ht.filterDropdown)dn=ht.filterDropdown;else{const En=rn()||[],pi=()=>(ht.filters||[]).length===0?O.createElement(Zi.Z,{image:Zi.Z.PRESENTED_IMAGE_SIMPLE,description:Wt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ze==="tree"?O.createElement(O.Fragment,null,O.createElement(Es,{filterSearch:Ce,value:C,onChange:Be,tablePrefixCls:st,locale:Wt}),O.createElement("div",{className:`${st}-filter-dropdown-tree`},sr?O.createElement(Da.default,{checked:En.length===zs(ht.filters).length,indeterminate:En.length>0&&En.length<zs(ht.filters).length,className:`${st}-filter-dropdown-checkall`,onChange:nn},Wt.filterCheckall):null,O.createElement(wa.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:sr,checkStrictly:!sr,className:`${Ut}-menu`,onCheck:Li,checkedKeys:En,selectedKeys:En,showIcon:!1,treeData:xn({filters:ht.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:C.trim()?Ki=>typeof Ce=="function"?Ce(C,Xr(Ki)):Oi(C,Ki.title):void 0}))):O.createElement(O.Fragment,null,O.createElement(Es,{filterSearch:Ce,value:C,onChange:Be,tablePrefixCls:st,locale:Wt}),O.createElement(ta.default,{selectable:!0,multiple:sr,prefixCls:`${Ut}-menu`,className:xr,onSelect:ai,onDeselect:ai,selectedKeys:En,getPopupContainer:It,openKeys:He,onOpenChange:w,items:Ai({filters:ht.filters||[],filterSearch:Ce,prefixCls:gt,filteredKeys:rn(),filterMultiple:sr,searchValue:C})})),Ji=()=>$r?(0,Y.Z)((cn||[]).map(Ki=>String(Ki)),En,!0):En.length===0;dn=O.createElement(O.Fragment,null,pi(),O.createElement("div",{className:`${gt}-dropdown-btns`},O.createElement(Yn.ZP,{type:"link",size:"small",disabled:Ji(),onClick:()=>bt()},Wt.filterReset),O.createElement(Yn.ZP,{type:"primary",size:"small",onClick:xt},Wt.filterConfirm)))}ht.filterDropdown&&(dn=O.createElement($i.J,{selectable:void 0},dn));const kn=()=>O.createElement(eo,{className:`${gt}-dropdown`},dn);let Zn;typeof ht.filterIcon=="function"?Zn=ht.filterIcon(Ii):ht.filterIcon?Zn=ht.filterIcon:Zn=O.createElement(fs,null);const{direction:bi}=O.useContext(ps.E_);return O.createElement("div",{className:`${gt}-column`},O.createElement("span",{className:`${st}-column-title`},ur),O.createElement(io.Z,{dropdownRender:kn,trigger:["click"],open:ln,onOpenChange:Ar,getPopupContainer:It,placement:bi==="rtl"?"bottomLeft":"bottomRight"},O.createElement("span",{role:"button",tabIndex:-1,className:I()(`${gt}-trigger`,{active:Ii}),onClick:En=>{En.stopPropagation()}},Zn)))}var vs=ua;function Ra(ye,Ee,et){let st=[];return(ye||[]).forEach((gt,ht)=>{var Ut;const $t=as(ht,et);if(gt.filters||"filterDropdown"in gt||"onFilter"in gt)if("filteredValue"in gt){let sr=gt.filteredValue;"filterDropdown"in gt||(sr=(Ut=sr==null?void 0:sr.map(String))!==null&&Ut!==void 0?Ut:sr),st.push({column:gt,key:ms(gt,$t),filteredKeys:sr,forceFiltered:gt.filtered})}else st.push({column:gt,key:ms(gt,$t),filteredKeys:Ee&>.defaultFilteredValue?gt.defaultFilteredValue:void 0,forceFiltered:gt.filtered});"children"in gt&&(st=[].concat((0,Zt.Z)(st),(0,Zt.Z)(Ra(gt.children,Ee,$t))))}),st}function Ns(ye,Ee,et,st,gt,ht,Ut,$t){return et.map((sr,ze)=>{const Ce=as(ze,$t),{filterMultiple:wt=!0,filterMode:jt,filterSearch:Wt}=sr;let ur=sr;if(ur.filters||ur.filterDropdown){const It=ms(ur,Ce),br=st.find(Gr=>{let{key:$r}=Gr;return It===$r});ur=Object.assign(Object.assign({},ur),{title:Gr=>O.createElement(vs,{tablePrefixCls:ye,prefixCls:`${ye}-filter`,dropdownPrefixCls:Ee,column:ur,columnKey:It,filterState:br,filterMultiple:wt,filterMode:jt,filterSearch:Wt,triggerFilter:ht,locale:gt,getPopupContainer:Ut},ts(sr.title,Gr))})}return"children"in ur&&(ur=Object.assign(Object.assign({},ur),{children:Ns(ye,Ee,ur.children,st,gt,ht,Ut,Ce)})),ur})}function Vs(ye){const Ee={};return ye.forEach(et=>{let{key:st,filteredKeys:gt,column:ht}=et;const{filters:Ut,filterDropdown:$t}=ht;if($t)Ee[st]=gt||null;else if(Array.isArray(gt)){const sr=zs(Ut);Ee[st]=sr.filter(ze=>gt.includes(String(ze)))}else Ee[st]=null}),Ee}function vo(ye,Ee){return Ee.reduce((et,st)=>{const{column:{onFilter:gt,filters:ht},filteredKeys:Ut}=st;return gt&&Ut&&Ut.length?et.filter($t=>Ut.some(sr=>{const ze=zs(ht),Ce=ze.findIndex(jt=>String(jt)===String(sr)),wt=Ce!==-1?ze[Ce]:sr;return gt(wt,$t)})):et},ye)}const Os=ye=>ye.flatMap(Ee=>"children"in Ee?[Ee].concat((0,Zt.Z)(Os(Ee.children||[]))):[Ee]);function Di(ye){let{prefixCls:Ee,dropdownPrefixCls:et,mergedColumns:st,onFilterChange:gt,getPopupContainer:ht,locale:Ut}=ye;const $t=O.useMemo(()=>Os(st||[]),[st]),[sr,ze]=O.useState(()=>Ra($t,!0)),Ce=O.useMemo(()=>{const ur=Ra($t,!1);if(ur.length===0)return ur;let It=!0,br=!0;if(ur.forEach(Gr=>{let{filteredKeys:$r}=Gr;$r!==void 0?It=!1:br=!1}),It){const Gr=($t||[]).map(($r,cn)=>ms($r,as(cn)));return sr.filter($r=>{let{key:cn}=$r;return Gr.includes(cn)}).map($r=>{const cn=$t[Gr.findIndex(Dn=>Dn===$r.key)];return Object.assign(Object.assign({},$r),{column:Object.assign(Object.assign({},$r.column),cn),forceFiltered:cn.filtered})})}return ur},[$t,sr]),wt=O.useMemo(()=>Vs(Ce),[Ce]),jt=ur=>{const It=Ce.filter(br=>{let{key:Gr}=br;return Gr!==ur.key});It.push(ur),ze(It),gt(Vs(It),It)};return[ur=>Ns(Ee,et,ur,Ce,Ut,jt,ht),Ce,wt]}var Dl=Di;function Js(ye,Ee,et){const st=O.useRef({});function gt(ht){if(!st.current||st.current.data!==ye||st.current.childrenColumnName!==Ee||st.current.getRowKey!==et){let $t=function(sr){sr.forEach((ze,Ce)=>{const wt=et(ze,Ce);Ut.set(wt,ze),ze&&typeof ze=="object"&&Ee in ze&&$t(ze[Ee]||[])})};const Ut=new Map;$t(ye),st.current={data:ye,childrenColumnName:Ee,kvMap:Ut,getRowKey:et}}return st.current.kvMap.get(ht)}return[gt]}var nl=g(50371),Qo=function(ye,Ee){var et={};for(var st in ye)Object.prototype.hasOwnProperty.call(ye,st)&&Ee.indexOf(st)<0&&(et[st]=ye[st]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,st=Object.getOwnPropertySymbols(ye);gt<st.length;gt++)Ee.indexOf(st[gt])<0&&Object.prototype.propertyIsEnumerable.call(ye,st[gt])&&(et[st[gt]]=ye[st[gt]]);return et};const Ao=10;function _a(ye,Ee){const et={current:ye.current,pageSize:ye.pageSize};return Object.keys(Ee&&typeof Ee=="object"?Ee:{}).forEach(gt=>{const ht=ye[gt];typeof ht!="function"&&(et[gt]=ht)}),et}function vl(ye,Ee,et){const st=et&&typeof et=="object"?et:{},{total:gt=0}=st,ht=Qo(st,["total"]),[Ut,$t]=(0,O.useState)(()=>({current:"defaultCurrent"in ht?ht.defaultCurrent:1,pageSize:"defaultPageSize"in ht?ht.defaultPageSize:Ao})),sr=(0,nl.Z)(Ut,ht,{total:gt>0?gt:ye}),ze=Math.ceil((gt||ye)/sr.pageSize);sr.current>ze&&(sr.current=ze||1);const Ce=(jt,Wt)=>{$t({current:jt!=null?jt:1,pageSize:Wt||sr.pageSize})},wt=(jt,Wt)=>{var ur;et&&((ur=et.onChange)===null||ur===void 0||ur.call(et,jt,Wt)),Ce(jt,Wt),Ee(jt,Wt||(sr==null?void 0:sr.pageSize))};return et===!1?[{},()=>{}]:[Object.assign(Object.assign({},sr),{onChange:wt}),Ce]}var yl=vl,fo=g(18290),So=g(35654),Na=g(90782),ya=g(71430),to=g(35788);const Va={},ns="SELECT_ALL",js="SELECT_INVERT",Ea="SELECT_NONE",Ys=[],ao=(ye,Ee)=>{let et=[];return(Ee||[]).forEach(st=>{et.push(st),st&&typeof st=="object"&&ye in st&&(et=[].concat((0,Zt.Z)(et),(0,Zt.Z)(ao(ye,st[ye]))))}),et};var Do=(ye,Ee)=>{const{preserveSelectedRowKeys:et,selectedRowKeys:st,defaultSelectedRowKeys:gt,getCheckboxProps:ht,onChange:Ut,onSelect:$t,onSelectAll:sr,onSelectInvert:ze,onSelectNone:Ce,onSelectMultiple:wt,columnWidth:jt,type:Wt,selections:ur,fixed:It,renderCell:br,hideSelectAll:Gr,checkStrictly:$r=!0}=Ee||{},{prefixCls:cn,data:Dn,pageData:ni,getRecordByKey:Mr,getRowKey:ir,expandType:Ii,childrenColumnName:Fn,locale:ln,getPopupContainer:An}=ye,[rn,Cn]=(0,to.Z)(st||gt||Ys,{value:st}),ai=O.useRef(new Map),Li=(0,O.useCallback)(Xr=>{if(et){const dn=new Map;Xr.forEach(kn=>{let Zn=Mr(kn);!Zn&&ai.current.has(kn)&&(Zn=ai.current.get(kn)),dn.set(kn,Zn)}),ai.current=dn}},[Mr,et]);O.useEffect(()=>{Li(rn)},[rn]);const{keyEntities:He}=(0,O.useMemo)(()=>{if($r)return{keyEntities:null};let Xr=Dn;if(et){const dn=new Set(Dn.map((Zn,bi)=>ir(Zn,bi))),kn=Array.from(ai.current).reduce((Zn,bi)=>{let[En,pi]=bi;return dn.has(En)?Zn:Zn.concat(pi)},[]);Xr=[].concat((0,Zt.Z)(Xr),(0,Zt.Z)(kn))}return(0,ya.I8)(Xr,{externalGetKey:ir,childrenPropName:Fn})},[Dn,ir,$r,Fn,et]),c=(0,O.useMemo)(()=>ao(Fn,ni),[Fn,ni]),w=(0,O.useMemo)(()=>{const Xr=new Map;return c.forEach((dn,kn)=>{const Zn=ir(dn,kn),bi=(ht?ht(dn):null)||{};Xr.set(Zn,bi)}),Xr},[c,ir,ht]),C=(0,O.useCallback)(Xr=>{var dn;return!!(!((dn=w.get(ir(Xr)))===null||dn===void 0)&&dn.disabled)},[w,ir]),[$,Be]=(0,O.useMemo)(()=>{if($r)return[rn||[],[]];const{checkedKeys:Xr,halfCheckedKeys:dn}=(0,Na.S)(rn,!0,He,C);return[Xr||[],dn]},[rn,$r,He,C]),je=(0,O.useMemo)(()=>{const Xr=Wt==="radio"?$.slice(0,1):$;return new Set(Xr)},[$,Wt]),xt=(0,O.useMemo)(()=>Wt==="radio"?new Set:new Set(Be),[Be,Wt]),[bt,Jt]=(0,O.useState)(null);O.useEffect(()=>{Ee||Cn(Ys)},[!!Ee]);const Ar=(0,O.useCallback)((Xr,dn)=>{let kn,Zn;Li(Xr),et?(kn=Xr,Zn=Xr.map(bi=>ai.current.get(bi))):(kn=[],Zn=[],Xr.forEach(bi=>{const En=Mr(bi);En!==void 0&&(kn.push(bi),Zn.push(En))})),Cn(kn),Ut==null||Ut(kn,Zn,{type:dn})},[Cn,Mr,Ut,et]),xr=(0,O.useCallback)((Xr,dn,kn,Zn)=>{if($t){const bi=kn.map(En=>Mr(En));$t(Mr(Xr),dn,bi,Zn)}Ar(kn,"single")},[$t,Mr,Ar]),nn=(0,O.useMemo)(()=>!ur||Gr?null:(ur===!0?[ns,js,Ea]:ur).map(dn=>dn===ns?{key:"all",text:ln.selectionAll,onSelect(){Ar(Dn.map((kn,Zn)=>ir(kn,Zn)).filter(kn=>{const Zn=w.get(kn);return!(Zn!=null&&Zn.disabled)||je.has(kn)}),"all")}}:dn===js?{key:"invert",text:ln.selectInvert,onSelect(){const kn=new Set(je);ni.forEach((bi,En)=>{const pi=ir(bi,En),Ji=w.get(pi);Ji!=null&&Ji.disabled||(kn.has(pi)?kn.delete(pi):kn.add(pi))});const Zn=Array.from(kn);ze&&ze(Zn),Ar(Zn,"invert")}}:dn===Ea?{key:"none",text:ln.selectNone,onSelect(){Ce==null||Ce(),Ar(Array.from(je).filter(kn=>{const Zn=w.get(kn);return Zn==null?void 0:Zn.disabled}),"none")}}:dn).map(dn=>Object.assign(Object.assign({},dn),{onSelect:function(){for(var kn,Zn,bi=arguments.length,En=new Array(bi),pi=0;pi<bi;pi++)En[pi]=arguments[pi];(Zn=dn.onSelect)===null||Zn===void 0||(kn=Zn).call.apply(kn,[dn].concat(En)),Jt(null)}})),[ur,je,ni,ir,ze,Ar]);return[(0,O.useCallback)(Xr=>{var dn;if(!Ee)return Xr.filter(sa=>sa!==Va);let kn=(0,Zt.Z)(Xr);const Zn=new Set(je),bi=c.map(ir).filter(sa=>!w.get(sa).disabled),En=bi.every(sa=>Zn.has(sa)),pi=bi.some(sa=>Zn.has(sa)),Ji=()=>{const sa=[];En?bi.forEach(xa=>{Zn.delete(xa),sa.push(xa)}):bi.forEach(xa=>{Zn.has(xa)||(Zn.add(xa),sa.push(xa))});const ha=Array.from(Zn);sr==null||sr(!En,ha.map(xa=>Mr(xa)),sa.map(xa=>Mr(xa))),Ar(ha,"all"),Jt(null)};let Ki;if(Wt!=="radio"){let sa;if(nn){const da={getPopupContainer:An,items:nn.map((Is,bs)=>{const{key:Hs,text:Zs,onSelect:Xs}=Is;return{key:Hs!=null?Hs:bs,onClick:()=>{Xs==null||Xs(bi)},label:Zs}})};sa=O.createElement("div",{className:`${cn}-selection-extra`},O.createElement(io.Z,{menu:da,getPopupContainer:An},O.createElement("span",null,O.createElement(fo.Z,null))))}const ha=c.map((da,Is)=>{const bs=ir(da,Is),Hs=w.get(bs)||{};return Object.assign({checked:Zn.has(bs)},Hs)}).filter(da=>{let{disabled:Is}=da;return Is}),xa=!!ha.length&&ha.length===c.length,ja=xa&&ha.every(da=>{let{checked:Is}=da;return Is}),ls=xa&&ha.some(da=>{let{checked:Is}=da;return Is});Ki=!Gr&&O.createElement("div",{className:`${cn}-selection`},O.createElement(Da.default,{checked:xa?ja:!!c.length&&En,indeterminate:xa?!ja&&ls:!En&&pi,onChange:Ji,disabled:c.length===0||xa,"aria-label":sa?"Custom selection":"Select all",skipGroup:!0}),sa)}let Sa;Wt==="radio"?Sa=(sa,ha,xa)=>{const ja=ir(ha,xa),ls=Zn.has(ja);return{node:O.createElement(Ui.ZP,Object.assign({},w.get(ja),{checked:ls,onClick:da=>da.stopPropagation(),onChange:da=>{Zn.has(ja)||xr(ja,!0,[ja],da.nativeEvent)}})),checked:ls}}:Sa=(sa,ha,xa)=>{var ja;const ls=ir(ha,xa),da=Zn.has(ls),Is=xt.has(ls),bs=w.get(ls);let Hs;return Ii==="nest"?Hs=Is:Hs=(ja=bs==null?void 0:bs.indeterminate)!==null&&ja!==void 0?ja:Is,{node:O.createElement(Da.default,Object.assign({},bs,{indeterminate:Hs,checked:da,skipGroup:!0,onClick:Zs=>Zs.stopPropagation(),onChange:Zs=>{let{nativeEvent:Xs}=Zs;const{shiftKey:Wo}=Xs;let $o=-1,ho=-1;if(Wo&&$r){const oo=new Set([bt,ls]);bi.some((ro,$s)=>{if(oo.has(ro))if($o===-1)$o=$s;else return ho=$s,!0;return!1})}if(ho!==-1&&$o!==ho&&$r){const oo=bi.slice($o,ho+1),ro=[];da?oo.forEach(Ja=>{Zn.has(Ja)&&(ro.push(Ja),Zn.delete(Ja))}):oo.forEach(Ja=>{Zn.has(Ja)||(ro.push(Ja),Zn.add(Ja))});const $s=Array.from(Zn);wt==null||wt(!da,$s.map(Ja=>Mr(Ja)),ro.map(Ja=>Mr(Ja))),Ar($s,"multiple")}else{const oo=$;if($r){const ro=da?(0,So._5)(oo,ls):(0,So.L0)(oo,ls);xr(ls,!da,ro,Xs)}else{const ro=(0,Na.S)([].concat((0,Zt.Z)(oo),[ls]),!0,He,C),{checkedKeys:$s,halfCheckedKeys:Ja}=ro;let al=$s;if(da){const $l=new Set($s);$l.delete(ls),al=(0,Na.S)(Array.from($l),{checked:!1,halfCheckedKeys:Ja},He,C).checkedKeys}xr(ls,!da,al,Xs)}}Jt(da?null:ls)}})),checked:da}};const Ia=(sa,ha,xa)=>{const{node:ja,checked:ls}=Sa(sa,ha,xa);return br?br(ls,ha,xa,ja):ja};if(!kn.includes(Va))if(kn.findIndex(sa=>{var ha;return((ha=sa[Ue])===null||ha===void 0?void 0:ha.columnType)==="EXPAND_COLUMN"})===0){const[sa,...ha]=kn;kn=[sa,Va].concat((0,Zt.Z)(ha))}else kn=[Va].concat((0,Zt.Z)(kn));const Xi=kn.indexOf(Va);kn=kn.filter((sa,ha)=>sa!==Va||ha===Xi);const Ta=kn[Xi-1],Ba=kn[Xi+1];let si=It;si===void 0&&((Ba==null?void 0:Ba.fixed)!==void 0?si=Ba.fixed:(Ta==null?void 0:Ta.fixed)!==void 0&&(si=Ta.fixed)),si&&Ta&&((dn=Ta[Ue])===null||dn===void 0?void 0:dn.columnType)==="EXPAND_COLUMN"&&Ta.fixed===void 0&&(Ta.fixed=si);const Ha=I()(`${cn}-selection-col`,{[`${cn}-selection-col-with-dropdown`]:ur&&Wt==="checkbox"}),os={fixed:si,width:jt,className:`${cn}-selection-column`,title:Ee.columnTitle||Ki,render:Ia,onCell:Ee.onCell,[Ue]:{className:Ha}};return kn.map(sa=>sa===Va?os:sa)},[ir,c,Ee,$,je,xt,jt,nn,Ii,bt,w,wt,xr,C]),je]},Ya=g(35323),bl=g(19155),so=g(6848);const yo="ascend",Zl="descend";function wl(ye){return typeof ye.sorter=="object"&&typeof ye.sorter.multiple=="number"?ye.sorter.multiple:!1}function fl(ye){return typeof ye=="function"?ye:ye&&typeof ye=="object"&&ye.compare?ye.compare:!1}function Ll(ye,Ee){return Ee?ye[ye.indexOf(Ee)+1]:ye[0]}function xl(ye,Ee,et){let st=[];function gt(ht,Ut){st.push({column:ht,key:ms(ht,Ut),multiplePriority:wl(ht),sortOrder:ht.sortOrder})}return(ye||[]).forEach((ht,Ut)=>{const $t=as(Ut,et);ht.children?("sortOrder"in ht&>(ht,$t),st=[].concat((0,Zt.Z)(st),(0,Zt.Z)(xl(ht.children,Ee,$t)))):ht.sorter&&("sortOrder"in ht?gt(ht,$t):Ee&&ht.defaultSortOrder&&st.push({column:ht,key:ms(ht,$t),multiplePriority:wl(ht),sortOrder:ht.defaultSortOrder}))}),st}function jo(ye,Ee,et,st,gt,ht,Ut,$t){return(Ee||[]).map((sr,ze)=>{const Ce=as(ze,$t);let wt=sr;if(wt.sorter){const jt=wt.sortDirections||gt,Wt=wt.showSorterTooltip===void 0?Ut:wt.showSorterTooltip,ur=ms(wt,Ce),It=et.find(Ii=>{let{key:Fn}=Ii;return Fn===ur}),br=It?It.sortOrder:null,Gr=Ll(jt,br);let $r;if(sr.sortIcon)$r=sr.sortIcon({sortOrder:br});else{const Ii=jt.includes(yo)&&O.createElement(bl.Z,{className:I()(`${ye}-column-sorter-up`,{active:br===yo})}),Fn=jt.includes(Zl)&&O.createElement(Ya.Z,{className:I()(`${ye}-column-sorter-down`,{active:br===Zl})});$r=O.createElement("span",{className:I()(`${ye}-column-sorter`,{[`${ye}-column-sorter-full`]:!!(Ii&&Fn)})},O.createElement("span",{className:`${ye}-column-sorter-inner`,"aria-hidden":"true"},Ii,Fn))}const{cancelSort:cn,triggerAsc:Dn,triggerDesc:ni}=ht||{};let Mr=cn;Gr===Zl?Mr=ni:Gr===yo&&(Mr=Dn);const ir=typeof Wt=="object"?Wt:{title:Mr};wt=Object.assign(Object.assign({},wt),{className:I()(wt.className,{[`${ye}-column-sort`]:br}),title:Ii=>{const Fn=O.createElement("div",{className:`${ye}-column-sorters`},O.createElement("span",{className:`${ye}-column-title`},ts(sr.title,Ii)),$r);return Wt?O.createElement(so.Z,Object.assign({},ir),Fn):Fn},onHeaderCell:Ii=>{const Fn=sr.onHeaderCell&&sr.onHeaderCell(Ii)||{},ln=Fn.onClick,An=Fn.onKeyDown;Fn.onClick=ai=>{st({column:sr,key:ur,sortOrder:Gr,multiplePriority:wl(sr)}),ln==null||ln(ai)},Fn.onKeyDown=ai=>{ai.keyCode===rs.Z.ENTER&&(st({column:sr,key:ur,sortOrder:Gr,multiplePriority:wl(sr)}),An==null||An(ai))};const rn=Wi(sr.title,{}),Cn=rn==null?void 0:rn.toString();return br?Fn["aria-sort"]=br==="ascend"?"ascending":"descending":Fn["aria-label"]=Cn||"",Fn.className=I()(Fn.className,`${ye}-column-has-sorters`),Fn.tabIndex=0,sr.ellipsis&&(Fn.title=(rn!=null?rn:"").toString()),Fn}})}return"children"in wt&&(wt=Object.assign(Object.assign({},wt),{children:jo(ye,wt.children,et,st,gt,ht,Ut,Ce)})),wt})}function Gs(ye){const{column:Ee,sortOrder:et}=ye;return{column:Ee,order:et,field:Ee.dataIndex,columnKey:Ee.key}}function Lo(ye){const Ee=ye.filter(et=>{let{sortOrder:st}=et;return st}).map(Gs);return Ee.length===0&&ye.length?Object.assign(Object.assign({},Gs(ye[ye.length-1])),{column:void 0}):Ee.length<=1?Ee[0]||{}:Ee}function Za(ye,Ee,et){const st=Ee.slice().sort((Ut,$t)=>$t.multiplePriority-Ut.multiplePriority),gt=ye.slice(),ht=st.filter(Ut=>{let{column:{sorter:$t},sortOrder:sr}=Ut;return fl($t)&&sr});return ht.length?gt.sort((Ut,$t)=>{for(let sr=0;sr<ht.length;sr+=1){const ze=ht[sr],{column:{sorter:Ce},sortOrder:wt}=ze,jt=fl(Ce);if(jt&&wt){const Wt=jt(Ut,$t,wt);if(Wt!==0)return wt===yo?Wt:-Wt}}return 0}).map(Ut=>{const $t=Ut[et];return $t?Object.assign(Object.assign({},Ut),{[et]:Za($t,Ee,et)}):Ut}):gt}function ys(ye){let{prefixCls:Ee,mergedColumns:et,onSorterChange:st,sortDirections:gt,tableLocale:ht,showSorterTooltip:Ut}=ye;const[$t,sr]=O.useState(xl(et,!0)),ze=O.useMemo(()=>{let ur=!0;const It=xl(et,!1);if(!It.length)return $t;const br=[];function Gr(cn){ur?br.push(cn):br.push(Object.assign(Object.assign({},cn),{sortOrder:null}))}let $r=null;return It.forEach(cn=>{$r===null?(Gr(cn),cn.sortOrder&&(cn.multiplePriority===!1?ur=!1:$r=!0)):($r&&cn.multiplePriority!==!1||(ur=!1),Gr(cn))}),br},[et,$t]),Ce=O.useMemo(()=>{const ur=ze.map(It=>{let{column:br,sortOrder:Gr}=It;return{column:br,order:Gr}});return{sortColumns:ur,sortColumn:ur[0]&&ur[0].column,sortOrder:ur[0]&&ur[0].order}},[ze]);function wt(ur){let It;ur.multiplePriority===!1||!ze.length||ze[0].multiplePriority===!1?It=[ur]:It=[].concat((0,Zt.Z)(ze.filter(br=>{let{key:Gr}=br;return Gr!==ur.key})),[ur]),sr(It),st(Lo(It),It)}return[ur=>jo(Ee,ur,ze,wt,gt,ht,Ut),ze,Ce,()=>Lo(ze)]}function Xa(ye,Ee){return ye.map(et=>{const st=Object.assign({},et);return st.title=ts(et.title,Ee),"children"in st&&(st.children=Xa(st.children,Ee)),st})}function Cs(ye){return[O.useCallback(et=>Xa(et,ye),[ye])]}var qs=ki((ye,Ee)=>{const{_renderTimes:et}=ye,{_renderTimes:st}=Ee;return et!==st}),El=fa((ye,Ee)=>{const{_renderTimes:et}=ye,{_renderTimes:st}=Ee;return et!==st}),il=g(64993),Rl=g(17313),cu=g(83116),Ol=g(37613),li=ye=>{const{componentCls:Ee}=ye,et=`${ye.lineWidth}px ${ye.lineType} ${ye.tableBorderColor}`,st=(gt,ht,Ut)=>({[`&${Ee}-${gt}`]:{[`> ${Ee}-container`]:{[`> ${Ee}-content, > ${Ee}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ee}-expanded-row-fixed`]:{margin:`-${ht}px -${Ut+ye.lineWidth}px`}}}}}});return{[`${Ee}-wrapper`]:{[`${Ee}${Ee}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ee}-title`]:{border:et,borderBottom:0},[`> ${Ee}-container`]:{borderInlineStart:et,borderTop:et,[`
|
|
|
> ${Ee}-content,
|
|
|
> ${Ee}-header,
|
|
|
> ${Ee}-body,
|
|
|
> ${Ee}-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:et},"> thead":{"> tr:not(:last-child) > th":{borderBottom:et},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ee}-cell-fix-right-first::after`]:{borderInlineEnd:et}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ee}-expanded-row-fixed`]:{margin:`-${ye.tablePaddingVertical}px -${ye.tablePaddingHorizontal+ye.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ye.lineWidth,bottom:0,borderInlineEnd:et,content:'""'}}}}}},[`&${Ee}-scroll-horizontal`]:{[`> ${Ee}-container > ${Ee}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Ee}-expanded-row,
|
|
|
> tr${Ee}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},st("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle)),st("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall)),{[`> ${Ee}-footer`]:{border:et,borderTop:0}}),[`${Ee}-cell`]:{[`${Ee}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ye.lineWidth}px 0 ${ye.lineWidth}px ${ye.tableHeaderBg}`}},[`${Ee}-bordered ${Ee}-cell-scrollbar`]:{borderInlineEnd:et}}}},Wl=ye=>{const{componentCls:Ee}=ye;return{[`${Ee}-wrapper`]:{[`${Ee}-cell-ellipsis`]:Object.assign(Object.assign({},Rl.vS),{wordBreak:"keep-all",[`
|
|
|
&${Ee}-cell-fix-left-last,
|
|
|
&${Ee}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Ee}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ee}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ac=ye=>{const{componentCls:Ee}=ye;return{[`${Ee}-wrapper`]:{[`${Ee}-tbody > tr${Ee}-placeholder`]:{textAlign:"center",color:ye.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ye.colorBgContainer}}}}},du=g(15969),Xo=ye=>{const{componentCls:Ee,antCls:et,controlInteractiveSize:st,motionDurationSlow:gt,lineWidth:ht,paddingXS:Ut,lineType:$t,tableBorderColor:sr,tableExpandIconBg:ze,tableExpandColumnWidth:Ce,borderRadius:wt,fontSize:jt,fontSizeSM:Wt,lineHeight:ur,tablePaddingVertical:It,tablePaddingHorizontal:br,tableExpandedRowBg:Gr,paddingXXS:$r}=ye,cn=st/2-ht,Dn=cn*2+ht*3,ni=`${ht}px ${$t} ${sr}`,Mr=$r-ht;return{[`${Ee}-wrapper`]:{[`${Ee}-expand-icon-col`]:{width:Ce},[`${Ee}-row-expand-icon-cell`]:{textAlign:"center",[`${Ee}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ee}-row-indent`]:{height:1,float:"left"},[`${Ee}-row-expand-icon`]:Object.assign(Object.assign({},(0,du.N)(ye)),{position:"relative",float:"left",boxSizing:"border-box",width:Dn,height:Dn,padding:0,color:"inherit",lineHeight:`${Dn}px`,background:ze,border:ni,borderRadius:wt,transform:`scale(${st/Dn})`,transition:`all ${gt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${gt} ease-out`,content:'""'},"&::before":{top:cn,insetInlineEnd:Mr,insetInlineStart:Mr,height:ht},"&::after":{top:Mr,bottom:Mr,insetInlineStart:cn,width:ht,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"}}),[`${Ee}-row-indent + ${Ee}-row-expand-icon`]:{marginTop:(jt*ur-ht*3)/2-Math.ceil((Wt*1.4-ht*3)/2),marginInlineEnd:Ut},[`tr${Ee}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Gr}},[`${et}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ee}-expanded-row-fixed`]:{position:"relative",margin:`-${It}px -${br}px`,padding:`${It}px ${br}px`}}}},oc=ye=>{const{componentCls:Ee,antCls:et,iconCls:st,tableFilterDropdownWidth:gt,tableFilterDropdownSearchWidth:ht,paddingXXS:Ut,paddingXS:$t,colorText:sr,lineWidth:ze,lineType:Ce,tableBorderColor:wt,tableHeaderIconColor:jt,fontSizeSM:Wt,tablePaddingHorizontal:ur,borderRadius:It,motionDurationSlow:br,colorTextDescription:Gr,colorPrimary:$r,tableHeaderFilterActiveBg:cn,colorTextDisabled:Dn,tableFilterDropdownBg:ni,tableFilterDropdownHeight:Mr,controlItemBgHover:ir,controlItemBgActive:Ii,boxShadowSecondary:Fn,filterDropdownMenuBg:ln}=ye,An=`${et}-dropdown`,rn=`${Ee}-filter-dropdown`,Cn=`${et}-tree`,ai=`${ze}px ${Ce} ${wt}`;return[{[`${Ee}-wrapper`]:{[`${Ee}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ee}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Ut,marginInline:`${Ut}px ${-ur/2}px`,padding:`0 ${Ut}px`,color:jt,fontSize:Wt,borderRadius:It,cursor:"pointer",transition:`all ${br}`,"&:hover":{color:Gr,background:cn},"&.active":{color:$r}}}},{[`${et}-dropdown`]:{[rn]:Object.assign(Object.assign({},(0,Rl.Wf)(ye)),{minWidth:gt,backgroundColor:ni,borderRadius:It,boxShadow:Fn,overflow:"hidden",[`${An}-menu`]:{maxHeight:Mr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ln,"&:empty::after":{display:"block",padding:`${$t}px 0`,color:Dn,fontSize:Wt,textAlign:"center",content:'"Not Found"'}},[`${rn}-tree`]:{paddingBlock:`${$t}px 0`,paddingInline:$t,[Cn]:{padding:0},[`${Cn}-treenode ${Cn}-node-content-wrapper:hover`]:{backgroundColor:ir},[`${Cn}-treenode-checkbox-checked ${Cn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Ii}}},[`${rn}-search`]:{padding:$t,borderBottom:ai,"&-input":{input:{minWidth:ht},[st]:{color:Dn}}},[`${rn}-checkall`]:{width:"100%",marginBottom:Ut,marginInlineStart:Ut},[`${rn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${$t-ze}px ${$t}px`,overflow:"hidden",borderTop:ai}})}},{[`${et}-dropdown ${rn}, ${rn}-submenu`]:{[`${et}-checkbox-wrapper + span`]:{paddingInlineStart:$t,color:sr},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},u=ye=>{const{componentCls:Ee,lineWidth:et,colorSplit:st,motionDurationSlow:gt,zIndexTableFixed:ht,tableBg:Ut,zIndexTableSticky:$t}=ye,sr=st;return{[`${Ee}-wrapper`]:{[`
|
|
|
${Ee}-cell-fix-left,
|
|
|
${Ee}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:ht,background:Ut},[`
|
|
|
${Ee}-cell-fix-left-first::after,
|
|
|
${Ee}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-et,width:30,transform:"translateX(100%)",transition:`box-shadow ${gt}`,content:'""',pointerEvents:"none"},[`${Ee}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Ee}-cell-fix-right-first::after,
|
|
|
${Ee}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-et,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${gt}`,content:'""',pointerEvents:"none"},[`${Ee}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:$t+1,width:30,transition:`box-shadow ${gt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ee}-ping-left`]:{[`&:not(${Ee}-has-fix-left) ${Ee}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${sr}`}},[`
|
|
|
${Ee}-cell-fix-left-first::after,
|
|
|
${Ee}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${sr}`},[`${Ee}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ee}-ping-right`]:{[`&:not(${Ee}-has-fix-right) ${Ee}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${sr}`}},[`
|
|
|
${Ee}-cell-fix-right-first::after,
|
|
|
${Ee}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${sr}`}}}}},M=ye=>{const{componentCls:Ee,antCls:et}=ye;return{[`${Ee}-wrapper`]:{[`${Ee}-pagination${et}-pagination`]:{margin:`${ye.margin}px 0`},[`${Ee}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Z=ye=>{const{componentCls:Ee,tableRadius:et}=ye;return{[`${Ee}-wrapper`]:{[Ee]:{[`${Ee}-title, ${Ee}-header`]:{borderRadius:`${et}px ${et}px 0 0`},[`${Ee}-title + ${Ee}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ee}-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:et,borderStartEndRadius:et,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:et},"> *:last-child":{borderStartEndRadius:et}}},"&-footer":{borderRadius:`0 0 ${et}px ${et}px`}}}}},De=ye=>{const{componentCls:Ee}=ye;return{[`${Ee}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ee}-pagination-left`]:{justifyContent:"flex-end"},[`${Ee}-pagination-right`]:{justifyContent:"flex-start"},[`${Ee}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ee}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ee}-row-indent`]:{float:"right"}}}}},tt=ye=>{const{componentCls:Ee,antCls:et,iconCls:st,fontSizeIcon:gt,padding:ht,paddingXS:Ut,tableHeaderIconColor:$t,tableHeaderIconColorHover:sr,tableSelectionColumnWidth:ze}=ye;return{[`${Ee}-wrapper`]:{[`${Ee}-selection-col`]:{width:ze,[`&${Ee}-selection-col-with-dropdown`]:{width:ze+gt+ht/4}},[`${Ee}-bordered ${Ee}-selection-col`]:{width:ze+Ut*2,[`&${Ee}-selection-col-with-dropdown`]:{width:ze+gt+ht/4+Ut*2}},[`
|
|
|
table tr th${Ee}-selection-column,
|
|
|
table tr td${Ee}-selection-column
|
|
|
`]:{paddingInlineEnd:ye.paddingXS,paddingInlineStart:ye.paddingXS,textAlign:"center",[`${et}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ee}-selection-column${Ee}-cell-fix-left`]:{zIndex:ye.zIndexTableFixed+1},[`table tr th${Ee}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ee}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ee}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ye.tablePaddingHorizontal/4}px`,[st]:{color:$t,fontSize:gt,verticalAlign:"baseline","&:hover":{color:sr}}}}}},vt=ye=>{const{componentCls:Ee}=ye,et=(st,gt,ht,Ut)=>({[`${Ee}${Ee}-${st}`]:{fontSize:Ut,[`
|
|
|
${Ee}-title,
|
|
|
${Ee}-footer,
|
|
|
${Ee}-cell,
|
|
|
${Ee}-thead > tr > th,
|
|
|
${Ee}-tbody > tr > th,
|
|
|
${Ee}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${gt}px ${ht}px`},[`${Ee}-filter-trigger`]:{marginInlineEnd:`-${ht/2}px`},[`${Ee}-expanded-row-fixed`]:{margin:`-${gt}px -${ht}px`},[`${Ee}-tbody`]:{[`${Ee}-wrapper:only-child ${Ee}`]:{marginBlock:`-${gt}px`,marginInline:`${ye.tableExpandColumnWidth-ht}px -${ht}px`}},[`${Ee}-selection-column`]:{paddingInlineStart:`${ht/4}px`}}});return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},et("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle,ye.tableFontSizeMiddle)),et("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall,ye.tableFontSizeSmall))}},Ye=ye=>{const{componentCls:Ee,marginXXS:et,fontSizeIcon:st,tableHeaderIconColor:gt,tableHeaderIconColorHover:ht}=ye;return{[`${Ee}-wrapper`]:{[`${Ee}-thead th${Ee}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ye.motionDurationSlow}`,"&:hover":{background:ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ye.colorPrimary},[`
|
|
|
&${Ee}-cell-fix-left:hover,
|
|
|
&${Ee}-cell-fix-right:hover
|
|
|
`]:{background:ye.tableFixedHeaderSortActiveBg}},[`${Ee}-thead th${Ee}-column-sort`]:{background:ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ee}-column-sort`]:{background:ye.tableBodySortBg},[`${Ee}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ee}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ee}-column-sorter`]:{marginInlineStart:et,color:gt,fontSize:0,transition:`color ${ye.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:st,"&.active":{color:ye.colorPrimary}},[`${Ee}-column-sorter-up + ${Ee}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ee}-column-sorters:hover ${Ee}-column-sorter`]:{color:ht}}}},tr=ye=>{const{componentCls:Ee,opacityLoading:et,tableScrollThumbBg:st,tableScrollThumbBgHover:gt,tableScrollThumbSize:ht,tableScrollBg:Ut,zIndexTableSticky:$t,stickyScrollBarBorderRadius:sr}=ye,ze=`${ye.lineWidth}px ${ye.lineType} ${ye.tableBorderColor}`;return{[`${Ee}-wrapper`]:{[`${Ee}-sticky`]:{"&-holder":{position:"sticky",zIndex:$t,background:ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ht}px !important`,zIndex:$t,display:"flex",alignItems:"center",background:Ut,borderTop:ze,opacity:et,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:ht,backgroundColor:st,borderRadius:sr,transition:`all ${ye.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:gt}}}}}}},Qt=ye=>{const{componentCls:Ee,lineWidth:et,tableBorderColor:st}=ye,gt=`${et}px ${ye.lineType} ${st}`;return{[`${Ee}-wrapper`]:{[`${Ee}-summary`]:{position:"relative",zIndex:ye.zIndexTableFixed,background:ye.tableBg,"> tr":{"> th, > td":{borderBottom:gt}}},[`div${Ee}-summary`]:{boxShadow:`0 -${et}px 0 ${st}`}}}},Ur=ye=>{const{componentCls:Ee}=ye,et=`${ye.lineWidth}px ${ye.lineType} ${ye.tableBorderColor}`,st=`${Ee}-expanded-row-cell`;return{[`${Ee}-wrapper`]:{[`${Ee}-tbody-virtual`]:{[`${Ee}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ee}-cell`]:{borderBottom:et},[`${Ee}-expanded-row`]:{[`${st}${st}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ye.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ee}-bordered`]:{[`${Ee}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:et,position:"absolute"},[`${Ee}-cell`]:{borderInlineEnd:et,[`&${Ee}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ye.lineWidth,borderInlineStart:et}}}}}}};const sn=ye=>{const{componentCls:Ee,fontWeightStrong:et,tablePaddingVertical:st,tablePaddingHorizontal:gt,lineWidth:ht,lineType:Ut,tableBorderColor:$t,tableFontSize:sr,tableBg:ze,tableRadius:Ce,tableHeaderTextColor:wt,motionDurationMid:jt,tableHeaderBg:Wt,tableHeaderCellSplitColor:ur,tableRowHoverBg:It,tableSelectedRowBg:br,tableSelectedRowHoverBg:Gr,tableFooterTextColor:$r,tableFooterBg:cn,paddingContentVerticalLG:Dn}=ye,ni=`${ht}px ${Ut} ${$t}`;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Rl.dF)()),{[Ee]:Object.assign(Object.assign({},(0,Rl.Wf)(ye)),{fontSize:sr,background:ze,borderRadius:`${Ce}px ${Ce}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ce}px ${Ce}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Ee}-cell,
|
|
|
${Ee}-thead > tr > th,
|
|
|
${Ee}-tbody > tr > th,
|
|
|
${Ee}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Dn}px ${gt}px`,overflowWrap:"break-word"},[`${Ee}-title`]:{padding:`${st}px ${gt}px`},[`${Ee}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:wt,fontWeight:et,textAlign:"start",background:Wt,borderBottom:ni,transition:`background ${jt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ee}-selection-column):not(${Ee}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ur,transform:"translateY(-50%)",transition:`background-color ${jt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ee}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${jt}, border-color ${jt}`,borderBottom:ni,[`
|
|
|
> ${Ee}-wrapper:only-child,
|
|
|
> ${Ee}-expanded-row-fixed > ${Ee}-wrapper:only-child
|
|
|
`]:{[Ee]:{marginBlock:`-${st}px`,marginInline:`${ye.tableExpandColumnWidth-gt}px -${gt}px`,[`${Ee}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:wt,fontWeight:et,textAlign:"start",background:Wt,borderBottom:ni,transition:`background ${jt} ease`},[`
|
|
|
&${Ee}-row:hover > th,
|
|
|
&${Ee}-row:hover > td,
|
|
|
> th${Ee}-cell-row-hover,
|
|
|
> td${Ee}-cell-row-hover
|
|
|
`]:{background:It},[`&${Ee}-row-selected`]:{"> th, > td":{background:br},"&:hover > th, &:hover > td":{background:Gr}}}},[`${Ee}-footer`]:{padding:`${st}px ${gt}px`,color:$r,background:cn}})}};var Rn=(0,cu.Z)("Table",ye=>{const{colorTextHeading:Ee,colorSplit:et,colorIcon:st,colorIconHover:gt,opacityLoading:ht,colorBgContainer:Ut,controlInteractiveSize:$t,headerBg:sr,headerColor:ze,headerSortActiveBg:Ce,headerSortHoverBg:wt,bodySortBg:jt,rowHoverBg:Wt,rowSelectedBg:ur,rowSelectedHoverBg:It,rowExpandedBg:br,cellPaddingBlock:Gr,cellPaddingInline:$r,cellPaddingBlockMD:cn,cellPaddingInlineMD:Dn,cellPaddingBlockSM:ni,cellPaddingInlineSM:Mr,borderColor:ir,footerBg:Ii,footerColor:Fn,headerBorderRadius:ln,cellFontSize:An,cellFontSizeMD:rn,cellFontSizeSM:Cn,headerSplitColor:ai,fixedHeaderSortActiveBg:Li,headerFilterHoverBg:He,filterDropdownBg:c,expandIconBg:w,selectionColumnWidth:C,stickyScrollBarBg:$}=ye,Be=new il.C(st),je=new il.C(gt),xt=2,bt=(0,Ol.TS)(ye,{tableFontSize:An,tableBg:Ut,tableRadius:ln,tablePaddingVertical:Gr,tablePaddingHorizontal:$r,tablePaddingVerticalMiddle:cn,tablePaddingHorizontalMiddle:Dn,tablePaddingVerticalSmall:ni,tablePaddingHorizontalSmall:Mr,tableBorderColor:ir,tableHeaderTextColor:ze,tableHeaderBg:sr,tableFooterTextColor:Fn,tableFooterBg:Ii,tableHeaderCellSplitColor:ai,tableHeaderSortBg:Ce,tableHeaderSortHoverBg:wt,tableHeaderIconColor:Be.clone().setAlpha(Be.getAlpha()*ht).toRgbString(),tableHeaderIconColorHover:je.clone().setAlpha(je.getAlpha()*ht).toRgbString(),tableBodySortBg:jt,tableFixedHeaderSortActiveBg:Li,tableHeaderFilterActiveBg:He,tableFilterDropdownBg:c,tableRowHoverBg:Wt,tableSelectedRowBg:ur,tableSelectedRowHoverBg:It,zIndexTableFixed:xt,zIndexTableSticky:xt+1,tableFontSizeMiddle:rn,tableFontSizeSmall:Cn,tableSelectionColumnWidth:C,tableExpandIconBg:w,tableExpandColumnWidth:$t+2*ye.padding,tableExpandedRowBg:br,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:$,tableScrollThumbBgHover:Ee,tableScrollBg:et});return[sn(bt),M(bt),Qt(bt),Ye(bt),oc(bt),li(bt),Z(bt),Xo(bt),Qt(bt),ac(bt),tt(bt),u(bt),tr(bt),Wl(bt),vt(bt),De(bt),Ur(bt)]},ye=>{const{colorFillAlter:Ee,colorBgContainer:et,colorTextHeading:st,colorFillSecondary:gt,colorFillContent:ht,controlItemBgActive:Ut,controlItemBgActiveHover:$t,padding:sr,paddingSM:ze,paddingXS:Ce,colorBorderSecondary:wt,borderRadiusLG:jt,fontSize:Wt,controlHeight:ur,colorTextPlaceholder:It}=ye,br=new il.C(gt).onBackground(et).toHexShortString(),Gr=new il.C(ht).onBackground(et).toHexShortString(),$r=new il.C(Ee).onBackground(et).toHexShortString();return{headerBg:$r,headerColor:st,headerSortActiveBg:br,headerSortHoverBg:Gr,bodySortBg:$r,rowHoverBg:$r,rowSelectedBg:Ut,rowSelectedHoverBg:$t,rowExpandedBg:Ee,cellPaddingBlock:sr,cellPaddingInline:sr,cellPaddingBlockMD:ze,cellPaddingInlineMD:Ce,cellPaddingBlockSM:Ce,cellPaddingInlineSM:Ce,borderColor:wt,headerBorderRadius:jt,footerBg:$r,footerColor:st,cellFontSize:Wt,cellFontSizeMD:Wt,cellFontSizeSM:Wt,headerSplitColor:wt,fixedHeaderSortActiveBg:br,headerFilterHoverBg:ht,filterDropdownMenuBg:et,filterDropdownBg:et,expandIconBg:et,selectionColumnWidth:ur,stickyScrollBarBg:It,stickyScrollBarBorderRadius:100}});const ci=[],pn=(ye,Ee)=>{const{prefixCls:et,className:st,rootClassName:gt,style:ht,size:Ut,bordered:$t,dropdownPrefixCls:sr,dataSource:ze,pagination:Ce,rowSelection:wt,rowKey:jt="key",rowClassName:Wt,columns:ur,children:It,childrenColumnName:br,onChange:Gr,getPopupContainer:$r,loading:cn,expandIcon:Dn,expandable:ni,expandedRowRender:Mr,expandIconColumnIndex:ir,indentSize:Ii,scroll:Fn,sortDirections:ln,locale:An,showSorterTooltip:rn=!0,virtual:Cn}=ye,ai=O.useMemo(()=>ur||kr(It),[ur,It]),Li=O.useMemo(()=>ai.some(Ma=>Ma.responsive),[ai]),He=(0,ma.Z)(Li),c=O.useMemo(()=>{const Ma=new Set(Object.keys(He).filter(_s=>He[_s]));return ai.filter(_s=>!_s.responsive||_s.responsive.some(qa=>Ma.has(qa)))},[ai,He]),w=(0,Aa.Z)(ye,["className","style","columns"]),{locale:C=ka.Z,direction:$,table:Be,renderEmpty:je,getPrefixCls:xt,getPopupContainer:bt}=O.useContext(ps.E_),Jt=(0,Ca.Z)(Ut),Ar=Object.assign(Object.assign({},C.Table),An),xr=ze||ci,nn=xt("table",et),xn=xt("dropdown",sr),Xr=Object.assign({childrenColumnName:br,expandIconColumnIndex:ir},ni),{childrenColumnName:dn="children"}=Xr,kn=O.useMemo(()=>xr.some(Ma=>Ma==null?void 0:Ma[dn])?"nest":Mr||ni&&ni.expandedRowRender?"row":null,[xr]),Zn={body:O.useRef()},bi=O.useMemo(()=>typeof jt=="function"?jt:Ma=>Ma==null?void 0:Ma[jt],[jt]),[En]=Js(xr,dn,bi),pi={},Ji=function(Ma,_s){let qa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Bs,bo,Ro;const po=Object.assign(Object.assign({},pi),Ma);qa&&((Bs=pi.resetPagination)===null||Bs===void 0||Bs.call(pi),!((bo=po.pagination)===null||bo===void 0)&&bo.current&&(po.pagination.current=1),Ce&&Ce.onChange&&Ce.onChange(1,(Ro=po.pagination)===null||Ro===void 0?void 0:Ro.pageSize)),Fn&&Fn.scrollToFirstRowOnChange!==!1&&Zn.body.current&&(0,es.Z)(0,{getContainer:()=>Zn.body.current}),Gr==null||Gr(po.pagination,po.filters,po.sorter,{currentDataSource:vo(Za(xr,po.sorterStates,dn),po.filterStates),action:_s})},Ki=(Ma,_s)=>{Ji({sorter:Ma,sorterStates:_s},"sort",!1)},[Sa,Ia,Xi,Ta]=ys({prefixCls:nn,mergedColumns:c,onSorterChange:Ki,sortDirections:ln||["ascend","descend"],tableLocale:Ar,showSorterTooltip:rn}),Ba=O.useMemo(()=>Za(xr,Ia,dn),[xr,Ia]);pi.sorter=Ta(),pi.sorterStates=Ia;const si=(Ma,_s)=>{Ji({filters:Ma,filterStates:_s},"filter",!0)},[Ha,os,sa]=Dl({prefixCls:nn,locale:Ar,dropdownPrefixCls:xn,mergedColumns:c,onFilterChange:si,getPopupContainer:$r||bt}),ha=vo(Ba,os);pi.filters=sa,pi.filterStates=os;const xa=O.useMemo(()=>{const Ma={};return Object.keys(sa).forEach(_s=>{sa[_s]!==null&&(Ma[_s]=sa[_s])}),Object.assign(Object.assign({},Xi),{filters:Ma})},[Xi,sa]),[ja]=Cs(xa),ls=(Ma,_s)=>{Ji({pagination:Object.assign(Object.assign({},pi.pagination),{current:Ma,pageSize:_s})},"paginate")},[da,Is]=yl(ha.length,ls,Ce);pi.pagination=Ce===!1?{}:_a(da,Ce),pi.resetPagination=Is;const bs=O.useMemo(()=>{if(Ce===!1||!da.pageSize)return ha;const{current:Ma=1,total:_s,pageSize:qa=Ao}=da;return ha.length<_s?ha.length>qa?ha.slice((Ma-1)*qa,Ma*qa):ha:ha.slice((Ma-1)*qa,Ma*qa)},[!!Ce,ha,da&&da.current,da&&da.pageSize,da&&da.total]),[Hs,Zs]=Do({prefixCls:nn,data:ha,pageData:bs,getRowKey:bi,getRecordByKey:En,expandType:kn,childrenColumnName:dn,locale:Ar,getPopupContainer:$r||bt},wt),Xs=(Ma,_s,qa)=>{let Bs;return typeof Wt=="function"?Bs=I()(Wt(Ma,_s,qa)):Bs=I()(Wt),I()({[`${nn}-row-selected`]:Zs.has(bi(Ma,_s))},Bs)};Xr.__PARENT_RENDER_ICON__=Xr.expandIcon,Xr.expandIcon=Xr.expandIcon||Dn||la(Ar),kn==="nest"&&Xr.expandIconColumnIndex===void 0?Xr.expandIconColumnIndex=wt?1:0:Xr.expandIconColumnIndex>0&&wt&&(Xr.expandIconColumnIndex-=1),typeof Xr.indentSize!="number"&&(Xr.indentSize=typeof Ii=="number"?Ii:15);const Wo=O.useCallback(Ma=>ja(Hs(Ha(Sa(Ma)))),[Sa,Ha,Hs]);let $o,ho;if(Ce!==!1&&(da!=null&&da.total)){let Ma;da.size?Ma=da.size:Ma=Jt==="small"||Jt==="middle"?"small":void 0;const _s=bo=>O.createElement(Ps.Z,Object.assign({},da,{className:I()(`${nn}-pagination ${nn}-pagination-${bo}`,da.className),size:Ma})),qa=$==="rtl"?"left":"right",{position:Bs}=da;if(Bs!==null&&Array.isArray(Bs)){const bo=Bs.find(Cl=>Cl.includes("top")),Ro=Bs.find(Cl=>Cl.includes("bottom")),po=Bs.every(Cl=>`${Cl}`=="none");!bo&&!Ro&&!po&&(ho=_s(qa)),bo&&($o=_s(bo.toLowerCase().replace("top",""))),Ro&&(ho=_s(Ro.toLowerCase().replace("bottom","")))}else ho=_s(qa)}let oo;typeof cn=="boolean"?oo={spinning:cn}:typeof cn=="object"&&(oo=Object.assign({spinning:!0},cn));const[ro,$s]=Rn(nn),[,Ja]=(0,Fa.Z)(),al=I()(`${nn}-wrapper`,Be==null?void 0:Be.className,{[`${nn}-wrapper-rtl`]:$==="rtl"},st,gt,$s),$l=Object.assign(Object.assign({},Be==null?void 0:Be.style),ht),Vo=An&&An.emptyText||(je==null?void 0:je("Table"))||O.createElement(hi.Z,{componentName:"Table"}),Jo=Cn?El:qs,fu={},Iu=O.useMemo(()=>{const{fontSize:Ma,lineHeight:_s,padding:qa,paddingXS:Bs,paddingSM:bo}=Ja,Ro=Math.floor(Ma*_s);switch(Jt){case"large":return qa*2+Ro;case"small":return Bs*2+Ro;default:return bo*2+Ro}},[Ja,Jt]);return Cn&&(fu.listItemHeight=Iu),ro(O.createElement("div",{ref:Ee,className:al,style:$l},O.createElement(is.Z,Object.assign({spinning:!1},oo),$o,O.createElement(Jo,Object.assign({},fu,w,{columns:c,direction:$,expandable:Xr,prefixCls:nn,className:I()({[`${nn}-middle`]:Jt==="middle",[`${nn}-small`]:Jt==="small",[`${nn}-bordered`]:$t,[`${nn}-empty`]:xr.length===0}),data:bs,rowKey:bi,rowClassName:Xs,emptyText:Vo,internalHooks:Fe,internalRefs:Zn,transformColumns:Wo})),ho)))};var Br=O.forwardRef(pn);const bn=(ye,Ee)=>{const et=O.useRef(0);return et.current+=1,O.createElement(Br,Object.assign({},ye,{ref:Ee,_renderTimes:et.current}))},Pn=O.forwardRef(bn);Pn.SELECTION_COLUMN=Va,Pn.EXPAND_COLUMN=we,Pn.SELECTION_ALL=ns,Pn.SELECTION_INVERT=js,Pn.SELECTION_NONE=Ea,Pn.Column=yi,Pn.ColumnGroup=ra,Pn.Summary=P;var er=Pn,nr=er},33166:function(yn,Gt,g){"use strict";g.d(Gt,{i:function(){return we}});const we=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return Fe}});var we=g(33166);function Fe(se,ke){return we.i.reduce((ie,Y)=>{const O=se[`${Y}1`],T=se[`${Y}3`],n=se[`${Y}6`],o=se[`${Y}7`];return Object.assign(Object.assign({},ie),ke(Y,{lightColor:O,lightBorderColor:T,darkColor:n,textColor:o}))},{})}},10777:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return ce}});var we=g(92310),Fe=g.n(we),se=g(59301),ke=g(36355),ie=function(q,be){var xe={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&be.indexOf(Le)<0&&(xe[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(q);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[ae])&&(xe[Le[ae]]=q[Le[ae]]);return xe},O=q=>{var{prefixCls:be,className:xe,color:Le="blue",dot:ae,pending:me=!1,position:I,label:_e,children:oe}=q,he=ie(q,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:ve}=se.useContext(ke.E_),_=ve("timeline",be),N=Fe()(`${_}-item`,{[`${_}-item-pending`]:me},xe),X=/blue|red|green|gray/.test(Le||"")?void 0:Le,pe=Fe()(`${_}-item-head`,{[`${_}-item-head-custom`]:!!ae,[`${_}-item-head-${Le}`]:!X});return se.createElement("li",Object.assign({},he,{className:N}),_e&&se.createElement("div",{className:`${_}-item-label`},_e),se.createElement("div",{className:`${_}-item-tail`}),se.createElement("div",{className:pe,style:{borderColor:X,color:X}},ae),se.createElement("div",{className:`${_}-item-content`},oe))},T=g(26390),n=g(50023),o=function(q,be){var xe={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&be.indexOf(Le)<0&&(xe[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(q);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[ae])&&(xe[Le[ae]]=q[Le[ae]]);return xe},p=q=>{var{prefixCls:be,className:xe,pending:Le=!1,children:ae,items:me,rootClassName:I,reverse:_e=!1,direction:oe,hashId:he,pendingDot:ve,mode:_=""}=q,N=o(q,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const X=(Ze,Er)=>_==="alternate"?Ze==="right"?`${be}-item-right`:Ze==="left"?`${be}-item-left`:Er%2===0?`${be}-item-left`:`${be}-item-right`:_==="left"?`${be}-item-left`:_==="right"?`${be}-item-right`:Ze==="right"?`${be}-item-right`:"",pe=(0,T.Z)(me||[]),qe=typeof Le=="boolean"?null:Le;Le&&pe.push({pending:!!Le,dot:ve||se.createElement(n.Z,null),children:qe}),_e&&pe.reverse();const at=pe.length,rt=`${be}-item-last`,Rt=pe.filter(Ze=>!!Ze).map((Ze,Er)=>{var Cr;const Kr=Er===at-2?rt:"",_r=Er===at-1?rt:"",{className:Me}=Ze,Tt=o(Ze,["className"]);return se.createElement(O,Object.assign({},Tt,{className:Fe()([Me,!_e&&Le?Kr:_r,X((Cr=Ze==null?void 0:Ze.position)!==null&&Cr!==void 0?Cr:"",Er)]),key:(Ze==null?void 0:Ze.key)||Er}))}),lr=pe.some(Ze=>!!(Ze!=null&&Ze.label)),qt=Fe()(be,{[`${be}-pending`]:!!Le,[`${be}-reverse`]:!!_e,[`${be}-${_}`]:!!_&&!lr,[`${be}-label`]:lr,[`${be}-rtl`]:oe==="rtl"},xe,I,he);return se.createElement("ul",Object.assign({},N,{className:qt}),Rt)},a=g(38298);function A(q,be){return q&&Array.isArray(q)?q:(0,a.Z)(be).map(xe=>{var Le,ae;return Object.assign({children:(ae=(Le=xe==null?void 0:xe.props)===null||Le===void 0?void 0:Le.children)!==null&&ae!==void 0?ae:""},xe.props)})}var m=A,S=g(17313),K=g(83116),F=g(37613);const H=q=>{const{componentCls:be}=q;return{[be]:Object.assign(Object.assign({},(0,S.Wf)(q)),{margin:0,padding:0,listStyle:"none",[`${be}-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":{[`${be}-item-head`]:{fontSize:q.fontSizeSM,backgroundColor:"transparent"},[`${be}-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":{[`> ${be}-item-tail`]:{display:"none"},[`> ${be}-item-content`]:{minHeight:q.controlHeightLG*1.2}}},[`&${be}-alternate,
|
|
|
&${be}-right,
|
|
|
&${be}-label`]:{[`${be}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${q.marginXXS}px`,"&-custom":{marginInlineStart:q.tailWidth/2}},"&-left":{[`${be}-item-content`]:{insetInlineStart:`calc(50% - ${q.marginXXS}px)`,width:`calc(50% - ${q.marginSM}px)`,textAlign:"start"}},"&-right":{[`${be}-item-content`]:{width:`calc(50% - ${q.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${be}-right`]:{[`${be}-item-right`]:{[`${be}-item-tail,
|
|
|
${be}-item-head,
|
|
|
${be}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(q.itemHeadSize+q.tailWidth)/2}px)`},[`${be}-item-content`]:{width:`calc(100% - ${q.itemHeadSize+q.marginXS}px)`}}},[`&${be}-pending
|
|
|
${be}-item-last
|
|
|
${be}-item-tail`]:{display:"block",height:`calc(100% - ${q.margin}px)`,borderInlineStart:`${q.tailWidth}px dotted ${q.tailColor}`},[`&${be}-reverse
|
|
|
${be}-item-last
|
|
|
${be}-item-tail`]:{display:"none"},[`&${be}-reverse ${be}-item-pending`]:{[`${be}-item-tail`]:{insetBlockStart:q.margin,display:"block",height:`calc(100% - ${q.margin}px)`,borderInlineStart:`${q.tailWidth}px dotted ${q.tailColor}`},[`${be}-item-content`]:{minHeight:q.controlHeightLG*1.2}},[`&${be}-label`]:{[`${be}-item-label`]:{position:"absolute",insetBlockStart:-(q.fontSize*q.lineHeight-q.fontSize)+q.tailWidth,width:`calc(50% - ${q.marginSM}px)`,textAlign:"end"},[`${be}-item-right`]:{[`${be}-item-label`]:{insetInlineStart:`calc(50% + ${q.marginSM}px)`,width:`calc(50% - ${q.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${be}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var V=(0,K.Z)("Timeline",q=>{const be=(0,F.TS)(q,{itemHeadSize:10,customHeadPaddingVertical:q.paddingXXS,paddingInlineEnd:2});return[H(be)]},q=>({tailColor:q.colorSplit,tailWidth:q.lineWidthBold,dotBorderWidth:q.wireframe?q.lineWidthBold:q.lineWidth*3,dotBg:q.colorBgContainer,itemPaddingBottom:q.padding*1.25})),ee=function(q,be){var xe={};for(var Le in q)Object.prototype.hasOwnProperty.call(q,Le)&&be.indexOf(Le)<0&&(xe[Le]=q[Le]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Le=Object.getOwnPropertySymbols(q);ae<Le.length;ae++)be.indexOf(Le[ae])<0&&Object.prototype.propertyIsEnumerable.call(q,Le[ae])&&(xe[Le[ae]]=q[Le[ae]]);return xe};const B=q=>{const{getPrefixCls:be,direction:xe,timeline:Le}=se.useContext(ke.E_),{prefixCls:ae,children:me,items:I,className:_e,style:oe}=q,he=ee(q,["prefixCls","children","items","className","style"]),ve=be("timeline",ae),[_,N]=V(ve),X=m(I,me);return _(se.createElement(p,Object.assign({},he,{className:Fe()(Le==null?void 0:Le.className,_e),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),oe),prefixCls:ve,direction:xe,items:X,hashId:N})))};B.Item=O;var G=B,ce=G},6848:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return Le}});var we=g(59301),Fe=g(92310),se=g.n(Fe),ke=g(55477),ie=g(35788),Y=g(62892),O=g(79676),T=g(92343),n=g(36355),o=g(33234),L=g(88088),p=g(17313),a=g(29878),A=g(19447),m=g(45157),S=g(37613),K=g(83116);const F=ae=>{const{componentCls:me,tooltipMaxWidth:I,tooltipColor:_e,tooltipBg:oe,tooltipBorderRadius:he,zIndexPopup:ve,controlHeight:_,boxShadowSecondary:N,paddingSM:X,paddingXS:pe,tooltipRadiusOuter:qe}=ae;return[{[me]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Wf)(ae)),{position:"absolute",zIndex:ve,display:"block",width:"max-content",maxWidth:I,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":oe,[`${me}-inner`]:{minWidth:_,minHeight:_,padding:`${X/2}px ${pe}px`,color:_e,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:oe,borderRadius:he,boxShadow:N,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${me}-inner`]:{borderRadius:Math.min(he,A.qN)}},[`${me}-content`]:{position:"relative"}}),(0,m.Z)(ae,(at,rt)=>{let{darkColor:Rt}=rt;return{[`&${me}-${at}`]:{[`${me}-inner`]:{backgroundColor:Rt},[`${me}-arrow`]:{"--antd-arrow-background-color":Rt}}}})),{"&-rtl":{direction:"rtl"}})},(0,A.ZP)((0,S.TS)(ae,{borderRadiusOuter:qe}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:he,limitVerticalRadius:!0}),{[`${me}-pure`]:{position:"relative",maxWidth:"none",margin:ae.sizePopupArrow}}]};var H=(ae,me)=>(0,K.Z)("Tooltip",_e=>{if(me===!1)return[];const{borderRadius:oe,colorTextLightSolid:he,colorBgDefault:ve,borderRadiusOuter:_}=_e,N=(0,S.TS)(_e,{tooltipMaxWidth:250,tooltipColor:he,tooltipBorderRadius:oe,tooltipBg:ve,tooltipRadiusOuter:_>4?4:_});return[F(N),(0,a._y)(_e,"zoom-big-fast")]},_e=>{let{zIndexPopupBase:oe,colorBgSpotlight:he}=_e;return{zIndexPopup:oe+70,colorBgDefault:he}},{resetStyle:!1})(ae),V=g(36785);function ee(ae,me){const I=(0,V.o2)(me),_e=se()({[`${ae}-${me}`]:me&&I}),oe={},he={};return me&&!I&&(oe.background=me,he["--antd-arrow-background-color"]=me),{className:_e,overlayStyle:oe,arrowStyle:he}}var G=ae=>{const{prefixCls:me,className:I,placement:_e="top",title:oe,color:he,overlayInnerStyle:ve}=ae,{getPrefixCls:_}=we.useContext(n.E_),N=_("tooltip",me),[X,pe]=H(N,!0),qe=ee(N,he),at=qe.arrowStyle,rt=Object.assign(Object.assign({},ve),qe.overlayStyle),Rt=se()(pe,N,`${N}-pure`,`${N}-placement-${_e}`,I,qe.className);return X(we.createElement("div",{className:Rt,style:at},we.createElement("div",{className:`${N}-arrow`}),we.createElement(ke.G,Object.assign({},ae,{className:pe,prefixCls:N,overlayInnerStyle:rt}),oe)))},ce=function(ae,me){var I={};for(var _e in ae)Object.prototype.hasOwnProperty.call(ae,_e)&&me.indexOf(_e)<0&&(I[_e]=ae[_e]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,_e=Object.getOwnPropertySymbols(ae);oe<_e.length;oe++)me.indexOf(_e[oe])<0&&Object.prototype.propertyIsEnumerable.call(ae,_e[oe])&&(I[_e[oe]]=ae[_e[oe]]);return I};const q=(ae,me)=>{const I={},_e=Object.assign({},ae);return me.forEach(oe=>{ae&&oe in ae&&(I[oe]=ae[oe],delete _e[oe])}),{picked:I,omitted:_e}};function be(ae,me){const I=ae.type;if((I.__ANT_BUTTON===!0||ae.type==="button")&&ae.props.disabled||I.__ANT_SWITCH===!0&&(ae.props.disabled||ae.props.loading)||I.__ANT_RADIO===!0&&ae.props.disabled){const{picked:_e,omitted:oe}=q(ae.props.style,["position","left","right","top","bottom","float","display","zIndex"]),he=Object.assign(Object.assign({display:"inline-block"},_e),{cursor:"not-allowed",width:ae.props.block?"100%":void 0}),ve=Object.assign(Object.assign({},oe),{pointerEvents:"none"}),_=(0,T.Tm)(ae,{style:ve,className:null});return we.createElement("span",{style:he,className:se()(ae.props.className,`${me}-disabled-compatible-wrapper`)},_)}return ae}const xe=we.forwardRef((ae,me)=>{var I,_e;const{prefixCls:oe,openClassName:he,getTooltipContainer:ve,overlayClassName:_,color:N,overlayInnerStyle:X,children:pe,afterOpenChange:qe,afterVisibleChange:at,destroyTooltipOnHide:rt,arrow:Rt=!0,title:lr,overlay:qt,builtinPlacements:Ze,arrowPointAtCenter:Er=!1,autoAdjustOverflow:Cr=!0}=ae,Kr=!!Rt,[,_r]=(0,L.Z)(),{getPopupContainer:Me,getPrefixCls:Tt,direction:z}=we.useContext(n.E_),v=we.useRef(null),f=()=>{var Vt;(Vt=v.current)===null||Vt===void 0||Vt.forceAlign()};we.useImperativeHandle(me,()=>({forceAlign:f,forcePopupAlign:()=>{f()}}));const[D,de]=(0,ie.Z)(!1,{value:(I=ae.open)!==null&&I!==void 0?I:ae.visible,defaultValue:(_e=ae.defaultOpen)!==null&&_e!==void 0?_e:ae.defaultVisible}),W=!lr&&!qt&&lr!==0,P=Vt=>{var Zt,nt;de(W?!1:Vt),W||((Zt=ae.onOpenChange)===null||Zt===void 0||Zt.call(ae,Vt),(nt=ae.onVisibleChange)===null||nt===void 0||nt.call(ae,Vt))},te=we.useMemo(()=>{var Vt,Zt;let nt=Er;return typeof Rt=="object"&&(nt=(Zt=(Vt=Rt.pointAtCenter)!==null&&Vt!==void 0?Vt:Rt.arrowPointAtCenter)!==null&&Zt!==void 0?Zt:Er),Ze||(0,O.Z)({arrowPointAtCenter:nt,autoAdjustOverflow:Cr,arrowWidth:Kr?_r.sizePopupArrow:0,borderRadius:_r.borderRadius,offset:_r.marginXXS,visibleFirst:!0})},[Er,Rt,Ze,_r]),Ie=we.useMemo(()=>lr===0?lr:qt||lr||"",[qt,lr]),Te=we.createElement(o.BR,null,typeof Ie=="function"?Ie():Ie),{getPopupContainer:Se,placement:Ge="top",mouseEnterDelay:ft=.1,mouseLeaveDelay:Ke=.1,overlayStyle:Xe,rootClassName:At}=ae,We=ce(ae,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),$e=Tt("tooltip",oe),Bt=Tt(),Kt=ae["data-popover-inject"];let Mt=D;!("open"in ae)&&!("visible"in ae)&&W&&(Mt=!1);const wr=be((0,T.l$)(pe)&&!(0,T.M2)(pe)?pe:we.createElement("span",null,pe),$e),vr=wr.props,re=!vr.className||typeof vr.className=="string"?se()(vr.className,he||`${$e}-open`):vr.className,[le,rr]=H($e,!Kt),Ue=ee($e,N),ot=Ue.arrowStyle,Yr=Object.assign(Object.assign({},X),Ue.overlayStyle),St=se()(_,{[`${$e}-rtl`]:z==="rtl"},Ue.className,At,rr);return le(we.createElement(ke.Z,Object.assign({},We,{showArrow:Kr,placement:Ge,mouseEnterDelay:ft,mouseLeaveDelay:Ke,prefixCls:$e,overlayClassName:St,overlayStyle:Object.assign(Object.assign({},ot),Xe),getTooltipContainer:Se||ve||Me,ref:v,builtinPlacements:te,overlay:Te,visible:Mt,onVisibleChange:P,afterVisibleChange:qe!=null?qe:at,overlayInnerStyle:Yr,arrowContent:we.createElement("span",{className:`${$e}-arrow-content`}),motion:{motionName:(0,Y.m)(Bt,"zoom-big-fast",ae.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!rt}),Mt?(0,T.Tm)(wr,{className:re}):wr))});xe._InternalPanelDoNotUseOrYouWillBeFired=G;var Le=xe},86914:function(yn,Gt,g){"use strict";g.d(Gt,{default:function(){return N}});var we=g(99581),Fe=g(26390),se=g(43971),ke=g(58358),ie=g(5891),Y=g(59301),O={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=O,n=g(88853),o=function(pe,qe){return Y.createElement(n.Z,(0,ie.Z)({},pe,{ref:qe,icon:T}))},L=Y.forwardRef(o),p=L,a=g(92310),A=g.n(a),m=g(35654),S=g(71430),K=g(36355),F=g(44757),H=g(62892),V=g(20648);const ee=4;function B(X){const{dropPosition:pe,dropLevelOffset:qe,prefixCls:at,indent:rt,direction:Rt="ltr"}=X,lr=Rt==="ltr"?"left":"right",qt=Rt==="ltr"?"right":"left",Ze={[lr]:-qe*rt+ee,[qt]:0};switch(pe){case-1:Ze.top=-3;break;case 1:Ze.bottom=-3;break;default:Ze.bottom=-3,Ze[lr]=rt+ee;break}return Y.createElement("div",{style:Ze,className:`${at}-drop-indicator`})}var G=g(48610),q=Y.forwardRef((X,pe)=>{const{getPrefixCls:qe,direction:at,virtual:rt,tree:Rt}=Y.useContext(K.E_),{prefixCls:lr,className:qt,showIcon:Ze=!1,showLine:Er,switcherIcon:Cr,blockNode:Kr=!1,children:_r,checkable:Me=!1,selectable:Tt=!0,draggable:z,motion:v,style:f}=X,D=qe("tree",lr),de=qe(),W=v!=null?v:Object.assign(Object.assign({},(0,H.Z)(de)),{motionAppear:!1}),P=Object.assign(Object.assign({},X),{checkable:Me,selectable:Tt,showIcon:Ze,motion:W,blockNode:Kr,showLine:!!Er,dropIndicatorRender:B}),[te,Ie]=(0,V.ZP)(D),Te=Y.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||Y.createElement(F.Z,null)),Ge},[z]),Se=Ge=>Y.createElement(G.Z,{prefixCls:D,switcherIcon:Cr,treeNodeProps:Ge,showLine:Er});return te(Y.createElement(we.Z,Object.assign({itemHeight:20,ref:pe,virtual:rt},P,{style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),f),prefixCls:D,className:A()({[`${D}-icon-hide`]:!Ze,[`${D}-block-node`]:Kr,[`${D}-unselectable`]:!Tt,[`${D}-rtl`]:at==="rtl"},Rt==null?void 0:Rt.className,qt,Ie),direction:at,checkable:Me&&Y.createElement("span",{className:`${D}-checkbox-inner`}),selectable:Tt,switcherIcon:Se,draggable:Te}),_r))}),be;(function(X){X[X.None=0]="None",X[X.Start=1]="Start",X[X.End=2]="End"})(be||(be={}));function xe(X,pe){function qe(at){const{key:rt,children:Rt}=at;pe(rt,at)!==!1&&xe(Rt||[],pe)}X.forEach(qe)}function Le(X){let{treeData:pe,expandedKeys:qe,startKey:at,endKey:rt}=X;const Rt=[];let lr=be.None;if(at&&at===rt)return[at];if(!at||!rt)return[];function qt(Ze){return Ze===at||Ze===rt}return xe(pe,Ze=>{if(lr===be.End)return!1;if(qt(Ze)){if(Rt.push(Ze),lr===be.None)lr=be.Start;else if(lr===be.Start)return lr=be.End,!1}else lr===be.Start&&Rt.push(Ze);return qe.includes(Ze)}),Rt}function ae(X,pe){const qe=(0,Fe.Z)(pe),at=[];return xe(X,(rt,Rt)=>{const lr=qe.indexOf(rt);return lr!==-1&&(at.push(Rt),qe.splice(lr,1)),!!qe.length}),at}var me=function(X,pe){var qe={};for(var at in X)Object.prototype.hasOwnProperty.call(X,at)&&pe.indexOf(at)<0&&(qe[at]=X[at]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,at=Object.getOwnPropertySymbols(X);rt<at.length;rt++)pe.indexOf(at[rt])<0&&Object.prototype.propertyIsEnumerable.call(X,at[rt])&&(qe[at[rt]]=X[at[rt]]);return qe};function I(X){const{isLeaf:pe,expanded:qe}=X;return pe?Y.createElement(se.Z,null):qe?Y.createElement(ke.Z,null):Y.createElement(p,null)}function _e(X){let{treeData:pe,children:qe}=X;return pe||(0,S.zn)(qe)}const oe=(X,pe)=>{var{defaultExpandAll:qe,defaultExpandParent:at,defaultExpandedKeys:rt}=X,Rt=me(X,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const lr=Y.useRef(),qt=Y.useRef(),Ze=()=>{const{keyEntities:Te}=(0,S.I8)(_e(Rt));let Se;return qe?Se=Object.keys(Te):at?Se=(0,m.r7)(Rt.expandedKeys||rt||[],Te):Se=Rt.expandedKeys||rt,Se},[Er,Cr]=Y.useState(Rt.selectedKeys||Rt.defaultSelectedKeys||[]),[Kr,_r]=Y.useState(()=>Ze());Y.useEffect(()=>{"selectedKeys"in Rt&&Cr(Rt.selectedKeys)},[Rt.selectedKeys]),Y.useEffect(()=>{"expandedKeys"in Rt&&_r(Rt.expandedKeys)},[Rt.expandedKeys]);const Me=(Te,Se)=>{var Ge;return"expandedKeys"in Rt||_r(Te),(Ge=Rt.onExpand)===null||Ge===void 0?void 0:Ge.call(Rt,Te,Se)},Tt=(Te,Se)=>{var Ge;const{multiple:ft}=Rt,{node:Ke,nativeEvent:Xe}=Se,{key:At=""}=Ke,We=_e(Rt),$e=Object.assign(Object.assign({},Se),{selected:!0}),Bt=(Xe==null?void 0:Xe.ctrlKey)||(Xe==null?void 0:Xe.metaKey),Kt=Xe==null?void 0:Xe.shiftKey;let Mt;ft&&Bt?(Mt=Te,lr.current=At,qt.current=Mt,$e.selectedNodes=ae(We,Mt)):ft&&Kt?(Mt=Array.from(new Set([].concat((0,Fe.Z)(qt.current||[]),(0,Fe.Z)(Le({treeData:We,expandedKeys:Kr,startKey:At,endKey:lr.current}))))),$e.selectedNodes=ae(We,Mt)):(Mt=[At],lr.current=At,qt.current=Mt,$e.selectedNodes=ae(We,Mt)),(Ge=Rt.onSelect)===null||Ge===void 0||Ge.call(Rt,Mt,$e),"selectedKeys"in Rt||Cr(Mt)},{getPrefixCls:z,direction:v}=Y.useContext(K.E_),{prefixCls:f,className:D,showIcon:de=!0,expandAction:W="click"}=Rt,P=me(Rt,["prefixCls","className","showIcon","expandAction"]),te=z("tree",f),Ie=A()(`${te}-directory`,{[`${te}-directory-rtl`]:v==="rtl"},D);return Y.createElement(q,Object.assign({icon:I,ref:pe,blockNode:!0},P,{showIcon:de,expandAction:W,prefixCls:te,className:Ie,expandedKeys:Kr,selectedKeys:Er,onSelect:Tt,onExpand:Me}))};var ve=Y.forwardRef(oe);const _=q;_.DirectoryTree=ve,_.TreeNode=we.O;var N=_},20648:function(yn,Gt,g){"use strict";g.d(Gt,{TM:function(){return a},Yk:function(){return p}});var we=g(9792),Fe=g(98447),se=g(17313),ke=g(8378),ie=g(37613),Y=g(83116);const O=new we.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),T=(A,m)=>({[`.${A}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${m.motionDurationSlow}`}}}),n=(A,m)=>({[`.${A}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:m.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${m.lineWidthBold}px solid ${m.colorPrimary}`,borderRadius:"50%",content:'""'}}}),o=(A,m)=>{const{treeCls:S,treeNodeCls:K,treeNodePadding:F,titleHeight:H,nodeSelectedBg:V,nodeHoverBg:ee}=m,B=m.paddingXS;return{[S]:Object.assign(Object.assign({},(0,se.Wf)(m)),{background:m.colorBgContainer,borderRadius:m.borderRadius,transition:`background-color ${m.motionDurationSlow}`,[`&${S}-rtl`]:{[`${S}-switcher`]:{"&_close":{[`${S}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${S}-active-focused)`]:Object.assign({},(0,se.oN)(m)),[`${S}-list-holder-inner`]:{alignItems:"flex-start"},[`&${S}-block-node`]:{[`${S}-list-holder-inner`]:{alignItems:"stretch",[`${S}-node-content-wrapper`]:{flex:"auto"},[`${K}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:F,insetInlineStart:0,border:`1px solid ${m.colorPrimary}`,opacity:0,animationName:O,animationDuration:m.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${K}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${F}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${S}-node-content-wrapper`]:{color:m.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${S}-node-content-wrapper`]:Object.assign({},(0,se.oN)(m)),[`&:not(${K}-disabled).filter-node ${S}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${S}-draggable-icon`]:{flexShrink:0,width:H,lineHeight:`${H}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${m.motionDurationSlow}`,[`${K}:hover &`]:{opacity:.45}},[`&${K}-disabled`]:{[`${S}-draggable-icon`]:{visibility:"hidden"}}}},[`${S}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:H}},[`${S}-draggable-icon`]:{visibility:"hidden"},[`${S}-switcher`]:Object.assign(Object.assign({},T(A,m)),{position:"relative",flex:"none",alignSelf:"stretch",width:H,margin:0,lineHeight:`${H}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${S}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:m.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:H/2,bottom:-F,marginInlineStart:-1,borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:H/2*.8,height:H/2,borderBottom:`1px solid ${m.colorBorder}`,content:'""'}}}),[`${S}-checkbox`]:{top:"initial",marginInlineEnd:B},[`${S}-node-content-wrapper, ${S}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:H,margin:0,padding:`0 ${m.paddingXS/2}px`,color:"inherit",lineHeight:`${H}px`,background:"transparent",borderRadius:m.borderRadius,cursor:"pointer",transition:`all ${m.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ee},[`&${S}-node-selected`]:{backgroundColor:V},[`${S}-iconEle`]:{display:"inline-block",width:H,height:H,lineHeight:`${H}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${S}-unselectable ${S}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${S}-node-content-wrapper`]:Object.assign({lineHeight:`${H}px`,userSelect:"none"},n(A,m)),[`${K}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${m.colorPrimary}`}},"&-show-line":{[`${S}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:H/2,bottom:-F,borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${S}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${K}-leaf-last`]:{[`${S}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${H/2}px !important`}}}}})}},L=A=>{const{treeCls:m,treeNodeCls:S,treeNodePadding:K,directoryNodeSelectedBg:F,directoryNodeSelectedColor:H}=A;return{[`${m}${m}-directory`]:{[S]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:K,insetInlineStart:0,transition:`background-color ${A.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:A.controlItemBgHover}},"> *":{zIndex:1},[`${m}-switcher`]:{transition:`color ${A.motionDurationMid}`},[`${m}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${m}-node-selected`]:{color:H,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:F},[`${m}-switcher`]:{color:H},[`${m}-node-content-wrapper`]:{color:H,background:"transparent"}}}}}},p=(A,m)=>{const S=`.${A}`,K=`${S}-treenode`,F=m.paddingXS/2,H=(0,ie.TS)(m,{treeCls:S,treeNodeCls:K,treeNodePadding:F});return[o(A,H),L(H)]},a=A=>{const{controlHeightSM:m}=A;return{titleHeight:m,nodeHoverBg:A.controlItemBgHover,nodeSelectedBg:A.controlItemBgActive}};Gt.ZP=(0,Y.Z)("Tree",(A,m)=>{let{prefixCls:S}=m;return[{[A.componentCls]:(0,Fe.C2)(`${S}-checkbox`,A)},p(S,A),(0,ke.Z)(A)]},A=>{const{colorTextLightSolid:m,colorPrimary:S}=A;return Object.assign(Object.assign({},a(A)),{directoryNodeSelectedColor:m,directoryNodeSelectedBg:S})})},48610:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return K}});var we=g(5891),Fe=g(59301),se={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"},ke=se,ie=g(88853),Y=function(H,V){return Fe.createElement(ie.Z,(0,we.Z)({},H,{ref:V,icon:ke}))},O=Fe.forwardRef(Y),T=O,n=g(43971),o=g(50023),L=g(77042),p=g(5527),a=g(92310),A=g.n(a),m=g(92343),K=F=>{const{prefixCls:H,switcherIcon:V,treeNodeProps:ee,showLine:B}=F,{isLeaf:G,expanded:ce,loading:q}=ee;if(q)return Fe.createElement(o.Z,{className:`${H}-switcher-loading-icon`});let be;if(B&&typeof B=="object"&&(be=B.showLeafIcon),G){if(!B)return null;if(typeof be!="boolean"&&be){const ae=typeof be=="function"?be(ee):be,me=`${H}-switcher-line-custom-icon`;return(0,m.l$)(ae)?(0,m.Tm)(ae,{className:A()(ae.props.className||"",me)}):ae}return be?Fe.createElement(n.Z,{className:`${H}-switcher-line-icon`}):Fe.createElement("span",{className:`${H}-switcher-leaf-line`})}const xe=`${H}-switcher-icon`,Le=typeof V=="function"?V(ee):V;return(0,m.l$)(Le)?(0,m.Tm)(Le,{className:A()(Le.props.className||"",xe)}):Le!==void 0?Le:B?ce?Fe.createElement(L.Z,{className:`${H}-switcher-line-icon`}):Fe.createElement(p.Z,{className:`${H}-switcher-line-icon`}):Fe.createElement(T,{className:xe})}},86251:function(yn,Gt){"use strict";Gt.byteLength=O,Gt.toByteArray=n,Gt.fromByteArray=p;for(var g=[],we=[],Fe=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ke=0,ie=se.length;ke<ie;++ke)g[ke]=se[ke],we[se.charCodeAt(ke)]=ke;we[45]=62,we[95]=63;function Y(a){var A=a.length;if(A%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=a.indexOf("=");m===-1&&(m=A);var S=m===A?0:4-m%4;return[m,S]}function O(a){var A=Y(a),m=A[0],S=A[1];return(m+S)*3/4-S}function T(a,A,m){return(A+m)*3/4-m}function n(a){var A,m=Y(a),S=m[0],K=m[1],F=new Fe(T(a,S,K)),H=0,V=K>0?S-4:S,ee;for(ee=0;ee<V;ee+=4)A=we[a.charCodeAt(ee)]<<18|we[a.charCodeAt(ee+1)]<<12|we[a.charCodeAt(ee+2)]<<6|we[a.charCodeAt(ee+3)],F[H++]=A>>16&255,F[H++]=A>>8&255,F[H++]=A&255;return K===2&&(A=we[a.charCodeAt(ee)]<<2|we[a.charCodeAt(ee+1)]>>4,F[H++]=A&255),K===1&&(A=we[a.charCodeAt(ee)]<<10|we[a.charCodeAt(ee+1)]<<4|we[a.charCodeAt(ee+2)]>>2,F[H++]=A>>8&255,F[H++]=A&255),F}function o(a){return g[a>>18&63]+g[a>>12&63]+g[a>>6&63]+g[a&63]}function L(a,A,m){for(var S,K=[],F=A;F<m;F+=3)S=(a[F]<<16&16711680)+(a[F+1]<<8&65280)+(a[F+2]&255),K.push(o(S));return K.join("")}function p(a){for(var A,m=a.length,S=m%3,K=[],F=16383,H=0,V=m-S;H<V;H+=F)K.push(L(a,H,H+F>V?V:H+F));return S===1?(A=a[m-1],K.push(g[A>>2]+g[A<<4&63]+"==")):S===2&&(A=(a[m-2]<<8)+a[m-1],K.push(g[A>>10]+g[A>>4&63]+g[A<<2&63]+"=")),K.join("")}},19208:function(yn,Gt,g){"use strict";var we;var Fe=g(86251),se=g(67467),ke=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Gt.lW=T,we=H,Gt.h2=50;var ie=2147483647;we=ie,T.TYPED_ARRAY_SUPPORT=Y(),!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 Y(){try{var z=new Uint8Array(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,Uint8Array.prototype),Object.setPrototypeOf(z,v),z.foo()===42}catch(f){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 O(z){if(z>ie)throw new RangeError('The value "'+z+'" is invalid for option "size"');var v=new Uint8Array(z);return Object.setPrototypeOf(v,T.prototype),v}function T(z,v,f){if(typeof z=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(z)}return n(z,v,f)}T.poolSize=8192;function n(z,v,f){if(typeof z=="string")return a(z,v);if(ArrayBuffer.isView(z))return m(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(_r(z,ArrayBuffer)||z&&_r(z.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(_r(z,SharedArrayBuffer)||z&&_r(z.buffer,SharedArrayBuffer)))return S(z,v,f);if(typeof z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var D=z.valueOf&&z.valueOf();if(D!=null&&D!==z)return T.from(D,v,f);var de=K(z);if(de)return de;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof z[Symbol.toPrimitive]=="function")return T.from(z[Symbol.toPrimitive]("string"),v,f);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,v,f){return n(z,v,f)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function o(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 L(z,v,f){return o(z),z<=0?O(z):v!==void 0?typeof f=="string"?O(z).fill(v,f):O(z).fill(v):O(z)}T.alloc=function(z,v,f){return L(z,v,f)};function p(z){return o(z),O(z<0?0:F(z)|0)}T.allocUnsafe=function(z){return p(z)},T.allocUnsafeSlow=function(z){return p(z)};function a(z,v){if((typeof v!="string"||v==="")&&(v="utf8"),!T.isEncoding(v))throw new TypeError("Unknown encoding: "+v);var f=V(z,v)|0,D=O(f),de=D.write(z,v);return de!==f&&(D=D.slice(0,de)),D}function A(z){for(var v=z.length<0?0:F(z.length)|0,f=O(v),D=0;D<v;D+=1)f[D]=z[D]&255;return f}function m(z){if(_r(z,Uint8Array)){var v=new Uint8Array(z);return S(v.buffer,v.byteOffset,v.byteLength)}return A(z)}function S(z,v,f){if(v<0||z.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(z.byteLength<v+(f||0))throw new RangeError('"length" is outside of buffer bounds');var D;return v===void 0&&f===void 0?D=new Uint8Array(z):f===void 0?D=new Uint8Array(z,v):D=new Uint8Array(z,v,f),Object.setPrototypeOf(D,T.prototype),D}function K(z){if(T.isBuffer(z)){var v=F(z.length)|0,f=O(v);return f.length===0||z.copy(f,0,0,v),f}if(z.length!==void 0)return typeof z.length!="number"||Me(z.length)?O(0):A(z);if(z.type==="Buffer"&&Array.isArray(z.data))return A(z.data)}function F(z){if(z>=ie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ie.toString(16)+" bytes");return z|0}function H(z){return+z!=z&&(z=0),T.alloc(+z)}T.isBuffer=function(v){return v!=null&&v._isBuffer===!0&&v!==T.prototype},T.compare=function(v,f){if(_r(v,Uint8Array)&&(v=T.from(v,v.offset,v.byteLength)),_r(f,Uint8Array)&&(f=T.from(f,f.offset,f.byteLength)),!T.isBuffer(v)||!T.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(v===f)return 0;for(var D=v.length,de=f.length,W=0,P=Math.min(D,de);W<P;++W)if(v[W]!==f[W]){D=v[W],de=f[W];break}return D<de?-1:de<D?1:0},T.isEncoding=function(v){switch(String(v).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(v,f){if(!Array.isArray(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return T.alloc(0);var D;if(f===void 0)for(f=0,D=0;D<v.length;++D)f+=v[D].length;var de=T.allocUnsafe(f),W=0;for(D=0;D<v.length;++D){var P=v[D];if(_r(P,Uint8Array))W+P.length>de.length?T.from(P).copy(de,W):Uint8Array.prototype.set.call(de,P,W);else if(T.isBuffer(P))P.copy(de,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=P.length}return de};function V(z,v){if(T.isBuffer(z))return z.length;if(ArrayBuffer.isView(z)||_r(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 f=z.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&f===0)return 0;for(var de=!1;;)switch(v){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return qt(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return Cr(z).length;default:if(de)return D?-1:qt(z).length;v=(""+v).toLowerCase(),de=!0}}T.byteLength=V;function ee(z,v,f){var D=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,v>>>=0,f<=v))return"";for(z||(z="utf8");;)switch(z){case"hex":return _(this,v,f);case"utf8":case"utf-8":return I(this,v,f);case"ascii":return he(this,v,f);case"latin1":case"binary":return ve(this,v,f);case"base64":return me(this,v,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,v,f);default:if(D)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),D=!0}}T.prototype._isBuffer=!0;function B(z,v,f){var D=z[v];z[v]=z[f],z[f]=D}T.prototype.swap16=function(){var v=this.length;if(v%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<v;f+=2)B(this,f,f+1);return this},T.prototype.swap32=function(){var v=this.length;if(v%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<v;f+=4)B(this,f,f+3),B(this,f+1,f+2);return this},T.prototype.swap64=function(){var v=this.length;if(v%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<v;f+=8)B(this,f,f+7),B(this,f+1,f+6),B(this,f+2,f+5),B(this,f+3,f+4);return this},T.prototype.toString=function(){var v=this.length;return v===0?"":arguments.length===0?I(this,0,v):ee.apply(this,arguments)},T.prototype.toLocaleString=T.prototype.toString,T.prototype.equals=function(v){if(!T.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v?!0:T.compare(this,v)===0},T.prototype.inspect=function(){var v="",f=Gt.h2;return v=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(v+=" ... "),"<Buffer "+v+">"},ke&&(T.prototype[ke]=T.prototype.inspect),T.prototype.compare=function(v,f,D,de,W){if(_r(v,Uint8Array)&&(v=T.from(v,v.offset,v.byteLength)),!T.isBuffer(v))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof v);if(f===void 0&&(f=0),D===void 0&&(D=v?v.length:0),de===void 0&&(de=0),W===void 0&&(W=this.length),f<0||D>v.length||de<0||W>this.length)throw new RangeError("out of range index");if(de>=W&&f>=D)return 0;if(de>=W)return-1;if(f>=D)return 1;if(f>>>=0,D>>>=0,de>>>=0,W>>>=0,this===v)return 0;for(var P=W-de,te=D-f,Ie=Math.min(P,te),Te=this.slice(de,W),Se=v.slice(f,D),Ge=0;Ge<Ie;++Ge)if(Te[Ge]!==Se[Ge]){P=Te[Ge],te=Se[Ge];break}return P<te?-1:te<P?1:0};function G(z,v,f,D,de){if(z.length===0)return-1;if(typeof f=="string"?(D=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,Me(f)&&(f=de?0:z.length-1),f<0&&(f=z.length+f),f>=z.length){if(de)return-1;f=z.length-1}else if(f<0)if(de)f=0;else return-1;if(typeof v=="string"&&(v=T.from(v,D)),T.isBuffer(v))return v.length===0?-1:ce(z,v,f,D,de);if(typeof v=="number")return v=v&255,typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call(z,v,f):Uint8Array.prototype.lastIndexOf.call(z,v,f):ce(z,[v],f,D,de);throw new TypeError("val must be string, number or Buffer")}function ce(z,v,f,D,de){var W=1,P=z.length,te=v.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(z.length<2||v.length<2)return-1;W=2,P/=2,te/=2,f/=2}function Ie(Ke,Xe){return W===1?Ke[Xe]:Ke.readUInt16BE(Xe*W)}var Te;if(de){var Se=-1;for(Te=f;Te<P;Te++)if(Ie(z,Te)===Ie(v,Se===-1?0:Te-Se)){if(Se===-1&&(Se=Te),Te-Se+1===te)return Se*W}else Se!==-1&&(Te-=Te-Se),Se=-1}else for(f+te>P&&(f=P-te),Te=f;Te>=0;Te--){for(var Ge=!0,ft=0;ft<te;ft++)if(Ie(z,Te+ft)!==Ie(v,ft)){Ge=!1;break}if(Ge)return Te}return-1}T.prototype.includes=function(v,f,D){return this.indexOf(v,f,D)!==-1},T.prototype.indexOf=function(v,f,D){return G(this,v,f,D,!0)},T.prototype.lastIndexOf=function(v,f,D){return G(this,v,f,D,!1)};function q(z,v,f,D){f=Number(f)||0;var de=z.length-f;D?(D=Number(D),D>de&&(D=de)):D=de;var W=v.length;D>W/2&&(D=W/2);for(var P=0;P<D;++P){var te=parseInt(v.substr(P*2,2),16);if(Me(te))return P;z[f+P]=te}return P}function be(z,v,f,D){return Kr(qt(v,z.length-f),z,f,D)}function xe(z,v,f,D){return Kr(Ze(v),z,f,D)}function Le(z,v,f,D){return Kr(Cr(v),z,f,D)}function ae(z,v,f,D){return Kr(Er(v,z.length-f),z,f,D)}T.prototype.write=function(v,f,D,de){if(f===void 0)de="utf8",D=this.length,f=0;else if(D===void 0&&typeof f=="string")de=f,D=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(D)?(D=D>>>0,de===void 0&&(de="utf8")):(de=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-f;if((D===void 0||D>W)&&(D=W),v.length>0&&(D<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");for(var P=!1;;)switch(de){case"hex":return q(this,v,f,D);case"utf8":case"utf-8":return be(this,v,f,D);case"ascii":case"latin1":case"binary":return xe(this,v,f,D);case"base64":return Le(this,v,f,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae(this,v,f,D);default:if(P)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),P=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function me(z,v,f){return v===0&&f===z.length?Fe.fromByteArray(z):Fe.fromByteArray(z.slice(v,f))}function I(z,v,f){f=Math.min(z.length,f);for(var D=[],de=v;de<f;){var W=z[de],P=null,te=W>239?4:W>223?3:W>191?2:1;if(de+te<=f){var Ie,Te,Se,Ge;switch(te){case 1:W<128&&(P=W);break;case 2:Ie=z[de+1],(Ie&192)===128&&(Ge=(W&31)<<6|Ie&63,Ge>127&&(P=Ge));break;case 3:Ie=z[de+1],Te=z[de+2],(Ie&192)===128&&(Te&192)===128&&(Ge=(W&15)<<12|(Ie&63)<<6|Te&63,Ge>2047&&(Ge<55296||Ge>57343)&&(P=Ge));break;case 4:Ie=z[de+1],Te=z[de+2],Se=z[de+3],(Ie&192)===128&&(Te&192)===128&&(Se&192)===128&&(Ge=(W&15)<<18|(Ie&63)<<12|(Te&63)<<6|Se&63,Ge>65535&&Ge<1114112&&(P=Ge))}}P===null?(P=65533,te=1):P>65535&&(P-=65536,D.push(P>>>10&1023|55296),P=56320|P&1023),D.push(P),de+=te}return oe(D)}var _e=4096;function oe(z){var v=z.length;if(v<=_e)return String.fromCharCode.apply(String,z);for(var f="",D=0;D<v;)f+=String.fromCharCode.apply(String,z.slice(D,D+=_e));return f}function he(z,v,f){var D="";f=Math.min(z.length,f);for(var de=v;de<f;++de)D+=String.fromCharCode(z[de]&127);return D}function ve(z,v,f){var D="";f=Math.min(z.length,f);for(var de=v;de<f;++de)D+=String.fromCharCode(z[de]);return D}function _(z,v,f){var D=z.length;(!v||v<0)&&(v=0),(!f||f<0||f>D)&&(f=D);for(var de="",W=v;W<f;++W)de+=Tt[z[W]];return de}function N(z,v,f){for(var D=z.slice(v,f),de="",W=0;W<D.length-1;W+=2)de+=String.fromCharCode(D[W]+D[W+1]*256);return de}T.prototype.slice=function(v,f){var D=this.length;v=~~v,f=f===void 0?D:~~f,v<0?(v+=D,v<0&&(v=0)):v>D&&(v=D),f<0?(f+=D,f<0&&(f=0)):f>D&&(f=D),f<v&&(f=v);var de=this.subarray(v,f);return Object.setPrototypeOf(de,T.prototype),de};function X(z,v,f){if(z%1!==0||z<0)throw new RangeError("offset is not uint");if(z+v>f)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(v,f,D){v=v>>>0,f=f>>>0,D||X(v,f,this.length);for(var de=this[v],W=1,P=0;++P<f&&(W*=256);)de+=this[v+P]*W;return de},T.prototype.readUintBE=T.prototype.readUIntBE=function(v,f,D){v=v>>>0,f=f>>>0,D||X(v,f,this.length);for(var de=this[v+--f],W=1;f>0&&(W*=256);)de+=this[v+--f]*W;return de},T.prototype.readUint8=T.prototype.readUInt8=function(v,f){return v=v>>>0,f||X(v,1,this.length),this[v]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(v,f){return v=v>>>0,f||X(v,2,this.length),this[v]|this[v+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(v,f){return v=v>>>0,f||X(v,2,this.length),this[v]<<8|this[v+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(v,f){return v=v>>>0,f||X(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+this[v+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(v,f){return v=v>>>0,f||X(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},T.prototype.readIntLE=function(v,f,D){v=v>>>0,f=f>>>0,D||X(v,f,this.length);for(var de=this[v],W=1,P=0;++P<f&&(W*=256);)de+=this[v+P]*W;return W*=128,de>=W&&(de-=Math.pow(2,8*f)),de},T.prototype.readIntBE=function(v,f,D){v=v>>>0,f=f>>>0,D||X(v,f,this.length);for(var de=f,W=1,P=this[v+--de];de>0&&(W*=256);)P+=this[v+--de]*W;return W*=128,P>=W&&(P-=Math.pow(2,8*f)),P},T.prototype.readInt8=function(v,f){return v=v>>>0,f||X(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},T.prototype.readInt16LE=function(v,f){v=v>>>0,f||X(v,2,this.length);var D=this[v]|this[v+1]<<8;return D&32768?D|4294901760:D},T.prototype.readInt16BE=function(v,f){v=v>>>0,f||X(v,2,this.length);var D=this[v+1]|this[v]<<8;return D&32768?D|4294901760:D},T.prototype.readInt32LE=function(v,f){return v=v>>>0,f||X(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},T.prototype.readInt32BE=function(v,f){return v=v>>>0,f||X(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},T.prototype.readFloatLE=function(v,f){return v=v>>>0,f||X(v,4,this.length),se.read(this,v,!0,23,4)},T.prototype.readFloatBE=function(v,f){return v=v>>>0,f||X(v,4,this.length),se.read(this,v,!1,23,4)},T.prototype.readDoubleLE=function(v,f){return v=v>>>0,f||X(v,8,this.length),se.read(this,v,!0,52,8)},T.prototype.readDoubleBE=function(v,f){return v=v>>>0,f||X(v,8,this.length),se.read(this,v,!1,52,8)};function pe(z,v,f,D,de,W){if(!T.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>de||v<W)throw new RangeError('"value" argument is out of bounds');if(f+D>z.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(v,f,D,de){if(v=+v,f=f>>>0,D=D>>>0,!de){var W=Math.pow(2,8*D)-1;pe(this,v,f,D,W,0)}var P=1,te=0;for(this[f]=v&255;++te<D&&(P*=256);)this[f+te]=v/P&255;return f+D},T.prototype.writeUintBE=T.prototype.writeUIntBE=function(v,f,D,de){if(v=+v,f=f>>>0,D=D>>>0,!de){var W=Math.pow(2,8*D)-1;pe(this,v,f,D,W,0)}var P=D-1,te=1;for(this[f+P]=v&255;--P>=0&&(te*=256);)this[f+P]=v/te&255;return f+D},T.prototype.writeUint8=T.prototype.writeUInt8=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,1,255,0),this[f]=v&255,f+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,2,65535,0),this[f]=v&255,this[f+1]=v>>>8,f+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,2,65535,0),this[f]=v>>>8,this[f+1]=v&255,f+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,4,4294967295,0),this[f+3]=v>>>24,this[f+2]=v>>>16,this[f+1]=v>>>8,this[f]=v&255,f+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,4,4294967295,0),this[f]=v>>>24,this[f+1]=v>>>16,this[f+2]=v>>>8,this[f+3]=v&255,f+4},T.prototype.writeIntLE=function(v,f,D,de){if(v=+v,f=f>>>0,!de){var W=Math.pow(2,8*D-1);pe(this,v,f,D,W-1,-W)}var P=0,te=1,Ie=0;for(this[f]=v&255;++P<D&&(te*=256);)v<0&&Ie===0&&this[f+P-1]!==0&&(Ie=1),this[f+P]=(v/te>>0)-Ie&255;return f+D},T.prototype.writeIntBE=function(v,f,D,de){if(v=+v,f=f>>>0,!de){var W=Math.pow(2,8*D-1);pe(this,v,f,D,W-1,-W)}var P=D-1,te=1,Ie=0;for(this[f+P]=v&255;--P>=0&&(te*=256);)v<0&&Ie===0&&this[f+P+1]!==0&&(Ie=1),this[f+P]=(v/te>>0)-Ie&255;return f+D},T.prototype.writeInt8=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,1,127,-128),v<0&&(v=255+v+1),this[f]=v&255,f+1},T.prototype.writeInt16LE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,2,32767,-32768),this[f]=v&255,this[f+1]=v>>>8,f+2},T.prototype.writeInt16BE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,2,32767,-32768),this[f]=v>>>8,this[f+1]=v&255,f+2},T.prototype.writeInt32LE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,4,2147483647,-2147483648),this[f]=v&255,this[f+1]=v>>>8,this[f+2]=v>>>16,this[f+3]=v>>>24,f+4},T.prototype.writeInt32BE=function(v,f,D){return v=+v,f=f>>>0,D||pe(this,v,f,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),this[f]=v>>>24,this[f+1]=v>>>16,this[f+2]=v>>>8,this[f+3]=v&255,f+4};function qe(z,v,f,D,de,W){if(f+D>z.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function at(z,v,f,D,de){return v=+v,f=f>>>0,de||qe(z,v,f,4,34028234663852886e22,-34028234663852886e22),se.write(z,v,f,D,23,4),f+4}T.prototype.writeFloatLE=function(v,f,D){return at(this,v,f,!0,D)},T.prototype.writeFloatBE=function(v,f,D){return at(this,v,f,!1,D)};function rt(z,v,f,D,de){return v=+v,f=f>>>0,de||qe(z,v,f,8,17976931348623157e292,-17976931348623157e292),se.write(z,v,f,D,52,8),f+8}T.prototype.writeDoubleLE=function(v,f,D){return rt(this,v,f,!0,D)},T.prototype.writeDoubleBE=function(v,f,D){return rt(this,v,f,!1,D)},T.prototype.copy=function(v,f,D,de){if(!T.isBuffer(v))throw new TypeError("argument should be a Buffer");if(D||(D=0),!de&&de!==0&&(de=this.length),f>=v.length&&(f=v.length),f||(f=0),de>0&&de<D&&(de=D),de===D||v.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),v.length-f<de-D&&(de=v.length-f+D);var W=de-D;return this===v&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,D,de):Uint8Array.prototype.set.call(v,this.subarray(D,de),f),W},T.prototype.fill=function(v,f,D,de){if(typeof v=="string"){if(typeof f=="string"?(de=f,f=0,D=this.length):typeof D=="string"&&(de=D,D=this.length),de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!T.isEncoding(de))throw new TypeError("Unknown encoding: "+de);if(v.length===1){var W=v.charCodeAt(0);(de==="utf8"&&W<128||de==="latin1")&&(v=W)}}else typeof v=="number"?v=v&255:typeof v=="boolean"&&(v=Number(v));if(f<0||this.length<f||this.length<D)throw new RangeError("Out of range index");if(D<=f)return this;f=f>>>0,D=D===void 0?this.length:D>>>0,v||(v=0);var P;if(typeof v=="number")for(P=f;P<D;++P)this[P]=v;else{var te=T.isBuffer(v)?v:T.from(v,de),Ie=te.length;if(Ie===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(P=0;P<D-f;++P)this[P+f]=te[P%Ie]}return this};var Rt=/[^+/0-9A-Za-z-_]/g;function lr(z){if(z=z.split("=")[0],z=z.trim().replace(Rt,""),z.length<2)return"";for(;z.length%4!==0;)z=z+"=";return z}function qt(z,v){v=v||1/0;for(var f,D=z.length,de=null,W=[],P=0;P<D;++P){if(f=z.charCodeAt(P),f>55295&&f<57344){if(!de){if(f>56319){(v-=3)>-1&&W.push(239,191,189);continue}else if(P+1===D){(v-=3)>-1&&W.push(239,191,189);continue}de=f;continue}if(f<56320){(v-=3)>-1&&W.push(239,191,189),de=f;continue}f=(de-55296<<10|f-56320)+65536}else de&&(v-=3)>-1&&W.push(239,191,189);if(de=null,f<128){if((v-=1)<0)break;W.push(f)}else if(f<2048){if((v-=2)<0)break;W.push(f>>6|192,f&63|128)}else if(f<65536){if((v-=3)<0)break;W.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((v-=4)<0)break;W.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return W}function Ze(z){for(var v=[],f=0;f<z.length;++f)v.push(z.charCodeAt(f)&255);return v}function Er(z,v){for(var f,D,de,W=[],P=0;P<z.length&&!((v-=2)<0);++P)f=z.charCodeAt(P),D=f>>8,de=f%256,W.push(de),W.push(D);return W}function Cr(z){return Fe.toByteArray(lr(z))}function Kr(z,v,f,D){for(var de=0;de<D&&!(de+f>=v.length||de>=z.length);++de)v[de+f]=z[de];return de}function _r(z,v){return z instanceof v||z!=null&&z.constructor!=null&&z.constructor.name!=null&&z.constructor.name===v.name}function Me(z){return z!==z}var Tt=function(){for(var z="0123456789abcdef",v=new Array(256),f=0;f<16;++f)for(var D=f*16,de=0;de<16;++de)v[D+de]=z[f]+z[de];return v}()},64018:function(){var yn,Gt,g,we=!1,Fe,se;window.PR_SHOULD_USE_CONTINUATION=!0;var ke,ie;(function(){var Y=window,O=["break,continue,do,else,for,if,return,while"],T=[O,"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"],n=[T,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],o=[n,"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"],L=[n,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],p=[n,"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"],a="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",A=[n,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],m="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",S=[O,"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"],K=[O,"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"],F=[O,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],H=[o,p,L,A,m,S,K,F],V=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,ee="str",B="kwd",G="com",ce="typ",q="lit",be="pun",xe="pln",Le="tag",ae="dec",me="src",I="atn",_e="atv",oe="nocode",he="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function ve(z){for(var v=0,f=!1,D=!1,de=0,W=z.length;de<W;++de){var P=z[de];if(P.ignoreCase)D=!0;else if(/[a-z]/i.test(P.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){f=!0,D=!1;break}}var te={b:8,t:9,n:10,v:11,f:12,r:13};function Ie(Ke){var Xe=Ke.charCodeAt(0);if(Xe!==92)return Xe;var At=Ke.charAt(1);return Xe=te[At],Xe||("0"<=At&&At<="7"?parseInt(Ke.substring(1),8):At==="u"||At==="x"?parseInt(Ke.substring(2),16):Ke.charCodeAt(1))}function Te(Ke){if(Ke<32)return(Ke<16?"\\x0":"\\x")+Ke.toString(16);var Xe=String.fromCharCode(Ke);return Xe==="\\"||Xe==="-"||Xe==="]"||Xe==="^"?"\\"+Xe:Xe}function Se(Ke){var Xe=Ke.substring(1,Ke.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=[],We=Xe[0]==="^",$e=["["];We&&$e.push("^");for(var Bt=We?1:0,Kt=Xe.length;Bt<Kt;++Bt){var Mt=Xe[Bt];if(/\\[bdsw]/i.test(Mt))$e.push(Mt);else{var wr=Ie(Mt),vr;Bt+2<Kt&&Xe[Bt+1]==="-"?(vr=Ie(Xe[Bt+2]),Bt+=2):vr=wr,At.push([wr,vr]),vr<65||wr>122||(vr<65||wr>90||At.push([Math.max(65,wr)|32,Math.min(vr,90)|32]),vr<97||wr>122||At.push([Math.max(97,wr)&-33,Math.min(vr,122)&-33]))}}At.sort(function(Ue,ot){return Ue[0]-ot[0]||ot[1]-Ue[1]});for(var re=[],le=[],Bt=0;Bt<At.length;++Bt){var rr=At[Bt];rr[0]<=le[1]+1?le[1]=Math.max(le[1],rr[1]):re.push(le=rr)}for(var Bt=0;Bt<re.length;++Bt){var rr=re[Bt];$e.push(Te(rr[0])),rr[1]>rr[0]&&(rr[1]+1>rr[0]&&$e.push("-"),$e.push(Te(rr[1])))}return $e.push("]"),$e.join("")}function Ge(Ke){for(var Xe=Ke.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=Xe.length,We=[],$e=0,Bt=0;$e<At;++$e){var Kt=Xe[$e];if(Kt==="(")++Bt;else if(Kt.charAt(0)==="\\"){var Mt=+Kt.substring(1);Mt&&(Mt<=Bt?We[Mt]=-1:Xe[$e]=Te(Mt))}}for(var $e=1;$e<We.length;++$e)We[$e]===-1&&(We[$e]=++v);for(var $e=0,Bt=0;$e<At;++$e){var Kt=Xe[$e];if(Kt==="(")++Bt,We[Bt]||(Xe[$e]="(?:");else if(Kt.charAt(0)==="\\"){var Mt=+Kt.substring(1);Mt&&Mt<=Bt&&(Xe[$e]="\\"+We[Mt])}}for(var $e=0;$e<At;++$e)Xe[$e]==="^"&&Xe[$e+1]!=="^"&&(Xe[$e]="");if(Ke.ignoreCase&&f)for(var $e=0;$e<At;++$e){var Kt=Xe[$e],wr=Kt.charAt(0);Kt.length>=2&&wr==="["?Xe[$e]=Se(Kt):wr!=="\\"&&(Xe[$e]=Kt.replace(/[a-zA-Z]/g,function(le){var rr=le.charCodeAt(0);return"["+String.fromCharCode(rr&-33,rr|32)+"]"}))}return Xe.join("")}for(var ft=[],de=0,W=z.length;de<W;++de){var P=z[de];if(P.global||P.multiline)throw new Error(""+P);ft.push("(?:"+Ge(P)+")")}return new RegExp(ft.join("|"),D?"gi":"g")}function _(z,v){var f=/(?:^|\s)nocode(?:\s|$)/,D=[],de=0,W=[],P=0;function te(Ie){var Te=Ie.nodeType;if(Te==1){if(f.test(Ie.className))return;for(var Se=Ie.firstChild;Se;Se=Se.nextSibling)te(Se);var Ge=Ie.nodeName.toLowerCase();(Ge==="br"||Ge==="li")&&(D[P]=`
|
|
|
`,W[P<<1]=de++,W[P++<<1|1]=Ie)}else if(Te==3||Te==4){var ft=Ie.nodeValue;ft.length&&(v?ft=ft.replace(/\r\n?/g,`
|
|
|
`):ft=ft.replace(/[ \t\r\n]+/g," "),D[P]=ft,W[P<<1]=de,de+=ft.length,W[P++<<1|1]=Ie)}}return te(z),{sourceCode:D.join("").replace(/\n$/,""),spans:W}}function N(z,v,f,D,de){if(f){var W={sourceNode:z,pre:1,langExtension:null,numberLines:null,sourceCode:f,spans:null,basePos:v,decorations:null};D(W),de.push.apply(de,W.decorations)}}var X=/\S/;function pe(z){for(var v=void 0,f=z.firstChild;f;f=f.nextSibling){var D=f.nodeType;v=D===1?v?z:f:D===3&&X.test(f.nodeValue)?z:v}return v===z?void 0:v}function qe(z,v){var f={},D;(function(){for(var P=z.concat(v),te=[],Ie={},Te=0,Se=P.length;Te<Se;++Te){var Ge=P[Te],ft=Ge[3];if(ft)for(var Ke=ft.length;--Ke>=0;)f[ft.charAt(Ke)]=Ge;var Xe=Ge[1],At=""+Xe;Ie.hasOwnProperty(At)||(te.push(Xe),Ie[At]=null)}te.push(/[\0-\uffff]/),D=ve(te)})();var de=v.length,W=function(P){for(var te=P.sourceCode,Ie=P.basePos,Te=P.sourceNode,Se=[Ie,xe],Ge=0,ft=te.match(D)||[],Ke={},Xe=0,At=ft.length;Xe<At;++Xe){var We=ft[Xe],$e=Ke[We],Bt=void 0,Kt;if(typeof $e=="string")Kt=!1;else{var Mt=f[We.charAt(0)];if(Mt)Bt=We.match(Mt[1]),$e=Mt[0];else{for(var wr=0;wr<de;++wr)if(Mt=v[wr],Bt=We.match(Mt[1]),Bt){$e=Mt[0];break}Bt||($e=xe)}Kt=$e.length>=5&&$e.substring(0,5)==="lang-",Kt&&!(Bt&&typeof Bt[1]=="string")&&(Kt=!1,$e=me),Kt||(Ke[We]=$e)}var vr=Ge;if(Ge+=We.length,!Kt)Se.push(Ie+vr,$e);else{var re=Bt[1],le=We.indexOf(re),rr=le+re.length;Bt[2]&&(rr=We.length-Bt[2].length,le=rr-re.length);var Ue=$e.substring(5);N(Te,Ie+vr,We.substring(0,le),W,Se),N(Te,Ie+vr+le,re,Er(Ue,re),Se),N(Te,Ie+vr+rr,We.substring(rr),W,Se)}}P.decorations=Se};return W}function at(z){var v=[],f=[];z.tripleQuotedStrings?v.push([ee,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):z.multiLineStrings?v.push([ee,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):v.push([ee,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),z.verbatimStrings&&f.push([ee,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var D=z.hashComments;D&&(z.cStyleComments?(D>1?v.push([G,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):v.push([G,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),f.push([ee,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):v.push([G,/^#[^\r\n]*/,null,"#"])),z.cStyleComments&&(f.push([G,/^\/\/[^\r\n]*/,null]),f.push([G,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var de=z.regexLiterals;if(de){var W=de>1?"":`
|
|
|
\r`,P=W?".":"[\\S\\s]",te="/(?=[^/*"+W+"])(?:[^/\\x5B\\x5C"+W+"]|\\x5C"+P+"|\\x5B(?:[^\\x5C\\x5D"+W+"]|\\x5C"+P+")*(?:\\x5D|$))+/";f.push(["lang-regex",RegExp("^"+he+"("+te+")")])}var Ie=z.types;Ie&&f.push([ce,Ie]);var Te=(""+z.keywords).replace(/^ | $/g,"");Te.length&&f.push([B,new RegExp("^(?:"+Te.replace(/[\s,]+/g,"|")+")\\b"),null]),v.push([xe,/^\s+/,null,` \r
|
|
|
\xA0`]);var Se="^.[^\\s\\w.$@'\"`/\\\\]*";return z.regexLiterals&&(Se+="(?!s*/)"),f.push([q,/^@[a-z_$][a-z_$@0-9]*/i,null],[ce,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[xe,/^[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"],[xe,/^\\[\s\S]?/,null],[be,new RegExp(Se),null]),qe(v,f)}var rt=at({keywords:H,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Rt(z,v,f){for(var D=/(?:^|\s)nocode(?:\s|$)/,de=/\r\n?|\n/,W=z.ownerDocument,P=W.createElement("li");z.firstChild;)P.appendChild(z.firstChild);var te=[P];function Ie(Xe){var At=Xe.nodeType;if(At==1&&!D.test(Xe.className))if(Xe.nodeName==="br")Te(Xe),Xe.parentNode&&Xe.parentNode.removeChild(Xe);else for(var We=Xe.firstChild;We;We=We.nextSibling)Ie(We);else if((At==3||At==4)&&f){var $e=Xe.nodeValue,Bt=$e.match(de);if(Bt){var Kt=$e.substring(0,Bt.index);Xe.nodeValue=Kt;var Mt=$e.substring(Bt.index+Bt[0].length);if(Mt){var wr=Xe.parentNode;wr.insertBefore(W.createTextNode(Mt),Xe.nextSibling)}Te(Xe),Kt||Xe.parentNode.removeChild(Xe)}}}function Te(Xe){for(;!Xe.nextSibling;)if(Xe=Xe.parentNode,!Xe)return;function At(Bt,Kt){var Mt=Kt?Bt.cloneNode(!1):Bt,wr=Bt.parentNode;if(wr){var vr=At(wr,1),re=Bt.nextSibling;vr.appendChild(Mt);for(var le=re;le;le=re)re=le.nextSibling,vr.appendChild(le)}return Mt}for(var We=At(Xe.nextSibling,0),$e;($e=We.parentNode)&&$e.nodeType===1;)We=$e;te.push(We)}for(var Se=0;Se<te.length;++Se)Ie(te[Se]);v===(v|0)&&te[0].setAttribute("value",v);var Ge=W.createElement("ol");Ge.className="linenums";for(var ft=Math.max(0,v-1|0)||0,Se=0,Ke=te.length;Se<Ke;++Se)P=te[Se],P.className="L"+(Se+ft)%10,P.firstChild||P.appendChild(W.createTextNode("\xA0")),Ge.appendChild(P);z.appendChild(Ge)}function lr(z){var v=/\bMSIE\s(\d+)/.exec(navigator.userAgent);v=v&&+v[1]<=8;var f=/\n/g,D=z.sourceCode,de=D.length,W=0,P=z.spans,te=P.length,Ie=0,Te=z.decorations,Se=Te.length,Ge=0;Te[Se]=de;var ft,Ke;for(Ke=ft=0;Ke<Se;)Te[Ke]!==Te[Ke+2]?(Te[ft++]=Te[Ke++],Te[ft++]=Te[Ke++]):Ke+=2;for(Se=ft,Ke=ft=0;Ke<Se;){for(var Xe=Te[Ke],At=Te[Ke+1],We=Ke+2;We+2<=Se&&Te[We+1]===At;)We+=2;Te[ft++]=Xe,Te[ft++]=At,Ke=We}Se=Te.length=ft;var $e=z.sourceNode,Bt="";$e&&(Bt=$e.style.display,$e.style.display="none");try{for(var Kt=null;Ie<te;){var Mt=P[Ie],wr=P[Ie+2]||de,vr=Te[Ge+2]||de,We=Math.min(wr,vr),re=P[Ie+1],le;if(re.nodeType!==1&&(le=D.substring(W,We))){v&&(le=le.replace(f,"\r")),re.nodeValue=le;var rr=re.ownerDocument,Ue=rr.createElement("span");Ue.className=Te[Ge+1];var ot=re.parentNode;ot.replaceChild(Ue,re),Ue.appendChild(re),W<wr&&(P[Ie+1]=re=rr.createTextNode(D.substring(We,wr)),ot.insertBefore(re,Ue.nextSibling))}W=We,W>=wr&&(Ie+=2),W>=vr&&(Ge+=2)}}finally{$e&&($e.style.display=Bt)}}var qt={};function Ze(z,v){for(var f=v.length;--f>=0;){var D=v[f];qt.hasOwnProperty(D)?Y.console&&console.warn("cannot override language handler %s",D):qt[D]=z}}function Er(z,v){return z&&qt.hasOwnProperty(z)||(z=/^\s*</.test(v)?"default-markup":"default-code"),qt[z]}Ze(rt,["default-code"]),Ze(qe([],[[xe,/^[^<?]+/],[ae,/^<!\w[^>]*(?:>|$)/],[G,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[be,/^(?:<[%?]|[%?]>)/],["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(qe([[xe,/^[\s]+/,null,` \r
|
|
|
`],[_e,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Le,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[I,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[be,/^[=<>\/]+/],["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(qe([],[[_e,/^[\s\S]+/]]),["uq.val"]),Ze(at({keywords:o,hashComments:!0,cStyleComments:!0,types:V}),["c","cc","cpp","cxx","cyc","m"]),Ze(at({keywords:"null,true,false"}),["json"]),Ze(at({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:V}),["cs"]),Ze(at({keywords:L,cStyleComments:!0}),["java"]),Ze(at({keywords:F,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ze(at({keywords:S,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ze(at({keywords:m,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ze(at({keywords:K,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ze(at({keywords:A,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ze(at({keywords:a,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ze(qe([],[[ee,/^[\s\S]+/]]),["regex"]);function Cr(z){var v=z.langExtension;try{var f=_(z.sourceNode,z.pre),D=f.sourceCode;z.sourceCode=D,z.spans=f.spans,z.basePos=0,Er(v,D)(z),lr(z)}catch(de){Y.console&&console.log(de&&de.stack||de)}}function Kr(z,v,f){var D=f||!1,de=v||null,W=document.createElement("div");W.innerHTML="<pre>"+z+"</pre>",W=W.firstChild,D&&Rt(W,D,!0);var P={langExtension:de,numberLines:D,sourceNode:W,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Cr(P),W.innerHTML}function _r(z,v){var f=v||document.body,D=f.ownerDocument||document;function de(Mt){return f.getElementsByTagName(Mt)}for(var W=[de("pre"),de("code"),de("xmp")],P=[],te=0;te<W.length;++te)for(var Ie=0,Te=W[te].length;Ie<Te;++Ie)P.push(W[te][Ie]);W=null;var Se=Date;Se.now||(Se={now:function(){return+new Date}});var Ge=0,ft=/\blang(?:uage)?-([\w.]+)(?!\S)/,Ke=/\bprettyprint\b/,Xe=/\bprettyprinted\b/,At=/pre|xmp/i,We=/^code$/i,$e=/^(?:pre|code|xmp)$/i,Bt={};function Kt(){for(var Mt=Y.PR_SHOULD_USE_CONTINUATION?Se.now()+250:1/0;Ge<P.length&&Se.now()<Mt;Ge++){for(var wr=P[Ge],vr=Bt,re=wr;re=re.previousSibling;){var le=re.nodeType,rr=(le===7||le===8)&&re.nodeValue;if(rr?!/^\??prettify\b/.test(rr):le!==3||/\S/.test(re.nodeValue))break;if(rr){vr={},rr.replace(/\b(\w+)=([\w:.%+-]+)/g,function(kt,Nn,Jn){vr[Nn]=Jn});break}}var Ue=wr.className;if((vr!==Bt||Ke.test(Ue))&&!Xe.test(Ue)){for(var ot=!1,Yr=wr.parentNode;Yr;Yr=Yr.parentNode){var St=Yr.tagName;if($e.test(St)&&Yr.className&&Ke.test(Yr.className)){ot=!0;break}}if(!ot){wr.className+=" prettyprinted";var Vt=vr.lang;if(!Vt){Vt=Ue.match(ft);var Zt;!Vt&&(Zt=pe(wr))&&We.test(Zt.tagName)&&(Vt=Zt.className.match(ft)),Vt&&(Vt=Vt[1])}var nt;if(At.test(wr.tagName))nt=1;else{var ct=wr.currentStyle,dt=D.defaultView,Xt=ct?ct.whiteSpace:dt&&dt.getComputedStyle?dt.getComputedStyle(wr,null).getPropertyValue("white-space"):0;nt=Xt&&Xt.substring(0,3)==="pre"}var Re=vr.linenums;(Re=Re==="true"||+Re)||(Re=Ue.match(/\blinenums\b(?::(\d+))?/),Re=Re?Re[1]&&Re[1].length?+Re[1]:!0:!1),Re&&Rt(wr,Re,nt);var fn={langExtension:Vt,sourceNode:wr,numberLines:Re,pre:nt,sourceCode:null,basePos:null,spans:null,decorations:null};Cr(fn)}}}Ge<P.length?Y.setTimeout(Kt,250):typeof z=="function"&&z()}Kt()}var Me=Y.PR={createSimpleLexer:qe,registerLangHandler:Ze,sourceDecorator:at,PR_ATTRIB_NAME:I,PR_ATTRIB_VALUE:_e,PR_COMMENT:G,PR_DECLARATION:ae,PR_KEYWORD:B,PR_LITERAL:q,PR_NOCODE:oe,PR_PLAIN:xe,PR_PUNCTUATION:be,PR_SOURCE:me,PR_STRING:ee,PR_TAG:Le,PR_TYPE:ce,prettyPrintOne:we?Y.prettyPrintOne=Kr:ke=Kr,prettyPrint:ie=we?Y.prettyPrint=_r:ie=_r},Tt=Y.define;typeof Tt=="function"&&Tt.amd&&Tt("google-code-prettify",[],function(){return Me})})()},25769:function(yn,Gt,g){"use strict";var we=g(98040),Fe={"text/plain":"Text","text/html":"Url",default:"Text"},se="Copy to clipboard: #{key}, Enter";function ke(Y){var O=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return Y.replace(/#{\s*key\s*}/g,O)}function ie(Y,O){var T,n,o,L,p,a,A=!1;O||(O={}),T=O.debug||!1;try{o=we(),L=document.createRange(),p=document.getSelection(),a=document.createElement("span"),a.textContent=Y,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(S){if(S.stopPropagation(),O.format)if(S.preventDefault(),typeof S.clipboardData=="undefined"){T&&console.warn("unable to use e.clipboardData"),T&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var K=Fe[O.format]||Fe.default;window.clipboardData.setData(K,Y)}else S.clipboardData.clearData(),S.clipboardData.setData(O.format,Y);O.onCopy&&(S.preventDefault(),O.onCopy(S.clipboardData))}),document.body.appendChild(a),L.selectNodeContents(a),p.addRange(L);var m=document.execCommand("copy");if(!m)throw new Error("copy command was unsuccessful");A=!0}catch(S){T&&console.error("unable to copy using execCommand: ",S),T&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(O.format||"text",Y),O.onCopy&&O.onCopy(window.clipboardData),A=!0}catch(K){T&&console.error("unable to copy using clipboardData: ",K),T&&console.error("falling back to prompt"),n=ke("message"in O?O.message:se),window.prompt(n,Y)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(L):p.removeAllRanges()),a&&document.body.removeChild(a),o()}return A}yn.exports=ie},64270:function(yn){(function(Gt,g){yn.exports=g()})(this,function(){"use strict";var Gt=function(R,E){return Gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,k){U.__proto__=k}||function(U,k){for(var Pe in k)Object.prototype.hasOwnProperty.call(k,Pe)&&(U[Pe]=k[Pe])},Gt(R,E)};function g(R,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");Gt(R,E);function U(){this.constructor=R}R.prototype=E===null?Object.create(E):(U.prototype=E.prototype,new U)}var we=function(){return we=Object.assign||function(E){for(var U,k=1,Pe=arguments.length;k<Pe;k++){U=arguments[k];for(var it in U)Object.prototype.hasOwnProperty.call(U,it)&&(E[it]=U[it])}return E},we.apply(this,arguments)};function Fe(R,E,U,k){function Pe(it){return it instanceof U?it:new U(function(Lt){Lt(it)})}return new(U||(U=Promise))(function(it,Lt){function or(Jr){try{jr(k.next(Jr))}catch(mn){Lt(mn)}}function ar(Jr){try{jr(k.throw(Jr))}catch(mn){Lt(mn)}}function jr(Jr){Jr.done?it(Jr.value):Pe(Jr.value).then(or,ar)}jr((k=k.apply(R,E||[])).next())})}function se(R,E){var U={label:0,sent:function(){if(it[0]&1)throw it[1];return it[1]},trys:[],ops:[]},k,Pe,it,Lt;return Lt={next:or(0),throw:or(1),return:or(2)},typeof Symbol=="function"&&(Lt[Symbol.iterator]=function(){return this}),Lt;function or(jr){return function(Jr){return ar([jr,Jr])}}function ar(jr){if(k)throw new TypeError("Generator is already executing.");for(;U;)try{if(k=1,Pe&&(it=jr[0]&2?Pe.return:jr[0]?Pe.throw||((it=Pe.return)&&it.call(Pe),0):Pe.next)&&!(it=it.call(Pe,jr[1])).done)return it;switch(Pe=0,it&&(jr=[jr[0]&2,it.value]),jr[0]){case 0:case 1:it=jr;break;case 4:return U.label++,{value:jr[1],done:!1};case 5:U.label++,Pe=jr[1],jr=[0];continue;case 7:jr=U.ops.pop(),U.trys.pop();continue;default:if(it=U.trys,!(it=it.length>0&&it[it.length-1])&&(jr[0]===6||jr[0]===2)){U=0;continue}if(jr[0]===3&&(!it||jr[1]>it[0]&&jr[1]<it[3])){U.label=jr[1];break}if(jr[0]===6&&U.label<it[1]){U.label=it[1],it=jr;break}if(it&&U.label<it[2]){U.label=it[2],U.ops.push(jr);break}it[2]&&U.ops.pop(),U.trys.pop();continue}jr=E.call(R,U)}catch(Jr){jr=[6,Jr],Pe=0}finally{k=it=0}if(jr[0]&5)throw jr[1];return{value:jr[0]?jr[1]:void 0,done:!0}}}function ke(R,E,U){if(U||arguments.length===2)for(var k=0,Pe=E.length,it;k<Pe;k++)(it||!(k in E))&&(it||(it=Array.prototype.slice.call(E,0,k)),it[k]=E[k]);return R.concat(it||E)}for(var ie=function(){function R(E,U,k,Pe){this.left=E,this.top=U,this.width=k,this.height=Pe}return R.prototype.add=function(E,U,k,Pe){return new R(this.left+E,this.top+U,this.width+k,this.height+Pe)},R.fromClientRect=function(E,U){return new R(U.left+E.windowBounds.left,U.top+E.windowBounds.top,U.width,U.height)},R.fromDOMRectList=function(E,U){var k=Array.from(U).find(function(Pe){return Pe.width!==0});return k?new R(k.left+E.windowBounds.left,k.top+E.windowBounds.top,k.width,k.height):R.EMPTY},R.EMPTY=new R(0,0,0,0),R}(),Y=function(R,E){return ie.fromClientRect(R,E.getBoundingClientRect())},O=function(R){var E=R.body,U=R.documentElement;if(!E||!U)throw new Error("Unable to get document size");var k=Math.max(Math.max(E.scrollWidth,U.scrollWidth),Math.max(E.offsetWidth,U.offsetWidth),Math.max(E.clientWidth,U.clientWidth)),Pe=Math.max(Math.max(E.scrollHeight,U.scrollHeight),Math.max(E.offsetHeight,U.offsetHeight),Math.max(E.clientHeight,U.clientHeight));return new ie(0,0,k,Pe)},T=function(R){for(var E=[],U=0,k=R.length;U<k;){var Pe=R.charCodeAt(U++);if(Pe>=55296&&Pe<=56319&&U<k){var it=R.charCodeAt(U++);(it&64512)===56320?E.push(((Pe&1023)<<10)+(it&1023)+65536):(E.push(Pe),U--)}else E.push(Pe)}return E},n=function(){for(var R=[],E=0;E<arguments.length;E++)R[E]=arguments[E];if(String.fromCodePoint)return String.fromCodePoint.apply(String,R);var U=R.length;if(!U)return"";for(var k=[],Pe=-1,it="";++Pe<U;){var Lt=R[Pe];Lt<=65535?k.push(Lt):(Lt-=65536,k.push((Lt>>10)+55296,Lt%1024+56320)),(Pe+1===U||k.length>16384)&&(it+=String.fromCharCode.apply(String,k),k.length=0)}return it},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),p=0;p<o.length;p++)L[o.charCodeAt(p)]=p;for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),m=0;m<a.length;m++)A[a.charCodeAt(m)]=m;for(var S=function(R){var E=R.length*.75,U=R.length,k,Pe=0,it,Lt,or,ar;R[R.length-1]==="="&&(E--,R[R.length-2]==="="&&E--);var jr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(E):new Array(E),Jr=Array.isArray(jr)?jr:new Uint8Array(jr);for(k=0;k<U;k+=4)it=A[R.charCodeAt(k)],Lt=A[R.charCodeAt(k+1)],or=A[R.charCodeAt(k+2)],ar=A[R.charCodeAt(k+3)],Jr[Pe++]=it<<2|Lt>>4,Jr[Pe++]=(Lt&15)<<4|or>>2,Jr[Pe++]=(or&3)<<6|ar&63;return jr},K=function(R){for(var E=R.length,U=[],k=0;k<E;k+=2)U.push(R[k+1]<<8|R[k]);return U},F=function(R){for(var E=R.length,U=[],k=0;k<E;k+=4)U.push(R[k+3]<<24|R[k+2]<<16|R[k+1]<<8|R[k]);return U},H=5,V=11,ee=2,B=V-H,G=65536>>H,ce=1<<H,q=ce-1,be=1024>>H,xe=G+be,Le=xe,ae=32,me=Le+ae,I=65536>>V,_e=1<<B,oe=_e-1,he=function(R,E,U){return R.slice?R.slice(E,U):new Uint16Array(Array.prototype.slice.call(R,E,U))},ve=function(R,E,U){return R.slice?R.slice(E,U):new Uint32Array(Array.prototype.slice.call(R,E,U))},_=function(R,E){var U=S(R),k=Array.isArray(U)?F(U):new Uint32Array(U),Pe=Array.isArray(U)?K(U):new Uint16Array(U),it=24,Lt=he(Pe,it/2,k[4]/2),or=k[5]===2?he(Pe,(it+k[4])/2):ve(k,Math.ceil((it+k[4])/4));return new N(k[0],k[1],k[2],k[3],Lt,or)},N=function(){function R(E,U,k,Pe,it,Lt){this.initialValue=E,this.errorValue=U,this.highStart=k,this.highValueIndex=Pe,this.index=it,this.data=Lt}return R.prototype.get=function(E){var U;if(E>=0){if(E<55296||E>56319&&E<=65535)return U=this.index[E>>H],U=(U<<ee)+(E&q),this.data[U];if(E<=65535)return U=this.index[G+(E-55296>>H)],U=(U<<ee)+(E&q),this.data[U];if(E<this.highStart)return U=me-I+(E>>V),U=this.index[U],U+=E>>H&oe,U=this.index[U],U=(U<<ee)+(E&q),this.data[U];if(E<=1114111)return this.data[this.highValueIndex]}return this.errorValue},R}(),X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),qe=0;qe<X.length;qe++)pe[X.charCodeAt(qe)]=qe;var at="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==",rt=50,Rt=1,lr=2,qt=3,Ze=4,Er=5,Cr=7,Kr=8,_r=9,Me=10,Tt=11,z=12,v=13,f=14,D=15,de=16,W=17,P=18,te=19,Ie=20,Te=21,Se=22,Ge=23,ft=24,Ke=25,Xe=26,At=27,We=28,$e=29,Bt=30,Kt=31,Mt=32,wr=33,vr=34,re=35,le=36,rr=37,Ue=38,ot=39,Yr=40,St=41,Vt=42,Zt=43,nt=[9001,65288],ct="!",dt="\xD7",Xt="\xF7",Re=_(at),fn=[Bt,le],kt=[Rt,lr,qt,Er],Nn=[Me,Kr],Jn=[At,Xe],vi=kt.concat(Nn),Fi=[Ue,ot,Yr,vr,re],Mn=[D,v],Hn=function(R,E){E===void 0&&(E="strict");var U=[],k=[],Pe=[];return R.forEach(function(it,Lt){var or=Re.get(it);if(or>rt?(Pe.push(!0),or-=rt):Pe.push(!1),["normal","auto","loose"].indexOf(E)!==-1&&[8208,8211,12316,12448].indexOf(it)!==-1)return k.push(Lt),U.push(de);if(or===Ze||or===Tt){if(Lt===0)return k.push(Lt),U.push(Bt);var ar=U[Lt-1];return vi.indexOf(ar)===-1?(k.push(k[Lt-1]),U.push(ar)):(k.push(Lt),U.push(Bt))}if(k.push(Lt),or===Kt)return U.push(E==="strict"?Te:rr);if(or===Vt||or===$e)return U.push(Bt);if(or===Zt)return it>=131072&&it<=196605||it>=196608&&it<=262141?U.push(rr):U.push(Bt);U.push(or)}),[k,U,Pe]},Yt=function(R,E,U,k){var Pe=k[U];if(Array.isArray(R)?R.indexOf(Pe)!==-1:R===Pe)for(var it=U;it<=k.length;){it++;var Lt=k[it];if(Lt===E)return!0;if(Lt!==Me)break}if(Pe===Me)for(var it=U;it>0;){it--;var or=k[it];if(Array.isArray(R)?R.indexOf(or)!==-1:R===or)for(var ar=U;ar<=k.length;){ar++;var Lt=k[ar];if(Lt===E)return!0;if(Lt!==Me)break}if(or!==Me)break}return!1},kr=function(R,E){for(var U=R;U>=0;){var k=E[U];if(k===Me)U--;else return k}return 0},tn=function(R,E,U,k,Pe){if(U[k]===0)return dt;var it=k-1;if(Array.isArray(Pe)&&Pe[it]===!0)return dt;var Lt=it-1,or=it+1,ar=E[it],jr=Lt>=0?E[Lt]:0,Jr=E[or];if(ar===lr&&Jr===qt)return dt;if(kt.indexOf(ar)!==-1)return ct;if(kt.indexOf(Jr)!==-1||Nn.indexOf(Jr)!==-1)return dt;if(kr(it,E)===Kr)return Xt;if(Re.get(R[it])===Tt||(ar===Mt||ar===wr)&&Re.get(R[or])===Tt||ar===Cr||Jr===Cr||ar===_r||[Me,v,D].indexOf(ar)===-1&&Jr===_r||[W,P,te,ft,We].indexOf(Jr)!==-1||kr(it,E)===Se||Yt(Ge,Se,it,E)||Yt([W,P],Te,it,E)||Yt(z,z,it,E))return dt;if(ar===Me)return Xt;if(ar===Ge||Jr===Ge)return dt;if(Jr===de||ar===de)return Xt;if([v,D,Te].indexOf(Jr)!==-1||ar===f||jr===le&&Mn.indexOf(ar)!==-1||ar===We&&Jr===le||Jr===Ie||fn.indexOf(Jr)!==-1&&ar===Ke||fn.indexOf(ar)!==-1&&Jr===Ke||ar===At&&[rr,Mt,wr].indexOf(Jr)!==-1||[rr,Mt,wr].indexOf(ar)!==-1&&Jr===Xe||fn.indexOf(ar)!==-1&&Jn.indexOf(Jr)!==-1||Jn.indexOf(ar)!==-1&&fn.indexOf(Jr)!==-1||[At,Xe].indexOf(ar)!==-1&&(Jr===Ke||[Se,D].indexOf(Jr)!==-1&&E[or+1]===Ke)||[Se,D].indexOf(ar)!==-1&&Jr===Ke||ar===Ke&&[Ke,We,ft].indexOf(Jr)!==-1)return dt;if([Ke,We,ft,W,P].indexOf(Jr)!==-1)for(var mn=it;mn>=0;){var h=E[mn];if(h===Ke)return dt;if([We,ft].indexOf(h)!==-1)mn--;else break}if([At,Xe].indexOf(Jr)!==-1)for(var mn=[W,P].indexOf(ar)!==-1?Lt:it;mn>=0;){var h=E[mn];if(h===Ke)return dt;if([We,ft].indexOf(h)!==-1)mn--;else break}if(Ue===ar&&[Ue,ot,vr,re].indexOf(Jr)!==-1||[ot,vr].indexOf(ar)!==-1&&[ot,Yr].indexOf(Jr)!==-1||[Yr,re].indexOf(ar)!==-1&&Jr===Yr||Fi.indexOf(ar)!==-1&&[Ie,Xe].indexOf(Jr)!==-1||Fi.indexOf(Jr)!==-1&&ar===At||fn.indexOf(ar)!==-1&&fn.indexOf(Jr)!==-1||ar===ft&&fn.indexOf(Jr)!==-1||fn.concat(Ke).indexOf(ar)!==-1&&Jr===Se&&nt.indexOf(R[or])===-1||fn.concat(Ke).indexOf(Jr)!==-1&&ar===P)return dt;if(ar===St&&Jr===St){for(var Q=U[it],ue=1;Q>0&&(Q--,E[Q]===St);)ue++;if(ue%2!==0)return dt}return ar===Mt&&Jr===wr?dt:Xt},Nt=function(R,E){E||(E={lineBreak:"normal",wordBreak:"normal"});var U=Hn(R,E.lineBreak),k=U[0],Pe=U[1],it=U[2];(E.wordBreak==="break-all"||E.wordBreak==="break-word")&&(Pe=Pe.map(function(or){return[Ke,Bt,Vt].indexOf(or)!==-1?rr:or}));var Lt=E.wordBreak==="keep-all"?it.map(function(or,ar){return or&&R[ar]>=19968&&R[ar]<=40959}):void 0;return[k,Pe,Lt]},_t=function(){function R(E,U,k,Pe){this.codePoints=E,this.required=U===ct,this.start=k,this.end=Pe}return R.prototype.slice=function(){return n.apply(void 0,this.codePoints.slice(this.start,this.end))},R}(),Ir=function(R,E){var U=T(R),k=Nt(U,E),Pe=k[0],it=k[1],Lt=k[2],or=U.length,ar=0,jr=0;return{next:function(){if(jr>=or)return{done:!0,value:null};for(var Jr=dt;jr<or&&(Jr=tn(U,it,Pe,++jr,Lt))===dt;);if(Jr!==dt||jr===or){var mn=new _t(U,Jr,ar,jr);return ar=jr,{value:mn,done:!1}}return{done:!0,value:null}}}},Dr=1,In=2,qr=4,Sn=8,hn=10,$n=47,ri=92,Hr=9,zr=32,Tn=34,Bn=61,Qn=35,Xn=36,Hi=37,fi=39,wn=40,hr=41,yr=95,Pr=45,Zr=33,Qr=60,on=62,en=64,jn=91,qn=93,oi=61,Qi=123,Ri=63,ki=125,Tr=124,_n=126,gn=128,ui=65533,ii=42,ti=43,wi=44,Pi=58,Bi=59,zi=46,ca=0,xi=8,vn=11,Ht=14,Ln=31,Gn=127,Ci=-1,ji=48,fa=97,va=101,ea=102,_i=117,yi=122,Si=65,ra=69,Aa=70,es=85,ps=90,hi=function(R){return R>=ji&&R<=57},Ca=function(R){return R>=55296&&R<=57343},ma=function(R){return hi(R)||R>=Si&&R<=Aa||R>=fa&&R<=ea},ka=function(R){return R>=fa&&R<=yi},Ps=function(R){return R>=Si&&R<=ps},is=function(R){return ka(R)||Ps(R)},Fa=function(R){return R>=gn},Mi=function(R){return R===hn||R===Hr||R===zr},la=function(R){return is(R)||Fa(R)||R===yr},ms=function(R){return la(R)||hi(R)||R===Pr},as=function(R){return R>=ca&&R<=xi||R===vn||R>=Ht&&R<=Ln||R===Gn},ts=function(R,E){return R!==ri?!1:E!==hn},Wi=function(R,E,U){return R===Pr?la(E)||ts(E,U):la(R)?!0:!!(R===ri&&ts(R,E))},gs=function(R,E,U){return R===ti||R===Pr?hi(E)?!0:E===zi&&hi(U):hi(R===zi?E:R)},aa=function(R){var E=0,U=1;(R[E]===ti||R[E]===Pr)&&(R[E]===Pr&&(U=-1),E++);for(var k=[];hi(R[E]);)k.push(R[E++]);var Pe=k.length?parseInt(n.apply(void 0,k),10):0;R[E]===zi&&E++;for(var it=[];hi(R[E]);)it.push(R[E++]);var Lt=it.length,or=Lt?parseInt(n.apply(void 0,it),10):0;(R[E]===ra||R[E]===va)&&E++;var ar=1;(R[E]===ti||R[E]===Pr)&&(R[E]===Pr&&(ar=-1),E++);for(var jr=[];hi(R[E]);)jr.push(R[E++]);var Jr=jr.length?parseInt(n.apply(void 0,jr),10):0;return U*(Pe+or*Math.pow(10,-Lt))*Math.pow(10,ar*Jr)},co={type:2},Qs={type:3},Co={type:4},fs={type:13},_o={type:8},ss={type:21},Yn={type:9},Da={type:10},io={type:11},Zi={type:12},ta={type:14},$i={type:23},Ui={type:1},wa={type:25},Pa={type:24},Ls={type:26},cs={type:27},Es={type:28},rs={type:29},Bo={type:31},go={type:32},eo=function(){function R(){this._value=[]}return R.prototype.write=function(E){this._value=this._value.concat(T(E))},R.prototype.read=function(){for(var E=[],U=this.consumeToken();U!==go;)E.push(U),U=this.consumeToken();return E},R.prototype.consumeToken=function(){var E=this.consumeCodePoint();switch(E){case Tn:return this.consumeStringToken(Tn);case Qn:var U=this.peekCodePoint(0),k=this.peekCodePoint(1),Pe=this.peekCodePoint(2);if(ms(U)||ts(k,Pe)){var it=Wi(U,k,Pe)?In:Dr,Lt=this.consumeName();return{type:5,value:Lt,flags:it}}break;case Xn:if(this.peekCodePoint(0)===Bn)return this.consumeCodePoint(),fs;break;case fi:return this.consumeStringToken(fi);case wn:return co;case hr:return Qs;case ii:if(this.peekCodePoint(0)===Bn)return this.consumeCodePoint(),ta;break;case ti:if(gs(E,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(E),this.consumeNumericToken();break;case wi:return Co;case Pr:var or=E,ar=this.peekCodePoint(0),jr=this.peekCodePoint(1);if(gs(or,ar,jr))return this.reconsumeCodePoint(E),this.consumeNumericToken();if(Wi(or,ar,jr))return this.reconsumeCodePoint(E),this.consumeIdentLikeToken();if(ar===Pr&&jr===on)return this.consumeCodePoint(),this.consumeCodePoint(),Pa;break;case zi:if(gs(E,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(E),this.consumeNumericToken();break;case $n:if(this.peekCodePoint(0)===ii)for(this.consumeCodePoint();;){var Jr=this.consumeCodePoint();if(Jr===ii&&(Jr=this.consumeCodePoint(),Jr===$n))return this.consumeToken();if(Jr===Ci)return this.consumeToken()}break;case Pi:return Ls;case Bi:return cs;case Qr:if(this.peekCodePoint(0)===Zr&&this.peekCodePoint(1)===Pr&&this.peekCodePoint(2)===Pr)return this.consumeCodePoint(),this.consumeCodePoint(),wa;break;case en:var mn=this.peekCodePoint(0),h=this.peekCodePoint(1),Q=this.peekCodePoint(2);if(Wi(mn,h,Q)){var Lt=this.consumeName();return{type:7,value:Lt}}break;case jn:return Es;case ri:if(ts(E,this.peekCodePoint(0)))return this.reconsumeCodePoint(E),this.consumeIdentLikeToken();break;case qn:return rs;case oi:if(this.peekCodePoint(0)===Bn)return this.consumeCodePoint(),_o;break;case Qi:return io;case ki:return Zi;case _i:case es:var ue=this.peekCodePoint(0),Qe=this.peekCodePoint(1);return ue===ti&&(ma(Qe)||Qe===Ri)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(E),this.consumeIdentLikeToken();case Tr:if(this.peekCodePoint(0)===Bn)return this.consumeCodePoint(),Yn;if(this.peekCodePoint(0)===Tr)return this.consumeCodePoint(),ss;break;case _n:if(this.peekCodePoint(0)===Bn)return this.consumeCodePoint(),Da;break;case Ci:return go}return Mi(E)?(this.consumeWhiteSpace(),Bo):hi(E)?(this.reconsumeCodePoint(E),this.consumeNumericToken()):la(E)?(this.reconsumeCodePoint(E),this.consumeIdentLikeToken()):{type:6,value:n(E)}},R.prototype.consumeCodePoint=function(){var E=this._value.shift();return typeof E=="undefined"?-1:E},R.prototype.reconsumeCodePoint=function(E){this._value.unshift(E)},R.prototype.peekCodePoint=function(E){return E>=this._value.length?-1:this._value[E]},R.prototype.consumeUnicodeRangeToken=function(){for(var E=[],U=this.consumeCodePoint();ma(U)&&E.length<6;)E.push(U),U=this.consumeCodePoint();for(var k=!1;U===Ri&&E.length<6;)E.push(U),U=this.consumeCodePoint(),k=!0;if(k){var Pe=parseInt(n.apply(void 0,E.map(function(ar){return ar===Ri?ji:ar})),16),it=parseInt(n.apply(void 0,E.map(function(ar){return ar===Ri?Aa:ar})),16);return{type:30,start:Pe,end:it}}var Lt=parseInt(n.apply(void 0,E),16);if(this.peekCodePoint(0)===Pr&&ma(this.peekCodePoint(1))){this.consumeCodePoint(),U=this.consumeCodePoint();for(var or=[];ma(U)&&or.length<6;)or.push(U),U=this.consumeCodePoint();var it=parseInt(n.apply(void 0,or),16);return{type:30,start:Lt,end:it}}else return{type:30,start:Lt,end:Lt}},R.prototype.consumeIdentLikeToken=function(){var E=this.consumeName();return E.toLowerCase()==="url"&&this.peekCodePoint(0)===wn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===wn?(this.consumeCodePoint(),{type:19,value:E}):{type:20,value:E}},R.prototype.consumeUrlToken=function(){var E=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ci)return{type:22,value:""};var U=this.peekCodePoint(0);if(U===fi||U===Tn){var k=this.consumeStringToken(this.consumeCodePoint());return k.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ci||this.peekCodePoint(0)===hr)?(this.consumeCodePoint(),{type:22,value:k.value}):(this.consumeBadUrlRemnants(),$i)}for(;;){var Pe=this.consumeCodePoint();if(Pe===Ci||Pe===hr)return{type:22,value:n.apply(void 0,E)};if(Mi(Pe))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ci||this.peekCodePoint(0)===hr?(this.consumeCodePoint(),{type:22,value:n.apply(void 0,E)}):(this.consumeBadUrlRemnants(),$i);if(Pe===Tn||Pe===fi||Pe===wn||as(Pe))return this.consumeBadUrlRemnants(),$i;if(Pe===ri)if(ts(Pe,this.peekCodePoint(0)))E.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),$i;else E.push(Pe)}},R.prototype.consumeWhiteSpace=function(){for(;Mi(this.peekCodePoint(0));)this.consumeCodePoint()},R.prototype.consumeBadUrlRemnants=function(){for(;;){var E=this.consumeCodePoint();if(E===hr||E===Ci)return;ts(E,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},R.prototype.consumeStringSlice=function(E){for(var U=5e4,k="";E>0;){var Pe=Math.min(U,E);k+=n.apply(void 0,this._value.splice(0,Pe)),E-=Pe}return this._value.shift(),k},R.prototype.consumeStringToken=function(E){var U="",k=0;do{var Pe=this._value[k];if(Pe===Ci||Pe===void 0||Pe===E)return U+=this.consumeStringSlice(k),{type:0,value:U};if(Pe===hn)return this._value.splice(0,k),Ui;if(Pe===ri){var it=this._value[k+1];it!==Ci&&it!==void 0&&(it===hn?(U+=this.consumeStringSlice(k),k=-1,this._value.shift()):ts(Pe,it)&&(U+=this.consumeStringSlice(k),U+=n(this.consumeEscapedCodePoint()),k=-1))}k++}while(!0)},R.prototype.consumeNumber=function(){var E=[],U=qr,k=this.peekCodePoint(0);for((k===ti||k===Pr)&&E.push(this.consumeCodePoint());hi(this.peekCodePoint(0));)E.push(this.consumeCodePoint());k=this.peekCodePoint(0);var Pe=this.peekCodePoint(1);if(k===zi&&hi(Pe))for(E.push(this.consumeCodePoint(),this.consumeCodePoint()),U=Sn;hi(this.peekCodePoint(0));)E.push(this.consumeCodePoint());k=this.peekCodePoint(0),Pe=this.peekCodePoint(1);var it=this.peekCodePoint(2);if((k===ra||k===va)&&((Pe===ti||Pe===Pr)&&hi(it)||hi(Pe)))for(E.push(this.consumeCodePoint(),this.consumeCodePoint()),U=Sn;hi(this.peekCodePoint(0));)E.push(this.consumeCodePoint());return[aa(E),U]},R.prototype.consumeNumericToken=function(){var E=this.consumeNumber(),U=E[0],k=E[1],Pe=this.peekCodePoint(0),it=this.peekCodePoint(1),Lt=this.peekCodePoint(2);if(Wi(Pe,it,Lt)){var or=this.consumeName();return{type:15,number:U,flags:k,unit:or}}return Pe===Hi?(this.consumeCodePoint(),{type:16,number:U,flags:k}):{type:17,number:U,flags:k}},R.prototype.consumeEscapedCodePoint=function(){var E=this.consumeCodePoint();if(ma(E)){for(var U=n(E);ma(this.peekCodePoint(0))&&U.length<6;)U+=n(this.consumeCodePoint());Mi(this.peekCodePoint(0))&&this.consumeCodePoint();var k=parseInt(U,16);return k===0||Ca(k)||k>1114111?ui:k}return E===Ci?ui:E},R.prototype.consumeName=function(){for(var E="";;){var U=this.consumeCodePoint();if(ms(U))E+=n(U);else if(ts(U,this.peekCodePoint(0)))E+=n(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(U),E}},R}(),zs=function(){function R(E){this._tokens=E}return R.create=function(E){var U=new eo;return U.write(E),new R(U.read())},R.parseValue=function(E){return R.create(E).parseComponentValue()},R.parseValues=function(E){return R.create(E).parseComponentValues()},R.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 U=this.consumeComponentValue();do E=this.consumeToken();while(E.type===31);if(E.type===32)return U;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},R.prototype.parseComponentValues=function(){for(var E=[];;){var U=this.consumeComponentValue();if(U.type===32)return E;E.push(U),E.push()}},R.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},R.prototype.consumeSimpleBlock=function(E){for(var U={type:E,values:[]},k=this.consumeToken();;){if(k.type===32||vo(k,E))return U;this.reconsumeToken(k),U.values.push(this.consumeComponentValue()),k=this.consumeToken()}},R.prototype.consumeFunction=function(E){for(var U={name:E.value,values:[],type:18};;){var k=this.consumeToken();if(k.type===32||k.type===3)return U;this.reconsumeToken(k),U.values.push(this.consumeComponentValue())}},R.prototype.consumeToken=function(){var E=this._tokens.shift();return typeof E=="undefined"?go:E},R.prototype.reconsumeToken=function(E){this._tokens.unshift(E)},R}(),Rs=function(R){return R.type===15},Oi=function(R){return R.type===17},Ai=function(R){return R.type===20},ua=function(R){return R.type===0},vs=function(R,E){return Ai(R)&&R.value===E},Ra=function(R){return R.type!==31},Ns=function(R){return R.type!==31&&R.type!==4},Vs=function(R){var E=[],U=[];return R.forEach(function(k){if(k.type===4){if(U.length===0)throw new Error("Error parsing function args, zero tokens for arg");E.push(U),U=[];return}k.type!==31&&U.push(k)}),U.length&&E.push(U),E},vo=function(R,E){return E===11&&R.type===12||E===28&&R.type===29?!0:E===2&&R.type===3},Os=function(R){return R.type===17||R.type===15},Di=function(R){return R.type===16||Os(R)},Dl=function(R){return R.length>1?[R[0],R[1]]:[R[0]]},Js={type:17,number:0,flags:qr},nl={type:16,number:50,flags:qr},Qo={type:16,number:100,flags:qr},Ao=function(R,E,U){var k=R[0],Pe=R[1];return[_a(k,E),_a(typeof Pe!="undefined"?Pe:k,U)]},_a=function(R,E){if(R.type===16)return R.number/100*E;if(Rs(R))switch(R.unit){case"rem":case"em":return 16*R.number;case"px":default:return R.number}return R.number},vl="deg",yl="grad",fo="rad",So="turn",Na={name:"angle",parse:function(R,E){if(E.type===15)switch(E.unit){case vl:return Math.PI*E.number/180;case yl:return Math.PI/200*E.number;case fo:return E.number;case So:return Math.PI*2*E.number}throw new Error("Unsupported angle type")}},ya=function(R){return R.type===15&&(R.unit===vl||R.unit===yl||R.unit===fo||R.unit===So)},to=function(R){var E=R.filter(Ai).map(function(U){return U.value}).join(" ");switch(E){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Js,Js];case"to top":case"bottom":return Va(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Js,Qo];case"to right":case"left":return Va(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Qo,Qo];case"to bottom":case"top":return Va(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Qo,Js];case"to left":case"right":return Va(270)}return 0},Va=function(R){return Math.PI*R/180},ns={name:"color",parse:function(R,E){if(E.type===18){var U=bl[E.name];if(typeof U=="undefined")throw new Error('Attempting to parse an unsupported color function "'+E.name+'"');return U(R,E.values)}if(E.type===5){if(E.value.length===3){var k=E.value.substring(0,1),Pe=E.value.substring(1,2),it=E.value.substring(2,3);return Ys(parseInt(k+k,16),parseInt(Pe+Pe,16),parseInt(it+it,16),1)}if(E.value.length===4){var k=E.value.substring(0,1),Pe=E.value.substring(1,2),it=E.value.substring(2,3),Lt=E.value.substring(3,4);return Ys(parseInt(k+k,16),parseInt(Pe+Pe,16),parseInt(it+it,16),parseInt(Lt+Lt,16)/255)}if(E.value.length===6){var k=E.value.substring(0,2),Pe=E.value.substring(2,4),it=E.value.substring(4,6);return Ys(parseInt(k,16),parseInt(Pe,16),parseInt(it,16),1)}if(E.value.length===8){var k=E.value.substring(0,2),Pe=E.value.substring(2,4),it=E.value.substring(4,6),Lt=E.value.substring(6,8);return Ys(parseInt(k,16),parseInt(Pe,16),parseInt(it,16),parseInt(Lt,16)/255)}}if(E.type===20){var or=yo[E.value.toUpperCase()];if(typeof or!="undefined")return or}return yo.TRANSPARENT}},js=function(R){return(255&R)===0},Ea=function(R){var E=255&R,U=255&R>>8,k=255&R>>16,Pe=255&R>>24;return E<255?"rgba("+Pe+","+k+","+U+","+E/255+")":"rgb("+Pe+","+k+","+U+")"},Ys=function(R,E,U,k){return(R<<24|E<<16|U<<8|Math.round(k*255)<<0)>>>0},ao=function(R,E){if(R.type===17)return R.number;if(R.type===16){var U=E===3?1:255;return E===3?R.number/100*U:Math.round(R.number/100*U)}return 0},Po=function(R,E){var U=E.filter(Ns);if(U.length===3){var k=U.map(ao),Pe=k[0],it=k[1],Lt=k[2];return Ys(Pe,it,Lt,1)}if(U.length===4){var or=U.map(ao),Pe=or[0],it=or[1],Lt=or[2],ar=or[3];return Ys(Pe,it,Lt,ar)}return 0};function Do(R,E,U){return U<0&&(U+=1),U>=1&&(U-=1),U<1/6?(E-R)*U*6+R:U<1/2?E:U<2/3?(E-R)*6*(2/3-U)+R:R}var Ya=function(R,E){var U=E.filter(Ns),k=U[0],Pe=U[1],it=U[2],Lt=U[3],or=(k.type===17?Va(k.number):Na.parse(R,k))/(Math.PI*2),ar=Di(Pe)?Pe.number/100:0,jr=Di(it)?it.number/100:0,Jr=typeof Lt!="undefined"&&Di(Lt)?_a(Lt,1):1;if(ar===0)return Ys(jr*255,jr*255,jr*255,1);var mn=jr<=.5?jr*(ar+1):jr+ar-jr*ar,h=jr*2-mn,Q=Do(h,mn,or+1/3),ue=Do(h,mn,or),Qe=Do(h,mn,or-1/3);return Ys(Q*255,ue*255,Qe*255,Jr)},bl={hsl:Ya,hsla:Ya,rgb:Po,rgba:Po},so=function(R,E){return ns.parse(R,zs.create(E).parseComponentValue())},yo={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},Zl={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(R,E){return E.map(function(U){if(Ai(U))switch(U.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},wl={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fl=function(R,E){var U=ns.parse(R,E[0]),k=E[1];return k&&Di(k)?{color:U,stop:k}:{color:U,stop:null}},Ll=function(R,E){var U=R[0],k=R[R.length-1];U.stop===null&&(U.stop=Js),k.stop===null&&(k.stop=Qo);for(var Pe=[],it=0,Lt=0;Lt<R.length;Lt++){var or=R[Lt].stop;if(or!==null){var ar=_a(or,E);ar>it?Pe.push(ar):Pe.push(it),it=ar}else Pe.push(null)}for(var jr=null,Lt=0;Lt<Pe.length;Lt++){var Jr=Pe[Lt];if(Jr===null)jr===null&&(jr=Lt);else if(jr!==null){for(var mn=Lt-jr,h=Pe[jr-1],Q=(Jr-h)/(mn+1),ue=1;ue<=mn;ue++)Pe[jr+ue-1]=Q*ue;jr=null}}return R.map(function(Qe,lt){var pt=Qe.color;return{color:pt,stop:Math.max(Math.min(1,Pe[lt]/E),0)}})},xl=function(R,E,U){var k=E/2,Pe=U/2,it=_a(R[0],E)-k,Lt=Pe-_a(R[1],U);return(Math.atan2(Lt,it)+Math.PI*2)%(Math.PI*2)},jo=function(R,E,U){var k=typeof R=="number"?R:xl(R,E,U),Pe=Math.abs(E*Math.sin(k))+Math.abs(U*Math.cos(k)),it=E/2,Lt=U/2,or=Pe/2,ar=Math.sin(k-Math.PI/2)*or,jr=Math.cos(k-Math.PI/2)*or;return[Pe,it-jr,it+jr,Lt-ar,Lt+ar]},Gs=function(R,E){return Math.sqrt(R*R+E*E)},Lo=function(R,E,U,k,Pe){var it=[[0,0],[0,E],[R,0],[R,E]];return it.reduce(function(Lt,or){var ar=or[0],jr=or[1],Jr=Gs(U-ar,k-jr);return(Pe?Jr<Lt.optimumDistance:Jr>Lt.optimumDistance)?{optimumCorner:or,optimumDistance:Jr}:Lt},{optimumDistance:Pe?1/0:-1/0,optimumCorner:null}).optimumCorner},Za=function(R,E,U,k,Pe){var it=0,Lt=0;switch(R.size){case 0:R.shape===0?it=Lt=Math.min(Math.abs(E),Math.abs(E-k),Math.abs(U),Math.abs(U-Pe)):R.shape===1&&(it=Math.min(Math.abs(E),Math.abs(E-k)),Lt=Math.min(Math.abs(U),Math.abs(U-Pe)));break;case 2:if(R.shape===0)it=Lt=Math.min(Gs(E,U),Gs(E,U-Pe),Gs(E-k,U),Gs(E-k,U-Pe));else if(R.shape===1){var or=Math.min(Math.abs(U),Math.abs(U-Pe))/Math.min(Math.abs(E),Math.abs(E-k)),ar=Lo(k,Pe,E,U,!0),jr=ar[0],Jr=ar[1];it=Gs(jr-E,(Jr-U)/or),Lt=or*it}break;case 1:R.shape===0?it=Lt=Math.max(Math.abs(E),Math.abs(E-k),Math.abs(U),Math.abs(U-Pe)):R.shape===1&&(it=Math.max(Math.abs(E),Math.abs(E-k)),Lt=Math.max(Math.abs(U),Math.abs(U-Pe)));break;case 3:if(R.shape===0)it=Lt=Math.max(Gs(E,U),Gs(E,U-Pe),Gs(E-k,U),Gs(E-k,U-Pe));else if(R.shape===1){var or=Math.max(Math.abs(U),Math.abs(U-Pe))/Math.max(Math.abs(E),Math.abs(E-k)),mn=Lo(k,Pe,E,U,!1),jr=mn[0],Jr=mn[1];it=Gs(jr-E,(Jr-U)/or),Lt=or*it}break}return Array.isArray(R.size)&&(it=_a(R.size[0],k),Lt=R.size.length===2?_a(R.size[1],Pe):it),[it,Lt]},ys=function(R,E){var U=Va(180),k=[];return Vs(E).forEach(function(Pe,it){if(it===0){var Lt=Pe[0];if(Lt.type===20&&Lt.value==="to"){U=to(Pe);return}else if(ya(Lt)){U=Na.parse(R,Lt);return}}var or=fl(R,Pe);k.push(or)}),{angle:U,stops:k,type:1}},Xa=function(R,E){var U=Va(180),k=[];return Vs(E).forEach(function(Pe,it){if(it===0){var Lt=Pe[0];if(Lt.type===20&&["top","left","right","bottom"].indexOf(Lt.value)!==-1){U=to(Pe);return}else if(ya(Lt)){U=(Na.parse(R,Lt)+Va(270))%Va(360);return}}var or=fl(R,Pe);k.push(or)}),{angle:U,stops:k,type:1}},Cs=function(R,E){var U=Va(180),k=[],Pe=1,it=0,Lt=3,or=[];return Vs(E).forEach(function(ar,jr){var Jr=ar[0];if(jr===0){if(Ai(Jr)&&Jr.value==="linear"){Pe=1;return}else if(Ai(Jr)&&Jr.value==="radial"){Pe=2;return}}if(Jr.type===18){if(Jr.name==="from"){var mn=ns.parse(R,Jr.values[0]);k.push({stop:Js,color:mn})}else if(Jr.name==="to"){var mn=ns.parse(R,Jr.values[0]);k.push({stop:Qo,color:mn})}else if(Jr.name==="color-stop"){var h=Jr.values.filter(Ns);if(h.length===2){var mn=ns.parse(R,h[1]),Q=h[0];Oi(Q)&&k.push({stop:{type:16,number:Q.number*100,flags:Q.flags},color:mn})}}}}),Pe===1?{angle:(U+Va(180))%Va(360),stops:k,type:Pe}:{size:Lt,shape:it,stops:k,position:or,type:Pe}},qs="closest-side",El="farthest-side",il="closest-corner",Rl="farthest-corner",cu="circle",Ol="ellipse",Pl="cover",li="contain",Au=function(R,E){var U=0,k=3,Pe=[],it=[];return Vs(E).forEach(function(Lt,or){var ar=!0;if(or===0){var jr=!1;ar=Lt.reduce(function(mn,h){if(jr)if(Ai(h))switch(h.value){case"center":return it.push(nl),mn;case"top":case"left":return it.push(Js),mn;case"right":case"bottom":return it.push(Qo),mn}else(Di(h)||Os(h))&&it.push(h);else if(Ai(h))switch(h.value){case cu:return U=0,!1;case Ol:return U=1,!1;case"at":return jr=!0,!1;case qs:return k=0,!1;case Pl:case El:return k=1,!1;case li:case il:return k=2,!1;case Rl:return k=3,!1}else if(Os(h)||Di(h))return Array.isArray(k)||(k=[]),k.push(h),!1;return mn},ar)}if(ar){var Jr=fl(R,Lt);Pe.push(Jr)}}),{size:k,shape:U,stops:Pe,position:it,type:2}},Wl=function(R,E){var U=0,k=3,Pe=[],it=[];return Vs(E).forEach(function(Lt,or){var ar=!0;if(or===0?ar=Lt.reduce(function(Jr,mn){if(Ai(mn))switch(mn.value){case"center":return it.push(nl),!1;case"top":case"left":return it.push(Js),!1;case"right":case"bottom":return it.push(Qo),!1}else if(Di(mn)||Os(mn))return it.push(mn),!1;return Jr},ar):or===1&&(ar=Lt.reduce(function(Jr,mn){if(Ai(mn))switch(mn.value){case cu:return U=0,!1;case Ol:return U=1,!1;case li:case qs:return k=0,!1;case El:return k=1,!1;case il:return k=2,!1;case Pl:case Rl:return k=3,!1}else if(Os(mn)||Di(mn))return Array.isArray(k)||(k=[]),k.push(mn),!1;return Jr},ar)),ar){var jr=fl(R,Lt);Pe.push(jr)}}),{size:k,shape:U,stops:Pe,position:it,type:2}},ic=function(R){return R.type===1},ac=function(R){return R.type===2},du={name:"image",parse:function(R,E){if(E.type===22){var U={url:E.value,type:0};return R.cache.addImage(E.value),U}if(E.type===18){var k=Xo[E.name];if(typeof k=="undefined")throw new Error('Attempting to parse an unsupported image function "'+E.name+'"');return k(R,E.values)}throw new Error("Unsupported image type "+E.type)}};function sc(R){return!(R.type===20&&R.value==="none")&&(R.type!==18||!!Xo[R.name])}var Xo={"linear-gradient":ys,"-moz-linear-gradient":Xa,"-ms-linear-gradient":Xa,"-o-linear-gradient":Xa,"-webkit-linear-gradient":Xa,"radial-gradient":Au,"-moz-radial-gradient":Wl,"-ms-radial-gradient":Wl,"-o-radial-gradient":Wl,"-webkit-radial-gradient":Wl,"-webkit-gradient":Cs},Hu={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(R,E){if(E.length===0)return[];var U=E[0];return U.type===20&&U.value==="none"?[]:E.filter(function(k){return Ns(k)&&sc(k)}).map(function(k){return du.parse(R,k)})}},oc={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(R,E){return E.map(function(U){if(Ai(U))switch(U.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},b={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(R,E){return Vs(E).map(function(U){return U.filter(Di)}).map(Dl)}},u={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(R,E){return Vs(E).map(function(U){return U.filter(Ai).map(function(k){return k.value}).join(" ")}).map(y)}},y=function(R){switch(R){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}},M;(function(R){R.AUTO="auto",R.CONTAIN="contain",R.COVER="cover"})(M||(M={}));var ne={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(R,E){return Vs(E).map(function(U){return U.filter(Z)})}},Z=function(R){return Ai(R)||Di(R)},ge=function(R){return{name:"border-"+R+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},De=ge("top"),Ne=ge("right"),tt=ge("bottom"),yt=ge("left"),vt=function(R){return{name:"border-radius-"+R,initialValue:"0 0",prefix:!1,type:1,parse:function(E,U){return Dl(U.filter(Di))}}},Pt=vt("top-left"),Ye=vt("top-right"),cr=vt("bottom-right"),tr=vt("bottom-left"),dr=function(R){return{name:"border-"+R+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(E,U){switch(U){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Qt=dr("top"),pr=dr("right"),Ur=dr("bottom"),sn=dr("left"),Rn=function(R){return{name:"border-"+R+"-width",initialValue:"0",type:0,prefix:!1,parse:function(E,U){return Rs(U)?U.number:0}}},ci=Rn("top"),pn=Rn("right"),Br=Rn("bottom"),bn=Rn("left"),Pn={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},er={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(R,E){switch(E){case"rtl":return 1;case"ltr":default:return 0}}},nr={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(R,E){return E.filter(Ai).reduce(function(U,k){return U|ye(k.value)},0)}},ye=function(R){switch(R){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},Ee={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(R,E){switch(E){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},et={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(R,E){return E.type===20&&E.value==="normal"?0:E.type===17||E.type===15?E.number:0}},st;(function(R){R.NORMAL="normal",R.STRICT="strict"})(st||(st={}));var gt={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(R,E){switch(E){case"strict":return st.STRICT;case"normal":default:return st.NORMAL}}},ht={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ut=function(R,E){return Ai(R)&&R.value==="normal"?1.2*E:R.type===17?E*R.number:Di(R)?_a(R,E):E},$t={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(R,E){return E.type===20&&E.value==="none"?null:du.parse(R,E)}},sr={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(R,E){switch(E){case"inside":return 0;case"outside":default:return 1}}},ze={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(R,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}}},Ce=function(R){return{name:"margin-"+R,initialValue:"0",prefix:!1,type:4}},wt=Ce("top"),jt=Ce("right"),Wt=Ce("bottom"),ur=Ce("left"),It={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(R,E){return E.filter(Ai).map(function(U){switch(U.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},br={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(R,E){switch(E){case"break-word":return"break-word";case"normal":default:return"normal"}}},Gr=function(R){return{name:"padding-"+R,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},$r=Gr("top"),cn=Gr("right"),Dn=Gr("bottom"),ni=Gr("left"),Mr={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(R,E){switch(E){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},ir={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(R,E){switch(E){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Ii={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(R,E){return E.length===1&&vs(E[0],"none")?[]:Vs(E).map(function(U){for(var k={color:yo.TRANSPARENT,offsetX:Js,offsetY:Js,blur:Js},Pe=0,it=0;it<U.length;it++){var Lt=U[it];Os(Lt)?(Pe===0?k.offsetX=Lt:Pe===1?k.offsetY=Lt:k.blur=Lt,Pe++):k.color=ns.parse(R,Lt)}return k})}},Fn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(R,E){switch(E){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ln={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(R,E){if(E.type===20&&E.value==="none")return null;if(E.type===18){var U=Cn[E.name];if(typeof U=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+E.name+'"');return U(E.values)}return null}},An=function(R){var E=R.filter(function(U){return U.type===17}).map(function(U){return U.number});return E.length===6?E:null},rn=function(R){var E=R.filter(function(ar){return ar.type===17}).map(function(ar){return ar.number}),U=E[0],k=E[1];E[2],E[3];var Pe=E[4],it=E[5];E[6],E[7],E[8],E[9],E[10],E[11];var Lt=E[12],or=E[13];return E[14],E[15],E.length===16?[U,k,Pe,it,Lt,or]:null},Cn={matrix:An,matrix3d:rn},ai={type:16,number:50,flags:qr},Li=[ai,ai],He={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(R,E){var U=E.filter(Di);return U.length!==2?Li:[U[0],U[1]]}},c={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(R,E){switch(E){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},w;(function(R){R.NORMAL="normal",R.BREAK_ALL="break-all",R.KEEP_ALL="keep-all"})(w||(w={}));for(var C={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(R,E){switch(E){case"break-all":return w.BREAK_ALL;case"keep-all":return w.KEEP_ALL;case"normal":default:return w.NORMAL}}},$={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(R,E){if(E.type===20)return{auto:!0,order:0};if(Oi(E))return{auto:!1,order:E.number};throw new Error("Invalid z-index number parsed")}},Be={name:"time",parse:function(R,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")}},je={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(R,E){return Oi(E)?E.number:1}},xt={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},bt={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(R,E){return E.filter(Ai).map(function(U){switch(U.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(U){return U!==0})}},Jt={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(R,E){var U=[],k=[];return E.forEach(function(Pe){switch(Pe.type){case 20:case 0:U.push(Pe.value);break;case 17:U.push(Pe.number.toString());break;case 4:k.push(U.join(" ")),U.length=0;break}}),U.length&&k.push(U.join(" ")),k.map(function(Pe){return Pe.indexOf(" ")===-1?Pe:"'"+Pe+"'"})}},Ar={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},xr={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(R,E){if(Oi(E))return E.number;if(Ai(E))switch(E.value){case"bold":return 700;case"normal":default:return 400}return 400}},nn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(R,E){return E.filter(Ai).map(function(U){return U.value})}},xn={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(R,E){switch(E){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Xr=function(R,E){return(R&E)!==0},dn={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(R,E){if(E.length===0)return[];var U=E[0];return U.type===20&&U.value==="none"?[]:E}},kn={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(R,E){if(E.length===0)return null;var U=E[0];if(U.type===20&&U.value==="none")return null;for(var k=[],Pe=E.filter(Ra),it=0;it<Pe.length;it++){var Lt=Pe[it],or=Pe[it+1];if(Lt.type===20){var ar=or&&Oi(or)?or.number:1;k.push({counter:Lt.value,increment:ar})}}return k}},Zn={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(R,E){if(E.length===0)return[];for(var U=[],k=E.filter(Ra),Pe=0;Pe<k.length;Pe++){var it=k[Pe],Lt=k[Pe+1];if(Ai(it)&&it.value!=="none"){var or=Lt&&Oi(Lt)?Lt.number:0;U.push({counter:it.value,reset:or})}}return U}},bi={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(R,E){return E.filter(Rs).map(function(U){return Be.parse(R,U)})}},En={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(R,E){if(E.length===0)return null;var U=E[0];if(U.type===20&&U.value==="none")return null;var k=[],Pe=E.filter(ua);if(Pe.length%2!==0)return null;for(var it=0;it<Pe.length;it+=2){var Lt=Pe[it].value,or=Pe[it+1].value;k.push({open:Lt,close:or})}return k}},pi=function(R,E,U){if(!R)return"";var k=R[Math.min(E,R.length-1)];return k?U?k.open:k.close:""},Ji={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(R,E){return E.length===1&&vs(E[0],"none")?[]:Vs(E).map(function(U){for(var k={color:255,offsetX:Js,offsetY:Js,blur:Js,spread:Js,inset:!1},Pe=0,it=0;it<U.length;it++){var Lt=U[it];vs(Lt,"inset")?k.inset=!0:Os(Lt)?(Pe===0?k.offsetX=Lt:Pe===1?k.offsetY=Lt:Pe===2?k.blur=Lt:k.spread=Lt,Pe++):k.color=ns.parse(R,Lt)}return k})}},Ki={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(R,E){var U=[0,1,2],k=[];return E.filter(Ai).forEach(function(Pe){switch(Pe.value){case"stroke":k.push(1);break;case"fill":k.push(0);break;case"markers":k.push(2);break}}),U.forEach(function(Pe){k.indexOf(Pe)===-1&&k.push(Pe)}),k}},Sa={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ia={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(R,E){return Rs(E)?E.number:0}},Xi=function(){function R(E,U){var k,Pe;this.animationDuration=si(E,bi,U.animationDuration),this.backgroundClip=si(E,Zl,U.backgroundClip),this.backgroundColor=si(E,wl,U.backgroundColor),this.backgroundImage=si(E,Hu,U.backgroundImage),this.backgroundOrigin=si(E,oc,U.backgroundOrigin),this.backgroundPosition=si(E,b,U.backgroundPosition),this.backgroundRepeat=si(E,u,U.backgroundRepeat),this.backgroundSize=si(E,ne,U.backgroundSize),this.borderTopColor=si(E,De,U.borderTopColor),this.borderRightColor=si(E,Ne,U.borderRightColor),this.borderBottomColor=si(E,tt,U.borderBottomColor),this.borderLeftColor=si(E,yt,U.borderLeftColor),this.borderTopLeftRadius=si(E,Pt,U.borderTopLeftRadius),this.borderTopRightRadius=si(E,Ye,U.borderTopRightRadius),this.borderBottomRightRadius=si(E,cr,U.borderBottomRightRadius),this.borderBottomLeftRadius=si(E,tr,U.borderBottomLeftRadius),this.borderTopStyle=si(E,Qt,U.borderTopStyle),this.borderRightStyle=si(E,pr,U.borderRightStyle),this.borderBottomStyle=si(E,Ur,U.borderBottomStyle),this.borderLeftStyle=si(E,sn,U.borderLeftStyle),this.borderTopWidth=si(E,ci,U.borderTopWidth),this.borderRightWidth=si(E,pn,U.borderRightWidth),this.borderBottomWidth=si(E,Br,U.borderBottomWidth),this.borderLeftWidth=si(E,bn,U.borderLeftWidth),this.boxShadow=si(E,Ji,U.boxShadow),this.color=si(E,Pn,U.color),this.direction=si(E,er,U.direction),this.display=si(E,nr,U.display),this.float=si(E,Ee,U.cssFloat),this.fontFamily=si(E,Jt,U.fontFamily),this.fontSize=si(E,Ar,U.fontSize),this.fontStyle=si(E,xn,U.fontStyle),this.fontVariant=si(E,nn,U.fontVariant),this.fontWeight=si(E,xr,U.fontWeight),this.letterSpacing=si(E,et,U.letterSpacing),this.lineBreak=si(E,gt,U.lineBreak),this.lineHeight=si(E,ht,U.lineHeight),this.listStyleImage=si(E,$t,U.listStyleImage),this.listStylePosition=si(E,sr,U.listStylePosition),this.listStyleType=si(E,ze,U.listStyleType),this.marginTop=si(E,wt,U.marginTop),this.marginRight=si(E,jt,U.marginRight),this.marginBottom=si(E,Wt,U.marginBottom),this.marginLeft=si(E,ur,U.marginLeft),this.opacity=si(E,je,U.opacity);var it=si(E,It,U.overflow);this.overflowX=it[0],this.overflowY=it[it.length>1?1:0],this.overflowWrap=si(E,br,U.overflowWrap),this.paddingTop=si(E,$r,U.paddingTop),this.paddingRight=si(E,cn,U.paddingRight),this.paddingBottom=si(E,Dn,U.paddingBottom),this.paddingLeft=si(E,ni,U.paddingLeft),this.paintOrder=si(E,Ki,U.paintOrder),this.position=si(E,ir,U.position),this.textAlign=si(E,Mr,U.textAlign),this.textDecorationColor=si(E,xt,(k=U.textDecorationColor)!==null&&k!==void 0?k:U.color),this.textDecorationLine=si(E,bt,(Pe=U.textDecorationLine)!==null&&Pe!==void 0?Pe:U.textDecoration),this.textShadow=si(E,Ii,U.textShadow),this.textTransform=si(E,Fn,U.textTransform),this.transform=si(E,ln,U.transform),this.transformOrigin=si(E,He,U.transformOrigin),this.visibility=si(E,c,U.visibility),this.webkitTextStrokeColor=si(E,Sa,U.webkitTextStrokeColor),this.webkitTextStrokeWidth=si(E,Ia,U.webkitTextStrokeWidth),this.wordBreak=si(E,C,U.wordBreak),this.zIndex=si(E,$,U.zIndex)}return R.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},R.prototype.isTransparent=function(){return js(this.backgroundColor)},R.prototype.isTransformed=function(){return this.transform!==null},R.prototype.isPositioned=function(){return this.position!==0},R.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},R.prototype.isFloating=function(){return this.float!==0},R.prototype.isInlineLevel=function(){return Xr(this.display,4)||Xr(this.display,33554432)||Xr(this.display,268435456)||Xr(this.display,536870912)||Xr(this.display,67108864)||Xr(this.display,134217728)},R}(),Ta=function(){function R(E,U){this.content=si(E,dn,U.content),this.quotes=si(E,En,U.quotes)}return R}(),Ba=function(){function R(E,U){this.counterIncrement=si(E,kn,U.counterIncrement),this.counterReset=si(E,Zn,U.counterReset)}return R}(),si=function(R,E,U){var k=new eo,Pe=U!==null&&typeof U!="undefined"?U.toString():E.initialValue;k.write(Pe);var it=new zs(k.read());switch(E.type){case 2:var Lt=it.parseComponentValue();return E.parse(R,Ai(Lt)?Lt.value:E.initialValue);case 0:return E.parse(R,it.parseComponentValue());case 1:return E.parse(R,it.parseComponentValues());case 4:return it.parseComponentValue();case 3:switch(E.format){case"angle":return Na.parse(R,it.parseComponentValue());case"color":return ns.parse(R,it.parseComponentValue());case"image":return du.parse(R,it.parseComponentValue());case"length":var or=it.parseComponentValue();return Os(or)?or:Js;case"length-percentage":var ar=it.parseComponentValue();return Di(ar)?ar:Js;case"time":return Be.parse(R,it.parseComponentValue())}break}},Ha="data-html2canvas-debug",os=function(R){var E=R.getAttribute(Ha);switch(E){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},sa=function(R,E){var U=os(R);return U===1||E===U},ha=function(){function R(E,U){if(this.context=E,this.textNodes=[],this.elements=[],this.flags=0,sa(U,3))debugger;this.styles=new Xi(E,window.getComputedStyle(U,null)),un(U)&&(this.styles.animationDuration.some(function(k){return k>0})&&(U.style.animationDuration="0s"),this.styles.transform!==null&&(U.style.transform="none")),this.bounds=Y(this.context,U),sa(U,4)&&(this.flags|=16)}return R}(),xa="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ls=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),da=0;da<ja.length;da++)ls[ja.charCodeAt(da)]=da;for(var Is=function(R){var E=R.length*.75,U=R.length,k,Pe=0,it,Lt,or,ar;R[R.length-1]==="="&&(E--,R[R.length-2]==="="&&E--);var jr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(E):new Array(E),Jr=Array.isArray(jr)?jr:new Uint8Array(jr);for(k=0;k<U;k+=4)it=ls[R.charCodeAt(k)],Lt=ls[R.charCodeAt(k+1)],or=ls[R.charCodeAt(k+2)],ar=ls[R.charCodeAt(k+3)],Jr[Pe++]=it<<2|Lt>>4,Jr[Pe++]=(Lt&15)<<4|or>>2,Jr[Pe++]=(or&3)<<6|ar&63;return jr},bs=function(R){for(var E=R.length,U=[],k=0;k<E;k+=2)U.push(R[k+1]<<8|R[k]);return U},Hs=function(R){for(var E=R.length,U=[],k=0;k<E;k+=4)U.push(R[k+3]<<24|R[k+2]<<16|R[k+1]<<8|R[k]);return U},Zs=5,Xs=11,Wo=2,$o=Xs-Zs,ho=65536>>Zs,oo=1<<Zs,ro=oo-1,$s=1024>>Zs,Ja=ho+$s,al=Ja,$l=32,Vo=al+$l,Jo=65536>>Xs,fu=1<<$o,Iu=fu-1,Ma=function(R,E,U){return R.slice?R.slice(E,U):new Uint16Array(Array.prototype.slice.call(R,E,U))},_s=function(R,E,U){return R.slice?R.slice(E,U):new Uint32Array(Array.prototype.slice.call(R,E,U))},qa=function(R,E){var U=Is(R),k=Array.isArray(U)?Hs(U):new Uint32Array(U),Pe=Array.isArray(U)?bs(U):new Uint16Array(U),it=24,Lt=Ma(Pe,it/2,k[4]/2),or=k[5]===2?Ma(Pe,(it+k[4])/2):_s(k,Math.ceil((it+k[4])/4));return new Bs(k[0],k[1],k[2],k[3],Lt,or)},Bs=function(){function R(E,U,k,Pe,it,Lt){this.initialValue=E,this.errorValue=U,this.highStart=k,this.highValueIndex=Pe,this.index=it,this.data=Lt}return R.prototype.get=function(E){var U;if(E>=0){if(E<55296||E>56319&&E<=65535)return U=this.index[E>>Zs],U=(U<<Wo)+(E&ro),this.data[U];if(E<=65535)return U=this.index[ho+(E-55296>>Zs)],U=(U<<Wo)+(E&ro),this.data[U];if(E<this.highStart)return U=Vo-Jo+(E>>Xs),U=this.index[U],U+=E>>Zs&Iu,U=this.index[U],U=(U<<Wo)+(E&ro),this.data[U];if(E<=1114111)return this.data[this.highValueIndex]}return this.errorValue},R}(),bo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ro=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),po=0;po<bo.length;po++)Ro[bo.charCodeAt(po)]=po;var Cl=1,Ko=2,Vl=3,No=4,Yl=5,$u=7,hu=8,sl=9,pu=10,Tu=11,Ku=12,mu=13,zu=14,Nl=15,Gu=function(R){for(var E=[],U=0,k=R.length;U<k;){var Pe=R.charCodeAt(U++);if(Pe>=55296&&Pe<=56319&&U<k){var it=R.charCodeAt(U++);(it&64512)===56320?E.push(((Pe&1023)<<10)+(it&1023)+65536):(E.push(Pe),U--)}else E.push(Pe)}return E},kl=function(){for(var R=[],E=0;E<arguments.length;E++)R[E]=arguments[E];if(String.fromCodePoint)return String.fromCodePoint.apply(String,R);var U=R.length;if(!U)return"";for(var k=[],Pe=-1,it="";++Pe<U;){var Lt=R[Pe];Lt<=65535?k.push(Lt):(Lt-=65536,k.push((Lt>>10)+55296,Lt%1024+56320)),(Pe+1===U||k.length>16384)&&(it+=String.fromCharCode.apply(String,k),k.length=0)}return it},gu=qa(xa),Io="\xD7",vu="\xF7",ko=function(R){return gu.get(R)},yc=function(R,E,U){var k=U-2,Pe=E[k],it=E[U-1],Lt=E[U];if(it===Ko&&Lt===Vl)return Io;if(it===Ko||it===Vl||it===No||Lt===Ko||Lt===Vl||Lt===No)return vu;if(it===hu&&[hu,sl,Tu,Ku].indexOf(Lt)!==-1||(it===Tu||it===sl)&&(Lt===sl||Lt===pu)||(it===Ku||it===pu)&&Lt===pu||Lt===mu||Lt===Yl||Lt===$u||it===Cl)return Io;if(it===mu&&Lt===zu){for(;Pe===Yl;)Pe=E[--k];if(Pe===zu)return Io}if(it===Nl&&Lt===Nl){for(var or=0;Pe===Nl;)or++,Pe=E[--k];if(or%2===0)return Io}return vu},Zu=function(R){var E=Gu(R),U=E.length,k=0,Pe=0,it=E.map(ko);return{next:function(){if(k>=U)return{done:!0,value:null};for(var Lt=Io;k<U&&(Lt=yc(E,it,++k))===Io;);if(Lt!==Io||k===U){var or=kl.apply(null,E.slice(Pe,k));return Pe=k,{value:or,done:!1}}return{done:!0,value:null}}}},Oa=function(R){for(var E=Zu(R),U=[],k;!(k=E.next()).done;)k.value&&U.push(k.value.slice());return U},Fu=function(R){var E=123;if(R.createRange){var U=R.createRange();if(U.getBoundingClientRect){var k=R.createElement("boundtest");k.style.height=E+"px",k.style.display="block",R.body.appendChild(k),U.selectNode(k);var Pe=U.getBoundingClientRect(),it=Math.round(Pe.height);if(R.body.removeChild(k),it===E)return!0}}return!1},Du=function(R){var E=R.createElement("boundtest");E.style.width="50px",E.style.display="block",E.style.fontSize="12px",E.style.letterSpacing="0px",E.style.wordSpacing="0px",R.body.appendChild(E);var U=R.createRange();E.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var k=E.firstChild,Pe=T(k.data).map(function(ar){return n(ar)}),it=0,Lt={},or=Pe.every(function(ar,jr){U.setStart(k,it),U.setEnd(k,it+ar.length);var Jr=U.getBoundingClientRect();it+=ar.length;var mn=Jr.x>Lt.x||Jr.y>Lt.y;return Lt=Jr,jr===0?!0:mn});return R.body.removeChild(E),or},_l=function(){return typeof new Image().crossOrigin!="undefined"},Lu=function(){return typeof new XMLHttpRequest().responseType=="string"},yu=function(R){var E=new Image,U=R.createElement("canvas"),k=U.getContext("2d");if(!k)return!1;E.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{k.drawImage(E,0,0),U.toDataURL()}catch(Pe){return!1}return!0},Xl=function(R){return R[0]===0&&R[1]===255&&R[2]===0&&R[3]===255},Jl=function(R){var E=R.createElement("canvas"),U=100;E.width=U,E.height=U;var k=E.getContext("2d");if(!k)return Promise.reject(!1);k.fillStyle="rgb(0, 255, 0)",k.fillRect(0,0,U,U);var Pe=new Image,it=E.toDataURL();Pe.src=it;var Lt=Bl(U,U,0,0,Pe);return k.fillStyle="red",k.fillRect(0,0,U,U),Ho(Lt).then(function(or){k.drawImage(or,0,0);var ar=k.getImageData(0,0,U,U).data;k.fillStyle="red",k.fillRect(0,0,U,U);var jr=R.createElement("div");return jr.style.backgroundImage="url("+it+")",jr.style.height=U+"px",Xl(ar)?Ho(Bl(U,U,0,0,jr)):Promise.reject(!1)}).then(function(or){return k.drawImage(or,0,0),Xl(k.getImageData(0,0,U,U).data)}).catch(function(){return!1})},Bl=function(R,E,U,k,Pe){var it="http://www.w3.org/2000/svg",Lt=document.createElementNS(it,"svg"),or=document.createElementNS(it,"foreignObject");return Lt.setAttributeNS(null,"width",R.toString()),Lt.setAttributeNS(null,"height",E.toString()),or.setAttributeNS(null,"width","100%"),or.setAttributeNS(null,"height","100%"),or.setAttributeNS(null,"x",U.toString()),or.setAttributeNS(null,"y",k.toString()),or.setAttributeNS(null,"externalResourcesRequired","true"),Lt.appendChild(or),or.appendChild(Pe),Lt},Ho=function(R){return new Promise(function(E,U){var k=new Image;k.onload=function(){return E(k)},k.onerror=U,k.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(R))})},ws={get SUPPORT_RANGE_BOUNDS(){var R=Fu(document);return Object.defineProperty(ws,"SUPPORT_RANGE_BOUNDS",{value:R}),R},get SUPPORT_WORD_BREAKING(){var R=ws.SUPPORT_RANGE_BOUNDS&&Du(document);return Object.defineProperty(ws,"SUPPORT_WORD_BREAKING",{value:R}),R},get SUPPORT_SVG_DRAWING(){var R=yu(document);return Object.defineProperty(ws,"SUPPORT_SVG_DRAWING",{value:R}),R},get SUPPORT_FOREIGNOBJECT_DRAWING(){var R=typeof Array.from=="function"&&typeof window.fetch=="function"?Jl(document):Promise.resolve(!1);return Object.defineProperty(ws,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:R}),R},get SUPPORT_CORS_IMAGES(){var R=_l();return Object.defineProperty(ws,"SUPPORT_CORS_IMAGES",{value:R}),R},get SUPPORT_RESPONSE_TYPE(){var R=Lu();return Object.defineProperty(ws,"SUPPORT_RESPONSE_TYPE",{value:R}),R},get SUPPORT_CORS_XHR(){var R="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ws,"SUPPORT_CORS_XHR",{value:R}),R},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var R=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(ws,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:R}),R}},ol=function(){function R(E,U){this.text=E,this.bounds=U}return R}(),qo=function(R,E,U,k){var Pe=ll(E,U),it=[],Lt=0;return Pe.forEach(function(or){if(U.textDecorationLine.length||or.trim().length>0)if(ws.SUPPORT_RANGE_BOUNDS){var ar=$a(k,Lt,or.length).getClientRects();if(ar.length>1){var jr=As(or),Jr=0;jr.forEach(function(h){it.push(new ol(h,ie.fromDOMRectList(R,$a(k,Jr+Lt,h.length).getClientRects()))),Jr+=h.length})}else it.push(new ol(or,ie.fromDOMRectList(R,ar)))}else{var mn=k.splitText(or.length);it.push(new ol(or,ql(R,k))),k=mn}else ws.SUPPORT_RANGE_BOUNDS||(k=k.splitText(or.length));Lt+=or.length}),it},ql=function(R,E){var U=E.ownerDocument;if(U){var k=U.createElement("html2canvaswrapper");k.appendChild(E.cloneNode(!0));var Pe=E.parentNode;if(Pe){Pe.replaceChild(k,E);var it=Y(R,k);return k.firstChild&&Pe.replaceChild(k.firstChild,k),it}}return ie.EMPTY},$a=function(R,E,U){var k=R.ownerDocument;if(!k)throw new Error("Node has no owner document");var Pe=k.createRange();return Pe.setStart(R,E),Pe.setEnd(R,E+U),Pe},As=function(R){if(ws.SUPPORT_NATIVE_TEXT_SEGMENTATION){var E=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(E.segment(R)).map(function(U){return U.segment})}return Oa(R)},zo=function(R,E){if(ws.SUPPORT_NATIVE_TEXT_SEGMENTATION){var U=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(U.segment(R)).map(function(k){return k.segment})}return Ru(R,E)},ll=function(R,E){return E.letterSpacing!==0?As(R):zo(R,E)},Sl=[32,160,4961,65792,65793,4153,4241],Ru=function(R,E){for(var U=Ir(R,{lineBreak:E.lineBreak,wordBreak:E.overflowWrap==="break-word"?"break-word":E.wordBreak}),k=[],Pe,it=function(){if(Pe.value){var Lt=Pe.value.slice(),or=T(Lt),ar="";or.forEach(function(jr){Sl.indexOf(jr)===-1?ar+=n(jr):(ar.length&&k.push(ar),k.push(n(jr)),ar="")}),ar.length&&k.push(ar)}};!(Pe=U.next()).done;)it();return k},Ou=function(){function R(E,U,k){this.text=Pu(U.data,k.textTransform),this.textBounds=qo(E,this.text,k,U)}return R}(),Pu=function(R,E){switch(E){case 1:return R.toLowerCase();case 3:return R.replace(hl,Il);case 2:return R.toUpperCase();default:return R}},hl=/(^|\s|:|-|\(|\))([a-z])/g,Il=function(R,E,U){return R.length>0?E+U.toUpperCase():R},Ic=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.src=k.currentSrc||k.src,Pe.intrinsicWidth=k.naturalWidth,Pe.intrinsicHeight=k.naturalHeight,Pe.context.cache.addImage(Pe.src),Pe}return E}(ha),bu=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.canvas=k,Pe.intrinsicWidth=k.width,Pe.intrinsicHeight=k.height,Pe}return E}(ha),Ml=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this,it=new XMLSerializer,Lt=Y(U,k);return k.setAttribute("width",Lt.width+"px"),k.setAttribute("height",Lt.height+"px"),Pe.svg="data:image/svg+xml,"+encodeURIComponent(it.serializeToString(k)),Pe.intrinsicWidth=k.width.baseVal.value,Pe.intrinsicHeight=k.height.baseVal.value,Pe.context.cache.addImage(Pe.svg),Pe}return E}(ha),lc=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.value=k.value,Pe}return E}(ha),Go=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.start=k.start,Pe.reversed=typeof k.reversed=="boolean"&&k.reversed===!0,Pe}return E}(ha),kc=[{type:15,flags:0,unit:"px",number:3}],uc=[{type:16,flags:0,number:50}],Mc=function(R){return R.width>R.height?new ie(R.left+(R.width-R.height)/2,R.top,R.height,R.height):R.width<R.height?new ie(R.left,R.top+(R.height-R.width)/2,R.width,R.width):R},cc=function(R){var E=R.type===Ac?new Array(R.value.length+1).join("\u2022"):R.value;return E.length===0?R.placeholder||"":E},Nu="checkbox",ku="radio",Ac="password",dc=707406591,Wu=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;switch(Pe.type=k.type.toLowerCase(),Pe.checked=k.checked,Pe.value=cc(k),(Pe.type===Nu||Pe.type===ku)&&(Pe.styles.backgroundColor=3739148031,Pe.styles.borderTopColor=Pe.styles.borderRightColor=Pe.styles.borderBottomColor=Pe.styles.borderLeftColor=2779096575,Pe.styles.borderTopWidth=Pe.styles.borderRightWidth=Pe.styles.borderBottomWidth=Pe.styles.borderLeftWidth=1,Pe.styles.borderTopStyle=Pe.styles.borderRightStyle=Pe.styles.borderBottomStyle=Pe.styles.borderLeftStyle=1,Pe.styles.backgroundClip=[0],Pe.styles.backgroundOrigin=[0],Pe.bounds=Mc(Pe.bounds)),Pe.type){case Nu:Pe.styles.borderTopRightRadius=Pe.styles.borderTopLeftRadius=Pe.styles.borderBottomRightRadius=Pe.styles.borderBottomLeftRadius=kc;break;case ku:Pe.styles.borderTopRightRadius=Pe.styles.borderTopLeftRadius=Pe.styles.borderBottomRightRadius=Pe.styles.borderBottomLeftRadius=uc;break}return Pe}return E}(ha),bc=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this,it=k.options[k.selectedIndex||0];return Pe.value=it&&it.text||"",Pe}return E}(ha),wc=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.value=k.value,Pe}return E}(ha),wu=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;Pe.src=k.src,Pe.width=parseInt(k.width,10)||0,Pe.height=parseInt(k.height,10)||0,Pe.backgroundColor=Pe.styles.backgroundColor;try{if(k.contentWindow&&k.contentWindow.document&&k.contentWindow.document.documentElement){Pe.tree=fc(U,k.contentWindow.document.documentElement);var it=k.contentWindow.document.documentElement?so(U,getComputedStyle(k.contentWindow.document.documentElement).backgroundColor):yo.TRANSPARENT,Lt=k.contentWindow.document.body?so(U,getComputedStyle(k.contentWindow.document.body).backgroundColor):yo.TRANSPARENT;Pe.backgroundColor=js(it)?js(Lt)?Pe.styles.backgroundColor:Lt:it}}catch(or){}return Pe}return E}(ha),xu=["OL","UL","MENU"],eu=function(R,E,U,k){for(var Pe=E.firstChild,it=void 0;Pe;Pe=it)if(it=Pe.nextSibling,mr(Pe)&&Pe.data.trim().length>0)U.textNodes.push(new Ou(R,Pe,U.styles));else if(Rr(Pe))if(xc(Pe)&&Pe.assignedNodes)Pe.assignedNodes().forEach(function(or){return eu(R,or,U,k)});else{var Lt=tu(R,Pe);Lt.styles.isVisible()&&(Ae(Pe,Lt,k)?Lt.flags|=4:Et(Lt.styles)&&(Lt.flags|=2),xu.indexOf(Pe.tagName)!==-1&&(Lt.flags|=8),U.elements.push(Lt),Pe.slot,Pe.shadowRoot?eu(R,Pe.shadowRoot,Lt,k):!el(Pe)&&!Ka(Pe)&&!Tl(Pe)&&eu(R,Pe,Lt,k))}},tu=function(R,E){return To(E)?new Ic(R,E):mo(E)?new bu(R,E):Ka(E)?new Ml(R,E):Ei(E)?new lc(R,E):na(E)?new Go(R,E):ba(E)?new Wu(R,E):Tl(E)?new bc(R,E):el(E)?new wc(R,E):Yo(E)?new wu(R,E):new ha(R,E)},fc=function(R,E){var U=tu(R,E);return U.flags|=4,eu(R,E,U,U),U},Ae=function(R,E,U){return E.styles.isPositionedWithZIndex()||E.styles.opacity<1||E.styles.isTransformed()||xs(R)&&U.styles.isTransparent()},Et=function(R){return R.isPositioned()||R.isFloating()},mr=function(R){return R.nodeType===Node.TEXT_NODE},Rr=function(R){return R.nodeType===Node.ELEMENT_NODE},un=function(R){return Rr(R)&&typeof R.style!="undefined"&&!Kn(R)},Kn=function(R){return typeof R.className=="object"},Ei=function(R){return R.tagName==="LI"},na=function(R){return R.tagName==="OL"},ba=function(R){return R.tagName==="INPUT"},Wa=function(R){return R.tagName==="HTML"},Ka=function(R){return R.tagName==="svg"},xs=function(R){return R.tagName==="BODY"},mo=function(R){return R.tagName==="CANVAS"},wo=function(R){return R.tagName==="VIDEO"},To=function(R){return R.tagName==="IMG"},Yo=function(R){return R.tagName==="IFRAME"},Mo=function(R){return R.tagName==="STYLE"},Kl=function(R){return R.tagName==="SCRIPT"},el=function(R){return R.tagName==="TEXTAREA"},Tl=function(R){return R.tagName==="SELECT"},xc=function(R){return R.tagName==="SLOT"},Vu=function(R){return R.tagName.indexOf("-")>0},hc=function(){function R(){this.counters={}}return R.prototype.getCounterValue=function(E){var U=this.counters[E];return U&&U.length?U[U.length-1]:1},R.prototype.getCounterValues=function(E){var U=this.counters[E];return U||[]},R.prototype.pop=function(E){var U=this;E.forEach(function(k){return U.counters[k].pop()})},R.prototype.parse=function(E){var U=this,k=E.counterIncrement,Pe=E.counterReset,it=!0;k!==null&&k.forEach(function(or){var ar=U.counters[or.counter];ar&&or.increment!==0&&(it=!1,ar.length||ar.push(1),ar[Math.max(0,ar.length-1)]+=or.increment)});var Lt=[];return it&&Pe.forEach(function(or){var ar=U.counters[or.counter];Lt.push(or.counter),ar||(ar=U.counters[or.counter]=[]),ar.push(or.reset)}),Lt},R}(),Yu={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"]},Xu={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"]},Ec={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"]},pc={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"]},xo=function(R,E,U,k,Pe,it){return R<E||R>U?jl(R,Pe,it.length>0):k.integers.reduce(function(Lt,or,ar){for(;R>=or;)R-=or,Lt+=k.values[ar];return Lt},"")+it},Ju=function(R,E,U,k){var Pe="";do U||R--,Pe=k(R)+Pe,R/=E;while(R*E>=E);return Pe},no=function(R,E,U,k,Pe){var it=U-E+1;return(R<0?"-":"")+(Ju(Math.abs(R),it,k,function(Lt){return n(Math.floor(Lt%it)+E)})+Pe)},Ul=function(R,E,U){U===void 0&&(U=". ");var k=E.length;return Ju(Math.abs(R),k,!1,function(Pe){return E[Math.floor(Pe%k)]})+U},ru=1,Oo=2,nu=4,Eu=8,Ql=function(R,E,U,k,Pe,it){if(R<-9999||R>9999)return jl(R,4,Pe.length>0);var Lt=Math.abs(R),or=Pe;if(Lt===0)return E[0]+or;for(var ar=0;Lt>0&&ar<=4;ar++){var jr=Lt%10;jr===0&&Xr(it,ru)&&or!==""?or=E[jr]+or:jr>1||jr===1&&ar===0||jr===1&&ar===1&&Xr(it,Oo)||jr===1&&ar===1&&Xr(it,nu)&&R>100||jr===1&&ar>1&&Xr(it,Eu)?or=E[jr]+(ar>0?U[ar-1]:"")+or:jr===1&&ar>0&&(or=U[ar-1]+or),Lt=Math.floor(Lt/10)}return(R<0?k:"")+or},pl="\u5341\u767E\u5343\u842C",qu="\u62FE\u4F70\u4EDF\u842C",Cc="\u30DE\u30A4\u30CA\u30B9",Mu="\uB9C8\uC774\uB108\uC2A4",jl=function(R,E,U){var k=U?". ":"",Pe=U?"\u3001":"",it=U?", ":"",Lt=U?" ":"";switch(E){case 0:return"\u2022"+Lt;case 1:return"\u25E6"+Lt;case 2:return"\u25FE"+Lt;case 5:var or=no(R,48,57,!0,k);return or.length<4?"0"+or:or;case 4:return Ul(R,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Pe);case 6:return xo(R,1,3999,Yu,3,k).toLowerCase();case 7:return xo(R,1,3999,Yu,3,k);case 8:return no(R,945,969,!1,k);case 9:return no(R,97,122,!1,k);case 10:return no(R,65,90,!1,k);case 11:return no(R,1632,1641,!0,k);case 12:case 49:return xo(R,1,9999,Xu,3,k);case 35:return xo(R,1,9999,Xu,3,k).toLowerCase();case 13:return no(R,2534,2543,!0,k);case 14:case 30:return no(R,6112,6121,!0,k);case 15:return Ul(R,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Pe);case 16:return Ul(R,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Pe);case 17:case 48:return Ql(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",pl,"\u8CA0",Pe,Oo|nu|Eu);case 47:return Ql(R,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",qu,"\u8CA0",Pe,ru|Oo|nu|Eu);case 42:return Ql(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",pl,"\u8D1F",Pe,Oo|nu|Eu);case 41:return Ql(R,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",qu,"\u8D1F",Pe,ru|Oo|nu|Eu);case 26:return Ql(R,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Cc,Pe,0);case 25:return Ql(R,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Cc,Pe,ru|Oo|nu);case 31:return Ql(R,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Mu,it,ru|Oo|nu);case 33:return Ql(R,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Mu,it,0);case 32:return Ql(R,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Mu,it,ru|Oo|nu);case 18:return no(R,2406,2415,!0,k);case 20:return xo(R,1,19999,pc,3,k);case 21:return no(R,2790,2799,!0,k);case 22:return no(R,2662,2671,!0,k);case 22:return xo(R,1,10999,Ec,3,k);case 23:return Ul(R,"\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 Ul(R,"\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 no(R,3302,3311,!0,k);case 28:return Ul(R,"\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",Pe);case 29:return Ul(R,"\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",Pe);case 34:return no(R,3792,3801,!0,k);case 37:return no(R,6160,6169,!0,k);case 38:return no(R,4160,4169,!0,k);case 39:return no(R,2918,2927,!0,k);case 40:return no(R,1776,1785,!0,k);case 43:return no(R,3046,3055,!0,k);case 44:return no(R,3174,3183,!0,k);case 45:return no(R,3664,3673,!0,k);case 46:return no(R,3872,3881,!0,k);case 3:default:return no(R,48,57,!0,k)}},iu="data-html2canvas-ignore",ul=function(){function R(E,U,k){if(this.context=E,this.options=k,this.scrolledElements=[],this.referenceElement=U,this.counters=new hc,this.quoteDepth=0,!U.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(U.ownerDocument.documentElement,!1)}return R.prototype.toIFrame=function(E,U){var k=this,Pe=Uu(E,U);if(!Pe.contentWindow)return Promise.reject("Unable to find iframe window");var it=E.defaultView.pageXOffset,Lt=E.defaultView.pageYOffset,or=Pe.contentWindow,ar=or.document,jr=mc(Pe).then(function(){return Fe(k,void 0,void 0,function(){var Jr,mn;return se(this,function(h){switch(h.label){case 0:return this.scrolledElements.forEach(Hl),or&&(or.scrollTo(U.left,U.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(or.scrollY!==U.top||or.scrollX!==U.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(or.scrollX-U.left,or.scrollY-U.top,0,0))),Jr=this.options.onclone,mn=this.clonedReferenceElement,typeof mn=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:ar.fonts&&ar.fonts.ready?[4,ar.fonts.ready]:[3,2];case 1:h.sent(),h.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,su(ar)]:[3,4];case 3:h.sent(),h.label=4;case 4:return typeof Jr=="function"?[2,Promise.resolve().then(function(){return Jr(ar,mn)}).then(function(){return Pe})]:[2,Pe]}})})});return ar.open(),ar.write(Qu(document.doctype)+"<html></html>"),cl(this.referenceElement.ownerDocument,it,Lt),ar.replaceChild(ar.adoptNode(this.documentElement),ar.documentElement),ar.close(),jr},R.prototype.createElementClone=function(E){if(sa(E,2))debugger;if(mo(E))return this.createCanvasClone(E);if(wo(E))return this.createVideoClone(E);if(Mo(E))return this.createStyleClone(E);var U=E.cloneNode(!1);return To(U)&&(To(E)&&E.currentSrc&&E.currentSrc!==E.src&&(U.src=E.currentSrc,U.srcset=""),U.loading==="lazy"&&(U.loading="eager")),Vu(U)?this.createCustomElementClone(U):U},R.prototype.createCustomElementClone=function(E){var U=document.createElement("html2canvascustomelement");return Eo(E.style,U),U},R.prototype.createStyleClone=function(E){try{var U=E.sheet;if(U&&U.cssRules){var k=[].slice.call(U.cssRules,0).reduce(function(it,Lt){return Lt&&typeof Lt.cssText=="string"?it+Lt.cssText:it},""),Pe=E.cloneNode(!1);return Pe.textContent=k,Pe}}catch(it){if(this.context.logger.error("Unable to access cssRules property",it),it.name!=="SecurityError")throw it}return E.cloneNode(!1)},R.prototype.createCanvasClone=function(E){var U;if(this.options.inlineImages&&E.ownerDocument){var k=E.ownerDocument.createElement("img");try{return k.src=E.toDataURL(),k}catch(jr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",E)}}var Pe=E.cloneNode(!1);try{Pe.width=E.width,Pe.height=E.height;var it=E.getContext("2d"),Lt=Pe.getContext("2d");if(Lt)if(!this.options.allowTaint&&it)Lt.putImageData(it.getImageData(0,0,E.width,E.height),0,0);else{var or=(U=E.getContext("webgl2"))!==null&&U!==void 0?U:E.getContext("webgl");if(or){var ar=or.getContextAttributes();(ar==null?void 0:ar.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",E)}Lt.drawImage(E,0,0)}return Pe}catch(jr){this.context.logger.info("Unable to clone canvas as it is tainted",E)}return Pe},R.prototype.createVideoClone=function(E){var U=E.ownerDocument.createElement("canvas");U.width=E.offsetWidth,U.height=E.offsetHeight;var k=U.getContext("2d");try{return k&&(k.drawImage(E,0,0,U.width,U.height),this.options.allowTaint||k.getImageData(0,0,U.width,U.height)),U}catch(it){this.context.logger.info("Unable to clone video as it is tainted",E)}var Pe=E.ownerDocument.createElement("canvas");return Pe.width=E.offsetWidth,Pe.height=E.offsetHeight,Pe},R.prototype.appendChildNode=function(E,U,k){(!Rr(U)||!Kl(U)&&!U.hasAttribute(iu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(U)))&&(!this.options.copyStyles||!Rr(U)||!Mo(U))&&E.appendChild(this.cloneNode(U,k))},R.prototype.cloneChildNodes=function(E,U,k){for(var Pe=this,it=E.shadowRoot?E.shadowRoot.firstChild:E.firstChild;it;it=it.nextSibling)if(Rr(it)&&xc(it)&&typeof it.assignedNodes=="function"){var Lt=it.assignedNodes();Lt.length&&Lt.forEach(function(or){return Pe.appendChildNode(U,or,k)})}else this.appendChildNode(U,it,k)},R.prototype.cloneNode=function(E,U){if(mr(E))return document.createTextNode(E.data);if(!E.ownerDocument)return E.cloneNode(!1);var k=E.ownerDocument.defaultView;if(k&&Rr(E)&&(un(E)||Kn(E))){var Pe=this.createElementClone(E);Pe.style.transitionProperty="none";var it=k.getComputedStyle(E),Lt=k.getComputedStyle(E,":before"),or=k.getComputedStyle(E,":after");this.referenceElement===E&&un(Pe)&&(this.clonedReferenceElement=Pe),xs(Pe)&&e(Pe);var ar=this.counters.parse(new Ba(this.context,it)),jr=this.resolvePseudoContent(E,Pe,Lt,Uo.BEFORE);Vu(E)&&(U=!0),wo(E)||this.cloneChildNodes(E,Pe,U),jr&&Pe.insertBefore(jr,Pe.firstChild);var Jr=this.resolvePseudoContent(E,Pe,or,Uo.AFTER);return Jr&&Pe.appendChild(Jr),this.counters.pop(ar),(it&&(this.options.copyStyles||Kn(E))&&!Yo(E)||U)&&Eo(it,Pe),(E.scrollTop!==0||E.scrollLeft!==0)&&this.scrolledElements.push([Pe,E.scrollLeft,E.scrollTop]),(el(E)||Tl(E))&&(el(Pe)||Tl(Pe))&&(Pe.value=E.value),Pe}return E.cloneNode(!1)},R.prototype.resolvePseudoContent=function(E,U,k,Pe){var it=this;if(k){var Lt=k.content,or=U.ownerDocument;if(!(!or||!Lt||Lt==="none"||Lt==="-moz-alt-content"||k.display==="none")){this.counters.parse(new Ba(this.context,k));var ar=new Ta(this.context,k),jr=or.createElement("html2canvaspseudoelement");Eo(k,jr),ar.content.forEach(function(mn){if(mn.type===0)jr.appendChild(or.createTextNode(mn.value));else if(mn.type===22){var h=or.createElement("img");h.src=mn.value,h.style.opacity="1",jr.appendChild(h)}else if(mn.type===18){if(mn.name==="attr"){var Q=mn.values.filter(Ai);Q.length&&jr.appendChild(or.createTextNode(E.getAttribute(Q[0].value)||""))}else if(mn.name==="counter"){var ue=mn.values.filter(Ns),Qe=ue[0],lt=ue[1];if(Qe&&Ai(Qe)){var pt=it.counters.getCounterValue(Qe.value),mt=lt&&Ai(lt)?ze.parse(it.context,lt.value):3;jr.appendChild(or.createTextNode(jl(pt,mt,!1)))}}else if(mn.name==="counters"){var Dt=mn.values.filter(Ns),Qe=Dt[0],Ot=Dt[1],lt=Dt[2];if(Qe&&Ai(Qe)){var zt=it.counters.getCounterValues(Qe.value),fr=lt&&Ai(lt)?ze.parse(it.context,lt.value):3,Wr=Ot&&Ot.type===0?Ot.value:"",Vr=zt.map(function(On){return jl(On,fr,!1)}).join(Wr);jr.appendChild(or.createTextNode(Vr))}}}else if(mn.type===20)switch(mn.value){case"open-quote":jr.appendChild(or.createTextNode(pi(ar.quotes,it.quoteDepth++,!0)));break;case"close-quote":jr.appendChild(or.createTextNode(pi(ar.quotes,--it.quoteDepth,!1)));break;default:jr.appendChild(or.createTextNode(mn.value))}}),jr.className=ec+" "+Al;var Jr=Pe===Uo.BEFORE?" "+ec:" "+Al;return Kn(U)?U.className.baseValue+=Jr:U.className+=Jr,jr}}},R.destroy=function(E){return E.parentNode?(E.parentNode.removeChild(E),!0):!1},R}(),Uo;(function(R){R[R.BEFORE=0]="BEFORE",R[R.AFTER=1]="AFTER"})(Uo||(Uo={}));var Uu=function(R,E){var U=R.createElement("iframe");return U.className="html2canvas-container",U.style.visibility="hidden",U.style.position="fixed",U.style.left="-10000px",U.style.top="0px",U.style.border="0",U.width=E.width.toString(),U.height=E.height.toString(),U.scrolling="no",U.setAttribute(iu,"true"),R.body.appendChild(U),U},au=function(R){return new Promise(function(E){if(R.complete){E();return}if(!R.src){E();return}R.onload=E,R.onerror=E})},su=function(R){return Promise.all([].slice.call(R.images,0).map(au))},mc=function(R){return new Promise(function(E,U){var k=R.contentWindow;if(!k)return U("No window assigned for iframe");var Pe=k.document;k.onload=R.onload=function(){k.onload=R.onload=null;var it=setInterval(function(){Pe.body.childNodes.length>0&&Pe.readyState==="complete"&&(clearInterval(it),E(R))},50)}})},Cu=["all","d","content"],Eo=function(R,E){for(var U=R.length-1;U>=0;U--){var k=R.item(U);Cu.indexOf(k)===-1&&E.style.setProperty(k,R.getPropertyValue(k))}return E},Qu=function(R){var E="";return R&&(E+="<!DOCTYPE ",R.name&&(E+=R.name),R.internalSubset&&(E+=R.internalSubset),R.publicId&&(E+='"'+R.publicId+'"'),R.systemId&&(E+='"'+R.systemId+'"'),E+=">"),E},cl=function(R,E,U){R&&R.defaultView&&(E!==R.defaultView.pageXOffset||U!==R.defaultView.pageYOffset)&&R.defaultView.scrollTo(E,U)},Hl=function(R){var E=R[0],U=R[1],k=R[2];E.scrollLeft=U,E.scrollTop=k},gc=":before",Tc=":after",ec="___html2canvas___pseudoelement_before",Al="___html2canvas___pseudoelement_after",d=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,e=function(R){t(R,"."+ec+gc+d+`
|
|
|
.`+Al+Tc+d)},t=function(R,E){var U=R.ownerDocument;if(U){var k=U.createElement("style");k.textContent=E,R.appendChild(k)}},r=function(){function R(){}return R.getOrigin=function(E){var U=R._link;return U?(U.href=E,U.href=U.href,U.protocol+U.hostname+U.port):"about:blank"},R.isSameOrigin=function(E){return R.getOrigin(E)===R._origin},R.setContext=function(E){R._link=E.document.createElement("a"),R._origin=R.getOrigin(E.location.href)},R._origin="about:blank",R}(),i=function(){function R(E,U){this.context=E,this._options=U,this._cache={}}return R.prototype.addImage=function(E){var U=Promise.resolve();return this.has(E)||(Oe(E)||j(E))&&(this._cache[E]=this.loadImage(E)).catch(function(){}),U},R.prototype.match=function(E){return this._cache[E]},R.prototype.loadImage=function(E){return Fe(this,void 0,void 0,function(){var U,k,Pe,it,Lt=this;return se(this,function(or){switch(or.label){case 0:return U=r.isSameOrigin(E),k=!J(E)&&this._options.useCORS===!0&&ws.SUPPORT_CORS_IMAGES&&!U,Pe=!J(E)&&!U&&!Oe(E)&&typeof this._options.proxy=="string"&&ws.SUPPORT_CORS_XHR&&!k,!U&&this._options.allowTaint===!1&&!J(E)&&!Oe(E)&&!Pe&&!k?[2]:(it=E,Pe?[4,this.proxy(it)]:[3,2]);case 1:it=or.sent(),or.label=2;case 2:return this.context.logger.debug("Added image "+E.substring(0,256)),[4,new Promise(function(ar,jr){var Jr=new Image;Jr.onload=function(){return ar(Jr)},Jr.onerror=jr,(fe(it)||k)&&(Jr.crossOrigin="anonymous"),Jr.src=it,Jr.complete===!0&&setTimeout(function(){return ar(Jr)},500),Lt._options.imageTimeout>0&&setTimeout(function(){return jr("Timed out ("+Lt._options.imageTimeout+"ms) loading image")},Lt._options.imageTimeout)})];case 3:return[2,or.sent()]}})})},R.prototype.has=function(E){return typeof this._cache[E]!="undefined"},R.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},R.prototype.proxy=function(E){var U=this,k=this._options.proxy;if(!k)throw new Error("No proxy defined");var Pe=E.substring(0,256);return new Promise(function(it,Lt){var or=ws.SUPPORT_RESPONSE_TYPE?"blob":"text",ar=new XMLHttpRequest;ar.onload=function(){if(ar.status===200)if(or==="text")it(ar.response);else{var mn=new FileReader;mn.addEventListener("load",function(){return it(mn.result)},!1),mn.addEventListener("error",function(h){return Lt(h)},!1),mn.readAsDataURL(ar.response)}else Lt("Failed to proxy resource "+Pe+" with status code "+ar.status)},ar.onerror=Lt;var jr=k.indexOf("?")>-1?"&":"?";if(ar.open("GET",""+k+jr+"url="+encodeURIComponent(E)+"&responseType="+or),or!=="text"&&ar instanceof XMLHttpRequest&&(ar.responseType=or),U._options.imageTimeout){var Jr=U._options.imageTimeout;ar.timeout=Jr,ar.ontimeout=function(){return Lt("Timed out ("+Jr+"ms) proxying "+Pe)}}ar.send()})},R}(),s=/^data:image\/svg\+xml/i,l=/^data:image\/.*;base64,/i,x=/^data:image\/.*/i,j=function(R){return ws.SUPPORT_SVG_DRAWING||!Ve(R)},J=function(R){return x.test(R)},fe=function(R){return l.test(R)},Oe=function(R){return R.substr(0,4)==="blob"},Ve=function(R){return R.substr(-3).toLowerCase()==="svg"||s.test(R)},Je=function(){function R(E,U){this.type=0,this.x=E,this.y=U}return R.prototype.add=function(E,U){return new R(this.x+E,this.y+U)},R}(),ut=function(R,E,U){return new Je(R.x+(E.x-R.x)*U,R.y+(E.y-R.y)*U)},Ct=function(){function R(E,U,k,Pe){this.type=1,this.start=E,this.startControl=U,this.endControl=k,this.end=Pe}return R.prototype.subdivide=function(E,U){var k=ut(this.start,this.startControl,E),Pe=ut(this.startControl,this.endControl,E),it=ut(this.endControl,this.end,E),Lt=ut(k,Pe,E),or=ut(Pe,it,E),ar=ut(Lt,or,E);return U?new R(this.start,k,Lt,ar):new R(ar,or,it,this.end)},R.prototype.add=function(E,U){return new R(this.start.add(E,U),this.startControl.add(E,U),this.endControl.add(E,U),this.end.add(E,U))},R.prototype.reverse=function(){return new R(this.end,this.endControl,this.startControl,this.start)},R}(),Ft=function(R){return R.type===1},gr=function(){function R(E){var U=E.styles,k=E.bounds,Pe=Ao(U.borderTopLeftRadius,k.width,k.height),it=Pe[0],Lt=Pe[1],or=Ao(U.borderTopRightRadius,k.width,k.height),ar=or[0],jr=or[1],Jr=Ao(U.borderBottomRightRadius,k.width,k.height),mn=Jr[0],h=Jr[1],Q=Ao(U.borderBottomLeftRadius,k.width,k.height),ue=Q[0],Qe=Q[1],lt=[];lt.push((it+ar)/k.width),lt.push((ue+mn)/k.width),lt.push((Lt+Qe)/k.height),lt.push((jr+h)/k.height);var pt=Math.max.apply(Math,lt);pt>1&&(it/=pt,Lt/=pt,ar/=pt,jr/=pt,mn/=pt,h/=pt,ue/=pt,Qe/=pt);var mt=k.width-ar,Dt=k.height-h,Ot=k.width-mn,zt=k.height-Qe,fr=U.borderTopWidth,Wr=U.borderRightWidth,Vr=U.borderBottomWidth,Sr=U.borderLeftWidth,Wn=_a(U.paddingTop,E.bounds.width),On=_a(U.paddingRight,E.bounds.width),Nr=_a(U.paddingBottom,E.bounds.width),Lr=_a(U.paddingLeft,E.bounds.width);this.topLeftBorderDoubleOuterBox=it>0||Lt>0?Fr(k.left+Sr/3,k.top+fr/3,it-Sr/3,Lt-fr/3,Or.TOP_LEFT):new Je(k.left+Sr/3,k.top+fr/3),this.topRightBorderDoubleOuterBox=it>0||Lt>0?Fr(k.left+mt,k.top+fr/3,ar-Wr/3,jr-fr/3,Or.TOP_RIGHT):new Je(k.left+k.width-Wr/3,k.top+fr/3),this.bottomRightBorderDoubleOuterBox=mn>0||h>0?Fr(k.left+Ot,k.top+Dt,mn-Wr/3,h-Vr/3,Or.BOTTOM_RIGHT):new Je(k.left+k.width-Wr/3,k.top+k.height-Vr/3),this.bottomLeftBorderDoubleOuterBox=ue>0||Qe>0?Fr(k.left+Sr/3,k.top+zt,ue-Sr/3,Qe-Vr/3,Or.BOTTOM_LEFT):new Je(k.left+Sr/3,k.top+k.height-Vr/3),this.topLeftBorderDoubleInnerBox=it>0||Lt>0?Fr(k.left+Sr*2/3,k.top+fr*2/3,it-Sr*2/3,Lt-fr*2/3,Or.TOP_LEFT):new Je(k.left+Sr*2/3,k.top+fr*2/3),this.topRightBorderDoubleInnerBox=it>0||Lt>0?Fr(k.left+mt,k.top+fr*2/3,ar-Wr*2/3,jr-fr*2/3,Or.TOP_RIGHT):new Je(k.left+k.width-Wr*2/3,k.top+fr*2/3),this.bottomRightBorderDoubleInnerBox=mn>0||h>0?Fr(k.left+Ot,k.top+Dt,mn-Wr*2/3,h-Vr*2/3,Or.BOTTOM_RIGHT):new Je(k.left+k.width-Wr*2/3,k.top+k.height-Vr*2/3),this.bottomLeftBorderDoubleInnerBox=ue>0||Qe>0?Fr(k.left+Sr*2/3,k.top+zt,ue-Sr*2/3,Qe-Vr*2/3,Or.BOTTOM_LEFT):new Je(k.left+Sr*2/3,k.top+k.height-Vr*2/3),this.topLeftBorderStroke=it>0||Lt>0?Fr(k.left+Sr/2,k.top+fr/2,it-Sr/2,Lt-fr/2,Or.TOP_LEFT):new Je(k.left+Sr/2,k.top+fr/2),this.topRightBorderStroke=it>0||Lt>0?Fr(k.left+mt,k.top+fr/2,ar-Wr/2,jr-fr/2,Or.TOP_RIGHT):new Je(k.left+k.width-Wr/2,k.top+fr/2),this.bottomRightBorderStroke=mn>0||h>0?Fr(k.left+Ot,k.top+Dt,mn-Wr/2,h-Vr/2,Or.BOTTOM_RIGHT):new Je(k.left+k.width-Wr/2,k.top+k.height-Vr/2),this.bottomLeftBorderStroke=ue>0||Qe>0?Fr(k.left+Sr/2,k.top+zt,ue-Sr/2,Qe-Vr/2,Or.BOTTOM_LEFT):new Je(k.left+Sr/2,k.top+k.height-Vr/2),this.topLeftBorderBox=it>0||Lt>0?Fr(k.left,k.top,it,Lt,Or.TOP_LEFT):new Je(k.left,k.top),this.topRightBorderBox=ar>0||jr>0?Fr(k.left+mt,k.top,ar,jr,Or.TOP_RIGHT):new Je(k.left+k.width,k.top),this.bottomRightBorderBox=mn>0||h>0?Fr(k.left+Ot,k.top+Dt,mn,h,Or.BOTTOM_RIGHT):new Je(k.left+k.width,k.top+k.height),this.bottomLeftBorderBox=ue>0||Qe>0?Fr(k.left,k.top+zt,ue,Qe,Or.BOTTOM_LEFT):new Je(k.left,k.top+k.height),this.topLeftPaddingBox=it>0||Lt>0?Fr(k.left+Sr,k.top+fr,Math.max(0,it-Sr),Math.max(0,Lt-fr),Or.TOP_LEFT):new Je(k.left+Sr,k.top+fr),this.topRightPaddingBox=ar>0||jr>0?Fr(k.left+Math.min(mt,k.width-Wr),k.top+fr,mt>k.width+Wr?0:Math.max(0,ar-Wr),Math.max(0,jr-fr),Or.TOP_RIGHT):new Je(k.left+k.width-Wr,k.top+fr),this.bottomRightPaddingBox=mn>0||h>0?Fr(k.left+Math.min(Ot,k.width-Sr),k.top+Math.min(Dt,k.height-Vr),Math.max(0,mn-Wr),Math.max(0,h-Vr),Or.BOTTOM_RIGHT):new Je(k.left+k.width-Wr,k.top+k.height-Vr),this.bottomLeftPaddingBox=ue>0||Qe>0?Fr(k.left+Sr,k.top+Math.min(zt,k.height-Vr),Math.max(0,ue-Sr),Math.max(0,Qe-Vr),Or.BOTTOM_LEFT):new Je(k.left+Sr,k.top+k.height-Vr),this.topLeftContentBox=it>0||Lt>0?Fr(k.left+Sr+Lr,k.top+fr+Wn,Math.max(0,it-(Sr+Lr)),Math.max(0,Lt-(fr+Wn)),Or.TOP_LEFT):new Je(k.left+Sr+Lr,k.top+fr+Wn),this.topRightContentBox=ar>0||jr>0?Fr(k.left+Math.min(mt,k.width+Sr+Lr),k.top+fr+Wn,mt>k.width+Sr+Lr?0:ar-Sr+Lr,jr-(fr+Wn),Or.TOP_RIGHT):new Je(k.left+k.width-(Wr+On),k.top+fr+Wn),this.bottomRightContentBox=mn>0||h>0?Fr(k.left+Math.min(Ot,k.width-(Sr+Lr)),k.top+Math.min(Dt,k.height+fr+Wn),Math.max(0,mn-(Wr+On)),h-(Vr+Nr),Or.BOTTOM_RIGHT):new Je(k.left+k.width-(Wr+On),k.top+k.height-(Vr+Nr)),this.bottomLeftContentBox=ue>0||Qe>0?Fr(k.left+Sr+Lr,k.top+zt,Math.max(0,ue-(Sr+Lr)),Qe-(Vr+Nr),Or.BOTTOM_LEFT):new Je(k.left+Sr+Lr,k.top+k.height-(Vr+Nr))}return R}(),Or;(function(R){R[R.TOP_LEFT=0]="TOP_LEFT",R[R.TOP_RIGHT=1]="TOP_RIGHT",R[R.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",R[R.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Or||(Or={}));var Fr=function(R,E,U,k,Pe){var it=4*((Math.sqrt(2)-1)/3),Lt=U*it,or=k*it,ar=R+U,jr=E+k;switch(Pe){case Or.TOP_LEFT:return new Ct(new Je(R,jr),new Je(R,jr-or),new Je(ar-Lt,E),new Je(ar,E));case Or.TOP_RIGHT:return new Ct(new Je(R,E),new Je(R+Lt,E),new Je(ar,jr-or),new Je(ar,jr));case Or.BOTTOM_RIGHT:return new Ct(new Je(ar,E),new Je(ar,E+or),new Je(R+Lt,jr),new Je(R,jr));case Or.BOTTOM_LEFT:default:return new Ct(new Je(ar,jr),new Je(ar-Lt,jr),new Je(R,E+or),new Je(R,E))}},Un=function(R){return[R.topLeftBorderBox,R.topRightBorderBox,R.bottomRightBorderBox,R.bottomLeftBorderBox]},an=function(R){return[R.topLeftContentBox,R.topRightContentBox,R.bottomRightContentBox,R.bottomLeftContentBox]},mi=function(R){return[R.topLeftPaddingBox,R.topRightPaddingBox,R.bottomRightPaddingBox,R.bottomLeftPaddingBox]},zn=function(){function R(E,U,k){this.offsetX=E,this.offsetY=U,this.matrix=k,this.type=0,this.target=6}return R}(),Ti=function(){function R(E,U){this.path=E,this.target=U,this.type=1}return R}(),qi=function(){function R(E){this.opacity=E,this.type=2,this.target=6}return R}(),di=function(R){return R.type===0},Ni=function(R){return R.type===1},za=function(R){return R.type===2},ia=function(R,E){return R.length===E.length?R.some(function(U,k){return U===E[k]}):!1},Qa=function(R,E,U,k,Pe){return R.map(function(it,Lt){switch(Lt){case 0:return it.add(E,U);case 1:return it.add(E+k,U);case 2:return it.add(E+k,U+Pe);case 3:return it.add(E,U+Pe)}return it})},Ua=function(){function R(E){this.element=E,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return R}(),La=function(){function R(E,U){if(this.container=E,this.parent=U,this.effects=[],this.curves=new gr(this.container),this.container.styles.opacity<1&&this.effects.push(new qi(this.container.styles.opacity)),this.container.styles.transform!==null){var k=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Pe=this.container.bounds.top+this.container.styles.transformOrigin[1].number,it=this.container.styles.transform;this.effects.push(new zn(k,Pe,it))}if(this.container.styles.overflowX!==0){var Lt=Un(this.curves),or=mi(this.curves);ia(Lt,or)?this.effects.push(new Ti(Lt,6)):(this.effects.push(new Ti(Lt,2)),this.effects.push(new Ti(or,4)))}}return R.prototype.getEffects=function(E){for(var U=[2,3].indexOf(this.container.styles.position)===-1,k=this.parent,Pe=this.effects.slice(0);k;){var it=k.effects.filter(function(ar){return!Ni(ar)});if(U||k.container.styles.position!==0||!k.parent){if(Pe.unshift.apply(Pe,it),U=[2,3].indexOf(k.container.styles.position)===-1,k.container.styles.overflowX!==0){var Lt=Un(k.curves),or=mi(k.curves);ia(Lt,or)||Pe.unshift(new Ti(or,6))}}else Pe.unshift.apply(Pe,it);k=k.parent}return Pe.filter(function(ar){return Xr(ar.target,E)})},R}(),Ts=function(R,E,U,k){R.container.elements.forEach(function(Pe){var it=Xr(Pe.flags,4),Lt=Xr(Pe.flags,2),or=new La(Pe,R);Xr(Pe.styles.display,2048)&&k.push(or);var ar=Xr(Pe.flags,8)?[]:k;if(it||Lt){var jr=it||Pe.styles.isPositioned()?U:E,Jr=new Ua(or);if(Pe.styles.isPositioned()||Pe.styles.opacity<1||Pe.styles.isTransformed()){var mn=Pe.styles.zIndex.order;if(mn<0){var h=0;jr.negativeZIndex.some(function(ue,Qe){return mn>ue.element.container.styles.zIndex.order?(h=Qe,!1):h>0}),jr.negativeZIndex.splice(h,0,Jr)}else if(mn>0){var Q=0;jr.positiveZIndex.some(function(ue,Qe){return mn>=ue.element.container.styles.zIndex.order?(Q=Qe+1,!1):Q>0}),jr.positiveZIndex.splice(Q,0,Jr)}else jr.zeroOrAutoZIndexOrTransformedOrOpacity.push(Jr)}else Pe.styles.isFloating()?jr.nonPositionedFloats.push(Jr):jr.nonPositionedInlineLevel.push(Jr);Ts(or,Jr,it?Jr:U,ar)}else Pe.styles.isInlineLevel()?E.inlineLevel.push(or):E.nonInlineLevel.push(or),Ts(or,E,U,ar);Xr(Pe.flags,8)&&Ks(Pe,ar)})},Ks=function(R,E){for(var U=R instanceof Go?R.start:1,k=R instanceof Go?R.reversed:!1,Pe=0;Pe<E.length;Pe++){var it=E[Pe];it.container instanceof lc&&typeof it.container.value=="number"&&it.container.value!==0&&(U=it.container.value),it.listValue=jl(U,it.container.styles.listStyleType,!0),U+=k?-1:1}},pa=function(R){var E=new La(R,null),U=new Ua(E),k=[];return Ts(E,U,U,k),Ks(E.container,k),U},oa=function(R,E){switch(E){case 0:return Ms(R.topLeftBorderBox,R.topLeftPaddingBox,R.topRightBorderBox,R.topRightPaddingBox);case 1:return Ms(R.topRightBorderBox,R.topRightPaddingBox,R.bottomRightBorderBox,R.bottomRightPaddingBox);case 2:return Ms(R.bottomRightBorderBox,R.bottomRightPaddingBox,R.bottomLeftBorderBox,R.bottomLeftPaddingBox);case 3:default:return Ms(R.bottomLeftBorderBox,R.bottomLeftPaddingBox,R.topLeftBorderBox,R.topLeftPaddingBox)}},ks=function(R,E){switch(E){case 0:return Ms(R.topLeftBorderBox,R.topLeftBorderDoubleOuterBox,R.topRightBorderBox,R.topRightBorderDoubleOuterBox);case 1:return Ms(R.topRightBorderBox,R.topRightBorderDoubleOuterBox,R.bottomRightBorderBox,R.bottomRightBorderDoubleOuterBox);case 2:return Ms(R.bottomRightBorderBox,R.bottomRightBorderDoubleOuterBox,R.bottomLeftBorderBox,R.bottomLeftBorderDoubleOuterBox);case 3:default:return Ms(R.bottomLeftBorderBox,R.bottomLeftBorderDoubleOuterBox,R.topLeftBorderBox,R.topLeftBorderDoubleOuterBox)}},hs=function(R,E){switch(E){case 0:return Ms(R.topLeftBorderDoubleInnerBox,R.topLeftPaddingBox,R.topRightBorderDoubleInnerBox,R.topRightPaddingBox);case 1:return Ms(R.topRightBorderDoubleInnerBox,R.topRightPaddingBox,R.bottomRightBorderDoubleInnerBox,R.bottomRightPaddingBox);case 2:return Ms(R.bottomRightBorderDoubleInnerBox,R.bottomRightPaddingBox,R.bottomLeftBorderDoubleInnerBox,R.bottomLeftPaddingBox);case 3:default:return Ms(R.bottomLeftBorderDoubleInnerBox,R.bottomLeftPaddingBox,R.topLeftBorderDoubleInnerBox,R.topLeftPaddingBox)}},Ws=function(R,E){switch(E){case 0:return lo(R.topLeftBorderStroke,R.topRightBorderStroke);case 1:return lo(R.topRightBorderStroke,R.bottomRightBorderStroke);case 2:return lo(R.bottomRightBorderStroke,R.bottomLeftBorderStroke);case 3:default:return lo(R.bottomLeftBorderStroke,R.topLeftBorderStroke)}},lo=function(R,E){var U=[];return Ft(R)?U.push(R.subdivide(.5,!1)):U.push(R),Ft(E)?U.push(E.subdivide(.5,!0)):U.push(E),U},Ms=function(R,E,U,k){var Pe=[];return Ft(R)?Pe.push(R.subdivide(.5,!1)):Pe.push(R),Ft(U)?Pe.push(U.subdivide(.5,!0)):Pe.push(U),Ft(k)?Pe.push(k.subdivide(.5,!0).reverse()):Pe.push(k),Ft(E)?Pe.push(E.subdivide(.5,!1).reverse()):Pe.push(E),Pe},Fo=function(R){var E=R.bounds,U=R.styles;return E.add(U.borderLeftWidth,U.borderTopWidth,-(U.borderRightWidth+U.borderLeftWidth),-(U.borderTopWidth+U.borderBottomWidth))},dl=function(R){var E=R.styles,U=R.bounds,k=_a(E.paddingLeft,U.width),Pe=_a(E.paddingRight,U.width),it=_a(E.paddingTop,U.width),Lt=_a(E.paddingBottom,U.width);return U.add(k+E.borderLeftWidth,it+E.borderTopWidth,-(E.borderRightWidth+E.borderLeftWidth+k+Pe),-(E.borderTopWidth+E.borderBottomWidth+it+Lt))},_c=function(R,E){return R===0?E.bounds:R===2?dl(E):Fo(E)},Fc=function(R,E){return R===0?E.bounds:R===2?dl(E):Fo(E)},Wc=function(R,E,U){var k=_c(zl(R.styles.backgroundOrigin,E),R),Pe=Fc(zl(R.styles.backgroundClip,E),R),it=gA(zl(R.styles.backgroundSize,E),U,k),Lt=it[0],or=it[1],ar=Ao(zl(R.styles.backgroundPosition,E),k.width-Lt,k.height-or),jr=_u(zl(R.styles.backgroundRepeat,E),ar,it,k,Pe),Jr=Math.round(k.left+ar[0]),mn=Math.round(k.top+ar[1]);return[jr,Jr,mn,Lt,or]},Dc=function(R){return Ai(R)&&R.value===M.AUTO},jc=function(R){return typeof R=="number"},gA=function(R,E,U){var k=E[0],Pe=E[1],it=E[2],Lt=R[0],or=R[1];if(!Lt)return[0,0];if(Di(Lt)&&or&&Di(or))return[_a(Lt,U.width),_a(or,U.height)];var ar=jc(it);if(Ai(Lt)&&(Lt.value===M.CONTAIN||Lt.value===M.COVER)){if(jc(it)){var jr=U.width/U.height;return jr<it!=(Lt.value===M.COVER)?[U.width,U.width/it]:[U.height*it,U.height]}return[U.width,U.height]}var Jr=jc(k),mn=jc(Pe),h=Jr||mn;if(Dc(Lt)&&(!or||Dc(or))){if(Jr&&mn)return[k,Pe];if(!ar&&!h)return[U.width,U.height];if(h&&ar){var Q=Jr?k:Pe*it,ue=mn?Pe:k/it;return[Q,ue]}var Qe=Jr?k:U.width,lt=mn?Pe:U.height;return[Qe,lt]}if(ar){var pt=0,mt=0;return Di(Lt)?pt=_a(Lt,U.width):Di(or)&&(mt=_a(or,U.height)),Dc(Lt)?pt=mt*it:(!or||Dc(or))&&(mt=pt/it),[pt,mt]}var Dt=null,Ot=null;if(Di(Lt)?Dt=_a(Lt,U.width):or&&Di(or)&&(Ot=_a(or,U.height)),Dt!==null&&(!or||Dc(or))&&(Ot=Jr&&mn?Dt/k*Pe:U.height),Ot!==null&&Dc(Lt)&&(Dt=Jr&&mn?Ot/Pe*k:U.width),Dt!==null&&Ot!==null)return[Dt,Ot];throw new Error("Unable to calculate background-size for element")},zl=function(R,E){var U=R[E];return typeof U=="undefined"?R[0]:U},_u=function(R,E,U,k,Pe){var it=E[0],Lt=E[1],or=U[0],ar=U[1];switch(R){case 2:return[new Je(Math.round(k.left),Math.round(k.top+Lt)),new Je(Math.round(k.left+k.width),Math.round(k.top+Lt)),new Je(Math.round(k.left+k.width),Math.round(ar+k.top+Lt)),new Je(Math.round(k.left),Math.round(ar+k.top+Lt))];case 3:return[new Je(Math.round(k.left+it),Math.round(k.top)),new Je(Math.round(k.left+it+or),Math.round(k.top)),new Je(Math.round(k.left+it+or),Math.round(k.height+k.top)),new Je(Math.round(k.left+it),Math.round(k.height+k.top))];case 1:return[new Je(Math.round(k.left+it),Math.round(k.top+Lt)),new Je(Math.round(k.left+it+or),Math.round(k.top+Lt)),new Je(Math.round(k.left+it+or),Math.round(k.top+Lt+ar)),new Je(Math.round(k.left+it),Math.round(k.top+Lt+ar))];default:return[new Je(Math.round(Pe.left),Math.round(Pe.top)),new Je(Math.round(Pe.left+Pe.width),Math.round(Pe.top)),new Je(Math.round(Pe.left+Pe.width),Math.round(Pe.height+Pe.top)),new Je(Math.round(Pe.left),Math.round(Pe.height+Pe.top))]}},tc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",eA="Hidden Text",tA=function(){function R(E){this._data={},this._document=E}return R.prototype.parseMetrics=function(E,U){var k=this._document.createElement("div"),Pe=this._document.createElement("img"),it=this._document.createElement("span"),Lt=this._document.body;k.style.visibility="hidden",k.style.fontFamily=E,k.style.fontSize=U,k.style.margin="0",k.style.padding="0",k.style.whiteSpace="nowrap",Lt.appendChild(k),Pe.src=tc,Pe.width=1,Pe.height=1,Pe.style.margin="0",Pe.style.padding="0",Pe.style.verticalAlign="baseline",it.style.fontFamily=E,it.style.fontSize=U,it.style.margin="0",it.style.padding="0",it.appendChild(this._document.createTextNode(eA)),k.appendChild(it),k.appendChild(Pe);var or=Pe.offsetTop-it.offsetTop+2;k.removeChild(it),k.appendChild(this._document.createTextNode(eA)),k.style.lineHeight="normal",Pe.style.verticalAlign="super";var ar=Pe.offsetTop-k.offsetTop+2;return Lt.removeChild(k),{baseline:or,middle:ar}},R.prototype.getMetrics=function(E,U){var k=E+" "+U;return typeof this._data[k]=="undefined"&&(this._data[k]=this.parseMetrics(E,U)),this._data[k]},R}(),rc=function(){function R(E,U){this.context=E,this.options=U}return R}(),ou=1e4,vA=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe._activeEffects=[],Pe.canvas=k.canvas?k.canvas:document.createElement("canvas"),Pe.ctx=Pe.canvas.getContext("2d"),k.canvas||(Pe.canvas.width=Math.floor(k.width*k.scale),Pe.canvas.height=Math.floor(k.height*k.scale),Pe.canvas.style.width=k.width+"px",Pe.canvas.style.height=k.height+"px"),Pe.fontMetrics=new tA(document),Pe.ctx.scale(Pe.options.scale,Pe.options.scale),Pe.ctx.translate(-k.x,-k.y),Pe.ctx.textBaseline="bottom",Pe._activeEffects=[],Pe.context.logger.debug("Canvas renderer initialized ("+k.width+"x"+k.height+") with scale "+k.scale),Pe}return E.prototype.applyEffects=function(U){for(var k=this;this._activeEffects.length;)this.popEffect();U.forEach(function(Pe){return k.applyEffect(Pe)})},E.prototype.applyEffect=function(U){this.ctx.save(),za(U)&&(this.ctx.globalAlpha=U.opacity),di(U)&&(this.ctx.translate(U.offsetX,U.offsetY),this.ctx.transform(U.matrix[0],U.matrix[1],U.matrix[2],U.matrix[3],U.matrix[4],U.matrix[5]),this.ctx.translate(-U.offsetX,-U.offsetY)),Ni(U)&&(this.path(U.path),this.ctx.clip()),this._activeEffects.push(U)},E.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},E.prototype.renderStack=function(U){return Fe(this,void 0,void 0,function(){var k;return se(this,function(Pe){switch(Pe.label){case 0:return k=U.element.container.styles,k.isVisible()?[4,this.renderStackContent(U)]:[3,2];case 1:Pe.sent(),Pe.label=2;case 2:return[2]}})})},E.prototype.renderNode=function(U){return Fe(this,void 0,void 0,function(){return se(this,function(k){switch(k.label){case 0:if(Xr(U.container.flags,16))debugger;return U.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(U)]:[3,3];case 1:return k.sent(),[4,this.renderNodeContent(U)];case 2:k.sent(),k.label=3;case 3:return[2]}})})},E.prototype.renderTextWithLetterSpacing=function(U,k,Pe){var it=this;if(k===0)this.ctx.fillText(U.text,U.bounds.left,U.bounds.top+Pe);else{var Lt=As(U.text);Lt.reduce(function(or,ar){return it.ctx.fillText(ar,or,U.bounds.top+Pe),or+it.ctx.measureText(ar).width},U.bounds.left)}},E.prototype.createFontStyle=function(U){var k=U.fontVariant.filter(function(Lt){return Lt==="normal"||Lt==="small-caps"}).join(""),Pe=aA(U.fontFamily).join(", "),it=Rs(U.fontSize)?""+U.fontSize.number+U.fontSize.unit:U.fontSize.number+"px";return[[U.fontStyle,k,U.fontWeight,it,Pe].join(" "),Pe,it]},E.prototype.renderTextNode=function(U,k){return Fe(this,void 0,void 0,function(){var Pe,it,Lt,or,ar,jr,Jr,mn,h=this;return se(this,function(Q){return Pe=this.createFontStyle(k),it=Pe[0],Lt=Pe[1],or=Pe[2],this.ctx.font=it,this.ctx.direction=k.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",ar=this.fontMetrics.getMetrics(Lt,or),jr=ar.baseline,Jr=ar.middle,mn=k.paintOrder,U.textBounds.forEach(function(ue){mn.forEach(function(Qe){switch(Qe){case 0:h.ctx.fillStyle=Ea(k.color),h.renderTextWithLetterSpacing(ue,k.letterSpacing,jr);var lt=k.textShadow;lt.length&&ue.text.trim().length&&(lt.slice(0).reverse().forEach(function(pt){h.ctx.shadowColor=Ea(pt.color),h.ctx.shadowOffsetX=pt.offsetX.number*h.options.scale,h.ctx.shadowOffsetY=pt.offsetY.number*h.options.scale,h.ctx.shadowBlur=pt.blur.number,h.renderTextWithLetterSpacing(ue,k.letterSpacing,jr)}),h.ctx.shadowColor="",h.ctx.shadowOffsetX=0,h.ctx.shadowOffsetY=0,h.ctx.shadowBlur=0),k.textDecorationLine.length&&(h.ctx.fillStyle=Ea(k.textDecorationColor||k.color),k.textDecorationLine.forEach(function(pt){switch(pt){case 1:h.ctx.fillRect(ue.bounds.left,Math.round(ue.bounds.top+jr),ue.bounds.width,1);break;case 2:h.ctx.fillRect(ue.bounds.left,Math.round(ue.bounds.top),ue.bounds.width,1);break;case 3:h.ctx.fillRect(ue.bounds.left,Math.ceil(ue.bounds.top+Jr),ue.bounds.width,1);break}}));break;case 1:k.webkitTextStrokeWidth&&ue.text.trim().length&&(h.ctx.strokeStyle=Ea(k.webkitTextStrokeColor),h.ctx.lineWidth=k.webkitTextStrokeWidth,h.ctx.lineJoin=window.chrome?"miter":"round",h.ctx.strokeText(ue.text,ue.bounds.left,ue.bounds.top+jr)),h.ctx.strokeStyle="",h.ctx.lineWidth=0,h.ctx.lineJoin="miter";break}})}),[2]})})},E.prototype.renderReplacedElement=function(U,k,Pe){if(Pe&&U.intrinsicWidth>0&&U.intrinsicHeight>0){var it=dl(U),Lt=mi(k);this.path(Lt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Pe,0,0,U.intrinsicWidth,U.intrinsicHeight,it.left,it.top,it.width,it.height),this.ctx.restore()}},E.prototype.renderNodeContent=function(U){return Fe(this,void 0,void 0,function(){var k,Pe,it,Lt,or,ar,mt,mt,jr,Jr,mn,h,Ot,Q,ue,zt,Qe,lt,pt,mt,Dt,Ot,zt;return se(this,function(fr){switch(fr.label){case 0:this.applyEffects(U.getEffects(4)),k=U.container,Pe=U.curves,it=k.styles,Lt=0,or=k.textNodes,fr.label=1;case 1:return Lt<or.length?(ar=or[Lt],[4,this.renderTextNode(ar,it)]):[3,4];case 2:fr.sent(),fr.label=3;case 3:return Lt++,[3,1];case 4:if(!(k instanceof Ic))return[3,8];fr.label=5;case 5:return fr.trys.push([5,7,,8]),[4,this.context.cache.match(k.src)];case 6:return mt=fr.sent(),this.renderReplacedElement(k,Pe,mt),[3,8];case 7:return fr.sent(),this.context.logger.error("Error loading image "+k.src),[3,8];case 8:if(k instanceof bu&&this.renderReplacedElement(k,Pe,k.canvas),!(k instanceof Ml))return[3,12];fr.label=9;case 9:return fr.trys.push([9,11,,12]),[4,this.context.cache.match(k.svg)];case 10:return mt=fr.sent(),this.renderReplacedElement(k,Pe,mt),[3,12];case 11:return fr.sent(),this.context.logger.error("Error loading svg "+k.svg.substring(0,255)),[3,12];case 12:return k instanceof wu&&k.tree?(jr=new E(this.context,{scale:this.options.scale,backgroundColor:k.backgroundColor,x:0,y:0,width:k.width,height:k.height}),[4,jr.render(k.tree)]):[3,14];case 13:Jr=fr.sent(),k.width&&k.height&&this.ctx.drawImage(Jr,0,0,k.width,k.height,k.bounds.left,k.bounds.top,k.bounds.width,k.bounds.height),fr.label=14;case 14:if(k instanceof Wu&&(mn=Math.min(k.bounds.width,k.bounds.height),k.type===Nu?k.checked&&(this.ctx.save(),this.path([new Je(k.bounds.left+mn*.39363,k.bounds.top+mn*.79),new Je(k.bounds.left+mn*.16,k.bounds.top+mn*.5549),new Je(k.bounds.left+mn*.27347,k.bounds.top+mn*.44071),new Je(k.bounds.left+mn*.39694,k.bounds.top+mn*.5649),new Je(k.bounds.left+mn*.72983,k.bounds.top+mn*.23),new Je(k.bounds.left+mn*.84,k.bounds.top+mn*.34085),new Je(k.bounds.left+mn*.39363,k.bounds.top+mn*.79)]),this.ctx.fillStyle=Ea(dc),this.ctx.fill(),this.ctx.restore()):k.type===ku&&k.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(k.bounds.left+mn/2,k.bounds.top+mn/2,mn/4,0,Math.PI*2,!0),this.ctx.fillStyle=Ea(dc),this.ctx.fill(),this.ctx.restore())),yA(k)&&k.value.length){switch(h=this.createFontStyle(it),Ot=h[0],Q=h[1],ue=this.fontMetrics.getMetrics(Ot,Q).baseline,this.ctx.font=Ot,this.ctx.fillStyle=Ea(it.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=nA(k.styles.textAlign),zt=dl(k),Qe=0,k.styles.textAlign){case 1:Qe+=zt.width/2;break;case 2:Qe+=zt.width;break}lt=zt.add(Qe,0,0,-zt.height/2+1),this.ctx.save(),this.path([new Je(zt.left,zt.top),new Je(zt.left+zt.width,zt.top),new Je(zt.left+zt.width,zt.top+zt.height),new Je(zt.left,zt.top+zt.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ol(k.value,lt),it.letterSpacing,ue),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Xr(k.styles.display,2048))return[3,20];if(k.styles.listStyleImage===null)return[3,19];if(pt=k.styles.listStyleImage,pt.type!==0)return[3,18];mt=void 0,Dt=pt.url,fr.label=15;case 15:return fr.trys.push([15,17,,18]),[4,this.context.cache.match(Dt)];case 16:return mt=fr.sent(),this.ctx.drawImage(mt,k.bounds.left-(mt.width+10),k.bounds.top),[3,18];case 17:return fr.sent(),this.context.logger.error("Error loading list-style-image "+Dt),[3,18];case 18:return[3,20];case 19:U.listValue&&k.styles.listStyleType!==-1&&(Ot=this.createFontStyle(it)[0],this.ctx.font=Ot,this.ctx.fillStyle=Ea(it.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",zt=new ie(k.bounds.left,k.bounds.top+_a(k.styles.paddingTop,k.bounds.width),k.bounds.width,Ut(it.lineHeight,it.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ol(U.listValue,zt),it.letterSpacing,Ut(it.lineHeight,it.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),fr.label=20;case 20:return[2]}})})},E.prototype.renderStackContent=function(U){return Fe(this,void 0,void 0,function(){var k,Pe,pt,it,Lt,pt,or,ar,pt,jr,Jr,pt,mn,h,pt,Q,ue,pt,Qe,lt,pt;return se(this,function(mt){switch(mt.label){case 0:if(Xr(U.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(U.element)];case 1:mt.sent(),k=0,Pe=U.negativeZIndex,mt.label=2;case 2:return k<Pe.length?(pt=Pe[k],[4,this.renderStack(pt)]):[3,5];case 3:mt.sent(),mt.label=4;case 4:return k++,[3,2];case 5:return[4,this.renderNodeContent(U.element)];case 6:mt.sent(),it=0,Lt=U.nonInlineLevel,mt.label=7;case 7:return it<Lt.length?(pt=Lt[it],[4,this.renderNode(pt)]):[3,10];case 8:mt.sent(),mt.label=9;case 9:return it++,[3,7];case 10:or=0,ar=U.nonPositionedFloats,mt.label=11;case 11:return or<ar.length?(pt=ar[or],[4,this.renderStack(pt)]):[3,14];case 12:mt.sent(),mt.label=13;case 13:return or++,[3,11];case 14:jr=0,Jr=U.nonPositionedInlineLevel,mt.label=15;case 15:return jr<Jr.length?(pt=Jr[jr],[4,this.renderStack(pt)]):[3,18];case 16:mt.sent(),mt.label=17;case 17:return jr++,[3,15];case 18:mn=0,h=U.inlineLevel,mt.label=19;case 19:return mn<h.length?(pt=h[mn],[4,this.renderNode(pt)]):[3,22];case 20:mt.sent(),mt.label=21;case 21:return mn++,[3,19];case 22:Q=0,ue=U.zeroOrAutoZIndexOrTransformedOrOpacity,mt.label=23;case 23:return Q<ue.length?(pt=ue[Q],[4,this.renderStack(pt)]):[3,26];case 24:mt.sent(),mt.label=25;case 25:return Q++,[3,23];case 26:Qe=0,lt=U.positiveZIndex,mt.label=27;case 27:return Qe<lt.length?(pt=lt[Qe],[4,this.renderStack(pt)]):[3,30];case 28:mt.sent(),mt.label=29;case 29:return Qe++,[3,27];case 30:return[2]}})})},E.prototype.mask=function(U){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(U.slice(0).reverse()),this.ctx.closePath()},E.prototype.path=function(U){this.ctx.beginPath(),this.formatPath(U),this.ctx.closePath()},E.prototype.formatPath=function(U){var k=this;U.forEach(function(Pe,it){var Lt=Ft(Pe)?Pe.start:Pe;it===0?k.ctx.moveTo(Lt.x,Lt.y):k.ctx.lineTo(Lt.x,Lt.y),Ft(Pe)&&k.ctx.bezierCurveTo(Pe.startControl.x,Pe.startControl.y,Pe.endControl.x,Pe.endControl.y,Pe.end.x,Pe.end.y)})},E.prototype.renderRepeat=function(U,k,Pe,it){this.path(U),this.ctx.fillStyle=k,this.ctx.translate(Pe,it),this.ctx.fill(),this.ctx.translate(-Pe,-it)},E.prototype.resizeImage=function(U,k,Pe){var it;if(U.width===k&&U.height===Pe)return U;var Lt=(it=this.canvas.ownerDocument)!==null&&it!==void 0?it:document,or=Lt.createElement("canvas");or.width=Math.max(1,k),or.height=Math.max(1,Pe);var ar=or.getContext("2d");return ar.drawImage(U,0,0,U.width,U.height,0,0,k,Pe),or},E.prototype.renderBackgroundImage=function(U){return Fe(this,void 0,void 0,function(){var k,Pe,it,Lt,or,ar;return se(this,function(jr){switch(jr.label){case 0:k=U.styles.backgroundImage.length-1,Pe=function(Jr){var mn,h,Q,Wn,ei,Vi,Lr,Vn,Vr,ue,Wn,ei,Vi,Lr,Vn,Qe,lt,pt,mt,Dt,Ot,zt,fr,Wr,Vr,Sr,Wn,On,Nr,Lr,Vn,gi,ei,Vi,Gi,ga,Yi,Ss,Fs,ds,us,Ds;return se(this,function(Us){switch(Us.label){case 0:if(Jr.type!==0)return[3,5];mn=void 0,h=Jr.url,Us.label=1;case 1:return Us.trys.push([1,3,,4]),[4,it.context.cache.match(h)];case 2:return mn=Us.sent(),[3,4];case 3:return Us.sent(),it.context.logger.error("Error loading background-image "+h),[3,4];case 4:return mn&&(Q=Wc(U,k,[mn.width,mn.height,mn.width/mn.height]),Wn=Q[0],ei=Q[1],Vi=Q[2],Lr=Q[3],Vn=Q[4],Vr=it.ctx.createPattern(it.resizeImage(mn,Lr,Vn),"repeat"),it.renderRepeat(Wn,Vr,ei,Vi)),[3,6];case 5:ic(Jr)?(ue=Wc(U,k,[null,null,null]),Wn=ue[0],ei=ue[1],Vi=ue[2],Lr=ue[3],Vn=ue[4],Qe=jo(Jr.angle,Lr,Vn),lt=Qe[0],pt=Qe[1],mt=Qe[2],Dt=Qe[3],Ot=Qe[4],zt=document.createElement("canvas"),zt.width=Lr,zt.height=Vn,fr=zt.getContext("2d"),Wr=fr.createLinearGradient(pt,Dt,mt,Ot),Ll(Jr.stops,lt).forEach(function(Ga){return Wr.addColorStop(Ga.stop,Ea(Ga.color))}),fr.fillStyle=Wr,fr.fillRect(0,0,Lr,Vn),Lr>0&&Vn>0&&(Vr=it.ctx.createPattern(zt,"repeat"),it.renderRepeat(Wn,Vr,ei,Vi))):ac(Jr)&&(Sr=Wc(U,k,[null,null,null]),Wn=Sr[0],On=Sr[1],Nr=Sr[2],Lr=Sr[3],Vn=Sr[4],gi=Jr.position.length===0?[nl]:Jr.position,ei=_a(gi[0],Lr),Vi=_a(gi[gi.length-1],Vn),Gi=Za(Jr,ei,Vi,Lr,Vn),ga=Gi[0],Yi=Gi[1],ga>0&&Yi>0&&(Ss=it.ctx.createRadialGradient(On+ei,Nr+Vi,0,On+ei,Nr+Vi,ga),Ll(Jr.stops,ga*2).forEach(function(Ga){return Ss.addColorStop(Ga.stop,Ea(Ga.color))}),it.path(Wn),it.ctx.fillStyle=Ss,ga!==Yi?(Fs=U.bounds.left+.5*U.bounds.width,ds=U.bounds.top+.5*U.bounds.height,us=Yi/ga,Ds=1/us,it.ctx.save(),it.ctx.translate(Fs,ds),it.ctx.transform(1,0,0,us,0,0),it.ctx.translate(-Fs,-ds),it.ctx.fillRect(On,Ds*(Nr-ds)+ds,Lr,Vn*Ds),it.ctx.restore()):it.ctx.fill())),Us.label=6;case 6:return k--,[2]}})},it=this,Lt=0,or=U.styles.backgroundImage.slice(0).reverse(),jr.label=1;case 1:return Lt<or.length?(ar=or[Lt],[5,Pe(ar)]):[3,4];case 2:jr.sent(),jr.label=3;case 3:return Lt++,[3,1];case 4:return[2]}})})},E.prototype.renderSolidBorder=function(U,k,Pe){return Fe(this,void 0,void 0,function(){return se(this,function(it){return this.path(oa(Pe,k)),this.ctx.fillStyle=Ea(U),this.ctx.fill(),[2]})})},E.prototype.renderDoubleBorder=function(U,k,Pe,it){return Fe(this,void 0,void 0,function(){var Lt,or;return se(this,function(ar){switch(ar.label){case 0:return k<3?[4,this.renderSolidBorder(U,Pe,it)]:[3,2];case 1:return ar.sent(),[2];case 2:return Lt=ks(it,Pe),this.path(Lt),this.ctx.fillStyle=Ea(U),this.ctx.fill(),or=hs(it,Pe),this.path(or),this.ctx.fill(),[2]}})})},E.prototype.renderNodeBackgroundAndBorders=function(U){return Fe(this,void 0,void 0,function(){var k,Pe,it,Lt,or,ar,jr,Jr,mn=this;return se(this,function(h){switch(h.label){case 0:return this.applyEffects(U.getEffects(2)),k=U.container.styles,Pe=!js(k.backgroundColor)||k.backgroundImage.length,it=[{style:k.borderTopStyle,color:k.borderTopColor,width:k.borderTopWidth},{style:k.borderRightStyle,color:k.borderRightColor,width:k.borderRightWidth},{style:k.borderBottomStyle,color:k.borderBottomColor,width:k.borderBottomWidth},{style:k.borderLeftStyle,color:k.borderLeftColor,width:k.borderLeftWidth}],Lt=rA(zl(k.backgroundClip,0),U.curves),Pe||k.boxShadow.length?(this.ctx.save(),this.path(Lt),this.ctx.clip(),js(k.backgroundColor)||(this.ctx.fillStyle=Ea(k.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(U.container)]):[3,2];case 1:h.sent(),this.ctx.restore(),k.boxShadow.slice(0).reverse().forEach(function(Q){mn.ctx.save();var ue=Un(U.curves),Qe=Q.inset?0:ou,lt=Qa(ue,-Qe+(Q.inset?1:-1)*Q.spread.number,(Q.inset?1:-1)*Q.spread.number,Q.spread.number*(Q.inset?-2:2),Q.spread.number*(Q.inset?-2:2));Q.inset?(mn.path(ue),mn.ctx.clip(),mn.mask(lt)):(mn.mask(ue),mn.ctx.clip(),mn.path(lt)),mn.ctx.shadowOffsetX=Q.offsetX.number+Qe,mn.ctx.shadowOffsetY=Q.offsetY.number,mn.ctx.shadowColor=Ea(Q.color),mn.ctx.shadowBlur=Q.blur.number,mn.ctx.fillStyle=Q.inset?Ea(Q.color):"rgba(0,0,0,1)",mn.ctx.fill(),mn.ctx.restore()}),h.label=2;case 2:or=0,ar=0,jr=it,h.label=3;case 3:return ar<jr.length?(Jr=jr[ar],Jr.style!==0&&!js(Jr.color)&&Jr.width>0?Jr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Jr.color,Jr.width,or,U.curves,2)]:[3,11]):[3,13];case 4:return h.sent(),[3,11];case 5:return Jr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Jr.color,Jr.width,or,U.curves,3)];case 6:return h.sent(),[3,11];case 7:return Jr.style!==4?[3,9]:[4,this.renderDoubleBorder(Jr.color,Jr.width,or,U.curves)];case 8:return h.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Jr.color,or,U.curves)];case 10:h.sent(),h.label=11;case 11:or++,h.label=12;case 12:return ar++,[3,3];case 13:return[2]}})})},E.prototype.renderDashedDottedBorder=function(U,k,Pe,it,Lt){return Fe(this,void 0,void 0,function(){var or,ar,jr,Jr,mn,h,Q,ue,Qe,lt,pt,mt,Dt,Ot,zt,fr,zt,fr;return se(this,function(Wr){return this.ctx.save(),or=Ws(it,Pe),ar=oa(it,Pe),Lt===2&&(this.path(ar),this.ctx.clip()),Ft(ar[0])?(jr=ar[0].start.x,Jr=ar[0].start.y):(jr=ar[0].x,Jr=ar[0].y),Ft(ar[1])?(mn=ar[1].end.x,h=ar[1].end.y):(mn=ar[1].x,h=ar[1].y),Pe===0||Pe===2?Q=Math.abs(jr-mn):Q=Math.abs(Jr-h),this.ctx.beginPath(),Lt===3?this.formatPath(or):this.formatPath(ar.slice(0,2)),ue=k<3?k*3:k*2,Qe=k<3?k*2:k,Lt===3&&(ue=k,Qe=k),lt=!0,Q<=ue*2?lt=!1:Q<=ue*2+Qe?(pt=Q/(2*ue+Qe),ue*=pt,Qe*=pt):(mt=Math.floor((Q+Qe)/(ue+Qe)),Dt=(Q-mt*ue)/(mt-1),Ot=(Q-(mt+1)*ue)/mt,Qe=Ot<=0||Math.abs(Qe-Dt)<Math.abs(Qe-Ot)?Dt:Ot),lt&&(Lt===3?this.ctx.setLineDash([0,ue+Qe]):this.ctx.setLineDash([ue,Qe])),Lt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=k):this.ctx.lineWidth=k*2+1.1,this.ctx.strokeStyle=Ea(U),this.ctx.stroke(),this.ctx.setLineDash([]),Lt===2&&(Ft(ar[0])&&(zt=ar[3],fr=ar[0],this.ctx.beginPath(),this.formatPath([new Je(zt.end.x,zt.end.y),new Je(fr.start.x,fr.start.y)]),this.ctx.stroke()),Ft(ar[1])&&(zt=ar[1],fr=ar[2],this.ctx.beginPath(),this.formatPath([new Je(zt.end.x,zt.end.y),new Je(fr.start.x,fr.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},E.prototype.render=function(U){return Fe(this,void 0,void 0,function(){var k;return se(this,function(Pe){switch(Pe.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ea(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),k=pa(U),[4,this.renderStack(k)];case 1:return Pe.sent(),this.applyEffects([]),[2,this.canvas]}})})},E}(rc),yA=function(R){return R instanceof wc||R instanceof bc?!0:R instanceof Wu&&R.type!==ku&&R.type!==Nu},rA=function(R,E){switch(R){case 0:return Un(E);case 2:return an(E);case 1:default:return mi(E)}},nA=function(R){switch(R){case 1:return"center";case 2:return"right";case 0:default:return"left"}},iA=["-apple-system","system-ui"],aA=function(R){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?R.filter(function(E){return iA.indexOf(E)===-1}):R},bA=function(R){g(E,R);function E(U,k){var Pe=R.call(this,U,k)||this;return Pe.canvas=k.canvas?k.canvas:document.createElement("canvas"),Pe.ctx=Pe.canvas.getContext("2d"),Pe.options=k,Pe.canvas.width=Math.floor(k.width*k.scale),Pe.canvas.height=Math.floor(k.height*k.scale),Pe.canvas.style.width=k.width+"px",Pe.canvas.style.height=k.height+"px",Pe.ctx.scale(Pe.options.scale,Pe.options.scale),Pe.ctx.translate(-k.x,-k.y),Pe.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+k.width+"x"+k.height+" at "+k.x+","+k.y+") with scale "+k.scale),Pe}return E.prototype.render=function(U){return Fe(this,void 0,void 0,function(){var k,Pe;return se(this,function(it){switch(it.label){case 0:return k=Bl(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,U),[4,Hc(k)];case 1:return Pe=it.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ea(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Pe,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},E}(rc),Hc=function(R){return new Promise(function(E,U){var k=new Image;k.onload=function(){E(k)},k.onerror=U,k.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(R))})},$c=function(){function R(E){var U=E.id,k=E.enabled;this.id=U,this.enabled=k,this.start=Date.now()}return R.prototype.debug=function(){for(var E=[],U=0;U<arguments.length;U++)E[U]=arguments[U];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,ke([this.id,this.getTime()+"ms"],E)):this.info.apply(this,E))},R.prototype.getTime=function(){return Date.now()-this.start},R.prototype.info=function(){for(var E=[],U=0;U<arguments.length;U++)E[U]=arguments[U];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,ke([this.id,this.getTime()+"ms"],E))},R.prototype.warn=function(){for(var E=[],U=0;U<arguments.length;U++)E[U]=arguments[U];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,ke([this.id,this.getTime()+"ms"],E)):this.info.apply(this,E))},R.prototype.error=function(){for(var E=[],U=0;U<arguments.length;U++)E[U]=arguments[U];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,ke([this.id,this.getTime()+"ms"],E)):this.info.apply(this,E))},R.instances={},R}(),Uc=function(){function R(E,U){var k;this.windowBounds=U,this.instanceName="#"+R.instanceCount++,this.logger=new $c({id:this.instanceName,enabled:E.logging}),this.cache=(k=E.cache)!==null&&k!==void 0?k:new i(this,E)}return R.instanceCount=1,R}(),Vc=function(R,E){return E===void 0&&(E={}),sA(R,E)};typeof window!="undefined"&&r.setContext(window);var sA=function(R,E){return Fe(void 0,void 0,void 0,function(){var U,k,Pe,it,Lt,or,ar,jr,Jr,mn,h,Q,ue,Qe,lt,pt,mt,Dt,Ot,zt,Wr,fr,Wr,Vr,Sr,Wn,On,Nr,Lr,Vn,gi,ei,Vi,Gi,ga,Yi,Ss,Fs,ds,us;return se(this,function(Ds){switch(Ds.label){case 0:if(!R||typeof R!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(U=R.ownerDocument,!U)throw new Error("Element is not attached to a Document");if(k=U.defaultView,!k)throw new Error("Document is not attached to a Window");return Pe={allowTaint:(Vr=E.allowTaint)!==null&&Vr!==void 0?Vr:!1,imageTimeout:(Sr=E.imageTimeout)!==null&&Sr!==void 0?Sr:15e3,proxy:E.proxy,useCORS:(Wn=E.useCORS)!==null&&Wn!==void 0?Wn:!1},it=we({logging:(On=E.logging)!==null&&On!==void 0?On:!0,cache:E.cache},Pe),Lt={windowWidth:(Nr=E.windowWidth)!==null&&Nr!==void 0?Nr:k.innerWidth,windowHeight:(Lr=E.windowHeight)!==null&&Lr!==void 0?Lr:k.innerHeight,scrollX:(Vn=E.scrollX)!==null&&Vn!==void 0?Vn:k.pageXOffset,scrollY:(gi=E.scrollY)!==null&&gi!==void 0?gi:k.pageYOffset},or=new ie(Lt.scrollX,Lt.scrollY,Lt.windowWidth,Lt.windowHeight),ar=new Uc(it,or),jr=(ei=E.foreignObjectRendering)!==null&&ei!==void 0?ei:!1,Jr={allowTaint:(Vi=E.allowTaint)!==null&&Vi!==void 0?Vi:!1,onclone:E.onclone,ignoreElements:E.ignoreElements,inlineImages:jr,copyStyles:jr},ar.logger.debug("Starting document clone with size "+or.width+"x"+or.height+" scrolled to "+-or.left+","+-or.top),mn=new ul(ar,R,Jr),h=mn.clonedReferenceElement,h?[4,mn.toIFrame(U,or)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Q=Ds.sent(),ue=xs(h)||Wa(h)?O(h.ownerDocument):Y(ar,h),Qe=ue.width,lt=ue.height,pt=ue.left,mt=ue.top,Dt=wA(ar,h,E.backgroundColor),Ot={canvas:E.canvas,backgroundColor:Dt,scale:(ga=(Gi=E.scale)!==null&&Gi!==void 0?Gi:k.devicePixelRatio)!==null&&ga!==void 0?ga:1,x:((Yi=E.x)!==null&&Yi!==void 0?Yi:0)+pt,y:((Ss=E.y)!==null&&Ss!==void 0?Ss:0)+mt,width:(Fs=E.width)!==null&&Fs!==void 0?Fs:Math.ceil(Qe),height:(ds=E.height)!==null&&ds!==void 0?ds:Math.ceil(lt)},jr?(ar.logger.debug("Document cloned, using foreign object rendering"),Wr=new bA(ar,Ot),[4,Wr.render(h)]):[3,3];case 2:return zt=Ds.sent(),[3,5];case 3:return ar.logger.debug("Document cloned, element located at "+pt+","+mt+" with size "+Qe+"x"+lt+" using computed rendering"),ar.logger.debug("Starting DOM parsing"),fr=fc(ar,h),Dt===fr.styles.backgroundColor&&(fr.styles.backgroundColor=yo.TRANSPARENT),ar.logger.debug("Starting renderer for element at "+Ot.x+","+Ot.y+" with size "+Ot.width+"x"+Ot.height),Wr=new vA(ar,Ot),[4,Wr.render(fr)];case 4:zt=Ds.sent(),Ds.label=5;case 5:return(!((us=E.removeContainer)!==null&&us!==void 0)||us)&&(ul.destroy(Q)||ar.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ar.logger.debug("Finished rendering"),[2,zt]}})})},wA=function(R,E,U){var k=E.ownerDocument,Pe=k.documentElement?so(R,getComputedStyle(k.documentElement).backgroundColor):yo.TRANSPARENT,it=k.body?so(R,getComputedStyle(k.body).backgroundColor):yo.TRANSPARENT,Lt=typeof U=="string"?so(R,U):U===null?yo.TRANSPARENT:4294967295;return E===k.documentElement?js(Pe)?js(it)?Lt:it:Pe:Lt};return Vc})},65022:function(yn,Gt,g){var we=g(97671);(function(se,ke){yn.exports=ke(g(32092),g(64270))})(self,function(Fe,se){return function(){var ke={"./src/plugin/hyperlinks.js":function(T,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.string.link.js"),A=o.n(a),m=o("./src/worker.js"),S=o("./src/utils.js"),K=[],F={toContainer:m.default.prototype.toContainer,toPdf:m.default.prototype.toPdf};m.default.prototype.toContainer=function(){return F.toContainer.call(this).then(function(){if(this.opt.enableLinks){var ee=this.prop.container,B=ee.querySelectorAll("a"),G=(0,S.unitConvert)(ee.getBoundingClientRect(),this.prop.pageSize.k);K=[],Array.prototype.forEach.call(B,function(ce){for(var q=ce.getClientRects(),be=0;be<q.length;be++){var xe=(0,S.unitConvert)(q[be],this.prop.pageSize.k);xe.left-=G.left,xe.top-=G.top;var Le=Math.floor(xe.top/this.prop.pageSize.inner.height)+1,ae=this.opt.margin[0]+xe.top%this.prop.pageSize.inner.height,me=this.opt.margin[1]+xe.left;K.push({page:Le,top:ae,left:me,clientRect:xe,link:ce})}},this)}})},m.default.prototype.toPdf=function(){return F.toPdf.call(this).then(function(){if(this.opt.enableLinks){K.forEach(function(B){this.prop.pdf.setPage(B.page),this.prop.pdf.link(B.left,B.top,B.clientRect.width,B.clientRect.height,{url:B.link.href})},this);var ee=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(ee)}})}},"./src/plugin/jspdf-plugin.js":function(T,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/es.symbol.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.symbol.description.js"),A=o.n(a),m=o("./node_modules/core-js/modules/es.object.to-string.js"),S=o.n(m),K=o("./node_modules/core-js/modules/es.symbol.iterator.js"),F=o.n(K),H=o("./node_modules/core-js/modules/es.array.iterator.js"),V=o.n(H),ee=o("./node_modules/core-js/modules/es.string.iterator.js"),B=o.n(ee),G=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),ce=o.n(G),q=o("jspdf"),be=o.n(q);function xe(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xe=function(me){return typeof me}:xe=function(me){return me&&typeof Symbol=="function"&&me.constructor===Symbol&&me!==Symbol.prototype?"symbol":typeof me},xe(Le)}q.jsPDF.getPageSize=function(Le,ae,me){if(xe(Le)==="object"){var I=Le;Le=I.orientation,ae=I.unit||ae,me=I.format||me}ae=ae||"mm",me=me||"a4",Le=(""+(Le||"P")).toLowerCase();var _e=(""+me).toLowerCase(),oe={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(ae){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: "+ae}if(oe.hasOwnProperty(_e))var ve=oe[_e][1]/he,_=oe[_e][0]/he;else try{var ve=me[1],_=me[0]}catch(pe){throw new Error("Invalid format: "+me)}if(Le==="p"||Le==="portrait"){if(Le="p",_>ve){var N=_;_=ve,ve=N}}else if(Le==="l"||Le==="landscape"){if(Le="l",ve>_){var N=_;_=ve,ve=N}}else throw"Invalid orientation: "+Le;var X={width:_,height:ve,unit:ae,k:he};return X},n.default=q.jsPDF},"./src/plugin/pagebreaks.js":function(T,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/es.array.concat.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.array.slice.js"),A=o.n(a),m=o("./node_modules/core-js/modules/es.array.join.js"),S=o.n(m),K=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),F=o.n(K),H=o("./node_modules/core-js/modules/es.object.keys.js"),V=o.n(H),ee=o("./src/worker.js"),B=o("./src/utils.js"),G={toContainer:ee.default.prototype.toContainer};ee.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},ee.default.prototype.toContainer=function(){return G.toContainer.call(this).then(function(){var be=this.prop.container,xe=this.prop.pageSize.inner.px.height,Le=[].concat(this.opt.pagebreak.mode),ae={avoidAll:Le.indexOf("avoid-all")!==-1,css:Le.indexOf("css")!==-1,legacy:Le.indexOf("legacy")!==-1},me={},I=this;["before","after","avoid"].forEach(function(he){var ve=ae.avoidAll&&he==="avoid";me[he]=ve?[]:[].concat(I.opt.pagebreak[he]||[]),me[he].length>0&&(me[he]=Array.prototype.slice.call(be.querySelectorAll(me[he].join(", "))))});var _e=be.querySelectorAll(".html2pdf__page-break");_e=Array.prototype.slice.call(_e);var oe=be.querySelectorAll("*");Array.prototype.forEach.call(oe,function(ve){var _={before:!1,after:ae.legacy&&_e.indexOf(ve)!==-1,avoid:ae.avoidAll};if(ae.css){var N=window.getComputedStyle(ve),X=["always","page","left","right"],pe=["avoid","avoid-page"];_={before:_.before||X.indexOf(N.breakBefore||N.pageBreakBefore)!==-1,after:_.after||X.indexOf(N.breakAfter||N.pageBreakAfter)!==-1,avoid:_.avoid||pe.indexOf(N.breakInside||N.pageBreakInside)!==-1}}Object.keys(_).forEach(function(qt){_[qt]=_[qt]||me[qt].indexOf(ve)!==-1});var qe=ve.getBoundingClientRect();if(_.avoid&&!_.before){var at=Math.floor(qe.top/xe),rt=Math.floor(qe.bottom/xe),Rt=Math.abs(qe.bottom-qe.top)/xe;rt!==at&&Rt<=1&&(_.before=!0)}if(_.before){var lr=(0,B.createElement)("div",{style:{display:"block",height:xe-qe.top%xe+"px"}});ve.parentNode.insertBefore(lr,ve)}if(_.after){var lr=(0,B.createElement)("div",{style:{display:"block",height:xe-qe.bottom%xe+"px"}});ve.parentNode.insertBefore(lr,ve.nextSibling)}})})}},"./src/utils.js":function(T,n,o){"use strict";o.r(n),o.d(n,{objType:function(){return Le},createElement:function(){return ae},cloneNode:function(){return me},unitConvert:function(){return I},toPx:function(){return _e}});var L=o("./node_modules/core-js/modules/es.number.constructor.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.symbol.js"),A=o.n(a),m=o("./node_modules/core-js/modules/es.symbol.description.js"),S=o.n(m),K=o("./node_modules/core-js/modules/es.object.to-string.js"),F=o.n(K),H=o("./node_modules/core-js/modules/es.symbol.iterator.js"),V=o.n(H),ee=o("./node_modules/core-js/modules/es.array.iterator.js"),B=o.n(ee),G=o("./node_modules/core-js/modules/es.string.iterator.js"),ce=o.n(G),q=o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),be=o.n(q);function xe(oe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xe=function(ve){return typeof ve}:xe=function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},xe(oe)}var Le=function(he){var ve=xe(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"},ae=function(he,ve){var _=document.createElement(he);if(ve.className&&(_.className=ve.className),ve.innerHTML){_.innerHTML=ve.innerHTML;for(var N=_.getElementsByTagName("script"),X=N.length;X-- >0;null)N[X].parentNode.removeChild(N[X])}for(var pe in ve.style)_.style[pe]=ve.style[pe];return _},me=function oe(he,ve){for(var _=he.nodeType===3?document.createTextNode(he.nodeValue):he.cloneNode(!1),N=he.firstChild;N;N=N.nextSibling)(ve===!0||N.nodeType!==1||N.nodeName!=="SCRIPT")&&_.appendChild(oe(N,ve));return he.nodeType===1&&(he.nodeName==="CANVAS"?(_.width=he.width,_.height=he.height,_.getContext("2d").drawImage(he,0,0)):(he.nodeName==="TEXTAREA"||he.nodeName==="SELECT")&&(_.value=he.value),_.addEventListener("load",function(){_.scrollTop=he.scrollTop,_.scrollLeft=he.scrollLeft},!0)),_},I=function(he,ve){if(Le(he)==="number")return he*72/96/ve;var _={};for(var N in he)_[N]=he[N]*72/96/ve;return _},_e=function(he,ve){return Math.floor(he*ve/72*96)}},"./src/worker.js":function(T,n,o){"use strict";o.r(n);var L=o("./node_modules/core-js/modules/es.object.assign.js"),p=o.n(L),a=o("./node_modules/core-js/modules/es.array.map.js"),A=o.n(a),m=o("./node_modules/core-js/modules/es.object.keys.js"),S=o.n(m),K=o("./node_modules/core-js/modules/es.array.concat.js"),F=o.n(K),H=o("./node_modules/core-js/modules/es.object.to-string.js"),V=o.n(H),ee=o("./node_modules/core-js/modules/es.regexp.to-string.js"),B=o.n(ee),G=o("./node_modules/core-js/modules/es.function.name.js"),ce=o.n(G),q=o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),be=o.n(q),xe=o("jspdf"),Le=o.n(xe),ae=o("html2canvas"),me=o.n(ae),I=o("./src/utils.js"),_e=o("./node_modules/es6-promise/dist/es6-promise.js"),oe=o.n(_e),he=oe().Promise,ve=function _(N){var X=Object.assign(_.convert(he.resolve()),JSON.parse(JSON.stringify(_.template))),pe=_.convert(he.resolve(),X);return pe=pe.setProgress(1,_,1,[_]),pe=pe.set(N),pe};ve.prototype=Object.create(he.prototype),ve.prototype.constructor=ve,ve.convert=function(N,X){return N.__proto__=X||ve.prototype,N},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(N,X){function pe(qe){switch((0,I.objType)(qe)){case"string":return"string";case"element":return qe.nodeName.toLowerCase&&qe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(X=X||pe(N),X){case"string":return this.set({src:(0,I.createElement)("div",{innerHTML:N})});case"element":return this.set({src:N});case"canvas":return this.set({canvas:N});case"img":return this.set({img:N});default:return this.error("Unknown source type.")}})},ve.prototype.to=function(N){switch(N){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 N=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(N).then(function(){var pe={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},qe={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};pe.opacity=0;var at=(0,I.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,I.createElement)("div",{className:"html2pdf__overlay",style:pe}),this.prop.container=(0,I.createElement)("div",{className:"html2pdf__container",style:qe}),this.prop.container.appendChild(at),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},ve.prototype.toCanvas=function(){var N=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(N).then(function(){var pe=Object.assign({},this.opt.html2canvas);return delete pe.onrendered,ae(this.prop.container,pe)}).then(function(pe){var qe=this.opt.html2canvas.onrendered||function(){};qe(pe),this.prop.canvas=pe,document.body.removeChild(this.prop.overlay)})},ve.prototype.toImg=function(){var N=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(N).then(function(){var pe=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=pe})},ve.prototype.toPdf=function(){var N=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(N).then(function(){var pe=this.prop.canvas,qe=this.opt,at=pe.height,rt=Math.floor(pe.width*this.prop.pageSize.inner.ratio),Rt=Math.ceil(at/rt),lr=this.prop.pageSize.inner.height,qt=document.createElement("canvas"),Ze=qt.getContext("2d");qt.width=pe.width,qt.height=rt,this.prop.pdf=this.prop.pdf||new xe.jsPDF(qe.jsPDF);for(var Er=0;Er<Rt;Er++){Er===Rt-1&&at%rt!==0&&(qt.height=at%rt,lr=qt.height*this.prop.pageSize.inner.width/qt.width);var Cr=qt.width,Kr=qt.height;Ze.fillStyle="white",Ze.fillRect(0,0,Cr,Kr),Ze.drawImage(pe,0,Er*rt,Cr,Kr,0,0,Cr,Kr),Er&&this.prop.pdf.addPage();var _r=qt.toDataURL("image/"+qe.image.type,qe.image.quality);this.prop.pdf.addImage(_r,qe.image.type,qe.margin[1],qe.margin[0],this.prop.pageSize.inner.width,lr)}})},ve.prototype.output=function(N,X,pe){return pe=pe||"pdf",pe.toLowerCase()==="img"||pe.toLowerCase()==="image"?this.outputImg(N,X):this.outputPdf(N,X)},ve.prototype.outputPdf=function(N,X){var pe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(pe).then(function(){return this.prop.pdf.output(N,X)})},ve.prototype.outputImg=function(N,X){var pe=[function(){return this.prop.img||this.toImg()}];return this.thenList(pe).then(function(){switch(N){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 "'+N+'" is not supported.'}})},ve.prototype.save=function(N){var X=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(X).set(N?{filename:N}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},ve.prototype.set=function(N){if((0,I.objType)(N)!=="object")return this;var X=Object.keys(N||{}).map(function(pe){switch(pe){case"margin":return this.setMargin.bind(this,N.margin);case"jsPDF":return function(){return this.opt.jsPDF=N.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,N.pageSize);default:return pe in ve.template.prop?function(){this.prop[pe]=N[pe]}:function(){this.opt[pe]=N[pe]}}},this);return this.then(function(){return this.thenList(X)})},ve.prototype.get=function(N,X){return this.then(function(){var qe=N in ve.template.prop?this.prop[N]:this.opt[N];return X?X(qe):qe})},ve.prototype.setMargin=function(N){return this.then(function(){switch((0,I.objType)(N)){case"number":N=[N,N,N,N];case"array":if(N.length===2&&(N=[N[0],N[1],N[0],N[1]]),N.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=N}).then(this.setPageSize)},ve.prototype.setPageSize=function(N){return this.then(function(){N=N||xe.jsPDF.getPageSize(this.opt.jsPDF),N.hasOwnProperty("inner")||(N.inner={width:N.width-this.opt.margin[1]-this.opt.margin[3],height:N.height-this.opt.margin[0]-this.opt.margin[2]},N.inner.px={width:(0,I.toPx)(N.inner.width,N.k),height:(0,I.toPx)(N.inner.height,N.k)},N.inner.ratio=N.inner.height/N.inner.width),this.prop.pageSize=N})},ve.prototype.setProgress=function(N,X,pe,qe){return N!=null&&(this.progress.val=N),X!=null&&(this.progress.state=X),pe!=null&&(this.progress.n=pe),qe!=null&&(this.progress.stack=qe),this.progress.ratio=this.progress.val/this.progress.state,this},ve.prototype.updateProgress=function(N,X,pe,qe){return this.setProgress(N?this.progress.val+N:null,X||null,pe?this.progress.n+pe:null,qe?this.progress.stack.concat(qe):null)},ve.prototype.then=function(N,X){var pe=this;return this.thenCore(N,X,function(at,rt){return pe.updateProgress(null,null,1,[at]),he.prototype.then.call(this,function(lr){return pe.updateProgress(null,at),lr}).then(at,rt).then(function(lr){return pe.updateProgress(1),lr})})},ve.prototype.thenCore=function(N,X,pe){pe=pe||he.prototype.then;var qe=this;N&&(N=N.bind(qe)),X&&(X=X.bind(qe));var at=he.toString().indexOf("[native code]")!==-1&&he.name==="Promise",rt=at?qe:ve.convert(Object.assign({},qe),he.prototype),Rt=pe.call(rt,N,X);return ve.convert(Rt,qe.__proto__)},ve.prototype.thenExternal=function(N,X){return he.prototype.then.call(this,N,X)},ve.prototype.thenList=function(N){var X=this;return N.forEach(function(qe){X=X.thenCore(qe)}),X},ve.prototype.catch=function(_){_&&(_=_.bind(this));var N=he.prototype.catch.call(this,_);return ve.convert(N,this)},ve.prototype.catchExternal=function(N){return he.prototype.catch.call(this,N)},ve.prototype.error=function(N){return this.then(function(){throw new Error(N)})},ve.prototype.using=ve.prototype.set,ve.prototype.saveAs=ve.prototype.save,ve.prototype.export=ve.prototype.output,ve.prototype.run=ve.prototype.then,n.default=ve},"./node_modules/core-js/internals/a-function.js":function(T){T.exports=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n}},"./node_modules/core-js/internals/a-possible-prototype.js":function(T,n,o){var L=o("./node_modules/core-js/internals/is-object.js");T.exports=function(p){if(!L(p)&&p!==null)throw TypeError("Can't set "+String(p)+" as a prototype");return p}},"./node_modules/core-js/internals/add-to-unscopables.js":function(T,n,o){var L=o("./node_modules/core-js/internals/well-known-symbol.js"),p=o("./node_modules/core-js/internals/object-create.js"),a=o("./node_modules/core-js/internals/object-define-property.js"),A=L("unscopables"),m=Array.prototype;m[A]==null&&a.f(m,A,{configurable:!0,value:p(null)}),T.exports=function(S){m[A][S]=!0}},"./node_modules/core-js/internals/an-object.js":function(T,n,o){var L=o("./node_modules/core-js/internals/is-object.js");T.exports=function(p){if(!L(p))throw TypeError(String(p)+" is not an object");return p}},"./node_modules/core-js/internals/array-for-each.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/array-iteration.js").forEach,p=o("./node_modules/core-js/internals/array-method-is-strict.js"),a=p("forEach");T.exports=a?[].forEach:function(m){return L(this,m,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(T,n,o){var L=o("./node_modules/core-js/internals/to-indexed-object.js"),p=o("./node_modules/core-js/internals/to-length.js"),a=o("./node_modules/core-js/internals/to-absolute-index.js"),A=function(m){return function(S,K,F){var H=L(S),V=p(H.length),ee=a(F,V),B;if(m&&K!=K){for(;V>ee;)if(B=H[ee++],B!=B)return!0}else for(;V>ee;ee++)if((m||ee in H)&&H[ee]===K)return m||ee||0;return!m&&-1}};T.exports={includes:A(!0),indexOf:A(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(T,n,o){var L=o("./node_modules/core-js/internals/function-bind-context.js"),p=o("./node_modules/core-js/internals/indexed-object.js"),a=o("./node_modules/core-js/internals/to-object.js"),A=o("./node_modules/core-js/internals/to-length.js"),m=o("./node_modules/core-js/internals/array-species-create.js"),S=[].push,K=function(F){var H=F==1,V=F==2,ee=F==3,B=F==4,G=F==6,ce=F==7,q=F==5||G;return function(be,xe,Le,ae){for(var me=a(be),I=p(me),_e=L(xe,Le,3),oe=A(I.length),he=0,ve=ae||m,_=H?ve(be,oe):V||ce?ve(be,0):void 0,N,X;oe>he;he++)if((q||he in I)&&(N=I[he],X=_e(N,he,me),F))if(H)_[he]=X;else if(X)switch(F){case 3:return!0;case 5:return N;case 6:return he;case 2:S.call(_,N)}else switch(F){case 4:return!1;case 7:S.call(_,N)}return G?-1:ee||B?B:_}};T.exports={forEach:K(0),map:K(1),filter:K(2),some:K(3),every:K(4),find:K(5),findIndex:K(6),filterReject:K(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(T,n,o){var L=o("./node_modules/core-js/internals/fails.js"),p=o("./node_modules/core-js/internals/well-known-symbol.js"),a=o("./node_modules/core-js/internals/engine-v8-version.js"),A=p("species");T.exports=function(m){return a>=51||!L(function(){var S=[],K=S.constructor={};return K[A]=function(){return{foo:1}},S[m](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/fails.js");T.exports=function(p,a){var A=[][p];return!!A&&L(function(){A.call(null,a||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(T,n,o){var L=o("./node_modules/core-js/internals/is-object.js"),p=o("./node_modules/core-js/internals/is-array.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),A=a("species");T.exports=function(m){var S;return p(m)&&(S=m.constructor,typeof S=="function"&&(S===Array||p(S.prototype))?S=void 0:L(S)&&(S=S[A],S===null&&(S=void 0))),S===void 0?Array:S}},"./node_modules/core-js/internals/array-species-create.js":function(T,n,o){var L=o("./node_modules/core-js/internals/array-species-constructor.js");T.exports=function(p,a){return new(L(p))(a===0?0:a)}},"./node_modules/core-js/internals/classof-raw.js":function(T){var n={}.toString;T.exports=function(o){return n.call(o).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(T,n,o){var L=o("./node_modules/core-js/internals/to-string-tag-support.js"),p=o("./node_modules/core-js/internals/classof-raw.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),A=a("toStringTag"),m=p(function(){return arguments}())=="Arguments",S=function(K,F){try{return K[F]}catch(H){}};T.exports=L?p:function(K){var F,H,V;return K===void 0?"Undefined":K===null?"Null":typeof(H=S(F=Object(K),A))=="string"?H:m?p(F):(V=p(F))=="Object"&&typeof F.callee=="function"?"Arguments":V}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(T,n,o){var L=o("./node_modules/core-js/internals/has.js"),p=o("./node_modules/core-js/internals/own-keys.js"),a=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),A=o("./node_modules/core-js/internals/object-define-property.js");T.exports=function(m,S){for(var K=p(S),F=A.f,H=a.f,V=0;V<K.length;V++){var ee=K[V];L(m,ee)||F(m,ee,H(S,ee))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(T,n,o){var L=o("./node_modules/core-js/internals/fails.js");T.exports=!L(function(){function p(){}return p.prototype.constructor=null,Object.getPrototypeOf(new p)!==p.prototype})},"./node_modules/core-js/internals/create-html.js":function(T,n,o){var L=o("./node_modules/core-js/internals/require-object-coercible.js"),p=o("./node_modules/core-js/internals/to-string.js"),a=/"/g;T.exports=function(A,m,S,K){var F=p(L(A)),H="<"+m;return S!==""&&(H+=" "+S+'="'+p(K).replace(a,""")+'"'),H+">"+F+"</"+m+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,p=o("./node_modules/core-js/internals/object-create.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),A=o("./node_modules/core-js/internals/set-to-string-tag.js"),m=o("./node_modules/core-js/internals/iterators.js"),S=function(){return this};T.exports=function(K,F,H){var V=F+" Iterator";return K.prototype=p(L,{next:a(1,H)}),A(K,V,!1,!0),m[V]=S,K}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(T,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js");T.exports=L?function(A,m,S){return p.f(A,m,a(1,S))}:function(A,m,S){return A[m]=S,A}},"./node_modules/core-js/internals/create-property-descriptor.js":function(T){T.exports=function(n,o){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:o}}},"./node_modules/core-js/internals/create-property.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/to-property-key.js"),p=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js");T.exports=function(A,m,S){var K=L(m);K in A?p.f(A,K,a(0,S)):A[K]=S}},"./node_modules/core-js/internals/define-iterator.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/create-iterator-constructor.js"),a=o("./node_modules/core-js/internals/object-get-prototype-of.js"),A=o("./node_modules/core-js/internals/object-set-prototype-of.js"),m=o("./node_modules/core-js/internals/set-to-string-tag.js"),S=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),K=o("./node_modules/core-js/internals/redefine.js"),F=o("./node_modules/core-js/internals/well-known-symbol.js"),H=o("./node_modules/core-js/internals/is-pure.js"),V=o("./node_modules/core-js/internals/iterators.js"),ee=o("./node_modules/core-js/internals/iterators-core.js"),B=ee.IteratorPrototype,G=ee.BUGGY_SAFARI_ITERATORS,ce=F("iterator"),q="keys",be="values",xe="entries",Le=function(){return this};T.exports=function(ae,me,I,_e,oe,he,ve){p(I,me,_e);var _=function(Ze){if(Ze===oe&&at)return at;if(!G&&Ze in pe)return pe[Ze];switch(Ze){case q:return function(){return new I(this,Ze)};case be:return function(){return new I(this,Ze)};case xe:return function(){return new I(this,Ze)}}return function(){return new I(this)}},N=me+" Iterator",X=!1,pe=ae.prototype,qe=pe[ce]||pe["@@iterator"]||oe&&pe[oe],at=!G&&qe||_(oe),rt=me=="Array"&&pe.entries||qe,Rt,lr,qt;if(rt&&(Rt=a(rt.call(new ae)),B!==Object.prototype&&Rt.next&&(!H&&a(Rt)!==B&&(A?A(Rt,B):typeof Rt[ce]!="function"&&S(Rt,ce,Le)),m(Rt,N,!0,!0),H&&(V[N]=Le))),oe==be&&qe&&qe.name!==be&&(X=!0,at=function(){return qe.call(this)}),(!H||ve)&&pe[ce]!==at&&S(pe,ce,at),V[me]=at,oe)if(lr={values:_(be),keys:he?at:_(q),entries:_(xe)},ve)for(qt in lr)(G||X||!(qt in pe))&&K(pe,qt,lr[qt]);else L({target:me,proto:!0,forced:G||X},lr);return lr}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(T,n,o){var L=o("./node_modules/core-js/internals/path.js"),p=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),A=o("./node_modules/core-js/internals/object-define-property.js").f;T.exports=function(m){var S=L.Symbol||(L.Symbol={});p(S,m)||A(S,m,{value:a.f(m)})}},"./node_modules/core-js/internals/descriptors.js":function(T,n,o){var L=o("./node_modules/core-js/internals/fails.js");T.exports=!L(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/is-object.js"),a=L.document,A=p(a)&&p(a.createElement);T.exports=function(m){return A?a.createElement(m):{}}},"./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,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js");T.exports=L("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/engine-user-agent.js"),a=L.process,A=L.Deno,m=a&&a.versions||A&&A.version,S=m&&m.v8,K,F;S?(K=S.split("."),F=K[0]<4?1:K[0]+K[1]):p&&(K=p.match(/Edge\/(\d+)/),(!K||K[1]>=74)&&(K=p.match(/Chrome\/(\d+)/),K&&(F=K[1]))),T.exports=F&&+F},"./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,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,a=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),A=o("./node_modules/core-js/internals/redefine.js"),m=o("./node_modules/core-js/internals/set-global.js"),S=o("./node_modules/core-js/internals/copy-constructor-properties.js"),K=o("./node_modules/core-js/internals/is-forced.js");T.exports=function(F,H){var V=F.target,ee=F.global,B=F.stat,G,ce,q,be,xe,Le;if(ee?ce=L:B?ce=L[V]||m(V,{}):ce=(L[V]||{}).prototype,ce)for(q in H){if(xe=H[q],F.noTargetGet?(Le=p(ce,q),be=Le&&Le.value):be=ce[q],G=K(ee?q:V+(B?".":"#")+q,F.forced),!G&&be!==void 0){if(typeof xe==typeof be)continue;S(xe,be)}(F.sham||be&&be.sham)&&a(xe,"sham",!0),A(ce,q,xe,F)}}},"./node_modules/core-js/internals/fails.js":function(T){T.exports=function(n){try{return!!n()}catch(o){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(T,n,o){var L=o("./node_modules/core-js/internals/a-function.js");T.exports=function(p,a,A){if(L(p),a===void 0)return p;switch(A){case 0:return function(){return p.call(a)};case 1:return function(m){return p.call(a,m)};case 2:return function(m,S){return p.call(a,m,S)};case 3:return function(m,S,K){return p.call(a,m,S,K)}}return function(){return p.apply(a,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=function(a){return typeof a=="function"?a:void 0};T.exports=function(a,A){return arguments.length<2?p(L[a]):L[a]&&L[a][A]}},"./node_modules/core-js/internals/global.js":function(T){var n=function(o){return o&&o.Math==Math&&o};T.exports=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof g.g=="object"&&g.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(T,n,o){var L=o("./node_modules/core-js/internals/to-object.js"),p={}.hasOwnProperty;T.exports=Object.hasOwn||function(A,m){return p.call(L(A),m)}},"./node_modules/core-js/internals/hidden-keys.js":function(T){T.exports={}},"./node_modules/core-js/internals/html.js":function(T,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js");T.exports=L("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(T,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/fails.js"),a=o("./node_modules/core-js/internals/document-create-element.js");T.exports=!L&&!p(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(T,n,o){var L=o("./node_modules/core-js/internals/fails.js"),p=o("./node_modules/core-js/internals/classof-raw.js"),a="".split;T.exports=L(function(){return!Object("z").propertyIsEnumerable(0)})?function(A){return p(A)=="String"?a.call(A,""):Object(A)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(T,n,o){var L=o("./node_modules/core-js/internals/is-object.js"),p=o("./node_modules/core-js/internals/object-set-prototype-of.js");T.exports=function(a,A,m){var S,K;return p&&typeof(S=A.constructor)=="function"&&S!==m&&L(K=S.prototype)&&K!==m.prototype&&p(a,K),a}},"./node_modules/core-js/internals/inspect-source.js":function(T,n,o){var L=o("./node_modules/core-js/internals/shared-store.js"),p=Function.toString;typeof L.inspectSource!="function"&&(L.inspectSource=function(a){return p.call(a)}),T.exports=L.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(T,n,o){var L=o("./node_modules/core-js/internals/native-weak-map.js"),p=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/is-object.js"),A=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),m=o("./node_modules/core-js/internals/has.js"),S=o("./node_modules/core-js/internals/shared-store.js"),K=o("./node_modules/core-js/internals/shared-key.js"),F=o("./node_modules/core-js/internals/hidden-keys.js"),H="Object already initialized",V=p.WeakMap,ee,B,G,ce=function(I){return G(I)?B(I):ee(I,{})},q=function(I){return function(_e){var oe;if(!a(_e)||(oe=B(_e)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return oe}};if(L||S.state){var be=S.state||(S.state=new V),xe=be.get,Le=be.has,ae=be.set;ee=function(I,_e){if(Le.call(be,I))throw new TypeError(H);return _e.facade=I,ae.call(be,I,_e),_e},B=function(I){return xe.call(be,I)||{}},G=function(I){return Le.call(be,I)}}else{var me=K("state");F[me]=!0,ee=function(I,_e){if(m(I,me))throw new TypeError(H);return _e.facade=I,A(I,me,_e),_e},B=function(I){return m(I,me)?I[me]:{}},G=function(I){return m(I,me)}}T.exports={set:ee,get:B,has:G,enforce:ce,getterFor:q}},"./node_modules/core-js/internals/is-array.js":function(T,n,o){var L=o("./node_modules/core-js/internals/classof-raw.js");T.exports=Array.isArray||function(a){return L(a)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(T,n,o){var L=o("./node_modules/core-js/internals/fails.js"),p=/#|\.prototype\./,a=function(F,H){var V=m[A(F)];return V==K?!0:V==S?!1:typeof H=="function"?L(H):!!H},A=a.normalize=function(F){return String(F).replace(p,".").toLowerCase()},m=a.data={},S=a.NATIVE="N",K=a.POLYFILL="P";T.exports=a},"./node_modules/core-js/internals/is-object.js":function(T){T.exports=function(n){return typeof n=="object"?n!==null:typeof n=="function"}},"./node_modules/core-js/internals/is-pure.js":function(T){T.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(T,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js"),p=o("./node_modules/core-js/internals/use-symbol-as-uid.js");T.exports=p?function(a){return typeof a=="symbol"}:function(a){var A=L("Symbol");return typeof A=="function"&&Object(a)instanceof A}},"./node_modules/core-js/internals/iterators-core.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/fails.js"),p=o("./node_modules/core-js/internals/object-get-prototype-of.js"),a=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),A=o("./node_modules/core-js/internals/has.js"),m=o("./node_modules/core-js/internals/well-known-symbol.js"),S=o("./node_modules/core-js/internals/is-pure.js"),K=m("iterator"),F=!1,H=function(){return this},V,ee,B;[].keys&&(B=[].keys(),"next"in B?(ee=p(p(B)),ee!==Object.prototype&&(V=ee)):F=!0);var G=V==null||L(function(){var ce={};return V[K].call(ce)!==ce});G&&(V={}),(!S||G)&&!A(V,K)&&a(V,K,H),T.exports={IteratorPrototype:V,BUGGY_SAFARI_ITERATORS:F}},"./node_modules/core-js/internals/iterators.js":function(T){T.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(T,n,o){var L=o("./node_modules/core-js/internals/engine-v8-version.js"),p=o("./node_modules/core-js/internals/fails.js");T.exports=!!Object.getOwnPropertySymbols&&!p(function(){var a=Symbol();return!String(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&L&&L<41})},"./node_modules/core-js/internals/native-weak-map.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/inspect-source.js"),a=L.WeakMap;T.exports=typeof a=="function"&&/native code/.test(p(a))},"./node_modules/core-js/internals/object-assign.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/fails.js"),a=o("./node_modules/core-js/internals/object-keys.js"),A=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),m=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),S=o("./node_modules/core-js/internals/to-object.js"),K=o("./node_modules/core-js/internals/indexed-object.js"),F=Object.assign,H=Object.defineProperty;T.exports=!F||p(function(){if(L&&F({b:1},F(H({},"a",{enumerable:!0,get:function(){H(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var V={},ee={},B=Symbol(),G="abcdefghijklmnopqrst";return V[B]=7,G.split("").forEach(function(ce){ee[ce]=ce}),F({},V)[B]!=7||a(F({},ee)).join("")!=G})?function(ee,B){for(var G=S(ee),ce=arguments.length,q=1,be=A.f,xe=m.f;ce>q;)for(var Le=K(arguments[q++]),ae=be?a(Le).concat(be(Le)):a(Le),me=ae.length,I=0,_e;me>I;)_e=ae[I++],(!L||xe.call(Le,_e))&&(G[_e]=Le[_e]);return G}:F},"./node_modules/core-js/internals/object-create.js":function(T,n,o){var L=o("./node_modules/core-js/internals/an-object.js"),p=o("./node_modules/core-js/internals/object-define-properties.js"),a=o("./node_modules/core-js/internals/enum-bug-keys.js"),A=o("./node_modules/core-js/internals/hidden-keys.js"),m=o("./node_modules/core-js/internals/html.js"),S=o("./node_modules/core-js/internals/document-create-element.js"),K=o("./node_modules/core-js/internals/shared-key.js"),F=">",H="<",V="prototype",ee="script",B=K("IE_PROTO"),G=function(){},ce=function(ae){return H+ee+F+ae+H+"/"+ee+F},q=function(ae){ae.write(ce("")),ae.close();var me=ae.parentWindow.Object;return ae=null,me},be=function(){var ae=S("iframe"),me="java"+ee+":",I;if(ae.style)return ae.style.display="none",m.appendChild(ae),ae.src=String(me),I=ae.contentWindow.document,I.open(),I.write(ce("document.F=Object")),I.close(),I.F},xe,Le=function(){try{xe=new ActiveXObject("htmlfile")}catch(me){}Le=document.domain&&xe?q(xe):be()||q(xe);for(var ae=a.length;ae--;)delete Le[V][a[ae]];return Le()};A[B]=!0,T.exports=Object.create||function(me,I){var _e;return me!==null?(G[V]=L(me),_e=new G,G[V]=null,_e[B]=me):_e=Le(),I===void 0?_e:p(_e,I)}},"./node_modules/core-js/internals/object-define-properties.js":function(T,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/an-object.js"),A=o("./node_modules/core-js/internals/object-keys.js");T.exports=L?Object.defineProperties:function(S,K){a(S);for(var F=A(K),H=F.length,V=0,ee;H>V;)p.f(S,ee=F[V++],K[ee]);return S}},"./node_modules/core-js/internals/object-define-property.js":function(T,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/ie8-dom-define.js"),a=o("./node_modules/core-js/internals/an-object.js"),A=o("./node_modules/core-js/internals/to-property-key.js"),m=Object.defineProperty;n.f=L?m:function(K,F,H){if(a(K),F=A(F),a(H),p)try{return m(K,F,H)}catch(V){}if("get"in H||"set"in H)throw TypeError("Accessors not supported");return"value"in H&&(K[F]=H.value),K}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(T,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),a=o("./node_modules/core-js/internals/create-property-descriptor.js"),A=o("./node_modules/core-js/internals/to-indexed-object.js"),m=o("./node_modules/core-js/internals/to-property-key.js"),S=o("./node_modules/core-js/internals/has.js"),K=o("./node_modules/core-js/internals/ie8-dom-define.js"),F=Object.getOwnPropertyDescriptor;n.f=L?F:function(V,ee){if(V=A(V),ee=m(ee),K)try{return F(V,ee)}catch(B){}if(S(V,ee))return a(!p.f.call(V,ee),V[ee])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(T,n,o){var L=o("./node_modules/core-js/internals/to-indexed-object.js"),p=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,a={}.toString,A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(S){try{return p(S)}catch(K){return A.slice()}};T.exports.f=function(K){return A&&a.call(K)=="[object Window]"?m(K):p(L(K))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(T,n,o){var L=o("./node_modules/core-js/internals/object-keys-internal.js"),p=o("./node_modules/core-js/internals/enum-bug-keys.js"),a=p.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(m){return L(m,a)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(T,n){n.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(T,n,o){var L=o("./node_modules/core-js/internals/has.js"),p=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/shared-key.js"),A=o("./node_modules/core-js/internals/correct-prototype-getter.js"),m=a("IE_PROTO"),S=Object.prototype;T.exports=A?Object.getPrototypeOf:function(K){return K=p(K),L(K,m)?K[m]:typeof K.constructor=="function"&&K instanceof K.constructor?K.constructor.prototype:K instanceof Object?S:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(T,n,o){var L=o("./node_modules/core-js/internals/has.js"),p=o("./node_modules/core-js/internals/to-indexed-object.js"),a=o("./node_modules/core-js/internals/array-includes.js").indexOf,A=o("./node_modules/core-js/internals/hidden-keys.js");T.exports=function(m,S){var K=p(m),F=0,H=[],V;for(V in K)!L(A,V)&&L(K,V)&&H.push(V);for(;S.length>F;)L(K,V=S[F++])&&(~a(H,V)||H.push(V));return H}},"./node_modules/core-js/internals/object-keys.js":function(T,n,o){var L=o("./node_modules/core-js/internals/object-keys-internal.js"),p=o("./node_modules/core-js/internals/enum-bug-keys.js");T.exports=Object.keys||function(A){return L(A,p)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(T,n){"use strict";var o={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,p=L&&!o.call({1:2},1);n.f=p?function(A){var m=L(this,A);return!!m&&m.enumerable}:o},"./node_modules/core-js/internals/object-set-prototype-of.js":function(T,n,o){var L=o("./node_modules/core-js/internals/an-object.js"),p=o("./node_modules/core-js/internals/a-possible-prototype.js");T.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,A={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(A,[]),a=A instanceof Array}catch(S){}return function(K,F){return L(K),p(F),a?m.call(K,F):K.__proto__=F,K}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/to-string-tag-support.js"),p=o("./node_modules/core-js/internals/classof.js");T.exports=L?{}.toString:function(){return"[object "+p(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(T,n,o){var L=o("./node_modules/core-js/internals/is-object.js");T.exports=function(p,a){var A,m;if(a==="string"&&typeof(A=p.toString)=="function"&&!L(m=A.call(p))||typeof(A=p.valueOf)=="function"&&!L(m=A.call(p))||a!=="string"&&typeof(A=p.toString)=="function"&&!L(m=A.call(p)))return m;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(T,n,o){var L=o("./node_modules/core-js/internals/get-built-in.js"),p=o("./node_modules/core-js/internals/object-get-own-property-names.js"),a=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),A=o("./node_modules/core-js/internals/an-object.js");T.exports=L("Reflect","ownKeys")||function(S){var K=p.f(A(S)),F=a.f;return F?K.concat(F(S)):K}},"./node_modules/core-js/internals/path.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js");T.exports=L},"./node_modules/core-js/internals/redefine.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=o("./node_modules/core-js/internals/has.js"),A=o("./node_modules/core-js/internals/set-global.js"),m=o("./node_modules/core-js/internals/inspect-source.js"),S=o("./node_modules/core-js/internals/internal-state.js"),K=S.get,F=S.enforce,H=String(String).split("String");(T.exports=function(V,ee,B,G){var ce=G?!!G.unsafe:!1,q=G?!!G.enumerable:!1,be=G?!!G.noTargetGet:!1,xe;if(typeof B=="function"&&(typeof ee=="string"&&!a(B,"name")&&p(B,"name",ee),xe=F(B),xe.source||(xe.source=H.join(typeof ee=="string"?ee:""))),V===L){q?V[ee]=B:A(ee,B);return}else ce?!be&&V[ee]&&(q=!0):delete V[ee];q?V[ee]=B:p(V,ee,B)})(Function.prototype,"toString",function(){return typeof this=="function"&&K(this).source||m(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/an-object.js");T.exports=function(){var p=L(this),a="";return p.global&&(a+="g"),p.ignoreCase&&(a+="i"),p.multiline&&(a+="m"),p.dotAll&&(a+="s"),p.unicode&&(a+="u"),p.sticky&&(a+="y"),a}},"./node_modules/core-js/internals/require-object-coercible.js":function(T){T.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},"./node_modules/core-js/internals/set-global.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js");T.exports=function(p,a){try{Object.defineProperty(L,p,{value:a,configurable:!0,writable:!0})}catch(A){L[p]=a}return a}},"./node_modules/core-js/internals/set-to-string-tag.js":function(T,n,o){var L=o("./node_modules/core-js/internals/object-define-property.js").f,p=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/well-known-symbol.js"),A=a("toStringTag");T.exports=function(m,S,K){m&&!p(m=K?m:m.prototype,A)&&L(m,A,{configurable:!0,value:S})}},"./node_modules/core-js/internals/shared-key.js":function(T,n,o){var L=o("./node_modules/core-js/internals/shared.js"),p=o("./node_modules/core-js/internals/uid.js"),a=L("keys");T.exports=function(A){return a[A]||(a[A]=p(A))}},"./node_modules/core-js/internals/shared-store.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/set-global.js"),a="__core-js_shared__",A=L[a]||p(a,{});T.exports=A},"./node_modules/core-js/internals/shared.js":function(T,n,o){var L=o("./node_modules/core-js/internals/is-pure.js"),p=o("./node_modules/core-js/internals/shared-store.js");(T.exports=function(a,A){return p[a]||(p[a]=A!==void 0?A:{})})("versions",[]).push({version:"3.16.0",mode:L?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(T,n,o){var L=o("./node_modules/core-js/internals/fails.js");T.exports=function(p){return L(function(){var a=""[p]('"');return a!==a.toLowerCase()||a.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(T,n,o){var L=o("./node_modules/core-js/internals/to-integer.js"),p=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/require-object-coercible.js"),A=function(m){return function(S,K){var F=p(a(S)),H=L(K),V=F.length,ee,B;return H<0||H>=V?m?"":void 0:(ee=F.charCodeAt(H),ee<55296||ee>56319||H+1===V||(B=F.charCodeAt(H+1))<56320||B>57343?m?F.charAt(H):ee:m?F.slice(H,H+2):(ee-55296<<10)+(B-56320)+65536)}};T.exports={codeAt:A(!1),charAt:A(!0)}},"./node_modules/core-js/internals/string-trim.js":function(T,n,o){var L=o("./node_modules/core-js/internals/require-object-coercible.js"),p=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/whitespaces.js"),A="["+a+"]",m=RegExp("^"+A+A+"*"),S=RegExp(A+A+"*$"),K=function(F){return function(H){var V=p(L(H));return F&1&&(V=V.replace(m,"")),F&2&&(V=V.replace(S,"")),V}};T.exports={start:K(1),end:K(2),trim:K(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(T,n,o){var L=o("./node_modules/core-js/internals/to-integer.js"),p=Math.max,a=Math.min;T.exports=function(A,m){var S=L(A);return S<0?p(S+m,0):a(S,m)}},"./node_modules/core-js/internals/to-indexed-object.js":function(T,n,o){var L=o("./node_modules/core-js/internals/indexed-object.js"),p=o("./node_modules/core-js/internals/require-object-coercible.js");T.exports=function(a){return L(p(a))}},"./node_modules/core-js/internals/to-integer.js":function(T){var n=Math.ceil,o=Math.floor;T.exports=function(L){return isNaN(L=+L)?0:(L>0?o:n)(L)}},"./node_modules/core-js/internals/to-length.js":function(T,n,o){var L=o("./node_modules/core-js/internals/to-integer.js"),p=Math.min;T.exports=function(a){return a>0?p(L(a),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(T,n,o){var L=o("./node_modules/core-js/internals/require-object-coercible.js");T.exports=function(p){return Object(L(p))}},"./node_modules/core-js/internals/to-primitive.js":function(T,n,o){var L=o("./node_modules/core-js/internals/is-object.js"),p=o("./node_modules/core-js/internals/is-symbol.js"),a=o("./node_modules/core-js/internals/ordinary-to-primitive.js"),A=o("./node_modules/core-js/internals/well-known-symbol.js"),m=A("toPrimitive");T.exports=function(S,K){if(!L(S)||p(S))return S;var F=S[m],H;if(F!==void 0){if(K===void 0&&(K="default"),H=F.call(S,K),!L(H)||p(H))return H;throw TypeError("Can't convert object to primitive value")}return K===void 0&&(K="number"),a(S,K)}},"./node_modules/core-js/internals/to-property-key.js":function(T,n,o){var L=o("./node_modules/core-js/internals/to-primitive.js"),p=o("./node_modules/core-js/internals/is-symbol.js");T.exports=function(a){var A=L(a,"string");return p(A)?A:String(A)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(T,n,o){var L=o("./node_modules/core-js/internals/well-known-symbol.js"),p=L("toStringTag"),a={};a[p]="z",T.exports=String(a)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(T,n,o){var L=o("./node_modules/core-js/internals/is-symbol.js");T.exports=function(p){if(L(p))throw TypeError("Cannot convert a Symbol value to a string");return String(p)}},"./node_modules/core-js/internals/uid.js":function(T){var n=0,o=Math.random();T.exports=function(L){return"Symbol("+String(L===void 0?"":L)+")_"+(++n+o).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(T,n,o){var L=o("./node_modules/core-js/internals/native-symbol.js");T.exports=L&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(T,n,o){var L=o("./node_modules/core-js/internals/well-known-symbol.js");n.f=L},"./node_modules/core-js/internals/well-known-symbol.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/has.js"),A=o("./node_modules/core-js/internals/uid.js"),m=o("./node_modules/core-js/internals/native-symbol.js"),S=o("./node_modules/core-js/internals/use-symbol-as-uid.js"),K=p("wks"),F=L.Symbol,H=S?F:F&&F.withoutSetter||A;T.exports=function(V){return(!a(K,V)||!(m||typeof K[V]=="string"))&&(m&&a(F,V)?K[V]=F[V]:K[V]=H("Symbol."+V)),K[V]}},"./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,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/fails.js"),a=o("./node_modules/core-js/internals/is-array.js"),A=o("./node_modules/core-js/internals/is-object.js"),m=o("./node_modules/core-js/internals/to-object.js"),S=o("./node_modules/core-js/internals/to-length.js"),K=o("./node_modules/core-js/internals/create-property.js"),F=o("./node_modules/core-js/internals/array-species-create.js"),H=o("./node_modules/core-js/internals/array-method-has-species-support.js"),V=o("./node_modules/core-js/internals/well-known-symbol.js"),ee=o("./node_modules/core-js/internals/engine-v8-version.js"),B=V("isConcatSpreadable"),G=9007199254740991,ce="Maximum allowed index exceeded",q=ee>=51||!p(function(){var ae=[];return ae[B]=!1,ae.concat()[0]!==ae}),be=H("concat"),xe=function(ae){if(!A(ae))return!1;var me=ae[B];return me!==void 0?!!me:a(ae)},Le=!q||!be;L({target:"Array",proto:!0,forced:Le},{concat:function(me){var I=m(this),_e=F(I,0),oe=0,he,ve,_,N,X;for(he=-1,_=arguments.length;he<_;he++)if(X=he===-1?I:arguments[he],xe(X)){if(N=S(X.length),oe+N>G)throw TypeError(ce);for(ve=0;ve<N;ve++,oe++)ve in X&&K(_e,oe,X[ve])}else{if(oe>=G)throw TypeError(ce);K(_e,oe++,X)}return _e.length=oe,_e}})},"./node_modules/core-js/modules/es.array.iterator.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/to-indexed-object.js"),p=o("./node_modules/core-js/internals/add-to-unscopables.js"),a=o("./node_modules/core-js/internals/iterators.js"),A=o("./node_modules/core-js/internals/internal-state.js"),m=o("./node_modules/core-js/internals/define-iterator.js"),S="Array Iterator",K=A.set,F=A.getterFor(S);T.exports=m(Array,"Array",function(H,V){K(this,{type:S,target:L(H),index:0,kind:V})},function(){var H=F(this),V=H.target,ee=H.kind,B=H.index++;return!V||B>=V.length?(H.target=void 0,{value:void 0,done:!0}):ee=="keys"?{value:B,done:!1}:ee=="values"?{value:V[B],done:!1}:{value:[B,V[B]],done:!1}},"values"),a.Arguments=a.Array,p("keys"),p("values"),p("entries")},"./node_modules/core-js/modules/es.array.join.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/indexed-object.js"),a=o("./node_modules/core-js/internals/to-indexed-object.js"),A=o("./node_modules/core-js/internals/array-method-is-strict.js"),m=[].join,S=p!=Object,K=A("join",",");L({target:"Array",proto:!0,forced:S||!K},{join:function(H){return m.call(a(this),H===void 0?",":H)}})},"./node_modules/core-js/modules/es.array.map.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/array-iteration.js").map,a=o("./node_modules/core-js/internals/array-method-has-species-support.js"),A=a("map");L({target:"Array",proto:!0,forced:!A},{map:function(S){return p(this,S,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/is-object.js"),a=o("./node_modules/core-js/internals/is-array.js"),A=o("./node_modules/core-js/internals/to-absolute-index.js"),m=o("./node_modules/core-js/internals/to-length.js"),S=o("./node_modules/core-js/internals/to-indexed-object.js"),K=o("./node_modules/core-js/internals/create-property.js"),F=o("./node_modules/core-js/internals/well-known-symbol.js"),H=o("./node_modules/core-js/internals/array-method-has-species-support.js"),V=H("slice"),ee=F("species"),B=[].slice,G=Math.max;L({target:"Array",proto:!0,forced:!V},{slice:function(q,be){var xe=S(this),Le=m(xe.length),ae=A(q,Le),me=A(be===void 0?Le:be,Le),I,_e,oe;if(a(xe)&&(I=xe.constructor,typeof I=="function"&&(I===Array||a(I.prototype))?I=void 0:p(I)&&(I=I[ee],I===null&&(I=void 0)),I===Array||I===void 0))return B.call(xe,ae,me);for(_e=new(I===void 0?Array:I)(G(me-ae,0)),oe=0;ae<me;ae++,oe++)ae in xe&&K(_e,oe,xe[ae]);return _e.length=oe,_e}})},"./node_modules/core-js/modules/es.function.name.js":function(T,n,o){var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/object-define-property.js").f,a=Function.prototype,A=a.toString,m=/^\s*function ([^ (]*)/,S="name";L&&!(S in a)&&p(a,S,{configurable:!0,get:function(){try{return A.call(this).match(m)[1]}catch(K){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/descriptors.js"),p=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/is-forced.js"),A=o("./node_modules/core-js/internals/redefine.js"),m=o("./node_modules/core-js/internals/has.js"),S=o("./node_modules/core-js/internals/classof-raw.js"),K=o("./node_modules/core-js/internals/inherit-if-required.js"),F=o("./node_modules/core-js/internals/is-symbol.js"),H=o("./node_modules/core-js/internals/to-primitive.js"),V=o("./node_modules/core-js/internals/fails.js"),ee=o("./node_modules/core-js/internals/object-create.js"),B=o("./node_modules/core-js/internals/object-get-own-property-names.js").f,G=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,ce=o("./node_modules/core-js/internals/object-define-property.js").f,q=o("./node_modules/core-js/internals/string-trim.js").trim,be="Number",xe=p[be],Le=xe.prototype,ae=S(ee(Le))==be,me=function(ve){if(F(ve))throw TypeError("Cannot convert a Symbol value to a number");var _=H(ve,"number"),N,X,pe,qe,at,rt,Rt,lr;if(typeof _=="string"&&_.length>2){if(_=q(_),N=_.charCodeAt(0),N===43||N===45){if(X=_.charCodeAt(2),X===88||X===120)return NaN}else if(N===48){switch(_.charCodeAt(1)){case 66:case 98:pe=2,qe=49;break;case 79:case 111:pe=8,qe=55;break;default:return+_}for(at=_.slice(2),rt=at.length,Rt=0;Rt<rt;Rt++)if(lr=at.charCodeAt(Rt),lr<48||lr>qe)return NaN;return parseInt(at,pe)}}return+_};if(a(be,!xe(" 0o1")||!xe("0b1")||xe("+0x1"))){for(var I=function(_){var N=arguments.length<1?0:_,X=this;return X instanceof I&&(ae?V(function(){Le.valueOf.call(X)}):S(X)!=be)?K(new xe(me(N)),X,I):me(N)},_e=L?B(xe):"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(","),oe=0,he;_e.length>oe;oe++)m(xe,he=_e[oe])&&!m(I,he)&&ce(I,he,G(xe,he));I.prototype=Le,Le.constructor=I,A(p,be,I)}},"./node_modules/core-js/modules/es.object.assign.js":function(T,n,o){var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/object-assign.js");L({target:"Object",stat:!0,forced:Object.assign!==p},{assign:p})},"./node_modules/core-js/modules/es.object.keys.js":function(T,n,o){var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/to-object.js"),a=o("./node_modules/core-js/internals/object-keys.js"),A=o("./node_modules/core-js/internals/fails.js"),m=A(function(){a(1)});L({target:"Object",stat:!0,forced:m},{keys:function(K){return a(p(K))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(T,n,o){var L=o("./node_modules/core-js/internals/to-string-tag-support.js"),p=o("./node_modules/core-js/internals/redefine.js"),a=o("./node_modules/core-js/internals/object-to-string.js");L||p(Object.prototype,"toString",a,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/redefine.js"),p=o("./node_modules/core-js/internals/an-object.js"),a=o("./node_modules/core-js/internals/to-string.js"),A=o("./node_modules/core-js/internals/fails.js"),m=o("./node_modules/core-js/internals/regexp-flags.js"),S="toString",K=RegExp.prototype,F=K[S],H=A(function(){return F.call({source:"a",flags:"b"})!="/a/b"}),V=F.name!=S;(H||V)&&L(RegExp.prototype,S,function(){var B=p(this),G=a(B.source),ce=B.flags,q=a(ce===void 0&&B instanceof RegExp&&!("flags"in K)?m.call(B):ce);return"/"+G+"/"+q},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/string-multibyte.js").charAt,p=o("./node_modules/core-js/internals/to-string.js"),a=o("./node_modules/core-js/internals/internal-state.js"),A=o("./node_modules/core-js/internals/define-iterator.js"),m="String Iterator",S=a.set,K=a.getterFor(m);A(String,"String",function(F){S(this,{type:m,string:p(F),index:0})},function(){var H=K(this),V=H.string,ee=H.index,B;return ee>=V.length?{value:void 0,done:!0}:(B=L(V,ee),H.index+=B.length,{value:B,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/create-html.js"),a=o("./node_modules/core-js/internals/string-html-forced.js");L({target:"String",proto:!0,forced:a("link")},{link:function(m){return p(this,"a","href",m)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/descriptors.js"),a=o("./node_modules/core-js/internals/global.js"),A=o("./node_modules/core-js/internals/has.js"),m=o("./node_modules/core-js/internals/is-object.js"),S=o("./node_modules/core-js/internals/object-define-property.js").f,K=o("./node_modules/core-js/internals/copy-constructor-properties.js"),F=a.Symbol;if(p&&typeof F=="function"&&(!("description"in F.prototype)||F().description!==void 0)){var H={},V=function(){var be=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),xe=this instanceof V?new F(be):be===void 0?F():F(be);return be===""&&(H[xe]=!0),xe};K(V,F);var ee=V.prototype=F.prototype;ee.constructor=V;var B=ee.toString,G=String(F("test"))=="Symbol(test)",ce=/^Symbol\((.*)\)[^)]+$/;S(ee,"description",{configurable:!0,get:function(){var be=m(this)?this.valueOf():this,xe=B.call(be);if(A(H,be))return"";var Le=G?xe.slice(7,-1):xe.replace(ce,"$1");return Le===""?void 0:Le}}),L({global:!0,forced:!0},{Symbol:V})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(T,n,o){var L=o("./node_modules/core-js/internals/define-well-known-symbol.js");L("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(T,n,o){"use strict";var L=o("./node_modules/core-js/internals/export.js"),p=o("./node_modules/core-js/internals/global.js"),a=o("./node_modules/core-js/internals/get-built-in.js"),A=o("./node_modules/core-js/internals/is-pure.js"),m=o("./node_modules/core-js/internals/descriptors.js"),S=o("./node_modules/core-js/internals/native-symbol.js"),K=o("./node_modules/core-js/internals/fails.js"),F=o("./node_modules/core-js/internals/has.js"),H=o("./node_modules/core-js/internals/is-array.js"),V=o("./node_modules/core-js/internals/is-object.js"),ee=o("./node_modules/core-js/internals/is-symbol.js"),B=o("./node_modules/core-js/internals/an-object.js"),G=o("./node_modules/core-js/internals/to-object.js"),ce=o("./node_modules/core-js/internals/to-indexed-object.js"),q=o("./node_modules/core-js/internals/to-property-key.js"),be=o("./node_modules/core-js/internals/to-string.js"),xe=o("./node_modules/core-js/internals/create-property-descriptor.js"),Le=o("./node_modules/core-js/internals/object-create.js"),ae=o("./node_modules/core-js/internals/object-keys.js"),me=o("./node_modules/core-js/internals/object-get-own-property-names.js"),I=o("./node_modules/core-js/internals/object-get-own-property-names-external.js"),_e=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),oe=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),he=o("./node_modules/core-js/internals/object-define-property.js"),ve=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),_=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=o("./node_modules/core-js/internals/redefine.js"),X=o("./node_modules/core-js/internals/shared.js"),pe=o("./node_modules/core-js/internals/shared-key.js"),qe=o("./node_modules/core-js/internals/hidden-keys.js"),at=o("./node_modules/core-js/internals/uid.js"),rt=o("./node_modules/core-js/internals/well-known-symbol.js"),Rt=o("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),lr=o("./node_modules/core-js/internals/define-well-known-symbol.js"),qt=o("./node_modules/core-js/internals/set-to-string-tag.js"),Ze=o("./node_modules/core-js/internals/internal-state.js"),Er=o("./node_modules/core-js/internals/array-iteration.js").forEach,Cr=pe("hidden"),Kr="Symbol",_r="prototype",Me=rt("toPrimitive"),Tt=Ze.set,z=Ze.getterFor(Kr),v=Object[_r],f=p.Symbol,D=a("JSON","stringify"),de=oe.f,W=he.f,P=I.f,te=ve.f,Ie=X("symbols"),Te=X("op-symbols"),Se=X("string-to-symbol-registry"),Ge=X("symbol-to-string-registry"),ft=X("wks"),Ke=p.QObject,Xe=!Ke||!Ke[_r]||!Ke[_r].findChild,At=m&&K(function(){return Le(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a!=7})?function(rr,Ue,ot){var Yr=de(v,Ue);Yr&&delete v[Ue],W(rr,Ue,ot),Yr&&rr!==v&&W(v,Ue,Yr)}:W,We=function(rr,Ue){var ot=Ie[rr]=Le(f[_r]);return Tt(ot,{type:Kr,tag:rr,description:Ue}),m||(ot.description=Ue),ot},$e=function(Ue,ot,Yr){Ue===v&&$e(Te,ot,Yr),B(Ue);var St=q(ot);return B(Yr),F(Ie,St)?(Yr.enumerable?(F(Ue,Cr)&&Ue[Cr][St]&&(Ue[Cr][St]=!1),Yr=Le(Yr,{enumerable:xe(0,!1)})):(F(Ue,Cr)||W(Ue,Cr,xe(1,{})),Ue[Cr][St]=!0),At(Ue,St,Yr)):W(Ue,St,Yr)},Bt=function(Ue,ot){B(Ue);var Yr=ce(ot),St=ae(Yr).concat(re(Yr));return Er(St,function(Vt){(!m||Mt.call(Yr,Vt))&&$e(Ue,Vt,Yr[Vt])}),Ue},Kt=function(Ue,ot){return ot===void 0?Le(Ue):Bt(Le(Ue),ot)},Mt=function(Ue){var ot=q(Ue),Yr=te.call(this,ot);return this===v&&F(Ie,ot)&&!F(Te,ot)?!1:Yr||!F(this,ot)||!F(Ie,ot)||F(this,Cr)&&this[Cr][ot]?Yr:!0},wr=function(Ue,ot){var Yr=ce(Ue),St=q(ot);if(!(Yr===v&&F(Ie,St)&&!F(Te,St))){var Vt=de(Yr,St);return Vt&&F(Ie,St)&&!(F(Yr,Cr)&&Yr[Cr][St])&&(Vt.enumerable=!0),Vt}},vr=function(Ue){var ot=P(ce(Ue)),Yr=[];return Er(ot,function(St){!F(Ie,St)&&!F(qe,St)&&Yr.push(St)}),Yr},re=function(Ue){var ot=Ue===v,Yr=P(ot?Te:ce(Ue)),St=[];return Er(Yr,function(Vt){F(Ie,Vt)&&(!ot||F(v,Vt))&&St.push(Ie[Vt])}),St};if(S||(f=function(){if(this instanceof f)throw TypeError("Symbol is not a constructor");var Ue=!arguments.length||arguments[0]===void 0?void 0:be(arguments[0]),ot=at(Ue),Yr=function(St){this===v&&Yr.call(Te,St),F(this,Cr)&&F(this[Cr],ot)&&(this[Cr][ot]=!1),At(this,ot,xe(1,St))};return m&&Xe&&At(v,ot,{configurable:!0,set:Yr}),We(ot,Ue)},N(f[_r],"toString",function(){return z(this).tag}),N(f,"withoutSetter",function(rr){return We(at(rr),rr)}),ve.f=Mt,he.f=$e,oe.f=wr,me.f=I.f=vr,_e.f=re,Rt.f=function(rr){return We(rt(rr),rr)},m&&(W(f[_r],"description",{configurable:!0,get:function(){return z(this).description}}),A||N(v,"propertyIsEnumerable",Mt,{unsafe:!0}))),L({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:f}),Er(ae(ft),function(rr){lr(rr)}),L({target:Kr,stat:!0,forced:!S},{for:function(rr){var Ue=be(rr);if(F(Se,Ue))return Se[Ue];var ot=f(Ue);return Se[Ue]=ot,Ge[ot]=Ue,ot},keyFor:function(Ue){if(!ee(Ue))throw TypeError(Ue+" is not a symbol");if(F(Ge,Ue))return Ge[Ue]},useSetter:function(){Xe=!0},useSimple:function(){Xe=!1}}),L({target:"Object",stat:!0,forced:!S,sham:!m},{create:Kt,defineProperty:$e,defineProperties:Bt,getOwnPropertyDescriptor:wr}),L({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:vr,getOwnPropertySymbols:re}),L({target:"Object",stat:!0,forced:K(function(){_e.f(1)})},{getOwnPropertySymbols:function(Ue){return _e.f(G(Ue))}}),D){var le=!S||K(function(){var rr=f();return D([rr])!="[null]"||D({a:rr})!="{}"||D(Object(rr))!="{}"});L({target:"JSON",stat:!0,forced:le},{stringify:function(Ue,ot,Yr){for(var St=[Ue],Vt=1,Zt;arguments.length>Vt;)St.push(arguments[Vt++]);if(Zt=ot,!(!V(ot)&&Ue===void 0||ee(Ue)))return H(ot)||(ot=function(nt,ct){if(typeof Zt=="function"&&(ct=Zt.call(this,nt,ct)),!ee(ct))return ct}),St[1]=ot,D.apply(null,St)}})}f[_r][Me]||_(f[_r],Me,f[_r].valueOf),qt(f,Kr),qe[Cr]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/dom-iterables.js"),a=o("./node_modules/core-js/internals/array-for-each.js"),A=o("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var m in p){var S=L[m],K=S&&S.prototype;if(K&&K.forEach!==a)try{A(K,"forEach",a)}catch(F){K.forEach=a}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(T,n,o){var L=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/dom-iterables.js"),a=o("./node_modules/core-js/modules/es.array.iterator.js"),A=o("./node_modules/core-js/internals/create-non-enumerable-property.js"),m=o("./node_modules/core-js/internals/well-known-symbol.js"),S=m("iterator"),K=m("toStringTag"),F=a.values;for(var H in p){var V=L[H],ee=V&&V.prototype;if(ee){if(ee[S]!==F)try{A(ee,S,F)}catch(G){ee[S]=F}if(ee[K]||A(ee,K,H),p[H]){for(var B in a)if(ee[B]!==a[B])try{A(ee,B,a[B])}catch(G){ee[B]=a[B]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(T){(function(n,o){T.exports=o()})(this,function(){"use strict";function n(Ke){var Xe=typeof Ke;return Ke!==null&&(Xe==="object"||Xe==="function")}function o(Ke){return typeof Ke=="function"}var L=void 0;Array.isArray?L=Array.isArray:L=function(Ke){return Object.prototype.toString.call(Ke)==="[object Array]"};var p=L,a=0,A=void 0,m=void 0,S=function(Xe,At){ae[a]=Xe,ae[a+1]=At,a+=2,a===2&&(m?m(me):_e())};function K(Ke){m=Ke}function F(Ke){S=Ke}var H=typeof window!="undefined"?window:void 0,V=H||{},ee=V.MutationObserver||V.WebKitMutationObserver,B=typeof self=="undefined"&&typeof we!="undefined"&&{}.toString.call(we)==="[object process]",G=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function ce(){return function(){return we.nextTick(me)}}function q(){return typeof A!="undefined"?function(){A(me)}:Le()}function be(){var Ke=0,Xe=new ee(me),At=document.createTextNode("");return Xe.observe(At,{characterData:!0}),function(){At.data=Ke=++Ke%2}}function xe(){var Ke=new MessageChannel;return Ke.port1.onmessage=me,function(){return Ke.port2.postMessage(0)}}function Le(){var Ke=setTimeout;return function(){return Ke(me,1)}}var ae=new Array(1e3);function me(){for(var Ke=0;Ke<a;Ke+=2){var Xe=ae[Ke],At=ae[Ke+1];Xe(At),ae[Ke]=void 0,ae[Ke+1]=void 0}a=0}function I(){try{var Ke=Function("return this")().require("vertx");return A=Ke.runOnLoop||Ke.runOnContext,q()}catch(Xe){return Le()}}var _e=void 0;B?_e=ce():ee?_e=be():G?_e=xe():H===void 0?_e=I():_e=Le();function oe(Ke,Xe){var At=this,We=new this.constructor(_);We[ve]===void 0&&D(We);var $e=At._state;if($e){var Bt=arguments[$e-1];S(function(){return Tt($e,We,Bt,At._result)})}else _r(At,We,Ke,Xe);return We}function he(Ke){var Xe=this;if(Ke&&typeof Ke=="object"&&Ke.constructor===Xe)return Ke;var At=new Xe(_);return Ze(At,Ke),At}var ve=Math.random().toString(36).substring(2);function _(){}var N=void 0,X=1,pe=2;function qe(){return new TypeError("You cannot resolve a promise with itself")}function at(){return new TypeError("A promises callback cannot return that same promise.")}function rt(Ke,Xe,At,We){try{Ke.call(Xe,At,We)}catch($e){return $e}}function Rt(Ke,Xe,At){S(function(We){var $e=!1,Bt=rt(At,Xe,function(Kt){$e||($e=!0,Xe!==Kt?Ze(We,Kt):Cr(We,Kt))},function(Kt){$e||($e=!0,Kr(We,Kt))},"Settle: "+(We._label||" unknown promise"));!$e&&Bt&&($e=!0,Kr(We,Bt))},Ke)}function lr(Ke,Xe){Xe._state===X?Cr(Ke,Xe._result):Xe._state===pe?Kr(Ke,Xe._result):_r(Xe,void 0,function(At){return Ze(Ke,At)},function(At){return Kr(Ke,At)})}function qt(Ke,Xe,At){Xe.constructor===Ke.constructor&&At===oe&&Xe.constructor.resolve===he?lr(Ke,Xe):At===void 0?Cr(Ke,Xe):o(At)?Rt(Ke,Xe,At):Cr(Ke,Xe)}function Ze(Ke,Xe){if(Ke===Xe)Kr(Ke,qe());else if(n(Xe)){var At=void 0;try{At=Xe.then}catch(We){Kr(Ke,We);return}qt(Ke,Xe,At)}else Cr(Ke,Xe)}function Er(Ke){Ke._onerror&&Ke._onerror(Ke._result),Me(Ke)}function Cr(Ke,Xe){Ke._state===N&&(Ke._result=Xe,Ke._state=X,Ke._subscribers.length!==0&&S(Me,Ke))}function Kr(Ke,Xe){Ke._state===N&&(Ke._state=pe,Ke._result=Xe,S(Er,Ke))}function _r(Ke,Xe,At,We){var $e=Ke._subscribers,Bt=$e.length;Ke._onerror=null,$e[Bt]=Xe,$e[Bt+X]=At,$e[Bt+pe]=We,Bt===0&&Ke._state&&S(Me,Ke)}function Me(Ke){var Xe=Ke._subscribers,At=Ke._state;if(Xe.length!==0){for(var We=void 0,$e=void 0,Bt=Ke._result,Kt=0;Kt<Xe.length;Kt+=3)We=Xe[Kt],$e=Xe[Kt+At],We?Tt(At,We,$e,Bt):$e(Bt);Ke._subscribers.length=0}}function Tt(Ke,Xe,At,We){var $e=o(At),Bt=void 0,Kt=void 0,Mt=!0;if($e){try{Bt=At(We)}catch(wr){Mt=!1,Kt=wr}if(Xe===Bt){Kr(Xe,at());return}}else Bt=We;Xe._state!==N||($e&&Mt?Ze(Xe,Bt):Mt===!1?Kr(Xe,Kt):Ke===X?Cr(Xe,Bt):Ke===pe&&Kr(Xe,Bt))}function z(Ke,Xe){try{Xe(function(We){Ze(Ke,We)},function(We){Kr(Ke,We)})}catch(At){Kr(Ke,At)}}var v=0;function f(){return v++}function D(Ke){Ke[ve]=v++,Ke._state=void 0,Ke._result=void 0,Ke._subscribers=[]}function de(){return new Error("Array Methods must be provided an Array")}var W=function(){function Ke(Xe,At){this._instanceConstructor=Xe,this.promise=new Xe(_),this.promise[ve]||D(this.promise),p(At)?(this.length=At.length,this._remaining=At.length,this._result=new Array(this.length),this.length===0?Cr(this.promise,this._result):(this.length=this.length||0,this._enumerate(At),this._remaining===0&&Cr(this.promise,this._result))):Kr(this.promise,de())}return Ke.prototype._enumerate=function(At){for(var We=0;this._state===N&&We<At.length;We++)this._eachEntry(At[We],We)},Ke.prototype._eachEntry=function(At,We){var $e=this._instanceConstructor,Bt=$e.resolve;if(Bt===he){var Kt=void 0,Mt=void 0,wr=!1;try{Kt=At.then}catch(re){wr=!0,Mt=re}if(Kt===oe&&At._state!==N)this._settledAt(At._state,We,At._result);else if(typeof Kt!="function")this._remaining--,this._result[We]=At;else if($e===Ge){var vr=new $e(_);wr?Kr(vr,Mt):qt(vr,At,Kt),this._willSettleAt(vr,We)}else this._willSettleAt(new $e(function(re){return re(At)}),We)}else this._willSettleAt(Bt(At),We)},Ke.prototype._settledAt=function(At,We,$e){var Bt=this.promise;Bt._state===N&&(this._remaining--,At===pe?Kr(Bt,$e):this._result[We]=$e),this._remaining===0&&Cr(Bt,this._result)},Ke.prototype._willSettleAt=function(At,We){var $e=this;_r(At,void 0,function(Bt){return $e._settledAt(X,We,Bt)},function(Bt){return $e._settledAt(pe,We,Bt)})},Ke}();function P(Ke){return new W(this,Ke).promise}function te(Ke){var Xe=this;return p(Ke)?new Xe(function(At,We){for(var $e=Ke.length,Bt=0;Bt<$e;Bt++)Xe.resolve(Ke[Bt]).then(At,We)}):new Xe(function(At,We){return We(new TypeError("You must pass an array to race."))})}function Ie(Ke){var Xe=this,At=new Xe(_);return Kr(At,Ke),At}function Te(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Se(){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 Ke(Xe){this[ve]=f(),this._result=this._state=void 0,this._subscribers=[],_!==Xe&&(typeof Xe!="function"&&Te(),this instanceof Ke?z(this,Xe):Se())}return Ke.prototype.catch=function(At){return this.then(null,At)},Ke.prototype.finally=function(At){var We=this,$e=We.constructor;return o(At)?We.then(function(Bt){return $e.resolve(At()).then(function(){return Bt})},function(Bt){return $e.resolve(At()).then(function(){throw Bt})}):We.then(At,At)},Ke}();Ge.prototype.then=oe,Ge.all=P,Ge.race=te,Ge.resolve=he,Ge.reject=Ie,Ge._setScheduler=K,Ge._setAsap=F,Ge._asap=S;function ft(){var Ke=void 0;if(typeof g.g!="undefined")Ke=g.g;else if(typeof self!="undefined")Ke=self;else try{Ke=Function("return this")()}catch(We){throw new Error("polyfill failed because global object is unavailable in this environment")}var Xe=Ke.Promise;if(Xe){var At=null;try{At=Object.prototype.toString.call(Xe.resolve())}catch(We){}if(At==="[object Promise]"&&!Xe.cast)return}Ke.Promise=Ge}return Ge.polyfill=ft,Ge.Promise=Ge,Ge})},html2canvas:function(T){"use strict";T.exports=se},jspdf:function(T){"use strict";T.exports=Fe}},ie={};function Y(T){var n=ie[T];if(n!==void 0)return n.exports;var o=ie[T]={exports:{}};return ke[T].call(o.exports,o,o.exports,Y),o.exports}(function(){Y.n=function(T){var n=T&&T.__esModule?function(){return T.default}:function(){return T};return Y.d(n,{a:n}),n}})(),function(){Y.d=function(T,n){for(var o in n)Y.o(n,o)&&!Y.o(T,o)&&Object.defineProperty(T,o,{enumerable:!0,get:n[o]})}}(),function(){Y.o=function(T,n){return Object.prototype.hasOwnProperty.call(T,n)}}(),function(){Y.r=function(T){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(T,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(T,"__esModule",{value:!0})}}();var O={};return function(){"use strict";Y.r(O);var T=Y("./src/worker.js"),n=Y("./src/plugin/jspdf-plugin.js"),o=Y("./src/plugin/pagebreaks.js"),L=Y("./src/plugin/hyperlinks.js"),p=function a(A,m){var S=new a.Worker(m);return A?S.from(A).save():S};p.Worker=T.default,O.default=p}(),O=O.default,O}()})},67467:function(yn,Gt){Gt.read=function(g,we,Fe,se,ke){var ie,Y,O=ke*8-se-1,T=(1<<O)-1,n=T>>1,o=-7,L=Fe?ke-1:0,p=Fe?-1:1,a=g[we+L];for(L+=p,ie=a&(1<<-o)-1,a>>=-o,o+=O;o>0;ie=ie*256+g[we+L],L+=p,o-=8);for(Y=ie&(1<<-o)-1,ie>>=-o,o+=se;o>0;Y=Y*256+g[we+L],L+=p,o-=8);if(ie===0)ie=1-n;else{if(ie===T)return Y?NaN:(a?-1:1)*(1/0);Y=Y+Math.pow(2,se),ie=ie-n}return(a?-1:1)*Y*Math.pow(2,ie-se)},Gt.write=function(g,we,Fe,se,ke,ie){var Y,O,T,n=ie*8-ke-1,o=(1<<n)-1,L=o>>1,p=ke===23?Math.pow(2,-24)-Math.pow(2,-77):0,a=se?0:ie-1,A=se?1:-1,m=we<0||we===0&&1/we<0?1:0;for(we=Math.abs(we),isNaN(we)||we===1/0?(O=isNaN(we)?1:0,Y=o):(Y=Math.floor(Math.log(we)/Math.LN2),we*(T=Math.pow(2,-Y))<1&&(Y--,T*=2),Y+L>=1?we+=p/T:we+=p*Math.pow(2,1-L),we*T>=2&&(Y++,T/=2),Y+L>=o?(O=0,Y=o):Y+L>=1?(O=(we*T-1)*Math.pow(2,ke),Y=Y+L):(O=we*Math.pow(2,L-1)*Math.pow(2,ke),Y=0));ke>=8;g[Fe+a]=O&255,a+=A,O/=256,ke-=8);for(Y=Y<<ke|O,n+=ke;n>0;g[Fe+a]=Y&255,a+=A,Y/=256,n-=8);g[Fe+a-A]|=m*128}},86061:function(yn,Gt,g){"use strict";var we,Fe;function se(ke,ie,Y){var O=function(T,n){return ke.js_beautify(T,n)};return O.js=ke.js_beautify,O.css=ie.css_beautify,O.html=Y.html_beautify,O.js_beautify=ke.js_beautify,O.css_beautify=ie.css_beautify,O.html_beautify=Y.html_beautify,O}we=[g(32328),g(34655),g(32708)],Fe=function(ke,ie,Y){return se(ke,ie,Y)}.apply(Gt,we),Fe!==void 0&&(yn.exports=Fe)},34655:function(yn,Gt){var g,we;(function(){var Fe;(function(){"use strict";var ke=[,,function(T){function n(p){this.__parent=p,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=[]}n.prototype.clone_empty=function(){var p=new n(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},n.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},n.prototype.has_match=function(p){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(p))return!0;return!1},n.prototype.set_indent=function(p,a){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},n.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)},n.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},n.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},n.prototype.is_empty=function(){return this.__items.length===0},n.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},n.prototype.push=function(p){this.__items.push(p);var a=p.lastIndexOf(`
|
|
|
`);a!==-1?this.__character_count=p.length-a:this.__character_count+=p.length},n.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},n.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},n.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},n.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},n.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function o(p,a){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),a=a||"",p.indent_level>0&&(a=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}o.prototype.get_indent_size=function(p,a){var A=this.__base_string_length;return a=a||0,p<0&&(A=0),A+=p*this.__indent_size,A+=a,A},o.prototype.get_indent_string=function(p,a){var A=this.__base_string;return a=a||0,p<0&&(p=0,A=""),a+=p*this.__indent_size,this.__ensure_cache(a),A+=this.__cache[a],A},o.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},o.prototype.__add_column=function(){var p=this.__cache.length,a=0,A="";this.__indent_size&&p>=this.__indent_size&&(a=Math.floor(p/this.__indent_size),p-=a*this.__indent_size,A=new Array(a+1).join(this.__indent_string)),p&&(A+=new Array(p+1).join(" ")),this.__cache.push(A)};function L(p,a){this.__indent_cache=new o(p,a),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new n(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(p,a){return this.__indent_cache.get_indent_string(p,a)},L.prototype.get_indent_size=function(p,a){return this.__indent_cache.get_indent_size(p,a)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(p){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
|
|
|
`);return p!==`
|
|
|
`&&(A=A.replace(/[\n]/g,p)),A},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(p,a){return p=p||0,a=a||0,this.next_line.set_indent(p,a),this.__lines.length>1?(this.current_line.set_indent(p,a),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(p){for(var a=0;a<p.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.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(" "))},L.prototype.remove_indent=function(p){for(var a=this.__lines.length;p<a;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&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},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(p,a){for(var A=this.__lines.length-2;A>=0;){var m=this.__lines[A];if(m.is_empty())break;if(m.item(0).indexOf(p)!==0&&m.item(-1)!==a){this.__lines.splice(A+1,0,new n(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},T.exports.Output=L},,,,function(T){function n(p,a){this.raw_options=o(p,a),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"])}n.prototype._get_array=function(p,a){var A=this.raw_options[p],m=a||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&(m=A.concat()):typeof A=="string"&&(m=A.split(/[^a-zA-Z0-9_\/\-]+/)),m},n.prototype._get_boolean=function(p,a){var A=this.raw_options[p],m=A===void 0?!!a:!!A;return m},n.prototype._get_characters=function(p,a){var A=this.raw_options[p],m=a||"";return typeof A=="string"&&(m=A.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),m},n.prototype._get_number=function(p,a){var A=this.raw_options[p];a=parseInt(a,10),isNaN(a)&&(a=0);var m=parseInt(A,10);return isNaN(m)&&(m=a),m},n.prototype._get_selection=function(p,a,A){var m=this._get_selection_list(p,a,A);if(m.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m[0]},n.prototype._get_selection_list=function(p,a,A){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[a[0]],!this._is_valid_selection(A,a))throw new Error("Invalid Default Value!");var m=this._get_array(p,A);if(!this._is_valid_selection(m,a))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m},n.prototype._is_valid_selection=function(p,a){return p.length&&a.length&&!p.some(function(A){return a.indexOf(A)===-1})};function o(p,a){var A={};p=L(p);var m;for(m in p)m!==a&&(A[m]=p[m]);if(a&&p[a])for(m in p[a])A[m]=p[a][m];return A}function L(p){var a={},A;for(A in p){var m=A.replace(/-/g,"_");a[m]=p[A]}return a}T.exports.Options=n,T.exports.normalizeOpts=L,T.exports.mergeOpts=o},,function(T){var n=RegExp.prototype.hasOwnProperty("sticky");function o(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position<this.__input_length},o.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},o.prototype.peek=function(L){var p=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(p=this.__input.charAt(L)),p},o.prototype.__match=function(L,p){L.lastIndex=p;var a=L.exec(this.__input);return a&&!(n&&L.sticky)&&a.index!==p&&(a=null),a},o.prototype.test=function(L,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(L,p):!1},o.prototype.testChar=function(L,p){var a=this.peek(p);return L.lastIndex=0,a!==null&&L.test(a)},o.prototype.match=function(L){var p=this.__match(L,this.__position);return p?this.__position+=p[0].length:p=null,p},o.prototype.read=function(L,p,a){var A="",m;return L&&(m=this.match(L),m&&(A+=m[0])),p&&(m||!L)&&(A+=this.readUntil(p,a)),A},o.prototype.readUntil=function(L,p){var a="",A=this.__position;L.lastIndex=this.__position;var m=L.exec(this.__input);return m?(A=m.index,p&&(A+=m[0].length)):A=this.__input_length,a=this.__input.substring(this.__position,A),this.__position=A,a},o.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},o.prototype.get_regexp=function(L,p){var a=null,A="g";return p&&n&&(A="y"),typeof L=="string"&&L!==""?a=new RegExp(L,A):L&&(a=new RegExp(L.source,A)),a},o.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},o.prototype.peekUntilAfter=function(L){var p=this.__position,a=this.readUntilAfter(L);return this.__position=p,a},o.prototype.lookBack=function(L){var p=this.__position-1;return p>=L.length&&this.__input.substring(p-L.length,p).toLowerCase()===L},T.exports.InputScanner=o},,,,,function(T){function n(o,L){o=typeof o=="string"?o:o.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(o+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(o+/\sbeautify\signore:end\s/.source+L,"g")}n.prototype.get_directives=function(o){if(!o.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(o);p;)L[p[1]]=p[2],p=this.__directive_pattern.exec(o);return L},n.prototype.readIgnored=function(o){return o.readUntilAfter(this.__directives_end_ignore_pattern)},T.exports.Directives=n},,function(T,n,o){var L=o(16).Beautifier,p=o(17).Options;function a(A,m){var S=new L(A,m);return S.beautify()}T.exports=a,T.exports.defaultOptions=function(){return new p}},function(T,n,o){var L=o(17).Options,p=o(2).Output,a=o(8).InputScanner,A=o(13).Directives,m=new A(/\/\*/,/\*\//),S=/\r\n|[\r\n]/,K=/\r\n|[\r\n]/g,F=/\s/,H=/(?:\s|\n)+/g,V=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,ee=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function B(G,ce){this._source_text=G||"",this._options=new L(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"]}B.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},B.prototype.eatWhitespace=function(G){for(var ce=F.test(this._input.peek()),q=0;F.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},B.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},B.prototype.print_string=function(G){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(G)},B.prototype.preserveSingleSpace=function(G){G&&(this._output.space_before_token=!0)},B.prototype.indent=function(){this._indentLevel++},B.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},B.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var G=this._source_text,ce=this._options.eol;ce==="auto"&&(ce=`
|
|
|
`,G&&S.test(G||"")&&(ce=G.match(S)[0])),G=G.replace(K,`
|
|
|
`);var q=G.match(/^[\t ]*/)[0];this._output=new p(this._options,q),this._input=new a(G),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var be=0,xe=!1,Le=!1,ae=!1,me=!1,I=!1,_e=this._ch,oe=!1,he,ve,_;he=this._input.read(H),ve=he!=="",_=_e,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),_e=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var N=this._input.read(V),X=m.get_directives(N);X&&X.ignore==="start"&&(N+=m.readIgnored(this._input)),this.print_string(N),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(ee)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(ve),this.print_string(this._ch);var pe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);pe.match(/[ :]$/)&&(pe=this.eatString(": ").replace(/\s+$/,""),this.print_string(pe),this._output.space_before_token=!0),be===0&&pe.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 qe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);qe.match(/[ :]$/)&&(qe=this.eatString(": ").replace(/\s+$/,""),this.print_string(qe),this._output.space_before_token=!0),be===0&&qe.indexOf(":")!==-1?(Le=!0,this.indent()):qe in this.NESTED_AT_RULE?(this._nestedLevel+=1,qe in this.CONDITIONAL_GROUP_RULE&&(ae=!0)):be===0&&!Le&&(me=!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()),me=!1,ae?(ae=!1,xe=this._indentLevel>=this._nestedLevel):xe=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&xe&&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)):(_==="("?this._output.space_before_token=!1:_!==","&&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(),_==="{"&&this._output.trim(!0),Le&&(this.outdent(),Le=!1),this.print_string(this._ch),xe=!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 at=0;at<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;at++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[at])){oe=!0;break}(xe||ae)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!me&&be===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 rt=_==='"'||_==="'";this.preserveSingleSpace(rt||ve),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")oe=!1,be===0?(Le&&(this.outdent(),Le=!1),me=!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(),be++,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(")")),be&&(be--,this.outdent()));else{var Rt=!1;this._input.lookBack("with")&&(Rt=!0),this.preserveSingleSpace(ve||Rt),this.print_string(this._ch),Le&&_==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),I=!0):(this.eatWhitespace(),be++,this.indent())}else if(this._ch===")")be&&(be--,this.outdent()),I&&this._input.peek()===";"&&this._options.selector_separator_newline&&(I=!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||I)&&be===0&&!me?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Le&&be===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&&F.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("="),F.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 lr=_==='"'||_==="'";this.preserveSingleSpace(lr||ve),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
|
`&&oe&&this._output.add_new_line()}var qt=this._output.get_code(ce);return qt},T.exports.Beautifier=B},function(T,n,o){var L=o(6).Options;function p(a){L.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var A=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||A;var m=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var S=0;S<m.length;S++)m[S]!=="expand"?this.brace_style="collapse":this.brace_style=m[S]}p.prototype=new L,T.exports.Options=p}],ie={};function Y(T){var n=ie[T];if(n!==void 0)return n.exports;var o=ie[T]={exports:{}};return ke[T](o,o.exports,Y),o.exports}var O=Y(15);Fe=O})();var se=Fe;g=[],we=function(){return{css_beautify:se}}.apply(Gt,g),we!==void 0&&(yn.exports=we)})()},32708:function(yn,Gt,g){var we,Fe;(function(){var se;(function(){"use strict";var O=[,,function(L){function p(m){this.__parent=m,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=[]}p.prototype.clone_empty=function(){var m=new p(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},p.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},p.prototype.has_match=function(m){for(var S=this.__items.length-1;S>=0;S--)if(this.__items[S].match(m))return!0;return!1},p.prototype.set_indent=function(m,S){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=S||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.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)},p.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},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(m){this.__items.push(m);var S=m.lastIndexOf(`
|
|
|
`);S!==-1?this.__character_count=m.length-S:this.__character_count+=m.length},p.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function a(m,S){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),S=S||"",m.indent_level>0&&(S=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=S,this.__base_string_length=S.length}a.prototype.get_indent_size=function(m,S){var K=this.__base_string_length;return S=S||0,m<0&&(K=0),K+=m*this.__indent_size,K+=S,K},a.prototype.get_indent_string=function(m,S){var K=this.__base_string;return S=S||0,m<0&&(m=0,K=""),S+=m*this.__indent_size,this.__ensure_cache(S),K+=this.__cache[S],K},a.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},a.prototype.__add_column=function(){var m=this.__cache.length,S=0,K="";this.__indent_size&&m>=this.__indent_size&&(S=Math.floor(m/this.__indent_size),m-=S*this.__indent_size,K=new Array(S+1).join(this.__indent_string)),m&&(K+=new Array(m+1).join(" ")),this.__cache.push(K)};function A(m,S){this.__indent_cache=new a(m,S),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}A.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},A.prototype.get_line_number=function(){return this.__lines.length},A.prototype.get_indent_string=function(m,S){return this.__indent_cache.get_indent_string(m,S)},A.prototype.get_indent_size=function(m,S){return this.__indent_cache.get_indent_size(m,S)},A.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},A.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},A.prototype.get_code=function(m){this.trim(!0);var S=this.current_line.pop();S&&(S[S.length-1]===`
|
|
|
`&&(S=S.replace(/\n+$/g,"")),this.current_line.push(S)),this._end_with_newline&&this.__add_outputline();var K=this.__lines.join(`
|
|
|
`);return m!==`
|
|
|
`&&(K=K.replace(/[\n]/g,m)),K},A.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},A.prototype.set_indent=function(m,S){return m=m||0,S=S||0,this.next_line.set_indent(m,S),this.__lines.length>1?(this.current_line.set_indent(m,S),!0):(this.current_line.set_indent(),!1)},A.prototype.add_raw_token=function(m){for(var S=0;S<m.newlines;S++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},A.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},A.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(" "))},A.prototype.remove_indent=function(m){for(var S=this.__lines.length;m<S;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},A.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&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},A.prototype.just_added_newline=function(){return this.current_line.is_empty()},A.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},A.prototype.ensure_empty_line_above=function(m,S){for(var K=this.__lines.length-2;K>=0;){var F=this.__lines[K];if(F.is_empty())break;if(F.item(0).indexOf(m)!==0&&F.item(-1)!==S){this.__lines.splice(K+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}K--}},L.exports.Output=A},function(L){function p(a,A,m,S){this.type=a,this.text=A,this.comments_before=null,this.newlines=m||0,this.whitespace_before=S||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}L.exports.Token=p},,,function(L){function p(m,S){this.raw_options=a(m,S),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"])}p.prototype._get_array=function(m,S){var K=this.raw_options[m],F=S||[];return typeof K=="object"?K!==null&&typeof K.concat=="function"&&(F=K.concat()):typeof K=="string"&&(F=K.split(/[^a-zA-Z0-9_\/\-]+/)),F},p.prototype._get_boolean=function(m,S){var K=this.raw_options[m],F=K===void 0?!!S:!!K;return F},p.prototype._get_characters=function(m,S){var K=this.raw_options[m],F=S||"";return typeof K=="string"&&(F=K.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),F},p.prototype._get_number=function(m,S){var K=this.raw_options[m];S=parseInt(S,10),isNaN(S)&&(S=0);var F=parseInt(K,10);return isNaN(F)&&(F=S),F},p.prototype._get_selection=function(m,S,K){var F=this._get_selection_list(m,S,K);if(F.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[m]+"'");return F[0]},p.prototype._get_selection_list=function(m,S,K){if(!S||S.length===0)throw new Error("Selection list cannot be empty.");if(K=K||[S[0]],!this._is_valid_selection(K,S))throw new Error("Invalid Default Value!");var F=this._get_array(m,K);if(!this._is_valid_selection(F,S))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
|
|
|
`+S+`
|
|
|
You passed in: '`+this.raw_options[m]+"'");return F},p.prototype._is_valid_selection=function(m,S){return m.length&&S.length&&!m.some(function(K){return S.indexOf(K)===-1})};function a(m,S){var K={};m=A(m);var F;for(F in m)F!==S&&(K[F]=m[F]);if(S&&m[S])for(F in m[S])K[F]=m[S][F];return K}function A(m){var S={},K;for(K in m){var F=K.replace(/-/g,"_");S[F]=m[K]}return S}L.exports.Options=p,L.exports.normalizeOpts=A,L.exports.mergeOpts=a},,function(L){var p=RegExp.prototype.hasOwnProperty("sticky");function a(A){this.__input=A||"",this.__input_length=this.__input.length,this.__position=0}a.prototype.restart=function(){this.__position=0},a.prototype.back=function(){this.__position>0&&(this.__position-=1)},a.prototype.hasNext=function(){return this.__position<this.__input_length},a.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__input.charAt(this.__position),this.__position+=1),A},a.prototype.peek=function(A){var m=null;return A=A||0,A+=this.__position,A>=0&&A<this.__input_length&&(m=this.__input.charAt(A)),m},a.prototype.__match=function(A,m){A.lastIndex=m;var S=A.exec(this.__input);return S&&!(p&&A.sticky)&&S.index!==m&&(S=null),S},a.prototype.test=function(A,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(A,m):!1},a.prototype.testChar=function(A,m){var S=this.peek(m);return A.lastIndex=0,S!==null&&A.test(S)},a.prototype.match=function(A){var m=this.__match(A,this.__position);return m?this.__position+=m[0].length:m=null,m},a.prototype.read=function(A,m,S){var K="",F;return A&&(F=this.match(A),F&&(K+=F[0])),m&&(F||!A)&&(K+=this.readUntil(m,S)),K},a.prototype.readUntil=function(A,m){var S="",K=this.__position;A.lastIndex=this.__position;var F=A.exec(this.__input);return F?(K=F.index,m&&(K+=F[0].length)):K=this.__input_length,S=this.__input.substring(this.__position,K),this.__position=K,S},a.prototype.readUntilAfter=function(A){return this.readUntil(A,!0)},a.prototype.get_regexp=function(A,m){var S=null,K="g";return m&&p&&(K="y"),typeof A=="string"&&A!==""?S=new RegExp(A,K):A&&(S=new RegExp(A.source,K)),S},a.prototype.get_literal_regexp=function(A){return RegExp(A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},a.prototype.peekUntilAfter=function(A){var m=this.__position,S=this.readUntilAfter(A);return this.__position=m,S},a.prototype.lookBack=function(A){var m=this.__position-1;return m>=A.length&&this.__input.substring(m-A.length,m).toLowerCase()===A},L.exports.InputScanner=a},function(L,p,a){var A=a(8).InputScanner,m=a(3).Token,S=a(10).TokenStream,K=a(11).WhitespacePattern,F={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},H=function(V,ee){this._input=new A(V),this._options=ee||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new K(this._input)};H.prototype.tokenize=function(){this._input.restart(),this.__tokens=new S,this._reset();for(var V,ee=new m(F.START,""),B=null,G=[],ce=new S;ee.type!==F.EOF;){for(V=this._get_next_token(ee,B);this._is_comment(V);)ce.add(V),V=this._get_next_token(ee,B);ce.isEmpty()||(V.comments_before=ce,ce=new S),V.parent=B,this._is_opening(V)?(G.push(B),B=V):B&&this._is_closing(V,B)&&(V.opened=B,B.closed=V,B=G.pop(),V.parent=B),V.previous=ee,ee.next=V,this.__tokens.add(V),ee=V}return this.__tokens},H.prototype._is_first_token=function(){return this.__tokens.isEmpty()},H.prototype._reset=function(){},H.prototype._get_next_token=function(V,ee){this._readWhitespace();var B=this._input.read(/.+/g);return B?this._create_token(F.RAW,B):this._create_token(F.EOF,"")},H.prototype._is_comment=function(V){return!1},H.prototype._is_opening=function(V){return!1},H.prototype._is_closing=function(V,ee){return!1},H.prototype._create_token=function(V,ee){var B=new m(V,ee,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return B},H.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},L.exports.Tokenizer=H,L.exports.TOKEN=F},function(L){function p(a){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=a}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__tokens[this.__position],this.__position+=1),a},p.prototype.peek=function(a){var A=null;return a=a||0,a+=this.__position,a>=0&&a<this.__tokens_length&&(A=this.__tokens[a]),A},p.prototype.add=function(a){this.__parent_token&&(a.parent=this.__parent_token),this.__tokens.push(a),this.__tokens_length+=1},L.exports.TokenStream=p},function(L,p,a){var A=a(12).Pattern;function m(S,K){A.call(this,S,K),K?this._line_regexp=this._input.get_regexp(K._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}m.prototype=new A,m.prototype.__set_whitespace_patterns=function(S,K){S+="\\t ",K+="\\n\\r",this._match_pattern=this._input.get_regexp("["+S+K+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+K+"]")},m.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var S=this._input.read(this._match_pattern);if(S===" ")this.whitespace_before_token=" ";else if(S){var K=this.__split(this._newline_regexp,S);this.newline_count=K.length-1,this.whitespace_before_token=K[this.newline_count]}return S},m.prototype.matching=function(S,K){var F=this._create();return F.__set_whitespace_patterns(S,K),F._update(),F},m.prototype._create=function(){return new m(this._input,this)},m.prototype.__split=function(S,K){S.lastIndex=0;for(var F=0,H=[],V=S.exec(K);V;)H.push(K.substring(F,V.index)),F=V.index+V[0].length,V=S.exec(K);return F<K.length?H.push(K.substring(F,K.length)):H.push(""),H},L.exports.WhitespacePattern=m},function(L){function p(a,A){this._input=a,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,A&&(this._starting_pattern=this._input.get_regexp(A._starting_pattern,!0),this._match_pattern=this._input.get_regexp(A._match_pattern,!0),this._until_pattern=this._input.get_regexp(A._until_pattern),this._until_after=A._until_after)}p.prototype.read=function(){var a=this._input.read(this._starting_pattern);return(!this._starting_pattern||a)&&(a+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),a},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(a){var A=this._create();return A._until_after=!0,A._until_pattern=this._input.get_regexp(a),A._update(),A},p.prototype.until=function(a){var A=this._create();return A._until_after=!1,A._until_pattern=this._input.get_regexp(a),A._update(),A},p.prototype.starting_with=function(a){var A=this._create();return A._starting_pattern=this._input.get_regexp(a,!0),A._update(),A},p.prototype.matching=function(a){var A=this._create();return A._match_pattern=this._input.get_regexp(a,!0),A._update(),A},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},L.exports.Pattern=p},function(L){function p(a,A){a=typeof a=="string"?a:a.source,A=typeof A=="string"?A:A.source,this.__directives_block_pattern=new RegExp(a+/ beautify( \w+[:]\w+)+ /.source+A,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(a+/\sbeautify\signore:end\s/.source+A,"g")}p.prototype.get_directives=function(a){if(!a.match(this.__directives_block_pattern))return null;var A={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(a);m;)A[m[1]]=m[2],m=this.__directive_pattern.exec(a);return A},p.prototype.readIgnored=function(a){return a.readUntilAfter(this.__directives_end_ignore_pattern)},L.exports.Directives=p},function(L,p,a){var A=a(12).Pattern,m={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function S(K,F){A.call(this,K,F),this.__template_pattern=null,this._disabled=Object.assign({},m),this._excluded=Object.assign({},m),F&&(this.__template_pattern=this._input.get_regexp(F.__template_pattern),this._excluded=Object.assign(this._excluded,F._excluded),this._disabled=Object.assign(this._disabled,F._disabled));var H=new A(K);this.__patterns={handlebars_comment:H.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:H.starting_with(/{{{/).until_after(/}}}/),handlebars:H.starting_with(/{{/).until_after(/}}/),php:H.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:H.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:H.starting_with(/{%/).until_after(/%}/),django_value:H.starting_with(/{{/).until_after(/}}/),django_comment:H.starting_with(/{#/).until_after(/#}/),smarty:H.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:H.starting_with(/{\*/).until_after(/\*}/),smarty_literal:H.starting_with(/{literal}/).until_after(/{\/literal}/)}}S.prototype=new A,S.prototype._create=function(){return new S(this._input,this)},S.prototype._update=function(){this.__set_templated_pattern()},S.prototype.disable=function(K){var F=this._create();return F._disabled[K]=!0,F._update(),F},S.prototype.read_options=function(K){var F=this._create();for(var H in m)F._disabled[H]=K.templating.indexOf(H)===-1;return F._update(),F},S.prototype.exclude=function(K){var F=this._create();return F._excluded[K]=!0,F._update(),F},S.prototype.read=function(){var K="";this._match_pattern?K=this._input.read(this._starting_pattern):K=this._input.read(this._starting_pattern,this.__template_pattern);for(var F=this._read_template();F;)this._match_pattern?F+=this._input.read(this._match_pattern):F+=this._input.readUntil(this.__template_pattern),K+=F,F=this._read_template();return this._until_after&&(K+=this._input.readUntilAfter(this._until_pattern)),K},S.prototype.__set_templated_pattern=function(){var K=[];this._disabled.php||K.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||K.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||K.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(K.push(this.__patterns.django._starting_pattern.source),K.push(this.__patterns.django_value._starting_pattern.source),K.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||K.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&K.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+K.join("|")+")")},S.prototype._read_template=function(){var K="",F=this._input.peek();if(F==="<"){var H=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&H==="?"&&(K=K||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&H==="%"&&(K=K||this.__patterns.erb.read())}else F==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(K=K||this.__patterns.handlebars_comment.read(),K=K||this.__patterns.handlebars_unescaped.read(),K=K||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(K=K||this.__patterns.django_value.read()),this._excluded.django||(K=K||this.__patterns.django_comment.read(),K=K||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(K=K||this.__patterns.smarty_comment.read(),K=K||this.__patterns.smarty_literal.read(),K=K||this.__patterns.smarty.read()));return K},L.exports.TemplatablePattern=S},,,,function(L,p,a){var A=a(19).Beautifier,m=a(20).Options;function S(K,F,H,V){var ee=new A(K,F,H,V);return ee.beautify()}L.exports=S,L.exports.defaultOptions=function(){return new m}},function(L,p,a){var A=a(20).Options,m=a(2).Output,S=a(21).Tokenizer,K=a(21).TOKEN,F=/\r\n|[\r\n]/,H=/\r\n|[\r\n]/g,V=function(me,I){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=me.max_preserve_newlines,this.preserve_newlines=me.preserve_newlines,this._output=new m(me,I)};V.prototype.current_line_has_match=function(me){return this._output.current_line.has_match(me)},V.prototype.set_space_before_token=function(me,I){this._output.space_before_token=me,this._output.non_breaking_space=I},V.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},V.prototype.add_raw_token=function(me){this._output.add_raw_token(me)},V.prototype.print_preserved_newlines=function(me){var I=0;me.type!==K.TEXT&&me.previous.type!==K.TEXT&&(I=me.newlines?1:0),this.preserve_newlines&&(I=me.newlines<this.max_preserve_newlines+1?me.newlines:this.max_preserve_newlines+1);for(var _e=0;_e<I;_e++)this.print_newline(_e>0);return I!==0},V.prototype.traverse_whitespace=function(me){return me.whitespace_before||me.newlines?(this.print_preserved_newlines(me)||(this._output.space_before_token=!0),!0):!1},V.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},V.prototype.print_newline=function(me){this._output.add_new_line(me)},V.prototype.print_token=function(me){me.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(me.text))},V.prototype.indent=function(){this.indent_level++},V.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},V.prototype.get_full_indent=function(me){return me=this.indent_level+(me||0),me<1?"":this._output.get_indent_string(me)};var ee=function(me){for(var I=null,_e=me.next;_e.type!==K.EOF&&me.closed!==_e;){if(_e.type===K.ATTRIBUTE&&_e.text==="type"){_e.next&&_e.next.type===K.EQUALS&&_e.next.next&&_e.next.next.type===K.VALUE&&(I=_e.next.next.text);break}_e=_e.next}return I},B=function(me,I){var _e=null,oe=null;return I.closed?(me==="script"?_e="text/javascript":me==="style"&&(_e="text/css"),_e=ee(I)||_e,_e.search("text/css")>-1?oe="css":_e.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?oe="javascript":_e.search(/(text|application|dojo)\/(x-)?(html)/)>-1?oe="html":_e.search(/test\/null/)>-1&&(oe="null"),oe):null};function G(me,I){return I.indexOf(me)!==-1}function ce(me,I,_e){this.parent=me||null,this.tag=I?I.tag_name:"",this.indent_level=_e||0,this.parser_token=I||null}function q(me){this._printer=me,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(me){var I=new ce(this._current_frame,me,this._printer.indent_level);this._current_frame=I},q.prototype._try_pop_frame=function(me){var I=null;return me&&(I=me.parser_token,this._printer.indent_level=me.indent_level,this._current_frame=me.parent),I},q.prototype._get_frame=function(me,I){for(var _e=this._current_frame;_e&&me.indexOf(_e.tag)===-1;){if(I&&I.indexOf(_e.tag)!==-1){_e=null;break}_e=_e.parent}return _e},q.prototype.try_pop=function(me,I){var _e=this._get_frame([me],I);return this._try_pop_frame(_e)},q.prototype.indent_to_tag=function(me){var I=this._get_frame(me);I&&(this._printer.indent_level=I.indent_level)};function be(me,I,_e,oe){this._source_text=me||"",I=I||{},this._js_beautify=_e,this._css_beautify=oe,this._tag_stack=null;var he=new A(I,"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"}be.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var me=this._source_text,I=this._options.eol;this._options.eol==="auto"&&(I=`
|
|
|
`,me&&F.test(me)&&(I=me.match(F)[0])),me=me.replace(H,`
|
|
|
`);var _e=me.match(/^[\t ]*/)[0],oe={text:"",type:""},he=new xe,ve=new V(this._options,_e),_=new S(me,this._options).tokenize();this._tag_stack=new q(ve);for(var N=null,X=_.next();X.type!==K.EOF;)X.type===K.TAG_OPEN||X.type===K.COMMENT?(N=this._handle_tag_open(ve,X,he,oe,_),he=N):X.type===K.ATTRIBUTE||X.type===K.EQUALS||X.type===K.VALUE||X.type===K.TEXT&&!he.tag_complete?N=this._handle_inside_tag(ve,X,he,oe):X.type===K.TAG_CLOSE?N=this._handle_tag_close(ve,X,he):X.type===K.TEXT?N=this._handle_text(ve,X,he):X.type===K.CONTROL_FLOW_OPEN?N=this._handle_control_flow_open(ve,X):X.type===K.CONTROL_FLOW_CLOSE?N=this._handle_control_flow_close(ve,X):ve.add_raw_token(X),oe=N,X=_.next();var pe=ve._output.get_code(I);return pe},be.prototype._handle_control_flow_open=function(me,I){var _e={text:I.text,type:I.type};return me.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),I.newlines?me.print_preserved_newlines(I):me.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),me.print_token(I),me.indent(),_e},be.prototype._handle_control_flow_close=function(me,I){var _e={text:I.text,type:I.type};return me.deindent(),I.newlines?me.print_preserved_newlines(I):me.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),me.print_token(I),_e},be.prototype._handle_tag_close=function(me,I,_e){var oe={text:I.text,type:I.type};return me.alignment_size=0,_e.tag_complete=!0,me.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),_e.is_unformatted?me.add_raw_token(I):(_e.tag_start_char==="<"&&(me.set_space_before_token(I.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&_e.has_wrapped_attrs&&me.print_newline(!1)),me.print_token(I)),_e.indent_content&&!(_e.is_unformatted||_e.is_content_unformatted)&&(me.indent(),_e.indent_content=!1),!_e.is_inline_element&&!(_e.is_unformatted||_e.is_content_unformatted)&&me.set_wrap_point(),oe},be.prototype._handle_inside_tag=function(me,I,_e,oe){var he=_e.has_wrapped_attrs,ve={text:I.text,type:I.type};return me.set_space_before_token(I.newlines||I.whitespace_before!=="",!0),_e.is_unformatted?me.add_raw_token(I):_e.tag_start_char==="{"&&I.type===K.TEXT?me.print_preserved_newlines(I)?(I.newlines=0,me.add_raw_token(I)):me.print_token(I):(I.type===K.ATTRIBUTE?me.set_space_before_token(!0):(I.type===K.EQUALS||I.type===K.VALUE&&I.previous.type===K.EQUALS)&&me.set_space_before_token(!1),I.type===K.ATTRIBUTE&&_e.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(me.traverse_whitespace(I),he=he||I.newlines!==0),this._is_wrap_attributes_force&&_e.attr_count>=this._options.wrap_attributes_min_attrs&&(oe.type!==K.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(me.print_newline(!1),he=!0)),me.print_token(I),he=he||me.previous_token_wrapped(),_e.has_wrapped_attrs=he),ve},be.prototype._handle_text=function(me,I,_e){var oe={text:I.text,type:"TK_CONTENT"};return _e.custom_beautifier_name?this._print_custom_beatifier_text(me,I,_e):_e.is_unformatted||_e.is_content_unformatted?me.add_raw_token(I):(me.traverse_whitespace(I),me.print_token(I)),oe},be.prototype._print_custom_beatifier_text=function(me,I,_e){var oe=this;if(I.text!==""){var he=I.text,ve,_=1,N="",X="";_e.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?ve=this._js_beautify:_e.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?ve=this._css_beautify:_e.custom_beautifier_name==="html"&&(ve=function(lr,qt){var Ze=new be(lr,qt,oe._js_beautify,oe._css_beautify);return Ze.beautify()}),this._options.indent_scripts==="keep"?_=0:this._options.indent_scripts==="separate"&&(_=-me.indent_level);var pe=me.get_full_indent(_);if(he=he.replace(/\n[ \t]*$/,""),_e.custom_beautifier_name!=="html"&&he[0]==="<"&&he.match(/^(<!--|<!\[CDATA\[)/)){var qe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(he);if(!qe){me.add_raw_token(I);return}N=pe+qe[1]+`
|
|
|
`,he=qe[4],qe[5]&&(X=pe+qe[5]),he=he.replace(/\n[ \t]*$/,""),(qe[2]||qe[3].indexOf(`
|
|
|
`)!==-1)&&(qe=qe[3].match(/[ \t]+$/),qe&&(I.whitespace_before=qe[0]))}if(he)if(ve){var at=function(){this.eol=`
|
|
|
`};at.prototype=this._options.raw_options;var rt=new at;he=ve(pe+he,rt)}else{var Rt=I.whitespace_before;Rt&&(he=he.replace(new RegExp(`
|
|
|
(`+Rt+")?","g"),`
|
|
|
`)),he=pe+he.replace(/\n/g,`
|
|
|
`+pe)}N&&(he?he=N+he+`
|
|
|
`+X:he=N+X),me.print_newline(!1),he&&(I.text=he,I.whitespace_before="",I.newlines=0,me.add_raw_token(I),me.print_newline(!0))}},be.prototype._handle_tag_open=function(me,I,_e,oe,he){var ve=this._get_tag_open_token(I);if((_e.is_unformatted||_e.is_content_unformatted)&&!_e.is_empty_element&&I.type===K.TAG_OPEN&&!ve.is_start_tag?(me.add_raw_token(I),ve.start_tag_token=this._tag_stack.try_pop(ve.tag_name)):(me.traverse_whitespace(I),this._set_tag_position(me,I,ve,_e,oe),ve.is_inline_element||me.set_wrap_point(),me.print_token(I)),ve.is_start_tag&&this._is_wrap_attributes_force){var _=0,N;do N=he.peek(_),N.type===K.ATTRIBUTE&&(ve.attr_count+=1),_+=1;while(N.type!==K.EOF&&N.type!==K.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(ve.alignment_size=I.text.length+1),!ve.tag_complete&&!ve.is_unformatted&&(me.alignment_size=ve.alignment_size),ve};var xe=function(me,I){if(this.parent=me||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="",!I)this.tag_complete=!0;else{var _e;this.tag_start_char=I.text[0],this.text=I.text,this.tag_start_char==="<"?(_e=I.text.match(/^<([^\s>]*)/),this.tag_check=_e?_e[1]:""):(_e=I.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=_e?_e[1]:"",(I.text.startsWith("{{#>")||I.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&I.next!==null?this.tag_check=I.next.text.split(" ")[0]:this.tag_check=I.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),I.type===K.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||I.closed&&I.closed.text==="/>";var oe=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(oe=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(oe)))}};be.prototype._get_tag_open_token=function(me){var I=new xe(this._tag_stack.get_parser_token(),me);return I.alignment_size=this._options.wrap_attributes_indent_size,I.is_end_tag=I.is_end_tag||G(I.tag_check,this._options.void_elements),I.is_empty_element=I.tag_complete||I.is_start_tag&&I.is_end_tag,I.is_unformatted=!I.tag_complete&&G(I.tag_check,this._options.unformatted),I.is_content_unformatted=!I.is_empty_element&&G(I.tag_check,this._options.content_unformatted),I.is_inline_element=G(I.tag_name,this._options.inline)||this._options.inline_custom_elements&&I.tag_name.includes("-")||I.tag_start_char==="{",I},be.prototype._set_tag_position=function(me,I,_e,oe,he){if(_e.is_empty_element||(_e.is_end_tag?_e.start_tag_token=this._tag_stack.try_pop(_e.tag_name):(this._do_optional_end_element(_e)&&(_e.is_inline_element||me.print_newline(!1)),this._tag_stack.record_tag(_e),(_e.tag_name==="script"||_e.tag_name==="style")&&!(_e.is_unformatted||_e.is_content_unformatted)&&(_e.custom_beautifier_name=B(_e.tag_check,I)))),G(_e.tag_check,this._options.extra_liners)&&(me.print_newline(!1),me._output.just_added_blankline()||me.print_newline(!0)),_e.is_empty_element){if(_e.tag_start_char==="{"&&_e.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),_e.indent_content=!0;var ve=me.current_line_has_match(/{{#if/);ve||me.print_newline(!1)}_e.tag_name==="!--"&&he.type===K.TAG_CLOSE&&oe.is_end_tag&&_e.text.indexOf(`
|
|
|
`)===-1||(_e.is_inline_element||_e.is_unformatted||me.print_newline(!1),this._calcluate_parent_multiline(me,_e))}else if(_e.is_end_tag){var _=!1;_=_e.start_tag_token&&_e.start_tag_token.multiline_content,_=_||!_e.is_inline_element&&!(oe.is_inline_element||oe.is_unformatted)&&!(he.type===K.TAG_CLOSE&&_e.start_tag_token===oe)&&he.type!=="TK_CONTENT",(_e.is_content_unformatted||_e.is_unformatted)&&(_=!1),_&&me.print_newline(!1)}else _e.indent_content=!_e.custom_beautifier_name,_e.tag_start_char==="<"&&(_e.tag_name==="html"?_e.indent_content=this._options.indent_inner_html:_e.tag_name==="head"?_e.indent_content=this._options.indent_head_inner_html:_e.tag_name==="body"&&(_e.indent_content=this._options.indent_body_inner_html)),!(_e.is_inline_element||_e.is_unformatted)&&(he.type!=="TK_CONTENT"||_e.is_content_unformatted)&&me.print_newline(!1),this._calcluate_parent_multiline(me,_e)},be.prototype._calcluate_parent_multiline=function(me,I){I.parent&&me._output.just_added_newline()&&!((I.is_inline_element||I.is_unformatted)&&I.parent.is_inline_element)&&(I.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"],ae=["a","audio","del","ins","map","noscript","video"];be.prototype._do_optional_end_element=function(me){var I=null;if(!(me.is_empty_element||!me.is_start_tag||!me.parent)){if(me.tag_name==="body")I=I||this._tag_stack.try_pop("head");else if(me.tag_name==="li")I=I||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(me.tag_name==="dd"||me.tag_name==="dt")I=I||this._tag_stack.try_pop("dt",["dl"]),I=I||this._tag_stack.try_pop("dd",["dl"]);else if(me.parent.tag_name==="p"&&Le.indexOf(me.tag_name)!==-1){var _e=me.parent.parent;(!_e||ae.indexOf(_e.tag_name)===-1)&&(I=I||this._tag_stack.try_pop("p"))}else me.tag_name==="rp"||me.tag_name==="rt"?(I=I||this._tag_stack.try_pop("rt",["ruby","rtc"]),I=I||this._tag_stack.try_pop("rp",["ruby","rtc"])):me.tag_name==="optgroup"?I=I||this._tag_stack.try_pop("optgroup",["select"]):me.tag_name==="option"?I=I||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):me.tag_name==="colgroup"?I=I||this._tag_stack.try_pop("caption",["table"]):me.tag_name==="thead"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"])):me.tag_name==="tbody"||me.tag_name==="tfoot"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"]),I=I||this._tag_stack.try_pop("thead",["table"]),I=I||this._tag_stack.try_pop("tbody",["table"])):me.tag_name==="tr"?(I=I||this._tag_stack.try_pop("caption",["table"]),I=I||this._tag_stack.try_pop("colgroup",["table"]),I=I||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(me.tag_name==="th"||me.tag_name==="td")&&(I=I||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),I=I||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return me.parent=this._tag_stack.get_parser_token(),I}},L.exports.Beautifier=be},function(L,p,a){var A=a(6).Options;function m(S){A.call(this,S,"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"])}m.prototype=new A,L.exports.Options=m},function(L,p,a){var A=a(9).Tokenizer,m=a(9).TOKEN,S=a(13).Directives,K=a(14).TemplatablePattern,F=a(12).Pattern,H={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:m.START,RAW:m.RAW,EOF:m.EOF},V=new S(/<\!--/,/-->/),ee=function(B,G){A.call(this,B,G),this._current_tag_name="";var ce=new K(this._input).read_options(this._options),q=new F(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 be=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=q.matching(be).until_after(be)}};ee.prototype=new A,ee.prototype._is_comment=function(B){return!1},ee.prototype._is_opening=function(B){return B.type===H.TAG_OPEN||B.type===H.CONTROL_FLOW_OPEN},ee.prototype._is_closing=function(B,G){return B.type===H.TAG_CLOSE&&G&&((B.text===">"||B.text==="/>")&&G.text[0]==="<"||B.text==="}}"&&G.text[0]==="{"&&G.text[1]==="{")||B.type===H.CONTROL_FLOW_CLOSE&&B.text==="}"&&G.text.endsWith("{")},ee.prototype._reset=function(){this._current_tag_name=""},ee.prototype._get_next_token=function(B,G){var ce=null;this._readWhitespace();var q=this._input.peek();return q===null?this._create_token(H.EOF,""):(ce=ce||this._read_open_handlebars(q,G),ce=ce||this._read_attribute(q,B,G),ce=ce||this._read_close(q,G),ce=ce||this._read_control_flows(q,G),ce=ce||this._read_raw_content(q,B,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(H.UNKNOWN,this._input.next()),ce)},ee.prototype._read_comment_or_cdata=function(B){var G=null,ce=null,q=null;if(B==="<"){var be=this._input.peek(1);be==="!"&&(ce=this.__patterns.comment.read(),ce?(q=V.get_directives(ce),q&&q.ignore==="start"&&(ce+=V.readIgnored(this._input))):ce=this.__patterns.cdata.read()),ce&&(G=this._create_token(H.COMMENT,ce),G.directives=q)}return G},ee.prototype._read_processing=function(B){var G=null,ce=null,q=null;if(B==="<"){var be=this._input.peek(1);(be==="!"||be==="?")&&(ce=this.__patterns.conditional_comment.read(),ce=ce||this.__patterns.processing.read()),ce&&(G=this._create_token(H.COMMENT,ce),G.directives=q)}return G},ee.prototype._read_open=function(B,G){var ce=null,q=null;return(!G||G.type===H.CONTROL_FLOW_OPEN)&&B==="<"&&(ce=this._input.next(),this._input.peek()==="/"&&(ce+=this._input.next()),ce+=this.__patterns.element_name.read(),q=this._create_token(H.TAG_OPEN,ce)),q},ee.prototype._read_open_handlebars=function(B,G){var ce=null,q=null;return(!G||G.type===H.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&B==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(ce=this.__patterns.handlebars_comment.read(),ce=ce||this.__patterns.handlebars.read(),q=this._create_token(H.COMMENT,ce)):(ce=this.__patterns.handlebars_open.read(),q=this._create_token(H.TAG_OPEN,ce))),q},ee.prototype._read_control_flows=function(B,G){var ce="",q=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return q;if(B==="@"){if(ce=this.__patterns.angular_control_flow_start.read(),ce==="")return q;for(var be=ce.endsWith("(")?1:0,xe=0;!(ce.endsWith("{")&&be===xe);){var Le=this._input.next();if(Le===null)break;Le==="("?be++:Le===")"&&xe++,ce+=Le}q=this._create_token(H.CONTROL_FLOW_OPEN,ce)}else B==="}"&&G&&G.type===H.CONTROL_FLOW_OPEN&&(ce=this._input.next(),q=this._create_token(H.CONTROL_FLOW_CLOSE,ce));return q},ee.prototype._read_close=function(B,G){var ce=null,q=null;return G&&G.type===H.TAG_OPEN&&(G.text[0]==="<"&&(B===">"||B==="/"&&this._input.peek(1)===">")?(ce=this._input.next(),B==="/"&&(ce+=this._input.next()),q=this._create_token(H.TAG_CLOSE,ce)):G.text[0]==="{"&&B==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),q=this._create_token(H.TAG_CLOSE,"}}"))),q},ee.prototype._read_attribute=function(B,G,ce){var q=null,be="";if(ce&&ce.text[0]==="<")if(B==="=")q=this._create_token(H.EQUALS,this._input.next());else if(B==='"'||B==="'"){var xe=this._input.next();B==='"'?xe+=this.__patterns.double_quote.read():xe+=this.__patterns.single_quote.read(),q=this._create_token(H.VALUE,xe)}else be=this.__patterns.attribute.read(),be&&(G.type===H.EQUALS?q=this._create_token(H.VALUE,be):q=this._create_token(H.ATTRIBUTE,be));return q},ee.prototype._is_content_unformatted=function(B){return this._options.void_elements.indexOf(B)===-1&&(this._options.content_unformatted.indexOf(B)!==-1||this._options.unformatted.indexOf(B)!==-1)},ee.prototype._read_raw_content=function(B,G,ce){var q="";if(ce&&ce.text[0]==="{")q=this.__patterns.handlebars_raw_close.read();else if(G.type===H.TAG_CLOSE&&G.opened.text[0]==="<"&&G.text[0]!=="/"){var be=G.opened.text.substr(1).toLowerCase();if(be==="script"||be==="style"){var xe=this._read_comment_or_cdata(B);if(xe)return xe.type=H.TEXT,xe;q=this._input.readUntil(new RegExp("</"+be+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(be)&&(q=this._input.readUntil(new RegExp("</"+be+"[\\n\\r\\t ]*?>","ig")))}return q?this._create_token(H.TEXT,q):null},ee.prototype._read_content_word=function(B,G){var ce="";if(this._options.unformatted_content_delimiter&&B===this._options.unformatted_content_delimiter[0]&&(ce=this.__patterns.unformatted_content_delimiter.read()),ce||(ce=G&&G.type===H.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),ce)return this._create_token(H.TEXT,ce)},L.exports.Tokenizer=ee,L.exports.TOKEN=H}],T={};function n(L){var p=T[L];if(p!==void 0)return p.exports;var a=T[L]={exports:{}};return O[L](a,a.exports,n),a.exports}var o=n(18);se=o})();var ke=se;if(1)we=[g,g(32328),g(34655)],Fe=function(O){var T=g(32328),n=g(34655);return{html_beautify:function(o,L){return ke(o,L,T.js_beautify,n.css_beautify)}}}.apply(Gt,we),Fe!==void 0&&(yn.exports=Fe);else var ie,Y})()},32328:function(yn,Gt){var g,we;(function(){var Fe;(function(){"use strict";var ke=[function(T,n,o){var L=o(1).Beautifier,p=o(5).Options;function a(A,m){var S=new L(A,m);return S.beautify()}T.exports=a,T.exports.defaultOptions=function(){return new p}},function(T,n,o){var L=o(2).Output,p=o(3).Token,a=o(4),A=o(5).Options,m=o(7).Tokenizer,S=o(7).line_starters,K=o(7).positionable_operators,F=o(7).TOKEN;function H(N,X){return X.indexOf(N)!==-1}function V(N){return N.replace(/^\s+/g,"")}function ee(N){for(var X={},pe=0;pe<N.length;pe++)X[N[pe].replace(/-/g,"_")]=N[pe];return X}function B(N,X){return N&&N.type===F.RESERVED&&N.text===X}function G(N,X){return N&&N.type===F.RESERVED&&H(N.text,X)}var ce=["case","return","do","if","throw","else","await","break","continue","async"],q=["before-newline","after-newline","preserve-newline"],be=ee(q),xe=[be.before_newline,be.preserve_newline],Le={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function ae(N,X){X.multiline_frame||X.mode===Le.ForInitializer||X.mode===Le.Conditional||N.remove_indent(X.start_line_index)}function me(N){N=N.replace(a.allLineBreaks,`
|
|
|
`);for(var X=[],pe=N.indexOf(`
|
|
|
`);pe!==-1;)X.push(N.substring(0,pe)),N=N.substring(pe+1),pe=N.indexOf(`
|
|
|
`);return N.length&&X.push(N),X}function I(N){return N===Le.ArrayLiteral}function _e(N){return H(N,[Le.Expression,Le.ForInitializer,Le.Conditional])}function oe(N,X){for(var pe=0;pe<N.length;pe++){var qe=N[pe].trim();if(qe.charAt(0)!==X)return!1}return!0}function he(N,X){for(var pe=0,qe=N.length,at;pe<qe;pe++)if(at=N[pe],at&&at.indexOf(X)!==0)return!1;return!0}function ve(N,X){X=X||{},this._source_text=N||"",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 A(X)}ve.prototype.create_flags=function(N,X){var pe=0;N&&(pe=N.indentation_level,!this._output.just_added_newline()&&N.line_indent_level>pe&&(pe=N.line_indent_level));var qe={mode:X,parent:N,last_token:N?N.last_token:new p(F.START_BLOCK,""),last_word:N?N.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:pe,alignment:0,line_indent_level:N?N.line_indent_level:pe,start_line_index:this._output.get_line_number(),ternary_depth:0};return qe},ve.prototype._reset=function(N){var X=N.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new L(this._options,X),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Le.BlockStatement);var pe=new m(N,this._options);return this._tokens=pe.tokenize(),N},ve.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var N,X=this._reset(this._source_text),pe=this._options.eol;this._options.eol==="auto"&&(pe=`
|
|
|
`,X&&a.lineBreak.test(X||"")&&(pe=X.match(a.lineBreak)[0]));for(var qe=this._tokens.next();qe;)this.handle_token(qe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=qe,qe=this._tokens.next();return N=this._output.get_code(pe),N},ve.prototype.handle_token=function(N,X){N.type===F.START_EXPR?this.handle_start_expr(N):N.type===F.END_EXPR?this.handle_end_expr(N):N.type===F.START_BLOCK?this.handle_start_block(N):N.type===F.END_BLOCK?this.handle_end_block(N):N.type===F.WORD?this.handle_word(N):N.type===F.RESERVED?this.handle_word(N):N.type===F.SEMICOLON?this.handle_semicolon(N):N.type===F.STRING?this.handle_string(N):N.type===F.EQUALS?this.handle_equals(N):N.type===F.OPERATOR?this.handle_operator(N):N.type===F.COMMA?this.handle_comma(N):N.type===F.BLOCK_COMMENT?this.handle_block_comment(N,X):N.type===F.COMMENT?this.handle_comment(N,X):N.type===F.DOT?this.handle_dot(N):N.type===F.EOF?this.handle_eof(N):N.type===F.UNKNOWN?this.handle_unknown(N,X):this.handle_unknown(N,X)},ve.prototype.handle_whitespace_and_comments=function(N,X){var pe=N.newlines,qe=this._options.keep_array_indentation&&I(this._flags.mode);if(N.comments_before)for(var at=N.comments_before.next();at;)this.handle_whitespace_and_comments(at,X),this.handle_token(at,X),at=N.comments_before.next();if(qe)for(var rt=0;rt<pe;rt+=1)this.print_newline(rt>0,X);else if(this._options.max_preserve_newlines&&pe>this._options.max_preserve_newlines&&(pe=this._options.max_preserve_newlines),this._options.preserve_newlines&&pe>1){this.print_newline(!1,X);for(var Rt=1;Rt<pe;Rt+=1)this.print_newline(!0,X)}};var _=["async","break","continue","return","throw","yield"];ve.prototype.allow_wrap_or_preserved_newline=function(N,X){if(X=X===void 0?!1:X,!this._output.just_added_newline()){var pe=this._options.preserve_newlines&&N.newlines||X,qe=H(this._flags.last_token.text,K)||H(N.text,K);if(qe){var at=H(this._flags.last_token.text,K)&&H(this._options.operator_position,xe)||H(N.text,K);pe=pe&&at}if(pe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(G(this._flags.last_token,_))return;this._output.set_wrap_point()}}},ve.prototype.print_newline=function(N,X){if(!X&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==F.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var pe=this._tokens.peek();this._flags.mode===Le.Statement&&!(this._flags.if_block&&B(pe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(N)&&(this._flags.multiline_frame=!0)},ve.prototype.print_token_line_indentation=function(N){this._output.just_added_newline()&&(this._options.keep_array_indentation&&N.newlines&&(N.text==="["||I(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(N.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(N){if(this._output.raw){this._output.add_raw_token(N);return}if(this._options.comma_first&&N.previous&&N.previous.type===F.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var X=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(X),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(N),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(N),this._output.non_breaking_space=!0,this._output.add_token(N.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(N){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,N),this._flags=this.create_flags(this._previous_flags,N),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&&ae(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(N){var X=!1;return X=X||G(this._flags.last_token,["var","let","const"])&&N.type===F.WORD,X=X||B(this._flags.last_token,"do"),X=X||!(this._flags.parent.mode===Le.ObjectLiteral&&this._flags.mode===Le.Statement)&&G(this._flags.last_token,_)&&!N.newlines,X=X||B(this._flags.last_token,"else")&&!(B(N,"if")&&!N.comments_before),X=X||this._flags.last_token.type===F.END_EXPR&&(this._previous_flags.mode===Le.ForInitializer||this._previous_flags.mode===Le.Conditional),X=X||this._flags.last_token.type===F.WORD&&this._flags.mode===Le.BlockStatement&&!this._flags.in_case&&!(N.text==="--"||N.text==="++")&&this._last_last_text!=="function"&&N.type!==F.WORD&&N.type!==F.RESERVED,X=X||this._flags.mode===Le.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||G(this._flags.last_token,["get","set"])),X?(this.set_mode(Le.Statement),this.indent(),this.handle_whitespace_and_comments(N,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(N,G(N,["do","for","if","while"])),!0):!1},ve.prototype.handle_start_expr=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N);var X=Le.Expression;if(N.text==="["){if(this._flags.last_token.type===F.WORD||this._flags.last_token.text===")"){G(this._flags.last_token,S)&&(this._output.space_before_token=!0),this.print_token(N),this.set_mode(X),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}X=Le.ArrayLiteral,I(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()),H(this._flags.last_token.type,[F.START_EXPR,F.END_EXPR,F.WORD,F.OPERATOR,F.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===F.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,X=Le.ForInitializer):H(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,X=Le.Conditional):H(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&N.whitespace_before===""?this._output.space_before_token=!1:(H(this._flags.last_token.text,S)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===F.EQUALS||this._flags.last_token.type===F.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(N);else if(this._flags.last_token.type===F.WORD){this._output.space_before_token=!1;var pe=this._tokens.peek(-3);if(this._options.space_after_named_function&&pe){var qe=this._tokens.peek(-4);G(pe,["async","function"])||pe.text==="*"&&G(qe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Le.ObjectLiteral?(pe.text==="{"||pe.text===","||pe.text==="*"&&(qe.text==="{"||qe.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(N);(this._flags.last_token.type===F.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(H(this._last_last_text,["function","yield"])||this._flags.mode===Le.ObjectLiteral&&H(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===F.START_BLOCK?this.print_newline():(this._flags.last_token.type===F.END_EXPR||this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===F.COMMA)&&this.allow_wrap_or_preserved_newline(N,N.newlines),this.print_token(N),this.set_mode(X),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},ve.prototype.handle_end_expr=function(N){for(;this._flags.mode===Le.Statement;)this.restore_mode();this.handle_whitespace_and_comments(N),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(N,N.text==="]"&&I(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===F.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(N),this.restore_mode(),ae(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(N){this.handle_whitespace_and_comments(N);var X=this._tokens.peek(),pe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===F.END_EXPR?(this.set_mode(Le.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Le.BlockStatement):pe&&(H(pe.text,[":",","])&&H(X.type,[F.STRING,F.WORD,F.RESERVED])||H(X.text,["get","set","..."])&&H(pe.type,[F.WORD,F.RESERVED]))?H(this._last_last_text,["class","interface"])&&!H(pe.text,[":",","])?this.set_mode(Le.BlockStatement):this.set_mode(Le.ObjectLiteral):this._flags.last_token.type===F.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Le.BlockStatement):H(this._flags.last_token.type,[F.EQUALS,F.START_EXPR,F.COMMA,F.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 qe=!X.comments_before&&X.text==="}",at=qe&&this._flags.last_word==="function"&&this._flags.last_token.type===F.END_EXPR;if(this._options.brace_preserve_inline){var rt=0,Rt=null;this._flags.inline_frame=!0;do if(rt+=1,Rt=this._tokens.peek(rt-1),Rt.newlines){this._flags.inline_frame=!1;break}while(Rt.type!==F.EOF&&!(Rt.type===F.END_BLOCK&&Rt.opened===N))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&N.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==F.OPERATOR&&(at||this._flags.last_token.type===F.EQUALS||G(this._flags.last_token,ce)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(I(this._previous_flags.mode)&&(this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.COMMA)&&((this._flags.last_token.type===F.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(N),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==F.OPERATOR&&this._flags.last_token.type!==F.START_EXPR&&(H(this._flags.last_token.type,[F.START_BLOCK,F.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(N),this.indent(),!qe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},ve.prototype.handle_end_block=function(N){for(this.handle_whitespace_and_comments(N);this._flags.mode===Le.Statement;)this.restore_mode();var X=this._flags.last_token.type===F.START_BLOCK;this._flags.inline_frame&&!X?this._output.space_before_token=!0:this._options.brace_style==="expand"?X||this.print_newline():X||(I(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(N)},ve.prototype.handle_word=function(N){if(N.type===F.RESERVED){if(H(N.text,["set","get"])&&this._flags.mode!==Le.ObjectLiteral)N.type=F.WORD;else if(N.text==="import"&&H(this._tokens.peek().text,["(","."]))N.type=F.WORD;else if(H(N.text,["as","from"])&&!this._flags.import_block)N.type=F.WORD;else if(this._flags.mode===Le.ObjectLiteral){var X=this._tokens.peek();X.text===":"&&(N.type=F.WORD)}}if(this.start_of_statement(N)?G(this._flags.last_token,["var","let","const"])&&N.type===F.WORD&&(this._flags.declaration_statement=!0):N.newlines&&!_e(this._flags.mode)&&(this._flags.last_token.type!==F.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==F.EQUALS&&(this._options.preserve_newlines||!G(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(N),this.print_newline()):this.handle_whitespace_and_comments(N),this._flags.do_block&&!this._flags.do_while)if(B(N,"while")){this._output.space_before_token=!0,this.print_token(N),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&&B(N,"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(N,["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(N),this._flags.in_case=!0;return}if((this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.EQUALS||this._flags.last_token.type===F.OPERATOR)&&!this.start_of_object_property()&&!(H(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Le.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(N),B(N,"function")){(H(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(H(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===F.OPERATOR))&&!this._output.just_added_blankline()&&!N.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD?G(this._flags.last_token,["get","set","new","export"])||G(this._flags.last_token,_)?this._output.space_before_token=!0:B(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===F.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(_e(this._flags.mode)||I(this._flags.mode))||this.print_newline(),this.print_token(N),this._flags.last_word=N.text;return}var pe="NONE";if(this._flags.last_token.type===F.END_BLOCK?this._previous_flags.inline_frame?pe="SPACE":G(N,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&N.newlines?pe="NEWLINE":(pe="SPACE",this._output.space_before_token=!0):pe="NEWLINE":this._flags.last_token.type===F.SEMICOLON&&this._flags.mode===Le.BlockStatement?pe="NEWLINE":this._flags.last_token.type===F.SEMICOLON&&_e(this._flags.mode)?pe="SPACE":this._flags.last_token.type===F.STRING?pe="NEWLINE":this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD||this._flags.last_token.text==="*"&&(H(this._last_last_text,["function","yield"])||this._flags.mode===Le.ObjectLiteral&&H(this._last_last_text,["{",","]))?pe="SPACE":this._flags.last_token.type===F.START_BLOCK?this._flags.inline_frame?pe="SPACE":pe="NEWLINE":this._flags.last_token.type===F.END_EXPR&&(this._output.space_before_token=!0,pe="NEWLINE"),G(N,S)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?pe="SPACE":pe="NEWLINE"),G(N,["else","catch","finally"]))if((!(this._flags.last_token.type===F.END_BLOCK&&this._previous_flags.mode===Le.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&N.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var qe=this._output.current_line;qe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else pe==="NEWLINE"?G(this._flags.last_token,ce)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&G(N,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==F.END_EXPR?(this._flags.last_token.type!==F.START_EXPR||!G(N,["var","let","const"]))&&this._flags.last_token.text!==":"&&(B(N,"if")&&B(N.previous,"else")?this._output.space_before_token=!0:this.print_newline()):G(N,S)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&I(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():pe==="SPACE"&&(this._output.space_before_token=!0);N.previous&&(N.previous.type===F.WORD||N.previous.type===F.RESERVED)&&(this._output.space_before_token=!0),this.print_token(N),this._flags.last_word=N.text,N.type===F.RESERVED&&(N.text==="do"?this._flags.do_block=!0:N.text==="if"?this._flags.if_block=!0:N.text==="import"?this._flags.import_block=!0:this._flags.import_block&&B(N,"from")&&(this._flags.import_block=!1))},ve.prototype.handle_semicolon=function(N){this.start_of_statement(N)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(N);for(var X=this._tokens.peek();this._flags.mode===Le.Statement&&!(this._flags.if_block&&B(X,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(N)},ve.prototype.handle_string=function(N){N.text.startsWith("`")&&N.newlines===0&&N.whitespace_before===""&&(N.previous.text===")"||this._flags.last_token.type===F.WORD)||(this.start_of_statement(N)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(N),this._flags.last_token.type===F.RESERVED||this._flags.last_token.type===F.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR||this._flags.last_token.type===F.EQUALS||this._flags.last_token.type===F.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(N):N.text.startsWith("`")&&this._flags.last_token.type===F.END_EXPR&&(N.previous.text==="]"||N.previous.text===")")&&N.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(N)},ve.prototype.handle_equals=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(N),this._output.space_before_token=!0},ve.prototype.handle_comma=function(N){this.handle_whitespace_and_comments(N,!0),this.print_token(N),this._output.space_before_token=!0,this._flags.declaration_statement?(_e(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(N)):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(N)},ve.prototype.handle_operator=function(N){var X=N.text==="*"&&(G(this._flags.last_token,["function","yield"])||H(this._flags.last_token.type,[F.START_BLOCK,F.COMMA,F.END_BLOCK,F.SEMICOLON])),pe=H(N.text,["-","+"])&&(H(this._flags.last_token.type,[F.START_BLOCK,F.START_EXPR,F.EQUALS,F.OPERATOR])||H(this._flags.last_token.text,S)||this._flags.last_token.text===",");if(!this.start_of_statement(N)){var qe=!X;this.handle_whitespace_and_comments(N,qe)}if(N.text==="*"&&this._flags.last_token.type===F.DOT){this.print_token(N);return}if(N.text==="::"){this.print_token(N);return}if(H(N.text,["-","+"])&&this.start_of_object_property()){this.print_token(N);return}if(this._flags.last_token.type===F.OPERATOR&&H(this._options.operator_position,xe)&&this.allow_wrap_or_preserved_newline(N),N.text===":"&&this._flags.in_case){this.print_token(N),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==F.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 at=!0,rt=!0,Rt=!1;if(N.text===":"?this._flags.ternary_depth===0?at=!1:(this._flags.ternary_depth-=1,Rt=!0):N.text==="?"&&(this._flags.ternary_depth+=1),!pe&&!X&&this._options.preserve_newlines&&H(N.text,K)){var lr=N.text===":",qt=lr&&Rt,Ze=lr&&!Rt;switch(this._options.operator_position){case be.before_newline:this._output.space_before_token=!Ze,this.print_token(N),(!lr||qt)&&this.allow_wrap_or_preserved_newline(N),this._output.space_before_token=!0;return;case be.after_newline:this._output.space_before_token=!0,!lr||qt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(N):this._output.space_before_token=!1,this.print_token(N),this._output.space_before_token=!0;return;case be.preserve_newline:Ze||this.allow_wrap_or_preserved_newline(N),at=!(this._output.just_added_newline()||Ze),this._output.space_before_token=at,this.print_token(N),this._output.space_before_token=!0;return}}if(X){this.allow_wrap_or_preserved_newline(N),at=!1;var Er=this._tokens.peek();rt=Er&&H(Er.type,[F.WORD,F.RESERVED])}else if(N.text==="...")this.allow_wrap_or_preserved_newline(N),at=this._flags.last_token.type===F.START_BLOCK,rt=!1;else if(H(N.text,["--","++","!","~"])||pe){if((this._flags.last_token.type===F.COMMA||this._flags.last_token.type===F.START_EXPR)&&this.allow_wrap_or_preserved_newline(N),at=!1,rt=!1,N.newlines&&(N.text==="--"||N.text==="++"||N.text==="~")){var Cr=G(this._flags.last_token,ce)&&N.newlines;Cr&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Cr,!0)}this._flags.last_token.text===";"&&_e(this._flags.mode)&&(at=!0),this._flags.last_token.type===F.RESERVED?at=!0:this._flags.last_token.type===F.END_EXPR?at=!(this._flags.last_token.text==="]"&&(N.text==="--"||N.text==="++")):this._flags.last_token.type===F.OPERATOR&&(at=H(N.text,["--","-","++","+"])&&H(this._flags.last_token.text,["--","-","++","+"]),H(N.text,["+","-"])&&H(this._flags.last_token.text,["--","++"])&&(rt=!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||at,this.print_token(N),this._output.space_before_token=rt},ve.prototype.handle_block_comment=function(N,X){if(this._output.raw){this._output.add_raw_token(N),N.directives&&N.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(N.directives){this.print_newline(!1,X),this.print_token(N),N.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(N.text)&&!N.newlines){this._output.space_before_token=!0,this.print_token(N),this._output.space_before_token=!0;return}else this.print_block_commment(N,X)},ve.prototype.print_block_commment=function(N,X){var pe=me(N.text),qe,at=!1,rt=!1,Rt=N.whitespace_before,lr=Rt.length;if(this.print_newline(!1,X),this.print_token_line_indentation(N),this._output.add_token(pe[0]),this.print_newline(!1,X),pe.length>1){for(pe=pe.slice(1),at=oe(pe,"*"),rt=he(pe,Rt),at&&(this._flags.alignment=1),qe=0;qe<pe.length;qe++)at?(this.print_token_line_indentation(N),this._output.add_token(V(pe[qe]))):rt&&pe[qe]?(this.print_token_line_indentation(N),this._output.add_token(pe[qe].substring(lr))):(this._output.current_line.set_indent(-1),this._output.add_token(pe[qe])),this.print_newline(!1,X);this._flags.alignment=0}},ve.prototype.handle_comment=function(N,X){N.newlines?this.print_newline(!1,X):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(N),this.print_newline(!1,X)},ve.prototype.handle_dot=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N,!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(N,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(N)},ve.prototype.handle_unknown=function(N,X){this.print_token(N),N.text[N.text.length-1]===`
|
|
|
`&&this.print_newline(!1,X)},ve.prototype.handle_eof=function(N){for(;this._flags.mode===Le.Statement;)this.restore_mode();this.handle_whitespace_and_comments(N)},T.exports.Beautifier=ve},function(T){function n(p){this.__parent=p,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=[]}n.prototype.clone_empty=function(){var p=new n(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},n.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},n.prototype.has_match=function(p){for(var a=this.__items.length-1;a>=0;a--)if(this.__items[a].match(p))return!0;return!1},n.prototype.set_indent=function(p,a){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=a||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},n.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)},n.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},n.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},n.prototype.is_empty=function(){return this.__items.length===0},n.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},n.prototype.push=function(p){this.__items.push(p);var a=p.lastIndexOf(`
|
|
|
`);a!==-1?this.__character_count=p.length-a:this.__character_count+=p.length},n.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},n.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},n.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},n.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},n.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function o(p,a){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),a=a||"",p.indent_level>0&&(a=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=a,this.__base_string_length=a.length}o.prototype.get_indent_size=function(p,a){var A=this.__base_string_length;return a=a||0,p<0&&(A=0),A+=p*this.__indent_size,A+=a,A},o.prototype.get_indent_string=function(p,a){var A=this.__base_string;return a=a||0,p<0&&(p=0,A=""),a+=p*this.__indent_size,this.__ensure_cache(a),A+=this.__cache[a],A},o.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},o.prototype.__add_column=function(){var p=this.__cache.length,a=0,A="";this.__indent_size&&p>=this.__indent_size&&(a=Math.floor(p/this.__indent_size),p-=a*this.__indent_size,A=new Array(a+1).join(this.__indent_string)),p&&(A+=new Array(p+1).join(" ")),this.__cache.push(A)};function L(p,a){this.__indent_cache=new o(p,a),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new n(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}L.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},L.prototype.get_line_number=function(){return this.__lines.length},L.prototype.get_indent_string=function(p,a){return this.__indent_cache.get_indent_string(p,a)},L.prototype.get_indent_size=function(p,a){return this.__indent_cache.get_indent_size(p,a)},L.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},L.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},L.prototype.get_code=function(p){this.trim(!0);var a=this.current_line.pop();a&&(a[a.length-1]===`
|
|
|
`&&(a=a.replace(/\n+$/g,"")),this.current_line.push(a)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
|
|
|
`);return p!==`
|
|
|
`&&(A=A.replace(/[\n]/g,p)),A},L.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},L.prototype.set_indent=function(p,a){return p=p||0,a=a||0,this.next_line.set_indent(p,a),this.__lines.length>1?(this.current_line.set_indent(p,a),!0):(this.current_line.set_indent(),!1)},L.prototype.add_raw_token=function(p){for(var a=0;a<p.newlines;a++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},L.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},L.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(" "))},L.prototype.remove_indent=function(p){for(var a=this.__lines.length;p<a;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},L.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&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},L.prototype.just_added_newline=function(){return this.current_line.is_empty()},L.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},L.prototype.ensure_empty_line_above=function(p,a){for(var A=this.__lines.length-2;A>=0;){var m=this.__lines[A];if(m.is_empty())break;if(m.item(0).indexOf(p)!==0&&m.item(-1)!==a){this.__lines.splice(A+1,0,new n(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},T.exports.Output=L},function(T){function n(o,L,p,a){this.type=o,this.text=L,this.comments_before=null,this.newlines=p||0,this.whitespace_before=a||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}T.exports.Token=n},function(T,n){var o="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",L="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\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",a="\\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",A="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",m="(?:"+A+"|["+o+p+"])",S="(?:"+A+"|["+L+p+a+"])*";n.identifier=new RegExp(m+S,"g"),n.identifierStart=new RegExp(m),n.identifierMatch=new RegExp("(?:"+A+"|["+L+p+a+"])+");var K=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;n.newline=/[\n\r\u2028\u2029]/,n.lineBreak=new RegExp(`\r
|
|
|
|`+n.newline.source),n.allLineBreaks=new RegExp(n.lineBreak.source,"g")},function(T,n,o){var L=o(6).Options,p=["before-newline","after-newline","preserve-newline"];function a(A){L.call(this,A,"js");var m=this.raw_options.brace_style||null;m==="expand-strict"?this.raw_options.brace_style="expand":m==="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 S=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var K=0;K<S.length;K++)S[K]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=S[K];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",p),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}a.prototype=new L,T.exports.Options=a},function(T){function n(p,a){this.raw_options=o(p,a),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"])}n.prototype._get_array=function(p,a){var A=this.raw_options[p],m=a||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&(m=A.concat()):typeof A=="string"&&(m=A.split(/[^a-zA-Z0-9_\/\-]+/)),m},n.prototype._get_boolean=function(p,a){var A=this.raw_options[p],m=A===void 0?!!a:!!A;return m},n.prototype._get_characters=function(p,a){var A=this.raw_options[p],m=a||"";return typeof A=="string"&&(m=A.replace(/\\r/,"\r").replace(/\\n/,`
|
|
|
`).replace(/\\t/," ")),m},n.prototype._get_number=function(p,a){var A=this.raw_options[p];a=parseInt(a,10),isNaN(a)&&(a=0);var m=parseInt(A,10);return isNaN(m)&&(m=a),m},n.prototype._get_selection=function(p,a,A){var m=this._get_selection_list(p,a,A);if(m.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m[0]},n.prototype._get_selection_list=function(p,a,A){if(!a||a.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[a[0]],!this._is_valid_selection(A,a))throw new Error("Invalid Default Value!");var m=this._get_array(p,A);if(!this._is_valid_selection(m,a))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
|
|
|
`+a+`
|
|
|
You passed in: '`+this.raw_options[p]+"'");return m},n.prototype._is_valid_selection=function(p,a){return p.length&&a.length&&!p.some(function(A){return a.indexOf(A)===-1})};function o(p,a){var A={};p=L(p);var m;for(m in p)m!==a&&(A[m]=p[m]);if(a&&p[a])for(m in p[a])A[m]=p[a][m];return A}function L(p){var a={},A;for(A in p){var m=A.replace(/-/g,"_");a[m]=p[A]}return a}T.exports.Options=n,T.exports.normalizeOpts=L,T.exports.mergeOpts=o},function(T,n,o){var L=o(8).InputScanner,p=o(9).Tokenizer,a=o(9).TOKEN,A=o(13).Directives,m=o(4),S=o(12).Pattern,K=o(14).TemplatablePattern;function F(oe,he){return he.indexOf(oe)!==-1}var H={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:a.START,RAW:a.RAW,EOF:a.EOF},V=new A(/\/\*/,/\*\//),ee=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,B=/[0-9]/,G=/[^\d\.]/,ce=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),q=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";q=q.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),q="\\?\\.(?!\\d) "+q,q=q.replace(/ /g,"|");var be=new RegExp(q),xe="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Le=xe.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),ae=new RegExp("^(?:"+Le.join("|")+")$"),me,I=function(oe,he){p.call(this,oe,he),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var ve=new S(this._input),_=new K(this._input).read_options(this._options);this.__patterns={template:_,identifier:_.starting_with(m.identifier).matching(m.identifierMatch),number:ve.matching(ee),punct:ve.matching(be),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(m.lineBreak),shebang:ve.starting_with(/#!/).until_after(m.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:_.until(/['\\\n\r\u2028\u2029]/),double_quote:_.until(/["\\\n\r\u2028\u2029]/),template_text:_.until(/[`\\$]/),template_expression:_.until(/[`}\\]/)}};I.prototype=new p,I.prototype._is_comment=function(oe){return oe.type===H.COMMENT||oe.type===H.BLOCK_COMMENT||oe.type===H.UNKNOWN},I.prototype._is_opening=function(oe){return oe.type===H.START_BLOCK||oe.type===H.START_EXPR},I.prototype._is_closing=function(oe,he){return(oe.type===H.END_BLOCK||oe.type===H.END_EXPR)&&he&&(oe.text==="]"&&he.text==="["||oe.text===")"&&he.text==="("||oe.text==="}"&&he.text==="{")},I.prototype._reset=function(){me=!1},I.prototype._get_next_token=function(oe,he){var ve=null;this._readWhitespace();var _=this._input.peek();return _===null?this._create_token(H.EOF,""):(ve=ve||this._read_non_javascript(_),ve=ve||this._read_string(_),ve=ve||this._read_pair(_,this._input.peek(1)),ve=ve||this._read_word(oe),ve=ve||this._read_singles(_),ve=ve||this._read_comment(_),ve=ve||this._read_regexp(_,oe),ve=ve||this._read_xml(_,oe),ve=ve||this._read_punctuation(),ve=ve||this._create_token(H.UNKNOWN,this._input.next()),ve)},I.prototype._read_word=function(oe){var he;if(he=this.__patterns.identifier.read(),he!=="")return he=he.replace(m.allLineBreaks,`
|
|
|
`),!(oe.type===H.DOT||oe.type===H.RESERVED&&(oe.text==="set"||oe.text==="get"))&&ae.test(he)?(he==="in"||he==="of")&&(oe.type===H.WORD||oe.type===H.STRING)?this._create_token(H.OPERATOR,he):this._create_token(H.RESERVED,he):this._create_token(H.WORD,he);if(he=this.__patterns.number.read(),he!=="")return this._create_token(H.WORD,he)},I.prototype._read_singles=function(oe){var he=null;return oe==="("||oe==="["?he=this._create_token(H.START_EXPR,oe):oe===")"||oe==="]"?he=this._create_token(H.END_EXPR,oe):oe==="{"?he=this._create_token(H.START_BLOCK,oe):oe==="}"?he=this._create_token(H.END_BLOCK,oe):oe===";"?he=this._create_token(H.SEMICOLON,oe):oe==="."&&G.test(this._input.peek(1))?he=this._create_token(H.DOT,oe):oe===","&&(he=this._create_token(H.COMMA,oe)),he&&this._input.next(),he},I.prototype._read_pair=function(oe,he){var ve=null;return oe==="#"&&he==="{"&&(ve=this._create_token(H.START_BLOCK,oe+he)),ve&&(this._input.next(),this._input.next()),ve},I.prototype._read_punctuation=function(){var oe=this.__patterns.punct.read();if(oe!=="")return oe==="="?this._create_token(H.EQUALS,oe):oe==="?."?this._create_token(H.DOT,oe):this._create_token(H.OPERATOR,oe)},I.prototype._read_non_javascript=function(oe){var he="";if(oe==="#"){if(this._is_first_token()&&(he=this.__patterns.shebang.read(),he))return this._create_token(H.UNKNOWN,he.trim()+`
|
|
|
`);if(he=this.__patterns.include.read(),he)return this._create_token(H.UNKNOWN,he.trim()+`
|
|
|
`);oe=this._input.next();var ve="#";if(this._input.hasNext()&&this._input.testChar(B)){do oe=this._input.next(),ve+=oe;while(this._input.hasNext()&&oe!=="#"&&oe!=="=");return oe==="#"||(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(H.WORD,ve)}this._input.back()}else if(oe==="<"&&this._is_first_token()){if(he=this.__patterns.html_comment_start.read(),he){for(;this._input.hasNext()&&!this._input.testChar(m.newline);)he+=this._input.next();return me=!0,this._create_token(H.COMMENT,he)}}else if(me&&oe==="-"&&(he=this.__patterns.html_comment_end.read(),he))return me=!1,this._create_token(H.COMMENT,he);return null},I.prototype._read_comment=function(oe){var he=null;if(oe==="/"){var ve="";if(this._input.peek(1)==="*"){ve=this.__patterns.block_comment.read();var _=V.get_directives(ve);_&&_.ignore==="start"&&(ve+=V.readIgnored(this._input)),ve=ve.replace(m.allLineBreaks,`
|
|
|
`),he=this._create_token(H.BLOCK_COMMENT,ve),he.directives=_}else this._input.peek(1)==="/"&&(ve=this.__patterns.comment.read(),he=this._create_token(H.COMMENT,ve))}return he},I.prototype._read_string=function(oe){if(oe==="`"||oe==="'"||oe==='"'){var he=this._input.next();return this.has_char_escapes=!1,oe==="`"?he+=this._read_string_recursive("`",!0,"${"):he+=this._read_string_recursive(oe),this.has_char_escapes&&this._options.unescape_strings&&(he=_e(he)),this._input.peek()===oe&&(he+=this._input.next()),he=he.replace(m.allLineBreaks,`
|
|
|
`),this._create_token(H.STRING,he)}return null},I.prototype._allow_regexp_or_xml=function(oe){return oe.type===H.RESERVED&&F(oe.text,["return","case","throw","else","do","typeof","yield"])||oe.type===H.END_EXPR&&oe.text===")"&&oe.opened.previous.type===H.RESERVED&&F(oe.opened.previous.text,["if","while","for"])||F(oe.type,[H.COMMENT,H.START_EXPR,H.START_BLOCK,H.START,H.END_BLOCK,H.OPERATOR,H.EQUALS,H.EOF,H.SEMICOLON,H.COMMA])},I.prototype._read_regexp=function(oe,he){if(oe==="/"&&this._allow_regexp_or_xml(he)){for(var ve=this._input.next(),_=!1,N=!1;this._input.hasNext()&&(_||N||this._input.peek()!==oe)&&!this._input.testChar(m.newline);)ve+=this._input.peek(),_?_=!1:(_=this._input.peek()==="\\",this._input.peek()==="["?N=!0:this._input.peek()==="]"&&(N=!1)),this._input.next();return this._input.peek()===oe&&(ve+=this._input.next(),ve+=this._input.read(m.identifier)),this._create_token(H.STRING,ve)}return null},I.prototype._read_xml=function(oe,he){if(this._options.e4x&&oe==="<"&&this._allow_regexp_or_xml(he)){var ve="",_=this.__patterns.xml.read_match();if(_){for(var N=_[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),X=N.indexOf("{")===0,pe=0;_;){var qe=!!_[1],at=_[2],rt=!!_[_.length-1]||at.slice(0,8)==="![CDATA[";if(!rt&&(at===N||X&&at.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(qe?--pe:++pe),ve+=_[0],pe<=0)break;_=this.__patterns.xml.read_match()}return _||(ve+=this._input.match(/[\s\S]*/g)[0]),ve=ve.replace(m.allLineBreaks,`
|
|
|
`),this._create_token(H.STRING,ve)}}return null};function _e(oe){for(var he="",ve=0,_=new L(oe),N=null;_.hasNext();)if(N=_.match(/([\s]|[^\\]|\\\\)+/g),N&&(he+=N[0]),_.peek()==="\\"){if(_.next(),_.peek()==="x")N=_.match(/x([0-9A-Fa-f]{2})/g);else if(_.peek()==="u")N=_.match(/u([0-9A-Fa-f]{4})/g),N||(N=_.match(/u\{([0-9A-Fa-f]+)\}/g));else{he+="\\",_.hasNext()&&(he+=_.next());continue}if(!N||(ve=parseInt(N[1],16),ve>126&&ve<=255&&N[0].indexOf("x")===0))return oe;ve>=0&&ve<32||ve>1114111?he+="\\"+N[0]:ve===34||ve===39||ve===92?he+="\\"+String.fromCharCode(ve):he+=String.fromCharCode(ve)}return he}I.prototype._read_string_recursive=function(oe,he,ve){var _,N;oe==="'"?N=this.__patterns.single_quote:oe==='"'?N=this.__patterns.double_quote:oe==="`"?N=this.__patterns.template_text:oe==="}"&&(N=this.__patterns.template_expression);for(var X=N.read(),pe="";this._input.hasNext();){if(pe=this._input.next(),pe===oe||!he&&m.newline.test(pe)){this._input.back();break}else pe==="\\"&&this._input.hasNext()?(_=this._input.peek(),_==="x"||_==="u"?this.has_char_escapes=!0:_==="\r"&&this._input.peek(1)===`
|
|
|
`&&this._input.next(),pe+=this._input.next()):ve&&(ve==="${"&&pe==="$"&&this._input.peek()==="{"&&(pe+=this._input.next()),ve===pe&&(oe==="`"?pe+=this._read_string_recursive("}",he,"`"):pe+=this._read_string_recursive("`",he,"${"),this._input.hasNext()&&(pe+=this._input.next())));pe+=N.read(),X+=pe}return X},T.exports.Tokenizer=I,T.exports.TOKEN=H,T.exports.positionable_operators=ce.slice(),T.exports.line_starters=xe.slice()},function(T){var n=RegExp.prototype.hasOwnProperty("sticky");function o(L){this.__input=L||"",this.__input_length=this.__input.length,this.__position=0}o.prototype.restart=function(){this.__position=0},o.prototype.back=function(){this.__position>0&&(this.__position-=1)},o.prototype.hasNext=function(){return this.__position<this.__input_length},o.prototype.next=function(){var L=null;return this.hasNext()&&(L=this.__input.charAt(this.__position),this.__position+=1),L},o.prototype.peek=function(L){var p=null;return L=L||0,L+=this.__position,L>=0&&L<this.__input_length&&(p=this.__input.charAt(L)),p},o.prototype.__match=function(L,p){L.lastIndex=p;var a=L.exec(this.__input);return a&&!(n&&L.sticky)&&a.index!==p&&(a=null),a},o.prototype.test=function(L,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(L,p):!1},o.prototype.testChar=function(L,p){var a=this.peek(p);return L.lastIndex=0,a!==null&&L.test(a)},o.prototype.match=function(L){var p=this.__match(L,this.__position);return p?this.__position+=p[0].length:p=null,p},o.prototype.read=function(L,p,a){var A="",m;return L&&(m=this.match(L),m&&(A+=m[0])),p&&(m||!L)&&(A+=this.readUntil(p,a)),A},o.prototype.readUntil=function(L,p){var a="",A=this.__position;L.lastIndex=this.__position;var m=L.exec(this.__input);return m?(A=m.index,p&&(A+=m[0].length)):A=this.__input_length,a=this.__input.substring(this.__position,A),this.__position=A,a},o.prototype.readUntilAfter=function(L){return this.readUntil(L,!0)},o.prototype.get_regexp=function(L,p){var a=null,A="g";return p&&n&&(A="y"),typeof L=="string"&&L!==""?a=new RegExp(L,A):L&&(a=new RegExp(L.source,A)),a},o.prototype.get_literal_regexp=function(L){return RegExp(L.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},o.prototype.peekUntilAfter=function(L){var p=this.__position,a=this.readUntilAfter(L);return this.__position=p,a},o.prototype.lookBack=function(L){var p=this.__position-1;return p>=L.length&&this.__input.substring(p-L.length,p).toLowerCase()===L},T.exports.InputScanner=o},function(T,n,o){var L=o(8).InputScanner,p=o(3).Token,a=o(10).TokenStream,A=o(11).WhitespacePattern,m={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},S=function(K,F){this._input=new L(K),this._options=F||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new A(this._input)};S.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var K,F=new p(m.START,""),H=null,V=[],ee=new a;F.type!==m.EOF;){for(K=this._get_next_token(F,H);this._is_comment(K);)ee.add(K),K=this._get_next_token(F,H);ee.isEmpty()||(K.comments_before=ee,ee=new a),K.parent=H,this._is_opening(K)?(V.push(H),H=K):H&&this._is_closing(K,H)&&(K.opened=H,H.closed=K,H=V.pop(),K.parent=H),K.previous=F,F.next=K,this.__tokens.add(K),F=K}return this.__tokens},S.prototype._is_first_token=function(){return this.__tokens.isEmpty()},S.prototype._reset=function(){},S.prototype._get_next_token=function(K,F){this._readWhitespace();var H=this._input.read(/.+/g);return H?this._create_token(m.RAW,H):this._create_token(m.EOF,"")},S.prototype._is_comment=function(K){return!1},S.prototype._is_opening=function(K){return!1},S.prototype._is_closing=function(K,F){return!1},S.prototype._create_token=function(K,F){var H=new p(K,F,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return H},S.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},T.exports.Tokenizer=S,T.exports.TOKEN=m},function(T){function n(o){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=o}n.prototype.restart=function(){this.__position=0},n.prototype.isEmpty=function(){return this.__tokens_length===0},n.prototype.hasNext=function(){return this.__position<this.__tokens_length},n.prototype.next=function(){var o=null;return this.hasNext()&&(o=this.__tokens[this.__position],this.__position+=1),o},n.prototype.peek=function(o){var L=null;return o=o||0,o+=this.__position,o>=0&&o<this.__tokens_length&&(L=this.__tokens[o]),L},n.prototype.add=function(o){this.__parent_token&&(o.parent=this.__parent_token),this.__tokens.push(o),this.__tokens_length+=1},T.exports.TokenStream=n},function(T,n,o){var L=o(12).Pattern;function p(a,A){L.call(this,a,A),A?this._line_regexp=this._input.get_regexp(A._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}p.prototype=new L,p.prototype.__set_whitespace_patterns=function(a,A){a+="\\t ",A+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+A+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+A+"]")},p.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var A=this.__split(this._newline_regexp,a);this.newline_count=A.length-1,this.whitespace_before_token=A[this.newline_count]}return a},p.prototype.matching=function(a,A){var m=this._create();return m.__set_whitespace_patterns(a,A),m._update(),m},p.prototype._create=function(){return new p(this._input,this)},p.prototype.__split=function(a,A){a.lastIndex=0;for(var m=0,S=[],K=a.exec(A);K;)S.push(A.substring(m,K.index)),m=K.index+K[0].length,K=a.exec(A);return m<A.length?S.push(A.substring(m,A.length)):S.push(""),S},T.exports.WhitespacePattern=p},function(T){function n(o,L){this._input=o,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,L&&(this._starting_pattern=this._input.get_regexp(L._starting_pattern,!0),this._match_pattern=this._input.get_regexp(L._match_pattern,!0),this._until_pattern=this._input.get_regexp(L._until_pattern),this._until_after=L._until_after)}n.prototype.read=function(){var o=this._input.read(this._starting_pattern);return(!this._starting_pattern||o)&&(o+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),o},n.prototype.read_match=function(){return this._input.match(this._match_pattern)},n.prototype.until_after=function(o){var L=this._create();return L._until_after=!0,L._until_pattern=this._input.get_regexp(o),L._update(),L},n.prototype.until=function(o){var L=this._create();return L._until_after=!1,L._until_pattern=this._input.get_regexp(o),L._update(),L},n.prototype.starting_with=function(o){var L=this._create();return L._starting_pattern=this._input.get_regexp(o,!0),L._update(),L},n.prototype.matching=function(o){var L=this._create();return L._match_pattern=this._input.get_regexp(o,!0),L._update(),L},n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){},T.exports.Pattern=n},function(T){function n(o,L){o=typeof o=="string"?o:o.source,L=typeof L=="string"?L:L.source,this.__directives_block_pattern=new RegExp(o+/ beautify( \w+[:]\w+)+ /.source+L,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(o+/\sbeautify\signore:end\s/.source+L,"g")}n.prototype.get_directives=function(o){if(!o.match(this.__directives_block_pattern))return null;var L={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(o);p;)L[p[1]]=p[2],p=this.__directive_pattern.exec(o);return L},n.prototype.readIgnored=function(o){return o.readUntilAfter(this.__directives_end_ignore_pattern)},T.exports.Directives=n},function(T,n,o){var L=o(12).Pattern,p={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function a(A,m){L.call(this,A,m),this.__template_pattern=null,this._disabled=Object.assign({},p),this._excluded=Object.assign({},p),m&&(this.__template_pattern=this._input.get_regexp(m.__template_pattern),this._excluded=Object.assign(this._excluded,m._excluded),this._disabled=Object.assign(this._disabled,m._disabled));var S=new L(A);this.__patterns={handlebars_comment:S.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:S.starting_with(/{{{/).until_after(/}}}/),handlebars:S.starting_with(/{{/).until_after(/}}/),php:S.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:S.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:S.starting_with(/{%/).until_after(/%}/),django_value:S.starting_with(/{{/).until_after(/}}/),django_comment:S.starting_with(/{#/).until_after(/#}/),smarty:S.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:S.starting_with(/{\*/).until_after(/\*}/),smarty_literal:S.starting_with(/{literal}/).until_after(/{\/literal}/)}}a.prototype=new L,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(A){var m=this._create();return m._disabled[A]=!0,m._update(),m},a.prototype.read_options=function(A){var m=this._create();for(var S in p)m._disabled[S]=A.templating.indexOf(S)===-1;return m._update(),m},a.prototype.exclude=function(A){var m=this._create();return m._excluded[A]=!0,m._update(),m},a.prototype.read=function(){var A="";this._match_pattern?A=this._input.read(this._starting_pattern):A=this._input.read(this._starting_pattern,this.__template_pattern);for(var m=this._read_template();m;)this._match_pattern?m+=this._input.read(this._match_pattern):m+=this._input.readUntil(this.__template_pattern),A+=m,m=this._read_template();return this._until_after&&(A+=this._input.readUntilAfter(this._until_pattern)),A},a.prototype.__set_templated_pattern=function(){var A=[];this._disabled.php||A.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||A.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||A.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(A.push(this.__patterns.django._starting_pattern.source),A.push(this.__patterns.django_value._starting_pattern.source),A.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||A.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&A.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+A.join("|")+")")},a.prototype._read_template=function(){var A="",m=this._input.peek();if(m==="<"){var S=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&S==="?"&&(A=A||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&S==="%"&&(A=A||this.__patterns.erb.read())}else m==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(A=A||this.__patterns.handlebars_comment.read(),A=A||this.__patterns.handlebars_unescaped.read(),A=A||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(A=A||this.__patterns.django_value.read()),this._excluded.django||(A=A||this.__patterns.django_comment.read(),A=A||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(A=A||this.__patterns.smarty_comment.read(),A=A||this.__patterns.smarty_literal.read(),A=A||this.__patterns.smarty.read()));return A},T.exports.TemplatablePattern=a}],ie={};function Y(T){var n=ie[T];if(n!==void 0)return n.exports;var o=ie[T]={exports:{}};return ke[T](o,o.exports,Y),o.exports}var O=Y(0);Fe=O})();var se=Fe;g=[],we=function(){return{js_beautify:se}}.apply(Gt,g),we!==void 0&&(yn.exports=we)})()},32092:function(yn,Gt,g){"use strict";g.r(Gt),g.d(Gt,{AcroForm:function(){return Js},AcroFormAppearance:function(){return Di},AcroFormButton:function(){return ua},AcroFormCheckBox:function(){return Vs},AcroFormChoiceField:function(){return zs},AcroFormComboBox:function(){return Oi},AcroFormEditBox:function(){return Ai},AcroFormListBox:function(){return Rs},AcroFormPasswordField:function(){return Os},AcroFormPushButton:function(){return vs},AcroFormRadioButton:function(){return Ra},AcroFormTextField:function(){return vo},GState:function(){return ka},ShadingPattern:function(){return is},TilingPattern:function(){return Fa},default:function(){return oc},jsPDF:function(){return Mi}});var we=g(80665),Fe={},se=function(b,u,y,M,ne){var Z=new Worker(Fe[u]||(Fe[u]=URL.createObjectURL(new Blob([b+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return Z.onmessage=function(ge){var De=ge.data,Ne=De.$e$;if(Ne){var tt=new Error(Ne[0]);tt.code=Ne[1],tt.stack=Ne[2],ne(tt,null)}else ne(null,De)},Z.postMessage(y,M),Z},ke=Uint8Array,ie=Uint16Array,Y=Int32Array,O=new ke([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 ke([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]),n=new ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(b,u){for(var y=new ie(31),M=0;M<31;++M)y[M]=u+=1<<b[M-1];for(var ne=new Y(y[30]),M=1;M<30;++M)for(var Z=y[M];Z<y[M+1];++Z)ne[Z]=Z-y[M]<<5|M;return{b:y,r:ne}},L=o(O,2),p=L.b,a=L.r;p[28]=258,a[258]=28;for(var A=o(T,0),m=A.b,S=A.r,K=new ie(32768),F=0;F<32768;++F){var H=(F&43690)>>1|(F&21845)<<1;H=(H&52428)>>2|(H&13107)<<2,H=(H&61680)>>4|(H&3855)<<4,K[F]=((H&65280)>>8|(H&255)<<8)>>1}for(var V=function(b,u,y){for(var M=b.length,ne=0,Z=new ie(u);ne<M;++ne)b[ne]&&++Z[b[ne]-1];var ge=new ie(u);for(ne=1;ne<u;++ne)ge[ne]=ge[ne-1]+Z[ne-1]<<1;var De;if(y){De=new ie(1<<u);var Ne=15-u;for(ne=0;ne<M;++ne)if(b[ne])for(var tt=ne<<4|b[ne],yt=u-b[ne],vt=ge[b[ne]-1]++<<yt,Pt=vt|(1<<yt)-1;vt<=Pt;++vt)De[K[vt]>>Ne]=tt}else for(De=new ie(M),ne=0;ne<M;++ne)b[ne]&&(De[ne]=K[ge[b[ne]-1]++]>>15-b[ne]);return De},ee=new ke(288),F=0;F<144;++F)ee[F]=8;for(var F=144;F<256;++F)ee[F]=9;for(var F=256;F<280;++F)ee[F]=7;for(var F=280;F<288;++F)ee[F]=8;for(var B=new ke(32),F=0;F<32;++F)B[F]=5;var G=V(ee,9,0),ce=V(ee,9,1),q=V(B,5,0),be=V(B,5,1),xe=function(b){for(var u=b[0],y=1;y<b.length;++y)b[y]>u&&(u=b[y]);return u},Le=function(b,u,y){var M=u/8|0;return(b[M]|b[M+1]<<8)>>(u&7)&y},ae=function(b,u){var y=u/8|0;return(b[y]|b[y+1]<<8|b[y+2]<<16)>>(u&7)},me=function(b){return(b+7)/8|0},I=function(b,u,y){return(u==null||u<0)&&(u=0),(y==null||y>b.length)&&(y=b.length),new ke(b.subarray(u,y))},_e={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},oe=["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(b,u,y){var M=new Error(u||oe[b]);if(M.code=b,Error.captureStackTrace&&Error.captureStackTrace(M,he),!y)throw M;return M},ve=function(b,u,y,M){var ne=b.length,Z=M?M.length:0;if(!ne||u.f&&!u.l)return y||new ke(0);var ge=!y,De=ge||u.i!=2,Ne=u.i;ge&&(y=new ke(ne*3));var tt=function($r){var cn=y.length;if($r>cn){var Dn=new ke(Math.max(cn*2,$r));Dn.set(y),y=Dn}},yt=u.f||0,vt=u.p||0,Pt=u.b||0,Ye=u.l,cr=u.d,tr=u.m,dr=u.n,Qt=ne*8;do{if(!Ye){yt=Le(b,vt,1);var pr=Le(b,vt+1,3);if(vt+=3,pr)if(pr==1)Ye=ce,cr=be,tr=9,dr=5;else if(pr==2){var ci=Le(b,vt,31)+257,pn=Le(b,vt+10,15)+4,Br=ci+Le(b,vt+5,31)+1;vt+=14;for(var bn=new ke(Br),Pn=new ke(19),er=0;er<pn;++er)Pn[n[er]]=Le(b,vt+er*3,7);vt+=pn*3;for(var nr=xe(Pn),ye=(1<<nr)-1,Ee=V(Pn,nr,1),er=0;er<Br;){var et=Ee[Le(b,vt,ye)];vt+=et&15;var Ur=et>>4;if(Ur<16)bn[er++]=Ur;else{var st=0,gt=0;for(Ur==16?(gt=3+Le(b,vt,3),vt+=2,st=bn[er-1]):Ur==17?(gt=3+Le(b,vt,7),vt+=3):Ur==18&&(gt=11+Le(b,vt,127),vt+=7);gt--;)bn[er++]=st}}var ht=bn.subarray(0,ci),Ut=bn.subarray(ci);tr=xe(ht),dr=xe(Ut),Ye=V(ht,tr,1),cr=V(Ut,dr,1)}else he(1);else{var Ur=me(vt)+4,sn=b[Ur-4]|b[Ur-3]<<8,Rn=Ur+sn;if(Rn>ne){Ne&&he(0);break}De&&tt(Pt+sn),y.set(b.subarray(Ur,Rn),Pt),u.b=Pt+=sn,u.p=vt=Rn*8,u.f=yt;continue}if(vt>Qt){Ne&&he(0);break}}De&&tt(Pt+131072);for(var $t=(1<<tr)-1,sr=(1<<dr)-1,ze=vt;;ze=vt){var st=Ye[ae(b,vt)&$t],Ce=st>>4;if(vt+=st&15,vt>Qt){Ne&&he(0);break}if(st||he(2),Ce<256)y[Pt++]=Ce;else if(Ce==256){ze=vt,Ye=null;break}else{var wt=Ce-254;if(Ce>264){var er=Ce-257,jt=O[er];wt=Le(b,vt,(1<<jt)-1)+p[er],vt+=jt}var Wt=cr[ae(b,vt)&sr],ur=Wt>>4;Wt||he(3),vt+=Wt&15;var Ut=m[ur];if(ur>3){var jt=T[ur];Ut+=ae(b,vt)&(1<<jt)-1,vt+=jt}if(vt>Qt){Ne&&he(0);break}De&&tt(Pt+131072);var It=Pt+wt;if(Pt<Ut){var br=Z-Ut,Gr=Math.min(Ut,It);for(br+Pt<0&&he(3);Pt<Gr;++Pt)y[Pt]=M[br+Pt]}for(;Pt<It;++Pt)y[Pt]=y[Pt-Ut]}}u.l=Ye,u.p=ze,u.b=Pt,u.f=yt,Ye&&(yt=1,u.m=tr,u.d=cr,u.n=dr)}while(!yt);return Pt!=y.length&&ge?I(y,0,Pt):y.subarray(0,Pt)},_=function(b,u,y){y<<=u&7;var M=u/8|0;b[M]|=y,b[M+1]|=y>>8},N=function(b,u,y){y<<=u&7;var M=u/8|0;b[M]|=y,b[M+1]|=y>>8,b[M+2]|=y>>16},X=function(b,u){for(var y=[],M=0;M<b.length;++M)b[M]&&y.push({s:M,f:b[M]});var ne=y.length,Z=y.slice();if(!ne)return{t:qt,l:0};if(ne==1){var ge=new ke(y[0].s+1);return ge[y[0].s]=1,{t:ge,l:1}}y.sort(function(Rn,ci){return Rn.f-ci.f}),y.push({s:-1,f:25001});var De=y[0],Ne=y[1],tt=0,yt=1,vt=2;for(y[0]={s:-1,f:De.f+Ne.f,l:De,r:Ne};yt!=ne-1;)De=y[y[tt].f<y[vt].f?tt++:vt++],Ne=y[tt!=yt&&y[tt].f<y[vt].f?tt++:vt++],y[yt++]={s:-1,f:De.f+Ne.f,l:De,r:Ne};for(var Pt=Z[0].s,M=1;M<ne;++M)Z[M].s>Pt&&(Pt=Z[M].s);var Ye=new ie(Pt+1),cr=pe(y[yt-1],Ye,0);if(cr>u){var M=0,tr=0,dr=cr-u,Qt=1<<dr;for(Z.sort(function(ci,pn){return Ye[pn.s]-Ye[ci.s]||ci.f-pn.f});M<ne;++M){var pr=Z[M].s;if(Ye[pr]>u)tr+=Qt-(1<<cr-Ye[pr]),Ye[pr]=u;else break}for(tr>>=dr;tr>0;){var Ur=Z[M].s;Ye[Ur]<u?tr-=1<<u-Ye[Ur]++-1:++M}for(;M>=0&&tr;--M){var sn=Z[M].s;Ye[sn]==u&&(--Ye[sn],++tr)}cr=u}return{t:new ke(Ye),l:cr}},pe=function(b,u,y){return b.s==-1?Math.max(pe(b.l,u,y+1),pe(b.r,u,y+1)):u[b.s]=y},qe=function(b){for(var u=b.length;u&&!b[--u];);for(var y=new ie(++u),M=0,ne=b[0],Z=1,ge=function(Ne){y[M++]=Ne},De=1;De<=u;++De)if(b[De]==ne&&De!=u)++Z;else{if(!ne&&Z>2){for(;Z>138;Z-=138)ge(32754);Z>2&&(ge(Z>10?Z-11<<5|28690:Z-3<<5|12305),Z=0)}else if(Z>3){for(ge(ne),--Z;Z>6;Z-=6)ge(8304);Z>2&&(ge(Z-3<<5|8208),Z=0)}for(;Z--;)ge(ne);Z=1,ne=b[De]}return{c:y.subarray(0,M),n:u}},at=function(b,u){for(var y=0,M=0;M<u.length;++M)y+=b[M]*u[M];return y},rt=function(b,u,y){var M=y.length,ne=me(u+2);b[ne]=M&255,b[ne+1]=M>>8,b[ne+2]=b[ne]^255,b[ne+3]=b[ne+1]^255;for(var Z=0;Z<M;++Z)b[ne+Z+4]=y[Z];return(ne+4+M)*8},Rt=function(b,u,y,M,ne,Z,ge,De,Ne,tt,yt){_(u,yt++,y),++ne[256];for(var vt=X(ne,15),Pt=vt.t,Ye=vt.l,cr=X(Z,15),tr=cr.t,dr=cr.l,Qt=qe(Pt),pr=Qt.c,Ur=Qt.n,sn=qe(tr),Rn=sn.c,ci=sn.n,pn=new ie(19),Br=0;Br<pr.length;++Br)++pn[pr[Br]&31];for(var Br=0;Br<Rn.length;++Br)++pn[Rn[Br]&31];for(var bn=X(pn,7),Pn=bn.t,er=bn.l,nr=19;nr>4&&!Pn[n[nr-1]];--nr);var ye=tt+5<<3,Ee=at(ne,ee)+at(Z,B)+ge,et=at(ne,Pt)+at(Z,tr)+ge+14+3*nr+at(pn,Pn)+2*pn[16]+3*pn[17]+7*pn[18];if(Ne>=0&&ye<=Ee&&ye<=et)return rt(u,yt,b.subarray(Ne,Ne+tt));var st,gt,ht,Ut;if(_(u,yt,1+(et<Ee)),yt+=2,et<Ee){st=V(Pt,Ye,0),gt=Pt,ht=V(tr,dr,0),Ut=tr;var $t=V(Pn,er,0);_(u,yt,Ur-257),_(u,yt+5,ci-1),_(u,yt+10,nr-4),yt+=14;for(var Br=0;Br<nr;++Br)_(u,yt+3*Br,Pn[n[Br]]);yt+=3*nr;for(var sr=[pr,Rn],ze=0;ze<2;++ze)for(var Ce=sr[ze],Br=0;Br<Ce.length;++Br){var wt=Ce[Br]&31;_(u,yt,$t[wt]),yt+=Pn[wt],wt>15&&(_(u,yt,Ce[Br]>>5&127),yt+=Ce[Br]>>12)}}else st=G,gt=ee,ht=q,Ut=B;for(var Br=0;Br<De;++Br){var jt=M[Br];if(jt>255){var wt=jt>>18&31;N(u,yt,st[wt+257]),yt+=gt[wt+257],wt>7&&(_(u,yt,jt>>23&31),yt+=O[wt]);var Wt=jt&31;N(u,yt,ht[Wt]),yt+=Ut[Wt],Wt>3&&(N(u,yt,jt>>5&8191),yt+=T[Wt])}else N(u,yt,st[jt]),yt+=gt[jt]}return N(u,yt,st[256]),yt+gt[256]},lr=new Y([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),qt=new ke(0),Ze=function(b,u,y,M,ne,Z){var ge=Z.z||b.length,De=new ke(M+ge+5*(1+Math.ceil(ge/7e3))+ne),Ne=De.subarray(M,De.length-ne),tt=Z.l,yt=(Z.r||0)&7;if(u){yt&&(Ne[0]=Z.r>>3);for(var vt=lr[u-1],Pt=vt>>13,Ye=vt&8191,cr=(1<<y)-1,tr=Z.p||new ie(32768),dr=Z.h||new ie(cr+1),Qt=Math.ceil(y/3),pr=2*Qt,Ur=function(ni){return(b[ni]^b[ni+1]<<Qt^b[ni+2]<<pr)&cr},sn=new Y(25e3),Rn=new ie(288),ci=new ie(32),pn=0,Br=0,bn=Z.i||0,Pn=0,er=Z.w||0,nr=0;bn+2<ge;++bn){var ye=Ur(bn),Ee=bn&32767,et=dr[ye];if(tr[Ee]=et,dr[ye]=Ee,er<=bn){var st=ge-bn;if((pn>7e3||Pn>24576)&&(st>423||!tt)){yt=Rt(b,Ne,0,sn,Rn,ci,Br,Pn,nr,bn-nr,yt),Pn=pn=Br=0,nr=bn;for(var gt=0;gt<286;++gt)Rn[gt]=0;for(var gt=0;gt<30;++gt)ci[gt]=0}var ht=2,Ut=0,$t=Ye,sr=Ee-et&32767;if(st>2&&ye==Ur(bn-sr))for(var ze=Math.min(Pt,st)-1,Ce=Math.min(32767,bn),wt=Math.min(258,st);sr<=Ce&&--$t&&Ee!=et;){if(b[bn+ht]==b[bn+ht-sr]){for(var jt=0;jt<wt&&b[bn+jt]==b[bn+jt-sr];++jt);if(jt>ht){if(ht=jt,Ut=sr,jt>ze)break;for(var Wt=Math.min(sr,jt-2),ur=0,gt=0;gt<Wt;++gt){var It=bn-sr+gt&32767,br=tr[It],Gr=It-br&32767;Gr>ur&&(ur=Gr,et=It)}}}Ee=et,et=tr[Ee],sr+=Ee-et&32767}if(Ut){sn[Pn++]=268435456|a[ht]<<18|S[Ut];var $r=a[ht]&31,cn=S[Ut]&31;Br+=O[$r]+T[cn],++Rn[257+$r],++ci[cn],er=bn+ht,++pn}else sn[Pn++]=b[bn],++Rn[b[bn]]}}for(bn=Math.max(bn,er);bn<ge;++bn)sn[Pn++]=b[bn],++Rn[b[bn]];yt=Rt(b,Ne,tt,sn,Rn,ci,Br,Pn,nr,bn-nr,yt),tt||(Z.r=yt&7|Ne[yt/8|0]<<3,yt-=7,Z.h=dr,Z.p=tr,Z.i=bn,Z.w=er)}else{for(var bn=Z.w||0;bn<ge+tt;bn+=65535){var Dn=bn+65535;Dn>=ge&&(Ne[yt/8|0]=tt,Dn=ge),yt=rt(Ne,yt+1,b.subarray(bn,Dn))}Z.i=ge}return I(De,0,M+me(yt)+ne)},Er=null,Cr=function(){var b=-1;return{p:function(u){for(var y=b,M=0;M<u.length;++M)y=Er[y&255^u[M]]^y>>>8;b=y},d:function(){return~b}}},Kr=function(){var b=1,u=0;return{p:function(y){for(var M=b,ne=u,Z=y.length|0,ge=0;ge!=Z;){for(var De=Math.min(ge+2655,Z);ge<De;++ge)ne+=M+=y[ge];M=(M&65535)+15*(M>>16),ne=(ne&65535)+15*(ne>>16)}b=M,u=ne},d:function(){return b%=65521,u%=65521,(b&255)<<24|(b&65280)<<8|(u&255)<<8|u>>8}}},_r=function(b,u,y,M,ne){if(!ne&&(ne={l:1},u.dictionary)){var Z=u.dictionary.subarray(-32768),ge=new ke(Z.length+b.length);ge.set(Z),ge.set(b,Z.length),b=ge,ne.w=Z.length}return Ze(b,u.level==null?6:u.level,u.mem==null?ne.l?Math.ceil(Math.max(8,Math.min(13,Math.log(b.length)))*1.5):20:12+u.mem,y,M,ne)},Me=function(b,u){var y={};for(var M in b)y[M]=b[M];for(var M in u)y[M]=u[M];return y},Tt=function(b,u,y){for(var M=b(),ne=b.toString(),Z=ne.slice(ne.indexOf("[")+1,ne.lastIndexOf("]")).replace(/\s+/g,"").split(","),ge=0;ge<M.length;++ge){var De=M[ge],Ne=Z[ge];if(typeof De=="function"){u+=";"+Ne+"=";var tt=De.toString();if(De.prototype)if(tt.indexOf("[native code]")!=-1){var yt=tt.indexOf(" ",8)+1;u+=tt.slice(yt,tt.indexOf("(",yt))}else{u+=tt;for(var vt in De.prototype)u+=";"+Ne+".prototype."+vt+"="+De.prototype[vt].toString()}else u+=tt}else y[Ne]=De}return u},z=null,v=function(b){var u=[];for(var y in b)b[y].buffer&&u.push((b[y]=new b[y].constructor(b[y])).buffer);return u},f=function(b,u,y,M){if(!z[y]){for(var ne="",Z={},ge=b.length-1,De=0;De<ge;++De)ne=Tt(b[De],ne,Z);z[y]={c:Tt(b[ge],ne,Z),e:Z}}var Ne=Me({},z[y].e);return se(z[y].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+u.toString()+"}",y,Ne,v(Ne),M)},D=function(){return[ke,ie,Y,O,T,n,p,m,ce,be,K,oe,V,xe,Le,ae,me,I,he,ve,nt,Te,Se]},de=function(){return[ke,ie,Y,O,T,n,a,S,G,ee,q,B,K,lr,qt,V,_,N,X,pe,qe,at,rt,Rt,me,I,Ze,_r,Yr,Te]},W=function(){return[Bt,wr,$e,Cr,Er]},P=function(){return[Kt,Mt]},te=function(){return[vr,$e,Kr]},Ie=function(){return[re]},Te=function(b){return postMessage(b,[b.buffer])},Se=function(b){return b&&{out:b.size&&new ke(b.size),dictionary:b.dictionary}},Ge=function(b,u,y,M,ne,Z){var ge=f(y,M,ne,function(De,Ne){ge.terminate(),Z(De,Ne)});return ge.postMessage([b,u],u.consume?[b.buffer]:[]),function(){ge.terminate()}},ft=function(b){return b.ondata=function(u,y){return postMessage([u,y],[u.buffer])},function(u){u.data.length?(b.push(u.data[0],u.data[1]),postMessage([u.data[0].length])):b.flush()}},Ke=function(b,u,y,M,ne,Z,ge){var De,Ne=f(b,M,ne,function(tt,yt){tt?(Ne.terminate(),u.ondata.call(u,tt)):Array.isArray(yt)?yt.length==1?(u.queuedSize-=yt[0],u.ondrain&&u.ondrain(yt[0])):(yt[1]&&Ne.terminate(),u.ondata.call(u,tt,yt[0],yt[1])):ge(yt)});Ne.postMessage(y),u.queuedSize=0,u.push=function(tt,yt){u.ondata||he(5),De&&u.ondata(he(4,0,1),null,!!yt),u.queuedSize+=tt.length,Ne.postMessage([tt,De=yt],[tt.buffer])},u.terminate=function(){Ne.terminate()},Z&&(u.flush=function(){Ne.postMessage([])})},Xe=function(b,u){return b[u]|b[u+1]<<8},At=function(b,u){return(b[u]|b[u+1]<<8|b[u+2]<<16|b[u+3]<<24)>>>0},We=function(b,u){return At(b,u)+At(b,u+4)*4294967296},$e=function(b,u,y){for(;y;++u)b[u]=y,y>>>=8},Bt=function(b,u){var y=u.filename;if(b[0]=31,b[1]=139,b[2]=8,b[8]=u.level<2?4:u.level==9?2:0,b[9]=3,u.mtime!=0&&$e(b,4,Math.floor(new Date(u.mtime||Date.now())/1e3)),y){b[3]=8;for(var M=0;M<=y.length;++M)b[M+10]=y.charCodeAt(M)}},Kt=function(b){(b[0]!=31||b[1]!=139||b[2]!=8)&&he(6,"invalid gzip data");var u=b[3],y=10;u&4&&(y+=(b[10]|b[11]<<8)+2);for(var M=(u>>3&1)+(u>>4&1);M>0;M-=!b[y++]);return y+(u&2)},Mt=function(b){var u=b.length;return(b[u-4]|b[u-3]<<8|b[u-2]<<16|b[u-1]<<24)>>>0},wr=function(b){return 10+(b.filename?b.filename.length+1:0)},vr=function(b,u){var y=u.level,M=y==0?0:y<6?1:y==9?3:2;if(b[0]=120,b[1]=M<<6|(u.dictionary&&32),b[1]|=31-(b[0]<<8|b[1])%31,u.dictionary){var ne=Kr();ne.p(u.dictionary),$e(b,2,ne.d())}},re=function(b,u){return((b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31)&&he(6,"invalid zlib data"),(b[1]>>5&1)==+!u&&he(6,"invalid zlib data: "+(b[1]&32?"need":"unexpected")+" dictionary"),(b[1]>>3&4)+2};function le(b,u){return typeof b=="function"&&(u=b,b={}),this.ondata=u,b}var rr=null,Ue=null;function ot(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[de],function(M){return Te(Yr(M.data[0],M.data[1]))},0,y)}function Yr(b,u){return _r(b,u||{},0,0)}var St=null,Vt=null;function Zt(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[D],function(M){return Te(nt(M.data[0],Se(M.data[1])))},1,y)}function nt(b,u){return ve(b,{i:2},u&&u.out,u&&u.dictionary)}var ct=null,dt=null;function Xt(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[de,W,function(){return[Re]}],function(M){return Te(Re(M.data[0],M.data[1]))},2,y)}function Re(b,u){u||(u={});var y=Cr(),M=b.length;y.p(b);var ne=_r(b,u,wr(u),8),Z=ne.length;return Bt(ne,u),$e(ne,Z-8,y.d()),$e(ne,Z-4,M),ne}var fn=null,kt=null;function Nn(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[D,P,function(){return[Jn]}],function(M){return Te(Jn(M.data[0],M.data[1]))},3,y)}function Jn(b,u){var y=Kt(b);return y+8>b.length&&he(6,"invalid gzip data"),ve(b.subarray(y,-8),{i:2},u&&u.out||new ke(Mt(b)),u&&u.dictionary)}var vi=null,Fi=null;function Mn(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[de,te,function(){return[Hn]}],function(M){return Te(Hn(M.data[0],M.data[1]))},4,y)}function Hn(b,u){u||(u={});var y=Kr();y.p(b);var M=_r(b,u,u.dictionary?6:2,4);return vr(M,u),$e(M,M.length-4,y.d()),M}var Yt=null,kr=null;function tn(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),Ge(b,u,[D,Ie,function(){return[Nt]}],function(M){return Te(Nt(M.data[0],Se(M.data[1])))},5,y)}function Nt(b,u){return ve(b.subarray(re(b,u&&u.dictionary),-4),{i:2},u&&u.out,u&&u.dictionary)}var _t=null,Ir=null;function Dr(b,u,y){return y||(y=u,u={}),typeof y!="function"&&he(7),b[0]==31&&b[1]==139&&b[2]==8?Nn(b,u,y):(b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31?Zt(b,u,y):tn(b,u,y)}function In(b,u){return b[0]==31&&b[1]==139&&b[2]==8?Jn(b,u):(b[0]&15)!=8||b[0]>>4>7||(b[0]<<8|b[1])%31?nt(b,u):Nt(b,u)}var qr=function(b,u,y,M){for(var ne in b){var Z=b[ne],ge=u+ne,De=M;Array.isArray(Z)&&(De=Me(M,Z[1]),Z=Z[0]),Z instanceof ke?y[ge]=[Z,De]:(y[ge+="/"]=[new ke(0),De],qr(Z,ge,y,M))}},Sn=typeof TextEncoder!="undefined"&&new TextEncoder,hn=typeof TextDecoder!="undefined"&&new TextDecoder,$n=0;try{hn.decode(qt,{stream:!0}),$n=1}catch(b){}var ri=function(b){for(var u="",y=0;;){var M=b[y++],ne=(M>127)+(M>223)+(M>239);if(y+ne>b.length)return{s:u,r:I(b,y-1)};ne?ne==3?(M=((M&15)<<18|(b[y++]&63)<<12|(b[y++]&63)<<6|b[y++]&63)-65536,u+=String.fromCharCode(55296|M>>10,56320|M&1023)):ne&1?u+=String.fromCharCode((M&31)<<6|b[y++]&63):u+=String.fromCharCode((M&15)<<12|(b[y++]&63)<<6|b[y++]&63):u+=String.fromCharCode(M)}},Hr=null,zr=null;function Tn(b,u){if(u){for(var y=new ke(b.length),M=0;M<b.length;++M)y[M]=b.charCodeAt(M);return y}if(Sn)return Sn.encode(b);for(var ne=b.length,Z=new ke(b.length+(b.length>>1)),ge=0,De=function(yt){Z[ge++]=yt},M=0;M<ne;++M){if(ge+5>Z.length){var Ne=new ke(ge+8+(ne-M<<1));Ne.set(Z),Z=Ne}var tt=b.charCodeAt(M);tt<128||u?De(tt):tt<2048?(De(192|tt>>6),De(128|tt&63)):tt>55295&&tt<57344?(tt=65536+(tt&1047552)|b.charCodeAt(++M)&1023,De(240|tt>>18),De(128|tt>>12&63),De(128|tt>>6&63),De(128|tt&63)):(De(224|tt>>12),De(128|tt>>6&63),De(128|tt&63))}return I(Z,0,ge)}function Bn(b,u){if(u){for(var y="",M=0;M<b.length;M+=16384)y+=String.fromCharCode.apply(null,b.subarray(M,M+16384));return y}else{if(hn)return hn.decode(b);var ne=ri(b),Z=ne.s,y=ne.r;return y.length&&he(8),Z}}var Qn=function(b){return b==1?3:b<6?2:b==9?1:0},Xn=function(b,u){return u+30+Xe(b,u+26)+Xe(b,u+28)},Hi=function(b,u,y){var M=Xe(b,u+28),ne=Bn(b.subarray(u+46,u+46+M),!(Xe(b,u+8)&2048)),Z=u+46+M,ge=At(b,u+20),De=y&&ge==4294967295?fi(b,Z):[ge,At(b,u+24),At(b,u+42)],Ne=De[0],tt=De[1],yt=De[2];return[Xe(b,u+10),Ne,tt,ne,Z+Xe(b,u+30)+Xe(b,u+32),yt]},fi=function(b,u){for(;Xe(b,u)!=1;u+=4+Xe(b,u+2));return[We(b,u+12),We(b,u+4),We(b,u+20)]},wn=function(b){var u=0;if(b)for(var y in b){var M=b[y].length;M>65535&&he(9),u+=M+4}return u},hr=function(b,u,y,M,ne,Z,ge,De){var Ne=M.length,tt=y.extra,yt=De&&De.length,vt=wn(tt);$e(b,u,ge!=null?33639248:67324752),u+=4,ge!=null&&(b[u++]=20,b[u++]=y.os),b[u]=20,u+=2,b[u++]=y.flag<<1|(Z<0&&8),b[u++]=ne&&8,b[u++]=y.compression&255,b[u++]=y.compression>>8;var Pt=new Date(y.mtime==null?Date.now():y.mtime),Ye=Pt.getFullYear()-1980;if((Ye<0||Ye>119)&&he(10),$e(b,u,Ye<<25|Pt.getMonth()+1<<21|Pt.getDate()<<16|Pt.getHours()<<11|Pt.getMinutes()<<5|Pt.getSeconds()>>1),u+=4,Z!=-1&&($e(b,u,y.crc),$e(b,u+4,Z<0?-Z-2:Z),$e(b,u+8,y.size)),$e(b,u+12,Ne),$e(b,u+14,vt),u+=16,ge!=null&&($e(b,u,yt),$e(b,u+6,y.attrs),$e(b,u+10,ge),u+=14),b.set(M,u),u+=Ne,vt)for(var cr in tt){var tr=tt[cr],dr=tr.length;$e(b,u,+cr),$e(b,u+2,dr),b.set(tr,u+4),u+=4+dr}return yt&&(b.set(De,u),u+=yt),u},yr=function(b,u,y,M,ne){$e(b,u,101010256),$e(b,u+8,y),$e(b,u+10,y),$e(b,u+12,M),$e(b,u+16,ne)},Pr=null,Zr=null,Qr=null,on=null;function en(b,u,y){y||(y=u,u={}),typeof y!="function"&&he(7);var M={};qr(b,"",M,u);var ne=Object.keys(M),Z=ne.length,ge=0,De=0,Ne=Z,tt=new Array(Z),yt=[],vt=function(){for(var dr=0;dr<yt.length;++dr)yt[dr]()},Pt=function(dr,Qt){ki(function(){y(dr,Qt)})};ki(function(){Pt=y});var Ye=function(){var dr=new ke(De+22),Qt=ge,pr=De-ge;De=0;for(var Ur=0;Ur<Ne;++Ur){var sn=tt[Ur];try{var Rn=sn.c.length;hr(dr,De,sn,sn.f,sn.u,Rn);var ci=30+sn.f.length+wn(sn.extra),pn=De+ci;dr.set(sn.c,pn),hr(dr,ge,sn,sn.f,sn.u,Rn,De,sn.m),ge+=16+ci+(sn.m?sn.m.length:0),De=pn+Rn}catch(Br){return Pt(Br,null)}}yr(dr,ge,tt.length,pr,Qt),Pt(null,dr)};Z||Ye();for(var cr=function(dr){var Qt=ne[dr],pr=M[Qt],Ur=pr[0],sn=pr[1],Rn=Cr(),ci=Ur.length;Rn.p(Ur);var pn=Tn(Qt),Br=pn.length,bn=sn.comment,Pn=bn&&Tn(bn),er=Pn&&Pn.length,nr=wn(sn.extra),ye=sn.level==0?0:8,Ee=function(et,st){if(et)vt(),Pt(et,null);else{var gt=st.length;tt[dr]=Me(sn,{size:ci,crc:Rn.d(),c:st,f:pn,m:Pn,u:Br!=Qt.length||Pn&&bn.length!=er,compression:ye}),ge+=30+Br+nr+gt,De+=76+2*(Br+nr)+(er||0)+gt,--Z||Ye()}};if(Br>65535&&Ee(he(11,0,1),null),!ye)Ee(null,Ur);else if(ci<16e4)try{Ee(null,Yr(Ur,sn))}catch(et){Ee(et,null)}else yt.push(ot(Ur,sn,Ee))},tr=0;tr<Ne;++tr)cr(tr);return vt}function jn(b,u){u||(u={});var y={},M=[];qr(b,"",y,u);var ne=0,Z=0;for(var ge in y){var De=y[ge],Ne=De[0],tt=De[1],yt=tt.level==0?0:8,vt=Tn(ge),Pt=vt.length,Ye=tt.comment,cr=Ye&&Tn(Ye),tr=cr&&cr.length,dr=wn(tt.extra);Pt>65535&&he(11);var Qt=yt?Yr(Ne,tt):Ne,pr=Qt.length,Ur=Cr();Ur.p(Ne),M.push(Me(tt,{size:Ne.length,crc:Ur.d(),c:Qt,f:vt,m:cr,u:Pt!=ge.length||cr&&Ye.length!=tr,o:ne,compression:yt})),ne+=30+Pt+dr+pr,Z+=76+2*(Pt+dr)+(tr||0)+pr}for(var sn=new ke(Z+22),Rn=ne,ci=Z-ne,pn=0;pn<M.length;++pn){var vt=M[pn];hr(sn,vt.o,vt,vt.f,vt.u,vt.c.length);var Br=30+vt.f.length+wn(vt.extra);sn.set(vt.c,vt.o+Br),hr(sn,ne,vt,vt.f,vt.u,vt.c.length,vt.o,vt.m),ne+=16+Br+(vt.m?vt.m.length:0)}return yr(sn,ne,M.length,ci,Rn),sn}var qn=null,oi=null,Qi=null,Ri=null,ki=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(b){b()};function Tr(b,u,y){y||(y=u,u={}),typeof y!="function"&&he(7);var M=[],ne=function(){for(var dr=0;dr<M.length;++dr)M[dr]()},Z={},ge=function(dr,Qt){ki(function(){y(dr,Qt)})};ki(function(){ge=y});for(var De=b.length-22;At(b,De)!=101010256;--De)if(!De||b.length-De>65558)return ge(he(13,0,1),null),ne;var Ne=Xe(b,De+8);if(Ne){var tt=Ne,yt=At(b,De+16),vt=yt==4294967295||tt==65535;if(vt){var Pt=At(b,De-12);vt=At(b,Pt)==101075792,vt&&(tt=Ne=At(b,Pt+32),yt=At(b,Pt+48))}for(var Ye=u&&u.filter,cr=function(dr){var Qt=Hi(b,yt,vt),pr=Qt[0],Ur=Qt[1],sn=Qt[2],Rn=Qt[3],ci=Qt[4],pn=Qt[5],Br=Xn(b,pn);yt=ci;var bn=function(er,nr){er?(ne(),ge(er,null)):(nr&&(Z[Rn]=nr),--Ne||ge(null,Z))};if(!Ye||Ye({name:Rn,size:Ur,originalSize:sn,compression:pr}))if(!pr)bn(null,I(b,Br,Br+Ur));else if(pr==8){var Pn=b.subarray(Br,Br+Ur);if(sn<524288||Ur>.8*sn)try{bn(null,nt(Pn,{out:new ke(sn)}))}catch(er){bn(er,null)}else M.push(Zt(Pn,{size:sn},bn))}else bn(he(14,"unknown compression type "+pr,1),null);else bn(null,null)},tr=0;tr<tt;++tr)cr(tr)}else ge(null,{});return ne}function _n(b,u){for(var y={},M=b.length-22;At(b,M)!=101010256;--M)(!M||b.length-M>65558)&&he(13);var ne=Xe(b,M+8);if(!ne)return{};var Z=At(b,M+16),ge=Z==4294967295||ne==65535;if(ge){var De=At(b,M-12);ge=At(b,De)==101075792,ge&&(ne=At(b,De+32),Z=At(b,De+48))}for(var Ne=u&&u.filter,tt=0;tt<ne;++tt){var yt=Hi(b,Z,ge),vt=yt[0],Pt=yt[1],Ye=yt[2],cr=yt[3],tr=yt[4],dr=yt[5],Qt=Xn(b,dr);Z=tr,(!Ne||Ne({name:cr,size:Pt,originalSize:Ye,compression:vt}))&&(vt?vt==8?y[cr]=nt(b.subarray(Qt,Qt+Pt),{out:new ke(Ye)}):he(14,"unknown compression type "+vt):y[cr]=I(b,Qt,Qt+Pt))}return y}var gn=function(){return typeof window!="undefined"?window:typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:this}();function ui(){gn.console&&typeof gn.console.log=="function"&&gn.console.log.apply(gn.console,arguments)}var ii={log:ui,warn:function(b){gn.console&&(typeof gn.console.warn=="function"?gn.console.warn.apply(gn.console,arguments):ui.call(null,arguments))},error:function(b){gn.console&&(typeof gn.console.error=="function"?gn.console.error.apply(gn.console,arguments):ui(b))}};function ti(b,u,y){var M=new XMLHttpRequest;M.open("GET",b),M.responseType="blob",M.onload=function(){ca(M.response,u,y)},M.onerror=function(){ii.error("could not download file")},M.send()}function wi(b){var u=new XMLHttpRequest;u.open("HEAD",b,!1);try{u.send()}catch(y){}return u.status>=200&&u.status<=299}function Pi(b){try{b.dispatchEvent(new MouseEvent("click"))}catch(y){var u=document.createEvent("MouseEvents");u.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),b.dispatchEvent(u)}}var Bi,zi,ca=gn.saveAs||((typeof window=="undefined"?"undefined":(0,we.Z)(window))!=="object"||window!==gn?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(b,u,y){var M=gn.URL||gn.webkitURL,ne=document.createElement("a");u=u||b.name||"download",ne.download=u,ne.rel="noopener",typeof b=="string"?(ne.href=b,ne.origin!==location.origin?wi(ne.href)?ti(b,u,y):Pi(ne,ne.target="_blank"):Pi(ne)):(ne.href=M.createObjectURL(b),setTimeout(function(){M.revokeObjectURL(ne.href)},4e4),setTimeout(function(){Pi(ne)},0))}:"msSaveOrOpenBlob"in navigator?function(b,u,y){if(u=u||b.name||"download",typeof b=="string")if(wi(b))ti(b,u,y);else{var M=document.createElement("a");M.href=b,M.target="_blank",setTimeout(function(){Pi(M)})}else navigator.msSaveOrOpenBlob(function(ne,Z){return Z===void 0?Z={autoBom:!1}:(0,we.Z)(Z)!=="object"&&(ii.warn("Deprecated: Expected third argument to be a object"),Z={autoBom:!Z}),Z.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(ne.type)?new Blob(["\uFEFF",ne],{type:ne.type}):ne}(b,y),u)}:function(b,u,y,M){if((M=M||open("","_blank"))&&(M.document.title=M.document.body.innerText="downloading..."),typeof b=="string")return ti(b,u,y);var ne=b.type==="application/octet-stream",Z=/constructor/i.test(gn.HTMLElement)||gn.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||ne&&Z)&&(typeof FileReader=="undefined"?"undefined":(0,we.Z)(FileReader))==="object"){var De=new FileReader;De.onloadend=function(){var yt=De.result;yt=ge?yt:yt.replace(/^data:[^;]*;/,"data:attachment/file;"),M?M.location.href=yt:location=yt,M=null},De.readAsDataURL(b)}else{var Ne=gn.URL||gn.webkitURL,tt=Ne.createObjectURL(b);M?M.location=tt:location.href=tt,M=null,setTimeout(function(){Ne.revokeObjectURL(tt)},4e4)}});function xi(b){var u;b=b||"",this.ok=!1,b.charAt(0)=="#"&&(b=b.substr(1,6)),b={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"}[b=(b=b.replace(/ /g,"")).toLowerCase()]||b;for(var y=[{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)]}}],M=0;M<y.length;M++){var ne=y[M].re,Z=y[M].process,ge=ne.exec(b);ge&&(u=Z(ge),this.r=u[0],this.g=u[1],this.b=u[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),Ne=this.g.toString(16),tt=this.b.toString(16);return De.length==1&&(De="0"+De),Ne.length==1&&(Ne="0"+Ne),tt.length==1&&(tt="0"+tt),"#"+De+Ne+tt}}function vn(b,u){var y=b[0],M=b[1],ne=b[2],Z=b[3];y=Ln(y,M,ne,Z,u[0],7,-680876936),Z=Ln(Z,y,M,ne,u[1],12,-389564586),ne=Ln(ne,Z,y,M,u[2],17,606105819),M=Ln(M,ne,Z,y,u[3],22,-1044525330),y=Ln(y,M,ne,Z,u[4],7,-176418897),Z=Ln(Z,y,M,ne,u[5],12,1200080426),ne=Ln(ne,Z,y,M,u[6],17,-1473231341),M=Ln(M,ne,Z,y,u[7],22,-45705983),y=Ln(y,M,ne,Z,u[8],7,1770035416),Z=Ln(Z,y,M,ne,u[9],12,-1958414417),ne=Ln(ne,Z,y,M,u[10],17,-42063),M=Ln(M,ne,Z,y,u[11],22,-1990404162),y=Ln(y,M,ne,Z,u[12],7,1804603682),Z=Ln(Z,y,M,ne,u[13],12,-40341101),ne=Ln(ne,Z,y,M,u[14],17,-1502002290),y=Gn(y,M=Ln(M,ne,Z,y,u[15],22,1236535329),ne,Z,u[1],5,-165796510),Z=Gn(Z,y,M,ne,u[6],9,-1069501632),ne=Gn(ne,Z,y,M,u[11],14,643717713),M=Gn(M,ne,Z,y,u[0],20,-373897302),y=Gn(y,M,ne,Z,u[5],5,-701558691),Z=Gn(Z,y,M,ne,u[10],9,38016083),ne=Gn(ne,Z,y,M,u[15],14,-660478335),M=Gn(M,ne,Z,y,u[4],20,-405537848),y=Gn(y,M,ne,Z,u[9],5,568446438),Z=Gn(Z,y,M,ne,u[14],9,-1019803690),ne=Gn(ne,Z,y,M,u[3],14,-187363961),M=Gn(M,ne,Z,y,u[8],20,1163531501),y=Gn(y,M,ne,Z,u[13],5,-1444681467),Z=Gn(Z,y,M,ne,u[2],9,-51403784),ne=Gn(ne,Z,y,M,u[7],14,1735328473),y=Ci(y,M=Gn(M,ne,Z,y,u[12],20,-1926607734),ne,Z,u[5],4,-378558),Z=Ci(Z,y,M,ne,u[8],11,-2022574463),ne=Ci(ne,Z,y,M,u[11],16,1839030562),M=Ci(M,ne,Z,y,u[14],23,-35309556),y=Ci(y,M,ne,Z,u[1],4,-1530992060),Z=Ci(Z,y,M,ne,u[4],11,1272893353),ne=Ci(ne,Z,y,M,u[7],16,-155497632),M=Ci(M,ne,Z,y,u[10],23,-1094730640),y=Ci(y,M,ne,Z,u[13],4,681279174),Z=Ci(Z,y,M,ne,u[0],11,-358537222),ne=Ci(ne,Z,y,M,u[3],16,-722521979),M=Ci(M,ne,Z,y,u[6],23,76029189),y=Ci(y,M,ne,Z,u[9],4,-640364487),Z=Ci(Z,y,M,ne,u[12],11,-421815835),ne=Ci(ne,Z,y,M,u[15],16,530742520),y=ji(y,M=Ci(M,ne,Z,y,u[2],23,-995338651),ne,Z,u[0],6,-198630844),Z=ji(Z,y,M,ne,u[7],10,1126891415),ne=ji(ne,Z,y,M,u[14],15,-1416354905),M=ji(M,ne,Z,y,u[5],21,-57434055),y=ji(y,M,ne,Z,u[12],6,1700485571),Z=ji(Z,y,M,ne,u[3],10,-1894986606),ne=ji(ne,Z,y,M,u[10],15,-1051523),M=ji(M,ne,Z,y,u[1],21,-2054922799),y=ji(y,M,ne,Z,u[8],6,1873313359),Z=ji(Z,y,M,ne,u[15],10,-30611744),ne=ji(ne,Z,y,M,u[6],15,-1560198380),M=ji(M,ne,Z,y,u[13],21,1309151649),y=ji(y,M,ne,Z,u[4],6,-145523070),Z=ji(Z,y,M,ne,u[11],10,-1120210379),ne=ji(ne,Z,y,M,u[2],15,718787259),M=ji(M,ne,Z,y,u[9],21,-343485551),b[0]=Aa(y,b[0]),b[1]=Aa(M,b[1]),b[2]=Aa(ne,b[2]),b[3]=Aa(Z,b[3])}function Ht(b,u,y,M,ne,Z){return u=Aa(Aa(u,b),Aa(M,Z)),Aa(u<<ne|u>>>32-ne,y)}function Ln(b,u,y,M,ne,Z,ge){return Ht(u&y|~u&M,b,u,ne,Z,ge)}function Gn(b,u,y,M,ne,Z,ge){return Ht(u&M|y&~M,b,u,ne,Z,ge)}function Ci(b,u,y,M,ne,Z,ge){return Ht(u^y^M,b,u,ne,Z,ge)}function ji(b,u,y,M,ne,Z,ge){return Ht(y^(u|~M),b,u,ne,Z,ge)}function fa(b){var u,y=b.length,M=[1732584193,-271733879,-1732584194,271733878];for(u=64;u<=b.length;u+=64)vn(M,va(b.substring(u-64,u)));b=b.substring(u-64);var ne=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(u=0;u<b.length;u++)ne[u>>2]|=b.charCodeAt(u)<<(u%4<<3);if(ne[u>>2]|=128<<(u%4<<3),u>55)for(vn(M,ne),u=0;u<16;u++)ne[u]=0;return ne[14]=8*y,vn(M,ne),M}function va(b){var u,y=[];for(u=0;u<64;u+=4)y[u>>2]=b.charCodeAt(u)+(b.charCodeAt(u+1)<<8)+(b.charCodeAt(u+2)<<16)+(b.charCodeAt(u+3)<<24);return y}Bi=gn.atob.bind(gn),zi=gn.btoa.bind(gn);var ea="0123456789abcdef".split("");function _i(b){for(var u="",y=0;y<4;y++)u+=ea[b>>8*y+4&15]+ea[b>>8*y&15];return u}function yi(b){return String.fromCharCode((255&b)>>0,(65280&b)>>8,(16711680&b)>>16,(4278190080&b)>>24)}function Si(b){return fa(b).map(yi).join("")}var ra=function(b){for(var u=0;u<b.length;u++)b[u]=_i(b[u]);return b.join("")}(fa("hello"))!="5d41402abc4b2a76b9719d911017c592";function Aa(b,u){if(ra){var y=(65535&b)+(65535&u);return(b>>16)+(u>>16)+(y>>16)<<16|65535&y}return b+u&4294967295}function es(b,u){var y,M,ne,Z;if(b!==y){for(var ge=(ne=b,Z=1+(256/b.length>>0),new Array(Z+1).join(ne)),De=[],Ne=0;Ne<256;Ne++)De[Ne]=Ne;var tt=0;for(Ne=0;Ne<256;Ne++){var yt=De[Ne];tt=(tt+yt+ge.charCodeAt(Ne))%256,De[Ne]=De[tt],De[tt]=yt}y=b,M=De}else De=M;var vt=u.length,Pt=0,Ye=0,cr="";for(Ne=0;Ne<vt;Ne++)Ye=(Ye+(yt=De[Pt=(Pt+1)%256]))%256,De[Pt]=De[Ye],De[Ye]=yt,ge=De[(De[Pt]+De[Ye])%256],cr+=String.fromCharCode(u.charCodeAt(Ne)^ge);return cr}var ps={print:4,modify:8,copy:16,"annot-forms":32};function hi(b,u,y,M){this.v=1,this.r=2;var ne=192;b.forEach(function(De){if(ps.perm!==void 0)throw new Error("Invalid permission: "+De);ne+=ps[De]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var Z=(u+this.padding).substr(0,32),ge=(y+this.padding).substr(0,32);this.O=this.processOwnerPassword(Z,ge),this.P=-(1+(255^ne)),this.encryptionKey=Si(Z+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(M)).substr(0,5),this.U=es(this.encryptionKey,this.padding)}function Ca(b){if(/[^\u0000-\u00ff]/.test(b))throw new Error("Invalid PDF Name Object: "+b+", Only accept ASCII characters.");for(var u="",y=b.length,M=0;M<y;M++){var ne=b.charCodeAt(M);ne<33||ne===35||ne===37||ne===40||ne===41||ne===47||ne===60||ne===62||ne===91||ne===93||ne===123||ne===125||ne>126?u+="#"+("0"+ne.toString(16)).slice(-2):u+=b[M]}return u}function ma(b){if((0,we.Z)(b)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var u={};this.subscribe=function(y,M,ne){if(ne=ne||!1,typeof y!="string"||typeof M!="function"||typeof ne!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");u.hasOwnProperty(y)||(u[y]={});var Z=Math.random().toString(35);return u[y][Z]=[M,!!ne],Z},this.unsubscribe=function(y){for(var M in u)if(u[M][y])return delete u[M][y],Object.keys(u[M]).length===0&&delete u[M],!0;return!1},this.publish=function(y){if(u.hasOwnProperty(y)){var M=Array.prototype.slice.call(arguments,1),ne=[];for(var Z in u[y]){var ge=u[y][Z];try{ge[0].apply(b,M)}catch(De){gn.console&&ii.error("jsPDF PubSub Error",De.message,De)}ge[1]&&ne.push(Z)}ne.length&&ne.forEach(this.unsubscribe)}},this.getTopics=function(){return u}}function ka(b){if(!(this instanceof ka))return new ka(b);var u="opacity,stroke-opacity".split(",");for(var y in b)b.hasOwnProperty(y)&&u.indexOf(y)>=0&&(this[y]=b[y]);this.id="",this.objectNumber=-1}function Ps(b,u){this.gState=b,this.matrix=u,this.id="",this.objectNumber=-1}function is(b,u,y,M,ne){if(!(this instanceof is))return new is(b,u,y,M,ne);this.type=b==="axial"?2:3,this.coords=u,this.colors=y,Ps.call(this,M,ne)}function Fa(b,u,y,M,ne){if(!(this instanceof Fa))return new Fa(b,u,y,M,ne);this.boundingBox=b,this.xStep=u,this.yStep=y,this.stream="",this.cloneIndex=0,Ps.call(this,M,ne)}function Mi(b){var u,y=typeof arguments[0]=="string"?arguments[0]:"p",M=arguments[1],ne=arguments[2],Z=arguments[3],ge=[],De=1,Ne=16,tt="S",yt=null;(0,we.Z)(b=b||{})==="object"&&(y=b.orientation,M=b.unit||M,ne=b.format||ne,Z=b.compress||b.compressPdf||Z,(yt=b.encryption||null)!==null&&(yt.userPassword=yt.userPassword||"",yt.ownerPassword=yt.ownerPassword||"",yt.userPermissions=yt.userPermissions||[]),De=typeof b.userUnit=="number"?Math.abs(b.userUnit):1,b.precision!==void 0&&(u=b.precision),b.floatPrecision!==void 0&&(Ne=b.floatPrecision),tt=b.defaultPathOperation||"S"),ge=b.filters||(Z===!0?["FlateEncode"]:ge),M=M||"mm",y=(""+(y||"P")).toLowerCase();var vt=b.putOnlyUsedFonts||!1,Pt={},Ye={internal:{},__private__:{}};Ye.__private__.PubSub=ma;var cr="1.3",tr=Ye.__private__.getPdfVersion=function(){return cr};Ye.__private__.setPdfVersion=function(Ae){cr=Ae};var dr={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]};Ye.__private__.getPageFormats=function(){return dr};var Qt=Ye.__private__.getPageFormat=function(Ae){return dr[Ae]};ne=ne||"a4";var pr={COMPAT:"compat",ADVANCED:"advanced"},Ur=pr.COMPAT;function sn(){this.saveGraphicsState(),ir(new Xi(je,0,0,-je,0,tu()*je).toString()+" cm"),this.setFontSize(this.getFontSize()/je),tt="n",Ur=pr.ADVANCED}function Rn(){this.restoreGraphicsState(),tt="S",Ur=pr.COMPAT}var ci=Ye.__private__.combineFontStyleAndFontWeight=function(Ae,Et){if(Ae=="bold"&&Et=="normal"||Ae=="bold"&&Et==400||Ae=="normal"&&Et=="italic"||Ae=="bold"&&Et=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Et&&(Ae=Et==400||Et==="normal"?Ae==="italic"?"italic":"normal":Et!=700&&Et!=="bold"||Ae!=="normal"?(Et==700?"bold":Et)+""+Ae:"bold"),Ae};Ye.advancedAPI=function(Ae){var Et=Ur===pr.COMPAT;return Et&&sn.call(this),typeof Ae!="function"||(Ae(this),Et&&Rn.call(this)),this},Ye.compatAPI=function(Ae){var Et=Ur===pr.ADVANCED;return Et&&Rn.call(this),typeof Ae!="function"||(Ae(this),Et&&sn.call(this)),this},Ye.isAdvancedAPI=function(){return Ur===pr.ADVANCED};var pn,Br=function(Ae){if(Ur!==pr.ADVANCED)throw new Error(Ae+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},bn=Ye.roundToPrecision=Ye.__private__.roundToPrecision=function(Ae,Et){var mr=u||Et;if(isNaN(Ae)||isNaN(mr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ae.toFixed(mr).replace(/0+$/,"")};pn=Ye.hpf=Ye.__private__.hpf=typeof Ne=="number"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return bn(Ae,Ne)}:Ne==="smart"?function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return bn(Ae,Ae>-1&&Ae<1?16:5)}:function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.hpf");return bn(Ae,16)};var Pn=Ye.f2=Ye.__private__.f2=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f2");return bn(Ae,2)},er=Ye.__private__.f3=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.f3");return bn(Ae,3)},nr=Ye.scale=Ye.__private__.scale=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.scale");return Ur===pr.COMPAT?Ae*je:Ur===pr.ADVANCED?Ae:void 0},ye=function(Ae){return Ur===pr.COMPAT?tu()-Ae:Ur===pr.ADVANCED?Ae:void 0},Ee=function(Ae){return nr(ye(Ae))};Ye.__private__.setPrecision=Ye.setPrecision=function(Ae){typeof parseInt(Ae,10)=="number"&&(u=parseInt(Ae,10))};var et,st="00000000000000000000000000000000",gt=Ye.__private__.getFileId=function(){return st},ht=Ye.__private__.setFileId=function(Ae){return st=Ae!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ae)?Ae.toUpperCase():st.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),yt!==null&&(ko=new hi(yt.userPermissions,yt.userPassword,yt.ownerPassword,st)),st};Ye.setFileId=function(Ae){return ht(Ae),this},Ye.getFileId=function(){return gt()};var Ut=Ye.__private__.convertDateToPDFDate=function(Ae){var Et=Ae.getTimezoneOffset(),mr=Et<0?"+":"-",Rr=Math.floor(Math.abs(Et/60)),un=Math.abs(Et%60),Kn=[mr,wt(Rr),"'",wt(un),"'"].join("");return["D:",Ae.getFullYear(),wt(Ae.getMonth()+1),wt(Ae.getDate()),wt(Ae.getHours()),wt(Ae.getMinutes()),wt(Ae.getSeconds()),Kn].join("")},$t=Ye.__private__.convertPDFDateToDate=function(Ae){var Et=parseInt(Ae.substr(2,4),10),mr=parseInt(Ae.substr(6,2),10)-1,Rr=parseInt(Ae.substr(8,2),10),un=parseInt(Ae.substr(10,2),10),Kn=parseInt(Ae.substr(12,2),10),Ei=parseInt(Ae.substr(14,2),10);return new Date(Et,mr,Rr,un,Kn,Ei,0)},sr=Ye.__private__.setCreationDate=function(Ae){var Et;if(Ae===void 0&&(Ae=new Date),Ae instanceof Date)Et=Ut(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");Et=Ae}return et=Et},ze=Ye.__private__.getCreationDate=function(Ae){var Et=et;return Ae==="jsDate"&&(Et=$t(et)),Et};Ye.setCreationDate=function(Ae){return sr(Ae),this},Ye.getCreationDate=function(Ae){return ze(Ae)};var Ce,wt=Ye.__private__.padd2=function(Ae){return("0"+parseInt(Ae)).slice(-2)},jt=Ye.__private__.padd2Hex=function(Ae){return("00"+(Ae=Ae.toString())).substr(Ae.length)},Wt=0,ur=[],It=[],br=0,Gr=[],$r=[],cn=!1,Dn=It,ni=function(){Wt=0,br=0,It=[],ur=[],Gr=[],xa=os(),ja=os()};Ye.__private__.setCustomOutputDestination=function(Ae){cn=!0,Dn=Ae};var Mr=function(Ae){cn||(Dn=Ae)};Ye.__private__.resetCustomOutputDestination=function(){cn=!1,Dn=It};var ir=Ye.__private__.out=function(Ae){return Ae=Ae.toString(),br+=Ae.length+1,Dn.push(Ae),Dn},Ii=Ye.__private__.write=function(Ae){return ir(arguments.length===1?Ae.toString():Array.prototype.join.call(arguments," "))},Fn=Ye.__private__.getArrayBuffer=function(Ae){for(var Et=Ae.length,mr=new ArrayBuffer(Et),Rr=new Uint8Array(mr);Et--;)Rr[Et]=Ae.charCodeAt(Et);return mr},ln=[["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]];Ye.__private__.getStandardFonts=function(){return ln};var An=b.fontSize||16;Ye.__private__.setFontSize=Ye.setFontSize=function(Ae){return An=Ur===pr.ADVANCED?Ae/je:Ae,this};var rn,Cn=Ye.__private__.getFontSize=Ye.getFontSize=function(){return Ur===pr.COMPAT?An:An*je},ai=b.R2L||!1;Ye.__private__.setR2L=Ye.setR2L=function(Ae){return ai=Ae,this},Ye.__private__.getR2L=Ye.getR2L=function(){return ai};var Li,He=Ye.__private__.setZoomMode=function(Ae){var Et=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ae))rn=Ae;else if(isNaN(Ae)){if(Et.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)};Ye.__private__.getZoomMode=function(){return rn};var c,w=Ye.__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.');Li=Ae};Ye.__private__.getPageMode=function(){return Li};var C=Ye.__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.');c=Ae};Ye.__private__.getLayoutMode=function(){return c},Ye.__private__.setDisplayMode=Ye.setDisplayMode=function(Ae,Et,mr){return He(Ae),C(Et),w(mr),this};var $={title:"",subject:"",author:"",keywords:"",creator:""};Ye.__private__.getDocumentProperty=function(Ae){if(Object.keys($).indexOf(Ae)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return $[Ae]},Ye.__private__.getDocumentProperties=function(){return $},Ye.__private__.setDocumentProperties=Ye.setProperties=Ye.setDocumentProperties=function(Ae){for(var Et in $)$.hasOwnProperty(Et)&&Ae[Et]&&($[Et]=Ae[Et]);return this},Ye.__private__.setDocumentProperty=function(Ae,Et){if(Object.keys($).indexOf(Ae)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return $[Ae]=Et};var Be,je,xt,bt,Jt,Ar={},xr={},nn=[],xn={},Xr={},dn={},kn={},Zn=null,bi=0,En=[],pi=new ma(Ye),Ji=b.hotfixes||[],Ki={},Sa={},Ia=[],Xi=function Ae(Et,mr,Rr,un,Kn,Ei){if(!(this instanceof Ae))return new Ae(Et,mr,Rr,un,Kn,Ei);isNaN(Et)&&(Et=1),isNaN(mr)&&(mr=0),isNaN(Rr)&&(Rr=0),isNaN(un)&&(un=1),isNaN(Kn)&&(Kn=0),isNaN(Ei)&&(Ei=0),this._matrix=[Et,mr,Rr,un,Kn,Ei]};Object.defineProperty(Xi.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(Xi.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(Xi.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(Xi.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(Xi.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(Xi.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(Xi.prototype,"a",{get:function(){return this._matrix[0]},set:function(Ae){this._matrix[0]=Ae}}),Object.defineProperty(Xi.prototype,"b",{get:function(){return this._matrix[1]},set:function(Ae){this._matrix[1]=Ae}}),Object.defineProperty(Xi.prototype,"c",{get:function(){return this._matrix[2]},set:function(Ae){this._matrix[2]=Ae}}),Object.defineProperty(Xi.prototype,"d",{get:function(){return this._matrix[3]},set:function(Ae){this._matrix[3]=Ae}}),Object.defineProperty(Xi.prototype,"e",{get:function(){return this._matrix[4]},set:function(Ae){this._matrix[4]=Ae}}),Object.defineProperty(Xi.prototype,"f",{get:function(){return this._matrix[5]},set:function(Ae){this._matrix[5]=Ae}}),Object.defineProperty(Xi.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Xi.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Xi.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Xi.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Xi.prototype.join=function(Ae){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(pn).join(Ae)},Xi.prototype.multiply=function(Ae){var Et=Ae.sx*this.sx+Ae.shy*this.shx,mr=Ae.sx*this.shy+Ae.shy*this.sy,Rr=Ae.shx*this.sx+Ae.sy*this.shx,un=Ae.shx*this.shy+Ae.sy*this.sy,Kn=Ae.tx*this.sx+Ae.ty*this.shx+this.tx,Ei=Ae.tx*this.shy+Ae.ty*this.sy+this.ty;return new Xi(Et,mr,Rr,un,Kn,Ei)},Xi.prototype.decompose=function(){var Ae=this.sx,Et=this.shy,mr=this.shx,Rr=this.sy,un=this.tx,Kn=this.ty,Ei=Math.sqrt(Ae*Ae+Et*Et),na=(Ae/=Ei)*mr+(Et/=Ei)*Rr;mr-=Ae*na,Rr-=Et*na;var ba=Math.sqrt(mr*mr+Rr*Rr);return na/=ba,Ae*(Rr/=ba)<Et*(mr/=ba)&&(Ae=-Ae,Et=-Et,na=-na,Ei=-Ei),{scale:new Xi(Ei,0,0,ba,0,0),translate:new Xi(1,0,0,1,un,Kn),rotate:new Xi(Ae,Et,-Et,Ae,0,0),skew:new Xi(1,0,na,1,0,0)}},Xi.prototype.toString=function(Ae){return this.join(" ")},Xi.prototype.inversed=function(){var Ae=this.sx,Et=this.shy,mr=this.shx,Rr=this.sy,un=this.tx,Kn=this.ty,Ei=1/(Ae*Rr-Et*mr),na=Rr*Ei,ba=-Et*Ei,Wa=-mr*Ei,Ka=Ae*Ei;return new Xi(na,ba,Wa,Ka,-na*un-Wa*Kn,-ba*un-Ka*Kn)},Xi.prototype.applyToPoint=function(Ae){var Et=Ae.x*this.sx+Ae.y*this.shx+this.tx,mr=Ae.x*this.shy+Ae.y*this.sy+this.ty;return new Ac(Et,mr)},Xi.prototype.applyToRectangle=function(Ae){var Et=this.applyToPoint(Ae),mr=this.applyToPoint(new Ac(Ae.x+Ae.w,Ae.y+Ae.h));return new dc(Et.x,Et.y,mr.x-Et.x,mr.y-Et.y)},Xi.prototype.clone=function(){var Ae=this.sx,Et=this.shy,mr=this.shx,Rr=this.sy,un=this.tx,Kn=this.ty;return new Xi(Ae,Et,mr,Rr,un,Kn)},Ye.Matrix=Xi;var Ta=Ye.matrixMult=function(Ae,Et){return Et.multiply(Ae)},Ba=new Xi(1,0,0,1,0,0);Ye.unitMatrix=Ye.identityMatrix=Ba;var si=function(Ae,Et){if(!Xr[Ae]){var mr=(Et instanceof is?"Sh":"P")+(Object.keys(xn).length+1).toString(10);Et.id=mr,Xr[Ae]=mr,xn[mr]=Et,pi.publish("addPattern",Et)}};Ye.ShadingPattern=is,Ye.TilingPattern=Fa,Ye.addShadingPattern=function(Ae,Et){return Br("addShadingPattern()"),si(Ae,Et),this},Ye.beginTilingPattern=function(Ae){Br("beginTilingPattern()"),bc(Ae.boundingBox[0],Ae.boundingBox[1],Ae.boundingBox[2]-Ae.boundingBox[0],Ae.boundingBox[3]-Ae.boundingBox[1],Ae.matrix)},Ye.endTilingPattern=function(Ae,Et){Br("endTilingPattern()"),Et.stream=$r[Ce].join(`
|
|
|
`),si(Ae,Et),pi.publish("endTilingPattern",Et),Ia.pop().restore()};var Ha=Ye.__private__.newObject=function(){var Ae=os();return sa(Ae,!0),Ae},os=Ye.__private__.newObjectDeferred=function(){return Wt++,ur[Wt]=function(){return br},Wt},sa=function(Ae,Et){return Et=typeof Et=="boolean"&&Et,ur[Ae]=br,Et&&ir(Ae+" 0 obj"),Ae},ha=Ye.__private__.newAdditionalObject=function(){var Ae={objId:os(),content:""};return Gr.push(Ae),Ae},xa=os(),ja=os(),ls=Ye.__private__.decodeColorString=function(Ae){var Et=Ae.split(" ");if(Et.length!==2||Et[1]!=="g"&&Et[1]!=="G")Et.length===5&&(Et[4]==="k"||Et[4]==="K")&&(Et=[(1-Et[0])*(1-Et[3]),(1-Et[1])*(1-Et[3]),(1-Et[2])*(1-Et[3]),"r"]);else{var mr=parseFloat(Et[0]);Et=[mr,mr,mr,"r"]}for(var Rr="#",un=0;un<3;un++)Rr+=("0"+Math.floor(255*parseFloat(Et[un])).toString(16)).slice(-2);return Rr},da=Ye.__private__.encodeColorString=function(Ae){var Et;typeof Ae=="string"&&(Ae={ch1:Ae});var mr=Ae.ch1,Rr=Ae.ch2,un=Ae.ch3,Kn=Ae.ch4,Ei=Ae.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof mr=="string"&&mr.charAt(0)!=="#"){var na=new xi(mr);if(na.ok)mr=na.toHex();else if(!/^\d*\.?\d*$/.test(mr))throw new Error('Invalid color "'+mr+'" passed to jsPDF.encodeColorString.')}if(typeof mr=="string"&&/^#[0-9A-Fa-f]{3}$/.test(mr)&&(mr="#"+mr[1]+mr[1]+mr[2]+mr[2]+mr[3]+mr[3]),typeof mr=="string"&&/^#[0-9A-Fa-f]{6}$/.test(mr)){var ba=parseInt(mr.substr(1),16);mr=ba>>16&255,Rr=ba>>8&255,un=255&ba}if(Rr===void 0||Kn===void 0&&mr===Rr&&Rr===un)if(typeof mr=="string")Et=mr+" "+Ei[0];else switch(Ae.precision){case 2:Et=Pn(mr/255)+" "+Ei[0];break;case 3:default:Et=er(mr/255)+" "+Ei[0]}else if(Kn===void 0||(0,we.Z)(Kn)==="object"){if(Kn&&!isNaN(Kn.a)&&Kn.a===0)return Et=["1.","1.","1.",Ei[1]].join(" ");if(typeof mr=="string")Et=[mr,Rr,un,Ei[1]].join(" ");else switch(Ae.precision){case 2:Et=[Pn(mr/255),Pn(Rr/255),Pn(un/255),Ei[1]].join(" ");break;default:case 3:Et=[er(mr/255),er(Rr/255),er(un/255),Ei[1]].join(" ")}}else if(typeof mr=="string")Et=[mr,Rr,un,Kn,Ei[2]].join(" ");else switch(Ae.precision){case 2:Et=[Pn(mr),Pn(Rr),Pn(un),Pn(Kn),Ei[2]].join(" ");break;case 3:default:Et=[er(mr),er(Rr),er(un),er(Kn),Ei[2]].join(" ")}return Et},Is=Ye.__private__.getFilters=function(){return ge},bs=Ye.__private__.putStream=function(Ae){var Et=(Ae=Ae||{}).data||"",mr=Ae.filters||Is(),Rr=Ae.alreadyAppliedFilters||[],un=Ae.addLength1||!1,Kn=Et.length,Ei=Ae.objectId,na=function(Yo){return Yo};if(yt!==null&&Ei===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");yt!==null&&(na=ko.encryptor(Ei,0));var ba={};mr===!0&&(mr=["FlateEncode"]);var Wa=Ae.additionalKeyValues||[],Ka=(ba=Mi.API.processDataByFilters!==void 0?Mi.API.processDataByFilters(Et,mr):{data:Et,reverseChain:[]}).reverseChain+(Array.isArray(Rr)?Rr.join(" "):Rr.toString());if(ba.data.length!==0&&(Wa.push({key:"Length",value:ba.data.length}),un===!0&&Wa.push({key:"Length1",value:Kn})),Ka.length!=0)if(Ka.split("/").length-1==1)Wa.push({key:"Filter",value:Ka});else{Wa.push({key:"Filter",value:"["+Ka+"]"});for(var xs=0;xs<Wa.length;xs+=1)if(Wa[xs].key==="DecodeParms"){for(var mo=[],wo=0;wo<ba.reverseChain.split("/").length-1;wo+=1)mo.push("null");mo.push(Wa[xs].value),Wa[xs].value="["+mo.join(" ")+"]"}}ir("<<");for(var To=0;To<Wa.length;To++)ir("/"+Wa[To].key+" "+Wa[To].value);ir(">>"),ba.data.length!==0&&(ir("stream"),ir(na(ba.data)),ir("endstream"))},Hs=Ye.__private__.putPage=function(Ae){var Et=Ae.number,mr=Ae.data,Rr=Ae.objId,un=Ae.contentsObjId;sa(Rr,!0),ir("<</Type /Page"),ir("/Parent "+Ae.rootDictionaryObjId+" 0 R"),ir("/Resources "+Ae.resourceDictionaryObjId+" 0 R"),ir("/MediaBox ["+parseFloat(pn(Ae.mediaBox.bottomLeftX))+" "+parseFloat(pn(Ae.mediaBox.bottomLeftY))+" "+pn(Ae.mediaBox.topRightX)+" "+pn(Ae.mediaBox.topRightY)+"]"),Ae.cropBox!==null&&ir("/CropBox ["+pn(Ae.cropBox.bottomLeftX)+" "+pn(Ae.cropBox.bottomLeftY)+" "+pn(Ae.cropBox.topRightX)+" "+pn(Ae.cropBox.topRightY)+"]"),Ae.bleedBox!==null&&ir("/BleedBox ["+pn(Ae.bleedBox.bottomLeftX)+" "+pn(Ae.bleedBox.bottomLeftY)+" "+pn(Ae.bleedBox.topRightX)+" "+pn(Ae.bleedBox.topRightY)+"]"),Ae.trimBox!==null&&ir("/TrimBox ["+pn(Ae.trimBox.bottomLeftX)+" "+pn(Ae.trimBox.bottomLeftY)+" "+pn(Ae.trimBox.topRightX)+" "+pn(Ae.trimBox.topRightY)+"]"),Ae.artBox!==null&&ir("/ArtBox ["+pn(Ae.artBox.bottomLeftX)+" "+pn(Ae.artBox.bottomLeftY)+" "+pn(Ae.artBox.topRightX)+" "+pn(Ae.artBox.topRightY)+"]"),typeof Ae.userUnit=="number"&&Ae.userUnit!==1&&ir("/UserUnit "+Ae.userUnit),pi.publish("putPage",{objId:Rr,pageContext:En[Et],pageNumber:Et,page:mr}),ir("/Contents "+un+" 0 R"),ir(">>"),ir("endobj");var Kn=mr.join(`
|
|
|
`);return Ur===pr.ADVANCED&&(Kn+=`
|
|
|
Q`),sa(un,!0),bs({data:Kn,filters:Is(),objectId:un}),ir("endobj"),Rr},Zs=Ye.__private__.putPages=function(){var Ae,Et,mr=[];for(Ae=1;Ae<=bi;Ae++)En[Ae].objId=os(),En[Ae].contentsObjId=os();for(Ae=1;Ae<=bi;Ae++)mr.push(Hs({number:Ae,data:$r[Ae],objId:En[Ae].objId,contentsObjId:En[Ae].contentsObjId,mediaBox:En[Ae].mediaBox,cropBox:En[Ae].cropBox,bleedBox:En[Ae].bleedBox,trimBox:En[Ae].trimBox,artBox:En[Ae].artBox,userUnit:En[Ae].userUnit,rootDictionaryObjId:xa,resourceDictionaryObjId:ja}));sa(xa,!0),ir("<</Type /Pages");var Rr="/Kids [";for(Et=0;Et<bi;Et++)Rr+=mr[Et]+" 0 R ";ir(Rr+"]"),ir("/Count "+bi),ir(">>"),ir("endobj"),pi.publish("postPutPages")},Xs=function(Ae){pi.publish("putFont",{font:Ae,out:ir,newObject:Ha,putStream:bs}),Ae.isAlreadyPutted!==!0&&(Ae.objectNumber=Ha(),ir("<<"),ir("/Type /Font"),ir("/BaseFont /"+Ca(Ae.postScriptName)),ir("/Subtype /Type1"),typeof Ae.encoding=="string"&&ir("/Encoding /"+Ae.encoding),ir("/FirstChar 32"),ir("/LastChar 255"),ir(">>"),ir("endobj"))},Wo=function(){for(var Ae in Ar)Ar.hasOwnProperty(Ae)&&(vt===!1||vt===!0&&Pt.hasOwnProperty(Ae))&&Xs(Ar[Ae])},$o=function(Ae){Ae.objectNumber=Ha();var Et=[];Et.push({key:"Type",value:"/XObject"}),Et.push({key:"Subtype",value:"/Form"}),Et.push({key:"BBox",value:"["+[pn(Ae.x),pn(Ae.y),pn(Ae.x+Ae.width),pn(Ae.y+Ae.height)].join(" ")+"]"}),Et.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"});var mr=Ae.pages[1].join(`
|
|
|
`);bs({data:mr,additionalKeyValues:Et,objectId:Ae.objectNumber}),ir("endobj")},ho=function(){for(var Ae in Ki)Ki.hasOwnProperty(Ae)&&$o(Ki[Ae])},oo=function(Ae,Et){var mr,Rr=[],un=1/(Et-1);for(mr=0;mr<1;mr+=un)Rr.push(mr);if(Rr.push(1),Ae[0].offset!=0){var Kn={offset:0,color:Ae[0].color};Ae.unshift(Kn)}if(Ae[Ae.length-1].offset!=1){var Ei={offset:1,color:Ae[Ae.length-1].color};Ae.push(Ei)}for(var na="",ba=0,Wa=0;Wa<Rr.length;Wa++){for(mr=Rr[Wa];mr>Ae[ba+1].offset;)ba++;var Ka=Ae[ba].offset,xs=(mr-Ka)/(Ae[ba+1].offset-Ka),mo=Ae[ba].color,wo=Ae[ba+1].color;na+=jt(Math.round((1-xs)*mo[0]+xs*wo[0]).toString(16))+jt(Math.round((1-xs)*mo[1]+xs*wo[1]).toString(16))+jt(Math.round((1-xs)*mo[2]+xs*wo[2]).toString(16))}return na.trim()},ro=function(Ae,Et){Et||(Et=21);var mr=Ha(),Rr=oo(Ae.colors,Et),un=[];un.push({key:"FunctionType",value:"0"}),un.push({key:"Domain",value:"[0.0 1.0]"}),un.push({key:"Size",value:"["+Et+"]"}),un.push({key:"BitsPerSample",value:"8"}),un.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),un.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),bs({data:Rr,additionalKeyValues:un,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:mr}),ir("endobj"),Ae.objectNumber=Ha(),ir("<< /ShadingType "+Ae.type),ir("/ColorSpace /DeviceRGB");var Kn="/Coords ["+pn(parseFloat(Ae.coords[0]))+" "+pn(parseFloat(Ae.coords[1]))+" ";Ae.type===2?Kn+=pn(parseFloat(Ae.coords[2]))+" "+pn(parseFloat(Ae.coords[3])):Kn+=pn(parseFloat(Ae.coords[2]))+" "+pn(parseFloat(Ae.coords[3]))+" "+pn(parseFloat(Ae.coords[4]))+" "+pn(parseFloat(Ae.coords[5])),ir(Kn+="]"),Ae.matrix&&ir("/Matrix ["+Ae.matrix.toString()+"]"),ir("/Function "+mr+" 0 R"),ir("/Extend [true true]"),ir(">>"),ir("endobj")},$s=function(Ae,Et){var mr=os(),Rr=Ha();Et.push({resourcesOid:mr,objectOid:Rr}),Ae.objectNumber=Rr;var un=[];un.push({key:"Type",value:"/Pattern"}),un.push({key:"PatternType",value:"1"}),un.push({key:"PaintType",value:"1"}),un.push({key:"TilingType",value:"1"}),un.push({key:"BBox",value:"["+Ae.boundingBox.map(pn).join(" ")+"]"}),un.push({key:"XStep",value:pn(Ae.xStep)}),un.push({key:"YStep",value:pn(Ae.yStep)}),un.push({key:"Resources",value:mr+" 0 R"}),Ae.matrix&&un.push({key:"Matrix",value:"["+Ae.matrix.toString()+"]"}),bs({data:Ae.stream,additionalKeyValues:un,objectId:Ae.objectNumber}),ir("endobj")},Ja=function(Ae){var Et;for(Et in xn)xn.hasOwnProperty(Et)&&(xn[Et]instanceof is?ro(xn[Et]):xn[Et]instanceof Fa&&$s(xn[Et],Ae))},al=function(Ae){for(var Et in Ae.objectNumber=Ha(),ir("<<"),Ae)switch(Et){case"opacity":ir("/ca "+Pn(Ae[Et]));break;case"stroke-opacity":ir("/CA "+Pn(Ae[Et]))}ir(">>"),ir("endobj")},$l=function(){var Ae;for(Ae in dn)dn.hasOwnProperty(Ae)&&al(dn[Ae])},Vo=function(){for(var Ae in ir("/XObject <<"),Ki)Ki.hasOwnProperty(Ae)&&Ki[Ae].objectNumber>=0&&ir("/"+Ae+" "+Ki[Ae].objectNumber+" 0 R");pi.publish("putXobjectDict"),ir(">>")},Jo=function(){ko.oid=Ha(),ir("<<"),ir("/Filter /Standard"),ir("/V "+ko.v),ir("/R "+ko.r),ir("/U <"+ko.toHexString(ko.U)+">"),ir("/O <"+ko.toHexString(ko.O)+">"),ir("/P "+ko.P),ir(">>"),ir("endobj")},fu=function(){for(var Ae in ir("/Font <<"),Ar)Ar.hasOwnProperty(Ae)&&(vt===!1||vt===!0&&Pt.hasOwnProperty(Ae))&&ir("/"+Ae+" "+Ar[Ae].objectNumber+" 0 R");ir(">>")},Iu=function(){if(Object.keys(xn).length>0){for(var Ae in ir("/Shading <<"),xn)xn.hasOwnProperty(Ae)&&xn[Ae]instanceof is&&xn[Ae].objectNumber>=0&&ir("/"+Ae+" "+xn[Ae].objectNumber+" 0 R");pi.publish("putShadingPatternDict"),ir(">>")}},Ma=function(Ae){if(Object.keys(xn).length>0){for(var Et in ir("/Pattern <<"),xn)xn.hasOwnProperty(Et)&&xn[Et]instanceof Ye.TilingPattern&&xn[Et].objectNumber>=0&&xn[Et].objectNumber<Ae&&ir("/"+Et+" "+xn[Et].objectNumber+" 0 R");pi.publish("putTilingPatternDict"),ir(">>")}},_s=function(){if(Object.keys(dn).length>0){var Ae;for(Ae in ir("/ExtGState <<"),dn)dn.hasOwnProperty(Ae)&&dn[Ae].objectNumber>=0&&ir("/"+Ae+" "+dn[Ae].objectNumber+" 0 R");pi.publish("putGStateDict"),ir(">>")}},qa=function(Ae){sa(Ae.resourcesOid,!0),ir("<<"),ir("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),fu(),Iu(),Ma(Ae.objectOid),_s(),Vo(),ir(">>"),ir("endobj")},Bs=function(){var Ae=[];Wo(),$l(),ho(),Ja(Ae),pi.publish("putResources"),Ae.forEach(qa),qa({resourcesOid:ja,objectOid:Number.MAX_SAFE_INTEGER}),pi.publish("postPutResources")},bo=function(){pi.publish("putAdditionalObjects");for(var Ae=0;Ae<Gr.length;Ae++){var Et=Gr[Ae];sa(Et.objId,!0),ir(Et.content),ir("endobj")}pi.publish("postPutAdditionalObjects")},Ro=function(Ae){xr[Ae.fontName]=xr[Ae.fontName]||{},xr[Ae.fontName][Ae.fontStyle]=Ae.id},po=function(Ae,Et,mr,Rr,un){var Kn={id:"F"+(Object.keys(Ar).length+1).toString(10),postScriptName:Ae,fontName:Et,fontStyle:mr,encoding:Rr,isStandardFont:un||!1,metadata:{}};return pi.publish("addFont",{font:Kn,instance:this}),Ar[Kn.id]=Kn,Ro(Kn),Kn.id},Cl=function(Ae){for(var Et=0,mr=ln.length;Et<mr;Et++){var Rr=po.call(this,Ae[Et][0],Ae[Et][1],Ae[Et][2],ln[Et][3],!0);vt===!1&&(Pt[Rr]=!0);var un=Ae[Et][0].split("-");Ro({id:Rr,fontName:un[0],fontStyle:un[1]||""})}pi.publish("addFonts",{fonts:Ar,dictionary:xr})},Ko=function(Ae){return Ae.foo=function(){try{return Ae.apply(this,arguments)}catch(Rr){var Et=Rr.stack||"";~Et.indexOf(" at ")&&(Et=Et.split(" at ")[1]);var mr="Error in function "+Et.split(`
|
|
|
`)[0].split("<")[0]+": "+Rr.message;if(!gn.console)throw new Error(mr);gn.console.error(mr,Rr),gn.alert&&alert(mr)}},Ae.foo.bar=Ae,Ae.foo},Vl=function(Ae,Et){var mr,Rr,un,Kn,Ei,na,ba,Wa,Ka;if(un=(Et=Et||{}).sourceEncoding||"Unicode",Ei=Et.outputEncoding,(Et.autoencode||Ei)&&Ar[Be].metadata&&Ar[Be].metadata[un]&&Ar[Be].metadata[un].encoding&&(Kn=Ar[Be].metadata[un].encoding,!Ei&&Ar[Be].encoding&&(Ei=Ar[Be].encoding),!Ei&&Kn.codePages&&(Ei=Kn.codePages[0]),typeof Ei=="string"&&(Ei=Kn[Ei]),Ei)){for(ba=!1,na=[],mr=0,Rr=Ae.length;mr<Rr;mr++)(Wa=Ei[Ae.charCodeAt(mr)])?na.push(String.fromCharCode(Wa)):na.push(Ae[mr]),na[mr].charCodeAt(0)>>8&&(ba=!0);Ae=na.join("")}for(mr=Ae.length;ba===void 0&&mr!==0;)Ae.charCodeAt(mr-1)>>8&&(ba=!0),mr--;if(!ba)return Ae;for(na=Et.noBOM?[]:[254,255],mr=0,Rr=Ae.length;mr<Rr;mr++){if((Ka=(Wa=Ae.charCodeAt(mr))>>8)>>8)throw new Error("Character at position "+mr+" of string '"+Ae+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");na.push(Ka),na.push(Wa-(Ka<<8))}return String.fromCharCode.apply(void 0,na)},No=Ye.__private__.pdfEscape=Ye.pdfEscape=function(Ae,Et){return Vl(Ae,Et).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Yl=Ye.__private__.beginPage=function(Ae){$r[++bi]=[],En[bi]={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])}},sl(bi),Mr($r[Ce])},$u=function(Ae,Et){var mr,Rr,un;switch(y=Et||y,typeof Ae=="string"&&(mr=Qt(Ae.toLowerCase()),Array.isArray(mr)&&(Rr=mr[0],un=mr[1])),Array.isArray(Ae)&&(Rr=Ae[0]*je,un=Ae[1]*je),isNaN(Rr)&&(Rr=ne[0],un=ne[1]),(Rr>14400||un>14400)&&(ii.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Rr=Math.min(14400,Rr),un=Math.min(14400,un)),ne=[Rr,un],y.substr(0,1)){case"l":un>Rr&&(ne=[un,Rr]);break;case"p":Rr>un&&(ne=[un,Rr])}Yl(ne),Sl(zo),ir(Ml),cc!==0&&ir(cc+" J"),Nu!==0&&ir(Nu+" j"),pi.publish("addPage",{pageNumber:bi})},hu=function(Ae){Ae>0&&Ae<=bi&&($r.splice(Ae,1),En.splice(Ae,1),bi--,Ce>bi&&(Ce=bi),this.setPage(Ce))},sl=function(Ae){Ae>0&&Ae<=bi&&(Ce=Ae)},pu=Ye.__private__.getNumberOfPages=Ye.getNumberOfPages=function(){return $r.length-1},Tu=function(Ae,Et,mr){var Rr,un=void 0;return mr=mr||{},Ae=Ae!==void 0?Ae:Ar[Be].fontName,Et=Et!==void 0?Et:Ar[Be].fontStyle,Rr=Ae.toLowerCase(),xr[Rr]!==void 0&&xr[Rr][Et]!==void 0?un=xr[Rr][Et]:xr[Ae]!==void 0&&xr[Ae][Et]!==void 0?un=xr[Ae][Et]:mr.disableWarning===!1&&ii.warn("Unable to look up font label for font '"+Ae+"', '"+Et+"'. Refer to getFontList() for available fonts."),un||mr.noFallback||(un=xr.times[Et])==null&&(un=xr.times.normal),un},Ku=Ye.__private__.putInfo=function(){var Ae=Ha(),Et=function(Rr){return Rr};for(var mr in yt!==null&&(Et=ko.encryptor(Ae,0)),ir("<<"),ir("/Producer ("+No(Et("jsPDF "+Mi.version))+")"),$)$.hasOwnProperty(mr)&&$[mr]&&ir("/"+mr.substr(0,1).toUpperCase()+mr.substr(1)+" ("+No(Et($[mr]))+")");ir("/CreationDate ("+No(Et(et))+")"),ir(">>"),ir("endobj")},mu=Ye.__private__.putCatalog=function(Ae){var Et=(Ae=Ae||{}).rootDictionaryObjId||xa;switch(Ha(),ir("<<"),ir("/Type /Catalog"),ir("/Pages "+Et+" 0 R"),rn||(rn="fullwidth"),rn){case"fullwidth":ir("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ir("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ir("/OpenAction [3 0 R /Fit]");break;case"original":ir("/OpenAction [3 0 R /XYZ null null 1]");break;default:var mr=""+rn;mr.substr(mr.length-1)==="%"&&(rn=parseInt(rn)/100),typeof rn=="number"&&ir("/OpenAction [3 0 R /XYZ null null "+Pn(rn)+"]")}switch(c||(c="continuous"),c){case"continuous":ir("/PageLayout /OneColumn");break;case"single":ir("/PageLayout /SinglePage");break;case"two":case"twoleft":ir("/PageLayout /TwoColumnLeft");break;case"tworight":ir("/PageLayout /TwoColumnRight")}Li&&ir("/PageMode /"+Li),pi.publish("putCatalog"),ir(">>"),ir("endobj")},zu=Ye.__private__.putTrailer=function(){ir("trailer"),ir("<<"),ir("/Size "+(Wt+1)),ir("/Root "+Wt+" 0 R"),ir("/Info "+(Wt-1)+" 0 R"),yt!==null&&ir("/Encrypt "+ko.oid+" 0 R"),ir("/ID [ <"+st+"> <"+st+"> ]"),ir(">>")},Nl=Ye.__private__.putHeader=function(){ir("%PDF-"+cr),ir("%\xBA\xDF\xAC\xE0")},Gu=Ye.__private__.putXRef=function(){var Ae="0000000000";ir("xref"),ir("0 "+(Wt+1)),ir("0000000000 65535 f ");for(var Et=1;Et<=Wt;Et++)typeof ur[Et]=="function"?ir((Ae+ur[Et]()).slice(-10)+" 00000 n "):ur[Et]!==void 0?ir((Ae+ur[Et]).slice(-10)+" 00000 n "):ir("0000000000 00000 n ")},kl=Ye.__private__.buildDocument=function(){ni(),Mr(It),pi.publish("buildDocument"),Nl(),Zs(),bo(),Bs(),yt!==null&&Jo(),Ku(),mu();var Ae=br;return Gu(),zu(),ir("startxref"),ir(""+Ae),ir("%%EOF"),Mr($r[Ce]),It.join(`
|
|
|
`)},gu=Ye.__private__.getBlob=function(Ae){return new Blob([Fn(Ae)],{type:"application/pdf"})},Io=Ye.output=Ye.__private__.output=Ko(function(Ae,Et){switch(typeof(Et=Et||{})=="string"?Et={filename:Et}:Et.filename=Et.filename||"generated.pdf",Ae){case void 0:return kl();case"save":Ye.save(Et.filename);break;case"arraybuffer":return Fn(kl());case"blob":return gu(kl());case"bloburi":case"bloburl":if(gn.URL!==void 0&&typeof gn.URL.createObjectURL=="function")return gn.URL&&gn.URL.createObjectURL(gu(kl()))||void 0;ii.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var mr="",Rr=kl();try{mr=zi(Rr)}catch(wo){mr=zi(unescape(encodeURIComponent(Rr)))}return"data:application/pdf;filename="+Et.filename+";base64,"+mr;case"pdfobjectnewwindow":if(Object.prototype.toString.call(gn)==="[object Window]"){var un="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Kn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Et.pdfObjectUrl&&(un=Et.pdfObjectUrl,Kn="");var Ei='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+un+'"'+Kn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Et)+");<\/script></body></html>",na=gn.open();return na!==null&&na.document.write(Ei),na}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(gn)==="[object Window]"){var ba='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Et.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Et.filename+'" width="500px" height="400px" /></body></html>',Wa=gn.open();if(Wa!==null){Wa.document.write(ba);var Ka=this;Wa.document.documentElement.querySelector("#pdfViewer").onload=function(){Wa.document.title=Et.filename,Wa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Ka.output("bloburl"))}}return Wa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(gn)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var xs='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Et)+'"></iframe></body></html>',mo=gn.open();if(mo!==null&&(mo.document.write(xs),mo.document.title=Et.filename),mo||typeof safari=="undefined")return mo;break;case"datauri":case"dataurl":return gn.document.location.href=this.output("datauristring",Et);default:return null}}),vu=function(Ae){return Array.isArray(Ji)===!0&&Ji.indexOf(Ae)>-1};switch(M){case"pt":je=1;break;case"mm":je=72/25.4;break;case"cm":je=72/2.54;break;case"in":je=72;break;case"px":je=vu("px_scaling")==1?.75:96/72;break;case"pc":case"em":je=12;break;case"ex":je=6;break;default:if(typeof M!="number")throw new Error("Invalid unit: "+M);je=M}var ko=null;sr(),ht();var yc=function(Ae){return yt!==null?ko.encryptor(Ae,0):function(Et){return Et}},Zu=Ye.__private__.getPageInfo=Ye.getPageInfo=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:En[Ae].objId,pageNumber:Ae,pageContext:En[Ae]}},Oa=Ye.__private__.getPageInfoByObjId=function(Ae){if(isNaN(Ae)||Ae%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Et in En)if(En[Et].objId===Ae)break;return Zu(Et)},Fu=Ye.__private__.getCurrentPageInfo=Ye.getCurrentPageInfo=function(){return{objId:En[Ce].objId,pageNumber:Ce,pageContext:En[Ce]}};Ye.addPage=function(){return $u.apply(this,arguments),this},Ye.setPage=function(){return sl.apply(this,arguments),Mr.call(this,$r[Ce]),this},Ye.insertPage=function(Ae){return this.addPage(),this.movePage(Ce,Ae),this},Ye.movePage=function(Ae,Et){var mr,Rr;if(Ae>Et){mr=$r[Ae],Rr=En[Ae];for(var un=Ae;un>Et;un--)$r[un]=$r[un-1],En[un]=En[un-1];$r[Et]=mr,En[Et]=Rr,this.setPage(Et)}else if(Ae<Et){mr=$r[Ae],Rr=En[Ae];for(var Kn=Ae;Kn<Et;Kn++)$r[Kn]=$r[Kn+1],En[Kn]=En[Kn+1];$r[Et]=mr,En[Et]=Rr,this.setPage(Et)}return this},Ye.deletePage=function(){return hu.apply(this,arguments),this},Ye.__private__.text=Ye.text=function(Ae,Et,mr,Rr,un){var Kn,Ei,na,ba,Wa,Ka,xs,mo,wo,To=(Rr=Rr||{}).scope||this;if(typeof Ae=="number"&&typeof Et=="number"&&(typeof mr=="string"||Array.isArray(mr))){var Yo=mr;mr=Et,Et=Ae,Ae=Yo}if(arguments[3]instanceof Xi?(Br("The transform parameter of text() with a Matrix value"),wo=un):(na=arguments[4],ba=arguments[5],(0,we.Z)(xs=arguments[3])==="object"&&xs!==null||(typeof na=="string"&&(ba=na,na=null),typeof xs=="string"&&(ba=xs,xs=null),typeof xs=="number"&&(na=xs,xs=null),Rr={flags:xs,angle:na,align:ba})),isNaN(Et)||isNaN(mr)||Ae==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ae.length===0)return To;var Mo="",Kl=!1,el=typeof Rr.lineHeightFactor=="number"?Rr.lineHeightFactor:As,Tl=To.internal.scaleFactor;function xc(J){return J=J.split(" ").join(Array(Rr.TabLen||9).join(" ")),No(J,xs)}function Vu(J){for(var fe,Oe=J.concat(),Ve=[],Je=Oe.length;Je--;)typeof(fe=Oe.shift())=="string"?Ve.push(fe):Array.isArray(J)&&(fe.length===1||fe[1]===void 0&&fe[2]===void 0)?Ve.push(fe[0]):Ve.push([fe[0],fe[1],fe[2]]);return Ve}function hc(J,fe){var Oe;if(typeof J=="string")Oe=fe(J)[0];else if(Array.isArray(J)){for(var Ve,Je,ut=J.concat(),Ct=[],Ft=ut.length;Ft--;)typeof(Ve=ut.shift())=="string"?Ct.push(fe(Ve)[0]):Array.isArray(Ve)&&typeof Ve[0]=="string"&&(Je=fe(Ve[0],Ve[1],Ve[2]),Ct.push([Je[0],Je[1],Je[2]]));Oe=Ct}return Oe}var Yu=!1,Xu=!0;if(typeof Ae=="string")Yu=!0;else if(Array.isArray(Ae)){var Ec=Ae.concat();Ei=[];for(var pc,xo=Ec.length;xo--;)(typeof(pc=Ec.shift())!="string"||Array.isArray(pc)&&typeof pc[0]!="string")&&(Xu=!1);Yu=Xu}if(Yu===!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 Ju=An/To.internal.scaleFactor,no=Ju*(el-1);switch(Rr.baseline){case"bottom":mr-=no;break;case"top":mr+=Ju-no;break;case"hanging":mr+=Ju-2*no;break;case"middle":mr+=Ju/2-no}if((Ka=Rr.maxWidth||0)>0&&(typeof Ae=="string"?Ae=To.splitTextToSize(Ae,Ka):Object.prototype.toString.call(Ae)==="[object Array]"&&(Ae=Ae.reduce(function(J,fe){return J.concat(To.splitTextToSize(fe,Ka))},[]))),Kn={text:Ae,x:Et,y:mr,options:Rr,mutex:{pdfEscape:No,activeFontKey:Be,fonts:Ar,activeFontSize:An}},pi.publish("preProcessText",Kn),Ae=Kn.text,na=(Rr=Kn.options).angle,!(wo instanceof Xi)&&na&&typeof na=="number"){na*=Math.PI/180,Rr.rotationDirection===0&&(na=-na),Ur===pr.ADVANCED&&(na=-na);var Ul=Math.cos(na),ru=Math.sin(na);wo=new Xi(Ul,ru,-ru,Ul,0,0)}else na&&na instanceof Xi&&(wo=na);Ur!==pr.ADVANCED||wo||(wo=Ba),(Wa=Rr.charSpace||uc)!==void 0&&(Mo+=pn(nr(Wa))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(mo=Rr.horizontalScale)!==void 0&&(Mo+=pn(100*mo)+` Tz
|
|
|
`),Rr.lang;var Oo=-1,nu=Rr.renderingMode!==void 0?Rr.renderingMode:Rr.stroke,Eu=To.internal.getCurrentPageInfo().pageContext;switch(nu){case 0:case!1:case"fill":Oo=0;break;case 1:case!0:case"stroke":Oo=1;break;case 2:case"fillThenStroke":Oo=2;break;case 3:case"invisible":Oo=3;break;case 4:case"fillAndAddForClipping":Oo=4;break;case 5:case"strokeAndAddPathForClipping":Oo=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Oo=6;break;case 7:case"addToPathForClipping":Oo=7}var Ql=Eu.usedRenderingMode!==void 0?Eu.usedRenderingMode:-1;Oo!==-1?Mo+=Oo+` Tr
|
|
|
`:Ql!==-1&&(Mo+=`0 Tr
|
|
|
`),Oo!==-1&&(Eu.usedRenderingMode=Oo),ba=Rr.align||"left";var pl,qu=An*el,Cc=To.internal.pageSize.getWidth(),Mu=Ar[Be];Wa=Rr.charSpace||uc,Ka=Rr.maxWidth||0,xs=Object.assign({autoencode:!0,noBOM:!0},Rr.flags);var jl=[],iu=function(J){return To.getStringUnitWidth(J,{font:Mu,charSpace:Wa,fontSize:An,doKerning:!1})*An/Tl};if(Object.prototype.toString.call(Ae)==="[object Array]"){var ul;Ei=Vu(Ae),ba!=="left"&&(pl=Ei.map(iu));var Uo,Uu=0;if(ba==="right"){Et-=pl[0],Ae=[],xo=Ei.length;for(var au=0;au<xo;au++)au===0?(Uo=hl(Et),ul=Il(mr)):(Uo=nr(Uu-pl[au]),ul=-qu),Ae.push([Ei[au],Uo,ul]),Uu=pl[au]}else if(ba==="center"){Et-=pl[0]/2,Ae=[],xo=Ei.length;for(var su=0;su<xo;su++)su===0?(Uo=hl(Et),ul=Il(mr)):(Uo=nr((Uu-pl[su])/2),ul=-qu),Ae.push([Ei[su],Uo,ul]),Uu=pl[su]}else if(ba==="left"){Ae=[],xo=Ei.length;for(var mc=0;mc<xo;mc++)Ae.push(Ei[mc])}else if(ba==="justify"&&Mu.encoding==="Identity-H"){Ae=[],xo=Ei.length,Ka=Ka!==0?Ka:Cc;for(var Cu=0,Eo=0;Eo<xo;Eo++)if(ul=Eo===0?Il(mr):-qu,Uo=Eo===0?hl(Et):Cu,Eo<xo-1){var Qu=nr((Ka-pl[Eo])/(Ei[Eo].split(" ").length-1)),cl=Ei[Eo].split(" ");Ae.push([cl[0]+" ",Uo,ul]),Cu=0;for(var Hl=1;Hl<cl.length;Hl++){var gc=(iu(cl[Hl-1]+" "+cl[Hl])-iu(cl[Hl]))*Tl+Qu;Hl==cl.length-1?Ae.push([cl[Hl],gc,0]):Ae.push([cl[Hl]+" ",gc,0]),Cu-=gc}}else Ae.push([Ei[Eo],Uo,ul]);Ae.push(["",Cu,0])}else{if(ba!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Ae=[],xo=Ei.length,Ka=Ka!==0?Ka:Cc,Eo=0;Eo<xo;Eo++)ul=Eo===0?Il(mr):-qu,Uo=Eo===0?hl(Et):0,Eo<xo-1?jl.push(pn(nr((Ka-pl[Eo])/(Ei[Eo].split(" ").length-1)))):jl.push(0),Ae.push([Ei[Eo],Uo,ul])}}var Tc=typeof Rr.R2L=="boolean"?Rr.R2L:ai;Tc===!0&&(Ae=hc(Ae,function(J,fe,Oe){return[J.split("").reverse().join(""),fe,Oe]})),Kn={text:Ae,x:Et,y:mr,options:Rr,mutex:{pdfEscape:No,activeFontKey:Be,fonts:Ar,activeFontSize:An}},pi.publish("postProcessText",Kn),Ae=Kn.text,Kl=Kn.mutex.isHex||!1;var ec=Ar[Be].encoding;ec!=="WinAnsiEncoding"&&ec!=="StandardEncoding"||(Ae=hc(Ae,function(J,fe,Oe){return[xc(J),fe,Oe]})),Ei=Vu(Ae),Ae=[];for(var Al,d,e,t=0,r=1,i=Array.isArray(Ei[0])?r:t,s="",l=function(J,fe,Oe){var Ve="";return Oe instanceof Xi?(Oe=typeof Rr.angle=="number"?Ta(Oe,new Xi(1,0,0,1,J,fe)):Ta(new Xi(1,0,0,1,J,fe),Oe),Ur===pr.ADVANCED&&(Oe=Ta(new Xi(1,0,0,-1,0,0),Oe)),Ve=Oe.join(" ")+` Tm
|
|
|
`):Ve=pn(J)+" "+pn(fe)+` Td
|
|
|
`,Ve},x=0;x<Ei.length;x++){switch(s="",i){case r:e=(Kl?"<":"(")+Ei[x][0]+(Kl?">":")"),Al=parseFloat(Ei[x][1]),d=parseFloat(Ei[x][2]);break;case t:e=(Kl?"<":"(")+Ei[x]+(Kl?">":")"),Al=hl(Et),d=Il(mr)}jl!==void 0&&jl[x]!==void 0&&(s=jl[x]+` Tw
|
|
|
`),x===0?Ae.push(s+l(Al,d,wo)+e):i===t?Ae.push(s+e):i===r&&Ae.push(s+l(Al,d,wo)+e)}Ae=i===t?Ae.join(` Tj
|
|
|
T* `):Ae.join(` Tj
|
|
|
`),Ae+=` Tj
|
|
|
`;var j=`BT
|
|
|
/`;return j+=Be+" "+An+` Tf
|
|
|
`,j+=pn(An*el)+` TL
|
|
|
`,j+=Go+`
|
|
|
`,j+=Mo,j+=Ae,ir(j+="ET"),Pt[Be]=!0,To};var Du=Ye.__private__.clip=Ye.clip=function(Ae){return ir(Ae==="evenodd"?"W*":"W"),this};Ye.clipEvenOdd=function(){return Du("evenodd")},Ye.__private__.discardPath=Ye.discardPath=function(){return ir("n"),this};var _l=Ye.__private__.isValidStyle=function(Ae){var Et=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ae)!==-1&&(Et=!0),Et};Ye.__private__.setDefaultPathOperation=Ye.setDefaultPathOperation=function(Ae){return _l(Ae)&&(tt=Ae),this};var Lu=Ye.__private__.getStyle=Ye.getStyle=function(Ae){var Et=tt;switch(Ae){case"D":case"S":Et="S";break;case"F":Et="f";break;case"FD":case"DF":Et="B";break;case"f":case"f*":case"B":case"B*":Et=Ae}return Et},yu=Ye.close=function(){return ir("h"),this};Ye.stroke=function(){return ir("S"),this},Ye.fill=function(Ae){return Xl("f",Ae),this},Ye.fillEvenOdd=function(Ae){return Xl("f*",Ae),this},Ye.fillStroke=function(Ae){return Xl("B",Ae),this},Ye.fillStrokeEvenOdd=function(Ae){return Xl("B*",Ae),this};var Xl=function(Ae,Et){(0,we.Z)(Et)==="object"?Ho(Et,Ae):ir(Ae)},Jl=function(Ae){Ae===null||Ur===pr.ADVANCED&&Ae===void 0||(Ae=Lu(Ae),ir(Ae))};function Bl(Ae,Et,mr,Rr,un){var Kn=new Fa(Et||this.boundingBox,mr||this.xStep,Rr||this.yStep,this.gState,un||this.matrix);Kn.stream=this.stream;var Ei=Ae+"$$"+this.cloneIndex+++"$$";return si(Ei,Kn),Kn}var Ho=function(Ae,Et){var mr=Xr[Ae.key],Rr=xn[mr];if(Rr instanceof is)ir("q"),ir(ws(Et)),Rr.gState&&Ye.setGState(Rr.gState),ir(Ae.matrix.toString()+" cm"),ir("/"+mr+" sh"),ir("Q");else if(Rr instanceof Fa){var un=new Xi(1,0,0,-1,0,tu());Ae.matrix&&(un=un.multiply(Ae.matrix||Ba),mr=Bl.call(Rr,Ae.key,Ae.boundingBox,Ae.xStep,Ae.yStep,un).id),ir("q"),ir("/Pattern cs"),ir("/"+mr+" scn"),Rr.gState&&Ye.setGState(Rr.gState),ir(Et),ir("Q")}},ws=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"}},ol=Ye.moveTo=function(Ae,Et){return ir(pn(nr(Ae))+" "+pn(Ee(Et))+" m"),this},qo=Ye.lineTo=function(Ae,Et){return ir(pn(nr(Ae))+" "+pn(Ee(Et))+" l"),this},ql=Ye.curveTo=function(Ae,Et,mr,Rr,un,Kn){return ir([pn(nr(Ae)),pn(Ee(Et)),pn(nr(mr)),pn(Ee(Rr)),pn(nr(un)),pn(Ee(Kn)),"c"].join(" ")),this};Ye.__private__.line=Ye.line=function(Ae,Et,mr,Rr,un){if(isNaN(Ae)||isNaN(Et)||isNaN(mr)||isNaN(Rr)||!_l(un))throw new Error("Invalid arguments passed to jsPDF.line");return Ur===pr.COMPAT?this.lines([[mr-Ae,Rr-Et]],Ae,Et,[1,1],un||"S"):this.lines([[mr-Ae,Rr-Et]],Ae,Et,[1,1]).stroke()},Ye.__private__.lines=Ye.lines=function(Ae,Et,mr,Rr,un,Kn){var Ei,na,ba,Wa,Ka,xs,mo,wo,To,Yo,Mo,Kl;if(typeof Ae=="number"&&(Kl=mr,mr=Et,Et=Ae,Ae=Kl),Rr=Rr||[1,1],Kn=Kn||!1,isNaN(Et)||isNaN(mr)||!Array.isArray(Ae)||!Array.isArray(Rr)||!_l(un)||typeof Kn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ol(Et,mr),Ei=Rr[0],na=Rr[1],Wa=Ae.length,Yo=Et,Mo=mr,ba=0;ba<Wa;ba++)(Ka=Ae[ba]).length===2?(Yo=Ka[0]*Ei+Yo,Mo=Ka[1]*na+Mo,qo(Yo,Mo)):(xs=Ka[0]*Ei+Yo,mo=Ka[1]*na+Mo,wo=Ka[2]*Ei+Yo,To=Ka[3]*na+Mo,Yo=Ka[4]*Ei+Yo,Mo=Ka[5]*na+Mo,ql(xs,mo,wo,To,Yo,Mo));return Kn&&yu(),Jl(un),this},Ye.path=function(Ae){for(var Et=0;Et<Ae.length;Et++){var mr=Ae[Et],Rr=mr.c;switch(mr.op){case"m":ol(Rr[0],Rr[1]);break;case"l":qo(Rr[0],Rr[1]);break;case"c":ql.apply(this,Rr);break;case"h":yu()}}return this},Ye.__private__.rect=Ye.rect=function(Ae,Et,mr,Rr,un){if(isNaN(Ae)||isNaN(Et)||isNaN(mr)||isNaN(Rr)||!_l(un))throw new Error("Invalid arguments passed to jsPDF.rect");return Ur===pr.COMPAT&&(Rr=-Rr),ir([pn(nr(Ae)),pn(Ee(Et)),pn(nr(mr)),pn(nr(Rr)),"re"].join(" ")),Jl(un),this},Ye.__private__.triangle=Ye.triangle=function(Ae,Et,mr,Rr,un,Kn,Ei){if(isNaN(Ae)||isNaN(Et)||isNaN(mr)||isNaN(Rr)||isNaN(un)||isNaN(Kn)||!_l(Ei))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[mr-Ae,Rr-Et],[un-mr,Kn-Rr],[Ae-un,Et-Kn]],Ae,Et,[1,1],Ei,!0),this},Ye.__private__.roundedRect=Ye.roundedRect=function(Ae,Et,mr,Rr,un,Kn,Ei){if(isNaN(Ae)||isNaN(Et)||isNaN(mr)||isNaN(Rr)||isNaN(un)||isNaN(Kn)||!_l(Ei))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var na=4/3*(Math.SQRT2-1);return un=Math.min(un,.5*mr),Kn=Math.min(Kn,.5*Rr),this.lines([[mr-2*un,0],[un*na,0,un,Kn-Kn*na,un,Kn],[0,Rr-2*Kn],[0,Kn*na,-un*na,Kn,-un,Kn],[2*un-mr,0],[-un*na,0,-un,-Kn*na,-un,-Kn],[0,2*Kn-Rr],[0,-Kn*na,un*na,-Kn,un,-Kn]],Ae+un,Et,[1,1],Ei,!0),this},Ye.__private__.ellipse=Ye.ellipse=function(Ae,Et,mr,Rr,un){if(isNaN(Ae)||isNaN(Et)||isNaN(mr)||isNaN(Rr)||!_l(un))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Kn=4/3*(Math.SQRT2-1)*mr,Ei=4/3*(Math.SQRT2-1)*Rr;return ol(Ae+mr,Et),ql(Ae+mr,Et-Ei,Ae+Kn,Et-Rr,Ae,Et-Rr),ql(Ae-Kn,Et-Rr,Ae-mr,Et-Ei,Ae-mr,Et),ql(Ae-mr,Et+Ei,Ae-Kn,Et+Rr,Ae,Et+Rr),ql(Ae+Kn,Et+Rr,Ae+mr,Et+Ei,Ae+mr,Et),Jl(un),this},Ye.__private__.circle=Ye.circle=function(Ae,Et,mr,Rr){if(isNaN(Ae)||isNaN(Et)||isNaN(mr)||!_l(Rr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ae,Et,mr,mr,Rr)},Ye.setFont=function(Ae,Et,mr){return mr&&(Et=ci(Et,mr)),Be=Tu(Ae,Et,{disableWarning:!1}),this};var $a=Ye.__private__.getFont=Ye.getFont=function(){return Ar[Tu.apply(Ye,arguments)]};Ye.__private__.getFontList=Ye.getFontList=function(){var Ae,Et,mr={};for(Ae in xr)if(xr.hasOwnProperty(Ae))for(Et in mr[Ae]=[],xr[Ae])xr[Ae].hasOwnProperty(Et)&&mr[Ae].push(Et);return mr},Ye.addFont=function(Ae,Et,mr,Rr,un){var Kn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Kn.indexOf(arguments[3])!==-1?un=arguments[3]:arguments[3]&&Kn.indexOf(arguments[3])==-1&&(mr=ci(mr,Rr)),un=un||"Identity-H",po.call(this,Ae,Et,mr,un)};var As,zo=b.lineWidth||.200025,ll=Ye.__private__.getLineWidth=Ye.getLineWidth=function(){return zo},Sl=Ye.__private__.setLineWidth=Ye.setLineWidth=function(Ae){return zo=Ae,ir(pn(nr(Ae))+" w"),this};Ye.__private__.setLineDash=Mi.API.setLineDash=Mi.API.setLineDashPattern=function(Ae,Et){if(Ae=Ae||[],Et=Et||0,isNaN(Et)||!Array.isArray(Ae))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ae=Ae.map(function(mr){return pn(nr(mr))}).join(" "),Et=pn(nr(Et)),ir("["+Ae+"] "+Et+" d"),this};var Ru=Ye.__private__.getLineHeight=Ye.getLineHeight=function(){return An*As};Ye.__private__.getLineHeight=Ye.getLineHeight=function(){return An*As};var Ou=Ye.__private__.setLineHeightFactor=Ye.setLineHeightFactor=function(Ae){return typeof(Ae=Ae||1.15)=="number"&&(As=Ae),this},Pu=Ye.__private__.getLineHeightFactor=Ye.getLineHeightFactor=function(){return As};Ou(b.lineHeight);var hl=Ye.__private__.getHorizontalCoordinate=function(Ae){return nr(Ae)},Il=Ye.__private__.getVerticalCoordinate=function(Ae){return Ur===pr.ADVANCED?Ae:En[Ce].mediaBox.topRightY-En[Ce].mediaBox.bottomLeftY-nr(Ae)},Ic=Ye.__private__.getHorizontalCoordinateString=Ye.getHorizontalCoordinateString=function(Ae){return pn(hl(Ae))},bu=Ye.__private__.getVerticalCoordinateString=Ye.getVerticalCoordinateString=function(Ae){return pn(Il(Ae))},Ml=b.strokeColor||"0 G";Ye.__private__.getStrokeColor=Ye.getDrawColor=function(){return ls(Ml)},Ye.__private__.setStrokeColor=Ye.setDrawColor=function(Ae,Et,mr,Rr){return Ml=da({ch1:Ae,ch2:Et,ch3:mr,ch4:Rr,pdfColorType:"draw",precision:2}),ir(Ml),this};var lc=b.fillColor||"0 g";Ye.__private__.getFillColor=Ye.getFillColor=function(){return ls(lc)},Ye.__private__.setFillColor=Ye.setFillColor=function(Ae,Et,mr,Rr){return lc=da({ch1:Ae,ch2:Et,ch3:mr,ch4:Rr,pdfColorType:"fill",precision:2}),ir(lc),this};var Go=b.textColor||"0 g",kc=Ye.__private__.getTextColor=Ye.getTextColor=function(){return ls(Go)};Ye.__private__.setTextColor=Ye.setTextColor=function(Ae,Et,mr,Rr){return Go=da({ch1:Ae,ch2:Et,ch3:mr,ch4:Rr,pdfColorType:"text",precision:3}),this};var uc=b.charSpace,Mc=Ye.__private__.getCharSpace=Ye.getCharSpace=function(){return parseFloat(uc||0)};Ye.__private__.setCharSpace=Ye.setCharSpace=function(Ae){if(isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return uc=Ae,this};var cc=0;Ye.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},Ye.__private__.setLineCap=Ye.setLineCap=function(Ae){var Et=Ye.CapJoinStyles[Ae];if(Et===void 0)throw new Error("Line cap style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return cc=Et,ir(Et+" J"),this};var Nu=0;Ye.__private__.setLineJoin=Ye.setLineJoin=function(Ae){var Et=Ye.CapJoinStyles[Ae];if(Et===void 0)throw new Error("Line join style of '"+Ae+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Nu=Et,ir(Et+" j"),this},Ye.__private__.setLineMiterLimit=Ye.__private__.setMiterLimit=Ye.setLineMiterLimit=Ye.setMiterLimit=function(Ae){if(Ae=Ae||0,isNaN(Ae))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ir(pn(nr(Ae))+" M"),this},Ye.GState=ka,Ye.setGState=function(Ae){(Ae=typeof Ae=="string"?dn[kn[Ae]]:ku(null,Ae)).equals(Zn)||(ir("/"+Ae.id+" gs"),Zn=Ae)};var ku=function(Ae,Et){if(!Ae||!kn[Ae]){var mr=!1;for(var Rr in dn)if(dn.hasOwnProperty(Rr)&&dn[Rr].equals(Et)){mr=!0;break}if(mr)Et=dn[Rr];else{var un="GS"+(Object.keys(dn).length+1).toString(10);dn[un]=Et,Et.id=un}return Ae&&(kn[Ae]=Et.id),pi.publish("addGState",Et),Et}};Ye.addGState=function(Ae,Et){return ku(Ae,Et),this},Ye.saveGraphicsState=function(){return ir("q"),nn.push({key:Be,size:An,color:Go}),this},Ye.restoreGraphicsState=function(){ir("Q");var Ae=nn.pop();return Be=Ae.key,An=Ae.size,Go=Ae.color,Zn=null,this},Ye.setCurrentTransformationMatrix=function(Ae){return ir(Ae.toString()+" cm"),this},Ye.comment=function(Ae){return ir("#"+Ae),this};var Ac=function(Ae,Et){var mr=Ae||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return mr},set:function(Kn){isNaN(Kn)||(mr=parseFloat(Kn))}});var Rr=Et||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Rr},set:function(Kn){isNaN(Kn)||(Rr=parseFloat(Kn))}});var un="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return un},set:function(Kn){un=Kn.toString()}}),this},dc=function(Ae,Et,mr,Rr){Ac.call(this,Ae,Et),this.type="rect";var un=mr||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return un},set:function(Ei){isNaN(Ei)||(un=parseFloat(Ei))}});var Kn=Rr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Kn},set:function(Ei){isNaN(Ei)||(Kn=parseFloat(Ei))}}),this},Wu=function(){this.page=bi,this.currentPage=Ce,this.pages=$r.slice(0),this.pagesContext=En.slice(0),this.x=xt,this.y=bt,this.matrix=Jt,this.width=xu(Ce),this.height=tu(Ce),this.outputDestination=Dn,this.id="",this.objectNumber=-1};Wu.prototype.restore=function(){bi=this.page,Ce=this.currentPage,En=this.pagesContext,$r=this.pages,xt=this.x,bt=this.y,Jt=this.matrix,eu(Ce,this.width),fc(Ce,this.height),Dn=this.outputDestination};var bc=function(Ae,Et,mr,Rr,un){Ia.push(new Wu),bi=Ce=0,$r=[],xt=Ae,bt=Et,Jt=un,Yl([mr,Rr])},wc=function(Ae){if(Sa[Ae])Ia.pop().restore();else{var Et=new Wu,mr="Xo"+(Object.keys(Ki).length+1).toString(10);Et.id=mr,Sa[Ae]=mr,Ki[mr]=Et,pi.publish("addFormObject",Et),Ia.pop().restore()}};for(var wu in Ye.beginFormObject=function(Ae,Et,mr,Rr,un){return bc(Ae,Et,mr,Rr,un),this},Ye.endFormObject=function(Ae){return wc(Ae),this},Ye.doFormObject=function(Ae,Et){var mr=Ki[Sa[Ae]];return ir("q"),ir(Et.toString()+" cm"),ir("/"+mr.id+" Do"),ir("Q"),this},Ye.getFormObject=function(Ae){var Et=Ki[Sa[Ae]];return{x:Et.x,y:Et.y,width:Et.width,height:Et.height,matrix:Et.matrix}},Ye.save=function(Ae,Et){return Ae=Ae||"generated.pdf",(Et=Et||{}).returnPromise=Et.returnPromise||!1,Et.returnPromise===!1?(ca(gu(kl()),Ae),typeof ca.unload=="function"&&gn.setTimeout&&setTimeout(ca.unload,911),this):new Promise(function(mr,Rr){try{var un=ca(gu(kl()),Ae);typeof ca.unload=="function"&&gn.setTimeout&&setTimeout(ca.unload,911),mr(un)}catch(Kn){Rr(Kn.message)}})},Mi.API)Mi.API.hasOwnProperty(wu)&&(wu==="events"&&Mi.API.events.length?function(Ae,Et){var mr,Rr,un;for(un=Et.length-1;un!==-1;un--)mr=Et[un][0],Rr=Et[un][1],Ae.subscribe.apply(Ae,[mr].concat(typeof Rr=="function"?[Rr]:Rr))}(pi,Mi.API.events):Ye[wu]=Mi.API[wu]);var xu=Ye.getPageWidth=function(Ae){return(En[Ae=Ae||Ce].mediaBox.topRightX-En[Ae].mediaBox.bottomLeftX)/je},eu=Ye.setPageWidth=function(Ae,Et){En[Ae].mediaBox.topRightX=Et*je+En[Ae].mediaBox.bottomLeftX},tu=Ye.getPageHeight=function(Ae){return(En[Ae=Ae||Ce].mediaBox.topRightY-En[Ae].mediaBox.bottomLeftY)/je},fc=Ye.setPageHeight=function(Ae,Et){En[Ae].mediaBox.topRightY=Et*je+En[Ae].mediaBox.bottomLeftY};return Ye.internal={pdfEscape:No,getStyle:Lu,getFont:$a,getFontSize:Cn,getCharSpace:Mc,getTextColor:kc,getLineHeight:Ru,getLineHeightFactor:Pu,getLineWidth:ll,write:Ii,getHorizontalCoordinate:hl,getVerticalCoordinate:Il,getCoordinateString:Ic,getVerticalCoordinateString:bu,collections:{},newObject:Ha,newAdditionalObject:ha,newObjectDeferred:os,newObjectDeferredBegin:sa,getFilters:Is,putStream:bs,events:pi,scaleFactor:je,pageSize:{getWidth:function(){return xu(Ce)},setWidth:function(Ae){eu(Ce,Ae)},getHeight:function(){return tu(Ce)},setHeight:function(Ae){fc(Ce,Ae)}},encryptionOptions:yt,encryption:ko,getEncryptor:yc,output:Io,getNumberOfPages:pu,pages:$r,out:ir,f2:Pn,f3:er,getPageInfo:Zu,getPageInfoByObjId:Oa,getCurrentPageInfo:Fu,getPDFVersion:tr,Point:Ac,Rectangle:dc,Matrix:Xi,hasHotfix:vu},Object.defineProperty(Ye.internal.pageSize,"width",{get:function(){return xu(Ce)},set:function(Ae){eu(Ce,Ae)},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.internal.pageSize,"height",{get:function(){return tu(Ce)},set:function(Ae){fc(Ce,Ae)},enumerable:!0,configurable:!0}),Cl.call(Ye,ln),Be="F1",$u(ne,y),pi.publish("initialized"),Ye}hi.prototype.lsbFirstWord=function(b){return String.fromCharCode(b>>0&255,b>>8&255,b>>16&255,b>>24&255)},hi.prototype.toHexString=function(b){return b.split("").map(function(u){return("0"+(255&u.charCodeAt(0)).toString(16)).slice(-2)}).join("")},hi.prototype.hexToBytes=function(b){for(var u=[],y=0;y<b.length;y+=2)u.push(String.fromCharCode(parseInt(b.substr(y,2),16)));return u.join("")},hi.prototype.processOwnerPassword=function(b,u){return es(Si(u).substr(0,5),b)},hi.prototype.encryptor=function(b,u){var y=Si(this.encryptionKey+String.fromCharCode(255&b,b>>8&255,b>>16&255,255&u,u>>8&255)).substr(0,10);return function(M){return es(y,M)}},ka.prototype.equals=function(b){var u,y="id,objectNumber,equals";if(!b||(0,we.Z)(b)!==(0,we.Z)(this))return!1;var M=0;for(u in this)if(!(y.indexOf(u)>=0)){if(this.hasOwnProperty(u)&&!b.hasOwnProperty(u)||this[u]!==b[u])return!1;M++}for(u in b)b.hasOwnProperty(u)&&y.indexOf(u)<0&&M--;return M===0},Mi.API={events:[]},Mi.version="2.5.2";var la=Mi.API,ms=1,as=function(b){return b.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ts=function(b){return b.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Wi=function(b){return b.toFixed(2)},gs=function(b){return b.toFixed(5)};la.__acroform__={};var aa=function(b,u){b.prototype=Object.create(u.prototype),b.prototype.constructor=b},co=function(b){return b*ms},Qs=function(b){var u=new Bo,y=Di.internal.getHeight(b)||0,M=Di.internal.getWidth(b)||0;return u.BBox=[0,0,Number(Wi(M)),Number(Wi(y))],u},Co=la.__acroform__.setBit=function(b,u){if(b=b||0,u=u||0,isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return b|=1<<u},fs=la.__acroform__.clearBit=function(b,u){if(b=b||0,u=u||0,isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return b&=~(1<<u)},_o=la.__acroform__.getBit=function(b,u){if(isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return b&1<<u?1:0},ss=la.__acroform__.getBitForPdf=function(b,u){if(isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return _o(b,u-1)},Yn=la.__acroform__.setBitForPdf=function(b,u){if(isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Co(b,u-1)},Da=la.__acroform__.clearBitForPdf=function(b,u){if(isNaN(b)||isNaN(u))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return fs(b,u-1)},io=la.__acroform__.calculateCoordinates=function(b,u){var y=u.internal.getHorizontalCoordinate,M=u.internal.getVerticalCoordinate,ne=b[0],Z=b[1],ge=b[2],De=b[3],Ne={};return Ne.lowerLeft_X=y(ne)||0,Ne.lowerLeft_Y=M(Z+De)||0,Ne.upperRight_X=y(ne+ge)||0,Ne.upperRight_Y=M(Z)||0,[Number(Wi(Ne.lowerLeft_X)),Number(Wi(Ne.lowerLeft_Y)),Number(Wi(Ne.upperRight_X)),Number(Wi(Ne.upperRight_Y))]},Zi=function(b){if(b.appearanceStreamContent)return b.appearanceStreamContent;if(b.V||b.DV){var u=[],y=b._V||b.DV,M=ta(b,y),ne=b.scope.internal.getFont(b.fontName,b.fontStyle).id;u.push("/Tx BMC"),u.push("q"),u.push("BT"),u.push(b.scope.__private__.encodeColorString(b.color)),u.push("/"+ne+" "+Wi(M.fontSize)+" Tf"),u.push("1 0 0 1 0 0 Tm"),u.push(M.text),u.push("ET"),u.push("Q"),u.push("EMC");var Z=Qs(b);return Z.scope=b.scope,Z.stream=u.join(`
|
|
|
`),Z}},ta=function(b,u){var y=b.fontSize===0?b.maxFontSize:b.fontSize,M={text:"",fontSize:""},ne=(u=(u=u.substr(0,1)=="("?u.substr(1):u).substr(u.length-1)==")"?u.substr(0,u.length-1):u).split(" ");ne=b.multiline?ne.map(function(er){return er.split(`
|
|
|
`)}):ne.map(function(er){return[er]});var Z=y,ge=Di.internal.getHeight(b)||0;ge=ge<0?-ge:ge;var De=Di.internal.getWidth(b)||0;De=De<0?-De:De;var Ne=function(er,nr,ye){if(er+1<ne.length){var Ee=nr+" "+ne[er+1][0];return $i(Ee,b,ye).width<=De-4}return!1};Z++;e:for(;Z>0;){u="",Z--;var tt,yt,vt=$i("3",b,Z).height,Pt=b.multiline?ge-Z:(ge-vt)/2,Ye=Pt+=2,cr=0,tr=0,dr=0;if(Z<=0){u=`(...) Tj
|
|
|
`,u+="% Width of Text: "+$i(u,b,Z=12).width+", FieldWidth:"+De+`
|
|
|
`;break}for(var Qt="",pr=0,Ur=0;Ur<ne.length;Ur++)if(ne.hasOwnProperty(Ur)){var sn=!1;if(ne[Ur].length!==1&&dr!==ne[Ur].length-1){if((vt+2)*(pr+2)+2>ge)continue e;Qt+=ne[Ur][dr],sn=!0,tr=Ur,Ur--}else{Qt=(Qt+=ne[Ur][dr]+" ").substr(Qt.length-1)==" "?Qt.substr(0,Qt.length-1):Qt;var Rn=parseInt(Ur),ci=Ne(Rn,Qt,Z),pn=Ur>=ne.length-1;if(ci&&!pn){Qt+=" ",dr=0;continue}if(ci||pn){if(pn)tr=Rn;else if(b.multiline&&(vt+2)*(pr+2)+2>ge)continue e}else{if(!b.multiline||(vt+2)*(pr+2)+2>ge)continue e;tr=Rn}}for(var Br="",bn=cr;bn<=tr;bn++){var Pn=ne[bn];if(b.multiline){if(bn===tr){Br+=Pn[dr]+" ",dr=(dr+1)%Pn.length;continue}if(bn===cr){Br+=Pn[Pn.length-1]+" ";continue}}Br+=Pn[0]+" "}switch(Br=Br.substr(Br.length-1)==" "?Br.substr(0,Br.length-1):Br,yt=$i(Br,b,Z).width,b.textAlign){case"right":tt=De-yt-2;break;case"center":tt=(De-yt)/2;break;case"left":default:tt=2}u+=Wi(tt)+" "+Wi(Ye)+` Td
|
|
|
`,u+="("+as(Br)+`) Tj
|
|
|
`,u+=-Wi(tt)+` 0 Td
|
|
|
`,Ye=-(Z+2),yt=0,cr=sn?tr:tr+1,pr++,Qt=""}break}return M.text=u,M.fontSize=Z,M},$i=function(b,u,y){var M=u.scope.internal.getFont(u.fontName,u.fontStyle),ne=u.scope.getStringUnitWidth(b,{font:M,fontSize:parseFloat(y),charSpace:0})*parseFloat(y);return{height:u.scope.getStringUnitWidth("3",{font:M,fontSize:parseFloat(y),charSpace:0})*parseFloat(y)*1.5,width:ne}},Ui={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},wa=function(b,u){var y={type:"reference",object:b};u.internal.getPageInfo(b.page).pageContext.annotations.find(function(M){return M.type===y.type&&M.object===y.object})===void 0&&u.internal.getPageInfo(b.page).pageContext.annotations.push(y)},Pa=function(b,u){for(var y in b)if(b.hasOwnProperty(y)){var M=y,ne=b[y];u.internal.newObjectDeferredBegin(ne.objId,!0),(0,we.Z)(ne)==="object"&&typeof ne.putStream=="function"&&ne.putStream(),delete b[M]}},Ls=function(b,u){if(u.scope=b,b.internal!==void 0&&(b.internal.acroformPlugin===void 0||b.internal.acroformPlugin.isInitialized===!1)){if(eo.FieldNum=0,b.internal.acroformPlugin=JSON.parse(JSON.stringify(Ui)),b.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ms=b.internal.scaleFactor,b.internal.acroformPlugin.acroFormDictionaryRoot=new go,b.internal.acroformPlugin.acroFormDictionaryRoot.scope=b,b.internal.acroformPlugin.acroFormDictionaryRoot._eventID=b.internal.events.subscribe("postPutResources",function(){(function(y){y.internal.events.unsubscribe(y.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete y.internal.acroformPlugin.acroFormDictionaryRoot._eventID,y.internal.acroformPlugin.printedOut=!0})(b)}),b.internal.events.subscribe("buildDocument",function(){(function(y){y.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var M=y.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var ne in M)if(M.hasOwnProperty(ne)){var Z=M[ne];Z.objId=void 0,Z.hasAnnotation&&wa(Z,y)}})(b)}),b.internal.events.subscribe("putCatalog",function(){(function(y){if(y.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");y.internal.write("/AcroForm "+y.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(b)}),b.internal.events.subscribe("postPutPages",function(y){(function(M,ne){var Z=!M;for(var ge in M||(ne.internal.newObjectDeferredBegin(ne.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),ne.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),M=M||ne.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(M.hasOwnProperty(ge)){var De=M[ge],Ne=[],tt=De.Rect;if(De.Rect&&(De.Rect=io(De.Rect,ne)),ne.internal.newObjectDeferredBegin(De.objId,!0),De.DA=Di.createDefaultAppearanceStream(De),(0,we.Z)(De)==="object"&&typeof De.getKeyValueListForStream=="function"&&(Ne=De.getKeyValueListForStream()),De.Rect=tt,De.hasAppearanceStream&&!De.appearanceStreamContent){var yt=Zi(De);Ne.push({key:"AP",value:"<</N "+yt+">>"}),ne.internal.acroformPlugin.xForms.push(yt)}if(De.appearanceStreamContent){var vt="";for(var Pt in De.appearanceStreamContent)if(De.appearanceStreamContent.hasOwnProperty(Pt)){var Ye=De.appearanceStreamContent[Pt];if(vt+="/"+Pt+" ",vt+="<<",Object.keys(Ye).length>=1||Array.isArray(Ye)){for(var ge in Ye)if(Ye.hasOwnProperty(ge)){var cr=Ye[ge];typeof cr=="function"&&(cr=cr.call(ne,De)),vt+="/"+ge+" "+cr+" ",ne.internal.acroformPlugin.xForms.indexOf(cr)>=0||ne.internal.acroformPlugin.xForms.push(cr)}}else typeof(cr=Ye)=="function"&&(cr=cr.call(ne,De)),vt+="/"+ge+" "+cr,ne.internal.acroformPlugin.xForms.indexOf(cr)>=0||ne.internal.acroformPlugin.xForms.push(cr);vt+=">>"}Ne.push({key:"AP",value:`<<
|
|
|
`+vt+">>"})}ne.internal.putStream({additionalKeyValues:Ne,objectId:De.objId}),ne.internal.out("endobj")}Z&&Pa(ne.internal.acroformPlugin.xForms,ne)})(y,b)}),b.internal.acroformPlugin.isInitialized=!0}},cs=la.__acroform__.arrayToPdfArray=function(b,u,y){var M=function(ge){return ge};if(Array.isArray(b)){for(var ne="[",Z=0;Z<b.length;Z++)switch(Z!==0&&(ne+=" "),(0,we.Z)(b[Z])){case"boolean":case"number":case"object":ne+=b[Z].toString();break;case"string":b[Z].substr(0,1)!=="/"?(u!==void 0&&y&&(M=y.internal.getEncryptor(u)),ne+="("+as(M(b[Z].toString()))+")"):ne+=b[Z].toString()}return ne+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Es=function(b,u,y){var M=function(ne){return ne};return u!==void 0&&y&&(M=y.internal.getEncryptor(u)),(b=b||"").toString(),b="("+as(M(b))+")"},rs=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(b){this._objId=b}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};rs.prototype.toString=function(){return this.objId+" 0 R"},rs.prototype.putStream=function(){var b=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:b,objectId:this.objId}),this.scope.internal.out("endobj")},rs.prototype.getKeyValueListForStream=function(){var b=[],u=Object.getOwnPropertyNames(this).filter(function(Z){return Z!="content"&&Z!="appearanceStreamContent"&&Z!="scope"&&Z!="objId"&&Z.substring(0,1)!="_"});for(var y in u)if(Object.getOwnPropertyDescriptor(this,u[y]).configurable===!1){var M=u[y],ne=this[M];ne&&(Array.isArray(ne)?b.push({key:M,value:cs(ne,this.objId,this.scope)}):ne instanceof rs?(ne.scope=this.scope,b.push({key:M,value:ne.objId+" 0 R"})):typeof ne!="function"&&b.push({key:M,value:ne}))}return b};var Bo=function(){rs.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 b,u=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return u},set:function(y){u=y}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(y){b=y.trim()},get:function(){return b||null}})};aa(Bo,rs);var go=function(){rs.call(this);var b,u=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return u.length>0?u:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return u}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(b){var y=function(M){return M};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+as(y(b))+")"}},set:function(y){b=y}})};aa(go,rs);var eo=function b(){rs.call(this);var u=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return u},set:function(Qt){if(isNaN(Qt))throw new Error('Invalid value "'+Qt+'" for attribute F supplied.');u=Qt}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!ss(u,3)},set:function(Qt){Qt?this.F=Yn(u,3):this.F=Da(u,3)}});var y=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return y},set:function(Qt){if(isNaN(Qt))throw new Error('Invalid value "'+Qt+'" for attribute Ff supplied.');y=Qt}});var M=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(M.length!==0)return M},set:function(Qt){M=Qt!==void 0?Qt:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!M||isNaN(M[0])?0:M[0]},set:function(Qt){M[0]=Qt}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!M||isNaN(M[1])?0:M[1]},set:function(Qt){M[1]=Qt}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!M||isNaN(M[2])?0:M[2]},set:function(Qt){M[2]=Qt}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!M||isNaN(M[3])?0:M[3]},set:function(Qt){M[3]=Qt}});var ne="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return ne},set:function(Qt){switch(Qt){case"/Btn":case"/Tx":case"/Ch":case"/Sig":ne=Qt;break;default:throw new Error('Invalid value "'+Qt+'" for attribute FT supplied.')}}});var Z=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!Z||Z.length<1){if(this instanceof Ns)return;Z="FieldObject"+b.FieldNum++}var Qt=function(pr){return pr};return this.scope&&(Qt=this.scope.internal.getEncryptor(this.objId)),"("+as(Qt(Z))+")"},set:function(Qt){Z=Qt.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return Z},set:function(Qt){Z=Qt}});var ge="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ge},set:function(Qt){ge=Qt}});var De="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return De},set:function(Qt){De=Qt}});var Ne=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(Qt){Ne=Qt}});var tt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return tt===void 0?50/ms:tt},set:function(Qt){tt=Qt}});var yt="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return yt},set:function(Qt){yt=Qt}});var vt="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!vt||this instanceof Ns||this instanceof vo))return Es(vt,this.objId,this.scope)},set:function(Qt){Qt=Qt.toString(),vt=Qt}});var Pt=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Pt)return this instanceof ua?Pt:Es(Pt,this.objId,this.scope)},set:function(Qt){Qt=Qt.toString(),Pt=this instanceof ua?Qt:Qt.substr(0,1)==="("?ts(Qt.substr(1,Qt.length-2)):ts(Qt)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ua?ts(Pt.substr(1,Pt.length-1)):Pt},set:function(Qt){Qt=Qt.toString(),Pt=this instanceof ua?"/"+Qt:Qt}});var Ye=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(Ye)return Ye},set:function(Qt){this.V=Qt}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(Ye)return this instanceof ua?Ye:Es(Ye,this.objId,this.scope)},set:function(Qt){Qt=Qt.toString(),Ye=this instanceof ua?Qt:Qt.substr(0,1)==="("?ts(Qt.substr(1,Qt.length-2)):ts(Qt)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ua?ts(Ye.substr(1,Ye.length-1)):Ye},set:function(Qt){Qt=Qt.toString(),Ye=this instanceof ua?"/"+Qt:Qt}}),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 cr,tr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return tr},set:function(Qt){Qt=!!Qt,tr=Qt}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(cr)return cr},set:function(Qt){cr=Qt}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,1)},set:function(Qt){Qt?this.Ff=Yn(this.Ff,1):this.Ff=Da(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,2)},set:function(Qt){Qt?this.Ff=Yn(this.Ff,2):this.Ff=Da(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,3)},set:function(Qt){Qt?this.Ff=Yn(this.Ff,3):this.Ff=Da(this.Ff,3)}});var dr=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(dr!==null)return dr},set:function(Qt){if([0,1,2].indexOf(Qt)===-1)throw new Error('Invalid value "'+Qt+'" for attribute Q supplied.');dr=Qt}}),Object.defineProperty(this,"textAlign",{get:function(){var Qt;switch(dr){case 0:default:Qt="left";break;case 1:Qt="center";break;case 2:Qt="right"}return Qt},configurable:!0,enumerable:!0,set:function(Qt){switch(Qt){case"right":case 2:dr=2;break;case"center":case 1:dr=1;break;case"left":case 0:default:dr=0}}})};aa(eo,rs);var zs=function(){eo.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var b=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return b},set:function(y){b=y}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return b},set:function(y){b=y}});var u=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return cs(u,this.objId,this.scope)},set:function(y){var M,ne;ne=[],typeof(M=y)=="string"&&(ne=function(Z,ge,De){De||(De=1);for(var Ne,tt=[];Ne=ge.exec(Z);)tt.push(Ne[De]);return tt}(M,/\((.*?)\)/g)),u=ne}}),this.getOptions=function(){return u},this.setOptions=function(y){u=y,this.sort&&u.sort()},this.addOption=function(y){y=(y=y||"").toString(),u.push(y),this.sort&&u.sort()},this.removeOption=function(y,M){for(M=M||!1,y=(y=y||"").toString();u.indexOf(y)!==-1&&(u.splice(u.indexOf(y),1),M!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,18)},set:function(y){y?this.Ff=Yn(this.Ff,18):this.Ff=Da(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,19)},set:function(y){this.combo===!0&&(y?this.Ff=Yn(this.Ff,19):this.Ff=Da(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,20)},set:function(y){y?(this.Ff=Yn(this.Ff,20),u.sort()):this.Ff=Da(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,22)},set:function(y){y?this.Ff=Yn(this.Ff,22):this.Ff=Da(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,23)},set:function(y){y?this.Ff=Yn(this.Ff,23):this.Ff=Da(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,27)},set:function(y){y?this.Ff=Yn(this.Ff,27):this.Ff=Da(this.Ff,27)}}),this.hasAppearanceStream=!1};aa(zs,eo);var Rs=function(){zs.call(this),this.fontName="helvetica",this.combo=!1};aa(Rs,zs);var Oi=function(){Rs.call(this),this.combo=!0};aa(Oi,Rs);var Ai=function(){Oi.call(this),this.edit=!0};aa(Ai,Oi);var ua=function(){eo.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,15)},set:function(y){y?this.Ff=Yn(this.Ff,15):this.Ff=Da(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,16)},set:function(y){y?this.Ff=Yn(this.Ff,16):this.Ff=Da(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,17)},set:function(y){y?this.Ff=Yn(this.Ff,17):this.Ff=Da(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,26)},set:function(y){y?this.Ff=Yn(this.Ff,26):this.Ff=Da(this.Ff,26)}});var b,u={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var y=function(Z){return Z};if(this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),Object.keys(u).length!==0){var M,ne=[];for(M in ne.push("<<"),u)ne.push("/"+M+" ("+as(y(u[M]))+")");return ne.push(">>"),ne.join(`
|
|
|
`)}},set:function(y){(0,we.Z)(y)==="object"&&(u=y)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return u.CA||""},set:function(y){typeof y=="string"&&(u.CA=y)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return b},set:function(y){b=y}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return b.substr(1,b.length-1)},set:function(y){b="/"+y}})};aa(ua,eo);var vs=function(){ua.call(this),this.pushButton=!0};aa(vs,ua);var Ra=function(){ua.call(this),this.radio=!0,this.pushButton=!1;var b=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return b},set:function(u){b=u!==void 0?u:[]}})};aa(Ra,ua);var Ns=function(){var b,u;eo.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return b},set:function(ne){b=ne}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return u},set:function(ne){u=ne}});var y,M={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ne=function(De){return De};this.scope&&(ne=this.scope.internal.getEncryptor(this.objId));var Z,ge=[];for(Z in ge.push("<<"),M)ge.push("/"+Z+" ("+as(ne(M[Z]))+")");return ge.push(">>"),ge.join(`
|
|
|
`)},set:function(ne){(0,we.Z)(ne)==="object"&&(M=ne)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return M.CA||""},set:function(ne){typeof ne=="string"&&(M.CA=ne)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return y},set:function(ne){y=ne}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return y.substr(1,y.length-1)},set:function(ne){y="/"+ne}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Di.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};aa(Ns,eo),Ra.prototype.setAppearance=function(b){if(!("createAppearanceStream"in b)||!("getCA"in b))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var u in this.Kids)if(this.Kids.hasOwnProperty(u)){var y=this.Kids[u];y.appearanceStreamContent=b.createAppearanceStream(y.optionName),y.caption=b.getCA()}},Ra.prototype.createOption=function(b){var u=new Ns;return u.Parent=this,u.optionName=b,this.Kids.push(u),Dl.call(this.scope,u),u};var Vs=function(){ua.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Di.CheckBox.createAppearanceStream()};aa(Vs,ua);var vo=function(){eo.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,13)},set:function(u){u?this.Ff=Yn(this.Ff,13):this.Ff=Da(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,21)},set:function(u){u?this.Ff=Yn(this.Ff,21):this.Ff=Da(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,23)},set:function(u){u?this.Ff=Yn(this.Ff,23):this.Ff=Da(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,24)},set:function(u){u?this.Ff=Yn(this.Ff,24):this.Ff=Da(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,25)},set:function(u){u?this.Ff=Yn(this.Ff,25):this.Ff=Da(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,26)},set:function(u){u?this.Ff=Yn(this.Ff,26):this.Ff=Da(this.Ff,26)}});var b=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return b},set:function(u){b=u}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return b},set:function(u){Number.isInteger(u)&&(b=u)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};aa(vo,eo);var Os=function(){vo.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!ss(this.Ff,14)},set:function(b){b?this.Ff=Yn(this.Ff,14):this.Ff=Da(this.Ff,14)}}),this.password=!0};aa(Os,vo);var Di={CheckBox:{createAppearanceStream:function(){return{N:{On:Di.CheckBox.YesNormal},D:{On:Di.CheckBox.YesPushDown,Off:Di.CheckBox.OffPushDown}}},YesPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=b.scope.internal.getFont(b.fontName,b.fontStyle).id,ne=b.scope.__private__.encodeColorString(b.color),Z=ta(b,b.caption);return y.push("0.749023 g"),y.push("0 0 "+Wi(Di.internal.getWidth(b))+" "+Wi(Di.internal.getHeight(b))+" re"),y.push("f"),y.push("BMC"),y.push("q"),y.push("0 0 1 rg"),y.push("/"+M+" "+Wi(Z.fontSize)+" Tf "+ne),y.push("BT"),y.push(Z.text),y.push("ET"),y.push("Q"),y.push("EMC"),u.stream=y.join(`
|
|
|
`),u},YesNormal:function(b){var u=Qs(b);u.scope=b.scope;var y=b.scope.internal.getFont(b.fontName,b.fontStyle).id,M=b.scope.__private__.encodeColorString(b.color),ne=[],Z=Di.internal.getHeight(b),ge=Di.internal.getWidth(b),De=ta(b,b.caption);return ne.push("1 g"),ne.push("0 0 "+Wi(ge)+" "+Wi(Z)+" re"),ne.push("f"),ne.push("q"),ne.push("0 0 1 rg"),ne.push("0 0 "+Wi(ge-1)+" "+Wi(Z-1)+" re"),ne.push("W"),ne.push("n"),ne.push("0 g"),ne.push("BT"),ne.push("/"+y+" "+Wi(De.fontSize)+" Tf "+M),ne.push(De.text),ne.push("ET"),ne.push("Q"),u.stream=ne.join(`
|
|
|
`),u},OffPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[];return y.push("0.749023 g"),y.push("0 0 "+Wi(Di.internal.getWidth(b))+" "+Wi(Di.internal.getHeight(b))+" re"),y.push("f"),u.stream=y.join(`
|
|
|
`),u}},RadioButton:{Circle:{createAppearanceStream:function(b){var u={D:{Off:Di.RadioButton.Circle.OffPushDown},N:{}};return u.N[b]=Di.RadioButton.Circle.YesNormal,u.D[b]=Di.RadioButton.Circle.YesPushDown,u},getCA:function(){return"l"},YesNormal:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Di.internal.getWidth(b)<=Di.internal.getHeight(b)?Di.internal.getWidth(b)/4:Di.internal.getHeight(b)/4;M=Number((.9*M).toFixed(5));var ne=Di.internal.Bezier_C,Z=Number((M*ne).toFixed(5));return y.push("q"),y.push("1 0 0 1 "+gs(Di.internal.getWidth(b)/2)+" "+gs(Di.internal.getHeight(b)/2)+" cm"),y.push(M+" 0 m"),y.push(M+" "+Z+" "+Z+" "+M+" 0 "+M+" c"),y.push("-"+Z+" "+M+" -"+M+" "+Z+" -"+M+" 0 c"),y.push("-"+M+" -"+Z+" -"+Z+" -"+M+" 0 -"+M+" c"),y.push(Z+" -"+M+" "+M+" -"+Z+" "+M+" 0 c"),y.push("f"),y.push("Q"),u.stream=y.join(`
|
|
|
`),u},YesPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Di.internal.getWidth(b)<=Di.internal.getHeight(b)?Di.internal.getWidth(b)/4:Di.internal.getHeight(b)/4;M=Number((.9*M).toFixed(5));var ne=Number((2*M).toFixed(5)),Z=Number((ne*Di.internal.Bezier_C).toFixed(5)),ge=Number((M*Di.internal.Bezier_C).toFixed(5));return y.push("0.749023 g"),y.push("q"),y.push("1 0 0 1 "+gs(Di.internal.getWidth(b)/2)+" "+gs(Di.internal.getHeight(b)/2)+" cm"),y.push(ne+" 0 m"),y.push(ne+" "+Z+" "+Z+" "+ne+" 0 "+ne+" c"),y.push("-"+Z+" "+ne+" -"+ne+" "+Z+" -"+ne+" 0 c"),y.push("-"+ne+" -"+Z+" -"+Z+" -"+ne+" 0 -"+ne+" c"),y.push(Z+" -"+ne+" "+ne+" -"+Z+" "+ne+" 0 c"),y.push("f"),y.push("Q"),y.push("0 g"),y.push("q"),y.push("1 0 0 1 "+gs(Di.internal.getWidth(b)/2)+" "+gs(Di.internal.getHeight(b)/2)+" cm"),y.push(M+" 0 m"),y.push(M+" "+ge+" "+ge+" "+M+" 0 "+M+" c"),y.push("-"+ge+" "+M+" -"+M+" "+ge+" -"+M+" 0 c"),y.push("-"+M+" -"+ge+" -"+ge+" -"+M+" 0 -"+M+" c"),y.push(ge+" -"+M+" "+M+" -"+ge+" "+M+" 0 c"),y.push("f"),y.push("Q"),u.stream=y.join(`
|
|
|
`),u},OffPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Di.internal.getWidth(b)<=Di.internal.getHeight(b)?Di.internal.getWidth(b)/4:Di.internal.getHeight(b)/4;M=Number((.9*M).toFixed(5));var ne=Number((2*M).toFixed(5)),Z=Number((ne*Di.internal.Bezier_C).toFixed(5));return y.push("0.749023 g"),y.push("q"),y.push("1 0 0 1 "+gs(Di.internal.getWidth(b)/2)+" "+gs(Di.internal.getHeight(b)/2)+" cm"),y.push(ne+" 0 m"),y.push(ne+" "+Z+" "+Z+" "+ne+" 0 "+ne+" c"),y.push("-"+Z+" "+ne+" -"+ne+" "+Z+" -"+ne+" 0 c"),y.push("-"+ne+" -"+Z+" -"+Z+" -"+ne+" 0 -"+ne+" c"),y.push(Z+" -"+ne+" "+ne+" -"+Z+" "+ne+" 0 c"),y.push("f"),y.push("Q"),u.stream=y.join(`
|
|
|
`),u}},Cross:{createAppearanceStream:function(b){var u={D:{Off:Di.RadioButton.Cross.OffPushDown},N:{}};return u.N[b]=Di.RadioButton.Cross.YesNormal,u.D[b]=Di.RadioButton.Cross.YesPushDown,u},getCA:function(){return"8"},YesNormal:function(b){var u=Qs(b);u.scope=b.scope;var y=[],M=Di.internal.calculateCross(b);return y.push("q"),y.push("1 1 "+Wi(Di.internal.getWidth(b)-2)+" "+Wi(Di.internal.getHeight(b)-2)+" re"),y.push("W"),y.push("n"),y.push(Wi(M.x1.x)+" "+Wi(M.x1.y)+" m"),y.push(Wi(M.x2.x)+" "+Wi(M.x2.y)+" l"),y.push(Wi(M.x4.x)+" "+Wi(M.x4.y)+" m"),y.push(Wi(M.x3.x)+" "+Wi(M.x3.y)+" l"),y.push("s"),y.push("Q"),u.stream=y.join(`
|
|
|
`),u},YesPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=Di.internal.calculateCross(b),M=[];return M.push("0.749023 g"),M.push("0 0 "+Wi(Di.internal.getWidth(b))+" "+Wi(Di.internal.getHeight(b))+" re"),M.push("f"),M.push("q"),M.push("1 1 "+Wi(Di.internal.getWidth(b)-2)+" "+Wi(Di.internal.getHeight(b)-2)+" re"),M.push("W"),M.push("n"),M.push(Wi(y.x1.x)+" "+Wi(y.x1.y)+" m"),M.push(Wi(y.x2.x)+" "+Wi(y.x2.y)+" l"),M.push(Wi(y.x4.x)+" "+Wi(y.x4.y)+" m"),M.push(Wi(y.x3.x)+" "+Wi(y.x3.y)+" l"),M.push("s"),M.push("Q"),u.stream=M.join(`
|
|
|
`),u},OffPushDown:function(b){var u=Qs(b);u.scope=b.scope;var y=[];return y.push("0.749023 g"),y.push("0 0 "+Wi(Di.internal.getWidth(b))+" "+Wi(Di.internal.getHeight(b))+" re"),y.push("f"),u.stream=y.join(`
|
|
|
`),u}}},createDefaultAppearanceStream:function(b){var u=b.scope.internal.getFont(b.fontName,b.fontStyle).id,y=b.scope.__private__.encodeColorString(b.color);return"/"+u+" "+b.fontSize+" Tf "+y}};Di.internal={Bezier_C:.551915024494,calculateCross:function(b){var u=Di.internal.getWidth(b),y=Di.internal.getHeight(b),M=Math.min(u,y);return{x1:{x:(u-M)/2,y:(y-M)/2+M},x2:{x:(u-M)/2+M,y:(y-M)/2},x3:{x:(u-M)/2,y:(y-M)/2},x4:{x:(u-M)/2+M,y:(y-M)/2+M}}}},Di.internal.getWidth=function(b){var u=0;return(0,we.Z)(b)==="object"&&(u=co(b.Rect[2])),u},Di.internal.getHeight=function(b){var u=0;return(0,we.Z)(b)==="object"&&(u=co(b.Rect[3])),u};var Dl=la.addField=function(b){if(Ls(this,b),!(b instanceof eo))throw new Error("Invalid argument passed to jsPDF.addField.");var u;return(u=b).scope.internal.acroformPlugin.printedOut&&(u.scope.internal.acroformPlugin.printedOut=!1,u.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),u.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(u),b.page=b.scope.internal.getCurrentPageInfo().pageNumber,this};la.AcroFormChoiceField=zs,la.AcroFormListBox=Rs,la.AcroFormComboBox=Oi,la.AcroFormEditBox=Ai,la.AcroFormButton=ua,la.AcroFormPushButton=vs,la.AcroFormRadioButton=Ra,la.AcroFormCheckBox=Vs,la.AcroFormTextField=vo,la.AcroFormPasswordField=Os,la.AcroFormAppearance=Di,la.AcroForm={ChoiceField:zs,ListBox:Rs,ComboBox:Oi,EditBox:Ai,Button:ua,PushButton:vs,RadioButton:Ra,CheckBox:Vs,TextField:vo,PasswordField:Os,Appearance:Di},Mi.AcroForm={ChoiceField:zs,ListBox:Rs,ComboBox:Oi,EditBox:Ai,Button:ua,PushButton:vs,RadioButton:Ra,CheckBox:Vs,TextField:vo,PasswordField:Os,Appearance:Di};var Js=Mi.AcroForm;function nl(b){return b.reduce(function(u,y,M){return u[y]=M,u},{})}(function(b){b.__addimage__={};var u="UNKNOWN",y={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]]},M=b.__addimage__.getImageFileTypeByImageData=function(er,nr){var ye,Ee,et,st,gt,ht=u;if((nr=nr||u)==="RGBA"||er.data!==void 0&&er.data instanceof Uint8ClampedArray&&"height"in er&&"width"in er)return"RGBA";if(ci(er))for(gt in y)for(et=y[gt],ye=0;ye<et.length;ye+=1){for(st=!0,Ee=0;Ee<et[ye].length;Ee+=1)if(et[ye][Ee]!==void 0&&et[ye][Ee]!==er[Ee]){st=!1;break}if(st===!0){ht=gt;break}}else for(gt in y)for(et=y[gt],ye=0;ye<et.length;ye+=1){for(st=!0,Ee=0;Ee<et[ye].length;Ee+=1)if(et[ye][Ee]!==void 0&&et[ye][Ee]!==er.charCodeAt(Ee)){st=!1;break}if(st===!0){ht=gt;break}}return ht===u&&nr!==u&&(ht=nr),ht},ne=function er(nr){for(var ye=this.internal.write,Ee=this.internal.putStream,et=(0,this.internal.getFilters)();et.indexOf("FlateEncode")!==-1;)et.splice(et.indexOf("FlateEncode"),1);nr.objectId=this.internal.newObject();var st=[];if(st.push({key:"Type",value:"/XObject"}),st.push({key:"Subtype",value:"/Image"}),st.push({key:"Width",value:nr.width}),st.push({key:"Height",value:nr.height}),nr.colorSpace===dr.INDEXED?st.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(nr.palette.length/3-1)+" "+("sMask"in nr&&nr.sMask!==void 0?nr.objectId+2:nr.objectId+1)+" 0 R]"}):(st.push({key:"ColorSpace",value:"/"+nr.colorSpace}),nr.colorSpace===dr.DEVICE_CMYK&&st.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),st.push({key:"BitsPerComponent",value:nr.bitsPerComponent}),"decodeParameters"in nr&&nr.decodeParameters!==void 0&&st.push({key:"DecodeParms",value:"<<"+nr.decodeParameters+">>"}),"transparency"in nr&&Array.isArray(nr.transparency)){for(var gt="",ht=0,Ut=nr.transparency.length;ht<Ut;ht++)gt+=nr.transparency[ht]+" "+nr.transparency[ht]+" ";st.push({key:"Mask",value:"["+gt+"]"})}nr.sMask!==void 0&&st.push({key:"SMask",value:nr.objectId+1+" 0 R"});var $t=nr.filter!==void 0?["/"+nr.filter]:void 0;if(Ee({data:nr.data,additionalKeyValues:st,alreadyAppliedFilters:$t,objectId:nr.objectId}),ye("endobj"),"sMask"in nr&&nr.sMask!==void 0){var sr="/Predictor "+nr.predictor+" /Colors 1 /BitsPerComponent "+nr.bitsPerComponent+" /Columns "+nr.width,ze={width:nr.width,height:nr.height,colorSpace:"DeviceGray",bitsPerComponent:nr.bitsPerComponent,decodeParameters:sr,data:nr.sMask};"filter"in nr&&(ze.filter=nr.filter),er.call(this,ze)}if(nr.colorSpace===dr.INDEXED){var Ce=this.internal.newObject();Ee({data:Br(new Uint8Array(nr.palette)),objectId:Ce}),ye("endobj")}},Z=function(){var er=this.internal.collections.addImage_images;for(var nr in er)ne.call(this,er[nr])},ge=function(){var er,nr=this.internal.collections.addImage_images,ye=this.internal.write;for(var Ee in nr)ye("/I"+(er=nr[Ee]).index,er.objectId,"0","R")},De=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",Z),this.internal.events.subscribe("putXobjectDict",ge))},Ne=function(){var er=this.internal.collections.addImage_images;return De.call(this),er},tt=function(){return Object.keys(this.internal.collections.addImage_images).length},yt=function(er){return typeof b["process"+er.toUpperCase()]=="function"},vt=function(er){return(0,we.Z)(er)==="object"&&er.nodeType===1},Pt=function(er,nr){if(er.nodeName==="IMG"&&er.hasAttribute("src")){var ye=""+er.getAttribute("src");if(ye.indexOf("data:image/")===0)return Bi(unescape(ye).split("base64,").pop());var Ee=b.loadFile(ye,!0);if(Ee!==void 0)return Ee}if(er.nodeName==="CANVAS"){if(er.width===0||er.height===0)throw new Error("Given canvas must have data. Canvas width: "+er.width+", height: "+er.height);var et;switch(nr){case"PNG":et="image/png";break;case"WEBP":et="image/webp";break;case"JPEG":case"JPG":default:et="image/jpeg"}return Bi(er.toDataURL(et,1).split("base64,").pop())}},Ye=function(er){var nr=this.internal.collections.addImage_images;if(nr){for(var ye in nr)if(er===nr[ye].alias)return nr[ye]}},cr=function(er,nr,ye){return er||nr||(er=-96,nr=-96),er<0&&(er=-1*ye.width*72/er/this.internal.scaleFactor),nr<0&&(nr=-1*ye.height*72/nr/this.internal.scaleFactor),er===0&&(er=nr*ye.width/ye.height),nr===0&&(nr=er*ye.height/ye.width),[er,nr]},tr=function(er,nr,ye,Ee,et,st){var gt=cr.call(this,ye,Ee,et),ht=this.internal.getCoordinateString,Ut=this.internal.getVerticalCoordinateString,$t=Ne.call(this);if(ye=gt[0],Ee=gt[1],$t[et.index]=et,st){st*=Math.PI/180;var sr=Math.cos(st),ze=Math.sin(st),Ce=function(jt){return jt.toFixed(4)},wt=[Ce(sr),Ce(ze),Ce(-1*ze),Ce(sr),0,0,"cm"]}this.internal.write("q"),st?(this.internal.write([1,"0","0",1,ht(er),Ut(nr+Ee),"cm"].join(" ")),this.internal.write(wt.join(" ")),this.internal.write([ht(ye),"0","0",ht(Ee),"0","0","cm"].join(" "))):this.internal.write([ht(ye),"0","0",ht(Ee),ht(er),Ut(nr+Ee),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+et.index+" Do"),this.internal.write("Q")},dr=b.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"};b.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 Qt=b.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},pr=b.__addimage__.sHashCode=function(er){var nr,ye,Ee=0;if(typeof er=="string")for(ye=er.length,nr=0;nr<ye;nr++)Ee=(Ee<<5)-Ee+er.charCodeAt(nr),Ee|=0;else if(ci(er))for(ye=er.byteLength/2,nr=0;nr<ye;nr++)Ee=(Ee<<5)-Ee+er[nr],Ee|=0;return Ee},Ur=b.__addimage__.validateStringAsBase64=function(er){(er=er||"").toString().trim();var nr=!0;return er.length===0&&(nr=!1),er.length%4!=0&&(nr=!1),/^[A-Za-z0-9+/]+$/.test(er.substr(0,er.length-2))===!1&&(nr=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(er.substr(-2))===!1&&(nr=!1),nr},sn=b.__addimage__.extractImageFromDataUrl=function(er){var nr=(er=er||"").split("base64,"),ye=null;if(nr.length===2){var Ee=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(nr[0]);Array.isArray(Ee)&&(ye={mimeType:Ee[1],charset:Ee[2],data:nr[1]})}return ye},Rn=b.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};b.__addimage__.isArrayBuffer=function(er){return Rn()&&er instanceof ArrayBuffer};var ci=b.__addimage__.isArrayBufferView=function(er){return Rn()&&typeof Uint32Array!="undefined"&&(er instanceof Int8Array||er instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&er instanceof Uint8ClampedArray||er instanceof Int16Array||er instanceof Uint16Array||er instanceof Int32Array||er instanceof Uint32Array||er instanceof Float32Array||er instanceof Float64Array)},pn=b.__addimage__.binaryStringToUint8Array=function(er){for(var nr=er.length,ye=new Uint8Array(nr),Ee=0;Ee<nr;Ee++)ye[Ee]=er.charCodeAt(Ee);return ye},Br=b.__addimage__.arrayBufferToBinaryString=function(er){for(var nr="",ye=ci(er)?er:new Uint8Array(er),Ee=0;Ee<ye.length;Ee+=8192)nr+=String.fromCharCode.apply(null,ye.subarray(Ee,Ee+8192));return nr};b.addImage=function(){var er,nr,ye,Ee,et,st,gt,ht,Ut;if(typeof arguments[1]=="number"?(nr=u,ye=arguments[1],Ee=arguments[2],et=arguments[3],st=arguments[4],gt=arguments[5],ht=arguments[6],Ut=arguments[7]):(nr=arguments[1],ye=arguments[2],Ee=arguments[3],et=arguments[4],st=arguments[5],gt=arguments[6],ht=arguments[7],Ut=arguments[8]),(0,we.Z)(er=arguments[0])==="object"&&!vt(er)&&"imageData"in er){var $t=er;er=$t.imageData,nr=$t.format||nr||u,ye=$t.x||ye||0,Ee=$t.y||Ee||0,et=$t.w||$t.width||et,st=$t.h||$t.height||st,gt=$t.alias||gt,ht=$t.compression||ht,Ut=$t.rotation||$t.angle||Ut}var sr=this.internal.getFilters();if(ht===void 0&&sr.indexOf("FlateEncode")!==-1&&(ht="SLOW"),isNaN(ye)||isNaN(Ee))throw new Error("Invalid coordinates passed to jsPDF.addImage");De.call(this);var ze=bn.call(this,er,nr,gt,ht);return tr.call(this,ye,Ee,et,st,ze,Ut),this};var bn=function(er,nr,ye,Ee){var et,st,gt;if(typeof er=="string"&&M(er)===u){er=unescape(er);var ht=Pn(er,!1);(ht!==""||(ht=b.loadFile(er,!0))!==void 0)&&(er=ht)}if(vt(er)&&(er=Pt(er,nr)),nr=M(er,nr),!yt(nr))throw new Error("addImage does not support files of type '"+nr+"', please ensure that a plugin for '"+nr+"' support is added.");if(((gt=ye)==null||gt.length===0)&&(ye=function(Ut){return typeof Ut=="string"||ci(Ut)?pr(Ut):ci(Ut.data)?pr(Ut.data):null}(er)),(et=Ye.call(this,ye))||(Rn()&&(er instanceof Uint8Array||nr==="RGBA"||(st=er,er=pn(er))),et=this["process"+nr.toUpperCase()](er,tt.call(this),ye,function(Ut){return Ut&&typeof Ut=="string"&&(Ut=Ut.toUpperCase()),Ut in b.image_compression?Ut:Qt.NONE}(Ee),st)),!et)throw new Error("An unknown error occurred whilst processing the image.");return et},Pn=b.__addimage__.convertBase64ToBinaryString=function(er,nr){var ye;nr=typeof nr!="boolean"||nr;var Ee,et="";if(typeof er=="string"){Ee=(ye=sn(er))!==null?ye.data:er;try{et=Bi(Ee)}catch(st){if(nr)throw Ur(Ee)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+st.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return et};b.getImageProperties=function(er){var nr,ye,Ee="";if(vt(er)&&(er=Pt(er)),typeof er=="string"&&M(er)===u&&((Ee=Pn(er,!1))===""&&(Ee=b.loadFile(er)||""),er=Ee),ye=M(er),!yt(ye))throw new Error("addImage does not support files of type '"+ye+"', please ensure that a plugin for '"+ye+"' support is added.");if(!Rn()||er instanceof Uint8Array||(er=pn(er)),!(nr=this["process"+ye.toUpperCase()](er)))throw new Error("An unknown error occurred whilst processing the image");return nr.fileType=ye,nr}})(Mi.API),function(b){var u=function(y){if(y!==void 0&&y!="")return!0};Mi.API.events.push(["addPage",function(y){this.internal.getPageInfo(y.pageNumber).pageContext.annotations=[]}]),b.events.push(["putPage",function(y){for(var M,ne,Z,ge=this.internal.getCoordinateString,De=this.internal.getVerticalCoordinateString,Ne=this.internal.getPageInfoByObjId(y.objId),tt=y.pageContext.annotations,yt=!1,vt=0;vt<tt.length&&!yt;vt++)switch((M=tt[vt]).type){case"link":(u(M.options.url)||u(M.options.pageNumber))&&(yt=!0);break;case"reference":case"text":case"freetext":yt=!0}if(yt!=0){this.internal.write("/Annots [");for(var Pt=0;Pt<tt.length;Pt++){M=tt[Pt];var Ye=this.internal.pdfEscape,cr=this.internal.getEncryptor(y.objId);switch(M.type){case"reference":this.internal.write(" "+M.object.objId+" 0 R ");break;case"text":var tr=this.internal.newAdditionalObject(),dr=this.internal.newAdditionalObject(),Qt=this.internal.getEncryptor(tr.objId),pr=M.title||"Note";Z="<</Type /Annot /Subtype /Text "+(ne="/Rect ["+ge(M.bounds.x)+" "+De(M.bounds.y+M.bounds.h)+" "+ge(M.bounds.x+M.bounds.w)+" "+De(M.bounds.y)+"] ")+"/Contents ("+Ye(Qt(M.contents))+")",Z+=" /Popup "+dr.objId+" 0 R",Z+=" /P "+Ne.objId+" 0 R",Z+=" /T ("+Ye(Qt(pr))+") >>",tr.content=Z;var Ur=tr.objId+" 0 R";Z="<</Type /Annot /Subtype /Popup "+(ne="/Rect ["+ge(M.bounds.x+30)+" "+De(M.bounds.y+M.bounds.h)+" "+ge(M.bounds.x+M.bounds.w+30)+" "+De(M.bounds.y)+"] ")+" /Parent "+Ur,M.open&&(Z+=" /Open true"),Z+=" >>",dr.content=Z,this.internal.write(tr.objId,"0 R",dr.objId,"0 R");break;case"freetext":ne="/Rect ["+ge(M.bounds.x)+" "+De(M.bounds.y)+" "+ge(M.bounds.x+M.bounds.w)+" "+De(M.bounds.y+M.bounds.h)+"] ";var sn=M.color||"#000000";Z="<</Type /Annot /Subtype /FreeText "+ne+"/Contents ("+Ye(cr(M.contents))+")",Z+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+sn+")",Z+=" /Border [0 0 0]",Z+=" >>",this.internal.write(Z);break;case"link":if(M.options.name){var Rn=this.annotations._nameMap[M.options.name];M.options.pageNumber=Rn.page,M.options.top=Rn.y}else M.options.top||(M.options.top=0);if(ne="/Rect ["+M.finalBounds.x+" "+M.finalBounds.y+" "+M.finalBounds.w+" "+M.finalBounds.h+"] ",Z="",M.options.url)Z="<</Type /Annot /Subtype /Link "+ne+"/Border [0 0 0] /A <</S /URI /URI ("+Ye(cr(M.options.url))+") >>";else if(M.options.pageNumber)switch(Z="<</Type /Annot /Subtype /Link "+ne+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(M.options.pageNumber).objId+" 0 R",M.options.magFactor=M.options.magFactor||"XYZ",M.options.magFactor){case"Fit":Z+=" /Fit]";break;case"FitH":Z+=" /FitH "+M.options.top+"]";break;case"FitV":M.options.left=M.options.left||0,Z+=" /FitV "+M.options.left+"]";break;case"XYZ":default:var ci=De(M.options.top);M.options.left=M.options.left||0,M.options.zoom===void 0&&(M.options.zoom=0),Z+=" /XYZ "+M.options.left+" "+ci+" "+M.options.zoom+"]"}Z!=""&&(Z+=" >>",this.internal.write(Z))}}this.internal.write("]")}}]),b.createAnnotation=function(y){var M=this.internal.getCurrentPageInfo();switch(y.type){case"link":this.link(y.bounds.x,y.bounds.y,y.bounds.w,y.bounds.h,y);break;case"text":case"freetext":M.pageContext.annotations.push(y)}},b.link=function(y,M,ne,Z,ge){var De=this.internal.getCurrentPageInfo(),Ne=this.internal.getCoordinateString,tt=this.internal.getVerticalCoordinateString;De.pageContext.annotations.push({finalBounds:{x:Ne(y),y:tt(M),w:Ne(y+ne),h:tt(M+Z)},options:ge,type:"link"})},b.textWithLink=function(y,M,ne,Z){var ge,De,Ne=this.getTextWidth(y),tt=this.internal.getLineHeight()/this.internal.scaleFactor;if(Z.maxWidth!==void 0){De=Z.maxWidth;var yt=this.splitTextToSize(y,De).length;ge=Math.ceil(tt*yt)}else De=Ne,ge=tt;return this.text(y,M,ne,Z),ne+=.2*tt,Z.align==="center"&&(M-=Ne/2),Z.align==="right"&&(M-=Ne),this.link(M,ne-tt,De,ge,Z),Ne},b.getTextWidth=function(y){var M=this.internal.getFontSize();return this.getStringUnitWidth(y)*M/this.internal.scaleFactor}}(Mi.API),function(b){var u={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]},y={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}},M={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ne=[1570,1571,1573,1575];b.__arabicParser__={};var Z=b.__arabicParser__.isInArabicSubstitutionA=function(tr){return u[tr.charCodeAt(0)]!==void 0},ge=b.__arabicParser__.isArabicLetter=function(tr){return typeof tr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(tr)},De=b.__arabicParser__.isArabicEndLetter=function(tr){return ge(tr)&&Z(tr)&&u[tr.charCodeAt(0)].length<=2},Ne=b.__arabicParser__.isArabicAlfLetter=function(tr){return ge(tr)&&ne.indexOf(tr.charCodeAt(0))>=0};b.__arabicParser__.arabicLetterHasIsolatedForm=function(tr){return ge(tr)&&Z(tr)&&u[tr.charCodeAt(0)].length>=1};var tt=b.__arabicParser__.arabicLetterHasFinalForm=function(tr){return ge(tr)&&Z(tr)&&u[tr.charCodeAt(0)].length>=2};b.__arabicParser__.arabicLetterHasInitialForm=function(tr){return ge(tr)&&Z(tr)&&u[tr.charCodeAt(0)].length>=3};var yt=b.__arabicParser__.arabicLetterHasMedialForm=function(tr){return ge(tr)&&Z(tr)&&u[tr.charCodeAt(0)].length==4},vt=b.__arabicParser__.resolveLigatures=function(tr){var dr=0,Qt=y,pr="",Ur=0;for(dr=0;dr<tr.length;dr+=1)Qt[tr.charCodeAt(dr)]!==void 0?(Ur++,typeof(Qt=Qt[tr.charCodeAt(dr)])=="number"&&(pr+=String.fromCharCode(Qt),Qt=y,Ur=0),dr===tr.length-1&&(Qt=y,pr+=tr.charAt(dr-(Ur-1)),dr-=Ur-1,Ur=0)):(Qt=y,pr+=tr.charAt(dr-Ur),dr-=Ur,Ur=0);return pr};b.__arabicParser__.isArabicDiacritic=function(tr){return tr!==void 0&&M[tr.charCodeAt(0)]!==void 0};var Pt=b.__arabicParser__.getCorrectForm=function(tr,dr,Qt){return ge(tr)?Z(tr)===!1?-1:!tt(tr)||!ge(dr)&&!ge(Qt)||!ge(Qt)&&De(dr)||De(tr)&&!ge(dr)||De(tr)&&Ne(dr)||De(tr)&&De(dr)?0:yt(tr)&&ge(dr)&&!De(dr)&&ge(Qt)&&tt(Qt)?3:De(tr)||!ge(Qt)?1:2:-1},Ye=function(tr){var dr=0,Qt=0,pr=0,Ur="",sn="",Rn="",ci=(tr=tr||"").split("\\s+"),pn=[];for(dr=0;dr<ci.length;dr+=1){for(pn.push(""),Qt=0;Qt<ci[dr].length;Qt+=1)Ur=ci[dr][Qt],sn=ci[dr][Qt-1],Rn=ci[dr][Qt+1],ge(Ur)?(pr=Pt(Ur,sn,Rn),pn[dr]+=pr!==-1?String.fromCharCode(u[Ur.charCodeAt(0)][pr]):Ur):pn[dr]+=Ur;pn[dr]=vt(pn[dr])}return pn.join(" ")},cr=b.__arabicParser__.processArabic=b.processArabic=function(){var tr,dr=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Qt=[];if(Array.isArray(dr)){var pr=0;for(Qt=[],pr=0;pr<dr.length;pr+=1)Array.isArray(dr[pr])?Qt.push([Ye(dr[pr][0]),dr[pr][1],dr[pr][2]]):Qt.push([Ye(dr[pr])]);tr=Qt}else tr=Ye(dr);return typeof arguments[0]=="string"?tr:(arguments[0].text=tr,arguments[0])};b.events.push(["preProcessText",cr])}(Mi.API),Mi.API.autoPrint=function(b){var u;switch((b=b||{}).variant=b.variant||"non-conform",b.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){u=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 "+u+" 0 R")})}return this},function(b){var u=function(){var y=void 0;Object.defineProperty(this,"pdf",{get:function(){return y},set:function(De){y=De}});var M=150;Object.defineProperty(this,"width",{get:function(){return M},set:function(De){M=isNaN(De)||Number.isInteger(De)===!1||De<0?150:De,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=M+1)}});var ne=300;Object.defineProperty(this,"height",{get:function(){return ne},set:function(De){ne=isNaN(De)||Number.isInteger(De)===!1||De<0?300:De,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=ne+1)}});var Z=[];Object.defineProperty(this,"childNodes",{get:function(){return Z},set:function(De){Z=De}});var ge={};Object.defineProperty(this,"style",{get:function(){return ge},set:function(De){ge=De}}),Object.defineProperty(this,"parentNode",{})};u.prototype.getContext=function(y,M){var ne;if((y=y||"2d")!=="2d")return null;for(ne in M)this.pdf.context2d.hasOwnProperty(ne)&&(this.pdf.context2d[ne]=M[ne]);return this.pdf.context2d._canvas=this,this.pdf.context2d},u.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},b.events.push(["initialized",function(){this.canvas=new u,this.canvas.pdf=this}])}(Mi.API),function(b){var u={left:0,top:0,bottom:0,right:0},y=!1,M=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({},u),this.internal.__cell__.margins.width=this.getPageWidth(),ne.call(this))},ne=function(){this.internal.__cell__.lastCell=new Z,this.internal.__cell__.pages=1},Z=function(){var Ne=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Ne},set:function(tr){Ne=tr}});var tt=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return tt},set:function(tr){tt=tr}});var yt=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return yt},set:function(tr){yt=tr}});var vt=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return vt},set:function(tr){vt=tr}});var Pt=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Pt},set:function(tr){Pt=tr}});var Ye=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Ye},set:function(tr){Ye=tr}});var cr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return cr},set:function(tr){cr=tr}}),this};Z.prototype.clone=function(){return new Z(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},Z.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},b.setHeaderFunction=function(Ne){return M.call(this),this.internal.__cell__.headerFunction=typeof Ne=="function"?Ne:void 0,this},b.getTextDimensions=function(Ne,tt){M.call(this);var yt=(tt=tt||{}).fontSize||this.getFontSize(),vt=tt.font||this.getFont(),Pt=tt.scaleFactor||this.internal.scaleFactor,Ye=0,cr=0,tr=0,dr=this;if(!Array.isArray(Ne)&&typeof Ne!="string"){if(typeof Ne!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Ne=String(Ne)}var Qt=tt.maxWidth;Qt>0?typeof Ne=="string"?Ne=this.splitTextToSize(Ne,Qt):Object.prototype.toString.call(Ne)==="[object Array]"&&(Ne=Ne.reduce(function(Ur,sn){return Ur.concat(dr.splitTextToSize(sn,Qt))},[])):Ne=Array.isArray(Ne)?Ne:[Ne];for(var pr=0;pr<Ne.length;pr++)Ye<(tr=this.getStringUnitWidth(Ne[pr],{font:vt})*yt)&&(Ye=tr);return Ye!==0&&(cr=Ne.length),{w:Ye/=Pt,h:Math.max((cr*yt*this.getLineHeightFactor()-yt*(this.getLineHeightFactor()-1))/Pt,0)}},b.cellAddPage=function(){M.call(this),this.addPage();var Ne=this.internal.__cell__.margins||u;return this.internal.__cell__.lastCell=new Z(Ne.left,Ne.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ge=b.cell=function(){var Ne;Ne=arguments[0]instanceof Z?arguments[0]:new Z(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),M.call(this);var tt=this.internal.__cell__.lastCell,yt=this.internal.__cell__.padding,vt=this.internal.__cell__.margins||u,Pt=this.internal.__cell__.tableHeaderRow,Ye=this.internal.__cell__.printHeaders;return tt.lineNumber!==void 0&&(tt.lineNumber===Ne.lineNumber?(Ne.x=(tt.x||0)+(tt.width||0),Ne.y=tt.y||0):tt.y+tt.height+Ne.height+vt.bottom>this.getPageHeight()?(this.cellAddPage(),Ne.y=vt.top,Ye&&Pt&&(this.printHeaderRow(Ne.lineNumber,!0),Ne.y+=Pt[0].height)):Ne.y=tt.y+tt.height||Ne.y),Ne.text[0]!==void 0&&(this.rect(Ne.x,Ne.y,Ne.width,Ne.height,y===!0?"FD":void 0),Ne.align==="right"?this.text(Ne.text,Ne.x+Ne.width-yt,Ne.y+yt,{align:"right",baseline:"top"}):Ne.align==="center"?this.text(Ne.text,Ne.x+Ne.width/2,Ne.y+yt,{align:"center",baseline:"top",maxWidth:Ne.width-yt-yt}):this.text(Ne.text,Ne.x+yt,Ne.y+yt,{align:"left",baseline:"top",maxWidth:Ne.width-yt-yt})),this.internal.__cell__.lastCell=Ne,this};b.table=function(Ne,tt,yt,vt,Pt){if(M.call(this),!yt)throw new Error("No data for PDF table.");var Ye,cr,tr,dr,Qt=[],pr=[],Ur=[],sn={},Rn={},ci=[],pn=[],Br=(Pt=Pt||{}).autoSize||!1,bn=Pt.printHeaders!==!1,Pn=Pt.css&&Pt.css["font-size"]!==void 0?16*Pt.css["font-size"]:Pt.fontSize||12,er=Pt.margins||Object.assign({width:this.getPageWidth()},u),nr=typeof Pt.padding=="number"?Pt.padding:3,ye=Pt.headerBackgroundColor||"#c8c8c8",Ee=Pt.headerTextColor||"#000";if(ne.call(this),this.internal.__cell__.printHeaders=bn,this.internal.__cell__.margins=er,this.internal.__cell__.table_font_size=Pn,this.internal.__cell__.padding=nr,this.internal.__cell__.headerBackgroundColor=ye,this.internal.__cell__.headerTextColor=Ee,this.setFontSize(Pn),vt==null)pr=Qt=Object.keys(yt[0]),Ur=Qt.map(function(){return"left"});else if(Array.isArray(vt)&&(0,we.Z)(vt[0])==="object")for(Qt=vt.map(function($t){return $t.name}),pr=vt.map(function($t){return $t.prompt||$t.name||""}),Ur=vt.map(function($t){return $t.align||"left"}),Ye=0;Ye<vt.length;Ye+=1)Rn[vt[Ye].name]=vt[Ye].width*(19.049976/25.4);else Array.isArray(vt)&&typeof vt[0]=="string"&&(pr=Qt=vt,Ur=Qt.map(function(){return"left"}));if(Br||Array.isArray(vt)&&typeof vt[0]=="string")for(Ye=0;Ye<Qt.length;Ye+=1){for(sn[dr=Qt[Ye]]=yt.map(function($t){return $t[dr]}),this.setFont(void 0,"bold"),ci.push(this.getTextDimensions(pr[Ye],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),cr=sn[dr],this.setFont(void 0,"normal"),tr=0;tr<cr.length;tr+=1)ci.push(this.getTextDimensions(cr[tr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Rn[dr]=Math.max.apply(null,ci)+nr+nr,ci=[]}if(bn){var et={};for(Ye=0;Ye<Qt.length;Ye+=1)et[Qt[Ye]]={},et[Qt[Ye]].text=pr[Ye],et[Qt[Ye]].align=Ur[Ye];var st=De.call(this,et,Rn);pn=Qt.map(function($t){return new Z(Ne,tt,Rn[$t],st,et[$t].text,void 0,et[$t].align)}),this.setTableHeaderRow(pn),this.printHeaderRow(1,!1)}var gt=vt.reduce(function($t,sr){return $t[sr.name]=sr.align,$t},{});for(Ye=0;Ye<yt.length;Ye+=1){"rowStart"in Pt&&Pt.rowStart instanceof Function&&Pt.rowStart({row:Ye,data:yt[Ye]},this);var ht=De.call(this,yt[Ye],Rn);for(tr=0;tr<Qt.length;tr+=1){var Ut=yt[Ye][Qt[tr]];"cellStart"in Pt&&Pt.cellStart instanceof Function&&Pt.cellStart({row:Ye,col:tr,data:Ut},this),ge.call(this,new Z(Ne,tt,Rn[Qt[tr]],ht,Ut,Ye+2,gt[Qt[tr]]))}}return this.internal.__cell__.table_x=Ne,this.internal.__cell__.table_y=tt,this};var De=function(Ne,tt){var yt=this.internal.__cell__.padding,vt=this.internal.__cell__.table_font_size,Pt=this.internal.scaleFactor;return Object.keys(Ne).map(function(Ye){var cr=Ne[Ye];return this.splitTextToSize(cr.hasOwnProperty("text")?cr.text:cr,tt[Ye]-yt-yt)},this).map(function(Ye){return this.getLineHeightFactor()*Ye.length*vt/Pt+yt+yt},this).reduce(function(Ye,cr){return Math.max(Ye,cr)},0)};b.setTableHeaderRow=function(Ne){M.call(this),this.internal.__cell__.tableHeaderRow=Ne},b.printHeaderRow=function(Ne,tt){if(M.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var yt;if(y=!0,typeof this.internal.__cell__.headerFunction=="function"){var vt=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new Z(vt[0],vt[1],vt[2],vt[3],void 0,-1)}this.setFont(void 0,"bold");for(var Pt=[],Ye=0;Ye<this.internal.__cell__.tableHeaderRow.length;Ye+=1){yt=this.internal.__cell__.tableHeaderRow[Ye].clone(),tt&&(yt.y=this.internal.__cell__.margins.top||0,Pt.push(yt)),yt.lineNumber=Ne;var cr=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ge.call(this,yt),this.setTextColor(cr)}Pt.length>0&&this.setTableHeaderRow(Pt),this.setFont(void 0,"normal"),y=!1}}(Mi.API);var Qo={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ao=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],_a=nl(Ao),vl=[100,200,300,400,500,600,700,800,900],yl=nl(vl);function fo(b){var u=b.family.replace(/"|'/g,"").toLowerCase(),y=function(Z){return Qo[Z=Z||"normal"]?Z:"normal"}(b.style),M=function(Z){if(!Z)return 400;if(typeof Z=="number")return Z>=100&&Z<=900&&Z%100==0?Z:400;if(/^\d00$/.test(Z))return parseInt(Z);switch(Z){case"bold":return 700;case"normal":default:return 400}}(b.weight),ne=function(Z){return typeof _a[Z=Z||"normal"]=="number"?Z:"normal"}(b.stretch);return{family:u,style:y,weight:M,stretch:ne,src:b.src||[],ref:b.ref||{name:u,style:[ne,y,M].join(" ")}}}function So(b,u,y,M){var ne;for(ne=y;ne>=0&&ne<u.length;ne+=M)if(b[u[ne]])return b[u[ne]];for(ne=y;ne>=0&&ne<u.length;ne-=M)if(b[u[ne]])return b[u[ne]]}var Na={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},ya={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function to(b){return[b.stretch,b.style,b.weight,b.family].join(" ")}function Va(b,u,y){for(var M=(y=y||{}).defaultFontFamily||"times",ne=Object.assign({},Na,y.genericFontFamilies||{}),Z=null,ge=null,De=0;De<u.length;++De)if(ne[(Z=fo(u[De])).family]&&(Z.family=ne[Z.family]),b.hasOwnProperty(Z.family)){ge=b[Z.family];break}if(!(ge=ge||b[M]))throw new Error("Could not find a font-family for the rule '"+to(Z)+"' and default family '"+M+"'.");if(ge=function(Ne,tt){if(tt[Ne])return tt[Ne];var yt=_a[Ne],vt=yt<=_a.normal?-1:1,Pt=So(tt,Ao,yt,vt);if(!Pt)throw new Error("Could not find a matching font-stretch value for "+Ne);return Pt}(Z.stretch,ge),ge=function(Ne,tt){if(tt[Ne])return tt[Ne];for(var yt=Qo[Ne],vt=0;vt<yt.length;++vt)if(tt[yt[vt]])return tt[yt[vt]];throw new Error("Could not find a matching font-style for "+Ne)}(Z.style,ge),!(ge=function(Ne,tt){if(tt[Ne])return tt[Ne];if(Ne===400&&tt[500])return tt[500];if(Ne===500&&tt[400])return tt[400];var yt=yl[Ne],vt=So(tt,vl,yt,Ne<400?-1:1);if(!vt)throw new Error("Could not find a matching font-weight for value "+Ne);return vt}(Z.weight,ge)))throw new Error("Failed to resolve a font for the rule '"+to(Z)+"'.");return ge}function ns(b){return b.trimLeft()}function js(b,u){for(var y=0;y<b.length;){if(b.charAt(y)===u)return[b.substring(0,y),b.substring(y+1)];y+=1}return null}function Ea(b){var u=b.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return u===null?null:[u[0],b.substring(u[0].length)]}var Ys,ao,Po,Do=["times"];(function(b){var u,y,M,ne,Z,ge,De,Ne,tt,yt=function(ze){return ze=ze||{},this.isStrokeTransparent=ze.isStrokeTransparent||!1,this.strokeOpacity=ze.strokeOpacity||1,this.strokeStyle=ze.strokeStyle||"#000000",this.fillStyle=ze.fillStyle||"#000000",this.isFillTransparent=ze.isFillTransparent||!1,this.fillOpacity=ze.fillOpacity||1,this.font=ze.font||"10px sans-serif",this.textBaseline=ze.textBaseline||"alphabetic",this.textAlign=ze.textAlign||"left",this.lineWidth=ze.lineWidth||1,this.lineJoin=ze.lineJoin||"miter",this.lineCap=ze.lineCap||"butt",this.path=ze.path||[],this.transform=ze.transform!==void 0?ze.transform.clone():new Ne,this.globalCompositeOperation=ze.globalCompositeOperation||"normal",this.globalAlpha=ze.globalAlpha||1,this.clip_path=ze.clip_path||[],this.currentPoint=ze.currentPoint||new ge,this.miterLimit=ze.miterLimit||10,this.lastPoint=ze.lastPoint||new ge,this.lineDashOffset=ze.lineDashOffset||0,this.lineDash=ze.lineDash||[],this.margin=ze.margin||[0,0,0,0],this.prevPageLastElemOffset=ze.prevPageLastElemOffset||0,this.ignoreClearRect=typeof ze.ignoreClearRect!="boolean"||ze.ignoreClearRect,this};b.events.push(["initialized",function(){this.context2d=new vt(this),u=this.internal.f2,y=this.internal.getCoordinateString,M=this.internal.getVerticalCoordinateString,ne=this.internal.getHorizontalCoordinate,Z=this.internal.getVerticalCoordinate,ge=this.internal.Point,De=this.internal.Rectangle,Ne=this.internal.Matrix,tt=new yt}]);var vt=function(ze){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Ce=ze;Object.defineProperty(this,"pdf",{get:function(){return Ce}});var wt=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return wt},set:function(Mr){wt=!!Mr}});var jt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return jt},set:function(Mr){jt=!!Mr}});var Wt=0;Object.defineProperty(this,"posX",{get:function(){return Wt},set:function(Mr){isNaN(Mr)||(Wt=Mr)}});var ur=0;Object.defineProperty(this,"posY",{get:function(){return ur},set:function(Mr){isNaN(Mr)||(ur=Mr)}}),Object.defineProperty(this,"margin",{get:function(){return tt.margin},set:function(Mr){var ir;typeof Mr=="number"?ir=[Mr,Mr,Mr,Mr]:((ir=new Array(4))[0]=Mr[0],ir[1]=Mr.length>=2?Mr[1]:ir[0],ir[2]=Mr.length>=3?Mr[2]:ir[0],ir[3]=Mr.length>=4?Mr[3]:ir[1]),tt.margin=ir}});var It=!1;Object.defineProperty(this,"autoPaging",{get:function(){return It},set:function(Mr){It=Mr}});var br=0;Object.defineProperty(this,"lastBreak",{get:function(){return br},set:function(Mr){br=Mr}});var Gr=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Gr},set:function(Mr){Gr=Mr}}),Object.defineProperty(this,"ctx",{get:function(){return tt},set:function(Mr){Mr instanceof yt&&(tt=Mr)}}),Object.defineProperty(this,"path",{get:function(){return tt.path},set:function(Mr){tt.path=Mr}});var $r=[];Object.defineProperty(this,"ctxStack",{get:function(){return $r},set:function(Mr){$r=Mr}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Mr){var ir;ir=Pt(Mr),this.ctx.fillStyle=ir.style,this.ctx.isFillTransparent=ir.a===0,this.ctx.fillOpacity=ir.a,this.pdf.setFillColor(ir.r,ir.g,ir.b,{a:ir.a}),this.pdf.setTextColor(ir.r,ir.g,ir.b,{a:ir.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Mr){var ir=Pt(Mr);this.ctx.strokeStyle=ir.style,this.ctx.isStrokeTransparent=ir.a===0,this.ctx.strokeOpacity=ir.a,ir.a===0?this.pdf.setDrawColor(255,255,255):(ir.a,this.pdf.setDrawColor(ir.r,ir.g,ir.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Mr){["butt","round","square"].indexOf(Mr)!==-1&&(this.ctx.lineCap=Mr,this.pdf.setLineCap(Mr))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Mr){isNaN(Mr)||(this.ctx.lineWidth=Mr,this.pdf.setLineWidth(Mr))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Mr){["bevel","round","miter"].indexOf(Mr)!==-1&&(this.ctx.lineJoin=Mr,this.pdf.setLineJoin(Mr))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Mr){isNaN(Mr)||(this.ctx.miterLimit=Mr,this.pdf.setMiterLimit(Mr))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Mr){this.ctx.textBaseline=Mr}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Mr){["right","end","center","left","start"].indexOf(Mr)!==-1&&(this.ctx.textAlign=Mr)}});var cn=null;function Dn(Mr,ir){if(cn===null){var Ii=function(Fn){var ln=[];return Object.keys(Fn).forEach(function(An){Fn[An].forEach(function(rn){var Cn=null;switch(rn){case"bold":Cn={family:An,weight:"bold"};break;case"italic":Cn={family:An,style:"italic"};break;case"bolditalic":Cn={family:An,weight:"bold",style:"italic"};break;case"":case"normal":Cn={family:An}}Cn!==null&&(Cn.ref={name:An,style:rn},ln.push(Cn))})}),ln}(Mr.getFontList());cn=function(Fn){for(var ln={},An=0;An<Fn.length;++An){var rn=fo(Fn[An]),Cn=rn.family,ai=rn.stretch,Li=rn.style,He=rn.weight;ln[Cn]=ln[Cn]||{},ln[Cn][ai]=ln[Cn][ai]||{},ln[Cn][ai][Li]=ln[Cn][ai][Li]||{},ln[Cn][ai][Li][He]=rn}return ln}(Ii.concat(ir))}return cn}var ni=null;Object.defineProperty(this,"fontFaces",{get:function(){return ni},set:function(Mr){cn=null,ni=Mr}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Mr){var ir;if(this.ctx.font=Mr,(ir=/^\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(Mr))!==null){var Ii=ir[1],Fn=(ir[2],ir[3]),ln=ir[4],An=(ir[5],ir[6]),rn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ln)[2];ln=Math.floor(rn==="px"?parseFloat(ln)*this.pdf.internal.scaleFactor:rn==="em"?parseFloat(ln)*this.pdf.getFontSize():parseFloat(ln)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ln);var Cn=function($){var Be,je,xt=[],bt=$.trim();if(bt==="")return Do;if(bt in ya)return[ya[bt]];for(;bt!=="";){switch(je=null,Be=(bt=ns(bt)).charAt(0)){case'"':case"'":je=js(bt.substring(1),Be);break;default:je=Ea(bt)}if(je===null||(xt.push(je[0]),(bt=ns(je[1]))!==""&&bt.charAt(0)!==","))return Do;bt=bt.replace(/^,/,"")}return xt}(An);if(this.fontFaces){var ai=Va(Dn(this.pdf,this.fontFaces),Cn.map(function($){return{family:$,stretch:"normal",weight:Fn,style:Ii}}));this.pdf.setFont(ai.ref.name,ai.ref.style)}else{var Li="";(Fn==="bold"||parseInt(Fn,10)>=700||Ii==="bold")&&(Li="bold"),Ii==="italic"&&(Li+="italic"),Li.length===0&&(Li="normal");for(var He="",c={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"},w=0;w<Cn.length;w++){if(this.pdf.internal.getFont(Cn[w],Li,{noFallback:!0,disableWarning:!0})!==void 0){He=Cn[w];break}if(Li==="bolditalic"&&this.pdf.internal.getFont(Cn[w],"bold",{noFallback:!0,disableWarning:!0})!==void 0)He=Cn[w],Li="bold";else if(this.pdf.internal.getFont(Cn[w],"normal",{noFallback:!0,disableWarning:!0})!==void 0){He=Cn[w],Li="normal";break}}if(He===""){for(var C=0;C<Cn.length;C++)if(c[Cn[C]]){He=c[Cn[C]];break}}He=He===""?"Times":He,this.pdf.setFont(He,Li)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Mr){this.ctx.globalCompositeOperation=Mr}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Mr){this.ctx.globalAlpha=Mr}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Mr){this.ctx.lineDashOffset=Mr,sr.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Mr){this.ctx.lineDash=Mr,sr.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Mr){this.ctx.ignoreClearRect=!!Mr}})};vt.prototype.setLineDash=function(ze){this.lineDash=ze},vt.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},vt.prototype.fill=function(){sn.call(this,"fill",!1)},vt.prototype.stroke=function(){sn.call(this,"stroke",!1)},vt.prototype.beginPath=function(){this.path=[{type:"begin"}]},vt.prototype.moveTo=function(ze,Ce){if(isNaN(ze)||isNaN(Ce))throw ii.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var wt=this.ctx.transform.applyToPoint(new ge(ze,Ce));this.path.push({type:"mt",x:wt.x,y:wt.y}),this.ctx.lastPoint=new ge(ze,Ce)},vt.prototype.closePath=function(){var ze=new ge(0,0),Ce=0;for(Ce=this.path.length-1;Ce!==-1;Ce--)if(this.path[Ce].type==="begin"&&(0,we.Z)(this.path[Ce+1])==="object"&&typeof this.path[Ce+1].x=="number"){ze=new ge(this.path[Ce+1].x,this.path[Ce+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ge(ze.x,ze.y)},vt.prototype.lineTo=function(ze,Ce){if(isNaN(ze)||isNaN(Ce))throw ii.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var wt=this.ctx.transform.applyToPoint(new ge(ze,Ce));this.path.push({type:"lt",x:wt.x,y:wt.y}),this.ctx.lastPoint=new ge(wt.x,wt.y)},vt.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),sn.call(this,null,!0)},vt.prototype.quadraticCurveTo=function(ze,Ce,wt,jt){if(isNaN(wt)||isNaN(jt)||isNaN(ze)||isNaN(Ce))throw ii.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Wt=this.ctx.transform.applyToPoint(new ge(wt,jt)),ur=this.ctx.transform.applyToPoint(new ge(ze,Ce));this.path.push({type:"qct",x1:ur.x,y1:ur.y,x:Wt.x,y:Wt.y}),this.ctx.lastPoint=new ge(Wt.x,Wt.y)},vt.prototype.bezierCurveTo=function(ze,Ce,wt,jt,Wt,ur){if(isNaN(Wt)||isNaN(ur)||isNaN(ze)||isNaN(Ce)||isNaN(wt)||isNaN(jt))throw ii.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var It=this.ctx.transform.applyToPoint(new ge(Wt,ur)),br=this.ctx.transform.applyToPoint(new ge(ze,Ce)),Gr=this.ctx.transform.applyToPoint(new ge(wt,jt));this.path.push({type:"bct",x1:br.x,y1:br.y,x2:Gr.x,y2:Gr.y,x:It.x,y:It.y}),this.ctx.lastPoint=new ge(It.x,It.y)},vt.prototype.arc=function(ze,Ce,wt,jt,Wt,ur){if(isNaN(ze)||isNaN(Ce)||isNaN(wt)||isNaN(jt)||isNaN(Wt))throw ii.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ur=!!ur,!this.ctx.transform.isIdentity){var It=this.ctx.transform.applyToPoint(new ge(ze,Ce));ze=It.x,Ce=It.y;var br=this.ctx.transform.applyToPoint(new ge(0,wt)),Gr=this.ctx.transform.applyToPoint(new ge(0,0));wt=Math.sqrt(Math.pow(br.x-Gr.x,2)+Math.pow(br.y-Gr.y,2))}Math.abs(Wt-jt)>=2*Math.PI&&(jt=0,Wt=2*Math.PI),this.path.push({type:"arc",x:ze,y:Ce,radius:wt,startAngle:jt,endAngle:Wt,counterclockwise:ur})},vt.prototype.arcTo=function(ze,Ce,wt,jt,Wt){throw new Error("arcTo not implemented.")},vt.prototype.rect=function(ze,Ce,wt,jt){if(isNaN(ze)||isNaN(Ce)||isNaN(wt)||isNaN(jt))throw ii.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(ze,Ce),this.lineTo(ze+wt,Ce),this.lineTo(ze+wt,Ce+jt),this.lineTo(ze,Ce+jt),this.lineTo(ze,Ce),this.lineTo(ze+wt,Ce),this.lineTo(ze,Ce)},vt.prototype.fillRect=function(ze,Ce,wt,jt){if(isNaN(ze)||isNaN(Ce)||isNaN(wt)||isNaN(jt))throw ii.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!Ye.call(this)){var Wt={};this.lineCap!=="butt"&&(Wt.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Wt.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(ze,Ce,wt,jt),this.fill(),Wt.hasOwnProperty("lineCap")&&(this.lineCap=Wt.lineCap),Wt.hasOwnProperty("lineJoin")&&(this.lineJoin=Wt.lineJoin)}},vt.prototype.strokeRect=function(ze,Ce,wt,jt){if(isNaN(ze)||isNaN(Ce)||isNaN(wt)||isNaN(jt))throw ii.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");cr.call(this)||(this.beginPath(),this.rect(ze,Ce,wt,jt),this.stroke())},vt.prototype.clearRect=function(ze,Ce,wt,jt){if(isNaN(ze)||isNaN(Ce)||isNaN(wt)||isNaN(jt))throw ii.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(ze,Ce,wt,jt))},vt.prototype.save=function(ze){ze=typeof ze!="boolean"||ze;for(var Ce=this.pdf.internal.getCurrentPageInfo().pageNumber,wt=0;wt<this.pdf.internal.getNumberOfPages();wt++)this.pdf.setPage(wt+1),this.pdf.internal.out("q");if(this.pdf.setPage(Ce),ze){this.ctx.fontSize=this.pdf.internal.getFontSize();var jt=new yt(this.ctx);this.ctxStack.push(this.ctx),this.ctx=jt}},vt.prototype.restore=function(ze){ze=typeof ze!="boolean"||ze;for(var Ce=this.pdf.internal.getCurrentPageInfo().pageNumber,wt=0;wt<this.pdf.internal.getNumberOfPages();wt++)this.pdf.setPage(wt+1),this.pdf.internal.out("Q");this.pdf.setPage(Ce),ze&&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)},vt.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Pt=function(ze){var Ce,wt,jt,Wt;if(ze.isCanvasGradient===!0&&(ze=ze.getColor()),!ze)return{r:0,g:0,b:0,a:0,style:ze};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(ze))Ce=0,wt=0,jt=0,Wt=0;else{var ur=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(ze);if(ur!==null)Ce=parseInt(ur[1]),wt=parseInt(ur[2]),jt=parseInt(ur[3]),Wt=1;else if((ur=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(ze))!==null)Ce=parseInt(ur[1]),wt=parseInt(ur[2]),jt=parseInt(ur[3]),Wt=parseFloat(ur[4]);else{if(Wt=1,typeof ze=="string"&&ze.charAt(0)!=="#"){var It=new xi(ze);ze=It.ok?It.toHex():"#000000"}ze.length===4?(Ce=ze.substring(1,2),Ce+=Ce,wt=ze.substring(2,3),wt+=wt,jt=ze.substring(3,4),jt+=jt):(Ce=ze.substring(1,3),wt=ze.substring(3,5),jt=ze.substring(5,7)),Ce=parseInt(Ce,16),wt=parseInt(wt,16),jt=parseInt(jt,16)}}return{r:Ce,g:wt,b:jt,a:Wt,style:ze}},Ye=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},cr=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};vt.prototype.fillText=function(ze,Ce,wt,jt){if(isNaN(Ce)||isNaN(wt)||typeof ze!="string")throw ii.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(jt=isNaN(jt)?void 0:jt,!Ye.call(this)){var Wt=ht(this.ctx.transform.rotation),ur=this.ctx.transform.scaleX;nr.call(this,{text:ze,x:Ce,y:wt,scale:ur,angle:Wt,align:this.textAlign,maxWidth:jt})}},vt.prototype.strokeText=function(ze,Ce,wt,jt){if(isNaN(Ce)||isNaN(wt)||typeof ze!="string")throw ii.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!cr.call(this)){jt=isNaN(jt)?void 0:jt;var Wt=ht(this.ctx.transform.rotation),ur=this.ctx.transform.scaleX;nr.call(this,{text:ze,x:Ce,y:wt,scale:ur,renderingMode:"stroke",angle:Wt,align:this.textAlign,maxWidth:jt})}},vt.prototype.measureText=function(ze){if(typeof ze!="string")throw ii.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Ce=this.pdf,wt=this.pdf.internal.scaleFactor,jt=Ce.internal.getFontSize(),Wt=Ce.getStringUnitWidth(ze)*jt/Ce.internal.scaleFactor,ur=function(It){var br=(It=It||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return br}}),this};return new ur({width:Wt*=Math.round(96*wt/72*1e4)/1e4})},vt.prototype.scale=function(ze,Ce){if(isNaN(ze)||isNaN(Ce))throw ii.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var wt=new Ne(ze,0,0,Ce,0,0);this.ctx.transform=this.ctx.transform.multiply(wt)},vt.prototype.rotate=function(ze){if(isNaN(ze))throw ii.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Ce=new Ne(Math.cos(ze),Math.sin(ze),-Math.sin(ze),Math.cos(ze),0,0);this.ctx.transform=this.ctx.transform.multiply(Ce)},vt.prototype.translate=function(ze,Ce){if(isNaN(ze)||isNaN(Ce))throw ii.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var wt=new Ne(1,0,0,1,ze,Ce);this.ctx.transform=this.ctx.transform.multiply(wt)},vt.prototype.transform=function(ze,Ce,wt,jt,Wt,ur){if(isNaN(ze)||isNaN(Ce)||isNaN(wt)||isNaN(jt)||isNaN(Wt)||isNaN(ur))throw ii.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var It=new Ne(ze,Ce,wt,jt,Wt,ur);this.ctx.transform=this.ctx.transform.multiply(It)},vt.prototype.setTransform=function(ze,Ce,wt,jt,Wt,ur){ze=isNaN(ze)?1:ze,Ce=isNaN(Ce)?0:Ce,wt=isNaN(wt)?0:wt,jt=isNaN(jt)?1:jt,Wt=isNaN(Wt)?0:Wt,ur=isNaN(ur)?0:ur,this.ctx.transform=new Ne(ze,Ce,wt,jt,Wt,ur)};var tr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};vt.prototype.drawImage=function(ze,Ce,wt,jt,Wt,ur,It,br,Gr){var $r=this.pdf.getImageProperties(ze),cn=1,Dn=1,ni=1,Mr=1;jt!==void 0&&br!==void 0&&(ni=br/jt,Mr=Gr/Wt,cn=$r.width/jt*br/jt,Dn=$r.height/Wt*Gr/Wt),ur===void 0&&(ur=Ce,It=wt,Ce=0,wt=0),jt!==void 0&&br===void 0&&(br=jt,Gr=Wt),jt===void 0&&br===void 0&&(br=$r.width,Gr=$r.height);for(var ir,Ii=this.ctx.transform.decompose(),Fn=ht(Ii.rotate.shx),ln=new Ne,An=(ln=(ln=(ln=ln.multiply(Ii.translate)).multiply(Ii.skew)).multiply(Ii.scale)).applyToRectangle(new De(ur-Ce*ni,It-wt*Mr,jt*cn,Wt*Dn)),rn=dr.call(this,An),Cn=[],ai=0;ai<rn.length;ai+=1)Cn.indexOf(rn[ai])===-1&&Cn.push(rn[ai]);if(Ur(Cn),this.autoPaging)for(var Li=Cn[0],He=Cn[Cn.length-1],c=Li;c<He+1;c++){this.pdf.setPage(c);var w=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],C=c===1?this.posY+this.margin[0]:this.margin[0],$=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Be=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],je=c===1?0:$+(c-2)*Be;if(this.ctx.clip_path.length!==0){var xt=this.path;ir=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pr(ir,this.posX+this.margin[3],-je+C+this.ctx.prevPageLastElemOffset),Rn.call(this,"fill",!0),this.path=xt}var bt=JSON.parse(JSON.stringify(An));bt=pr([bt],this.posX+this.margin[3],-je+C+this.ctx.prevPageLastElemOffset)[0];var Jt=(c>Li||c<He)&&tr.call(this);Jt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],w,Be,null).clip().discardPath()),this.pdf.addImage(ze,"JPEG",bt.x,bt.y,bt.w,bt.h,null,null,Fn),Jt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(ze,"JPEG",An.x,An.y,An.w,An.h,null,null,Fn)};var dr=function(ze,Ce,wt){var jt=[];Ce=Ce||this.pdf.internal.pageSize.width,wt=wt||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Wt=this.posY+this.ctx.prevPageLastElemOffset;switch(ze.type){default:case"mt":case"lt":jt.push(Math.floor((ze.y+Wt)/wt)+1);break;case"arc":jt.push(Math.floor((ze.y+Wt-ze.radius)/wt)+1),jt.push(Math.floor((ze.y+Wt+ze.radius)/wt)+1);break;case"qct":var ur=Ut(this.ctx.lastPoint.x,this.ctx.lastPoint.y,ze.x1,ze.y1,ze.x,ze.y);jt.push(Math.floor((ur.y+Wt)/wt)+1),jt.push(Math.floor((ur.y+ur.h+Wt)/wt)+1);break;case"bct":var It=$t(this.ctx.lastPoint.x,this.ctx.lastPoint.y,ze.x1,ze.y1,ze.x2,ze.y2,ze.x,ze.y);jt.push(Math.floor((It.y+Wt)/wt)+1),jt.push(Math.floor((It.y+It.h+Wt)/wt)+1);break;case"rect":jt.push(Math.floor((ze.y+Wt)/wt)+1),jt.push(Math.floor((ze.y+ze.h+Wt)/wt)+1)}for(var br=0;br<jt.length;br+=1)for(;this.pdf.internal.getNumberOfPages()<jt[br];)Qt.call(this);return jt},Qt=function(){var ze=this.fillStyle,Ce=this.strokeStyle,wt=this.font,jt=this.lineCap,Wt=this.lineWidth,ur=this.lineJoin;this.pdf.addPage(),this.fillStyle=ze,this.strokeStyle=Ce,this.font=wt,this.lineCap=jt,this.lineWidth=Wt,this.lineJoin=ur},pr=function(ze,Ce,wt){for(var jt=0;jt<ze.length;jt++)switch(ze[jt].type){case"bct":ze[jt].x2+=Ce,ze[jt].y2+=wt;case"qct":ze[jt].x1+=Ce,ze[jt].y1+=wt;case"mt":case"lt":case"arc":default:ze[jt].x+=Ce,ze[jt].y+=wt}return ze},Ur=function(ze){return ze.sort(function(Ce,wt){return Ce-wt})},sn=function(ze,Ce){for(var wt,jt,Wt=this.fillStyle,ur=this.strokeStyle,It=this.lineCap,br=this.lineWidth,Gr=Math.abs(br*this.ctx.transform.scaleX),$r=this.lineJoin,cn=JSON.parse(JSON.stringify(this.path)),Dn=JSON.parse(JSON.stringify(this.path)),ni=[],Mr=0;Mr<Dn.length;Mr++)if(Dn[Mr].x!==void 0)for(var ir=dr.call(this,Dn[Mr]),Ii=0;Ii<ir.length;Ii+=1)ni.indexOf(ir[Ii])===-1&&ni.push(ir[Ii]);for(var Fn=0;Fn<ni.length;Fn++)for(;this.pdf.internal.getNumberOfPages()<ni[Fn];)Qt.call(this);if(Ur(ni),this.autoPaging)for(var ln=ni[0],An=ni[ni.length-1],rn=ln;rn<An+1;rn++){this.pdf.setPage(rn),this.fillStyle=Wt,this.strokeStyle=ur,this.lineCap=It,this.lineWidth=Gr,this.lineJoin=$r;var Cn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ai=rn===1?this.posY+this.margin[0]:this.margin[0],Li=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],He=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],c=rn===1?0:Li+(rn-2)*He;if(this.ctx.clip_path.length!==0){var w=this.path;wt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pr(wt,this.posX+this.margin[3],-c+ai+this.ctx.prevPageLastElemOffset),Rn.call(this,ze,!0),this.path=w}if(jt=JSON.parse(JSON.stringify(cn)),this.path=pr(jt,this.posX+this.margin[3],-c+ai+this.ctx.prevPageLastElemOffset),Ce===!1||rn===0){var C=(rn>ln||rn<An)&&tr.call(this);C&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Cn,He,null).clip().discardPath()),Rn.call(this,ze,Ce),C&&this.pdf.restoreGraphicsState()}this.lineWidth=br}else this.lineWidth=Gr,Rn.call(this,ze,Ce),this.lineWidth=br;this.path=cn},Rn=function(ze,Ce){if((ze!=="stroke"||Ce||!cr.call(this))&&(ze==="stroke"||Ce||!Ye.call(this))){for(var wt,jt,Wt=[],ur=this.path,It=0;It<ur.length;It++){var br=ur[It];switch(br.type){case"begin":Wt.push({begin:!0});break;case"close":Wt.push({close:!0});break;case"mt":Wt.push({start:br,deltas:[],abs:[]});break;case"lt":var Gr=Wt.length;if(ur[It-1]&&!isNaN(ur[It-1].x)&&(wt=[br.x-ur[It-1].x,br.y-ur[It-1].y],Gr>0)){for(;Gr>=0;Gr--)if(Wt[Gr-1].close!==!0&&Wt[Gr-1].begin!==!0){Wt[Gr-1].deltas.push(wt),Wt[Gr-1].abs.push(br);break}}break;case"bct":wt=[br.x1-ur[It-1].x,br.y1-ur[It-1].y,br.x2-ur[It-1].x,br.y2-ur[It-1].y,br.x-ur[It-1].x,br.y-ur[It-1].y],Wt[Wt.length-1].deltas.push(wt);break;case"qct":var $r=ur[It-1].x+2/3*(br.x1-ur[It-1].x),cn=ur[It-1].y+2/3*(br.y1-ur[It-1].y),Dn=br.x+2/3*(br.x1-br.x),ni=br.y+2/3*(br.y1-br.y),Mr=br.x,ir=br.y;wt=[$r-ur[It-1].x,cn-ur[It-1].y,Dn-ur[It-1].x,ni-ur[It-1].y,Mr-ur[It-1].x,ir-ur[It-1].y],Wt[Wt.length-1].deltas.push(wt);break;case"arc":Wt.push({deltas:[],abs:[],arc:!0}),Array.isArray(Wt[Wt.length-1].abs)&&Wt[Wt.length-1].abs.push(br)}}jt=Ce?null:ze==="stroke"?"stroke":"fill";for(var Ii=!1,Fn=0;Fn<Wt.length;Fn++)if(Wt[Fn].arc)for(var ln=Wt[Fn].abs,An=0;An<ln.length;An++){var rn=ln[An];rn.type==="arc"?Br.call(this,rn.x,rn.y,rn.radius,rn.startAngle,rn.endAngle,rn.counterclockwise,void 0,Ce,!Ii):ye.call(this,rn.x,rn.y),Ii=!0}else if(Wt[Fn].close===!0)this.pdf.internal.out("h"),Ii=!1;else if(Wt[Fn].begin!==!0){var Cn=Wt[Fn].start.x,ai=Wt[Fn].start.y;Ee.call(this,Wt[Fn].deltas,Cn,ai),Ii=!0}jt&&bn.call(this,jt),Ce&&Pn.call(this)}},ci=function(ze){var Ce=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,wt=Ce*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return ze-wt;case"top":return ze+Ce-wt;case"hanging":return ze+Ce-2*wt;case"middle":return ze+Ce/2-wt;case"ideographic":return ze;case"alphabetic":default:return ze}},pn=function(ze){return ze+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};vt.prototype.createLinearGradient=function(){var ze=function(){};return ze.colorStops=[],ze.addColorStop=function(Ce,wt){this.colorStops.push([Ce,wt])},ze.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},ze.isCanvasGradient=!0,ze},vt.prototype.createPattern=function(){return this.createLinearGradient()},vt.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Br=function(ze,Ce,wt,jt,Wt,ur,It,br,Gr){for(var $r=st.call(this,wt,jt,Wt,ur),cn=0;cn<$r.length;cn++){var Dn=$r[cn];cn===0&&(Gr?er.call(this,Dn.x1+ze,Dn.y1+Ce):ye.call(this,Dn.x1+ze,Dn.y1+Ce)),et.call(this,ze,Ce,Dn.x2,Dn.y2,Dn.x3,Dn.y3,Dn.x4,Dn.y4)}br?Pn.call(this):bn.call(this,It)},bn=function(ze){switch(ze){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Pn=function(){this.pdf.clip(),this.pdf.discardPath()},er=function(ze,Ce){this.pdf.internal.out(y(ze)+" "+M(Ce)+" m")},nr=function(ze){var Ce;switch(ze.align){case"right":case"end":Ce="right";break;case"center":Ce="center";break;case"left":case"start":default:Ce="left"}var wt=this.pdf.getTextDimensions(ze.text),jt=ci.call(this,ze.y),Wt=pn.call(this,jt)-wt.h,ur=this.ctx.transform.applyToPoint(new ge(ze.x,jt)),It=this.ctx.transform.decompose(),br=new Ne;br=(br=(br=br.multiply(It.translate)).multiply(It.skew)).multiply(It.scale);for(var Gr,$r,cn,Dn=this.ctx.transform.applyToRectangle(new De(ze.x,jt,wt.w,wt.h)),ni=br.applyToRectangle(new De(ze.x,Wt,wt.w,wt.h)),Mr=dr.call(this,ni),ir=[],Ii=0;Ii<Mr.length;Ii+=1)ir.indexOf(Mr[Ii])===-1&&ir.push(Mr[Ii]);if(Ur(ir),this.autoPaging)for(var Fn=ir[0],ln=ir[ir.length-1],An=Fn;An<ln+1;An++){this.pdf.setPage(An);var rn=An===1?this.posY+this.margin[0]:this.margin[0],Cn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ai=this.pdf.internal.pageSize.height-this.margin[2],Li=ai-this.margin[0],He=this.pdf.internal.pageSize.width-this.margin[1],c=He-this.margin[3],w=An===1?0:Cn+(An-2)*Li;if(this.ctx.clip_path.length!==0){var C=this.path;Gr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=pr(Gr,this.posX+this.margin[3],-1*w+rn),Rn.call(this,"fill",!0),this.path=C}var $=pr([JSON.parse(JSON.stringify(ni))],this.posX+this.margin[3],-w+rn+this.ctx.prevPageLastElemOffset)[0];ze.scale>=.01&&($r=this.pdf.internal.getFontSize(),this.pdf.setFontSize($r*ze.scale),cn=this.lineWidth,this.lineWidth=cn*ze.scale);var Be=this.autoPaging!=="text";if(Be||$.y+$.h<=ai){if(Be||$.y>=rn&&$.x<=He){var je=Be?ze.text:this.pdf.splitTextToSize(ze.text,ze.maxWidth||He-$.x)[0],xt=pr([JSON.parse(JSON.stringify(Dn))],this.posX+this.margin[3],-w+rn+this.ctx.prevPageLastElemOffset)[0],bt=Be&&(An>Fn||An<ln)&&tr.call(this);bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],c,Li,null).clip().discardPath()),this.pdf.text(je,xt.x,xt.y,{angle:ze.angle,align:Ce,renderingMode:ze.renderingMode}),bt&&this.pdf.restoreGraphicsState()}}else $.y<ai&&(this.ctx.prevPageLastElemOffset+=ai-$.y);ze.scale>=.01&&(this.pdf.setFontSize($r),this.lineWidth=cn)}else ze.scale>=.01&&($r=this.pdf.internal.getFontSize(),this.pdf.setFontSize($r*ze.scale),cn=this.lineWidth,this.lineWidth=cn*ze.scale),this.pdf.text(ze.text,ur.x+this.posX,ur.y+this.posY,{angle:ze.angle,align:Ce,renderingMode:ze.renderingMode,maxWidth:ze.maxWidth}),ze.scale>=.01&&(this.pdf.setFontSize($r),this.lineWidth=cn)},ye=function(ze,Ce,wt,jt){wt=wt||0,jt=jt||0,this.pdf.internal.out(y(ze+wt)+" "+M(Ce+jt)+" l")},Ee=function(ze,Ce,wt){return this.pdf.lines(ze,Ce,wt,null,null)},et=function(ze,Ce,wt,jt,Wt,ur,It,br){this.pdf.internal.out([u(ne(wt+ze)),u(Z(jt+Ce)),u(ne(Wt+ze)),u(Z(ur+Ce)),u(ne(It+ze)),u(Z(br+Ce)),"c"].join(" "))},st=function(ze,Ce,wt,jt){for(var Wt=2*Math.PI,ur=Math.PI/2;Ce>wt;)Ce-=Wt;var It=Math.abs(wt-Ce);It<Wt&&jt&&(It=Wt-It);for(var br=[],Gr=jt?-1:1,$r=Ce;It>1e-5;){var cn=$r+Gr*Math.min(It,ur);br.push(gt.call(this,ze,$r,cn)),It-=Math.abs(cn-$r),$r=cn}return br},gt=function(ze,Ce,wt){var jt=(wt-Ce)/2,Wt=ze*Math.cos(jt),ur=ze*Math.sin(jt),It=Wt,br=-ur,Gr=It*It+br*br,$r=Gr+It*Wt+br*ur,cn=4/3*(Math.sqrt(2*Gr*$r)-$r)/(It*ur-br*Wt),Dn=It-cn*br,ni=br+cn*It,Mr=Dn,ir=-ni,Ii=jt+Ce,Fn=Math.cos(Ii),ln=Math.sin(Ii);return{x1:ze*Math.cos(Ce),y1:ze*Math.sin(Ce),x2:Dn*Fn-ni*ln,y2:Dn*ln+ni*Fn,x3:Mr*Fn-ir*ln,y3:Mr*ln+ir*Fn,x4:ze*Math.cos(wt),y4:ze*Math.sin(wt)}},ht=function(ze){return 180*ze/Math.PI},Ut=function(ze,Ce,wt,jt,Wt,ur){var It=ze+.5*(wt-ze),br=Ce+.5*(jt-Ce),Gr=Wt+.5*(wt-Wt),$r=ur+.5*(jt-ur),cn=Math.min(ze,Wt,It,Gr),Dn=Math.max(ze,Wt,It,Gr),ni=Math.min(Ce,ur,br,$r),Mr=Math.max(Ce,ur,br,$r);return new De(cn,ni,Dn-cn,Mr-ni)},$t=function(ze,Ce,wt,jt,Wt,ur,It,br){var Gr,$r,cn,Dn,ni,Mr,ir,Ii,Fn,ln,An,rn,Cn,ai,Li=wt-ze,He=jt-Ce,c=Wt-wt,w=ur-jt,C=It-Wt,$=br-ur;for($r=0;$r<41;$r++)Fn=(ir=(cn=ze+(Gr=$r/40)*Li)+Gr*((ni=wt+Gr*c)-cn))+Gr*(ni+Gr*(Wt+Gr*C-ni)-ir),ln=(Ii=(Dn=Ce+Gr*He)+Gr*((Mr=jt+Gr*w)-Dn))+Gr*(Mr+Gr*(ur+Gr*$-Mr)-Ii),$r==0?(An=Fn,rn=ln,Cn=Fn,ai=ln):(An=Math.min(An,Fn),rn=Math.min(rn,ln),Cn=Math.max(Cn,Fn),ai=Math.max(ai,ln));return new De(Math.round(An),Math.round(rn),Math.round(Cn-An),Math.round(ai-rn))},sr=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var ze,Ce,wt=(ze=this.ctx.lineDash,Ce=this.ctx.lineDashOffset,JSON.stringify({lineDash:ze,lineDashOffset:Ce}));this.prevLineDash!==wt&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=wt)}}})(Mi.API),function(b){var u=function(Z){var ge,De,Ne,tt,yt,vt,Pt,Ye,cr,tr;for(/[^\x00-\xFF]/.test(Z),De=[],Ne=0,tt=(Z+=ge="\0\0\0\0".slice(Z.length%4||4)).length;tt>Ne;Ne+=4)(yt=(Z.charCodeAt(Ne)<<24)+(Z.charCodeAt(Ne+1)<<16)+(Z.charCodeAt(Ne+2)<<8)+Z.charCodeAt(Ne+3))!==0?(vt=(yt=((yt=((yt=((yt=(yt-(tr=yt%85))/85)-(cr=yt%85))/85)-(Ye=yt%85))/85)-(Pt=yt%85))/85)%85,De.push(vt+33,Pt+33,Ye+33,cr+33,tr+33)):De.push(122);return function(dr,Qt){for(var pr=Qt;pr>0;pr--)dr.pop()}(De,ge.length),String.fromCharCode.apply(String,De)+"~>"},y=function(Z){var ge,De,Ne,tt,yt,vt=String,Pt="length",Ye=255,cr="charCodeAt",tr="slice",dr="replace";for(Z[tr](-2),Z=Z[tr](0,-2)[dr](/\s/g,"")[dr]("z","!!!!!"),Ne=[],tt=0,yt=(Z+=ge="uuuuu"[tr](Z[Pt]%5||5))[Pt];yt>tt;tt+=5)De=52200625*(Z[cr](tt)-33)+614125*(Z[cr](tt+1)-33)+7225*(Z[cr](tt+2)-33)+85*(Z[cr](tt+3)-33)+(Z[cr](tt+4)-33),Ne.push(Ye&De>>24,Ye&De>>16,Ye&De>>8,Ye&De);return function(Qt,pr){for(var Ur=pr;Ur>0;Ur--)Qt.pop()}(Ne,ge[Pt]),vt.fromCharCode.apply(vt,Ne)},M=function(Z){var ge=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Z=Z.replace(/\s/g,"")).indexOf(">")!==-1&&(Z=Z.substr(0,Z.indexOf(">"))),Z.length%2&&(Z+="0"),ge.test(Z)===!1)return"";for(var De="",Ne=0;Ne<Z.length;Ne+=2)De+=String.fromCharCode("0x"+(Z[Ne]+Z[Ne+1]));return De},ne=function(Z){for(var ge=new Uint8Array(Z.length),De=Z.length;De--;)ge[De]=Z.charCodeAt(De);return Z=(ge=Hn(ge)).reduce(function(Ne,tt){return Ne+String.fromCharCode(tt)},"")};b.processDataByFilters=function(Z,ge){var De=0,Ne=Z||"",tt=[];for(typeof(ge=ge||[])=="string"&&(ge=[ge]),De=0;De<ge.length;De+=1)switch(ge[De]){case"ASCII85Decode":case"/ASCII85Decode":Ne=y(Ne),tt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Ne=u(Ne),tt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Ne=M(Ne),tt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Ne=Ne.split("").map(function(yt){return("0"+yt.charCodeAt().toString(16)).slice(-2)}).join("")+">",tt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Ne=ne(Ne),tt.push("/FlateDecode");break;default:throw new Error('The filter: "'+ge[De]+'" is not implemented')}return{data:Ne,reverseChain:tt.reverse().join(" ")}}}(Mi.API),function(b){b.loadFile=function(u,y,M){return function(ne,Z,ge){Z=Z!==!1,ge=typeof ge=="function"?ge:function(){};var De=void 0;try{De=function(Ne,tt,yt){var vt=new XMLHttpRequest,Pt=0,Ye=function(cr){var tr=cr.length,dr=[],Qt=String.fromCharCode;for(Pt=0;Pt<tr;Pt+=1)dr.push(Qt(255&cr.charCodeAt(Pt)));return dr.join("")};if(vt.open("GET",Ne,!tt),vt.overrideMimeType("text/plain; charset=x-user-defined"),tt===!1&&(vt.onload=function(){vt.status===200?yt(Ye(this.responseText)):yt(void 0)}),vt.send(null),tt&&vt.status===200)return Ye(vt.responseText)}(ne,Z,ge)}catch(Ne){}return De}(u,y,M)},b.loadImageFile=b.loadFile}(Mi.API),function(b){function u(){return(gn.html2canvas?Promise.resolve(gn.html2canvas):Promise.resolve().then(g.t.bind(g,64270,23))).catch(function(ge){return Promise.reject(new Error("Could not load html2canvas: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}function y(){return(gn.DOMPurify?Promise.resolve(gn.DOMPurify):g.e(3985).then(g.t.bind(g,73985,23))).catch(function(ge){return Promise.reject(new Error("Could not load dompurify: "+ge))}).then(function(ge){return ge.default?ge.default:ge})}var M=function(ge){var De=(0,we.Z)(ge);return De==="undefined"?"undefined":De==="string"||ge instanceof String?"string":De==="number"||ge instanceof Number?"number":De==="function"||ge instanceof Function?"function":ge&&ge.constructor===Array?"array":ge&&ge.nodeType===1?"element":De==="object"?"object":"unknown"},ne=function(ge,De){var Ne=document.createElement(ge);for(var tt in De.className&&(Ne.className=De.className),De.innerHTML&&De.dompurify&&(Ne.innerHTML=De.dompurify.sanitize(De.innerHTML)),De.style)Ne.style[tt]=De.style[tt];return Ne},Z=function ge(De){var Ne=Object.assign(ge.convert(Promise.resolve()),JSON.parse(JSON.stringify(ge.template))),tt=ge.convert(Promise.resolve(),Ne);return tt=(tt=tt.setProgress(1,ge,1,[ge])).set(De)};(Z.prototype=Object.create(Promise.prototype)).constructor=Z,Z.convert=function(ge,De){return ge.__proto__=De||Z.prototype,ge},Z.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"}},Z.prototype.from=function(ge,De){return this.then(function(){switch(De=De||function(Ne){switch(M(Ne)){case"string":return"string";case"element":return Ne.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ge)){case"string":return this.then(y).then(function(Ne){return this.set({src:ne("div",{innerHTML:ge,dompurify:Ne})})});case"element":return this.set({src:ge});case"canvas":return this.set({canvas:ge});case"img":return this.set({img:ge});default:return this.error("Unknown source type.")}})},Z.prototype.to=function(ge){switch(ge){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.")}},Z.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 ge={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 Ne(tt,yt){for(var vt=tt.nodeType===3?document.createTextNode(tt.nodeValue):tt.cloneNode(!1),Pt=tt.firstChild;Pt;Pt=Pt.nextSibling)yt!==!0&&Pt.nodeType===1&&Pt.nodeName==="SCRIPT"||vt.appendChild(Ne(Pt,yt));return tt.nodeType===1&&(tt.nodeName==="CANVAS"?(vt.width=tt.width,vt.height=tt.height,vt.getContext("2d").drawImage(tt,0,0)):tt.nodeName!=="TEXTAREA"&&tt.nodeName!=="SELECT"||(vt.value=tt.value),vt.addEventListener("load",function(){vt.scrollTop=tt.scrollTop,vt.scrollLeft=tt.scrollLeft},!0)),vt}(this.prop.src,this.opt.html2canvas.javascriptEnabled);De.tagName==="BODY"&&(ge.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=ne("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=ne("div",{className:"html2pdf__container",style:ge}),this.prop.container.appendChild(De),this.prop.container.firstChild.appendChild(ne("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"})},Z.prototype.toCanvas=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(u).then(function(De){var Ne=Object.assign({},this.opt.html2canvas);return delete Ne.onrendered,De(this.prop.container,Ne)}).then(function(De){(this.opt.html2canvas.onrendered||function(){})(De),this.prop.canvas=De,document.body.removeChild(this.prop.overlay)})},Z.prototype.toContext2d=function(){var ge=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ge).then(u).then(function(De){var Ne=this.opt.jsPDF,tt=this.opt.fontFaces,yt=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,vt=Object.assign({async:!0,allowTaint:!0,scale:yt,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 vt.onrendered,Ne.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Ne.context2d.posX=this.opt.x,Ne.context2d.posY=this.opt.y,Ne.context2d.margin=this.opt.margin,Ne.context2d.fontFaces=tt,tt)for(var Pt=0;Pt<tt.length;++Pt){var Ye=tt[Pt],cr=Ye.src.find(function(tr){return tr.format==="truetype"});cr&&Ne.addFont(cr.url,Ye.ref.name,Ye.ref.style)}return vt.windowHeight=vt.windowHeight||0,vt.windowHeight=vt.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):vt.windowHeight,Ne.context2d.save(!0),De(this.prop.container,vt)}).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)})},Z.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var ge=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ge})},Z.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},Z.prototype.output=function(ge,De,Ne){return(Ne=Ne||"pdf").toLowerCase()==="img"||Ne.toLowerCase()==="image"?this.outputImg(ge,De):this.outputPdf(ge,De)},Z.prototype.outputPdf=function(ge,De){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ge,De)})},Z.prototype.outputImg=function(ge){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(ge){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 "'+ge+'" is not supported.'}})},Z.prototype.save=function(ge){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(ge?{filename:ge}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Z.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},Z.prototype.set=function(ge){if(M(ge)!=="object")return this;var De=Object.keys(ge||{}).map(function(Ne){if(Ne in Z.template.prop)return function(){this.prop[Ne]=ge[Ne]};switch(Ne){case"margin":return this.setMargin.bind(this,ge.margin);case"jsPDF":return function(){return this.opt.jsPDF=ge.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ge.pageSize);default:return function(){this.opt[Ne]=ge[Ne]}}},this);return this.then(function(){return this.thenList(De)})},Z.prototype.get=function(ge,De){return this.then(function(){var Ne=ge in Z.template.prop?this.prop[ge]:this.opt[ge];return De?De(Ne):Ne})},Z.prototype.setMargin=function(ge){return this.then(function(){switch(M(ge)){case"number":ge=[ge,ge,ge,ge];case"array":if(ge.length===2&&(ge=[ge[0],ge[1],ge[0],ge[1]]),ge.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ge}).then(this.setPageSize)},Z.prototype.setPageSize=function(ge){function De(Ne,tt){return Math.floor(Ne*tt/72*96)}return this.then(function(){(ge=ge||Mi.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(ge.inner={width:ge.width-this.opt.margin[1]-this.opt.margin[3],height:ge.height-this.opt.margin[0]-this.opt.margin[2]},ge.inner.px={width:De(ge.inner.width,ge.k),height:De(ge.inner.height,ge.k)},ge.inner.ratio=ge.inner.height/ge.inner.width),this.prop.pageSize=ge})},Z.prototype.setProgress=function(ge,De,Ne,tt){return ge!=null&&(this.progress.val=ge),De!=null&&(this.progress.state=De),Ne!=null&&(this.progress.n=Ne),tt!=null&&(this.progress.stack=tt),this.progress.ratio=this.progress.val/this.progress.state,this},Z.prototype.updateProgress=function(ge,De,Ne,tt){return this.setProgress(ge?this.progress.val+ge:null,De||null,Ne?this.progress.n+Ne:null,tt?this.progress.stack.concat(tt):null)},Z.prototype.then=function(ge,De){var Ne=this;return this.thenCore(ge,De,function(tt,yt){return Ne.updateProgress(null,null,1,[tt]),Promise.prototype.then.call(this,function(vt){return Ne.updateProgress(null,tt),vt}).then(tt,yt).then(function(vt){return Ne.updateProgress(1),vt})})},Z.prototype.thenCore=function(ge,De,Ne){Ne=Ne||Promise.prototype.then,ge&&(ge=ge.bind(this)),De&&(De=De.bind(this));var tt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:Z.convert(Object.assign({},this),Promise.prototype),yt=Ne.call(tt,ge,De);return Z.convert(yt,this.__proto__)},Z.prototype.thenExternal=function(ge,De){return Promise.prototype.then.call(this,ge,De)},Z.prototype.thenList=function(ge){var De=this;return ge.forEach(function(Ne){De=De.thenCore(Ne)}),De},Z.prototype.catch=function(ge){ge&&(ge=ge.bind(this));var De=Promise.prototype.catch.call(this,ge);return Z.convert(De,this)},Z.prototype.catchExternal=function(ge){return Promise.prototype.catch.call(this,ge)},Z.prototype.error=function(ge){return this.then(function(){throw new Error(ge)})},Z.prototype.using=Z.prototype.set,Z.prototype.saveAs=Z.prototype.save,Z.prototype.export=Z.prototype.output,Z.prototype.run=Z.prototype.then,Mi.getPageSize=function(ge,De,Ne){if((0,we.Z)(ge)==="object"){var tt=ge;ge=tt.orientation,De=tt.unit||De,Ne=tt.format||Ne}De=De||"mm",Ne=Ne||"a4",ge=(""+(ge||"P")).toLowerCase();var yt,vt=(""+Ne).toLowerCase(),Pt={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":yt=1;break;case"mm":yt=72/25.4;break;case"cm":yt=72/2.54;break;case"in":yt=72;break;case"px":yt=.75;break;case"pc":case"em":yt=12;break;case"ex":yt=6;break;default:throw"Invalid unit: "+De}var Ye,cr=0,tr=0;if(Pt.hasOwnProperty(vt))cr=Pt[vt][1]/yt,tr=Pt[vt][0]/yt;else try{cr=Ne[1],tr=Ne[0]}catch(dr){throw new Error("Invalid format: "+Ne)}if(ge==="p"||ge==="portrait")ge="p",tr>cr&&(Ye=tr,tr=cr,cr=Ye);else{if(ge!=="l"&&ge!=="landscape")throw"Invalid orientation: "+ge;ge="l",cr>tr&&(Ye=tr,tr=cr,cr=Ye)}return{width:tr,height:cr,unit:De,k:yt,orientation:ge}},b.html=function(ge,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 Ne=new Z(De);return De.worker?Ne:Ne.from(ge).doCallback()}}(Mi.API),Mi.API.addJS=function(b){return Po=b,this.internal.events.subscribe("postPutResources",function(){Ys=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Ys+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),ao=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Po+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Ys!==void 0&&ao!==void 0&&this.internal.out("/Names <</JavaScript "+Ys+" 0 R>>")}),this},function(b){var u;b.events.push(["postPutResources",function(){var y=this,M=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var ne=y.outline.render().split(/\r\n/),Z=0;Z<ne.length;Z++){var ge=ne[Z],De=M.exec(ge);if(De!=null){var Ne=De[1];y.internal.newObjectDeferredBegin(Ne,!1)}y.internal.write(ge)}if(this.outline.createNamedDestinations){var tt=this.internal.pages.length,yt=[];for(Z=0;Z<tt;Z++){var vt=y.internal.newObject();yt.push(vt);var Pt=y.internal.getPageInfo(Z+1);y.internal.write("<< /D["+Pt.objId+" 0 R /XYZ null null null]>> endobj")}var Ye=y.internal.newObject();for(y.internal.write("<< /Names [ "),Z=0;Z<yt.length;Z++)y.internal.write("(page_"+(Z+1)+")"+yt[Z]+" 0 R");y.internal.write(" ] >>","endobj"),u=y.internal.newObject(),y.internal.write("<< /Dests "+Ye+" 0 R"),y.internal.write(">>","endobj")}}]),b.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 "+u+" 0 R"))}]),b.events.push(["initialized",function(){var y=this;y.outline={createNamedDestinations:!1,root:{children:[]}},y.outline.add=function(M,ne,Z){var ge={title:ne,options:Z,children:[]};return M==null&&(M=this.root),M.children.push(ge),ge},y.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=y,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},y.outline.genIds_r=function(M){M.id=y.internal.newObjectDeferred();for(var ne=0;ne<M.children.length;ne++)this.genIds_r(M.children[ne])},y.outline.renderRoot=function(M){this.objStart(M),this.line("/Type /Outlines"),M.children.length>0&&(this.line("/First "+this.makeRef(M.children[0])),this.line("/Last "+this.makeRef(M.children[M.children.length-1]))),this.line("/Count "+this.count_r({count:0},M)),this.objEnd()},y.outline.renderItems=function(M){for(var ne=this.ctx.pdf.internal.getVerticalCoordinateString,Z=0;Z<M.children.length;Z++){var ge=M.children[Z];this.objStart(ge),this.line("/Title "+this.makeString(ge.title)),this.line("/Parent "+this.makeRef(M)),Z>0&&this.line("/Prev "+this.makeRef(M.children[Z-1])),Z<M.children.length-1&&this.line("/Next "+this.makeRef(M.children[Z+1])),ge.children.length>0&&(this.line("/First "+this.makeRef(ge.children[0])),this.line("/Last "+this.makeRef(ge.children[ge.children.length-1])));var De=this.count=this.count_r({count:0},ge);if(De>0&&this.line("/Count "+De),ge.options&&ge.options.pageNumber){var Ne=y.internal.getPageInfo(ge.options.pageNumber);this.line("/Dest ["+Ne.objId+" 0 R /XYZ 0 "+ne(0)+" 0]")}this.objEnd()}for(var tt=0;tt<M.children.length;tt++)this.renderItems(M.children[tt])},y.outline.line=function(M){this.ctx.val+=M+`\r
|
|
|
`},y.outline.makeRef=function(M){return M.id+" 0 R"},y.outline.makeString=function(M){return"("+y.internal.pdfEscape(M)+")"},y.outline.objStart=function(M){this.ctx.val+=`\r
|
|
|
`+M.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},y.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},y.outline.count_r=function(M,ne){for(var Z=0;Z<ne.children.length;Z++)M.count++,this.count_r(M,ne.children[Z]);return M.count}}])}(Mi.API),function(b){var u=[192,193,194,195,196,197,198,199];b.processJPEG=function(y,M,ne,Z,ge,De){var Ne,tt=this.decode.DCT_DECODE,yt=null;if(typeof y=="string"||this.__addimage__.isArrayBuffer(y)||this.__addimage__.isArrayBufferView(y)){switch(y=ge||y,y=this.__addimage__.isArrayBuffer(y)?new Uint8Array(y):y,(Ne=function(vt){for(var Pt,Ye=256*vt.charCodeAt(4)+vt.charCodeAt(5),cr=vt.length,tr={width:0,height:0,numcomponents:1},dr=4;dr<cr;dr+=2){if(dr+=Ye,u.indexOf(vt.charCodeAt(dr+1))!==-1){Pt=256*vt.charCodeAt(dr+5)+vt.charCodeAt(dr+6),tr={width:256*vt.charCodeAt(dr+7)+vt.charCodeAt(dr+8),height:Pt,numcomponents:vt.charCodeAt(dr+9)};break}Ye=256*vt.charCodeAt(dr+2)+vt.charCodeAt(dr+3)}return tr}(y=this.__addimage__.isArrayBufferView(y)?this.__addimage__.arrayBufferToBinaryString(y):y)).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}yt={data:y,width:Ne.width,height:Ne.height,colorSpace:De,bitsPerComponent:8,filter:tt,index:M,alias:ne}}return yt}}(Mi.API);var Ya,bl,so,yo,Zl,wl=function(){var b,u,y;function M(Z){var ge,De,Ne,tt,yt,vt,Pt,Ye,cr,tr,dr,Qt,pr,Ur;for(this.data=Z,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},vt=null;;){switch(ge=this.readUInt32(),cr=function(){var sn,Rn;for(Rn=[],sn=0;sn<4;++sn)Rn.push(String.fromCharCode(this.data[this.pos++]));return Rn}.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(ge);break;case"fcTL":vt&&this.animation.frames.push(vt),this.pos+=4,vt={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},yt=this.readUInt16(),tt=this.readUInt16()||100,vt.delay=1e3*yt/tt,vt.disposeOp=this.data[this.pos++],vt.blendOp=this.data[this.pos++],vt.data=[];break;case"IDAT":case"fdAT":for(cr==="fdAT"&&(this.pos+=4,ge-=4),Z=(vt!=null?vt.data:void 0)||this.imgData,Qt=0;0<=ge?Qt<ge:Qt>ge;0<=ge?++Qt:--Qt)Z.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(Ne=this.palette.length/3,this.transparency.indexed=this.read(ge),this.transparency.indexed.length>Ne)throw new Error("More transparent colors than palette size");if((tr=Ne-this.transparency.indexed.length)>0)for(pr=0;0<=tr?pr<tr:pr>tr;0<=tr?++pr:--pr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(ge)[0];break;case 2:this.transparency.rgb=this.read(ge)}break;case"tEXt":Pt=(dr=this.read(ge)).indexOf(0),Ye=String.fromCharCode.apply(String,dr.slice(0,Pt)),this.text[Ye]=String.fromCharCode.apply(String,dr.slice(Pt+1));break;case"IEND":return vt&&this.animation.frames.push(vt),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(Ur=this.colorType)===4||Ur===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+=ge}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}M.prototype.read=function(Z){var ge,De;for(De=[],ge=0;0<=Z?ge<Z:ge>Z;0<=Z?++ge:--ge)De.push(this.data[this.pos++]);return De},M.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},M.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},M.prototype.decodePixels=function(Z){var ge=this.pixelBitlength/8,De=new Uint8Array(this.width*this.height*ge),Ne=0,tt=this;if(Z==null&&(Z=this.imgData),Z.length===0)return new Uint8Array(0);function yt(vt,Pt,Ye,cr){var tr,dr,Qt,pr,Ur,sn,Rn,ci,pn,Br,bn,Pn,er,nr,ye,Ee,et,st,gt,ht,Ut,$t=Math.ceil((tt.width-vt)/Ye),sr=Math.ceil((tt.height-Pt)/cr),ze=tt.width==$t&&tt.height==sr;for(nr=ge*$t,Pn=ze?De:new Uint8Array(nr*sr),sn=Z.length,er=0,dr=0;er<sr&&Ne<sn;){switch(Z[Ne++]){case 0:for(pr=et=0;et<nr;pr=et+=1)Pn[dr++]=Z[Ne++];break;case 1:for(pr=st=0;st<nr;pr=st+=1)tr=Z[Ne++],Ur=pr<ge?0:Pn[dr-ge],Pn[dr++]=(tr+Ur)%256;break;case 2:for(pr=gt=0;gt<nr;pr=gt+=1)tr=Z[Ne++],Qt=(pr-pr%ge)/ge,ye=er&&Pn[(er-1)*nr+Qt*ge+pr%ge],Pn[dr++]=(ye+tr)%256;break;case 3:for(pr=ht=0;ht<nr;pr=ht+=1)tr=Z[Ne++],Qt=(pr-pr%ge)/ge,Ur=pr<ge?0:Pn[dr-ge],ye=er&&Pn[(er-1)*nr+Qt*ge+pr%ge],Pn[dr++]=(tr+Math.floor((Ur+ye)/2))%256;break;case 4:for(pr=Ut=0;Ut<nr;pr=Ut+=1)tr=Z[Ne++],Qt=(pr-pr%ge)/ge,Ur=pr<ge?0:Pn[dr-ge],er===0?ye=Ee=0:(ye=Pn[(er-1)*nr+Qt*ge+pr%ge],Ee=Qt&&Pn[(er-1)*nr+(Qt-1)*ge+pr%ge]),Rn=Ur+ye-Ee,ci=Math.abs(Rn-Ur),Br=Math.abs(Rn-ye),bn=Math.abs(Rn-Ee),pn=ci<=Br&&ci<=bn?Ur:Br<=bn?ye:Ee,Pn[dr++]=(tr+pn)%256;break;default:throw new Error("Invalid filter algorithm: "+Z[Ne-1])}if(!ze){var Ce=((Pt+er*cr)*tt.width+vt)*ge,wt=er*nr;for(pr=0;pr<$t;pr+=1){for(var jt=0;jt<ge;jt+=1)De[Ce++]=Pn[wt++];Ce+=(Ye-1)*ge}}er++}}return Z=Nt(Z),tt.interlaceMethod==1?(yt(0,0,8,8),yt(4,0,8,8),yt(0,4,4,8),yt(2,0,4,4),yt(0,2,2,4),yt(1,0,2,2),yt(0,1,1,2)):yt(0,0,1,1),De},M.prototype.decodePalette=function(){var Z,ge,De,Ne,tt,yt,vt,Pt,Ye;for(De=this.palette,yt=this.transparency.indexed||[],tt=new Uint8Array((yt.length||0)+De.length),Ne=0,Z=0,ge=vt=0,Pt=De.length;vt<Pt;ge=vt+=3)tt[Ne++]=De[ge],tt[Ne++]=De[ge+1],tt[Ne++]=De[ge+2],tt[Ne++]=(Ye=yt[Z++])!=null?Ye:255;return tt},M.prototype.copyToImageData=function(Z,ge){var De,Ne,tt,yt,vt,Pt,Ye,cr,tr,dr,Qt;if(Ne=this.colors,tr=null,De=this.hasAlphaChannel,this.palette.length&&(tr=(Qt=this._decodedPalette)!=null?Qt:this._decodedPalette=this.decodePalette(),Ne=4,De=!0),cr=(tt=Z.data||Z).length,vt=tr||ge,yt=Pt=0,Ne===1)for(;yt<cr;)Ye=tr?4*ge[yt/4]:Pt,dr=vt[Ye++],tt[yt++]=dr,tt[yt++]=dr,tt[yt++]=dr,tt[yt++]=De?vt[Ye++]:255,Pt=Ye;else for(;yt<cr;)Ye=tr?4*ge[yt/4]:Pt,tt[yt++]=vt[Ye++],tt[yt++]=vt[Ye++],tt[yt++]=vt[Ye++],tt[yt++]=De?vt[Ye++]:255,Pt=Ye},M.prototype.decode=function(){var Z;return Z=new Uint8Array(this.width*this.height*4),this.copyToImageData(Z,this.decodePixels()),Z};var ne=function(){if(Object.prototype.toString.call(gn)==="[object Window]"){try{u=gn.document.createElement("canvas"),y=u.getContext("2d")}catch(Z){return!1}return!0}return!1};return ne(),b=function(Z){var ge;if(ne()===!0)return y.width=Z.width,y.height=Z.height,y.clearRect(0,0,Z.width,Z.height),y.putImageData(Z,0,0),(ge=new Image).src=u.toDataURL(),ge;throw new Error("This method requires a Browser with Canvas-capability.")},M.prototype.decodeFrames=function(Z){var ge,De,Ne,tt,yt,vt,Pt,Ye;if(this.animation){for(Ye=[],De=yt=0,vt=(Pt=this.animation.frames).length;yt<vt;De=++yt)ge=Pt[De],Ne=Z.createImageData(ge.width,ge.height),tt=this.decodePixels(new Uint8Array(ge.data)),this.copyToImageData(Ne,tt),ge.imageData=Ne,Ye.push(ge.image=b(Ne));return Ye}},M.prototype.renderFrame=function(Z,ge){var De,Ne,tt;return De=(Ne=this.animation.frames)[ge],tt=Ne[ge-1],ge===0&&Z.clearRect(0,0,this.width,this.height),(tt!=null?tt.disposeOp:void 0)===1?Z.clearRect(tt.xOffset,tt.yOffset,tt.width,tt.height):(tt!=null?tt.disposeOp:void 0)===2&&Z.putImageData(tt.imageData,tt.xOffset,tt.yOffset),De.blendOp===0&&Z.clearRect(De.xOffset,De.yOffset,De.width,De.height),Z.drawImage(De.image,De.xOffset,De.yOffset)},M.prototype.animate=function(Z){var ge,De,Ne,tt,yt,vt,Pt=this;return De=0,vt=this.animation,tt=vt.numFrames,Ne=vt.frames,yt=vt.numPlays,(ge=function(){var Ye,cr;if(Ye=De++%tt,cr=Ne[Ye],Pt.renderFrame(Z,Ye),tt>1&&De/tt<yt)return Pt.animation._timeout=setTimeout(ge,cr.delay)})()},M.prototype.stopAnimation=function(){var Z;return clearTimeout((Z=this.animation)!=null?Z._timeout:void 0)},M.prototype.render=function(Z){var ge,De;return Z._png&&Z._png.stopAnimation(),Z._png=this,Z.width=this.width,Z.height=this.height,ge=Z.getContext("2d"),this.animation?(this.decodeFrames(ge),this.animate(ge)):(De=ge.createImageData(this.width,this.height),this.copyToImageData(De,this.decodePixels()),ge.putImageData(De,0,0))},M}();function fl(b){var u=0;if(b[u++]!==71||b[u++]!==73||b[u++]!==70||b[u++]!==56||(b[u++]+1&253)!=56||b[u++]!==97)throw new Error("Invalid GIF 87a/89a header.");var y=b[u++]|b[u++]<<8,M=b[u++]|b[u++]<<8,ne=b[u++],Z=ne>>7,ge=1<<(7&ne)+1;b[u++],b[u++];var De=null,Ne=null;Z&&(De=u,Ne=ge,u+=3*ge);var tt=!0,yt=[],vt=0,Pt=null,Ye=0,cr=null;for(this.width=y,this.height=M;tt&&u<b.length;)switch(b[u++]){case 33:switch(b[u++]){case 255:if(b[u]!==11||b[u+1]==78&&b[u+2]==69&&b[u+3]==84&&b[u+4]==83&&b[u+5]==67&&b[u+6]==65&&b[u+7]==80&&b[u+8]==69&&b[u+9]==50&&b[u+10]==46&&b[u+11]==48&&b[u+12]==3&&b[u+13]==1&&b[u+16]==0)u+=14,cr=b[u++]|b[u++]<<8,u++;else for(u+=12;;){if(!((er=b[u++])>=0))throw Error("Invalid block size");if(er===0)break;u+=er}break;case 249:if(b[u++]!==4||b[u+4]!==0)throw new Error("Invalid graphics extension block.");var tr=b[u++];vt=b[u++]|b[u++]<<8,Pt=b[u++],!(1&tr)&&(Pt=null),Ye=tr>>2&7,u++;break;case 254:for(;;){if(!((er=b[u++])>=0))throw Error("Invalid block size");if(er===0)break;u+=er}break;default:throw new Error("Unknown graphic control label: 0x"+b[u-1].toString(16))}break;case 44:var dr=b[u++]|b[u++]<<8,Qt=b[u++]|b[u++]<<8,pr=b[u++]|b[u++]<<8,Ur=b[u++]|b[u++]<<8,sn=b[u++],Rn=sn>>6&1,ci=1<<(7&sn)+1,pn=De,Br=Ne,bn=!1;sn>>7&&(bn=!0,pn=u,Br=ci,u+=3*ci);var Pn=u;for(u++;;){var er;if(!((er=b[u++])>=0))throw Error("Invalid block size");if(er===0)break;u+=er}yt.push({x:dr,y:Qt,width:pr,height:Ur,has_local_palette:bn,palette_offset:pn,palette_size:Br,data_offset:Pn,data_length:u-Pn,transparent_index:Pt,interlaced:!!Rn,delay:vt,disposal:Ye});break;case 59:tt=!1;break;default:throw new Error("Unknown gif block: 0x"+b[u-1].toString(16))}this.numFrames=function(){return yt.length},this.loopCount=function(){return cr},this.frameInfo=function(nr){if(nr<0||nr>=yt.length)throw new Error("Frame index out of range.");return yt[nr]},this.decodeAndBlitFrameBGRA=function(nr,ye){var Ee=this.frameInfo(nr),et=Ee.width*Ee.height,st=new Uint8Array(et);Ll(b,Ee.data_offset,st,et);var gt=Ee.palette_offset,ht=Ee.transparent_index;ht===null&&(ht=256);var Ut=Ee.width,$t=y-Ut,sr=Ut,ze=4*(Ee.y*y+Ee.x),Ce=4*((Ee.y+Ee.height)*y+Ee.x),wt=ze,jt=4*$t;Ee.interlaced===!0&&(jt+=4*y*7);for(var Wt=8,ur=0,It=st.length;ur<It;++ur){var br=st[ur];if(sr===0&&(sr=Ut,(wt+=jt)>=Ce&&(jt=4*$t+4*y*(Wt-1),wt=ze+(Ut+$t)*(Wt<<1),Wt>>=1)),br===ht)wt+=4;else{var Gr=b[gt+3*br],$r=b[gt+3*br+1],cn=b[gt+3*br+2];ye[wt++]=cn,ye[wt++]=$r,ye[wt++]=Gr,ye[wt++]=255}--sr}},this.decodeAndBlitFrameRGBA=function(nr,ye){var Ee=this.frameInfo(nr),et=Ee.width*Ee.height,st=new Uint8Array(et);Ll(b,Ee.data_offset,st,et);var gt=Ee.palette_offset,ht=Ee.transparent_index;ht===null&&(ht=256);var Ut=Ee.width,$t=y-Ut,sr=Ut,ze=4*(Ee.y*y+Ee.x),Ce=4*((Ee.y+Ee.height)*y+Ee.x),wt=ze,jt=4*$t;Ee.interlaced===!0&&(jt+=4*y*7);for(var Wt=8,ur=0,It=st.length;ur<It;++ur){var br=st[ur];if(sr===0&&(sr=Ut,(wt+=jt)>=Ce&&(jt=4*$t+4*y*(Wt-1),wt=ze+(Ut+$t)*(Wt<<1),Wt>>=1)),br===ht)wt+=4;else{var Gr=b[gt+3*br],$r=b[gt+3*br+1],cn=b[gt+3*br+2];ye[wt++]=Gr,ye[wt++]=$r,ye[wt++]=cn,ye[wt++]=255}--sr}}}function Ll(b,u,y,M){for(var ne=b[u++],Z=1<<ne,ge=Z+1,De=ge+1,Ne=ne+1,tt=(1<<Ne)-1,yt=0,vt=0,Pt=0,Ye=b[u++],cr=new Int32Array(4096),tr=null;;){for(;yt<16&&Ye!==0;)vt|=b[u++]<<yt,yt+=8,Ye===1?Ye=b[u++]:--Ye;if(yt<Ne)break;var dr=vt&tt;if(vt>>=Ne,yt-=Ne,dr!==Z){if(dr===ge)break;for(var Qt=dr<De?dr:tr,pr=0,Ur=Qt;Ur>Z;)Ur=cr[Ur]>>8,++pr;var sn=Ur;if(Pt+pr+(Qt!==dr?1:0)>M)return void ii.log("Warning, gif stream longer than expected.");y[Pt++]=sn;var Rn=Pt+=pr;for(Qt!==dr&&(y[Pt++]=sn),Ur=Qt;pr--;)Ur=cr[Ur],y[--Rn]=255&Ur,Ur>>=8;tr!==null&&De<4096&&(cr[De++]=tr<<8|sn,De>=tt+1&&Ne<12&&(++Ne,tt=tt<<1|1)),tr=dr}else De=ge+1,tt=(1<<(Ne=ne+1))-1,tr=null}return Pt!==M&&ii.log("Warning, gif stream shorter than expected."),y}function xl(b){var u,y,M,ne,Z,ge=Math.floor,De=new Array(64),Ne=new Array(64),tt=new Array(64),yt=new Array(64),vt=new Array(65535),Pt=new Array(65535),Ye=new Array(64),cr=new Array(64),tr=[],dr=0,Qt=7,pr=new Array(64),Ur=new Array(64),sn=new Array(64),Rn=new Array(256),ci=new Array(2048),pn=[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],bn=[0,1,2,3,4,5,6,7,8,9,10,11],Pn=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],er=[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],nr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],ye=[0,1,2,3,4,5,6,7,8,9,10,11],Ee=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],et=[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 st(ze,Ce){for(var wt=0,jt=0,Wt=new Array,ur=1;ur<=16;ur++){for(var It=1;It<=ze[ur];It++)Wt[Ce[jt]]=[],Wt[Ce[jt]][0]=wt,Wt[Ce[jt]][1]=ur,jt++,wt++;wt*=2}return Wt}function gt(ze){for(var Ce=ze[0],wt=ze[1]-1;wt>=0;)Ce&1<<wt&&(dr|=1<<Qt),wt--,--Qt<0&&(dr==255?(ht(255),ht(0)):ht(dr),Qt=7,dr=0)}function ht(ze){tr.push(ze)}function Ut(ze){ht(ze>>8&255),ht(255&ze)}function $t(ze,Ce,wt,jt,Wt){for(var ur,It=Wt[0],br=Wt[240],Gr=function(ln,An){var rn,Cn,ai,Li,He,c,w,C,$,Be,je=0;for($=0;$<8;++$){rn=ln[je],Cn=ln[je+1],ai=ln[je+2],Li=ln[je+3],He=ln[je+4],c=ln[je+5],w=ln[je+6];var xt=rn+(C=ln[je+7]),bt=rn-C,Jt=Cn+w,Ar=Cn-w,xr=ai+c,nn=ai-c,xn=Li+He,Xr=Li-He,dn=xt+xn,kn=xt-xn,Zn=Jt+xr,bi=Jt-xr;ln[je]=dn+Zn,ln[je+4]=dn-Zn;var En=.707106781*(bi+kn);ln[je+2]=kn+En,ln[je+6]=kn-En;var pi=.382683433*((dn=Xr+nn)-(bi=Ar+bt)),Ji=.5411961*dn+pi,Ki=1.306562965*bi+pi,Sa=.707106781*(Zn=nn+Ar),Ia=bt+Sa,Xi=bt-Sa;ln[je+5]=Xi+Ji,ln[je+3]=Xi-Ji,ln[je+1]=Ia+Ki,ln[je+7]=Ia-Ki,je+=8}for(je=0,$=0;$<8;++$){rn=ln[je],Cn=ln[je+8],ai=ln[je+16],Li=ln[je+24],He=ln[je+32],c=ln[je+40],w=ln[je+48];var Ta=rn+(C=ln[je+56]),Ba=rn-C,si=Cn+w,Ha=Cn-w,os=ai+c,sa=ai-c,ha=Li+He,xa=Li-He,ja=Ta+ha,ls=Ta-ha,da=si+os,Is=si-os;ln[je]=ja+da,ln[je+32]=ja-da;var bs=.707106781*(Is+ls);ln[je+16]=ls+bs,ln[je+48]=ls-bs;var Hs=.382683433*((ja=xa+sa)-(Is=Ha+Ba)),Zs=.5411961*ja+Hs,Xs=1.306562965*Is+Hs,Wo=.707106781*(da=sa+Ha),$o=Ba+Wo,ho=Ba-Wo;ln[je+40]=ho+Zs,ln[je+24]=ho-Zs,ln[je+8]=$o+Xs,ln[je+56]=$o-Xs,je++}for($=0;$<64;++$)Be=ln[$]*An[$],Ye[$]=Be>0?Be+.5|0:Be-.5|0;return Ye}(ze,Ce),$r=0;$r<64;++$r)cr[pn[$r]]=Gr[$r];var cn=cr[0]-wt;wt=cr[0],cn==0?gt(jt[0]):(gt(jt[Pt[ur=32767+cn]]),gt(vt[ur]));for(var Dn=63;Dn>0&&cr[Dn]==0;)Dn--;if(Dn==0)return gt(It),wt;for(var ni,Mr=1;Mr<=Dn;){for(var ir=Mr;cr[Mr]==0&&Mr<=Dn;)++Mr;var Ii=Mr-ir;if(Ii>=16){ni=Ii>>4;for(var Fn=1;Fn<=ni;++Fn)gt(br);Ii&=15}ur=32767+cr[Mr],gt(Wt[(Ii<<4)+Pt[ur]]),gt(vt[ur]),Mr++}return Dn!=63&>(It),wt}function sr(ze){ze=Math.min(Math.max(ze,1),100),Z!=ze&&(function(Ce){for(var wt=[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],jt=0;jt<64;jt++){var Wt=ge((wt[jt]*Ce+50)/100);Wt=Math.min(Math.max(Wt,1),255),De[pn[jt]]=Wt}for(var ur=[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],It=0;It<64;It++){var br=ge((ur[It]*Ce+50)/100);br=Math.min(Math.max(br,1),255),Ne[pn[It]]=br}for(var Gr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],$r=0,cn=0;cn<8;cn++)for(var Dn=0;Dn<8;Dn++)tt[$r]=1/(De[pn[$r]]*Gr[cn]*Gr[Dn]*8),yt[$r]=1/(Ne[pn[$r]]*Gr[cn]*Gr[Dn]*8),$r++}(ze<50?Math.floor(5e3/ze):Math.floor(200-2*ze)),Z=ze)}this.encode=function(ze,Ce){Ce&&sr(Ce),tr=new Array,dr=0,Qt=7,Ut(65496),Ut(65504),Ut(16),ht(74),ht(70),ht(73),ht(70),ht(0),ht(1),ht(1),ht(0),Ut(1),Ut(1),ht(0),ht(0),function(){Ut(65499),Ut(132),ht(0);for(var Cn=0;Cn<64;Cn++)ht(De[Cn]);ht(1);for(var ai=0;ai<64;ai++)ht(Ne[ai])}(),function(Cn,ai){Ut(65472),Ut(17),ht(8),Ut(ai),Ut(Cn),ht(3),ht(1),ht(17),ht(0),ht(2),ht(17),ht(1),ht(3),ht(17),ht(1)}(ze.width,ze.height),function(){Ut(65476),Ut(418),ht(0);for(var Cn=0;Cn<16;Cn++)ht(Br[Cn+1]);for(var ai=0;ai<=11;ai++)ht(bn[ai]);ht(16);for(var Li=0;Li<16;Li++)ht(Pn[Li+1]);for(var He=0;He<=161;He++)ht(er[He]);ht(1);for(var c=0;c<16;c++)ht(nr[c+1]);for(var w=0;w<=11;w++)ht(ye[w]);ht(17);for(var C=0;C<16;C++)ht(Ee[C+1]);for(var $=0;$<=161;$++)ht(et[$])}(),Ut(65498),Ut(12),ht(3),ht(1),ht(0),ht(2),ht(17),ht(3),ht(17),ht(0),ht(63),ht(0);var wt=0,jt=0,Wt=0;dr=0,Qt=7,this.encode.displayName="_encode_";for(var ur,It,br,Gr,$r,cn,Dn,ni,Mr,ir=ze.data,Ii=ze.width,Fn=ze.height,ln=4*Ii,An=0;An<Fn;){for(ur=0;ur<ln;){for($r=ln*An+ur,Dn=-1,ni=0,Mr=0;Mr<64;Mr++)cn=$r+(ni=Mr>>3)*ln+(Dn=4*(7&Mr)),An+ni>=Fn&&(cn-=ln*(An+1+ni-Fn)),ur+Dn>=ln&&(cn-=ur+Dn-ln+4),It=ir[cn++],br=ir[cn++],Gr=ir[cn++],pr[Mr]=(ci[It]+ci[br+256>>0]+ci[Gr+512>>0]>>16)-128,Ur[Mr]=(ci[It+768>>0]+ci[br+1024>>0]+ci[Gr+1280>>0]>>16)-128,sn[Mr]=(ci[It+1280>>0]+ci[br+1536>>0]+ci[Gr+1792>>0]>>16)-128;wt=$t(pr,tt,wt,u,M),jt=$t(Ur,yt,jt,y,ne),Wt=$t(sn,yt,Wt,y,ne),ur+=32}An+=8}if(Qt>=0){var rn=[];rn[1]=Qt+1,rn[0]=(1<<Qt+1)-1,gt(rn)}return Ut(65497),new Uint8Array(tr)},b=b||50,function(){for(var ze=String.fromCharCode,Ce=0;Ce<256;Ce++)Rn[Ce]=ze(Ce)}(),u=st(Br,bn),y=st(nr,ye),M=st(Pn,er),ne=st(Ee,et),function(){for(var ze=1,Ce=2,wt=1;wt<=15;wt++){for(var jt=ze;jt<Ce;jt++)Pt[32767+jt]=wt,vt[32767+jt]=[],vt[32767+jt][1]=wt,vt[32767+jt][0]=jt;for(var Wt=-(Ce-1);Wt<=-ze;Wt++)Pt[32767+Wt]=wt,vt[32767+Wt]=[],vt[32767+Wt][1]=wt,vt[32767+Wt][0]=Ce-1+Wt;ze<<=1,Ce<<=1}}(),function(){for(var ze=0;ze<256;ze++)ci[ze]=19595*ze,ci[ze+256>>0]=38470*ze,ci[ze+512>>0]=7471*ze+32768,ci[ze+768>>0]=-11059*ze,ci[ze+1024>>0]=-21709*ze,ci[ze+1280>>0]=32768*ze+8421375,ci[ze+1536>>0]=-27439*ze,ci[ze+1792>>0]=-5329*ze}(),sr(b)}function jo(b,u){if(this.pos=0,this.buffer=b,this.datav=new DataView(b.buffer),this.is_with_alpha=!!u,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 Gs(b){function u(Br){if(!Br)throw Error("assert :P")}function y(Br,bn,Pn){for(var er=0;4>er;er++)if(Br[bn+er]!=Pn.charCodeAt(er))return!0;return!1}function M(Br,bn,Pn,er,nr){for(var ye=0;ye<nr;ye++)Br[bn+ye]=Pn[er+ye]}function ne(Br,bn,Pn,er){for(var nr=0;nr<er;nr++)Br[bn+nr]=Pn}function Z(Br){return new Int32Array(Br)}function ge(Br,bn){for(var Pn=[],er=0;er<Br;er++)Pn.push(new bn);return Pn}function De(Br,bn){var Pn=[];return function er(nr,ye,Ee){for(var et=Ee[ye],st=0;st<et&&(nr.push(Ee.length>ye+1?[]:new bn),!(Ee.length<ye+1));st++)er(nr[st],ye+1,Ee)}(Pn,0,Br),Pn}var Ne=function(){var Br=this;function bn(h,Q){for(var ue=1<<Q-1>>>0;h&ue;)ue>>>=1;return ue?(h&ue-1)+ue:h}function Pn(h,Q,ue,Qe,lt){u(!(Qe%ue));do h[Q+(Qe-=ue)]=lt;while(0<Qe)}function er(h,Q,ue,Qe,lt){if(u(2328>=lt),512>=lt)var pt=Z(512);else if((pt=Z(lt))==null)return 0;return function(mt,Dt,Ot,zt,fr,Wr){var Vr,Sr,Wn=Dt,On=1<<Ot,Nr=Z(16),Lr=Z(16);for(u(fr!=0),u(zt!=null),u(mt!=null),u(0<Ot),Sr=0;Sr<fr;++Sr){if(15<zt[Sr])return 0;++Nr[zt[Sr]]}if(Nr[0]==fr)return 0;for(Lr[1]=0,Vr=1;15>Vr;++Vr){if(Nr[Vr]>1<<Vr)return 0;Lr[Vr+1]=Lr[Vr]+Nr[Vr]}for(Sr=0;Sr<fr;++Sr)Vr=zt[Sr],0<zt[Sr]&&(Wr[Lr[Vr]++]=Sr);if(Lr[15]==1)return(zt=new nr).g=0,zt.value=Wr[0],Pn(mt,Wn,1,On,zt),On;var Vn,gi=-1,ei=On-1,Vi=0,Gi=1,ga=1,Yi=1<<Ot;for(Sr=0,Vr=1,fr=2;Vr<=Ot;++Vr,fr<<=1){if(Gi+=ga<<=1,0>(ga-=Nr[Vr]))return 0;for(;0<Nr[Vr];--Nr[Vr])(zt=new nr).g=Vr,zt.value=Wr[Sr++],Pn(mt,Wn+Vi,fr,Yi,zt),Vi=bn(Vi,Vr)}for(Vr=Ot+1,fr=2;15>=Vr;++Vr,fr<<=1){if(Gi+=ga<<=1,0>(ga-=Nr[Vr]))return 0;for(;0<Nr[Vr];--Nr[Vr]){if(zt=new nr,(Vi&ei)!=gi){for(Wn+=Yi,Vn=1<<(gi=Vr)-Ot;15>gi&&!(0>=(Vn-=Nr[gi]));)++gi,Vn<<=1;On+=Yi=1<<(Vn=gi-Ot),mt[Dt+(gi=Vi&ei)].g=Vn+Ot,mt[Dt+gi].value=Wn-Dt-gi}zt.g=Vr-Ot,zt.value=Wr[Sr++],Pn(mt,Wn+(Vi>>Ot),fr,Yi,zt),Vi=bn(Vi,Vr)}}return Gi!=2*Lr[15]-1?0:On}(h,Q,ue,Qe,lt,pt)}function nr(){this.value=this.g=0}function ye(){this.value=this.g=0}function Ee(){this.G=ge(5,nr),this.H=Z(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ge(xo,ye)}function et(h,Q,ue,Qe){u(h!=null),u(Q!=null),u(2147483648>Qe),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=Q,h.pa=ue,h.Jd=Q,h.Yc=ue+Qe,h.Zc=4<=Qe?ue+Qe-4+1:ue,ur(h)}function st(h,Q){for(var ue=0;0<Q--;)ue|=br(h,128)<<Q;return ue}function gt(h,Q){var ue=st(h,Q);return It(h)?-ue:ue}function ht(h,Q,ue,Qe){var lt,pt=0;for(u(h!=null),u(Q!=null),u(4294967288>Qe),h.Sb=Qe,h.Ra=0,h.u=0,h.h=0,4<Qe&&(Qe=4),lt=0;lt<Qe;++lt)pt+=Q[ue+lt]<<8*lt;h.Ra=pt,h.bb=Qe,h.oa=Q,h.pa=ue}function Ut(h){for(;8<=h.u&&h.bb<h.Sb;)h.Ra>>>=8,h.Ra+=h.oa[h.pa+h.bb]<<Ul-8>>>0,++h.bb,h.u-=8;wt(h)&&(h.h=1,h.u=0)}function $t(h,Q){if(u(0<=Q),!h.h&&Q<=no){var ue=Ce(h)&Ju[Q];return h.u+=Q,Ut(h),ue}return h.h=1,h.u=0}function sr(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function ze(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Ce(h){return h.Ra>>>(h.u&Ul-1)>>>0}function wt(h){return u(h.bb<=h.Sb),h.h||h.bb==h.Sb&&h.u>Ul}function jt(h,Q){h.u=Q,h.h=wt(h)}function Wt(h){h.u>=ru&&(u(h.u>=ru),Ut(h))}function ur(h){u(h!=null&&h.oa!=null),h.pa<h.Zc?(h.I=(h.oa[h.pa++]|h.I<<8)>>>0,h.b+=8):(u(h!=null&&h.oa!=null),h.pa<h.Yc?(h.b+=8,h.I=h.oa[h.pa++]|h.I<<8):h.Ka?h.b=0:(h.I<<=8,h.b+=8,h.Ka=1))}function It(h){return st(h,1)}function br(h,Q){var ue=h.Ca;0>h.b&&ur(h);var Qe=h.b,lt=ue*Q>>>8,pt=(h.I>>>Qe>lt)+0;for(pt?(ue-=lt,h.I-=lt+1<<Qe>>>0):ue=lt+1,Qe=ue,lt=0;256<=Qe;)lt+=8,Qe>>=8;return Qe=7^lt+Oo[Qe],h.b-=Qe,h.Ca=(ue<<Qe)-1,pt}function Gr(h,Q,ue){h[Q+0]=ue>>24&255,h[Q+1]=ue>>16&255,h[Q+2]=ue>>8&255,h[Q+3]=ue>>0&255}function $r(h,Q){return h[Q+0]<<0|h[Q+1]<<8}function cn(h,Q){return $r(h,Q)|h[Q+2]<<16}function Dn(h,Q){return $r(h,Q)|$r(h,Q+2)<<16}function ni(h,Q){var ue=1<<Q;return u(h!=null),u(0<Q),h.X=Z(ue),h.X==null?0:(h.Mb=32-Q,h.Xa=Q,1)}function Mr(h,Q){u(h!=null),u(Q!=null),u(h.Xa==Q.Xa),M(Q.X,0,h.X,0,1<<Q.Xa)}function ir(){this.X=[],this.Xa=this.Mb=0}function Ii(h,Q,ue,Qe){u(ue!=null),u(Qe!=null);var lt=ue[0],pt=Qe[0];return lt==0&&(lt=(h*pt+Q/2)/Q),pt==0&&(pt=(Q*lt+h/2)/h),0>=lt||0>=pt?0:(ue[0]=lt,Qe[0]=pt,1)}function Fn(h,Q){return h+(1<<Q)-1>>>Q}function ln(h,Q){return((4278255360&h)+(4278255360&Q)>>>0&4278255360)+((16711935&h)+(16711935&Q)>>>0&16711935)>>>0}function An(h,Q){Br[Q]=function(ue,Qe,lt,pt,mt,Dt,Ot){var zt;for(zt=0;zt<mt;++zt){var fr=Br[h](Dt[Ot+zt-1],lt,pt+zt);Dt[Ot+zt]=ln(ue[Qe+zt],fr)}}}function rn(){this.ud=this.hd=this.jd=0}function Cn(h,Q){return((4278124286&(h^Q))>>>1)+(h&Q)>>>0}function ai(h){return 0<=h&&256>h?h:0>h?0:255<h?255:void 0}function Li(h,Q){return ai(h+(h-Q+.5>>1))}function He(h,Q,ue){return Math.abs(Q-ue)-Math.abs(h-ue)}function c(h,Q,ue,Qe,lt,pt,mt){for(Qe=pt[mt-1],ue=0;ue<lt;++ue)pt[mt+ue]=Qe=ln(h[Q+ue],Qe)}function w(h,Q,ue,Qe,lt){var pt;for(pt=0;pt<ue;++pt){var mt=h[Q+pt],Dt=mt>>8&255,Ot=16711935&(Ot=(Ot=16711935&mt)+((Dt<<16)+Dt));Qe[lt+pt]=(4278255360&mt)+Ot>>>0}}function C(h,Q){Q.jd=h>>0&255,Q.hd=h>>8&255,Q.ud=h>>16&255}function $(h,Q,ue,Qe,lt,pt){var mt;for(mt=0;mt<Qe;++mt){var Dt=Q[ue+mt],Ot=Dt>>>8,zt=Dt,fr=255&(fr=(fr=Dt>>>16)+((h.jd<<24>>24)*(Ot<<24>>24)>>>5));zt=255&(zt=(zt=zt+((h.hd<<24>>24)*(Ot<<24>>24)>>>5))+((h.ud<<24>>24)*(fr<<24>>24)>>>5)),lt[pt+mt]=(4278255360&Dt)+(fr<<16)+zt}}function Be(h,Q,ue,Qe,lt){Br[Q]=function(pt,mt,Dt,Ot,zt,fr,Wr,Vr,Sr){for(Ot=Wr;Ot<Vr;++Ot)for(Wr=0;Wr<Sr;++Wr)zt[fr++]=lt(Dt[Qe(pt[mt++])])},Br[h]=function(pt,mt,Dt,Ot,zt,fr,Wr){var Vr=8>>pt.b,Sr=pt.Ea,Wn=pt.K[0],On=pt.w;if(8>Vr)for(pt=(1<<pt.b)-1,On=(1<<Vr)-1;mt<Dt;++mt){var Nr,Lr=0;for(Nr=0;Nr<Sr;++Nr)Nr&pt||(Lr=Qe(Ot[zt++])),fr[Wr++]=lt(Wn[Lr&On]),Lr>>=Vr}else Br["VP8LMapColor"+ue](Ot,zt,Wn,On,fr,Wr,mt,Dt,Sr)}}function je(h,Q,ue,Qe,lt){for(ue=Q+ue;Q<ue;){var pt=h[Q++];Qe[lt++]=pt>>16&255,Qe[lt++]=pt>>8&255,Qe[lt++]=pt>>0&255}}function xt(h,Q,ue,Qe,lt){for(ue=Q+ue;Q<ue;){var pt=h[Q++];Qe[lt++]=pt>>16&255,Qe[lt++]=pt>>8&255,Qe[lt++]=pt>>0&255,Qe[lt++]=pt>>24&255}}function bt(h,Q,ue,Qe,lt){for(ue=Q+ue;Q<ue;){var pt=(mt=h[Q++])>>16&240|mt>>12&15,mt=mt>>0&240|mt>>28&15;Qe[lt++]=pt,Qe[lt++]=mt}}function Jt(h,Q,ue,Qe,lt){for(ue=Q+ue;Q<ue;){var pt=(mt=h[Q++])>>16&248|mt>>13&7,mt=mt>>5&224|mt>>3&31;Qe[lt++]=pt,Qe[lt++]=mt}}function Ar(h,Q,ue,Qe,lt){for(ue=Q+ue;Q<ue;){var pt=h[Q++];Qe[lt++]=pt>>0&255,Qe[lt++]=pt>>8&255,Qe[lt++]=pt>>16&255}}function xr(h,Q,ue,Qe,lt,pt){if(pt==0)for(ue=Q+ue;Q<ue;)Gr(Qe,((pt=h[Q++])[0]>>24|pt[1]>>8&65280|pt[2]<<8&16711680|pt[3]<<24)>>>0),lt+=32;else M(Qe,lt,h,Q,ue)}function nn(h,Q){Br[Q][0]=Br[h+"0"],Br[Q][1]=Br[h+"1"],Br[Q][2]=Br[h+"2"],Br[Q][3]=Br[h+"3"],Br[Q][4]=Br[h+"4"],Br[Q][5]=Br[h+"5"],Br[Q][6]=Br[h+"6"],Br[Q][7]=Br[h+"7"],Br[Q][8]=Br[h+"8"],Br[Q][9]=Br[h+"9"],Br[Q][10]=Br[h+"10"],Br[Q][11]=Br[h+"11"],Br[Q][12]=Br[h+"12"],Br[Q][13]=Br[h+"13"],Br[Q][14]=Br[h+"0"],Br[Q][15]=Br[h+"0"]}function xn(h){return h==za||h==ia||h==Qa||h==Ua}function Xr(){this.eb=[],this.size=this.A=this.fb=0}function dn(){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 kn(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Xr,this.f.kb=new dn,this.sd=null}function Zn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function bi(){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 En(h){return alert("todo:WebPSamplerProcessPlane"),h.T}function pi(h,Q){var ue=h.T,Qe=Q.ba.f.RGBA,lt=Qe.eb,pt=Qe.fb+h.ka*Qe.A,mt=ou[Q.ba.S],Dt=h.y,Ot=h.O,zt=h.f,fr=h.N,Wr=h.ea,Vr=h.W,Sr=Q.cc,Wn=Q.dc,On=Q.Mc,Nr=Q.Nc,Lr=h.ka,Vn=h.ka+h.T,gi=h.U,ei=gi+1>>1;for(Lr==0?mt(Dt,Ot,null,null,zt,fr,Wr,Vr,zt,fr,Wr,Vr,lt,pt,null,null,gi):(mt(Q.ec,Q.fc,Dt,Ot,Sr,Wn,On,Nr,zt,fr,Wr,Vr,lt,pt-Qe.A,lt,pt,gi),++ue);Lr+2<Vn;Lr+=2)Sr=zt,Wn=fr,On=Wr,Nr=Vr,fr+=h.Rc,Vr+=h.Rc,pt+=2*Qe.A,mt(Dt,(Ot+=2*h.fa)-h.fa,Dt,Ot,Sr,Wn,On,Nr,zt,fr,Wr,Vr,lt,pt-Qe.A,lt,pt,gi);return Ot+=h.fa,h.j+Vn<h.o?(M(Q.ec,Q.fc,Dt,Ot,gi),M(Q.cc,Q.dc,zt,fr,ei),M(Q.Mc,Q.Nc,Wr,Vr,ei),ue--):1&Vn||mt(Dt,Ot,null,null,zt,fr,Wr,Vr,zt,fr,Wr,Vr,lt,pt+Qe.A,null,null,gi),ue}function Ji(h,Q,ue){var Qe=h.F,lt=[h.J];if(Qe!=null){var pt=h.U,mt=Q.ba.S,Dt=mt==qi||mt==Qa;Q=Q.ba.f.RGBA;var Ot=[0],zt=h.ka;Ot[0]=h.T,h.Kb&&(zt==0?--Ot[0]:(--zt,lt[0]-=h.width),h.j+h.ka+h.T==h.o&&(Ot[0]=h.o-h.j-zt));var fr=Q.eb;zt=Q.fb+zt*Q.A,h=fe(Qe,lt[0],h.width,pt,Ot,fr,zt+(Dt?0:3),Q.A),u(ue==Ot),h&&xn(mt)&&j(fr,zt,Dt,pt,Ot,Q.A)}return 0}function Ki(h){var Q=h.ma,ue=Q.ba.S,Qe=11>ue,lt=ue==mi||ue==Ti||ue==qi||ue==di||ue==12||xn(ue);if(Q.memory=null,Q.Ib=null,Q.Jb=null,Q.Nd=null,!Xu(Q.Oa,h,lt?11:12))return 0;if(lt&&xn(ue)&&Ei(),h.da)alert("todo:use_scaling");else{if(Qe){if(Q.Ib=En,h.Kb){if(ue=h.U+1>>1,Q.memory=Z(h.U+2*ue),Q.memory==null)return 0;Q.ec=Q.memory,Q.fc=0,Q.cc=Q.ec,Q.dc=Q.fc+h.U,Q.Mc=Q.cc,Q.Nc=Q.dc+ue,Q.Ib=pi,Ei()}}else alert("todo:EmitYUV");lt&&(Q.Jb=Ji,Qe&&un())}if(Qe&&!R){for(h=0;256>h;++h)E[h]=89858*(h-128)+$c>>Hc,Pe[h]=-22014*(h-128)+$c,k[h]=-45773*(h-128),U[h]=113618*(h-128)+$c>>Hc;for(h=Uc;h<Vc;++h)Q=76283*(h-16)+$c>>Hc,it[h-Uc]=el(Q,255),Lt[h-Uc]=el(Q+8>>4,15);R=1}return 1}function Sa(h){var Q=h.ma,ue=h.U,Qe=h.T;return u(!(1&h.ka)),0>=ue||0>=Qe?0:(ue=Q.Ib(h,Q),Q.Jb!=null&&Q.Jb(h,Q,ue),Q.Dc+=ue,1)}function Ia(h){h.ma.memory=null}function Xi(h,Q,ue,Qe){return $t(h,8)!=47?0:(Q[0]=$t(h,14)+1,ue[0]=$t(h,14)+1,Qe[0]=$t(h,1),$t(h,3)!=0?0:!h.h)}function Ta(h,Q){if(4>h)return h+1;var ue=h-2>>1;return(2+(1&h)<<ue)+$t(Q,ue)+1}function Ba(h,Q){return 120<Q?Q-120:1<=(ue=((ue=ks[Q-1])>>4)*h+(8-(15&ue)))?ue:1;var ue}function si(h,Q,ue){var Qe=Ce(ue),lt=h[Q+=255&Qe].g-8;return 0<lt&&(jt(ue,ue.u+8),Qe=Ce(ue),Q+=h[Q].value,Q+=Qe&(1<<lt)-1),jt(ue,ue.u+h[Q].g),h[Q].value}function Ha(h,Q,ue){return ue.g+=h.g,ue.value+=h.value<<Q>>>0,u(8>=ue.g),h.g}function os(h,Q,ue){var Qe=h.xc;return u((Q=Qe==0?0:h.vc[h.md*(ue>>Qe)+(Q>>Qe)])<h.Wb),h.Ya[Q]}function sa(h,Q,ue,Qe){var lt=h.ab,pt=h.c*Q,mt=h.C;Q=mt+Q;var Dt=ue,Ot=Qe;for(Qe=h.Ta,ue=h.Ua;0<lt--;){var zt=h.gc[lt],fr=mt,Wr=Q,Vr=Dt,Sr=Ot,Wn=(Ot=Qe,Dt=ue,zt.Ea);switch(u(fr<Wr),u(Wr<=zt.nc),zt.hc){case 2:Ql(Vr,Sr,(Wr-fr)*Wn,Ot,Dt);break;case 0:var On=fr,Nr=Wr,Lr=Ot,Vn=Dt,gi=(Yi=zt).Ea;On==0&&(nu(Vr,Sr,null,null,1,Lr,Vn),c(Vr,Sr+1,0,0,gi-1,Lr,Vn+1),Sr+=gi,Vn+=gi,++On);for(var ei=1<<Yi.b,Vi=ei-1,Gi=Fn(gi,Yi.b),ga=Yi.K,Yi=Yi.w+(On>>Yi.b)*Gi;On<Nr;){var Ss=ga,Fs=Yi,ds=1;for(Eu(Vr,Sr,Lr,Vn-gi,1,Lr,Vn);ds<gi;){var us=(ds&~Vi)+ei;us>gi&&(us=gi),(0,jl[Ss[Fs++]>>8&15])(Vr,Sr+ +ds,Lr,Vn+ds-gi,us-ds,Lr,Vn+ds),ds=us}Sr+=gi,Vn+=gi,++On&Vi||(Yi+=Gi)}Wr!=zt.nc&&M(Ot,Dt-Wn,Ot,Dt+(Wr-fr-1)*Wn,Wn);break;case 1:for(Wn=Vr,Nr=Sr,gi=(Vr=zt.Ea)-(Vn=Vr&~(Lr=(Sr=1<<zt.b)-1)),On=Fn(Vr,zt.b),ei=zt.K,zt=zt.w+(fr>>zt.b)*On;fr<Wr;){for(Vi=ei,Gi=zt,ga=new rn,Yi=Nr+Vn,Ss=Nr+Vr;Nr<Yi;)C(Vi[Gi++],ga),iu(ga,Wn,Nr,Sr,Ot,Dt),Nr+=Sr,Dt+=Sr;Nr<Ss&&(C(Vi[Gi++],ga),iu(ga,Wn,Nr,gi,Ot,Dt),Nr+=gi,Dt+=gi),++fr&Lr||(zt+=On)}break;case 3:if(Vr==Ot&&Sr==Dt&&0<zt.b){for(Nr=Ot,Vr=Wn=Dt+(Wr-fr)*Wn-(Vn=(Wr-fr)*Fn(zt.Ea,zt.b)),Sr=Ot,Lr=Dt,On=[],Vn=(gi=Vn)-1;0<=Vn;--Vn)On[Vn]=Sr[Lr+Vn];for(Vn=gi-1;0<=Vn;--Vn)Nr[Vr+Vn]=On[Vn];pl(zt,fr,Wr,Ot,Wn,Ot,Dt)}else pl(zt,fr,Wr,Vr,Sr,Ot,Dt)}Dt=Qe,Ot=ue}Ot!=ue&&M(Qe,ue,Dt,Ot,pt)}function ha(h,Q){var ue=h.V,Qe=h.Ba+h.c*h.C,lt=Q-h.C;if(u(Q<=h.l.o),u(16>=lt),0<lt){var pt=h.l,mt=h.Ta,Dt=h.Ua,Ot=pt.width;if(sa(h,lt,ue,Qe),lt=Dt=[Dt],u((ue=h.C)<(Qe=Q)),u(pt.v<pt.va),Qe>pt.o&&(Qe=pt.o),ue<pt.j){var zt=pt.j-ue;ue=pt.j,lt[0]+=zt*Ot}if(ue>=Qe?ue=0:(lt[0]+=4*pt.v,pt.ka=ue-pt.j,pt.U=pt.va-pt.v,pt.T=Qe-ue,ue=1),ue){if(Dt=Dt[0],11>(ue=h.ca).S){var fr=ue.f.RGBA,Wr=(Qe=ue.S,lt=pt.U,pt=pt.T,zt=fr.eb,fr.A),Vr=pt;for(fr=fr.fb+h.Ma*fr.A;0<Vr--;){var Sr=mt,Wn=Dt,On=lt,Nr=zt,Lr=fr;switch(Qe){case an:ul(Sr,Wn,On,Nr,Lr);break;case mi:Uo(Sr,Wn,On,Nr,Lr);break;case za:Uo(Sr,Wn,On,Nr,Lr),j(Nr,Lr,0,On,1,0);break;case zn:su(Sr,Wn,On,Nr,Lr);break;case Ti:xr(Sr,Wn,On,Nr,Lr,1);break;case ia:xr(Sr,Wn,On,Nr,Lr,1),j(Nr,Lr,0,On,1,0);break;case qi:xr(Sr,Wn,On,Nr,Lr,0);break;case Qa:xr(Sr,Wn,On,Nr,Lr,0),j(Nr,Lr,1,On,1,0);break;case di:Uu(Sr,Wn,On,Nr,Lr);break;case Ua:Uu(Sr,Wn,On,Nr,Lr),J(Nr,Lr,On,1,0);break;case Ni:au(Sr,Wn,On,Nr,Lr);break;default:u(0)}Dt+=Ot,fr+=Wr}h.Ma+=pt}else alert("todo:EmitRescaledRowsYUVA");u(h.Ma<=ue.height)}}h.C=Q,u(h.C<=h.i)}function xa(h){var Q;if(0<h.ua)return 0;for(Q=0;Q<h.Wb;++Q){var ue=h.Ya[Q].G,Qe=h.Ya[Q].H;if(0<ue[1][Qe[1]+0].g||0<ue[2][Qe[2]+0].g||0<ue[3][Qe[3]+0].g)return 0}return 1}function ja(h,Q,ue,Qe,lt,pt){if(h.Z!=0){var mt=h.qd,Dt=h.rd;for(u(rc[h.Z]!=null);Q<ue;++Q)rc[h.Z](mt,Dt,Qe,lt,Qe,lt,pt),mt=Qe,Dt=lt,lt+=pt;h.qd=mt,h.rd=Dt}}function ls(h,Q){var ue=h.l.ma,Qe=ue.Z==0||ue.Z==1?h.l.j:h.C;if(Qe=h.C<Qe?Qe:h.C,u(Q<=h.l.o),Q>Qe){var lt=h.l.width,pt=ue.ca,mt=ue.tb+lt*Qe,Dt=h.V,Ot=h.Ba+h.c*Qe,zt=h.gc;u(h.ab==1),u(zt[0].hc==3),Cc(zt[0],Qe,Q,Dt,Ot,pt,mt),ja(ue,Qe,Q,pt,mt,lt)}h.C=h.Ma=Q}function da(h,Q,ue,Qe,lt,pt,mt){var Dt=h.$/Qe,Ot=h.$%Qe,zt=h.m,fr=h.s,Wr=ue+h.$,Vr=Wr;lt=ue+Qe*lt;var Sr=ue+Qe*pt,Wn=280+fr.ua,On=h.Pb?Dt:16777216,Nr=0<fr.ua?fr.Wa:null,Lr=fr.wc,Vn=Wr<Sr?os(fr,Ot,Dt):null;u(h.C<pt),u(Sr<=lt);var gi=!1;e:for(;;){for(;gi||Wr<Sr;){var ei=0;if(Dt>=On){var Vi=Wr-ue;u((On=h).Pb),On.wd=On.m,On.xd=Vi,0<On.s.ua&&Mr(On.s.Wa,On.s.vb),On=Dt+Ws}if(Ot&Lr||(Vn=os(fr,Ot,Dt)),u(Vn!=null),Vn.Qb&&(Q[Wr]=Vn.qb,gi=!0),!gi)if(Wt(zt),Vn.jc){ei=zt,Vi=Q;var Gi=Wr,ga=Vn.pd[Ce(ei)&xo-1];u(Vn.jc),256>ga.g?(jt(ei,ei.u+ga.g),Vi[Gi]=ga.value,ei=0):(jt(ei,ei.u+ga.g-256),u(256<=ga.value),ei=ga.value),ei==0&&(gi=!0)}else ei=si(Vn.G[0],Vn.H[0],zt);if(zt.h)break;if(gi||256>ei){if(!gi)if(Vn.nd)Q[Wr]=(Vn.qb|ei<<8)>>>0;else{if(Wt(zt),gi=si(Vn.G[1],Vn.H[1],zt),Wt(zt),Vi=si(Vn.G[2],Vn.H[2],zt),Gi=si(Vn.G[3],Vn.H[3],zt),zt.h)break;Q[Wr]=(Gi<<24|gi<<16|ei<<8|Vi)>>>0}if(gi=!1,++Wr,++Ot>=Qe&&(Ot=0,++Dt,mt!=null&&Dt<=pt&&!(Dt%16)&&mt(h,Dt),Nr!=null))for(;Vr<Wr;)ei=Q[Vr++],Nr.X[(506832829*ei&4294967295)>>>Nr.Mb]=ei}else if(280>ei){if(ei=Ta(ei-256,zt),Vi=si(Vn.G[4],Vn.H[4],zt),Wt(zt),Vi=Ba(Qe,Vi=Ta(Vi,zt)),zt.h)break;if(Wr-ue<Vi||lt-Wr<ei)break e;for(Gi=0;Gi<ei;++Gi)Q[Wr+Gi]=Q[Wr+Gi-Vi];for(Wr+=ei,Ot+=ei;Ot>=Qe;)Ot-=Qe,++Dt,mt!=null&&Dt<=pt&&!(Dt%16)&&mt(h,Dt);if(u(Wr<=lt),Ot&Lr&&(Vn=os(fr,Ot,Dt)),Nr!=null)for(;Vr<Wr;)ei=Q[Vr++],Nr.X[(506832829*ei&4294967295)>>>Nr.Mb]=ei}else{if(!(ei<Wn))break e;for(gi=ei-280,u(Nr!=null);Vr<Wr;)ei=Q[Vr++],Nr.X[(506832829*ei&4294967295)>>>Nr.Mb]=ei;ei=Wr,u(!(gi>>>(Vi=Nr).Xa)),Q[ei]=Vi.X[gi],gi=!0}gi||u(zt.h==wt(zt))}if(h.Pb&&zt.h&&Wr<lt)u(h.m.h),h.a=5,h.m=h.wd,h.$=h.xd,0<h.s.ua&&Mr(h.s.vb,h.s.Wa);else{if(zt.h)break e;mt!=null&&mt(h,Dt>pt?pt:Dt),h.a=0,h.$=Wr-ue}return 1}return h.a=3,0}function Is(h){u(h!=null),h.vc=null,h.yc=null,h.Ya=null;var Q=h.Wa;Q!=null&&(Q.X=null),h.vb=null,u(h!=null)}function bs(){var h=new wc;return h==null?null:(h.a=0,h.xb=tA,nn("Predictor","VP8LPredictors"),nn("Predictor","VP8LPredictors_C"),nn("PredictorAdd","VP8LPredictorsAdd"),nn("PredictorAdd","VP8LPredictorsAdd_C"),Ql=w,iu=$,ul=je,Uo=xt,Uu=bt,au=Jt,su=Ar,Br.VP8LMapColor32b=qu,Br.VP8LMapColor8b=Mu,h)}function Hs(h,Q,ue,Qe,lt){var pt=1,mt=[h],Dt=[Q],Ot=Qe.m,zt=Qe.s,fr=null,Wr=0;e:for(;;){if(ue)for(;pt&&$t(Ot,1);){var Vr=mt,Sr=Dt,Wn=Qe,On=1,Nr=Wn.m,Lr=Wn.gc[Wn.ab],Vn=$t(Nr,2);if(Wn.Oc&1<<Vn)pt=0;else{switch(Wn.Oc|=1<<Vn,Lr.hc=Vn,Lr.Ea=Vr[0],Lr.nc=Sr[0],Lr.K=[null],++Wn.ab,u(4>=Wn.ab),Vn){case 0:case 1:Lr.b=$t(Nr,3)+2,On=Hs(Fn(Lr.Ea,Lr.b),Fn(Lr.nc,Lr.b),0,Wn,Lr.K),Lr.K=Lr.K[0];break;case 3:var gi,ei=$t(Nr,8)+1,Vi=16<ei?0:4<ei?1:2<ei?2:3;if(Vr[0]=Fn(Lr.Ea,Vi),Lr.b=Vi,gi=On=Hs(ei,1,0,Wn,Lr.K)){var Gi,ga=ei,Yi=Lr,Ss=1<<(8>>Yi.b),Fs=Z(Ss);if(Fs==null)gi=0;else{var ds=Yi.K[0],us=Yi.w;for(Fs[0]=Yi.K[0][0],Gi=1;Gi<1*ga;++Gi)Fs[Gi]=ln(ds[us+Gi],Fs[Gi-1]);for(;Gi<4*Ss;++Gi)Fs[Gi]=0;Yi.K[0]=null,Yi.K[0]=Fs,gi=1}}On=gi;break;case 2:break;default:u(0)}pt=On}}if(mt=mt[0],Dt=Dt[0],pt&&$t(Ot,1)&&!(pt=1<=(Wr=$t(Ot,4))&&11>=Wr)){Qe.a=3;break e}var Ds;if(Ds=pt)t:{var Us,Ga,tl,lu=Qe,rl=mt,uu=Dt,uo=Wr,Bu=ue,Su=lu.m,ml=lu.s,Fl=[null],Gl=1,ju=0,vc=hs[uo];r:for(;;){if(Bu&&$t(Su,1)){var gl=$t(Su,3)+2,Bc=Fn(rl,gl),Qc=Fn(uu,gl),Kc=Bc*Qc;if(!Hs(Bc,Qc,0,lu,Fl))break r;for(Fl=Fl[0],ml.xc=gl,Us=0;Us<Kc;++Us){var Lc=Fl[Us]>>8&65535;Fl[Us]=Lc,Lc>=Gl&&(Gl=Lc+1)}}if(Su.h)break r;for(Ga=0;5>Ga;++Ga){var Zo=Ks[Ga];!Ga&&0<uo&&(Zo+=1<<uo),ju<Zo&&(ju=Zo)}var xA=ge(Gl*vc,nr),DA=Gl,LA=ge(DA,Ee);if(LA==null)var oA=null;else u(65536>=DA),oA=LA;var Yc=Z(ju);if(oA==null||Yc==null||xA==null){lu.a=1;break r}var lA=xA;for(Us=tl=0;Us<Gl;++Us){var nc=oA[Us],zc=nc.G,Gc=nc.H,RA=0,uA=1,OA=0;for(Ga=0;5>Ga;++Ga){Zo=Ks[Ga],zc[Ga]=lA,Gc[Ga]=tl,!Ga&&0<uo&&(Zo+=1<<uo);i:{var cA,EA=Zo,AA=lu,Xc=Yc,VA=lA,YA=tl,CA=0,Rc=AA.m,XA=$t(Rc,1);if(ne(Xc,0,0,EA),XA){var JA=$t(Rc,1)+1,qA=$t(Rc,1),PA=$t(Rc,qA==0?1:8);Xc[PA]=1,JA==2&&(Xc[PA=$t(Rc,8)]=1);var dA=1}else{var NA=Z(19),kA=$t(Rc,4)+4;if(19<kA){AA.a=3;var fA=0;break i}for(cA=0;cA<kA;++cA)NA[oa[cA]]=$t(Rc,3);var _A=void 0,Jc=void 0,MA=AA,e0=NA,hA=EA,UA=Xc,BA=0,Oc=MA.m,QA=8,jA=ge(128,nr);n:for(;er(jA,0,7,e0,19);){if($t(Oc,1)){var t0=2+2*$t(Oc,3);if((_A=2+$t(Oc,t0))>hA)break n}else _A=hA;for(Jc=0;Jc<hA&&_A--;){Wt(Oc);var HA=jA[0+(127&Ce(Oc))];jt(Oc,Oc.u+HA.g);var Zc=HA.value;if(16>Zc)UA[Jc++]=Zc,Zc!=0&&(QA=Zc);else{var r0=Zc==16,$A=Zc-16,n0=Ts[$A],KA=$t(Oc,La[$A])+n0;if(Jc+KA>hA)break n;for(var i0=r0?QA:0;0<KA--;)UA[Jc++]=i0}}BA=1;break n}BA||(MA.a=3),dA=BA}(dA=dA&&!Rc.h)&&(CA=er(VA,YA,8,Xc,EA)),dA&&CA!=0?fA=CA:(AA.a=3,fA=0)}if(fA==0)break r;if(uA&&pa[Ga]==1&&(uA=lA[tl].g==0),RA+=lA[tl].g,tl+=fA,3>=Ga){var qc,SA=Yc[0];for(qc=1;qc<Zo;++qc)Yc[qc]>SA&&(SA=Yc[qc]);OA+=SA}}if(nc.nd=uA,nc.Qb=0,uA&&(nc.qb=(zc[3][Gc[3]+0].value<<24|zc[1][Gc[1]+0].value<<16|zc[2][Gc[2]+0].value)>>>0,RA==0&&256>zc[0][Gc[0]+0].value&&(nc.Qb=1,nc.qb+=zc[0][Gc[0]+0].value<<8)),nc.jc=!nc.Qb&&6>OA,nc.jc){var pA,Sc=nc;for(pA=0;pA<xo;++pA){var Pc=pA,Nc=Sc.pd[Pc],mA=Sc.G[0][Sc.H[0]+Pc];256<=mA.value?(Nc.g=mA.g+256,Nc.value=mA.value):(Nc.g=0,Nc.value=0,Pc>>=Ha(mA,8,Nc),Pc>>=Ha(Sc.G[1][Sc.H[1]+Pc],16,Nc),Pc>>=Ha(Sc.G[2][Sc.H[2]+Pc],0,Nc),Ha(Sc.G[3][Sc.H[3]+Pc],24,Nc))}}}ml.vc=Fl,ml.Wb=Gl,ml.Ya=oA,ml.yc=xA,Ds=1;break t}Ds=0}if(!(pt=Ds)){Qe.a=3;break e}if(0<Wr){if(zt.ua=1<<Wr,!ni(zt.Wa,Wr)){Qe.a=1,pt=0;break e}}else zt.ua=0;var IA=Qe,zA=mt,a0=Dt,TA=IA.s,FA=TA.xc;if(IA.c=zA,IA.i=a0,TA.md=Fn(zA,FA),TA.wc=FA==0?-1:(1<<FA)-1,ue){Qe.xb=eA;break e}if((fr=Z(mt*Dt))==null){Qe.a=1,pt=0;break e}pt=(pt=da(Qe,fr,0,mt,Dt,Dt,null))&&!Ot.h;break e}return pt?(lt!=null?lt[0]=fr:(u(fr==null),u(ue)),Qe.$=0,ue||Is(zt)):Is(zt),pt}function Zs(h,Q){var ue=h.c*h.i,Qe=ue+Q+16*Q;return u(h.c<=Q),h.V=Z(Qe),h.V==null?(h.Ta=null,h.Ua=0,h.a=1,0):(h.Ta=h.V,h.Ua=h.Ba+ue+Q,1)}function Xs(h,Q){var ue=h.C,Qe=Q-ue,lt=h.V,pt=h.Ba+h.c*ue;for(u(Q<=h.l.o);0<Qe;){var mt=16<Qe?16:Qe,Dt=h.l.ma,Ot=h.l.width,zt=Ot*mt,fr=Dt.ca,Wr=Dt.tb+Ot*ue,Vr=h.Ta,Sr=h.Ua;sa(h,mt,lt,pt),Oe(Vr,Sr,fr,Wr,zt),ja(Dt,ue,ue+mt,fr,Wr,Ot),Qe-=mt,lt+=mt*h.c,ue+=mt}u(ue==Q),h.C=h.Ma=Q}function Wo(){this.ub=this.yd=this.td=this.Rb=0}function $o(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ho(){this.Fb=this.Bb=this.Cb=0,this.Zb=Z(4),this.Lb=Z(4)}function oo(){this.Yb=function(){var h=[];return function Q(ue,Qe,lt){for(var pt=lt[Qe],mt=0;mt<pt&&(ue.push(lt.length>Qe+1?[]:0),!(lt.length<Qe+1));mt++)Q(ue[mt],Qe+1,lt)}(h,0,[3,11]),h}()}function ro(){this.jb=Z(3),this.Wc=De([4,8],oo),this.Xc=De([4,17],oo)}function $s(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new Z(4),this.od=new Z(4)}function Ja(){this.ld=this.La=this.dd=this.tc=0}function al(){this.Na=this.la=0}function $l(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Vo(){this.ad=Z(384),this.Za=0,this.Ob=Z(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Jo(){this.uc=this.M=this.Nb=0,this.wa=Array(new Ja),this.Y=0,this.ya=Array(new Vo),this.aa=0,this.l=new Ma}function fu(){this.y=Z(16),this.f=Z(8),this.ea=Z(8)}function Iu(){this.cb=this.a=0,this.sc="",this.m=new sr,this.Od=new Wo,this.Kc=new $o,this.ed=new $s,this.Qa=new ho,this.Ic=this.$c=this.Aa=0,this.D=new Jo,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ge(8,sr),this.ia=0,this.pb=ge(4,$l),this.Pa=new ro,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new fu),this.Hd=0,this.rb=Array(new al),this.sb=0,this.wa=Array(new Ja),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 Vo),this.L=this.aa=0,this.gd=De([4,2],Ja),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 Ma(){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 _s(){var h=new Iu;return h!=null&&(h.a=0,h.sc="OK",h.cb=0,h.Xb=0,Fo||(Fo=Ro)),h}function qa(h,Q,ue){return h.a==0&&(h.a=Q,h.sc=ue,h.cb=0),0}function Bs(h,Q,ue){return 3<=ue&&h[Q+0]==157&&h[Q+1]==1&&h[Q+2]==42}function bo(h,Q){if(h==null)return 0;if(h.a=0,h.sc="OK",Q==null)return qa(h,2,"null VP8Io passed to VP8GetHeaders()");var ue=Q.data,Qe=Q.w,lt=Q.ha;if(4>lt)return qa(h,7,"Truncated header.");var pt=ue[Qe+0]|ue[Qe+1]<<8|ue[Qe+2]<<16,mt=h.Od;if(mt.Rb=!(1&pt),mt.td=pt>>1&7,mt.yd=pt>>4&1,mt.ub=pt>>5,3<mt.td)return qa(h,3,"Incorrect keyframe parameters.");if(!mt.yd)return qa(h,4,"Frame not displayable.");Qe+=3,lt-=3;var Dt=h.Kc;if(mt.Rb){if(7>lt)return qa(h,7,"cannot parse picture header");if(!Bs(ue,Qe,lt))return qa(h,3,"Bad code word");Dt.c=16383&(ue[Qe+4]<<8|ue[Qe+3]),Dt.Td=ue[Qe+4]>>6,Dt.i=16383&(ue[Qe+6]<<8|ue[Qe+5]),Dt.Ud=ue[Qe+6]>>6,Qe+=7,lt-=7,h.za=Dt.c+15>>4,h.Ub=Dt.i+15>>4,Q.width=Dt.c,Q.height=Dt.i,Q.Da=0,Q.j=0,Q.v=0,Q.va=Q.width,Q.o=Q.height,Q.da=0,Q.ib=Q.width,Q.hb=Q.height,Q.U=Q.width,Q.T=Q.height,ne((pt=h.Pa).jb,0,255,pt.jb.length),u((pt=h.Qa)!=null),pt.Cb=0,pt.Bb=0,pt.Fb=1,ne(pt.Zb,0,0,pt.Zb.length),ne(pt.Lb,0,0,pt.Lb)}if(mt.ub>lt)return qa(h,7,"bad partition length");et(pt=h.m,ue,Qe,mt.ub),Qe+=mt.ub,lt-=mt.ub,mt.Rb&&(Dt.Ld=It(pt),Dt.Kd=It(pt)),Dt=h.Qa;var Ot,zt=h.Pa;if(u(pt!=null),u(Dt!=null),Dt.Cb=It(pt),Dt.Cb){if(Dt.Bb=It(pt),It(pt)){for(Dt.Fb=It(pt),Ot=0;4>Ot;++Ot)Dt.Zb[Ot]=It(pt)?gt(pt,7):0;for(Ot=0;4>Ot;++Ot)Dt.Lb[Ot]=It(pt)?gt(pt,6):0}if(Dt.Bb)for(Ot=0;3>Ot;++Ot)zt.jb[Ot]=It(pt)?st(pt,8):255}else Dt.Bb=0;if(pt.Ka)return qa(h,3,"cannot parse segment header");if((Dt=h.ed).zd=It(pt),Dt.Tb=st(pt,6),Dt.wb=st(pt,3),Dt.Pc=It(pt),Dt.Pc&&It(pt)){for(zt=0;4>zt;++zt)It(pt)&&(Dt.vd[zt]=gt(pt,6));for(zt=0;4>zt;++zt)It(pt)&&(Dt.od[zt]=gt(pt,6))}if(h.L=Dt.Tb==0?0:Dt.zd?1:2,pt.Ka)return qa(h,3,"cannot parse filter header");var fr=lt;if(lt=Ot=Qe,Qe=Ot+fr,Dt=fr,h.Xb=(1<<st(h.m,2))-1,fr<3*(zt=h.Xb))ue=7;else{for(Ot+=3*zt,Dt-=3*zt,fr=0;fr<zt;++fr){var Wr=ue[lt+0]|ue[lt+1]<<8|ue[lt+2]<<16;Wr>Dt&&(Wr=Dt),et(h.Jc[+fr],ue,Ot,Wr),Ot+=Wr,Dt-=Wr,lt+=3}et(h.Jc[+zt],ue,Ot,Dt),ue=Ot<Qe?0:5}if(ue!=0)return qa(h,ue,"cannot parse partitions");for(ue=st(Ot=h.m,7),lt=It(Ot)?gt(Ot,4):0,Qe=It(Ot)?gt(Ot,4):0,Dt=It(Ot)?gt(Ot,4):0,zt=It(Ot)?gt(Ot,4):0,Ot=It(Ot)?gt(Ot,4):0,fr=h.Qa,Wr=0;4>Wr;++Wr){if(fr.Cb){var Vr=fr.Zb[Wr];fr.Fb||(Vr+=ue)}else{if(0<Wr){h.pb[Wr]=h.pb[0];continue}Vr=ue}var Sr=h.pb[Wr];Sr.Sc[0]=lo[el(Vr+lt,127)],Sr.Sc[1]=Ms[el(Vr+0,127)],Sr.Eb[0]=2*lo[el(Vr+Qe,127)],Sr.Eb[1]=101581*Ms[el(Vr+Dt,127)]>>16,8>Sr.Eb[1]&&(Sr.Eb[1]=8),Sr.Qc[0]=lo[el(Vr+zt,117)],Sr.Qc[1]=Ms[el(Vr+Ot,127)],Sr.lc=Vr+Ot}if(!mt.Rb)return qa(h,4,"Not a key frame.");for(It(pt),mt=h.Pa,ue=0;4>ue;++ue){for(lt=0;8>lt;++lt)for(Qe=0;3>Qe;++Qe)for(Dt=0;11>Dt;++Dt)zt=br(pt,jc[ue][lt][Qe][Dt])?st(pt,8):Wc[ue][lt][Qe][Dt],mt.Wc[ue][lt].Yb[Qe][Dt]=zt;for(lt=0;17>lt;++lt)mt.Xc[ue][lt]=mt.Wc[ue][gA[lt]]}return h.kc=It(pt),h.kc&&(h.Bd=st(pt,8)),h.cb=1}function Ro(h,Q,ue,Qe,lt,pt,mt){var Dt=Q[lt].Yb[ue];for(ue=0;16>lt;++lt){if(!br(h,Dt[ue+0]))return lt;for(;!br(h,Dt[ue+1]);)if(Dt=Q[++lt].Yb[0],ue=0,lt==16)return 16;var Ot=Q[lt+1].Yb;if(br(h,Dt[ue+2])){var zt=h,fr=0;if(br(zt,(Vr=Dt)[(Wr=ue)+3]))if(br(zt,Vr[Wr+6])){for(Dt=0,Wr=2*(fr=br(zt,Vr[Wr+8]))+(Vr=br(zt,Vr[Wr+9+fr])),fr=0,Vr=dl[Wr];Vr[Dt];++Dt)fr+=fr+br(zt,Vr[Dt]);fr+=3+(8<<Wr)}else br(zt,Vr[Wr+7])?(fr=7+2*br(zt,165),fr+=br(zt,145)):fr=5+br(zt,159);else fr=br(zt,Vr[Wr+4])?3+br(zt,Vr[Wr+5]):2;Dt=Ot[2]}else fr=1,Dt=Ot[1];Ot=mt+_c[lt],0>(zt=h).b&&ur(zt);var Wr,Vr=zt.b,Sr=(Wr=zt.Ca>>1)-(zt.I>>Vr)>>31;--zt.b,zt.Ca+=Sr,zt.Ca|=1,zt.I-=(Wr+1&Sr)<<Vr,pt[Ot]=((fr^Sr)-Sr)*Qe[(0<lt)+0]}return 16}function po(h){var Q=h.rb[h.sb-1];Q.la=0,Q.Na=0,ne(h.zc,0,0,h.zc.length),h.ja=0}function Cl(h,Q){if(h==null)return 0;if(Q==null)return qa(h,2,"NULL VP8Io parameter in VP8Decode().");if(!h.cb&&!bo(h,Q))return 0;if(u(h.cb),Q.ac==null||Q.ac(Q)){Q.ob&&(h.L=0);var ue=ar[h.L];if(h.L==2?(h.yb=0,h.zb=0):(h.yb=Q.v-ue>>4,h.zb=Q.j-ue>>4,0>h.yb&&(h.yb=0),0>h.zb&&(h.zb=0)),h.Va=Q.o+15+ue>>4,h.Hb=Q.va+15+ue>>4,h.Hb>h.za&&(h.Hb=h.za),h.Va>h.Ub&&(h.Va=h.Ub),0<h.L){var Qe=h.ed;for(ue=0;4>ue;++ue){var lt;if(h.Qa.Cb){var pt=h.Qa.Lb[ue];h.Qa.Fb||(pt+=Qe.Tb)}else pt=Qe.Tb;for(lt=0;1>=lt;++lt){var mt=h.gd[ue][lt],Dt=pt;if(Qe.Pc&&(Dt+=Qe.vd[0],lt&&(Dt+=Qe.od[0])),0<(Dt=0>Dt?0:63<Dt?63:Dt)){var Ot=Dt;0<Qe.wb&&(Ot=4<Qe.wb?Ot>>2:Ot>>1)>9-Qe.wb&&(Ot=9-Qe.wb),1>Ot&&(Ot=1),mt.dd=Ot,mt.tc=2*Dt+Ot,mt.ld=40<=Dt?2:15<=Dt?1:0}else mt.tc=0;mt.La=lt}}}ue=0}else qa(h,6,"Frame setup failed"),ue=h.a;if(ue=ue==0){if(ue){h.$c=0,0<h.Aa||(h.Ic=Jr);e:{ue=h.Ic,Qe=4*(Ot=h.za);var zt=32*Ot,fr=Ot+1,Wr=0<h.L?Ot*(0<h.Aa?2:1):0,Vr=(h.Aa==2?2:1)*Ot;if((mt=Qe+832+(lt=3*(16*ue+ar[h.L])/2*zt)+(pt=h.Fa!=null&&0<h.Fa.length?h.Kc.c*h.Kc.i:0))!=mt)ue=0;else{if(mt>h.Vb){if(h.Vb=0,h.Ec=Z(mt),h.Fc=0,h.Ec==null){ue=qa(h,1,"no memory during frame initialization.");break e}h.Vb=mt}mt=h.Ec,Dt=h.Fc,h.Ac=mt,h.Bc=Dt,Dt+=Qe,h.Gd=ge(zt,fu),h.Hd=0,h.rb=ge(fr+1,al),h.sb=1,h.wa=Wr?ge(Wr,Ja):null,h.Y=0,h.D.Nb=0,h.D.wa=h.wa,h.D.Y=h.Y,0<h.Aa&&(h.D.Y+=Ot),u(!0),h.oc=mt,h.pc=Dt,Dt+=832,h.ya=ge(Vr,Vo),h.aa=0,h.D.ya=h.ya,h.D.aa=h.aa,h.Aa==2&&(h.D.aa+=Ot),h.R=16*Ot,h.B=8*Ot,Ot=(zt=ar[h.L])*h.R,zt=zt/2*h.B,h.sa=mt,h.ta=Dt+Ot,h.qa=h.sa,h.ra=h.ta+16*ue*h.R+zt,h.Ha=h.qa,h.Ia=h.ra+8*ue*h.B+zt,h.$c=0,Dt+=lt,h.mb=pt?mt:null,h.nb=pt?Dt:null,u(Dt+pt<=h.Fc+h.Vb),po(h),ne(h.Ac,h.Bc,0,Qe),ue=1}}if(ue){if(Q.ka=0,Q.y=h.sa,Q.O=h.ta,Q.f=h.qa,Q.N=h.ra,Q.ea=h.Ha,Q.Vd=h.Ia,Q.fa=h.R,Q.Rc=h.B,Q.F=null,Q.J=0,!Ft){for(ue=-255;255>=ue;++ue)Ve[255+ue]=0>ue?-ue:ue;for(ue=-1020;1020>=ue;++ue)Je[1020+ue]=-128>ue?-128:127<ue?127:ue;for(ue=-112;112>=ue;++ue)ut[112+ue]=-16>ue?-16:15<ue?15:ue;for(ue=-255;510>=ue;++ue)Ct[255+ue]=0>ue?0:255<ue?255:ue;Ft=1}mc=Ku,Cu=hu,Qu=sl,cl=pu,Hl=Tu,Eo=$u,gc=lc,Tc=Go,ec=Mc,Al=cc,d=kc,e=uc,t=Nu,r=ku,i=Pu,s=hl,l=Il,x=Ic,_u[0]=_l,_u[1]=zu,_u[2]=Fu,_u[3]=Du,_u[4]=Lu,_u[5]=Xl,_u[6]=yu,_u[7]=Jl,_u[8]=Ho,_u[9]=Bl,zl[0]=vu,zl[1]=Gu,zl[2]=kl,zl[3]=gu,zl[4]=ko,zl[5]=yc,zl[6]=Zu,tc[0]=ql,tc[1]=Nl,tc[2]=ws,tc[3]=ol,tc[4]=As,tc[5]=$a,tc[6]=zo,ue=1}else ue=0}ue&&(ue=function(Sr,Wn){for(Sr.M=0;Sr.M<Sr.Va;++Sr.M){var On,Nr=Sr.Jc[Sr.M&Sr.Xb],Lr=Sr.m,Vn=Sr;for(On=0;On<Vn.za;++On){var gi=Lr,ei=Vn,Vi=ei.Ac,Gi=ei.Bc+4*On,ga=ei.zc,Yi=ei.ya[ei.aa+On];if(ei.Qa.Bb?Yi.$b=br(gi,ei.Pa.jb[0])?2+br(gi,ei.Pa.jb[2]):br(gi,ei.Pa.jb[1]):Yi.$b=0,ei.kc&&(Yi.Ad=br(gi,ei.Bd)),Yi.Za=!br(gi,145)+0,Yi.Za){var Ss=Yi.Ob,Fs=0;for(ei=0;4>ei;++ei){var ds,us=ga[0+ei];for(ds=0;4>ds;++ds){us=Dc[Vi[Gi+ds]][us];for(var Ds=Fc[br(gi,us[0])];0<Ds;)Ds=Fc[2*Ds+br(gi,us[Ds])];us=-Ds,Vi[Gi+ds]=us}M(Ss,Fs,Vi,Gi,4),Fs+=4,ga[0+ei]=us}}else us=br(gi,156)?br(gi,128)?1:3:br(gi,163)?2:0,Yi.Ob[0]=us,ne(Vi,Gi,us,4),ne(ga,0,us,4);Yi.Dd=br(gi,142)?br(gi,114)?br(gi,183)?1:3:2:0}if(Vn.m.Ka)return qa(Sr,7,"Premature end-of-partition0 encountered.");for(;Sr.ja<Sr.za;++Sr.ja){if(Vn=Nr,gi=(Lr=Sr).rb[Lr.sb-1],Vi=Lr.rb[Lr.sb+Lr.ja],On=Lr.ya[Lr.aa+Lr.ja],Gi=Lr.kc?On.Ad:0)gi.la=Vi.la=0,On.Za||(gi.Na=Vi.Na=0),On.Hc=0,On.Gc=0,On.ia=0;else{var Us,Ga;if(gi=Vi,Vi=Vn,Gi=Lr.Pa.Xc,ga=Lr.ya[Lr.aa+Lr.ja],Yi=Lr.pb[ga.$b],ei=ga.ad,Ss=0,Fs=Lr.rb[Lr.sb-1],us=ds=0,ne(ei,Ss,0,384),ga.Za)var tl=0,lu=Gi[3];else{Ds=Z(16);var rl=gi.Na+Fs.Na;if(rl=Fo(Vi,Gi[1],rl,Yi.Eb,0,Ds,0),gi.Na=Fs.Na=(0<rl)+0,1<rl)mc(Ds,0,ei,Ss);else{var uu=Ds[0]+3>>3;for(Ds=0;256>Ds;Ds+=16)ei[Ss+Ds]=uu}tl=1,lu=Gi[0]}var uo=15&gi.la,Bu=15&Fs.la;for(Ds=0;4>Ds;++Ds){var Su=1&Bu;for(uu=Ga=0;4>uu;++uu)uo=uo>>1|(Su=(rl=Fo(Vi,lu,rl=Su+(1&uo),Yi.Sc,tl,ei,Ss))>tl)<<7,Ga=Ga<<2|(3<rl?3:1<rl?2:ei[Ss+0]!=0),Ss+=16;uo>>=4,Bu=Bu>>1|Su<<7,ds=(ds<<8|Ga)>>>0}for(lu=uo,tl=Bu>>4,Us=0;4>Us;Us+=2){for(Ga=0,uo=gi.la>>4+Us,Bu=Fs.la>>4+Us,Ds=0;2>Ds;++Ds){for(Su=1&Bu,uu=0;2>uu;++uu)rl=Su+(1&uo),uo=uo>>1|(Su=0<(rl=Fo(Vi,Gi[2],rl,Yi.Qc,0,ei,Ss)))<<3,Ga=Ga<<2|(3<rl?3:1<rl?2:ei[Ss+0]!=0),Ss+=16;uo>>=2,Bu=Bu>>1|Su<<5}us|=Ga<<4*Us,lu|=uo<<4<<Us,tl|=(240&Bu)<<Us}gi.la=lu,Fs.la=tl,ga.Hc=ds,ga.Gc=us,ga.ia=43690&us?0:Yi.ia,Gi=!(ds|us)}if(0<Lr.L&&(Lr.wa[Lr.Y+Lr.ja]=Lr.gd[On.$b][On.Za],Lr.wa[Lr.Y+Lr.ja].La|=!Gi),Vn.Ka)return qa(Sr,7,"Premature end-of-file encountered.")}if(po(Sr),Lr=Wn,Vn=1,On=(Nr=Sr).D,gi=0<Nr.L&&Nr.M>=Nr.zb&&Nr.M<=Nr.Va,Nr.Aa==0)e:{if(On.M=Nr.M,On.uc=gi,hc(Nr,On),Vn=1,On=(Ga=Nr.D).Nb,gi=(us=ar[Nr.L])*Nr.R,Vi=us/2*Nr.B,Ds=16*On*Nr.R,uu=8*On*Nr.B,Gi=Nr.sa,ga=Nr.ta-gi+Ds,Yi=Nr.qa,ei=Nr.ra-Vi+uu,Ss=Nr.Ha,Fs=Nr.Ia-Vi+uu,Bu=(uo=Ga.M)==0,ds=uo>=Nr.Va-1,Nr.Aa==2&&hc(Nr,Ga),Ga.uc)for(Su=(rl=Nr).D.M,u(rl.D.uc),Ga=rl.yb;Ga<rl.Hb;++Ga){tl=Ga,lu=Su;var ml=(Fl=(Zo=rl).D).Nb;Us=Zo.R;var Fl=Fl.wa[Fl.Y+tl],Gl=Zo.sa,ju=Zo.ta+16*ml*Us+16*tl,vc=Fl.dd,gl=Fl.tc;if(gl!=0)if(u(3<=gl),Zo.L==1)0<tl&&s(Gl,ju,Us,gl+4),Fl.La&&x(Gl,ju,Us,gl),0<lu&&i(Gl,ju,Us,gl+4),Fl.La&&l(Gl,ju,Us,gl);else{var Bc=Zo.B,Qc=Zo.qa,Kc=Zo.ra+8*ml*Bc+8*tl,Lc=Zo.Ha,Zo=Zo.Ia+8*ml*Bc+8*tl;ml=Fl.ld,0<tl&&(Tc(Gl,ju,Us,gl+4,vc,ml),Al(Qc,Kc,Lc,Zo,Bc,gl+4,vc,ml)),Fl.La&&(e(Gl,ju,Us,gl,vc,ml),r(Qc,Kc,Lc,Zo,Bc,gl,vc,ml)),0<lu&&(gc(Gl,ju,Us,gl+4,vc,ml),ec(Qc,Kc,Lc,Zo,Bc,gl+4,vc,ml)),Fl.La&&(d(Gl,ju,Us,gl,vc,ml),t(Qc,Kc,Lc,Zo,Bc,gl,vc,ml))}}if(Nr.ia&&alert("todo:DitherRow"),Lr.put!=null){if(Ga=16*uo,uo=16*(uo+1),Bu?(Lr.y=Nr.sa,Lr.O=Nr.ta+Ds,Lr.f=Nr.qa,Lr.N=Nr.ra+uu,Lr.ea=Nr.Ha,Lr.W=Nr.Ia+uu):(Ga-=us,Lr.y=Gi,Lr.O=ga,Lr.f=Yi,Lr.N=ei,Lr.ea=Ss,Lr.W=Fs),ds||(uo-=us),uo>Lr.o&&(uo=Lr.o),Lr.F=null,Lr.J=null,Nr.Fa!=null&&0<Nr.Fa.length&&Ga<uo&&(Lr.J=fc(Nr,Lr,Ga,uo-Ga),Lr.F=Nr.mb,Lr.F==null&&Lr.F.length==0)){Vn=qa(Nr,3,"Could not decode alpha data.");break e}Ga<Lr.j&&(us=Lr.j-Ga,Ga=Lr.j,u(!(1&us)),Lr.O+=Nr.R*us,Lr.N+=Nr.B*(us>>1),Lr.W+=Nr.B*(us>>1),Lr.F!=null&&(Lr.J+=Lr.width*us)),Ga<uo&&(Lr.O+=Lr.v,Lr.N+=Lr.v>>1,Lr.W+=Lr.v>>1,Lr.F!=null&&(Lr.J+=Lr.v),Lr.ka=Ga-Lr.j,Lr.U=Lr.va-Lr.v,Lr.T=uo-Ga,Vn=Lr.put(Lr))}On+1!=Nr.Ic||ds||(M(Nr.sa,Nr.ta-gi,Gi,ga+16*Nr.R,gi),M(Nr.qa,Nr.ra-Vi,Yi,ei+8*Nr.B,Vi),M(Nr.Ha,Nr.Ia-Vi,Ss,Fs+8*Nr.B,Vi))}if(!Vn)return qa(Sr,6,"Output aborted.")}return 1}(h,Q)),Q.bc!=null&&Q.bc(Q),ue&=1}return ue?(h.cb=0,ue):0}function Ko(h,Q,ue,Qe,lt){lt=h[Q+ue+32*Qe]+(lt>>3),h[Q+ue+32*Qe]=-256<?0>lt?0:255:lt}function Vl(h,Q,ue,Qe,lt,pt){Ko(h,Q,0,ue,Qe+lt),Ko(h,Q,1,ue,Qe+pt),Ko(h,Q,2,ue,Qe-pt),Ko(h,Q,3,ue,Qe-lt)}function No(h){return(20091*h>>16)+h}function Yl(h,Q,ue,Qe){var lt,pt=0,mt=Z(16);for(lt=0;4>lt;++lt){var Dt=h[Q+0]+h[Q+8],Ot=h[Q+0]-h[Q+8],zt=(35468*h[Q+4]>>16)-No(h[Q+12]),fr=No(h[Q+4])+(35468*h[Q+12]>>16);mt[pt+0]=Dt+fr,mt[pt+1]=Ot+zt,mt[pt+2]=Ot-zt,mt[pt+3]=Dt-fr,pt+=4,Q++}for(lt=pt=0;4>lt;++lt)Dt=(h=mt[pt+0]+4)+mt[pt+8],Ot=h-mt[pt+8],zt=(35468*mt[pt+4]>>16)-No(mt[pt+12]),Ko(ue,Qe,0,0,Dt+(fr=No(mt[pt+4])+(35468*mt[pt+12]>>16))),Ko(ue,Qe,1,0,Ot+zt),Ko(ue,Qe,2,0,Ot-zt),Ko(ue,Qe,3,0,Dt-fr),pt++,Qe+=32}function $u(h,Q,ue,Qe){var lt=h[Q+0]+4,pt=35468*h[Q+4]>>16,mt=No(h[Q+4]),Dt=35468*h[Q+1]>>16;Vl(ue,Qe,0,lt+mt,h=No(h[Q+1]),Dt),Vl(ue,Qe,1,lt+pt,h,Dt),Vl(ue,Qe,2,lt-pt,h,Dt),Vl(ue,Qe,3,lt-mt,h,Dt)}function hu(h,Q,ue,Qe,lt){Yl(h,Q,ue,Qe),lt&&Yl(h,Q+16,ue,Qe+4)}function sl(h,Q,ue,Qe){Cu(h,Q+0,ue,Qe,1),Cu(h,Q+32,ue,Qe+128,1)}function pu(h,Q,ue,Qe){var lt;for(h=h[Q+0]+4,lt=0;4>lt;++lt)for(Q=0;4>Q;++Q)Ko(ue,Qe,Q,lt,h)}function Tu(h,Q,ue,Qe){h[Q+0]&&cl(h,Q+0,ue,Qe),h[Q+16]&&cl(h,Q+16,ue,Qe+4),h[Q+32]&&cl(h,Q+32,ue,Qe+128),h[Q+48]&&cl(h,Q+48,ue,Qe+128+4)}function Ku(h,Q,ue,Qe){var lt,pt=Z(16);for(lt=0;4>lt;++lt){var mt=h[Q+0+lt]+h[Q+12+lt],Dt=h[Q+4+lt]+h[Q+8+lt],Ot=h[Q+4+lt]-h[Q+8+lt],zt=h[Q+0+lt]-h[Q+12+lt];pt[0+lt]=mt+Dt,pt[8+lt]=mt-Dt,pt[4+lt]=zt+Ot,pt[12+lt]=zt-Ot}for(lt=0;4>lt;++lt)mt=(h=pt[0+4*lt]+3)+pt[3+4*lt],Dt=pt[1+4*lt]+pt[2+4*lt],Ot=pt[1+4*lt]-pt[2+4*lt],zt=h-pt[3+4*lt],ue[Qe+0]=mt+Dt>>3,ue[Qe+16]=zt+Ot>>3,ue[Qe+32]=mt-Dt>>3,ue[Qe+48]=zt-Ot>>3,Qe+=64}function mu(h,Q,ue){var Qe,lt=Q-32,pt=Fr,mt=255-h[lt-1];for(Qe=0;Qe<ue;++Qe){var Dt,Ot=pt,zt=mt+h[Q-1];for(Dt=0;Dt<ue;++Dt)h[Q+Dt]=Ot[zt+h[lt+Dt]];Q+=32}}function zu(h,Q){mu(h,Q,4)}function Nl(h,Q){mu(h,Q,8)}function Gu(h,Q){mu(h,Q,16)}function kl(h,Q){var ue;for(ue=0;16>ue;++ue)M(h,Q+32*ue,h,Q-32,16)}function gu(h,Q){var ue;for(ue=16;0<ue;--ue)ne(h,Q,h[Q-1],16),Q+=32}function Io(h,Q,ue){var Qe;for(Qe=0;16>Qe;++Qe)ne(Q,ue+32*Qe,h,16)}function vu(h,Q){var ue,Qe=16;for(ue=0;16>ue;++ue)Qe+=h[Q-1+32*ue]+h[Q+ue-32];Io(Qe>>5,h,Q)}function ko(h,Q){var ue,Qe=8;for(ue=0;16>ue;++ue)Qe+=h[Q-1+32*ue];Io(Qe>>4,h,Q)}function yc(h,Q){var ue,Qe=8;for(ue=0;16>ue;++ue)Qe+=h[Q+ue-32];Io(Qe>>4,h,Q)}function Zu(h,Q){Io(128,h,Q)}function Oa(h,Q,ue){return h+2*Q+ue+2>>2}function Fu(h,Q){var ue,Qe=Q-32;for(Qe=new Uint8Array([Oa(h[Qe-1],h[Qe+0],h[Qe+1]),Oa(h[Qe+0],h[Qe+1],h[Qe+2]),Oa(h[Qe+1],h[Qe+2],h[Qe+3]),Oa(h[Qe+2],h[Qe+3],h[Qe+4])]),ue=0;4>ue;++ue)M(h,Q+32*ue,Qe,0,Qe.length)}function Du(h,Q){var ue=h[Q-1],Qe=h[Q-1+32],lt=h[Q-1+64],pt=h[Q-1+96];Gr(h,Q+0,16843009*Oa(h[Q-1-32],ue,Qe)),Gr(h,Q+32,16843009*Oa(ue,Qe,lt)),Gr(h,Q+64,16843009*Oa(Qe,lt,pt)),Gr(h,Q+96,16843009*Oa(lt,pt,pt))}function _l(h,Q){var ue,Qe=4;for(ue=0;4>ue;++ue)Qe+=h[Q+ue-32]+h[Q-1+32*ue];for(Qe>>=3,ue=0;4>ue;++ue)ne(h,Q+32*ue,Qe,4)}function Lu(h,Q){var ue=h[Q-1+0],Qe=h[Q-1+32],lt=h[Q-1+64],pt=h[Q-1-32],mt=h[Q+0-32],Dt=h[Q+1-32],Ot=h[Q+2-32],zt=h[Q+3-32];h[Q+0+96]=Oa(Qe,lt,h[Q-1+96]),h[Q+1+96]=h[Q+0+64]=Oa(ue,Qe,lt),h[Q+2+96]=h[Q+1+64]=h[Q+0+32]=Oa(pt,ue,Qe),h[Q+3+96]=h[Q+2+64]=h[Q+1+32]=h[Q+0+0]=Oa(mt,pt,ue),h[Q+3+64]=h[Q+2+32]=h[Q+1+0]=Oa(Dt,mt,pt),h[Q+3+32]=h[Q+2+0]=Oa(Ot,Dt,mt),h[Q+3+0]=Oa(zt,Ot,Dt)}function yu(h,Q){var ue=h[Q+1-32],Qe=h[Q+2-32],lt=h[Q+3-32],pt=h[Q+4-32],mt=h[Q+5-32],Dt=h[Q+6-32],Ot=h[Q+7-32];h[Q+0+0]=Oa(h[Q+0-32],ue,Qe),h[Q+1+0]=h[Q+0+32]=Oa(ue,Qe,lt),h[Q+2+0]=h[Q+1+32]=h[Q+0+64]=Oa(Qe,lt,pt),h[Q+3+0]=h[Q+2+32]=h[Q+1+64]=h[Q+0+96]=Oa(lt,pt,mt),h[Q+3+32]=h[Q+2+64]=h[Q+1+96]=Oa(pt,mt,Dt),h[Q+3+64]=h[Q+2+96]=Oa(mt,Dt,Ot),h[Q+3+96]=Oa(Dt,Ot,Ot)}function Xl(h,Q){var ue=h[Q-1+0],Qe=h[Q-1+32],lt=h[Q-1+64],pt=h[Q-1-32],mt=h[Q+0-32],Dt=h[Q+1-32],Ot=h[Q+2-32],zt=h[Q+3-32];h[Q+0+0]=h[Q+1+64]=pt+mt+1>>1,h[Q+1+0]=h[Q+2+64]=mt+Dt+1>>1,h[Q+2+0]=h[Q+3+64]=Dt+Ot+1>>1,h[Q+3+0]=Ot+zt+1>>1,h[Q+0+96]=Oa(lt,Qe,ue),h[Q+0+64]=Oa(Qe,ue,pt),h[Q+0+32]=h[Q+1+96]=Oa(ue,pt,mt),h[Q+1+32]=h[Q+2+96]=Oa(pt,mt,Dt),h[Q+2+32]=h[Q+3+96]=Oa(mt,Dt,Ot),h[Q+3+32]=Oa(Dt,Ot,zt)}function Jl(h,Q){var ue=h[Q+0-32],Qe=h[Q+1-32],lt=h[Q+2-32],pt=h[Q+3-32],mt=h[Q+4-32],Dt=h[Q+5-32],Ot=h[Q+6-32],zt=h[Q+7-32];h[Q+0+0]=ue+Qe+1>>1,h[Q+1+0]=h[Q+0+64]=Qe+lt+1>>1,h[Q+2+0]=h[Q+1+64]=lt+pt+1>>1,h[Q+3+0]=h[Q+2+64]=pt+mt+1>>1,h[Q+0+32]=Oa(ue,Qe,lt),h[Q+1+32]=h[Q+0+96]=Oa(Qe,lt,pt),h[Q+2+32]=h[Q+1+96]=Oa(lt,pt,mt),h[Q+3+32]=h[Q+2+96]=Oa(pt,mt,Dt),h[Q+3+64]=Oa(mt,Dt,Ot),h[Q+3+96]=Oa(Dt,Ot,zt)}function Bl(h,Q){var ue=h[Q-1+0],Qe=h[Q-1+32],lt=h[Q-1+64],pt=h[Q-1+96];h[Q+0+0]=ue+Qe+1>>1,h[Q+2+0]=h[Q+0+32]=Qe+lt+1>>1,h[Q+2+32]=h[Q+0+64]=lt+pt+1>>1,h[Q+1+0]=Oa(ue,Qe,lt),h[Q+3+0]=h[Q+1+32]=Oa(Qe,lt,pt),h[Q+3+32]=h[Q+1+64]=Oa(lt,pt,pt),h[Q+3+64]=h[Q+2+64]=h[Q+0+96]=h[Q+1+96]=h[Q+2+96]=h[Q+3+96]=pt}function Ho(h,Q){var ue=h[Q-1+0],Qe=h[Q-1+32],lt=h[Q-1+64],pt=h[Q-1+96],mt=h[Q-1-32],Dt=h[Q+0-32],Ot=h[Q+1-32],zt=h[Q+2-32];h[Q+0+0]=h[Q+2+32]=ue+mt+1>>1,h[Q+0+32]=h[Q+2+64]=Qe+ue+1>>1,h[Q+0+64]=h[Q+2+96]=lt+Qe+1>>1,h[Q+0+96]=pt+lt+1>>1,h[Q+3+0]=Oa(Dt,Ot,zt),h[Q+2+0]=Oa(mt,Dt,Ot),h[Q+1+0]=h[Q+3+32]=Oa(ue,mt,Dt),h[Q+1+32]=h[Q+3+64]=Oa(Qe,ue,mt),h[Q+1+64]=h[Q+3+96]=Oa(lt,Qe,ue),h[Q+1+96]=Oa(pt,lt,Qe)}function ws(h,Q){var ue;for(ue=0;8>ue;++ue)M(h,Q+32*ue,h,Q-32,8)}function ol(h,Q){var ue;for(ue=0;8>ue;++ue)ne(h,Q,h[Q-1],8),Q+=32}function qo(h,Q,ue){var Qe;for(Qe=0;8>Qe;++Qe)ne(Q,ue+32*Qe,h,8)}function ql(h,Q){var ue,Qe=8;for(ue=0;8>ue;++ue)Qe+=h[Q+ue-32]+h[Q-1+32*ue];qo(Qe>>4,h,Q)}function $a(h,Q){var ue,Qe=4;for(ue=0;8>ue;++ue)Qe+=h[Q+ue-32];qo(Qe>>3,h,Q)}function As(h,Q){var ue,Qe=4;for(ue=0;8>ue;++ue)Qe+=h[Q-1+32*ue];qo(Qe>>3,h,Q)}function zo(h,Q){qo(128,h,Q)}function ll(h,Q,ue){var Qe=h[Q-ue],lt=h[Q+0],pt=3*(lt-Qe)+gr[1020+h[Q-2*ue]-h[Q+ue]],mt=Or[112+(pt+4>>3)];h[Q-ue]=Fr[255+Qe+Or[112+(pt+3>>3)]],h[Q+0]=Fr[255+lt-mt]}function Sl(h,Q,ue,Qe){var lt=h[Q+0],pt=h[Q+ue];return Un[255+h[Q-2*ue]-h[Q-ue]]>Qe||Un[255+pt-lt]>Qe}function Ru(h,Q,ue,Qe){return 4*Un[255+h[Q-ue]-h[Q+0]]+Un[255+h[Q-2*ue]-h[Q+ue]]<=Qe}function Ou(h,Q,ue,Qe,lt){var pt=h[Q-3*ue],mt=h[Q-2*ue],Dt=h[Q-ue],Ot=h[Q+0],zt=h[Q+ue],fr=h[Q+2*ue],Wr=h[Q+3*ue];return 4*Un[255+Dt-Ot]+Un[255+mt-zt]>Qe?0:Un[255+h[Q-4*ue]-pt]<=lt&&Un[255+pt-mt]<=lt&&Un[255+mt-Dt]<=lt&&Un[255+Wr-fr]<=lt&&Un[255+fr-zt]<=lt&&Un[255+zt-Ot]<=lt}function Pu(h,Q,ue,Qe){var lt=2*Qe+1;for(Qe=0;16>Qe;++Qe)Ru(h,Q+Qe,ue,lt)&&ll(h,Q+Qe,ue)}function hl(h,Q,ue,Qe){var lt=2*Qe+1;for(Qe=0;16>Qe;++Qe)Ru(h,Q+Qe*ue,1,lt)&&ll(h,Q+Qe*ue,1)}function Il(h,Q,ue,Qe){var lt;for(lt=3;0<lt;--lt)Pu(h,Q+=4*ue,ue,Qe)}function Ic(h,Q,ue,Qe){var lt;for(lt=3;0<lt;--lt)hl(h,Q+=4,ue,Qe)}function bu(h,Q,ue,Qe,lt,pt,mt,Dt){for(pt=2*pt+1;0<lt--;){if(Ou(h,Q,ue,pt,mt))if(Sl(h,Q,ue,Dt))ll(h,Q,ue);else{var Ot=h,zt=Q,fr=ue,Wr=Ot[zt-2*fr],Vr=Ot[zt-fr],Sr=Ot[zt+0],Wn=Ot[zt+fr],On=Ot[zt+2*fr],Nr=27*(Vn=gr[1020+3*(Sr-Vr)+gr[1020+Wr-Wn]])+63>>7,Lr=18*Vn+63>>7,Vn=9*Vn+63>>7;Ot[zt-3*fr]=Fr[255+Ot[zt-3*fr]+Vn],Ot[zt-2*fr]=Fr[255+Wr+Lr],Ot[zt-fr]=Fr[255+Vr+Nr],Ot[zt+0]=Fr[255+Sr-Nr],Ot[zt+fr]=Fr[255+Wn-Lr],Ot[zt+2*fr]=Fr[255+On-Vn]}Q+=Qe}}function Ml(h,Q,ue,Qe,lt,pt,mt,Dt){for(pt=2*pt+1;0<lt--;){if(Ou(h,Q,ue,pt,mt))if(Sl(h,Q,ue,Dt))ll(h,Q,ue);else{var Ot=h,zt=Q,fr=ue,Wr=Ot[zt-fr],Vr=Ot[zt+0],Sr=Ot[zt+fr],Wn=Or[112+((On=3*(Vr-Wr))+4>>3)],On=Or[112+(On+3>>3)],Nr=Wn+1>>1;Ot[zt-2*fr]=Fr[255+Ot[zt-2*fr]+Nr],Ot[zt-fr]=Fr[255+Wr+On],Ot[zt+0]=Fr[255+Vr-Wn],Ot[zt+fr]=Fr[255+Sr-Nr]}Q+=Qe}}function lc(h,Q,ue,Qe,lt,pt){bu(h,Q,ue,1,16,Qe,lt,pt)}function Go(h,Q,ue,Qe,lt,pt){bu(h,Q,1,ue,16,Qe,lt,pt)}function kc(h,Q,ue,Qe,lt,pt){var mt;for(mt=3;0<mt;--mt)Ml(h,Q+=4*ue,ue,1,16,Qe,lt,pt)}function uc(h,Q,ue,Qe,lt,pt){var mt;for(mt=3;0<mt;--mt)Ml(h,Q+=4,1,ue,16,Qe,lt,pt)}function Mc(h,Q,ue,Qe,lt,pt,mt,Dt){bu(h,Q,lt,1,8,pt,mt,Dt),bu(ue,Qe,lt,1,8,pt,mt,Dt)}function cc(h,Q,ue,Qe,lt,pt,mt,Dt){bu(h,Q,1,lt,8,pt,mt,Dt),bu(ue,Qe,1,lt,8,pt,mt,Dt)}function Nu(h,Q,ue,Qe,lt,pt,mt,Dt){Ml(h,Q+4*lt,lt,1,8,pt,mt,Dt),Ml(ue,Qe+4*lt,lt,1,8,pt,mt,Dt)}function ku(h,Q,ue,Qe,lt,pt,mt,Dt){Ml(h,Q+4,1,lt,8,pt,mt,Dt),Ml(ue,Qe+4,1,lt,8,pt,mt,Dt)}function Ac(){this.ba=new kn,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new bi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function dc(){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 Wu(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function bc(){this.ua=0,this.Wa=new ir,this.vb=new ir,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Ee,this.yc=new nr}function wc(){this.xb=this.a=0,this.l=new Ma,this.ca=new kn,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new ze,this.Pb=0,this.wd=new ze,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new bc,this.ab=0,this.gc=ge(4,Wu),this.Oc=0}function wu(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ma,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function xu(h,Q,ue,Qe,lt,pt,mt){for(h=h==null?0:h[Q+0],Q=0;Q<mt;++Q)lt[pt+Q]=h+ue[Qe+Q]&255,h=lt[pt+Q]}function eu(h,Q,ue,Qe,lt,pt,mt){var Dt;if(h==null)xu(null,null,ue,Qe,lt,pt,mt);else for(Dt=0;Dt<mt;++Dt)lt[pt+Dt]=h[Q+Dt]+ue[Qe+Dt]&255}function tu(h,Q,ue,Qe,lt,pt,mt){if(h==null)xu(null,null,ue,Qe,lt,pt,mt);else{var Dt,Ot=h[Q+0],zt=Ot,fr=Ot;for(Dt=0;Dt<mt;++Dt)zt=fr+(Ot=h[Q+Dt])-zt,fr=ue[Qe+Dt]+(-256&zt?0>zt?0:255:zt)&255,zt=Ot,lt[pt+Dt]=fr}}function fc(h,Q,ue,Qe){var lt=Q.width,pt=Q.o;if(u(h!=null&&Q!=null),0>ue||0>=Qe||ue+Qe>pt)return null;if(!h.Cc){if(h.ga==null){var mt;if(h.ga=new wu,(mt=h.ga==null)||(mt=Q.width*Q.o,u(h.Gb.length==0),h.Gb=Z(mt),h.Uc=0,h.Gb==null?mt=0:(h.mb=h.Gb,h.nb=h.Uc,h.rc=null,mt=1),mt=!mt),!mt){mt=h.ga;var Dt=h.Fa,Ot=h.P,zt=h.qc,fr=h.mb,Wr=h.nb,Vr=Ot+1,Sr=zt-1,Wn=mt.l;if(u(Dt!=null&&fr!=null&&Q!=null),rc[0]=null,rc[1]=xu,rc[2]=eu,rc[3]=tu,mt.ca=fr,mt.tb=Wr,mt.c=Q.width,mt.i=Q.height,u(0<mt.c&&0<mt.i),1>=zt)Q=0;else if(mt.$a=Dt[Ot+0]>>0&3,mt.Z=Dt[Ot+0]>>2&3,mt.Lc=Dt[Ot+0]>>4&3,Ot=Dt[Ot+0]>>6&3,0>mt.$a||1<mt.$a||4<=mt.Z||1<mt.Lc||Ot)Q=0;else if(Wn.put=Sa,Wn.ac=Ki,Wn.bc=Ia,Wn.ma=mt,Wn.width=Q.width,Wn.height=Q.height,Wn.Da=Q.Da,Wn.v=Q.v,Wn.va=Q.va,Wn.j=Q.j,Wn.o=Q.o,mt.$a)e:{u(mt.$a==1),Q=bs();t:for(;;){if(Q==null){Q=0;break e}if(u(mt!=null),mt.mc=Q,Q.c=mt.c,Q.i=mt.i,Q.l=mt.l,Q.l.ma=mt,Q.l.width=mt.c,Q.l.height=mt.i,Q.a=0,ht(Q.m,Dt,Vr,Sr),!Hs(mt.c,mt.i,1,Q,null)||(Q.ab==1&&Q.gc[0].hc==3&&xa(Q.s)?(mt.ic=1,Dt=Q.c*Q.i,Q.Ta=null,Q.Ua=0,Q.V=Z(Dt),Q.Ba=0,Q.V==null?(Q.a=1,Q=0):Q=1):(mt.ic=0,Q=Zs(Q,mt.c)),!Q))break t;Q=1;break e}mt.mc=null,Q=0}else Q=Sr>=mt.c*mt.i;mt=!Q}if(mt)return null;h.ga.Lc!=1?h.Ga=0:Qe=pt-ue}u(h.ga!=null),u(ue+Qe<=pt);e:{if(Q=(Dt=h.ga).c,pt=Dt.l.o,Dt.$a==0){if(Vr=h.rc,Sr=h.Vc,Wn=h.Fa,Ot=h.P+1+ue*Q,zt=h.mb,fr=h.nb+ue*Q,u(Ot<=h.P+h.qc),Dt.Z!=0)for(u(rc[Dt.Z]!=null),mt=0;mt<Qe;++mt)rc[Dt.Z](Vr,Sr,Wn,Ot,zt,fr,Q),Vr=zt,Sr=fr,fr+=Q,Ot+=Q;else for(mt=0;mt<Qe;++mt)M(zt,fr,Wn,Ot,Q),Vr=zt,Sr=fr,fr+=Q,Ot+=Q;h.rc=Vr,h.Vc=Sr}else{if(u(Dt.mc!=null),Q=ue+Qe,u((mt=Dt.mc)!=null),u(Q<=mt.i),mt.C>=Q)Q=1;else if(Dt.ic||un(),Dt.ic){Dt=mt.V,Vr=mt.Ba,Sr=mt.c;var On=mt.i,Nr=(Wn=1,Ot=mt.$/Sr,zt=mt.$%Sr,fr=mt.m,Wr=mt.s,mt.$),Lr=Sr*On,Vn=Sr*Q,gi=Wr.wc,ei=Nr<Vn?os(Wr,zt,Ot):null;u(Nr<=Lr),u(Q<=On),u(xa(Wr));t:for(;;){for(;!fr.h&&Nr<Vn;){if(zt&gi||(ei=os(Wr,zt,Ot)),u(ei!=null),Wt(fr),256>(On=si(ei.G[0],ei.H[0],fr)))Dt[Vr+Nr]=On,++Nr,++zt>=Sr&&(zt=0,++Ot<=Q&&!(Ot%16)&&ls(mt,Ot));else{if(!(280>On)){Wn=0;break t}On=Ta(On-256,fr);var Vi,Gi=si(ei.G[4],ei.H[4],fr);if(Wt(fr),!(Nr>=(Gi=Ba(Sr,Gi=Ta(Gi,fr)))&&Lr-Nr>=On)){Wn=0;break t}for(Vi=0;Vi<On;++Vi)Dt[Vr+Nr+Vi]=Dt[Vr+Nr+Vi-Gi];for(Nr+=On,zt+=On;zt>=Sr;)zt-=Sr,++Ot<=Q&&!(Ot%16)&&ls(mt,Ot);Nr<Vn&&zt&gi&&(ei=os(Wr,zt,Ot))}u(fr.h==wt(fr))}ls(mt,Ot>Q?Q:Ot);break t}!Wn||fr.h&&Nr<Lr?(Wn=0,mt.a=fr.h?5:3):mt.$=Nr,Q=Wn}else Q=da(mt,mt.V,mt.Ba,mt.c,mt.i,Q,Xs);if(!Q){Qe=0;break e}}ue+Qe>=pt&&(h.Cc=1),Qe=1}if(!Qe)return null;if(h.Cc&&((Qe=h.ga)!=null&&(Qe.mc=null),h.ga=null,0<h.Ga))return alert("todo:WebPDequantizeLevels"),null}return h.nb+ue*lt}function Ae(h,Q,ue,Qe,lt,pt){for(;0<lt--;){var mt,Dt=h,Ot=Q+(ue?1:0),zt=h,fr=Q+(ue?0:3);for(mt=0;mt<Qe;++mt){var Wr=zt[fr+4*mt];Wr!=255&&(Wr*=32897,Dt[Ot+4*mt+0]=Dt[Ot+4*mt+0]*Wr>>23,Dt[Ot+4*mt+1]=Dt[Ot+4*mt+1]*Wr>>23,Dt[Ot+4*mt+2]=Dt[Ot+4*mt+2]*Wr>>23)}Q+=pt}}function Et(h,Q,ue,Qe,lt){for(;0<Qe--;){var pt;for(pt=0;pt<ue;++pt){var mt=h[Q+2*pt+0],Dt=15&(zt=h[Q+2*pt+1]),Ot=4369*Dt,zt=(240&zt|zt>>4)*Ot>>16;h[Q+2*pt+0]=(240&mt|mt>>4)*Ot>>16&240|(15&mt|mt<<4)*Ot>>16>>4&15,h[Q+2*pt+1]=240&zt|Dt}Q+=lt}}function mr(h,Q,ue,Qe,lt,pt,mt,Dt){var Ot,zt,fr=255;for(zt=0;zt<lt;++zt){for(Ot=0;Ot<Qe;++Ot){var Wr=h[Q+Ot];pt[mt+4*Ot]=Wr,fr&=Wr}Q+=ue,mt+=Dt}return fr!=255}function Rr(h,Q,ue,Qe,lt){var pt;for(pt=0;pt<lt;++pt)ue[Qe+pt]=h[Q+pt]>>8}function un(){j=Ae,J=Et,fe=mr,Oe=Rr}function Kn(h,Q,ue){Br[h]=function(Qe,lt,pt,mt,Dt,Ot,zt,fr,Wr,Vr,Sr,Wn,On,Nr,Lr,Vn,gi){var ei,Vi=gi-1>>1,Gi=Dt[Ot+0]|zt[fr+0]<<16,ga=Wr[Vr+0]|Sr[Wn+0]<<16;u(Qe!=null);var Yi=3*Gi+ga+131074>>2;for(Q(Qe[lt+0],255&Yi,Yi>>16,On,Nr),pt!=null&&(Yi=3*ga+Gi+131074>>2,Q(pt[mt+0],255&Yi,Yi>>16,Lr,Vn)),ei=1;ei<=Vi;++ei){var Ss=Dt[Ot+ei]|zt[fr+ei]<<16,Fs=Wr[Vr+ei]|Sr[Wn+ei]<<16,ds=Gi+Ss+ga+Fs+524296,us=ds+2*(Ss+ga)>>3;Yi=us+Gi>>1,Gi=(ds=ds+2*(Gi+Fs)>>3)+Ss>>1,Q(Qe[lt+2*ei-1],255&Yi,Yi>>16,On,Nr+(2*ei-1)*ue),Q(Qe[lt+2*ei-0],255&Gi,Gi>>16,On,Nr+(2*ei-0)*ue),pt!=null&&(Yi=ds+ga>>1,Gi=us+Fs>>1,Q(pt[mt+2*ei-1],255&Yi,Yi>>16,Lr,Vn+(2*ei-1)*ue),Q(pt[mt+2*ei+0],255&Gi,Gi>>16,Lr,Vn+(2*ei+0)*ue)),Gi=Ss,ga=Fs}1&gi||(Yi=3*Gi+ga+131074>>2,Q(Qe[lt+gi-1],255&Yi,Yi>>16,On,Nr+(gi-1)*ue),pt!=null&&(Yi=3*ga+Gi+131074>>2,Q(pt[mt+gi-1],255&Yi,Yi>>16,Lr,Vn+(gi-1)*ue)))}}function Ei(){ou[an]=vA,ou[mi]=rA,ou[zn]=yA,ou[Ti]=nA,ou[qi]=iA,ou[di]=aA,ou[Ni]=bA,ou[za]=rA,ou[ia]=nA,ou[Qa]=iA,ou[Ua]=aA}function na(h){return h&~wA?0>h?0:255:h>>sA}function ba(h,Q){return na((19077*h>>8)+(26149*Q>>8)-14234)}function Wa(h,Q,ue){return na((19077*h>>8)-(6419*Q>>8)-(13320*ue>>8)+8708)}function Ka(h,Q){return na((19077*h>>8)+(33050*Q>>8)-17685)}function xs(h,Q,ue,Qe,lt){Qe[lt+0]=ba(h,ue),Qe[lt+1]=Wa(h,Q,ue),Qe[lt+2]=Ka(h,Q)}function mo(h,Q,ue,Qe,lt){Qe[lt+0]=Ka(h,Q),Qe[lt+1]=Wa(h,Q,ue),Qe[lt+2]=ba(h,ue)}function wo(h,Q,ue,Qe,lt){var pt=Wa(h,Q,ue);Q=pt<<3&224|Ka(h,Q)>>3,Qe[lt+0]=248&ba(h,ue)|pt>>5,Qe[lt+1]=Q}function To(h,Q,ue,Qe,lt){var pt=240&Ka(h,Q)|15;Qe[lt+0]=240&ba(h,ue)|Wa(h,Q,ue)>>4,Qe[lt+1]=pt}function Yo(h,Q,ue,Qe,lt){Qe[lt+0]=255,xs(h,Q,ue,Qe,lt+1)}function Mo(h,Q,ue,Qe,lt){mo(h,Q,ue,Qe,lt),Qe[lt+3]=255}function Kl(h,Q,ue,Qe,lt){xs(h,Q,ue,Qe,lt),Qe[lt+3]=255}function el(h,Q){return 0>h?0:h>Q?Q:h}function Tl(h,Q,ue){Br[h]=function(Qe,lt,pt,mt,Dt,Ot,zt,fr,Wr){for(var Vr=fr+(-2&Wr)*ue;fr!=Vr;)Q(Qe[lt+0],pt[mt+0],Dt[Ot+0],zt,fr),Q(Qe[lt+1],pt[mt+0],Dt[Ot+0],zt,fr+ue),lt+=2,++mt,++Ot,fr+=2*ue;1&Wr&&Q(Qe[lt+0],pt[mt+0],Dt[Ot+0],zt,fr)}}function xc(h,Q,ue){return ue==0?h==0?Q==0?6:5:Q==0?4:0:ue}function Vu(h,Q,ue,Qe,lt){switch(h>>>30){case 3:Cu(Q,ue,Qe,lt,0);break;case 2:Eo(Q,ue,Qe,lt);break;case 1:cl(Q,ue,Qe,lt)}}function hc(h,Q){var ue,Qe,lt=Q.M,pt=Q.Nb,mt=h.oc,Dt=h.pc+40,Ot=h.oc,zt=h.pc+584,fr=h.oc,Wr=h.pc+600;for(ue=0;16>ue;++ue)mt[Dt+32*ue-1]=129;for(ue=0;8>ue;++ue)Ot[zt+32*ue-1]=129,fr[Wr+32*ue-1]=129;for(0<lt?mt[Dt-1-32]=Ot[zt-1-32]=fr[Wr-1-32]=129:(ne(mt,Dt-32-1,127,21),ne(Ot,zt-32-1,127,9),ne(fr,Wr-32-1,127,9)),Qe=0;Qe<h.za;++Qe){var Vr=Q.ya[Q.aa+Qe];if(0<Qe){for(ue=-1;16>ue;++ue)M(mt,Dt+32*ue-4,mt,Dt+32*ue+12,4);for(ue=-1;8>ue;++ue)M(Ot,zt+32*ue-4,Ot,zt+32*ue+4,4),M(fr,Wr+32*ue-4,fr,Wr+32*ue+4,4)}var Sr=h.Gd,Wn=h.Hd+Qe,On=Vr.ad,Nr=Vr.Hc;if(0<lt&&(M(mt,Dt-32,Sr[Wn].y,0,16),M(Ot,zt-32,Sr[Wn].f,0,8),M(fr,Wr-32,Sr[Wn].ea,0,8)),Vr.Za){var Lr=mt,Vn=Dt-32+16;for(0<lt&&(Qe>=h.za-1?ne(Lr,Vn,Sr[Wn].y[15],4):M(Lr,Vn,Sr[Wn+1].y,0,4)),ue=0;4>ue;ue++)Lr[Vn+128+ue]=Lr[Vn+256+ue]=Lr[Vn+384+ue]=Lr[Vn+0+ue];for(ue=0;16>ue;++ue,Nr<<=2)Lr=mt,Vn=Dt+or[ue],_u[Vr.Ob[ue]](Lr,Vn),Vu(Nr,On,16*+ue,Lr,Vn)}else if(Lr=xc(Qe,lt,Vr.Ob[0]),zl[Lr](mt,Dt),Nr!=0)for(ue=0;16>ue;++ue,Nr<<=2)Vu(Nr,On,16*+ue,mt,Dt+or[ue]);for(ue=Vr.Gc,Lr=xc(Qe,lt,Vr.Dd),tc[Lr](Ot,zt),tc[Lr](fr,Wr),Nr=On,Lr=Ot,Vn=zt,255&(Vr=ue>>0)&&(170&Vr?Qu(Nr,256,Lr,Vn):Hl(Nr,256,Lr,Vn)),Vr=fr,Nr=Wr,255&(ue>>=8)&&(170&ue?Qu(On,320,Vr,Nr):Hl(On,320,Vr,Nr)),lt<h.Ub-1&&(M(Sr[Wn].y,0,mt,Dt+480,16),M(Sr[Wn].f,0,Ot,zt+224,8),M(Sr[Wn].ea,0,fr,Wr+224,8)),ue=8*pt*h.B,Sr=h.sa,Wn=h.ta+16*Qe+16*pt*h.R,On=h.qa,Vr=h.ra+8*Qe+ue,Nr=h.Ha,Lr=h.Ia+8*Qe+ue,ue=0;16>ue;++ue)M(Sr,Wn+ue*h.R,mt,Dt+32*ue,16);for(ue=0;8>ue;++ue)M(On,Vr+ue*h.B,Ot,zt+32*ue,8),M(Nr,Lr+ue*h.B,fr,Wr+32*ue,8)}}function Yu(h,Q,ue,Qe,lt,pt,mt,Dt,Ot){var zt=[0],fr=[0],Wr=0,Vr=Ot!=null?Ot.kd:0,Sr=Ot!=null?Ot:new dc;if(h==null||12>ue)return 7;Sr.data=h,Sr.w=Q,Sr.ha=ue,Q=[Q],ue=[ue],Sr.gb=[Sr.gb];e:{var Wn=Q,On=ue,Nr=Sr.gb;if(u(h!=null),u(On!=null),u(Nr!=null),Nr[0]=0,12<=On[0]&&!y(h,Wn[0],"RIFF")){if(y(h,Wn[0]+8,"WEBP")){Nr=3;break e}var Lr=Dn(h,Wn[0]+4);if(12>Lr||4294967286<Lr){Nr=3;break e}if(Vr&&Lr>On[0]-8){Nr=7;break e}Nr[0]=Lr,Wn[0]+=12,On[0]-=12}Nr=0}if(Nr!=0)return Nr;for(Lr=0<Sr.gb[0],ue=ue[0];;){e:{var Vn=h;On=Q,Nr=ue;var gi=zt,ei=fr,Vi=Wn=[0];if((Yi=Wr=[Wr])[0]=0,8>Nr[0])Nr=7;else{if(!y(Vn,On[0],"VP8X")){if(Dn(Vn,On[0]+4)!=10){Nr=3;break e}if(18>Nr[0]){Nr=7;break e}var Gi=Dn(Vn,On[0]+8),ga=1+cn(Vn,On[0]+12);if(2147483648<=ga*(Vn=1+cn(Vn,On[0]+15))){Nr=3;break e}Vi!=null&&(Vi[0]=Gi),gi!=null&&(gi[0]=ga),ei!=null&&(ei[0]=Vn),On[0]+=18,Nr[0]-=18,Yi[0]=1}Nr=0}}if(Wr=Wr[0],Wn=Wn[0],Nr!=0)return Nr;if(On=!!(2&Wn),!Lr&&Wr)return 3;if(pt!=null&&(pt[0]=!!(16&Wn)),mt!=null&&(mt[0]=On),Dt!=null&&(Dt[0]=0),mt=zt[0],Wn=fr[0],Wr&&On&&Ot==null){Nr=0;break}if(4>ue){Nr=7;break}if(Lr&&Wr||!Lr&&!Wr&&!y(h,Q[0],"ALPH")){ue=[ue],Sr.na=[Sr.na],Sr.P=[Sr.P],Sr.Sa=[Sr.Sa];e:{Gi=h,Nr=Q,Lr=ue;var Yi=Sr.gb;gi=Sr.na,ei=Sr.P,Vi=Sr.Sa,ga=22,u(Gi!=null),u(Lr!=null),Vn=Nr[0];var Ss=Lr[0];for(u(gi!=null),u(Vi!=null),gi[0]=null,ei[0]=null,Vi[0]=0;;){if(Nr[0]=Vn,Lr[0]=Ss,8>Ss){Nr=7;break e}var Fs=Dn(Gi,Vn+4);if(4294967286<Fs){Nr=3;break e}var ds=8+Fs+1&-2;if(ga+=ds,0<Yi&&ga>Yi){Nr=3;break e}if(!y(Gi,Vn,"VP8 ")||!y(Gi,Vn,"VP8L")){Nr=0;break e}if(Ss[0]<ds){Nr=7;break e}y(Gi,Vn,"ALPH")||(gi[0]=Gi,ei[0]=Vn+8,Vi[0]=Fs),Vn+=ds,Ss-=ds}}if(ue=ue[0],Sr.na=Sr.na[0],Sr.P=Sr.P[0],Sr.Sa=Sr.Sa[0],Nr!=0)break}ue=[ue],Sr.Ja=[Sr.Ja],Sr.xa=[Sr.xa];e:if(Yi=h,Nr=Q,Lr=ue,gi=Sr.gb[0],ei=Sr.Ja,Vi=Sr.xa,Gi=Nr[0],Vn=!y(Yi,Gi,"VP8 "),ga=!y(Yi,Gi,"VP8L"),u(Yi!=null),u(Lr!=null),u(ei!=null),u(Vi!=null),8>Lr[0])Nr=7;else{if(Vn||ga){if(Yi=Dn(Yi,Gi+4),12<=gi&&Yi>gi-12){Nr=3;break e}if(Vr&&Yi>Lr[0]-8){Nr=7;break e}ei[0]=Yi,Nr[0]+=8,Lr[0]-=8,Vi[0]=ga}else Vi[0]=5<=Lr[0]&&Yi[Gi+0]==47&&!(Yi[Gi+4]>>5),ei[0]=Lr[0];Nr=0}if(ue=ue[0],Sr.Ja=Sr.Ja[0],Sr.xa=Sr.xa[0],Q=Q[0],Nr!=0)break;if(4294967286<Sr.Ja)return 3;if(Dt==null||On||(Dt[0]=Sr.xa?2:1),mt=[mt],Wn=[Wn],Sr.xa){if(5>ue){Nr=7;break}Dt=mt,Vr=Wn,On=pt,h==null||5>ue?h=0:5<=ue&&h[Q+0]==47&&!(h[Q+4]>>5)?(Lr=[0],Yi=[0],gi=[0],ht(ei=new ze,h,Q,ue),Xi(ei,Lr,Yi,gi)?(Dt!=null&&(Dt[0]=Lr[0]),Vr!=null&&(Vr[0]=Yi[0]),On!=null&&(On[0]=gi[0]),h=1):h=0):h=0}else{if(10>ue){Nr=7;break}Dt=Wn,h==null||10>ue||!Bs(h,Q+3,ue-3)?h=0:(Vr=h[Q+0]|h[Q+1]<<8|h[Q+2]<<16,On=16383&(h[Q+7]<<8|h[Q+6]),h=16383&(h[Q+9]<<8|h[Q+8]),1&Vr||3<(Vr>>1&7)||!(Vr>>4&1)||Vr>>5>=Sr.Ja||!On||!h?h=0:(mt&&(mt[0]=On),Dt&&(Dt[0]=h),h=1))}if(!h||(mt=mt[0],Wn=Wn[0],Wr&&(zt[0]!=mt||fr[0]!=Wn)))return 3;Ot!=null&&(Ot[0]=Sr,Ot.offset=Q-Ot.w,u(4294967286>Q-Ot.w),u(Ot.offset==Ot.ha-ue));break}return Nr==0||Nr==7&&Wr&&Ot==null?(pt!=null&&(pt[0]|=Sr.na!=null&&0<Sr.na.length),Qe!=null&&(Qe[0]=mt),lt!=null&&(lt[0]=Wn),0):Nr}function Xu(h,Q,ue){var Qe=Q.width,lt=Q.height,pt=0,mt=0,Dt=Qe,Ot=lt;if(Q.Da=h!=null&&0<h.Da,Q.Da&&(Dt=h.cd,Ot=h.bd,pt=h.v,mt=h.j,11>ue||(pt&=-2,mt&=-2),0>pt||0>mt||0>=Dt||0>=Ot||pt+Dt>Qe||mt+Ot>lt))return 0;if(Q.v=pt,Q.j=mt,Q.va=pt+Dt,Q.o=mt+Ot,Q.U=Dt,Q.T=Ot,Q.da=h!=null&&0<h.da,Q.da){if(!Ii(Dt,Ot,ue=[h.ib],pt=[h.hb]))return 0;Q.ib=ue[0],Q.hb=pt[0]}return Q.ob=h!=null&&h.ob,Q.Kb=h==null||!h.Sd,Q.da&&(Q.ob=Q.ib<3*Qe/4&&Q.hb<3*lt/4,Q.Kb=0),1}function Ec(h){if(h==null)return 2;if(11>h.S){var Q=h.f.RGBA;Q.fb+=(h.height-1)*Q.A,Q.A=-Q.A}else Q=h.f.kb,h=h.height,Q.O+=(h-1)*Q.fa,Q.fa=-Q.fa,Q.N+=(h-1>>1)*Q.Ab,Q.Ab=-Q.Ab,Q.W+=(h-1>>1)*Q.Db,Q.Db=-Q.Db,Q.F!=null&&(Q.J+=(h-1)*Q.lb,Q.lb=-Q.lb);return 0}function pc(h,Q,ue,Qe){if(Qe==null||0>=h||0>=Q)return 2;if(ue!=null){if(ue.Da){var lt=ue.cd,pt=ue.bd,mt=-2&ue.v,Dt=-2&ue.j;if(0>mt||0>Dt||0>=lt||0>=pt||mt+lt>h||Dt+pt>Q)return 2;h=lt,Q=pt}if(ue.da){if(!Ii(h,Q,lt=[ue.ib],pt=[ue.hb]))return 2;h=lt[0],Q=pt[0]}}Qe.width=h,Qe.height=Q;e:{var Ot=Qe.width,zt=Qe.height;if(h=Qe.S,0>=Ot||0>=zt||!(h>=an&&13>h))h=2;else{if(0>=Qe.Rd&&Qe.sd==null){mt=pt=lt=Q=0;var fr=(Dt=Ot*mn[h])*zt;if(11>h||(pt=(zt+1)/2*(Q=(Ot+1)/2),h==12&&(mt=(lt=Ot)*zt)),(zt=Z(fr+2*pt+mt))==null){h=1;break e}Qe.sd=zt,11>h?((Ot=Qe.f.RGBA).eb=zt,Ot.fb=0,Ot.A=Dt,Ot.size=fr):((Ot=Qe.f.kb).y=zt,Ot.O=0,Ot.fa=Dt,Ot.Fd=fr,Ot.f=zt,Ot.N=0+fr,Ot.Ab=Q,Ot.Cd=pt,Ot.ea=zt,Ot.W=0+fr+pt,Ot.Db=Q,Ot.Ed=pt,h==12&&(Ot.F=zt,Ot.J=0+fr+2*pt),Ot.Tc=mt,Ot.lb=lt)}if(Q=1,lt=Qe.S,pt=Qe.width,mt=Qe.height,lt>=an&&13>lt)if(11>lt)h=Qe.f.RGBA,Q&=(Dt=Math.abs(h.A))*(mt-1)+pt<=h.size,Q&=Dt>=pt*mn[lt],Q&=h.eb!=null;else{h=Qe.f.kb,Dt=(pt+1)/2,fr=(mt+1)/2,Ot=Math.abs(h.fa),zt=Math.abs(h.Ab);var Wr=Math.abs(h.Db),Vr=Math.abs(h.lb),Sr=Vr*(mt-1)+pt;Q&=Ot*(mt-1)+pt<=h.Fd,Q&=zt*(fr-1)+Dt<=h.Cd,Q=(Q&=Wr*(fr-1)+Dt<=h.Ed)&Ot>=pt&zt>=Dt&Wr>=Dt,Q&=h.y!=null,Q&=h.f!=null,Q&=h.ea!=null,lt==12&&(Q&=Vr>=pt,Q&=Sr<=h.Tc,Q&=h.F!=null)}else Q=0;h=Q?0:2}}return h!=0||ue!=null&&ue.fd&&(h=Ec(Qe)),h}var xo=64,Ju=[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],no=24,Ul=32,ru=8,Oo=[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];An("Predictor0","PredictorAdd0"),Br.Predictor0=function(){return 4278190080},Br.Predictor1=function(h){return h},Br.Predictor2=function(h,Q,ue){return Q[ue+0]},Br.Predictor3=function(h,Q,ue){return Q[ue+1]},Br.Predictor4=function(h,Q,ue){return Q[ue-1]},Br.Predictor5=function(h,Q,ue){return Cn(Cn(h,Q[ue+1]),Q[ue+0])},Br.Predictor6=function(h,Q,ue){return Cn(h,Q[ue-1])},Br.Predictor7=function(h,Q,ue){return Cn(h,Q[ue+0])},Br.Predictor8=function(h,Q,ue){return Cn(Q[ue-1],Q[ue+0])},Br.Predictor9=function(h,Q,ue){return Cn(Q[ue+0],Q[ue+1])},Br.Predictor10=function(h,Q,ue){return Cn(Cn(h,Q[ue-1]),Cn(Q[ue+0],Q[ue+1]))},Br.Predictor11=function(h,Q,ue){var Qe=Q[ue+0];return 0>=He(Qe>>24&255,h>>24&255,(Q=Q[ue-1])>>24&255)+He(Qe>>16&255,h>>16&255,Q>>16&255)+He(Qe>>8&255,h>>8&255,Q>>8&255)+He(255&Qe,255&h,255&Q)?Qe:h},Br.Predictor12=function(h,Q,ue){var Qe=Q[ue+0];return(ai((h>>24&255)+(Qe>>24&255)-((Q=Q[ue-1])>>24&255))<<24|ai((h>>16&255)+(Qe>>16&255)-(Q>>16&255))<<16|ai((h>>8&255)+(Qe>>8&255)-(Q>>8&255))<<8|ai((255&h)+(255&Qe)-(255&Q)))>>>0},Br.Predictor13=function(h,Q,ue){var Qe=Q[ue-1];return(Li((h=Cn(h,Q[ue+0]))>>24&255,Qe>>24&255)<<24|Li(h>>16&255,Qe>>16&255)<<16|Li(h>>8&255,Qe>>8&255)<<8|Li(h>>0&255,Qe>>0&255))>>>0};var nu=Br.PredictorAdd0;Br.PredictorAdd1=c,An("Predictor2","PredictorAdd2"),An("Predictor3","PredictorAdd3"),An("Predictor4","PredictorAdd4"),An("Predictor5","PredictorAdd5"),An("Predictor6","PredictorAdd6"),An("Predictor7","PredictorAdd7"),An("Predictor8","PredictorAdd8"),An("Predictor9","PredictorAdd9"),An("Predictor10","PredictorAdd10"),An("Predictor11","PredictorAdd11"),An("Predictor12","PredictorAdd12"),An("Predictor13","PredictorAdd13");var Eu=Br.PredictorAdd2;Be("ColorIndexInverseTransform","MapARGB","32b",function(h){return h>>8&255},function(h){return h}),Be("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(h){return h},function(h){return h>>8&255});var Ql,pl=Br.ColorIndexInverseTransform,qu=Br.MapARGB,Cc=Br.VP8LColorIndexInverseTransformAlpha,Mu=Br.MapAlpha,jl=Br.VP8LPredictorsAdd=[];jl.length=16,(Br.VP8LPredictors=[]).length=16,(Br.VP8LPredictorsAdd_C=[]).length=16,(Br.VP8LPredictors_C=[]).length=16;var iu,ul,Uo,Uu,au,su,mc,Cu,Eo,Qu,cl,Hl,gc,Tc,ec,Al,d,e,t,r,i,s,l,x,j,J,fe,Oe,Ve=Z(511),Je=Z(2041),ut=Z(225),Ct=Z(767),Ft=0,gr=Je,Or=ut,Fr=Ct,Un=Ve,an=0,mi=1,zn=2,Ti=3,qi=4,di=5,Ni=6,za=7,ia=8,Qa=9,Ua=10,La=[2,3,7],Ts=[3,3,11],Ks=[280,256,256,256,40],pa=[0,1,1,1,0],oa=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],ks=[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],hs=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Ws=8,lo=[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],Ms=[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],Fo=null,dl=[[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]],_c=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Fc=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Wc=[[[[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]]]],Dc=[[[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]]],jc=[[[[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]]]],gA=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],zl=[],_u=[],tc=[],eA=1,tA=2,rc=[],ou=[];Kn("UpsampleRgbLinePair",xs,3),Kn("UpsampleBgrLinePair",mo,3),Kn("UpsampleRgbaLinePair",Kl,4),Kn("UpsampleBgraLinePair",Mo,4),Kn("UpsampleArgbLinePair",Yo,4),Kn("UpsampleRgba4444LinePair",To,2),Kn("UpsampleRgb565LinePair",wo,2);var vA=Br.UpsampleRgbLinePair,yA=Br.UpsampleBgrLinePair,rA=Br.UpsampleRgbaLinePair,nA=Br.UpsampleBgraLinePair,iA=Br.UpsampleArgbLinePair,aA=Br.UpsampleRgba4444LinePair,bA=Br.UpsampleRgb565LinePair,Hc=16,$c=1<<Hc-1,Uc=-227,Vc=482,sA=6,wA=(256<<sA)-1,R=0,E=Z(256),U=Z(256),k=Z(256),Pe=Z(256),it=Z(Vc-Uc),Lt=Z(Vc-Uc);Tl("YuvToRgbRow",xs,3),Tl("YuvToBgrRow",mo,3),Tl("YuvToRgbaRow",Kl,4),Tl("YuvToBgraRow",Mo,4),Tl("YuvToArgbRow",Yo,4),Tl("YuvToRgba4444Row",To,2),Tl("YuvToRgb565Row",wo,2);var or=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ar=[0,2,8],jr=[8,7,6,4,4,2,2,2,1,1,1,1],Jr=1;this.WebPDecodeRGBA=function(h,Q,ue,Qe,lt){var pt=mi,mt=new Ac,Dt=new kn;mt.ba=Dt,Dt.S=pt,Dt.width=[Dt.width],Dt.height=[Dt.height];var Ot=Dt.width,zt=Dt.height,fr=new Zn;if(fr==null||h==null)var Wr=2;else u(fr!=null),Wr=Yu(h,Q,ue,fr.width,fr.height,fr.Pd,fr.Qd,fr.format,null);if(Wr!=0?Ot=0:(Ot!=null&&(Ot[0]=fr.width[0]),zt!=null&&(zt[0]=fr.height[0]),Ot=1),Ot){Dt.width=Dt.width[0],Dt.height=Dt.height[0],Qe!=null&&(Qe[0]=Dt.width),lt!=null&&(lt[0]=Dt.height);e:{if(Qe=new Ma,(lt=new dc).data=h,lt.w=Q,lt.ha=ue,lt.kd=1,Q=[0],u(lt!=null),((h=Yu(lt.data,lt.w,lt.ha,null,null,null,Q,null,lt))==0||h==7)&&Q[0]&&(h=4),(Q=h)==0){if(u(mt!=null),Qe.data=lt.data,Qe.w=lt.w+lt.offset,Qe.ha=lt.ha-lt.offset,Qe.put=Sa,Qe.ac=Ki,Qe.bc=Ia,Qe.ma=mt,lt.xa){if((h=bs())==null){mt=1;break e}if(function(Vr,Sr){var Wn=[0],On=[0],Nr=[0];t:for(;;){if(Vr==null)return 0;if(Sr==null)return Vr.a=2,0;if(Vr.l=Sr,Vr.a=0,ht(Vr.m,Sr.data,Sr.w,Sr.ha),!Xi(Vr.m,Wn,On,Nr)){Vr.a=3;break t}if(Vr.xb=tA,Sr.width=Wn[0],Sr.height=On[0],!Hs(Wn[0],On[0],1,Vr,null))break t;return 1}return u(Vr.a!=0),0}(h,Qe)){if(Qe=(Q=pc(Qe.width,Qe.height,mt.Oa,mt.ba))==0){t:{Qe=h;r:for(;;){if(Qe==null){Qe=0;break t}if(u(Qe.s.yc!=null),u(Qe.s.Ya!=null),u(0<Qe.s.Wb),u((ue=Qe.l)!=null),u((lt=ue.ma)!=null),Qe.xb!=0){if(Qe.ca=lt.ba,Qe.tb=lt.tb,u(Qe.ca!=null),!Xu(lt.Oa,ue,Ti)){Qe.a=2;break r}if(!Zs(Qe,ue.width)||ue.da)break r;if((ue.da||xn(Qe.ca.S))&&un(),11>Qe.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Qe.ca.f.kb.F!=null&&un()),Qe.Pb&&0<Qe.s.ua&&Qe.s.vb.X==null&&!ni(Qe.s.vb,Qe.s.Wa.Xa)){Qe.a=1;break r}Qe.xb=0}if(!da(Qe,Qe.V,Qe.Ba,Qe.c,Qe.i,ue.o,ha))break r;lt.Dc=Qe.Ma,Qe=1;break t}u(Qe.a!=0),Qe=0}Qe=!Qe}Qe&&(Q=h.a)}else Q=h.a}else{if((h=new _s)==null){mt=1;break e}if(h.Fa=lt.na,h.P=lt.P,h.qc=lt.Sa,bo(h,Qe)){if((Q=pc(Qe.width,Qe.height,mt.Oa,mt.ba))==0){if(h.Aa=0,ue=mt.Oa,u((lt=h)!=null),ue!=null){if(0<(Ot=0>(Ot=ue.Md)?0:100<Ot?255:255*Ot/100)){for(zt=fr=0;4>zt;++zt)12>(Wr=lt.pb[zt]).lc&&(Wr.ia=Ot*jr[0>Wr.lc?0:Wr.lc]>>3),fr|=Wr.ia;fr&&(alert("todo:VP8InitRandom"),lt.ia=1)}lt.Ga=ue.Id,100<lt.Ga?lt.Ga=100:0>lt.Ga&&(lt.Ga=0)}Cl(h,Qe)||(Q=h.a)}}else Q=h.a}Q==0&&mt.Oa!=null&&mt.Oa.fd&&(Q=Ec(mt.ba))}mt=Q}pt=mt!=0?null:11>pt?Dt.f.RGBA.eb:Dt.f.kb.y}else pt=null;return pt};var mn=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function tt(Br,bn){for(var Pn="",er=0;er<4;er++)Pn+=String.fromCharCode(Br[bn++]);return Pn}function yt(Br,bn){return(Br[bn+0]<<0|Br[bn+1]<<8|Br[bn+2]<<16)>>>0}function vt(Br,bn){return(Br[bn+0]<<0|Br[bn+1]<<8|Br[bn+2]<<16|Br[bn+3]<<24)>>>0}new Ne;var Pt=[0],Ye=[0],cr=[],tr=new Ne,dr=b,Qt=function(Br,bn){var Pn={},er=0,nr=!1,ye=0,Ee=0;if(Pn.frames=[],!function(Ce,wt,jt,Wt){for(var ur=0;ur<Wt;ur++)if(Ce[wt+ur]!=jt.charCodeAt(ur))return!0;return!1}(Br,bn,"RIFF",4)){var et,st;for(vt(Br,bn+=4),bn+=8;bn<Br.length;){var gt=tt(Br,bn),ht=vt(Br,bn+=4);bn+=4;var Ut=ht+(1&ht);switch(gt){case"VP8 ":case"VP8L":Pn.frames[er]===void 0&&(Pn.frames[er]={}),(ze=Pn.frames[er]).src_off=nr?Ee:bn-8,ze.src_size=ye+ht+8,er++,nr&&(nr=!1,ye=0,Ee=0);break;case"VP8X":(ze=Pn.header={}).feature_flags=Br[bn];var $t=bn+4;ze.canvas_width=1+yt(Br,$t),$t+=3,ze.canvas_height=1+yt(Br,$t),$t+=3;break;case"ALPH":nr=!0,ye=Ut+8,Ee=bn-8;break;case"ANIM":(ze=Pn.header).bgcolor=vt(Br,bn),$t=bn+4,ze.loop_count=(et=Br)[(st=$t)+0]<<0|et[st+1]<<8,$t+=2;break;case"ANMF":var sr,ze;(ze=Pn.frames[er]={}).offset_x=2*yt(Br,bn),bn+=3,ze.offset_y=2*yt(Br,bn),bn+=3,ze.width=1+yt(Br,bn),bn+=3,ze.height=1+yt(Br,bn),bn+=3,ze.duration=yt(Br,bn),bn+=3,sr=Br[bn++],ze.dispose=1&sr,ze.blend=sr>>1&1}gt!="ANMF"&&(bn+=Ut)}return Pn}}(dr,0);Qt.response=dr,Qt.rgbaoutput=!0,Qt.dataurl=!1;var pr=Qt.header?Qt.header:null,Ur=Qt.frames?Qt.frames:null;if(pr){pr.loop_counter=pr.loop_count,Pt=[pr.canvas_height],Ye=[pr.canvas_width];for(var sn=0;sn<Ur.length&&Ur[sn].blend!=0;sn++);}var Rn=Ur[0],ci=tr.WebPDecodeRGBA(dr,Rn.src_off,Rn.src_size,Ye,Pt);Rn.rgba=ci,Rn.imgwidth=Ye[0],Rn.imgheight=Pt[0];for(var pn=0;pn<Ye[0]*Pt[0]*4;pn++)cr[pn]=ci[pn];return this.width=Ye,this.height=Pt,this.data=cr,this}(function(b){var u=function(){return typeof Hn=="function"},y=function(Pt,Ye,cr,tr){var dr=4,Qt=ge;switch(tr){case b.image_compression.FAST:dr=1,Qt=Z;break;case b.image_compression.MEDIUM:dr=6,Qt=De;break;case b.image_compression.SLOW:dr=9,Qt=Ne}Pt=M(Pt,Ye,cr,Qt);var pr=Hn(Pt,{level:dr});return b.__addimage__.arrayBufferToBinaryString(pr)},M=function(Pt,Ye,cr,tr){for(var dr,Qt,pr,Ur=Pt.length/Ye,sn=new Uint8Array(Pt.length+Ur),Rn=yt(),ci=0;ci<Ur;ci+=1){if(pr=ci*Ye,dr=Pt.subarray(pr,pr+Ye),tr)sn.set(tr(dr,cr,Qt),pr+ci);else{for(var pn,Br=Rn.length,bn=[];pn<Br;pn+=1)bn[pn]=Rn[pn](dr,cr,Qt);var Pn=vt(bn.concat());sn.set(bn[Pn],pr+ci)}Qt=dr}return sn},ne=function(Pt){var Ye=Array.apply([],Pt);return Ye.unshift(0),Ye},Z=function(Pt,Ye){var cr,tr=[],dr=Pt.length;tr[0]=1;for(var Qt=0;Qt<dr;Qt+=1)cr=Pt[Qt-Ye]||0,tr[Qt+1]=Pt[Qt]-cr+256&255;return tr},ge=function(Pt,Ye,cr){var tr,dr=[],Qt=Pt.length;dr[0]=2;for(var pr=0;pr<Qt;pr+=1)tr=cr&&cr[pr]||0,dr[pr+1]=Pt[pr]-tr+256&255;return dr},De=function(Pt,Ye,cr){var tr,dr,Qt=[],pr=Pt.length;Qt[0]=3;for(var Ur=0;Ur<pr;Ur+=1)tr=Pt[Ur-Ye]||0,dr=cr&&cr[Ur]||0,Qt[Ur+1]=Pt[Ur]+256-(tr+dr>>>1)&255;return Qt},Ne=function(Pt,Ye,cr){var tr,dr,Qt,pr,Ur=[],sn=Pt.length;Ur[0]=4;for(var Rn=0;Rn<sn;Rn+=1)tr=Pt[Rn-Ye]||0,dr=cr&&cr[Rn]||0,Qt=cr&&cr[Rn-Ye]||0,pr=tt(tr,dr,Qt),Ur[Rn+1]=Pt[Rn]-pr+256&255;return Ur},tt=function(Pt,Ye,cr){if(Pt===Ye&&Ye===cr)return Pt;var tr=Math.abs(Ye-cr),dr=Math.abs(Pt-cr),Qt=Math.abs(Pt+Ye-cr-cr);return tr<=dr&&tr<=Qt?Pt:dr<=Qt?Ye:cr},yt=function(){return[ne,Z,ge,De,Ne]},vt=function(Pt){var Ye=Pt.map(function(cr){return cr.reduce(function(tr,dr){return tr+Math.abs(dr)},0)});return Ye.indexOf(Math.min.apply(null,Ye))};b.processPNG=function(Pt,Ye,cr,tr){var dr,Qt,pr,Ur,sn,Rn,ci,pn,Br,bn,Pn,er,nr,ye,Ee,et=this.decode.FLATE_DECODE,st="";if(this.__addimage__.isArrayBuffer(Pt)&&(Pt=new Uint8Array(Pt)),this.__addimage__.isArrayBufferView(Pt)){if(Pt=(pr=new wl(Pt)).imgData,Qt=pr.bits,dr=pr.colorSpace,sn=pr.colors,[4,6].indexOf(pr.colorType)!==-1){if(pr.bits===8){Br=(pn=pr.pixelBitlength==32?new Uint32Array(pr.decodePixels().buffer):pr.pixelBitlength==16?new Uint16Array(pr.decodePixels().buffer):new Uint8Array(pr.decodePixels().buffer)).length,Pn=new Uint8Array(Br*pr.colors),bn=new Uint8Array(Br);var gt,ht=pr.pixelBitlength-pr.bits;for(ye=0,Ee=0;ye<Br;ye++){for(nr=pn[ye],gt=0;gt<ht;)Pn[Ee++]=nr>>>gt&255,gt+=pr.bits;bn[ye]=nr>>>gt&255}}if(pr.bits===16){Br=(pn=new Uint32Array(pr.decodePixels().buffer)).length,Pn=new Uint8Array(Br*(32/pr.pixelBitlength)*pr.colors),bn=new Uint8Array(Br*(32/pr.pixelBitlength)),er=pr.colors>1,ye=0,Ee=0;for(var Ut=0;ye<Br;)nr=pn[ye++],Pn[Ee++]=nr>>>0&255,er&&(Pn[Ee++]=nr>>>16&255,nr=pn[ye++],Pn[Ee++]=nr>>>0&255),bn[Ut++]=nr>>>16&255;Qt=8}tr!==b.image_compression.NONE&&u()?(Pt=y(Pn,pr.width*pr.colors,pr.colors,tr),ci=y(bn,pr.width,1,tr)):(Pt=Pn,ci=bn,et=void 0)}if(pr.colorType===3&&(dr=this.color_spaces.INDEXED,Rn=pr.palette,pr.transparency.indexed)){var $t=pr.transparency.indexed,sr=0;for(ye=0,Br=$t.length;ye<Br;++ye)sr+=$t[ye];if((sr/=255)===Br-1&&$t.indexOf(0)!==-1)Ur=[$t.indexOf(0)];else if(sr!==Br){for(pn=pr.decodePixels(),bn=new Uint8Array(pn.length),ye=0,Br=pn.length;ye<Br;ye++)bn[ye]=$t[pn[ye]];ci=y(bn,pr.width,1)}}var ze=function(Ce){var wt;switch(Ce){case b.image_compression.FAST:wt=11;break;case b.image_compression.MEDIUM:wt=13;break;case b.image_compression.SLOW:wt=14;break;default:wt=12}return wt}(tr);return et===this.decode.FLATE_DECODE&&(st="/Predictor "+ze+" "),st+="/Colors "+sn+" /BitsPerComponent "+Qt+" /Columns "+pr.width,(this.__addimage__.isArrayBuffer(Pt)||this.__addimage__.isArrayBufferView(Pt))&&(Pt=this.__addimage__.arrayBufferToBinaryString(Pt)),(ci&&this.__addimage__.isArrayBuffer(ci)||this.__addimage__.isArrayBufferView(ci))&&(ci=this.__addimage__.arrayBufferToBinaryString(ci)),{alias:cr,data:Pt,index:Ye,filter:et,decodeParameters:st,transparency:Ur,palette:Rn,sMask:ci,predictor:ze,width:pr.width,height:pr.height,bitsPerComponent:Qt,colorSpace:dr}}}})(Mi.API),function(b){b.processGIF89A=function(u,y,M,ne){var Z=new fl(u),ge=Z.width,De=Z.height,Ne=[];Z.decodeAndBlitFrameRGBA(0,Ne);var tt={data:Ne,width:ge,height:De},yt=new xl(100).encode(tt,100);return b.processJPEG.call(this,yt,y,M,ne)},b.processGIF87A=b.processGIF89A}(Mi.API),jo.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 b=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(b);for(var u=0;u<b;u++){var y=this.datav.getUint8(this.pos++,!0),M=this.datav.getUint8(this.pos++,!0),ne=this.datav.getUint8(this.pos++,!0),Z=this.datav.getUint8(this.pos++,!0);this.palette[u]={red:ne,green:M,blue:y,quad:Z}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},jo.prototype.parseBGR=function(){this.pos=this.offset;try{var b="bit"+this.bitPP,u=this.width*this.height*4;this.data=new Uint8Array(u),this[b]()}catch(y){ii.log("bit decode error:"+y)}},jo.prototype.bit1=function(){var b,u=Math.ceil(this.width/8),y=u%4;for(b=this.height-1;b>=0;b--){for(var M=this.bottom_up?b:this.height-1-b,ne=0;ne<u;ne++)for(var Z=this.datav.getUint8(this.pos++,!0),ge=M*this.width*4+8*ne*4,De=0;De<8&&8*ne+De<this.width;De++){var Ne=this.palette[Z>>7-De&1];this.data[ge+4*De]=Ne.blue,this.data[ge+4*De+1]=Ne.green,this.data[ge+4*De+2]=Ne.red,this.data[ge+4*De+3]=255}y!==0&&(this.pos+=4-y)}},jo.prototype.bit4=function(){for(var b=Math.ceil(this.width/2),u=b%4,y=this.height-1;y>=0;y--){for(var M=this.bottom_up?y:this.height-1-y,ne=0;ne<b;ne++){var Z=this.datav.getUint8(this.pos++,!0),ge=M*this.width*4+2*ne*4,De=Z>>4,Ne=15&Z,tt=this.palette[De];if(this.data[ge]=tt.blue,this.data[ge+1]=tt.green,this.data[ge+2]=tt.red,this.data[ge+3]=255,2*ne+1>=this.width)break;tt=this.palette[Ne],this.data[ge+4]=tt.blue,this.data[ge+4+1]=tt.green,this.data[ge+4+2]=tt.red,this.data[ge+4+3]=255}u!==0&&(this.pos+=4-u)}},jo.prototype.bit8=function(){for(var b=this.width%4,u=this.height-1;u>=0;u--){for(var y=this.bottom_up?u:this.height-1-u,M=0;M<this.width;M++){var ne=this.datav.getUint8(this.pos++,!0),Z=y*this.width*4+4*M;if(ne<this.palette.length){var ge=this.palette[ne];this.data[Z]=ge.red,this.data[Z+1]=ge.green,this.data[Z+2]=ge.blue,this.data[Z+3]=255}else this.data[Z]=255,this.data[Z+1]=255,this.data[Z+2]=255,this.data[Z+3]=255}b!==0&&(this.pos+=4-b)}},jo.prototype.bit15=function(){for(var b=this.width%3,u=parseInt("11111",2),y=this.height-1;y>=0;y--){for(var M=this.bottom_up?y:this.height-1-y,ne=0;ne<this.width;ne++){var Z=this.datav.getUint16(this.pos,!0);this.pos+=2;var ge=(Z&u)/u*255|0,De=(Z>>5&u)/u*255|0,Ne=(Z>>10&u)/u*255|0,tt=Z>>15?255:0,yt=M*this.width*4+4*ne;this.data[yt]=Ne,this.data[yt+1]=De,this.data[yt+2]=ge,this.data[yt+3]=tt}this.pos+=b}},jo.prototype.bit16=function(){for(var b=this.width%3,u=parseInt("11111",2),y=parseInt("111111",2),M=this.height-1;M>=0;M--){for(var ne=this.bottom_up?M:this.height-1-M,Z=0;Z<this.width;Z++){var ge=this.datav.getUint16(this.pos,!0);this.pos+=2;var De=(ge&u)/u*255|0,Ne=(ge>>5&y)/y*255|0,tt=(ge>>11)/u*255|0,yt=ne*this.width*4+4*Z;this.data[yt]=tt,this.data[yt+1]=Ne,this.data[yt+2]=De,this.data[yt+3]=255}this.pos+=b}},jo.prototype.bit24=function(){for(var b=this.height-1;b>=0;b--){for(var u=this.bottom_up?b:this.height-1-b,y=0;y<this.width;y++){var M=this.datav.getUint8(this.pos++,!0),ne=this.datav.getUint8(this.pos++,!0),Z=this.datav.getUint8(this.pos++,!0),ge=u*this.width*4+4*y;this.data[ge]=Z,this.data[ge+1]=ne,this.data[ge+2]=M,this.data[ge+3]=255}this.pos+=this.width%4}},jo.prototype.bit32=function(){for(var b=this.height-1;b>=0;b--)for(var u=this.bottom_up?b:this.height-1-b,y=0;y<this.width;y++){var M=this.datav.getUint8(this.pos++,!0),ne=this.datav.getUint8(this.pos++,!0),Z=this.datav.getUint8(this.pos++,!0),ge=this.datav.getUint8(this.pos++,!0),De=u*this.width*4+4*y;this.data[De]=Z,this.data[De+1]=ne,this.data[De+2]=M,this.data[De+3]=ge}},jo.prototype.getData=function(){return this.data},function(b){b.processBMP=function(u,y,M,ne){var Z=new jo(u,!1),ge=Z.width,De=Z.height,Ne={data:Z.getData(),width:ge,height:De},tt=new xl(100).encode(Ne,100);return b.processJPEG.call(this,tt,y,M,ne)}}(Mi.API),Gs.prototype.getData=function(){return this.data},function(b){b.processWEBP=function(u,y,M,ne){var Z=new Gs(u,!1),ge=Z.width,De=Z.height,Ne={data:Z.getData(),width:ge,height:De},tt=new xl(100).encode(Ne,100);return b.processJPEG.call(this,tt,y,M,ne)}}(Mi.API),Mi.API.processRGBA=function(b,u,y){for(var M=b.data,ne=M.length,Z=new Uint8Array(ne/4*3),ge=new Uint8Array(ne/4),De=0,Ne=0,tt=0;tt<ne;tt+=4){var yt=M[tt],vt=M[tt+1],Pt=M[tt+2],Ye=M[tt+3];Z[De++]=yt,Z[De++]=vt,Z[De++]=Pt,ge[Ne++]=Ye}var cr=this.__addimage__.arrayBufferToBinaryString(Z);return{alpha:this.__addimage__.arrayBufferToBinaryString(ge),data:cr,index:u,alias:y,colorSpace:"DeviceRGB",bitsPerComponent:8,width:b.width,height:b.height}},Mi.API.setLanguage=function(b){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"}[b]!==void 0&&(this.internal.languageSettings.languageCode=b,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},Ya=Mi.API,bl=Ya.getCharWidthsArray=function(b,u){var y,M,ne=(u=u||{}).font||this.internal.getFont(),Z=u.fontSize||this.internal.getFontSize(),ge=u.charSpace||this.internal.getCharSpace(),De=u.widths?u.widths:ne.metadata.Unicode.widths,Ne=De.fof?De.fof:1,tt=u.kerning?u.kerning:ne.metadata.Unicode.kerning,yt=tt.fof?tt.fof:1,vt=u.doKerning!==!1,Pt=0,Ye=b.length,cr=0,tr=De[0]||Ne,dr=[];for(y=0;y<Ye;y++)M=b.charCodeAt(y),typeof ne.metadata.widthOfString=="function"?dr.push((ne.metadata.widthOfGlyph(ne.metadata.characterToGlyph(M))+ge*(1e3/Z)||0)/1e3):(Pt=vt&&(0,we.Z)(tt[M])==="object"&&!isNaN(parseInt(tt[M][cr],10))?tt[M][cr]/yt:0,dr.push((De[M]||tr)/Ne+Pt)),cr=M;return dr},so=Ya.getStringUnitWidth=function(b,u){var y=(u=u||{}).fontSize||this.internal.getFontSize(),M=u.font||this.internal.getFont(),ne=u.charSpace||this.internal.getCharSpace();return Ya.processArabic&&(b=Ya.processArabic(b)),typeof M.metadata.widthOfString=="function"?M.metadata.widthOfString(b,y,ne)/y:bl.apply(this,arguments).reduce(function(Z,ge){return Z+ge},0)},yo=function(b,u,y,M){for(var ne=[],Z=0,ge=b.length,De=0;Z!==ge&&De+u[Z]<y;)De+=u[Z],Z++;ne.push(b.slice(0,Z));var Ne=Z;for(De=0;Z!==ge;)De+u[Z]>M&&(ne.push(b.slice(Ne,Z)),De=0,Ne=Z),De+=u[Z],Z++;return Ne!==Z&&ne.push(b.slice(Ne,Z)),ne},Zl=function(b,u,y){y||(y={});var M,ne,Z,ge,De,Ne,tt,yt=[],vt=[yt],Pt=y.textIndent||0,Ye=0,cr=0,tr=b.split(" "),dr=bl.apply(this,[" ",y])[0];if(Ne=y.lineIndent===-1?tr[0].length+2:y.lineIndent||0){var Qt=Array(Ne).join(" "),pr=[];tr.map(function(sn){(sn=sn.split(/\s*\n/)).length>1?pr=pr.concat(sn.map(function(Rn,ci){return(ci&&Rn.length?`
|
|
|
`:"")+Rn})):pr.push(sn[0])}),tr=pr,Ne=so.apply(this,[Qt,y])}for(Z=0,ge=tr.length;Z<ge;Z++){var Ur=0;if(M=tr[Z],Ne&&M[0]==`
|
|
|
`&&(M=M.substr(1),Ur=1),Pt+Ye+(cr=(ne=bl.apply(this,[M,y])).reduce(function(sn,Rn){return sn+Rn},0))>u||Ur){if(cr>u){for(De=yo.apply(this,[M,ne,u-(Pt+Ye),u]),yt.push(De.shift()),yt=[De.pop()];De.length;)vt.push([De.shift()]);cr=ne.slice(M.length-(yt[0]?yt[0].length:0)).reduce(function(sn,Rn){return sn+Rn},0)}else yt=[M];vt.push(yt),Pt=cr+Ne,Ye=dr}else yt.push(M),Pt+=Ye+cr,Ye=dr}return tt=Ne?function(sn,Rn){return(Rn?Qt:"")+sn.join(" ")}:function(sn){return sn.join(" ")},vt.map(tt)},Ya.splitTextToSize=function(b,u,y){var M,ne=(y=y||{}).fontSize||this.internal.getFontSize(),Z=function(yt){if(yt.widths&&yt.kerning)return{widths:yt.widths,kerning:yt.kerning};var vt=this.internal.getFont(yt.fontName,yt.fontStyle);return vt.metadata.Unicode?{widths:vt.metadata.Unicode.widths||{0:1},kerning:vt.metadata.Unicode.kerning||{}}:{font:vt.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,y);M=Array.isArray(b)?b:String(b).split(/\r?\n/);var ge=1*this.internal.scaleFactor*u/ne;Z.textIndent=y.textIndent?1*y.textIndent*this.internal.scaleFactor/ne:0,Z.lineIndent=y.lineIndent;var De,Ne,tt=[];for(De=0,Ne=M.length;De<Ne;De++)tt=tt.concat(Zl.apply(this,[M[De],ge,Z]));return tt},function(b){b.__fontmetrics__=b.__fontmetrics__||{};for(var u="klmnopqrstuvwxyz",y={},M={},ne=0;ne<u.length;ne++)y[u[ne]]="0123456789abcdef"[ne],M["0123456789abcdef"[ne]]=u[ne];var Z=function(vt){return"0x"+parseInt(vt,10).toString(16)},ge=b.__fontmetrics__.compress=function(vt){var Pt,Ye,cr,tr,dr=["{"];for(var Qt in vt){if(Pt=vt[Qt],isNaN(parseInt(Qt,10))?Ye="'"+Qt+"'":(Qt=parseInt(Qt,10),Ye=(Ye=Z(Qt).slice(2)).slice(0,-1)+M[Ye.slice(-1)]),typeof Pt=="number")Pt<0?(cr=Z(Pt).slice(3),tr="-"):(cr=Z(Pt).slice(2),tr=""),cr=tr+cr.slice(0,-1)+M[cr.slice(-1)];else{if((0,we.Z)(Pt)!=="object")throw new Error("Don't know what to do with value type "+(0,we.Z)(Pt)+".");cr=ge(Pt)}dr.push(Ye+cr)}return dr.push("}"),dr.join("")},De=b.__fontmetrics__.uncompress=function(vt){if(typeof vt!="string")throw new Error("Invalid argument passed to uncompress.");for(var Pt,Ye,cr,tr,dr={},Qt=1,pr=dr,Ur=[],sn="",Rn="",ci=vt.length-1,pn=1;pn<ci;pn+=1)(tr=vt[pn])=="'"?Pt?(cr=Pt.join(""),Pt=void 0):Pt=[]:Pt?Pt.push(tr):tr=="{"?(Ur.push([pr,cr]),pr={},cr=void 0):tr=="}"?((Ye=Ur.pop())[0][Ye[1]]=pr,cr=void 0,pr=Ye[0]):tr=="-"?Qt=-1:cr===void 0?y.hasOwnProperty(tr)?(sn+=y[tr],cr=parseInt(sn,16)*Qt,Qt=1,sn=""):sn+=tr:y.hasOwnProperty(tr)?(Rn+=y[tr],pr[cr]=parseInt(Rn,16)*Qt,Qt=1,cr=void 0,Rn=""):Rn+=tr;return dr},Ne={codePages:["WinAnsiEncoding"],WinAnsiEncoding:De("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},tt={Unicode:{Courier:Ne,"Courier-Bold":Ne,"Courier-BoldOblique":Ne,"Courier-Oblique":Ne,Helvetica:Ne,"Helvetica-Bold":Ne,"Helvetica-BoldOblique":Ne,"Helvetica-Oblique":Ne,"Times-Roman":Ne,"Times-Bold":Ne,"Times-BoldItalic":Ne,"Times-Italic":Ne}},yt={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}}}")}};b.events.push(["addFont",function(vt){var Pt=vt.font,Ye=yt.Unicode[Pt.postScriptName];Ye&&(Pt.metadata.Unicode={},Pt.metadata.Unicode.widths=Ye.widths,Pt.metadata.Unicode.kerning=Ye.kerning);var cr=tt.Unicode[Pt.postScriptName];cr&&(Pt.metadata.Unicode.encoding=cr,Pt.encoding=cr.codePages[0])}])}(Mi.API),function(b){var u=function(y){for(var M=y.length,ne=new Uint8Array(M),Z=0;Z<M;Z++)ne[Z]=y.charCodeAt(Z);return ne};b.API.events.push(["addFont",function(y){var M=void 0,ne=y.font,Z=y.instance;if(!ne.isStandardFont){if(Z===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ne.postScriptName+"').");if(typeof(M=Z.existsFileInVFS(ne.postScriptName)===!1?Z.loadFile(ne.postScriptName):Z.getFileFromVFS(ne.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ne.postScriptName+"').");(function(ge,De){De=/^\x00\x01\x00\x00/.test(De)?u(De):u(Bi(De)),ge.metadata=b.API.TTFFont.open(De),ge.metadata.Unicode=ge.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ge.metadata.glyIdsUsed=[0]})(ne,M)}}])}(Mi),function(b){function u(){return(gn.canvg?Promise.resolve(gn.canvg):g.e(6949).then(g.bind(g,46949))).catch(function(y){return Promise.reject(new Error("Could not load canvg: "+y))}).then(function(y){return y.default?y.default:y})}Mi.API.addSvgAsImage=function(y,M,ne,Z,ge,De,Ne,tt){if(isNaN(M)||isNaN(ne))throw ii.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(Z)||isNaN(ge))throw ii.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var yt=document.createElement("canvas");yt.width=Z,yt.height=ge;var vt=yt.getContext("2d");vt.fillStyle="#fff",vt.fillRect(0,0,yt.width,yt.height);var Pt={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Ye=this;return u().then(function(cr){return cr.fromString(vt,y,Pt)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(cr){return cr.render(Pt)}).then(function(){Ye.addImage(yt.toDataURL("image/jpeg",1),M,ne,Z,ge,Ne,tt)})}}(),Mi.API.putTotalPages=function(b){var u,y=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(u=new RegExp(b,"g"),y=this.internal.getNumberOfPages()):(u=new RegExp(this.pdfEscape16(b,this.internal.getFont()),"g"),y=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var M=1;M<=this.internal.getNumberOfPages();M++)for(var ne=0;ne<this.internal.pages[M].length;ne++)this.internal.pages[M][ne]=this.internal.pages[M][ne].replace(u,y);return this},Mi.API.viewerPreferences=function(b,u){var y;b=b||{},u=u||!1;var M,ne,Z,ge={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(ge),Ne=[],tt=0,yt=0,vt=0;function Pt(cr,tr){var dr,Qt=!1;for(dr=0;dr<cr.length;dr+=1)cr[dr]===tr&&(Qt=!0);return Qt}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ge)),this.internal.viewerpreferences.isSubscribed=!1),y=this.internal.viewerpreferences.configuration,b==="reset"||u===!0){var Ye=De.length;for(vt=0;vt<Ye;vt+=1)y[De[vt]].value=y[De[vt]].defaultValue,y[De[vt]].explicitSet=!1}if((0,we.Z)(b)==="object"){for(ne in b)if(Z=b[ne],Pt(De,ne)&&Z!==void 0){if(y[ne].type==="boolean"&&typeof Z=="boolean")y[ne].value=Z;else if(y[ne].type==="name"&&Pt(y[ne].valueSet,Z))y[ne].value=Z;else if(y[ne].type==="integer"&&Number.isInteger(Z))y[ne].value=Z;else if(y[ne].type==="array"){for(tt=0;tt<Z.length;tt+=1)if(M=!0,Z[tt].length===1&&typeof Z[tt][0]=="number")Ne.push(String(Z[tt]-1));else if(Z[tt].length>1){for(yt=0;yt<Z[tt].length;yt+=1)typeof Z[tt][yt]!="number"&&(M=!1);M===!0&&Ne.push([Z[tt][0]-1,Z[tt][1]-1].join(" "))}y[ne].value="["+Ne.join(" ")+"]"}else y[ne].value=y[ne].defaultValue;y[ne].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var cr,tr=[];for(cr in y)y[cr].explicitSet===!0&&(y[cr].type==="name"?tr.push("/"+cr+" /"+y[cr].value):tr.push("/"+cr+" "+y[cr].value));tr.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+tr.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=y,this},function(b){var u=function(){var M='<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>',ne=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Z=unescape(encodeURIComponent(M)),ge=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),De=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Ne=unescape(encodeURIComponent("</x:xmpmeta>")),tt=Z.length+ge.length+De.length+ne.length+Ne.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+tt+" >>"),this.internal.write("stream"),this.internal.write(ne+Z+ge+De+Ne),this.internal.write("endstream"),this.internal.write("endobj")},y=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};b.addMetadata=function(M,ne){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:M,namespaceuri:ne||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",y),this.internal.events.subscribe("postPutResources",u)),this}}(Mi.API),function(b){var u=b.API,y=u.pdfEscape16=function(Z,ge){for(var De,Ne=ge.metadata.Unicode.widths,tt=["","0","00","000","0000"],yt=[""],vt=0,Pt=Z.length;vt<Pt;++vt){if(De=ge.metadata.characterToGlyph(Z.charCodeAt(vt)),ge.metadata.glyIdsUsed.push(De),ge.metadata.toUnicode[De]=Z.charCodeAt(vt),Ne.indexOf(De)==-1&&(Ne.push(De),Ne.push([parseInt(ge.metadata.widthOfGlyph(De),10)])),De=="0")return yt.join("");De=De.toString(16),yt.push(tt[4-De.length],De)}return yt.join("")},M=function(Z){var ge,De,Ne,tt,yt,vt,Pt;for(yt=`/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`,Ne=[],vt=0,Pt=(De=Object.keys(Z).sort(function(Ye,cr){return Ye-cr})).length;vt<Pt;vt++)ge=De[vt],Ne.length>=100&&(yt+=`
|
|
|
`+Ne.length+` beginbfchar
|
|
|
`+Ne.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Ne=[]),Z[ge]!==void 0&&Z[ge]!==null&&typeof Z[ge].toString=="function"&&(tt=("0000"+Z[ge].toString(16)).slice(-4),ge=("0000"+(+ge).toString(16)).slice(-4),Ne.push("<"+ge+"><"+tt+">"));return Ne.length&&(yt+=`
|
|
|
`+Ne.length+` beginbfchar
|
|
|
`+Ne.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),yt+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};u.events.push(["putFont",function(Z){(function(ge){var De=ge.font,Ne=ge.out,tt=ge.newObject,yt=ge.putStream;if(De.metadata instanceof b.API.TTFFont&&De.encoding==="Identity-H"){for(var vt=De.metadata.Unicode.widths,Pt=De.metadata.subset.encode(De.metadata.glyIdsUsed,1),Ye="",cr=0;cr<Pt.length;cr++)Ye+=String.fromCharCode(Pt[cr]);var tr=tt();yt({data:Ye,addLength1:!0,objectId:tr}),Ne("endobj");var dr=tt();yt({data:M(De.metadata.toUnicode),addLength1:!0,objectId:dr}),Ne("endobj");var Qt=tt();Ne("<<"),Ne("/Type /FontDescriptor"),Ne("/FontName /"+Ca(De.fontName)),Ne("/FontFile2 "+tr+" 0 R"),Ne("/FontBBox "+b.API.PDFObject.convert(De.metadata.bbox)),Ne("/Flags "+De.metadata.flags),Ne("/StemV "+De.metadata.stemV),Ne("/ItalicAngle "+De.metadata.italicAngle),Ne("/Ascent "+De.metadata.ascender),Ne("/Descent "+De.metadata.decender),Ne("/CapHeight "+De.metadata.capHeight),Ne(">>"),Ne("endobj");var pr=tt();Ne("<<"),Ne("/Type /Font"),Ne("/BaseFont /"+Ca(De.fontName)),Ne("/FontDescriptor "+Qt+" 0 R"),Ne("/W "+b.API.PDFObject.convert(vt)),Ne("/CIDToGIDMap /Identity"),Ne("/DW 1000"),Ne("/Subtype /CIDFontType2"),Ne("/CIDSystemInfo"),Ne("<<"),Ne("/Supplement 0"),Ne("/Registry (Adobe)"),Ne("/Ordering ("+De.encoding+")"),Ne(">>"),Ne(">>"),Ne("endobj"),De.objectNumber=tt(),Ne("<<"),Ne("/Type /Font"),Ne("/Subtype /Type0"),Ne("/ToUnicode "+dr+" 0 R"),Ne("/BaseFont /"+Ca(De.fontName)),Ne("/Encoding /"+De.encoding),Ne("/DescendantFonts ["+pr+" 0 R]"),Ne(">>"),Ne("endobj"),De.isAlreadyPutted=!0}})(Z)}]),u.events.push(["putFont",function(Z){(function(ge){var De=ge.font,Ne=ge.out,tt=ge.newObject,yt=ge.putStream;if(De.metadata instanceof b.API.TTFFont&&De.encoding==="WinAnsiEncoding"){for(var vt=De.metadata.rawData,Pt="",Ye=0;Ye<vt.length;Ye++)Pt+=String.fromCharCode(vt[Ye]);var cr=tt();yt({data:Pt,addLength1:!0,objectId:cr}),Ne("endobj");var tr=tt();yt({data:M(De.metadata.toUnicode),addLength1:!0,objectId:tr}),Ne("endobj");var dr=tt();Ne("<<"),Ne("/Descent "+De.metadata.decender),Ne("/CapHeight "+De.metadata.capHeight),Ne("/StemV "+De.metadata.stemV),Ne("/Type /FontDescriptor"),Ne("/FontFile2 "+cr+" 0 R"),Ne("/Flags 96"),Ne("/FontBBox "+b.API.PDFObject.convert(De.metadata.bbox)),Ne("/FontName /"+Ca(De.fontName)),Ne("/ItalicAngle "+De.metadata.italicAngle),Ne("/Ascent "+De.metadata.ascender),Ne(">>"),Ne("endobj"),De.objectNumber=tt();for(var Qt=0;Qt<De.metadata.hmtx.widths.length;Qt++)De.metadata.hmtx.widths[Qt]=parseInt(De.metadata.hmtx.widths[Qt]*(1e3/De.metadata.head.unitsPerEm));Ne("<</Subtype/TrueType/Type/Font/ToUnicode "+tr+" 0 R/BaseFont/"+Ca(De.fontName)+"/FontDescriptor "+dr+" 0 R/Encoding/"+De.encoding+" /FirstChar 29 /LastChar 255 /Widths "+b.API.PDFObject.convert(De.metadata.hmtx.widths)+">>"),Ne("endobj"),De.isAlreadyPutted=!0}})(Z)}]);var ne=function(Z){var ge,De=Z.text||"",Ne=Z.x,tt=Z.y,yt=Z.options||{},vt=Z.mutex||{},Pt=vt.pdfEscape,Ye=vt.activeFontKey,cr=vt.fonts,tr=Ye,dr="",Qt=0,pr="",Ur=cr[tr].encoding;if(cr[tr].encoding!=="Identity-H")return{text:De,x:Ne,y:tt,options:yt,mutex:vt};for(pr=De,tr=Ye,Array.isArray(De)&&(pr=De[0]),Qt=0;Qt<pr.length;Qt+=1)cr[tr].metadata.hasOwnProperty("cmap")&&(ge=cr[tr].metadata.cmap.unicode.codeMap[pr[Qt].charCodeAt(0)]),ge||pr[Qt].charCodeAt(0)<256&&cr[tr].metadata.hasOwnProperty("Unicode")?dr+=pr[Qt]:dr+="";var sn="";return parseInt(tr.slice(1))<14||Ur==="WinAnsiEncoding"?sn=Pt(dr,tr).split("").map(function(Rn){return Rn.charCodeAt(0).toString(16)}).join(""):Ur==="Identity-H"&&(sn=y(dr,cr[tr])),vt.isHex=!0,{text:sn,x:Ne,y:tt,options:yt,mutex:vt}};u.events.push(["postProcessText",function(Z){var ge=Z.text||"",De=[],Ne={text:ge,x:Z.x,y:Z.y,options:Z.options,mutex:Z.mutex};if(Array.isArray(ge)){var tt=0;for(tt=0;tt<ge.length;tt+=1)Array.isArray(ge[tt])&&ge[tt].length===3?De.push([ne(Object.assign({},Ne,{text:ge[tt][0]})).text,ge[tt][1],ge[tt][2]]):De.push(ne(Object.assign({},Ne,{text:ge[tt]})).text);Z.text=De}else Z.text=ne(Object.assign({},Ne,{text:ge})).text}])}(Mi),function(b){var u=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};b.existsFileInVFS=function(y){return u.call(this),this.internal.vFS[y]!==void 0},b.addFileToVFS=function(y,M){return u.call(this),this.internal.vFS[y]=M,this},b.getFileFromVFS=function(y){return u.call(this),this.internal.vFS[y]!==void 0?this.internal.vFS[y]:null}}(Mi.API),function(b){b.__bidiEngine__=b.prototype.__bidiEngine__=function(M){var ne,Z,ge,De,Ne,tt,yt,vt=u,Pt=[[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]],Ye=[[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]],cr={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},tr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},dr=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],Qt=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)$/),pr=!1,Ur=0;this.__bidiEngine__={};var sn=function(er){var nr=er.charCodeAt(),ye=nr>>8,Ee=tr[ye];return Ee!==void 0?vt[256*Ee+(255&nr)]:ye===252||ye===253?"AL":Qt.test(ye)?"L":ye===8?"R":"N"},Rn=function(er){for(var nr,ye=0;ye<er.length;ye++){if((nr=sn(er.charAt(ye)))==="L")return!1;if(nr==="R")return!0}return!1},ci=function(er,nr,ye,Ee){var et,st,gt,ht,Ut=nr[Ee];switch(Ut){case"L":case"R":pr=!1;break;case"N":case"AN":break;case"EN":pr&&(Ut="AN");break;case"AL":pr=!0,Ut="R";break;case"WS":Ut="N";break;case"CS":Ee<1||Ee+1>=nr.length||(et=ye[Ee-1])!=="EN"&&et!=="AN"||(st=nr[Ee+1])!=="EN"&&st!=="AN"?Ut="N":pr&&(st="AN"),Ut=st===et?st:"N";break;case"ES":Ut=(et=Ee>0?ye[Ee-1]:"B")==="EN"&&Ee+1<nr.length&&nr[Ee+1]==="EN"?"EN":"N";break;case"ET":if(Ee>0&&ye[Ee-1]==="EN"){Ut="EN";break}if(pr){Ut="N";break}for(gt=Ee+1,ht=nr.length;gt<ht&&nr[gt]==="ET";)gt++;Ut=gt<ht&&nr[gt]==="EN"?"EN":"N";break;case"NSM":if(ge&&!De){for(ht=nr.length,gt=Ee+1;gt<ht&&nr[gt]==="NSM";)gt++;if(gt<ht){var $t=er[Ee],sr=$t>=1425&&$t<=2303||$t===64286;if(et=nr[gt],sr&&(et==="R"||et==="AL")){Ut="R";break}}}Ut=Ee<1||(et=nr[Ee-1])==="B"?"N":ye[Ee-1];break;case"B":pr=!1,ne=!0,Ut=Ur;break;case"S":Z=!0,Ut="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":pr=!1;break;case"BN":Ut="N"}return Ut},pn=function(er,nr,ye){var Ee=er.split("");return ye&&Br(Ee,ye,{hiLevel:Ur}),Ee.reverse(),nr&&nr.reverse(),Ee.join("")},Br=function(er,nr,ye){var Ee,et,st,gt,ht,Ut=-1,$t=er.length,sr=0,ze=[],Ce=Ur?Ye:Pt,wt=[];for(pr=!1,ne=!1,Z=!1,et=0;et<$t;et++)wt[et]=sn(er[et]);for(st=0;st<$t;st++){if(ht=sr,ze[st]=ci(er,wt,ze,st),Ee=240&(sr=Ce[ht][cr[ze[st]]]),sr&=15,nr[st]=gt=Ce[sr][5],Ee>0)if(Ee===16){for(et=Ut;et<st;et++)nr[et]=1;Ut=-1}else Ut=-1;if(Ce[sr][6])Ut===-1&&(Ut=st);else if(Ut>-1){for(et=Ut;et<st;et++)nr[et]=gt;Ut=-1}wt[st]==="B"&&(nr[st]=0),ye.hiLevel|=gt}Z&&function(jt,Wt,ur){for(var It=0;It<ur;It++)if(jt[It]==="S"){Wt[It]=Ur;for(var br=It-1;br>=0&&jt[br]==="WS";br--)Wt[br]=Ur}}(wt,nr,$t)},bn=function(er,nr,ye,Ee,et){if(!(et.hiLevel<er)){if(er===1&&Ur===1&&!ne)return nr.reverse(),void(ye&&ye.reverse());for(var st,gt,ht,Ut,$t=nr.length,sr=0;sr<$t;){if(Ee[sr]>=er){for(ht=sr+1;ht<$t&&Ee[ht]>=er;)ht++;for(Ut=sr,gt=ht-1;Ut<gt;Ut++,gt--)st=nr[Ut],nr[Ut]=nr[gt],nr[gt]=st,ye&&(st=ye[Ut],ye[Ut]=ye[gt],ye[gt]=st);sr=ht}sr++}}},Pn=function(er,nr,ye){var Ee=er.split(""),et={hiLevel:Ur};return ye||(ye=[]),Br(Ee,ye,et),function(st,gt,ht){if(ht.hiLevel!==0&&yt)for(var Ut,$t=0;$t<st.length;$t++)gt[$t]===1&&(Ut=dr.indexOf(st[$t]))>=0&&(st[$t]=dr[Ut+1])}(Ee,ye,et),bn(2,Ee,nr,ye,et),bn(1,Ee,nr,ye,et),Ee.join("")};return this.__bidiEngine__.doBidiReorder=function(er,nr,ye){if(function(et,st){if(st)for(var gt=0;gt<et.length;gt++)st[gt]=gt;De===void 0&&(De=Rn(et)),tt===void 0&&(tt=Rn(et))}(er,nr),ge||!Ne||tt)if(ge&&Ne&&De^tt)Ur=De?1:0,er=pn(er,nr,ye);else if(!ge&&Ne&&tt)Ur=De?1:0,er=Pn(er,nr,ye),er=pn(er,nr);else if(!ge||De||Ne||tt){if(ge&&!Ne&&De^tt)er=pn(er,nr),De?(Ur=0,er=Pn(er,nr,ye)):(Ur=1,er=Pn(er,nr,ye),er=pn(er,nr));else if(ge&&De&&!Ne&&tt)Ur=1,er=Pn(er,nr,ye),er=pn(er,nr);else if(!ge&&!Ne&&De^tt){var Ee=yt;De?(Ur=1,er=Pn(er,nr,ye),Ur=0,yt=!1,er=Pn(er,nr,ye),yt=Ee):(Ur=0,er=Pn(er,nr,ye),er=pn(er,nr),Ur=1,yt=!1,er=Pn(er,nr,ye),yt=Ee,er=pn(er,nr))}}else Ur=0,er=Pn(er,nr,ye);else Ur=De?1:0,er=Pn(er,nr,ye);return er},this.__bidiEngine__.setOptions=function(er){er&&(ge=er.isInputVisual,Ne=er.isOutputVisual,De=er.isInputRtl,tt=er.isOutputRtl,yt=er.isSymmetricSwapping)},this.__bidiEngine__.setOptions(M),this.__bidiEngine__};var u=["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"],y=new b.__bidiEngine__({isInputVisual:!0});b.API.events.push(["postProcessText",function(M){var ne=M.text,Z=(M.x,M.y,M.options||{}),ge=(M.mutex,Z.lang,[]);if(Z.isInputVisual=typeof Z.isInputVisual!="boolean"||Z.isInputVisual,y.setOptions(Z),Object.prototype.toString.call(ne)==="[object Array]"){var De=0;for(ge=[],De=0;De<ne.length;De+=1)Object.prototype.toString.call(ne[De])==="[object Array]"?ge.push([y.doBidiReorder(ne[De][0]),ne[De][1],ne[De][2]]):ge.push([y.doBidiReorder(ne[De])]);M.text=ge}else M.text=y.doBidiReorder(ne);y.setOptions({isInputVisual:!0})}])}(Mi),Mi.API.TTFFont=function(){function b(u){var y;if(this.rawData=u,y=this.contents=new Za(u),this.contents.pos=4,y.readString(4)==="ttcf")throw new Error("TTCF not supported.");y.pos=0,this.parse(),this.subset=new Hu(this),this.registerTTF()}return b.open=function(u){return new b(u)},b.prototype.parse=function(){return this.directory=new ys(this.contents),this.head=new qs(this),this.name=new li(this),this.cmap=new il(this),this.toUnicode={},this.hhea=new Rl(this),this.maxp=new Au(this),this.hmtx=new Wl(this),this.post=new Ol(this),this.os2=new cu(this),this.loca=new Xo(this),this.glyf=new ac(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]},b.prototype.registerTTF=function(){var u,y,M,ne,Z;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ge,De,Ne,tt;for(tt=[],ge=0,De=(Ne=this.bbox).length;ge<De;ge++)u=Ne[ge],tt.push(Math.round(u*this.scaleFactor));return tt}.call(this),this.stemV=0,this.post.exists?(M=255&(ne=this.post.italic_angle),32768&(y=ne>>16)&&(y=-(1+(65535^y))),this.italicAngle=+(y+"."+M)):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=(Z=this.familyClass)===1||Z===2||Z===3||Z===4||Z===5||Z===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")},b.prototype.characterToGlyph=function(u){var y;return((y=this.cmap.unicode)!=null?y.codeMap[u]:void 0)||0},b.prototype.widthOfGlyph=function(u){var y;return y=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(u).advance*y},b.prototype.widthOfString=function(u,y,M){var ne,Z,ge,De;for(ge=0,Z=0,De=(u=""+u).length;0<=De?Z<De:Z>De;Z=0<=De?++Z:--Z)ne=u.charCodeAt(Z),ge+=this.widthOfGlyph(this.characterToGlyph(ne))+M*(1e3/y)||0;return ge*(y/1e3)},b.prototype.lineHeight=function(u,y){var M;return y==null&&(y=!1),M=y?this.lineGap:0,(this.ascender+M-this.decender)/1e3*u},b}();var Lo,Za=function(){function b(u){this.data=u!=null?u:[],this.pos=0,this.length=this.data.length}return b.prototype.readByte=function(){return this.data[this.pos++]},b.prototype.writeByte=function(u){return this.data[this.pos++]=u},b.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},b.prototype.writeUInt32=function(u){return this.writeByte(u>>>24&255),this.writeByte(u>>16&255),this.writeByte(u>>8&255),this.writeByte(255&u)},b.prototype.readInt32=function(){var u;return(u=this.readUInt32())>=2147483648?u-4294967296:u},b.prototype.writeInt32=function(u){return u<0&&(u+=4294967296),this.writeUInt32(u)},b.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},b.prototype.writeUInt16=function(u){return this.writeByte(u>>8&255),this.writeByte(255&u)},b.prototype.readInt16=function(){var u;return(u=this.readUInt16())>=32768?u-65536:u},b.prototype.writeInt16=function(u){return u<0&&(u+=65536),this.writeUInt16(u)},b.prototype.readString=function(u){var y,M;for(M=[],y=0;0<=u?y<u:y>u;y=0<=u?++y:--y)M[y]=String.fromCharCode(this.readByte());return M.join("")},b.prototype.writeString=function(u){var y,M,ne;for(ne=[],y=0,M=u.length;0<=M?y<M:y>M;y=0<=M?++y:--y)ne.push(this.writeByte(u.charCodeAt(y)));return ne},b.prototype.readShort=function(){return this.readInt16()},b.prototype.writeShort=function(u){return this.writeInt16(u)},b.prototype.readLongLong=function(){var u,y,M,ne,Z,ge,De,Ne;return u=this.readByte(),y=this.readByte(),M=this.readByte(),ne=this.readByte(),Z=this.readByte(),ge=this.readByte(),De=this.readByte(),Ne=this.readByte(),128&u?-1*(72057594037927940*(255^u)+281474976710656*(255^y)+1099511627776*(255^M)+4294967296*(255^ne)+16777216*(255^Z)+65536*(255^ge)+256*(255^De)+(255^Ne)+1):72057594037927940*u+281474976710656*y+1099511627776*M+4294967296*ne+16777216*Z+65536*ge+256*De+Ne},b.prototype.writeLongLong=function(u){var y,M;return y=Math.floor(u/4294967296),M=4294967295&u,this.writeByte(y>>24&255),this.writeByte(y>>16&255),this.writeByte(y>>8&255),this.writeByte(255&y),this.writeByte(M>>24&255),this.writeByte(M>>16&255),this.writeByte(M>>8&255),this.writeByte(255&M)},b.prototype.readInt=function(){return this.readInt32()},b.prototype.writeInt=function(u){return this.writeInt32(u)},b.prototype.read=function(u){var y,M;for(y=[],M=0;0<=u?M<u:M>u;M=0<=u?++M:--M)y.push(this.readByte());return y},b.prototype.write=function(u){var y,M,ne,Z;for(Z=[],M=0,ne=u.length;M<ne;M++)y=u[M],Z.push(this.writeByte(y));return Z},b}(),ys=function(){var b;function u(y){var M,ne,Z;for(this.scalarType=y.readInt(),this.tableCount=y.readShort(),this.searchRange=y.readShort(),this.entrySelector=y.readShort(),this.rangeShift=y.readShort(),this.tables={},ne=0,Z=this.tableCount;0<=Z?ne<Z:ne>Z;ne=0<=Z?++ne:--ne)M={tag:y.readString(4),checksum:y.readInt(),offset:y.readInt(),length:y.readInt()},this.tables[M.tag]=M}return u.prototype.encode=function(y){var M,ne,Z,ge,De,Ne,tt,yt,vt,Pt,Ye,cr,tr;for(tr in Ye=Object.keys(y).length,Ne=Math.log(2),vt=16*Math.floor(Math.log(Ye)/Ne),ge=Math.floor(vt/Ne),yt=16*Ye-vt,(ne=new Za).writeInt(this.scalarType),ne.writeShort(Ye),ne.writeShort(vt),ne.writeShort(ge),ne.writeShort(yt),Z=16*Ye,tt=ne.pos+Z,De=null,cr=[],y)for(Pt=y[tr],ne.writeString(tr),ne.writeInt(b(Pt)),ne.writeInt(tt),ne.writeInt(Pt.length),cr=cr.concat(Pt),tr==="head"&&(De=tt),tt+=Pt.length;tt%4;)cr.push(0),tt++;return ne.write(cr),M=2981146554-b(ne.data),ne.pos=De+8,ne.writeUInt32(M),ne.data},b=function(y){var M,ne,Z,ge;for(y=ic.call(y);y.length%4;)y.push(0);for(Z=new Za(y),ne=0,M=0,ge=y.length;M<ge;M=M+=4)ne+=Z.readUInt32();return 4294967295&ne},u}(),Xa={}.hasOwnProperty,Cs=function(b,u){for(var y in u)Xa.call(u,y)&&(b[y]=u[y]);function M(){this.constructor=b}return M.prototype=u.prototype,b.prototype=new M,b.__super__=u.prototype,b};Lo=function(){function b(u){var y;this.file=u,y=this.file.directory.tables[this.tag],this.exists=!!y,y&&(this.offset=y.offset,this.length=y.length,this.parse(this.file.contents))}return b.prototype.parse=function(){},b.prototype.encode=function(){},b.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},b}();var qs=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="head",u.prototype.parse=function(y){return y.pos=this.offset,this.version=y.readInt(),this.revision=y.readInt(),this.checkSumAdjustment=y.readInt(),this.magicNumber=y.readInt(),this.flags=y.readShort(),this.unitsPerEm=y.readShort(),this.created=y.readLongLong(),this.modified=y.readLongLong(),this.xMin=y.readShort(),this.yMin=y.readShort(),this.xMax=y.readShort(),this.yMax=y.readShort(),this.macStyle=y.readShort(),this.lowestRecPPEM=y.readShort(),this.fontDirectionHint=y.readShort(),this.indexToLocFormat=y.readShort(),this.glyphDataFormat=y.readShort()},u.prototype.encode=function(y){var M;return(M=new Za).writeInt(this.version),M.writeInt(this.revision),M.writeInt(this.checkSumAdjustment),M.writeInt(this.magicNumber),M.writeShort(this.flags),M.writeShort(this.unitsPerEm),M.writeLongLong(this.created),M.writeLongLong(this.modified),M.writeShort(this.xMin),M.writeShort(this.yMin),M.writeShort(this.xMax),M.writeShort(this.yMax),M.writeShort(this.macStyle),M.writeShort(this.lowestRecPPEM),M.writeShort(this.fontDirectionHint),M.writeShort(y),M.writeShort(this.glyphDataFormat),M.data},u}(),El=function(){function b(u,y){var M,ne,Z,ge,De,Ne,tt,yt,vt,Pt,Ye,cr,tr,dr,Qt,pr,Ur;switch(this.platformID=u.readUInt16(),this.encodingID=u.readShort(),this.offset=y+u.readInt(),vt=u.pos,u.pos=this.offset,this.format=u.readUInt16(),this.length=u.readUInt16(),this.language=u.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(Ne=0;Ne<256;++Ne)this.codeMap[Ne]=u.readByte();break;case 4:for(Ye=u.readUInt16(),Pt=Ye/2,u.pos+=6,Z=function(){var sn,Rn;for(Rn=[],Ne=sn=0;0<=Pt?sn<Pt:sn>Pt;Ne=0<=Pt?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),u.pos+=2,tr=function(){var sn,Rn;for(Rn=[],Ne=sn=0;0<=Pt?sn<Pt:sn>Pt;Ne=0<=Pt?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),tt=function(){var sn,Rn;for(Rn=[],Ne=sn=0;0<=Pt?sn<Pt:sn>Pt;Ne=0<=Pt?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),yt=function(){var sn,Rn;for(Rn=[],Ne=sn=0;0<=Pt?sn<Pt:sn>Pt;Ne=0<=Pt?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),ne=(this.length-u.pos+this.offset)/2,De=function(){var sn,Rn;for(Rn=[],Ne=sn=0;0<=ne?sn<ne:sn>ne;Ne=0<=ne?++sn:--sn)Rn.push(u.readUInt16());return Rn}(),Ne=Qt=0,Ur=Z.length;Qt<Ur;Ne=++Qt)for(dr=Z[Ne],M=pr=cr=tr[Ne];cr<=dr?pr<=dr:pr>=dr;M=cr<=dr?++pr:--pr)yt[Ne]===0?ge=M+tt[Ne]:(ge=De[yt[Ne]/2+(M-cr)-(Pt-Ne)]||0)!==0&&(ge+=tt[Ne]),this.codeMap[M]=65535&ge}u.pos=vt}return b.encode=function(u,y){var M,ne,Z,ge,De,Ne,tt,yt,vt,Pt,Ye,cr,tr,dr,Qt,pr,Ur,sn,Rn,ci,pn,Br,bn,Pn,er,nr,ye,Ee,et,st,gt,ht,Ut,$t,sr,ze,Ce,wt,jt,Wt,ur,It,br,Gr,$r,cn;switch(Ee=new Za,ge=Object.keys(u).sort(function(Dn,ni){return Dn-ni}),y){case"macroman":for(tr=0,dr=function(){var Dn=[];for(cr=0;cr<256;++cr)Dn.push(0);return Dn}(),pr={0:0},Z={},et=0,Ut=ge.length;et<Ut;et++)pr[br=u[ne=ge[et]]]==null&&(pr[br]=++tr),Z[ne]={old:u[ne],new:pr[u[ne]]},dr[ne]=pr[u[ne]];return Ee.writeUInt16(1),Ee.writeUInt16(0),Ee.writeUInt32(12),Ee.writeUInt16(0),Ee.writeUInt16(262),Ee.writeUInt16(0),Ee.write(dr),{charMap:Z,subtable:Ee.data,maxGlyphID:tr+1};case"unicode":for(nr=[],vt=[],Ur=0,pr={},M={},Qt=tt=null,st=0,$t=ge.length;st<$t;st++)pr[Rn=u[ne=ge[st]]]==null&&(pr[Rn]=++Ur),M[ne]={old:Rn,new:pr[Rn]},De=pr[Rn]-ne,Qt!=null&&De===tt||(Qt&&vt.push(Qt),nr.push(ne),tt=De),Qt=ne;for(Qt&&vt.push(Qt),vt.push(65535),nr.push(65535),Pn=2*(bn=nr.length),Br=2*Math.pow(Math.log(bn)/Math.LN2,2),Pt=Math.log(Br/2)/Math.LN2,pn=2*bn-Br,Ne=[],ci=[],Ye=[],cr=gt=0,sr=nr.length;gt<sr;cr=++gt){if(er=nr[cr],yt=vt[cr],er===65535){Ne.push(0),ci.push(0);break}if(er-(ye=M[er].new)>=32768)for(Ne.push(0),ci.push(2*(Ye.length+bn-cr)),ne=ht=er;er<=yt?ht<=yt:ht>=yt;ne=er<=yt?++ht:--ht)Ye.push(M[ne].new);else Ne.push(ye-er),ci.push(0)}for(Ee.writeUInt16(3),Ee.writeUInt16(1),Ee.writeUInt32(12),Ee.writeUInt16(4),Ee.writeUInt16(16+8*bn+2*Ye.length),Ee.writeUInt16(0),Ee.writeUInt16(Pn),Ee.writeUInt16(Br),Ee.writeUInt16(Pt),Ee.writeUInt16(pn),ur=0,ze=vt.length;ur<ze;ur++)ne=vt[ur],Ee.writeUInt16(ne);for(Ee.writeUInt16(0),It=0,Ce=nr.length;It<Ce;It++)ne=nr[It],Ee.writeUInt16(ne);for(Gr=0,wt=Ne.length;Gr<wt;Gr++)De=Ne[Gr],Ee.writeUInt16(De);for($r=0,jt=ci.length;$r<jt;$r++)sn=ci[$r],Ee.writeUInt16(sn);for(cn=0,Wt=Ye.length;cn<Wt;cn++)tr=Ye[cn],Ee.writeUInt16(tr);return{charMap:M,subtable:Ee.data,maxGlyphID:Ur+1}}},b}(),il=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="cmap",u.prototype.parse=function(y){var M,ne,Z;for(y.pos=this.offset,this.version=y.readUInt16(),Z=y.readUInt16(),this.tables=[],this.unicode=null,ne=0;0<=Z?ne<Z:ne>Z;ne=0<=Z?++ne:--ne)M=new El(y,this.offset),this.tables.push(M),M.isUnicode&&this.unicode==null&&(this.unicode=M);return!0},u.encode=function(y,M){var ne,Z;return M==null&&(M="macroman"),ne=El.encode(y,M),(Z=new Za).writeUInt16(0),Z.writeUInt16(1),ne.table=Z.data.concat(ne.subtable),ne},u}(),Rl=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="hhea",u.prototype.parse=function(y){return y.pos=this.offset,this.version=y.readInt(),this.ascender=y.readShort(),this.decender=y.readShort(),this.lineGap=y.readShort(),this.advanceWidthMax=y.readShort(),this.minLeftSideBearing=y.readShort(),this.minRightSideBearing=y.readShort(),this.xMaxExtent=y.readShort(),this.caretSlopeRise=y.readShort(),this.caretSlopeRun=y.readShort(),this.caretOffset=y.readShort(),y.pos+=8,this.metricDataFormat=y.readShort(),this.numberOfMetrics=y.readUInt16()},u}(),cu=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="OS/2",u.prototype.parse=function(y){if(y.pos=this.offset,this.version=y.readUInt16(),this.averageCharWidth=y.readShort(),this.weightClass=y.readUInt16(),this.widthClass=y.readUInt16(),this.type=y.readShort(),this.ySubscriptXSize=y.readShort(),this.ySubscriptYSize=y.readShort(),this.ySubscriptXOffset=y.readShort(),this.ySubscriptYOffset=y.readShort(),this.ySuperscriptXSize=y.readShort(),this.ySuperscriptYSize=y.readShort(),this.ySuperscriptXOffset=y.readShort(),this.ySuperscriptYOffset=y.readShort(),this.yStrikeoutSize=y.readShort(),this.yStrikeoutPosition=y.readShort(),this.familyClass=y.readShort(),this.panose=function(){var M,ne;for(ne=[],M=0;M<10;++M)ne.push(y.readByte());return ne}(),this.charRange=function(){var M,ne;for(ne=[],M=0;M<4;++M)ne.push(y.readInt());return ne}(),this.vendorID=y.readString(4),this.selection=y.readShort(),this.firstCharIndex=y.readShort(),this.lastCharIndex=y.readShort(),this.version>0&&(this.ascent=y.readShort(),this.descent=y.readShort(),this.lineGap=y.readShort(),this.winAscent=y.readShort(),this.winDescent=y.readShort(),this.codePageRange=function(){var M,ne;for(ne=[],M=0;M<2;M=++M)ne.push(y.readInt());return ne}(),this.version>1))return this.xHeight=y.readShort(),this.capHeight=y.readShort(),this.defaultChar=y.readShort(),this.breakChar=y.readShort(),this.maxContext=y.readShort()},u}(),Ol=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="post",u.prototype.parse=function(y){var M,ne,Z;switch(y.pos=this.offset,this.format=y.readInt(),this.italicAngle=y.readInt(),this.underlinePosition=y.readShort(),this.underlineThickness=y.readShort(),this.isFixedPitch=y.readInt(),this.minMemType42=y.readInt(),this.maxMemType42=y.readInt(),this.minMemType1=y.readInt(),this.maxMemType1=y.readInt(),this.format){case 65536:break;case 131072:var ge;for(ne=y.readUInt16(),this.glyphNameIndex=[],ge=0;0<=ne?ge<ne:ge>ne;ge=0<=ne?++ge:--ge)this.glyphNameIndex.push(y.readUInt16());for(this.names=[],Z=[];y.pos<this.offset+this.length;)M=y.readByte(),Z.push(this.names.push(y.readString(M)));return Z;case 151552:return ne=y.readUInt16(),this.offsets=y.read(ne);case 196608:break;case 262144:return this.map=function(){var De,Ne,tt;for(tt=[],ge=De=0,Ne=this.file.maxp.numGlyphs;0<=Ne?De<Ne:De>Ne;ge=0<=Ne?++De:--De)tt.push(y.readUInt32());return tt}.call(this)}},u}(),Pl=function(b,u){this.raw=b,this.length=b.length,this.platformID=u.platformID,this.encodingID=u.encodingID,this.languageID=u.languageID},li=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="name",u.prototype.parse=function(y){var M,ne,Z,ge,De,Ne,tt,yt,vt,Pt,Ye;for(y.pos=this.offset,y.readShort(),M=y.readShort(),Ne=y.readShort(),ne=[],ge=0;0<=M?ge<M:ge>M;ge=0<=M?++ge:--ge)ne.push({platformID:y.readShort(),encodingID:y.readShort(),languageID:y.readShort(),nameID:y.readShort(),length:y.readShort(),offset:this.offset+Ne+y.readShort()});for(tt={},ge=vt=0,Pt=ne.length;vt<Pt;ge=++vt)Z=ne[ge],y.pos=Z.offset,yt=y.readString(Z.length),De=new Pl(yt,Z),tt[Ye=Z.nameID]==null&&(tt[Ye]=[]),tt[Z.nameID].push(De);this.strings=tt,this.copyright=tt[0],this.fontFamily=tt[1],this.fontSubfamily=tt[2],this.uniqueSubfamily=tt[3],this.fontName=tt[4],this.version=tt[5];try{this.postscriptName=tt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(cr){this.postscriptName=tt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=tt[7],this.manufacturer=tt[8],this.designer=tt[9],this.description=tt[10],this.vendorUrl=tt[11],this.designerUrl=tt[12],this.license=tt[13],this.licenseUrl=tt[14],this.preferredFamily=tt[15],this.preferredSubfamily=tt[17],this.compatibleFull=tt[18],this.sampleText=tt[19]},u}(),Au=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="maxp",u.prototype.parse=function(y){return y.pos=this.offset,this.version=y.readInt(),this.numGlyphs=y.readUInt16(),this.maxPoints=y.readUInt16(),this.maxContours=y.readUInt16(),this.maxCompositePoints=y.readUInt16(),this.maxComponentContours=y.readUInt16(),this.maxZones=y.readUInt16(),this.maxTwilightPoints=y.readUInt16(),this.maxStorage=y.readUInt16(),this.maxFunctionDefs=y.readUInt16(),this.maxInstructionDefs=y.readUInt16(),this.maxStackElements=y.readUInt16(),this.maxSizeOfInstructions=y.readUInt16(),this.maxComponentElements=y.readUInt16(),this.maxComponentDepth=y.readUInt16()},u}(),Wl=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="hmtx",u.prototype.parse=function(y){var M,ne,Z,ge,De,Ne,tt;for(y.pos=this.offset,this.metrics=[],M=0,Ne=this.file.hhea.numberOfMetrics;0<=Ne?M<Ne:M>Ne;M=0<=Ne?++M:--M)this.metrics.push({advance:y.readUInt16(),lsb:y.readInt16()});for(Z=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var yt,vt;for(vt=[],M=yt=0;0<=Z?yt<Z:yt>Z;M=0<=Z?++yt:--yt)vt.push(y.readInt16());return vt}(),this.widths=function(){var yt,vt,Pt,Ye;for(Ye=[],yt=0,vt=(Pt=this.metrics).length;yt<vt;yt++)ge=Pt[yt],Ye.push(ge.advance);return Ye}.call(this),ne=this.widths[this.widths.length-1],tt=[],M=De=0;0<=Z?De<Z:De>Z;M=0<=Z?++De:--De)tt.push(this.widths.push(ne));return tt},u.prototype.forGlyph=function(y){return y in this.metrics?this.metrics[y]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[y-this.metrics.length]}},u}(),ic=[].slice,ac=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="glyf",u.prototype.parse=function(){return this.cache={}},u.prototype.glyphFor=function(y){var M,ne,Z,ge,De,Ne,tt,yt,vt,Pt;return y in this.cache?this.cache[y]:(ge=this.file.loca,M=this.file.contents,ne=ge.indexOf(y),(Z=ge.lengthOf(y))===0?this.cache[y]=null:(M.pos=this.offset+ne,De=(Ne=new Za(M.read(Z))).readShort(),yt=Ne.readShort(),Pt=Ne.readShort(),tt=Ne.readShort(),vt=Ne.readShort(),this.cache[y]=De===-1?new sc(Ne,yt,Pt,tt,vt):new du(Ne,De,yt,Pt,tt,vt),this.cache[y]))},u.prototype.encode=function(y,M,ne){var Z,ge,De,Ne,tt;for(De=[],ge=[],Ne=0,tt=M.length;Ne<tt;Ne++)Z=y[M[Ne]],ge.push(De.length),Z&&(De=De.concat(Z.encode(ne)));return ge.push(De.length),{table:De,offsets:ge}},u}(),du=function(){function b(u,y,M,ne,Z,ge){this.raw=u,this.numberOfContours=y,this.xMin=M,this.yMin=ne,this.xMax=Z,this.yMax=ge,this.compound=!1}return b.prototype.encode=function(){return this.raw.data},b}(),sc=function(){function b(u,y,M,ne,Z){var ge,De;for(this.raw=u,this.xMin=y,this.yMin=M,this.xMax=ne,this.yMax=Z,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ge=this.raw;De=ge.readShort(),this.glyphOffsets.push(ge.pos),this.glyphIDs.push(ge.readUInt16()),32&De;)ge.pos+=1&De?4:2,128&De?ge.pos+=8:64&De?ge.pos+=4:8&De&&(ge.pos+=2)}return b.prototype.encode=function(){var u,y,M;for(y=new Za(ic.call(this.raw.data)),u=0,M=this.glyphIDs.length;u<M;++u)y.pos=this.glyphOffsets[u];return y.data},b}(),Xo=function(b){function u(){return u.__super__.constructor.apply(this,arguments)}return Cs(u,Lo),u.prototype.tag="loca",u.prototype.parse=function(y){var M,ne;return y.pos=this.offset,M=this.file.head.indexToLocFormat,this.offsets=M===0?function(){var Z,ge;for(ge=[],ne=0,Z=this.length;ne<Z;ne+=2)ge.push(2*y.readUInt16());return ge}.call(this):function(){var Z,ge;for(ge=[],ne=0,Z=this.length;ne<Z;ne+=4)ge.push(y.readUInt32());return ge}.call(this)},u.prototype.indexOf=function(y){return this.offsets[y]},u.prototype.lengthOf=function(y){return this.offsets[y+1]-this.offsets[y]},u.prototype.encode=function(y,M){for(var ne=new Uint32Array(this.offsets.length),Z=0,ge=0,De=0;De<ne.length;++De)if(ne[De]=Z,ge<M.length&&M[ge]==De){++ge,ne[De]=Z;var Ne=this.offsets[De],tt=this.offsets[De+1]-Ne;tt>0&&(Z+=tt)}for(var yt=new Array(4*ne.length),vt=0;vt<ne.length;++vt)yt[4*vt+3]=255&ne[vt],yt[4*vt+2]=(65280&ne[vt])>>8,yt[4*vt+1]=(16711680&ne[vt])>>16,yt[4*vt]=(4278190080&ne[vt])>>24;return yt},u}(),Hu=function(){function b(u){this.font=u,this.subset={},this.unicodes={},this.next=33}return b.prototype.generateCmap=function(){var u,y,M,ne,Z;for(y in ne=this.font.cmap.tables[0].codeMap,u={},Z=this.subset)M=Z[y],u[y]=ne[M];return u},b.prototype.glyphsFor=function(u){var y,M,ne,Z,ge,De,Ne;for(ne={},ge=0,De=u.length;ge<De;ge++)ne[Z=u[ge]]=this.font.glyf.glyphFor(Z);for(Z in y=[],ne)(M=ne[Z])!=null&&M.compound&&y.push.apply(y,M.glyphIDs);if(y.length>0)for(Z in Ne=this.glyphsFor(y))M=Ne[Z],ne[Z]=M;return ne},b.prototype.encode=function(u,y){var M,ne,Z,ge,De,Ne,tt,yt,vt,Pt,Ye,cr,tr,dr,Qt;for(ne in M=il.encode(this.generateCmap(),"unicode"),ge=this.glyphsFor(u),Ye={0:0},Qt=M.charMap)Ye[(Ne=Qt[ne]).old]=Ne.new;for(cr in Pt=M.maxGlyphID,ge)cr in Ye||(Ye[cr]=Pt++);return yt=function(pr){var Ur,sn;for(Ur in sn={},pr)sn[pr[Ur]]=Ur;return sn}(Ye),vt=Object.keys(yt).sort(function(pr,Ur){return pr-Ur}),tr=function(){var pr,Ur,sn;for(sn=[],pr=0,Ur=vt.length;pr<Ur;pr++)De=vt[pr],sn.push(yt[De]);return sn}(),Z=this.font.glyf.encode(ge,tr,Ye),tt=this.font.loca.encode(Z.offsets,tr),dr={cmap:this.font.cmap.raw(),glyf:Z.table,loca:tt,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(y)},this.font.os2.exists&&(dr["OS/2"]=this.font.os2.raw()),this.font.directory.encode(dr)},b}();Mi.API.PDFObject=function(){var b;function u(){}return b=function(y,M){return(Array(M+1).join("0")+y).slice(-M)},u.convert=function(y){var M,ne,Z,ge;if(Array.isArray(y))return"["+function(){var De,Ne,tt;for(tt=[],De=0,Ne=y.length;De<Ne;De++)M=y[De],tt.push(u.convert(M));return tt}().join(" ")+"]";if(typeof y=="string")return"/"+y;if(y!=null&&y.isString)return"("+y+")";if(y instanceof Date)return"(D:"+b(y.getUTCFullYear(),4)+b(y.getUTCMonth(),2)+b(y.getUTCDate(),2)+b(y.getUTCHours(),2)+b(y.getUTCMinutes(),2)+b(y.getUTCSeconds(),2)+"Z)";if({}.toString.call(y)==="[object Object]"){for(ne in Z=["<<"],y)ge=y[ne],Z.push("/"+ne+" "+u.convert(ge));return Z.push(">>"),Z.join(`
|
|
|
`)}return""+y},u}();var oc=Mi},86129:function(yn,Gt,g){var we=g(19208).lW,Fe=g(97671);(function(se){yn.exports=se()})(function(){return function se(ke,ie,Y){function O(o,L){if(!ie[o]){if(!ke[o]){var p=void 0;if(!L&&p)return require(o,!0);if(T)return T(o,!0);var a=new Error("Cannot find module '"+o+"'");throw a.code="MODULE_NOT_FOUND",a}var A=ie[o]={exports:{}};ke[o][0].call(A.exports,function(m){var S=ke[o][1][m];return O(S||m)},A,A.exports,se,ke,ie,Y)}return ie[o].exports}for(var T=void 0,n=0;n<Y.length;n++)O(Y[n]);return O}({1:[function(se,ke,ie){"use strict";var Y=se("./utils"),O=se("./support"),T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ie.encode=function(n){for(var o,L,p,a,A,m,S,K=[],F=0,H=n.length,V=H,ee=Y.getTypeOf(n)!=="string";F<n.length;)V=H-F,p=ee?(o=n[F++],L=F<H?n[F++]:0,F<H?n[F++]:0):(o=n.charCodeAt(F++),L=F<H?n.charCodeAt(F++):0,F<H?n.charCodeAt(F++):0),a=o>>2,A=(3&o)<<4|L>>4,m=1<V?(15&L)<<2|p>>6:64,S=2<V?63&p:64,K.push(T.charAt(a)+T.charAt(A)+T.charAt(m)+T.charAt(S));return K.join("")},ie.decode=function(n){var o,L,p,a,A,m,S=0,K=0,F="data:";if(n.substr(0,F.length)===F)throw new Error("Invalid base64 input, it looks like a data url.");var H,V=3*(n=n.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(n.charAt(n.length-1)===T.charAt(64)&&V--,n.charAt(n.length-2)===T.charAt(64)&&V--,V%1!=0)throw new Error("Invalid base64 input, bad content length.");for(H=O.uint8array?new Uint8Array(0|V):new Array(0|V);S<n.length;)o=T.indexOf(n.charAt(S++))<<2|(a=T.indexOf(n.charAt(S++)))>>4,L=(15&a)<<4|(A=T.indexOf(n.charAt(S++)))>>2,p=(3&A)<<6|(m=T.indexOf(n.charAt(S++))),H[K++]=o,A!==64&&(H[K++]=L),m!==64&&(H[K++]=p);return H}},{"./support":30,"./utils":32}],2:[function(se,ke,ie){"use strict";var Y=se("./external"),O=se("./stream/DataWorker"),T=se("./stream/Crc32Probe"),n=se("./stream/DataLengthProbe");function o(L,p,a,A,m){this.compressedSize=L,this.uncompressedSize=p,this.crc32=a,this.compression=A,this.compressedContent=m}o.prototype={getContentWorker:function(){var L=new O(Y.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),p=this;return L.on("end",function(){if(this.streamInfo.data_length!==p.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),L},getCompressedWorker:function(){return new O(Y.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(L,p,a){return L.pipe(new T).pipe(new n("uncompressedSize")).pipe(p.compressWorker(a)).pipe(new n("compressedSize")).withStreamInfo("compression",p)},ke.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(se,ke,ie){"use strict";var Y=se("./stream/GenericWorker");ie.STORE={magic:"\0\0",compressWorker:function(){return new Y("STORE compression")},uncompressWorker:function(){return new Y("STORE decompression")}},ie.DEFLATE=se("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(se,ke,ie){"use strict";var Y=se("./utils"),O=function(){for(var T,n=[],o=0;o<256;o++){T=o;for(var L=0;L<8;L++)T=1&T?3988292384^T>>>1:T>>>1;n[o]=T}return n}();ke.exports=function(T,n){return T!==void 0&&T.length?Y.getTypeOf(T)!=="string"?function(o,L,p,a){var A=O,m=a+p;o^=-1;for(var S=a;S<m;S++)o=o>>>8^A[255&(o^L[S])];return-1^o}(0|n,T,T.length,0):function(o,L,p,a){var A=O,m=a+p;o^=-1;for(var S=a;S<m;S++)o=o>>>8^A[255&(o^L.charCodeAt(S))];return-1^o}(0|n,T,T.length,0):0}},{"./utils":32}],5:[function(se,ke,ie){"use strict";ie.base64=!1,ie.binary=!1,ie.dir=!1,ie.createFolders=!0,ie.date=null,ie.compression=null,ie.compressionOptions=null,ie.comment=null,ie.unixPermissions=null,ie.dosPermissions=null},{}],6:[function(se,ke,ie){"use strict";var Y=null;Y=typeof Promise!="undefined"?Promise:se("lie"),ke.exports={Promise:Y}},{lie:37}],7:[function(se,ke,ie){"use strict";var Y=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",O=se("pako"),T=se("./utils"),n=se("./stream/GenericWorker"),o=Y?"uint8array":"array";function L(p,a){n.call(this,"FlateWorker/"+p),this._pako=null,this._pakoAction=p,this._pakoOptions=a,this.meta={}}ie.magic="\b\0",T.inherits(L,n),L.prototype.processChunk=function(p){this.meta=p.meta,this._pako===null&&this._createPako(),this._pako.push(T.transformTo(o,p.data),!1)},L.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},L.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},L.prototype._createPako=function(){this._pako=new O[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var p=this;this._pako.onData=function(a){p.push({data:a,meta:p.meta})}},ie.compressWorker=function(p){return new L("Deflate",p)},ie.uncompressWorker=function(){return new L("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(se,ke,ie){"use strict";function Y(A,m){var S,K="";for(S=0;S<m;S++)K+=String.fromCharCode(255&A),A>>>=8;return K}function O(A,m,S,K,F,H){var V,ee,B=A.file,G=A.compression,ce=H!==o.utf8encode,q=T.transformTo("string",H(B.name)),be=T.transformTo("string",o.utf8encode(B.name)),xe=B.comment,Le=T.transformTo("string",H(xe)),ae=T.transformTo("string",o.utf8encode(xe)),me=be.length!==B.name.length,I=ae.length!==xe.length,_e="",oe="",he="",ve=B.dir,_=B.date,N={crc32:0,compressedSize:0,uncompressedSize:0};m&&!S||(N.crc32=A.crc32,N.compressedSize=A.compressedSize,N.uncompressedSize=A.uncompressedSize);var X=0;m&&(X|=8),ce||!me&&!I||(X|=2048);var pe=0,qe=0;ve&&(pe|=16),F==="UNIX"?(qe=798,pe|=function(rt,Rt){var lr=rt;return rt||(lr=Rt?16893:33204),(65535&lr)<<16}(B.unixPermissions,ve)):(qe=20,pe|=function(rt){return 63&(rt||0)}(B.dosPermissions)),V=_.getUTCHours(),V<<=6,V|=_.getUTCMinutes(),V<<=5,V|=_.getUTCSeconds()/2,ee=_.getUTCFullYear()-1980,ee<<=4,ee|=_.getUTCMonth()+1,ee<<=5,ee|=_.getUTCDate(),me&&(oe=Y(1,1)+Y(L(q),4)+be,_e+="up"+Y(oe.length,2)+oe),I&&(he=Y(1,1)+Y(L(Le),4)+ae,_e+="uc"+Y(he.length,2)+he);var at="";return at+=`
|
|
|
\0`,at+=Y(X,2),at+=G.magic,at+=Y(V,2),at+=Y(ee,2),at+=Y(N.crc32,4),at+=Y(N.compressedSize,4),at+=Y(N.uncompressedSize,4),at+=Y(q.length,2),at+=Y(_e.length,2),{fileRecord:p.LOCAL_FILE_HEADER+at+q+_e,dirRecord:p.CENTRAL_FILE_HEADER+Y(qe,2)+at+Y(Le.length,2)+"\0\0\0\0"+Y(pe,4)+Y(K,4)+q+_e+Le}}var T=se("../utils"),n=se("../stream/GenericWorker"),o=se("../utf8"),L=se("../crc32"),p=se("../signature");function a(A,m,S,K){n.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=S,this.encodeFileName=K,this.streamFiles=A,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}T.inherits(a,n),a.prototype.push=function(A){var m=A.meta.percent||0,S=this.entriesCount,K=this._sources.length;this.accumulate?this.contentBuffer.push(A):(this.bytesWritten+=A.data.length,n.prototype.push.call(this,{data:A.data,meta:{currentFile:this.currentFile,percent:S?(m+100*(S-K-1))/S:100}}))},a.prototype.openedSource=function(A){this.currentSourceOffset=this.bytesWritten,this.currentFile=A.file.name;var m=this.streamFiles&&!A.file.dir;if(m){var S=O(A,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:S.fileRecord,meta:{percent:0}})}else this.accumulate=!0},a.prototype.closedSource=function(A){this.accumulate=!1;var m=this.streamFiles&&!A.file.dir,S=O(A,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(S.dirRecord),m)this.push({data:function(K){return p.DATA_DESCRIPTOR+Y(K.crc32,4)+Y(K.compressedSize,4)+Y(K.uncompressedSize,4)}(A),meta:{percent:100}});else for(this.push({data:S.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},a.prototype.flush=function(){for(var A=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var S=this.bytesWritten-A,K=function(F,H,V,ee,B){var G=T.transformTo("string",B(ee));return p.CENTRAL_DIRECTORY_END+"\0\0\0\0"+Y(F,2)+Y(F,2)+Y(H,4)+Y(V,4)+Y(G.length,2)+G}(this.dirRecords.length,S,A,this.zipComment,this.encodeFileName);this.push({data:K,meta:{percent:100}})},a.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},a.prototype.registerPrevious=function(A){this._sources.push(A);var m=this;return A.on("data",function(S){m.processChunk(S)}),A.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),A.on("error",function(S){m.error(S)}),this},a.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},a.prototype.error=function(A){var m=this._sources;if(!n.prototype.error.call(this,A))return!1;for(var S=0;S<m.length;S++)try{m[S].error(A)}catch(K){}return!0},a.prototype.lock=function(){n.prototype.lock.call(this);for(var A=this._sources,m=0;m<A.length;m++)A[m].lock()},ke.exports=a},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(se,ke,ie){"use strict";var Y=se("../compressions"),O=se("./ZipFileWorker");ie.generateWorker=function(T,n,o){var L=new O(n.streamFiles,o,n.platform,n.encodeFileName),p=0;try{T.forEach(function(a,A){p++;var m=function(H,V){var ee=H||V,B=Y[ee];if(!B)throw new Error(ee+" is not a valid compression method !");return B}(A.options.compression,n.compression),S=A.options.compressionOptions||n.compressionOptions||{},K=A.dir,F=A.date;A._compressWorker(m,S).withStreamInfo("file",{name:a,dir:K,date:F,comment:A.comment||"",unixPermissions:A.unixPermissions,dosPermissions:A.dosPermissions}).pipe(L)}),L.entriesCount=p}catch(a){L.error(a)}return L}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(se,ke,ie){"use strict";function Y(){if(!(this instanceof Y))return new Y;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 O=new Y;for(var T in this)typeof this[T]!="function"&&(O[T]=this[T]);return O}}(Y.prototype=se("./object")).loadAsync=se("./load"),Y.support=se("./support"),Y.defaults=se("./defaults"),Y.version="3.10.1",Y.loadAsync=function(O,T){return new Y().loadAsync(O,T)},Y.external=se("./external"),ke.exports=Y},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(se,ke,ie){"use strict";var Y=se("./utils"),O=se("./external"),T=se("./utf8"),n=se("./zipEntries"),o=se("./stream/Crc32Probe"),L=se("./nodejsUtils");function p(a){return new O.Promise(function(A,m){var S=a.decompressed.getContentWorker().pipe(new o);S.on("error",function(K){m(K)}).on("end",function(){S.streamInfo.crc32!==a.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):A()}).resume()})}ke.exports=function(a,A){var m=this;return A=Y.extend(A||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:T.utf8decode}),L.isNode&&L.isStream(a)?O.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):Y.prepareContent("the loaded zip file",a,!0,A.optimizedBinaryString,A.base64).then(function(S){var K=new n(A);return K.load(S),K}).then(function(S){var K=[O.Promise.resolve(S)],F=S.files;if(A.checkCRC32)for(var H=0;H<F.length;H++)K.push(p(F[H]));return O.Promise.all(K)}).then(function(S){for(var K=S.shift(),F=K.files,H=0;H<F.length;H++){var V=F[H],ee=V.fileNameStr,B=Y.resolve(V.fileNameStr);m.file(B,V.decompressed,{binary:!0,optimizedBinaryString:!0,date:V.date,dir:V.dir,comment:V.fileCommentStr.length?V.fileCommentStr:null,unixPermissions:V.unixPermissions,dosPermissions:V.dosPermissions,createFolders:A.createFolders}),V.dir||(m.file(B).unsafeOriginalName=ee)}return K.zipComment.length&&(m.comment=K.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(se,ke,ie){"use strict";var Y=se("../utils"),O=se("../stream/GenericWorker");function T(n,o){O.call(this,"Nodejs stream input adapter for "+n),this._upstreamEnded=!1,this._bindStream(o)}Y.inherits(T,O),T.prototype._bindStream=function(n){var o=this;(this._stream=n).pause(),n.on("data",function(L){o.push({data:L,meta:{percent:0}})}).on("error",function(L){o.isPaused?this.generatedError=L:o.error(L)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},T.prototype.pause=function(){return!!O.prototype.pause.call(this)&&(this._stream.pause(),!0)},T.prototype.resume=function(){return!!O.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},ke.exports=T},{"../stream/GenericWorker":28,"../utils":32}],13:[function(se,ke,ie){"use strict";var Y=se("readable-stream").Readable;function O(T,n,o){Y.call(this,n),this._helper=T;var L=this;T.on("data",function(p,a){L.push(p)||L._helper.pause(),o&&o(a)}).on("error",function(p){L.emit("error",p)}).on("end",function(){L.push(null)})}se("../utils").inherits(O,Y),O.prototype._read=function(){this._helper.resume()},ke.exports=O},{"../utils":32,"readable-stream":16}],14:[function(se,ke,ie){"use strict";ke.exports={isNode:typeof we!="undefined",newBufferFrom:function(Y,O){if(we.from&&we.from!==Uint8Array.from)return we.from(Y,O);if(typeof Y=="number")throw new Error('The "data" argument must not be a number');return new we(Y,O)},allocBuffer:function(Y){if(we.alloc)return we.alloc(Y);var O=new we(Y);return O.fill(0),O},isBuffer:function(Y){return we.isBuffer(Y)},isStream:function(Y){return Y&&typeof Y.on=="function"&&typeof Y.pause=="function"&&typeof Y.resume=="function"}}},{}],15:[function(se,ke,ie){"use strict";function Y(B,G,ce){var q,be=T.getTypeOf(G),xe=T.extend(ce||{},L);xe.date=xe.date||new Date,xe.compression!==null&&(xe.compression=xe.compression.toUpperCase()),typeof xe.unixPermissions=="string"&&(xe.unixPermissions=parseInt(xe.unixPermissions,8)),xe.unixPermissions&&16384&xe.unixPermissions&&(xe.dir=!0),xe.dosPermissions&&16&xe.dosPermissions&&(xe.dir=!0),xe.dir&&(B=F(B)),xe.createFolders&&(q=K(B))&&H.call(this,q,!0);var Le=be==="string"&&xe.binary===!1&&xe.base64===!1;ce&&ce.binary!==void 0||(xe.binary=!Le),(G instanceof p&&G.uncompressedSize===0||xe.dir||!G||G.length===0)&&(xe.base64=!1,xe.binary=!0,G="",xe.compression="STORE",be="string");var ae=null;ae=G instanceof p||G instanceof n?G:m.isNode&&m.isStream(G)?new S(B,G):T.prepareContent(B,G,xe.binary,xe.optimizedBinaryString,xe.base64);var me=new a(B,ae,xe);this.files[B]=me}var O=se("./utf8"),T=se("./utils"),n=se("./stream/GenericWorker"),o=se("./stream/StreamHelper"),L=se("./defaults"),p=se("./compressedObject"),a=se("./zipObject"),A=se("./generate"),m=se("./nodejsUtils"),S=se("./nodejs/NodejsStreamInputAdapter"),K=function(B){B.slice(-1)==="/"&&(B=B.substring(0,B.length-1));var G=B.lastIndexOf("/");return 0<G?B.substring(0,G):""},F=function(B){return B.slice(-1)!=="/"&&(B+="/"),B},H=function(B,G){return G=G!==void 0?G:L.createFolders,B=F(B),this.files[B]||Y.call(this,B,null,{dir:!0,createFolders:G}),this.files[B]};function V(B){return Object.prototype.toString.call(B)==="[object RegExp]"}var ee={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(B){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&&B(ce,q)},filter:function(B){var G=[];return this.forEach(function(ce,q){B(ce,q)&&G.push(q)}),G},file:function(B,G,ce){if(arguments.length!==1)return B=this.root+B,Y.call(this,B,G,ce),this;if(V(B)){var q=B;return this.filter(function(xe,Le){return!Le.dir&&q.test(xe)})}var be=this.files[this.root+B];return be&&!be.dir?be:null},folder:function(B){if(!B)return this;if(V(B))return this.filter(function(be,xe){return xe.dir&&B.test(be)});var G=this.root+B,ce=H.call(this,G),q=this.clone();return q.root=ce.name,q},remove:function(B){B=this.root+B;var G=this.files[B];if(G||(B.slice(-1)!=="/"&&(B+="/"),G=this.files[B]),G&&!G.dir)delete this.files[B];else for(var ce=this.filter(function(be,xe){return xe.name.slice(0,B.length)===B}),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(B){var G,ce={};try{if((ce=T.extend(B||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:O.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=A.generateWorker(this,ce,q)}catch(be){(G=new n("error")).error(be)}return new o(G,ce.type||"string",ce.mimeType)},generateAsync:function(B,G){return this.generateInternalStream(B).accumulate(G)},generateNodeStream:function(B,G){return(B=B||{}).type||(B.type="nodebuffer"),this.generateInternalStream(B).toNodejsStream(G)}};ke.exports=ee},{"./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(se,ke,ie){"use strict";ke.exports=se("stream")},{stream:void 0}],17:[function(se,ke,ie){"use strict";var Y=se("./DataReader");function O(T){Y.call(this,T);for(var n=0;n<this.data.length;n++)T[n]=255&T[n]}se("../utils").inherits(O,Y),O.prototype.byteAt=function(T){return this.data[this.zero+T]},O.prototype.lastIndexOfSignature=function(T){for(var n=T.charCodeAt(0),o=T.charCodeAt(1),L=T.charCodeAt(2),p=T.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===n&&this.data[a+1]===o&&this.data[a+2]===L&&this.data[a+3]===p)return a-this.zero;return-1},O.prototype.readAndCheckSignature=function(T){var n=T.charCodeAt(0),o=T.charCodeAt(1),L=T.charCodeAt(2),p=T.charCodeAt(3),a=this.readData(4);return n===a[0]&&o===a[1]&&L===a[2]&&p===a[3]},O.prototype.readData=function(T){if(this.checkOffset(T),T===0)return[];var n=this.data.slice(this.zero+this.index,this.zero+this.index+T);return this.index+=T,n},ke.exports=O},{"../utils":32,"./DataReader":18}],18:[function(se,ke,ie){"use strict";var Y=se("../utils");function O(T){this.data=T,this.length=T.length,this.index=0,this.zero=0}O.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 n,o=0;for(this.checkOffset(T),n=this.index+T-1;n>=this.index;n--)o=(o<<8)+this.byteAt(n);return this.index+=T,o},readString:function(T){return Y.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))}},ke.exports=O},{"../utils":32}],19:[function(se,ke,ie){"use strict";var Y=se("./Uint8ArrayReader");function O(T){Y.call(this,T)}se("../utils").inherits(O,Y),O.prototype.readData=function(T){this.checkOffset(T);var n=this.data.slice(this.zero+this.index,this.zero+this.index+T);return this.index+=T,n},ke.exports=O},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(se,ke,ie){"use strict";var Y=se("./DataReader");function O(T){Y.call(this,T)}se("../utils").inherits(O,Y),O.prototype.byteAt=function(T){return this.data.charCodeAt(this.zero+T)},O.prototype.lastIndexOfSignature=function(T){return this.data.lastIndexOf(T)-this.zero},O.prototype.readAndCheckSignature=function(T){return T===this.readData(4)},O.prototype.readData=function(T){this.checkOffset(T);var n=this.data.slice(this.zero+this.index,this.zero+this.index+T);return this.index+=T,n},ke.exports=O},{"../utils":32,"./DataReader":18}],21:[function(se,ke,ie){"use strict";var Y=se("./ArrayReader");function O(T){Y.call(this,T)}se("../utils").inherits(O,Y),O.prototype.readData=function(T){if(this.checkOffset(T),T===0)return new Uint8Array(0);var n=this.data.subarray(this.zero+this.index,this.zero+this.index+T);return this.index+=T,n},ke.exports=O},{"../utils":32,"./ArrayReader":17}],22:[function(se,ke,ie){"use strict";var Y=se("../utils"),O=se("../support"),T=se("./ArrayReader"),n=se("./StringReader"),o=se("./NodeBufferReader"),L=se("./Uint8ArrayReader");ke.exports=function(p){var a=Y.getTypeOf(p);return Y.checkSupport(a),a!=="string"||O.uint8array?a==="nodebuffer"?new o(p):O.uint8array?new L(Y.transformTo("uint8array",p)):new T(Y.transformTo("array",p)):new n(p)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(se,ke,ie){"use strict";ie.LOCAL_FILE_HEADER="PK",ie.CENTRAL_FILE_HEADER="PK",ie.CENTRAL_DIRECTORY_END="PK",ie.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ie.ZIP64_CENTRAL_DIRECTORY_END="PK",ie.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(se,ke,ie){"use strict";var Y=se("./GenericWorker"),O=se("../utils");function T(n){Y.call(this,"ConvertWorker to "+n),this.destType=n}O.inherits(T,Y),T.prototype.processChunk=function(n){this.push({data:O.transformTo(this.destType,n.data),meta:n.meta})},ke.exports=T},{"../utils":32,"./GenericWorker":28}],25:[function(se,ke,ie){"use strict";var Y=se("./GenericWorker"),O=se("../crc32");function T(){Y.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}se("../utils").inherits(T,Y),T.prototype.processChunk=function(n){this.streamInfo.crc32=O(n.data,this.streamInfo.crc32||0),this.push(n)},ke.exports=T},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(se,ke,ie){"use strict";var Y=se("../utils"),O=se("./GenericWorker");function T(n){O.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}Y.inherits(T,O),T.prototype.processChunk=function(n){if(n){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+n.data.length}O.prototype.processChunk.call(this,n)},ke.exports=T},{"../utils":32,"./GenericWorker":28}],27:[function(se,ke,ie){"use strict";var Y=se("../utils"),O=se("./GenericWorker");function T(n){O.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,n.then(function(L){o.dataIsReady=!0,o.data=L,o.max=L&&L.length||0,o.type=Y.getTypeOf(L),o.isPaused||o._tickAndRepeat()},function(L){o.error(L)})}Y.inherits(T,O),T.prototype.cleanUp=function(){O.prototype.cleanUp.call(this),this.data=null},T.prototype.resume=function(){return!!O.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,Y.delay(this._tickAndRepeat,[],this)),!0)},T.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Y.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},T.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var n=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":n=this.data.substring(this.index,o);break;case"uint8array":n=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":n=this.data.slice(this.index,o)}return this.index=o,this.push({data:n,meta:{percent:this.max?this.index/this.max*100:0}})},ke.exports=T},{"../utils":32,"./GenericWorker":28}],28:[function(se,ke,ie){"use strict";function Y(O){this.name=O||"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}Y.prototype={push:function(O){this.emit("data",O)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(O){this.emit("error",O)}return!0},error:function(O){return!this.isFinished&&(this.isPaused?this.generatedError=O:(this.isFinished=!0,this.emit("error",O),this.previous&&this.previous.error(O),this.cleanUp()),!0)},on:function(O,T){return this._listeners[O].push(T),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(O,T){if(this._listeners[O])for(var n=0;n<this._listeners[O].length;n++)this._listeners[O][n].call(this,T)},pipe:function(O){return O.registerPrevious(this)},registerPrevious:function(O){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=O.streamInfo,this.mergeStreamInfo(),this.previous=O;var T=this;return O.on("data",function(n){T.processChunk(n)}),O.on("end",function(){T.end()}),O.on("error",function(n){T.error(n)}),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 O=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),O=!0),this.previous&&this.previous.resume(),!O},flush:function(){},processChunk:function(O){this.push(O)},withStreamInfo:function(O,T){return this.extraStreamInfo[O]=T,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var O in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,O)&&(this.streamInfo[O]=this.extraStreamInfo[O])},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 O="Worker "+this.name;return this.previous?this.previous+" -> "+O:O}},ke.exports=Y},{}],29:[function(se,ke,ie){"use strict";var Y=se("../utils"),O=se("./ConvertWorker"),T=se("./GenericWorker"),n=se("../base64"),o=se("../support"),L=se("../external"),p=null;if(o.nodestream)try{p=se("../nodejs/NodejsStreamOutputAdapter")}catch(m){}function a(m,S){return new L.Promise(function(K,F){var H=[],V=m._internalType,ee=m._outputType,B=m._mimeType;m.on("data",function(G,ce){H.push(G),S&&S(ce)}).on("error",function(G){H=[],F(G)}).on("end",function(){try{var G=function(ce,q,be){switch(ce){case"blob":return Y.newBlob(Y.transformTo("arraybuffer",q),be);case"base64":return n.encode(q);default:return Y.transformTo(ce,q)}}(ee,function(ce,q){var be,xe=0,Le=null,ae=0;for(be=0;be<q.length;be++)ae+=q[be].length;switch(ce){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":for(Le=new Uint8Array(ae),be=0;be<q.length;be++)Le.set(q[be],xe),xe+=q[be].length;return Le;case"nodebuffer":return we.concat(q);default:throw new Error("concat : unsupported type '"+ce+"'")}}(V,H),B);K(G)}catch(ce){F(ce)}H=[]}).resume()})}function A(m,S,K){var F=S;switch(S){case"blob":case"arraybuffer":F="uint8array";break;case"base64":F="string"}try{this._internalType=F,this._outputType=S,this._mimeType=K,Y.checkSupport(F),this._worker=m.pipe(new O(F)),m.lock()}catch(H){this._worker=new T("error"),this._worker.error(H)}}A.prototype={accumulate:function(m){return a(this,m)},on:function(m,S){var K=this;return m==="data"?this._worker.on(m,function(F){S.call(K,F.data,F.meta)}):this._worker.on(m,function(){Y.delay(S,arguments,K)}),this},resume:function(){return Y.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(Y.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},m)}},ke.exports=A},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(se,ke,ie){"use strict";if(ie.base64=!0,ie.array=!0,ie.string=!0,ie.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ie.nodebuffer=typeof we!="undefined",ie.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ie.blob=!1;else{var Y=new ArrayBuffer(0);try{ie.blob=new Blob([Y],{type:"application/zip"}).size===0}catch(T){try{var O=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);O.append(Y),ie.blob=O.getBlob("application/zip").size===0}catch(n){ie.blob=!1}}}try{ie.nodestream=!!se("readable-stream").Readable}catch(T){ie.nodestream=!1}},{"readable-stream":16}],31:[function(se,ke,ie){"use strict";for(var Y=se("./utils"),O=se("./support"),T=se("./nodejsUtils"),n=se("./stream/GenericWorker"),o=new Array(256),L=0;L<256;L++)o[L]=252<=L?6:248<=L?5:240<=L?4:224<=L?3:192<=L?2:1;o[254]=o[254]=1;function p(){n.call(this,"utf-8 decode"),this.leftOver=null}function a(){n.call(this,"utf-8 encode")}ie.utf8encode=function(A){return O.nodebuffer?T.newBufferFrom(A,"utf-8"):function(m){var S,K,F,H,V,ee=m.length,B=0;for(H=0;H<ee;H++)(64512&(K=m.charCodeAt(H)))==55296&&H+1<ee&&(64512&(F=m.charCodeAt(H+1)))==56320&&(K=65536+(K-55296<<10)+(F-56320),H++),B+=K<128?1:K<2048?2:K<65536?3:4;for(S=O.uint8array?new Uint8Array(B):new Array(B),H=V=0;V<B;H++)(64512&(K=m.charCodeAt(H)))==55296&&H+1<ee&&(64512&(F=m.charCodeAt(H+1)))==56320&&(K=65536+(K-55296<<10)+(F-56320),H++),K<128?S[V++]=K:(K<2048?S[V++]=192|K>>>6:(K<65536?S[V++]=224|K>>>12:(S[V++]=240|K>>>18,S[V++]=128|K>>>12&63),S[V++]=128|K>>>6&63),S[V++]=128|63&K);return S}(A)},ie.utf8decode=function(A){return O.nodebuffer?Y.transformTo("nodebuffer",A).toString("utf-8"):function(m){var S,K,F,H,V=m.length,ee=new Array(2*V);for(S=K=0;S<V;)if((F=m[S++])<128)ee[K++]=F;else if(4<(H=o[F]))ee[K++]=65533,S+=H-1;else{for(F&=H===2?31:H===3?15:7;1<H&&S<V;)F=F<<6|63&m[S++],H--;1<H?ee[K++]=65533:F<65536?ee[K++]=F:(F-=65536,ee[K++]=55296|F>>10&1023,ee[K++]=56320|1023&F)}return ee.length!==K&&(ee.subarray?ee=ee.subarray(0,K):ee.length=K),Y.applyFromCharCode(ee)}(A=Y.transformTo(O.uint8array?"uint8array":"array",A))},Y.inherits(p,n),p.prototype.processChunk=function(A){var m=Y.transformTo(O.uint8array?"uint8array":"array",A.data);if(this.leftOver&&this.leftOver.length){if(O.uint8array){var S=m;(m=new Uint8Array(S.length+this.leftOver.length)).set(this.leftOver,0),m.set(S,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var K=function(H,V){var ee;for((V=V||H.length)>H.length&&(V=H.length),ee=V-1;0<=ee&&(192&H[ee])==128;)ee--;return ee<0||ee===0?V:ee+o[H[ee]]>V?ee:V}(m),F=m;K!==m.length&&(O.uint8array?(F=m.subarray(0,K),this.leftOver=m.subarray(K,m.length)):(F=m.slice(0,K),this.leftOver=m.slice(K,m.length))),this.push({data:ie.utf8decode(F),meta:A.meta})},p.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ie.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ie.Utf8DecodeWorker=p,Y.inherits(a,n),a.prototype.processChunk=function(A){this.push({data:ie.utf8encode(A.data),meta:A.meta})},ie.Utf8EncodeWorker=a},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(se,ke,ie){"use strict";var Y=se("./support"),O=se("./base64"),T=se("./nodejsUtils"),n=se("./external");function o(S){return S}function L(S,K){for(var F=0;F<S.length;++F)K[F]=255&S.charCodeAt(F);return K}se("setimmediate"),ie.newBlob=function(S,K){ie.checkSupport("blob");try{return new Blob([S],{type:K})}catch(H){try{var F=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return F.append(S),F.getBlob(K)}catch(V){throw new Error("Bug : can't construct the Blob.")}}};var p={stringifyByChunk:function(S,K,F){var H=[],V=0,ee=S.length;if(ee<=F)return String.fromCharCode.apply(null,S);for(;V<ee;)K==="array"||K==="nodebuffer"?H.push(String.fromCharCode.apply(null,S.slice(V,Math.min(V+F,ee)))):H.push(String.fromCharCode.apply(null,S.subarray(V,Math.min(V+F,ee)))),V+=F;return H.join("")},stringifyByChar:function(S){for(var K="",F=0;F<S.length;F++)K+=String.fromCharCode(S[F]);return K},applyCanBeUsed:{uint8array:function(){try{return Y.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(S){return!1}}(),nodebuffer:function(){try{return Y.nodebuffer&&String.fromCharCode.apply(null,T.allocBuffer(1)).length===1}catch(S){return!1}}()}};function a(S){var K=65536,F=ie.getTypeOf(S),H=!0;if(F==="uint8array"?H=p.applyCanBeUsed.uint8array:F==="nodebuffer"&&(H=p.applyCanBeUsed.nodebuffer),H)for(;1<K;)try{return p.stringifyByChunk(S,F,K)}catch(V){K=Math.floor(K/2)}return p.stringifyByChar(S)}function A(S,K){for(var F=0;F<S.length;F++)K[F]=S[F];return K}ie.applyFromCharCode=a;var m={};m.string={string:o,array:function(S){return L(S,new Array(S.length))},arraybuffer:function(S){return m.string.uint8array(S).buffer},uint8array:function(S){return L(S,new Uint8Array(S.length))},nodebuffer:function(S){return L(S,T.allocBuffer(S.length))}},m.array={string:a,array:o,arraybuffer:function(S){return new Uint8Array(S).buffer},uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return T.newBufferFrom(S)}},m.arraybuffer={string:function(S){return a(new Uint8Array(S))},array:function(S){return A(new Uint8Array(S),new Array(S.byteLength))},arraybuffer:o,uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return T.newBufferFrom(new Uint8Array(S))}},m.uint8array={string:a,array:function(S){return A(S,new Array(S.length))},arraybuffer:function(S){return S.buffer},uint8array:o,nodebuffer:function(S){return T.newBufferFrom(S)}},m.nodebuffer={string:a,array:function(S){return A(S,new Array(S.length))},arraybuffer:function(S){return m.nodebuffer.uint8array(S).buffer},uint8array:function(S){return A(S,new Uint8Array(S.length))},nodebuffer:o},ie.transformTo=function(S,K){if(K=K||"",!S)return K;ie.checkSupport(S);var F=ie.getTypeOf(K);return m[F][S](K)},ie.resolve=function(S){for(var K=S.split("/"),F=[],H=0;H<K.length;H++){var V=K[H];V==="."||V===""&&H!==0&&H!==K.length-1||(V===".."?F.pop():F.push(V))}return F.join("/")},ie.getTypeOf=function(S){return typeof S=="string"?"string":Object.prototype.toString.call(S)==="[object Array]"?"array":Y.nodebuffer&&T.isBuffer(S)?"nodebuffer":Y.uint8array&&S instanceof Uint8Array?"uint8array":Y.arraybuffer&&S instanceof ArrayBuffer?"arraybuffer":void 0},ie.checkSupport=function(S){if(!Y[S.toLowerCase()])throw new Error(S+" is not supported by this platform")},ie.MAX_VALUE_16BITS=65535,ie.MAX_VALUE_32BITS=-1,ie.pretty=function(S){var K,F,H="";for(F=0;F<(S||"").length;F++)H+="\\x"+((K=S.charCodeAt(F))<16?"0":"")+K.toString(16).toUpperCase();return H},ie.delay=function(S,K,F){setImmediate(function(){S.apply(F||null,K||[])})},ie.inherits=function(S,K){function F(){}F.prototype=K.prototype,S.prototype=new F},ie.extend=function(){var S,K,F={};for(S=0;S<arguments.length;S++)for(K in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],K)&&F[K]===void 0&&(F[K]=arguments[S][K]);return F},ie.prepareContent=function(S,K,F,H,V){return n.Promise.resolve(K).then(function(ee){return Y.blob&&(ee instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(ee))!==-1)&&typeof FileReader!="undefined"?new n.Promise(function(B,G){var ce=new FileReader;ce.onload=function(q){B(q.target.result)},ce.onerror=function(q){G(q.target.error)},ce.readAsArrayBuffer(ee)}):ee}).then(function(ee){var B=ie.getTypeOf(ee);return B?(B==="arraybuffer"?ee=ie.transformTo("uint8array",ee):B==="string"&&(V?ee=O.decode(ee):F&&H!==!0&&(ee=function(G){return L(G,Y.uint8array?new Uint8Array(G.length):new Array(G.length))}(ee))),ee):n.Promise.reject(new Error("Can't read the data of '"+S+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(se,ke,ie){"use strict";var Y=se("./reader/readerFor"),O=se("./utils"),T=se("./signature"),n=se("./zipEntry"),o=se("./support");function L(p){this.files=[],this.loadOptions=p}L.prototype={checkSignature:function(p){if(!this.reader.readAndCheckSignature(p)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+O.pretty(a)+", expected "+O.pretty(p)+")")}},isSignature:function(p,a){var A=this.reader.index;this.reader.setIndex(p);var m=this.reader.readString(4)===a;return this.reader.setIndex(A),m},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 p=this.reader.readData(this.zipCommentLength),a=o.uint8array?"uint8array":"array",A=O.transformTo(a,p);this.zipComment=this.loadOptions.decodeFileName(A)},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 p,a,A,m=this.zip64EndOfCentralSize-44;0<m;)p=this.reader.readInt(2),a=this.reader.readInt(4),A=this.reader.readData(a),this.zip64ExtensibleData[p]={id:p,length:a,value:A}},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 p,a;for(p=0;p<this.files.length;p++)a=this.files[p],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(T.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var p;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(T.CENTRAL_FILE_HEADER);)(p=new n({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(p);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 p=this.reader.lastIndexOfSignature(T.CENTRAL_DIRECTORY_END);if(p<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(p);var a=p;if(this.checkSignature(T.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===O.MAX_VALUE_16BITS||this.diskWithCentralDirStart===O.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===O.MAX_VALUE_16BITS||this.centralDirRecords===O.MAX_VALUE_16BITS||this.centralDirSize===O.MAX_VALUE_32BITS||this.centralDirOffset===O.MAX_VALUE_32BITS){if(this.zip64=!0,(p=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(p),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 A=this.centralDirOffset+this.centralDirSize;this.zip64&&(A+=20,A+=12+this.zip64EndOfCentralSize);var m=a-A;if(0<m)this.isSignature(a,T.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(p){this.reader=Y(p)},load:function(p){this.prepareReader(p),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},ke.exports=L},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(se,ke,ie){"use strict";var Y=se("./reader/readerFor"),O=se("./utils"),T=se("./compressedObject"),n=se("./crc32"),o=se("./utf8"),L=se("./compressions"),p=se("./support");function a(A,m){this.options=A,this.loadOptions=m}a.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(A){var m,S;if(A.skip(22),this.fileNameLength=A.readInt(2),S=A.readInt(2),this.fileName=A.readData(this.fileNameLength),A.skip(S),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((m=function(K){for(var F in L)if(Object.prototype.hasOwnProperty.call(L,F)&&L[F].magic===K)return L[F];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+O.pretty(this.compressionMethod)+" unknown (inner file : "+O.transformTo("string",this.fileName)+")");this.decompressed=new T(this.compressedSize,this.uncompressedSize,this.crc32,m,A.readData(this.compressedSize))},readCentralPart:function(A){this.versionMadeBy=A.readInt(2),A.skip(2),this.bitFlag=A.readInt(2),this.compressionMethod=A.readString(2),this.date=A.readDate(),this.crc32=A.readInt(4),this.compressedSize=A.readInt(4),this.uncompressedSize=A.readInt(4);var m=A.readInt(2);if(this.extraFieldsLength=A.readInt(2),this.fileCommentLength=A.readInt(2),this.diskNumberStart=A.readInt(2),this.internalFileAttributes=A.readInt(2),this.externalFileAttributes=A.readInt(4),this.localHeaderOffset=A.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");A.skip(m),this.readExtraFields(A),this.parseZIP64ExtraField(A),this.fileComment=A.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var A=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),A==0&&(this.dosPermissions=63&this.externalFileAttributes),A==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var A=Y(this.extraFields[1].value);this.uncompressedSize===O.MAX_VALUE_32BITS&&(this.uncompressedSize=A.readInt(8)),this.compressedSize===O.MAX_VALUE_32BITS&&(this.compressedSize=A.readInt(8)),this.localHeaderOffset===O.MAX_VALUE_32BITS&&(this.localHeaderOffset=A.readInt(8)),this.diskNumberStart===O.MAX_VALUE_32BITS&&(this.diskNumberStart=A.readInt(4))}},readExtraFields:function(A){var m,S,K,F=A.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});A.index+4<F;)m=A.readInt(2),S=A.readInt(2),K=A.readData(S),this.extraFields[m]={id:m,length:S,value:K};A.setIndex(F)},handleUTF8:function(){var A=p.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(m!==null)this.fileNameStr=m;else{var S=O.transformTo(A,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(S)}var K=this.findExtraFieldUnicodeComment();if(K!==null)this.fileCommentStr=K;else{var F=O.transformTo(A,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(F)}}},findExtraFieldUnicodePath:function(){var A=this.extraFields[28789];if(A){var m=Y(A.value);return m.readInt(1)!==1||n(this.fileName)!==m.readInt(4)?null:o.utf8decode(m.readData(A.length-5))}return null},findExtraFieldUnicodeComment:function(){var A=this.extraFields[25461];if(A){var m=Y(A.value);return m.readInt(1)!==1||n(this.fileComment)!==m.readInt(4)?null:o.utf8decode(m.readData(A.length-5))}return null}},ke.exports=a},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(se,ke,ie){"use strict";function Y(m,S,K){this.name=m,this.dir=K.dir,this.date=K.date,this.comment=K.comment,this.unixPermissions=K.unixPermissions,this.dosPermissions=K.dosPermissions,this._data=S,this._dataBinary=K.binary,this.options={compression:K.compression,compressionOptions:K.compressionOptions}}var O=se("./stream/StreamHelper"),T=se("./stream/DataWorker"),n=se("./utf8"),o=se("./compressedObject"),L=se("./stream/GenericWorker");Y.prototype={internalStream:function(m){var S=null,K="string";try{if(!m)throw new Error("No output type specified.");var F=(K=m.toLowerCase())==="string"||K==="text";K!=="binarystring"&&K!=="text"||(K="string"),S=this._decompressWorker();var H=!this._dataBinary;H&&!F&&(S=S.pipe(new n.Utf8EncodeWorker)),!H&&F&&(S=S.pipe(new n.Utf8DecodeWorker))}catch(V){(S=new L("error")).error(V)}return new O(S,K,"")},async:function(m,S){return this.internalStream(m).accumulate(S)},nodeStream:function(m,S){return this.internalStream(m||"nodebuffer").toNodejsStream(S)},_compressWorker:function(m,S){if(this._data instanceof o&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var K=this._decompressWorker();return this._dataBinary||(K=K.pipe(new n.Utf8EncodeWorker)),o.createWorkerFrom(K,m,S)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof L?this._data:new T(this._data)}};for(var p=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],a=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},A=0;A<p.length;A++)Y.prototype[p[A]]=a;ke.exports=Y},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(se,ke,ie){(function(Y){"use strict";var O,T,n=Y.MutationObserver||Y.WebKitMutationObserver;if(n){var o=0,L=new n(m),p=Y.document.createTextNode("");L.observe(p,{characterData:!0}),O=function(){p.data=o=++o%2}}else if(Y.setImmediate||Y.MessageChannel===void 0)O="document"in Y&&"onreadystatechange"in Y.document.createElement("script")?function(){var S=Y.document.createElement("script");S.onreadystatechange=function(){m(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},Y.document.documentElement.appendChild(S)}:function(){setTimeout(m,0)};else{var a=new Y.MessageChannel;a.port1.onmessage=m,O=function(){a.port2.postMessage(0)}}var A=[];function m(){var S,K;T=!0;for(var F=A.length;F;){for(K=A,A=[],S=-1;++S<F;)K[S]();F=A.length}T=!1}ke.exports=function(S){A.push(S)!==1||T||O()}}).call(this,typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(se,ke,ie){"use strict";var Y=se("immediate");function O(){}var T={},n=["REJECTED"],o=["FULFILLED"],L=["PENDING"];function p(F){if(typeof F!="function")throw new TypeError("resolver must be a function");this.state=L,this.queue=[],this.outcome=void 0,F!==O&&S(this,F)}function a(F,H,V){this.promise=F,typeof H=="function"&&(this.onFulfilled=H,this.callFulfilled=this.otherCallFulfilled),typeof V=="function"&&(this.onRejected=V,this.callRejected=this.otherCallRejected)}function A(F,H,V){Y(function(){var ee;try{ee=H(V)}catch(B){return T.reject(F,B)}ee===F?T.reject(F,new TypeError("Cannot resolve promise with itself")):T.resolve(F,ee)})}function m(F){var H=F&&F.then;if(F&&(typeof F=="object"||typeof F=="function")&&typeof H=="function")return function(){H.apply(F,arguments)}}function S(F,H){var V=!1;function ee(ce){V||(V=!0,T.reject(F,ce))}function B(ce){V||(V=!0,T.resolve(F,ce))}var G=K(function(){H(B,ee)});G.status==="error"&&ee(G.value)}function K(F,H){var V={};try{V.value=F(H),V.status="success"}catch(ee){V.status="error",V.value=ee}return V}(ke.exports=p).prototype.finally=function(F){if(typeof F!="function")return this;var H=this.constructor;return this.then(function(V){return H.resolve(F()).then(function(){return V})},function(V){return H.resolve(F()).then(function(){throw V})})},p.prototype.catch=function(F){return this.then(null,F)},p.prototype.then=function(F,H){if(typeof F!="function"&&this.state===o||typeof H!="function"&&this.state===n)return this;var V=new this.constructor(O);return this.state!==L?A(V,this.state===o?F:H,this.outcome):this.queue.push(new a(V,F,H)),V},a.prototype.callFulfilled=function(F){T.resolve(this.promise,F)},a.prototype.otherCallFulfilled=function(F){A(this.promise,this.onFulfilled,F)},a.prototype.callRejected=function(F){T.reject(this.promise,F)},a.prototype.otherCallRejected=function(F){A(this.promise,this.onRejected,F)},T.resolve=function(F,H){var V=K(m,H);if(V.status==="error")return T.reject(F,V.value);var ee=V.value;if(ee)S(F,ee);else{F.state=o,F.outcome=H;for(var B=-1,G=F.queue.length;++B<G;)F.queue[B].callFulfilled(H)}return F},T.reject=function(F,H){F.state=n,F.outcome=H;for(var V=-1,ee=F.queue.length;++V<ee;)F.queue[V].callRejected(H);return F},p.resolve=function(F){return F instanceof this?F:T.resolve(new this(O),F)},p.reject=function(F){var H=new this(O);return T.reject(H,F)},p.all=function(F){var H=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=F.length,ee=!1;if(!V)return this.resolve([]);for(var B=new Array(V),G=0,ce=-1,q=new this(O);++ce<V;)be(F[ce],ce);return q;function be(xe,Le){H.resolve(xe).then(function(ae){B[Le]=ae,++G!==V||ee||(ee=!0,T.resolve(q,B))},function(ae){ee||(ee=!0,T.reject(q,ae))})}},p.race=function(F){var H=this;if(Object.prototype.toString.call(F)!=="[object Array]")return this.reject(new TypeError("must be an array"));var V=F.length,ee=!1;if(!V)return this.resolve([]);for(var B=-1,G=new this(O);++B<V;)ce=F[B],H.resolve(ce).then(function(q){ee||(ee=!0,T.resolve(G,q))},function(q){ee||(ee=!0,T.reject(G,q))});var ce;return G}},{immediate:36}],38:[function(se,ke,ie){"use strict";var Y={};(0,se("./lib/utils/common").assign)(Y,se("./lib/deflate"),se("./lib/inflate"),se("./lib/zlib/constants")),ke.exports=Y},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(se,ke,ie){"use strict";var Y=se("./zlib/deflate"),O=se("./utils/common"),T=se("./utils/strings"),n=se("./zlib/messages"),o=se("./zlib/zstream"),L=Object.prototype.toString,p=0,a=-1,A=0,m=8;function S(F){if(!(this instanceof S))return new S(F);this.options=O.assign({level:a,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:A,to:""},F||{});var H=this.options;H.raw&&0<H.windowBits?H.windowBits=-H.windowBits:H.gzip&&0<H.windowBits&&H.windowBits<16&&(H.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var V=Y.deflateInit2(this.strm,H.level,H.method,H.windowBits,H.memLevel,H.strategy);if(V!==p)throw new Error(n[V]);if(H.header&&Y.deflateSetHeader(this.strm,H.header),H.dictionary){var ee;if(ee=typeof H.dictionary=="string"?T.string2buf(H.dictionary):L.call(H.dictionary)==="[object ArrayBuffer]"?new Uint8Array(H.dictionary):H.dictionary,(V=Y.deflateSetDictionary(this.strm,ee))!==p)throw new Error(n[V]);this._dict_set=!0}}function K(F,H){var V=new S(H);if(V.push(F,!0),V.err)throw V.msg||n[V.err];return V.result}S.prototype.push=function(F,H){var V,ee,B=this.strm,G=this.options.chunkSize;if(this.ended)return!1;ee=H===~~H?H:H===!0?4:0,typeof F=="string"?B.input=T.string2buf(F):L.call(F)==="[object ArrayBuffer]"?B.input=new Uint8Array(F):B.input=F,B.next_in=0,B.avail_in=B.input.length;do{if(B.avail_out===0&&(B.output=new O.Buf8(G),B.next_out=0,B.avail_out=G),(V=Y.deflate(B,ee))!==1&&V!==p)return this.onEnd(V),!(this.ended=!0);B.avail_out!==0&&(B.avail_in!==0||ee!==4&&ee!==2)||(this.options.to==="string"?this.onData(T.buf2binstring(O.shrinkBuf(B.output,B.next_out))):this.onData(O.shrinkBuf(B.output,B.next_out)))}while((0<B.avail_in||B.avail_out===0)&&V!==1);return ee===4?(V=Y.deflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===p):ee!==2||(this.onEnd(p),!(B.avail_out=0))},S.prototype.onData=function(F){this.chunks.push(F)},S.prototype.onEnd=function(F){F===p&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=F,this.msg=this.strm.msg},ie.Deflate=S,ie.deflate=K,ie.deflateRaw=function(F,H){return(H=H||{}).raw=!0,K(F,H)},ie.gzip=function(F,H){return(H=H||{}).gzip=!0,K(F,H)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(se,ke,ie){"use strict";var Y=se("./zlib/inflate"),O=se("./utils/common"),T=se("./utils/strings"),n=se("./zlib/constants"),o=se("./zlib/messages"),L=se("./zlib/zstream"),p=se("./zlib/gzheader"),a=Object.prototype.toString;function A(S){if(!(this instanceof A))return new A(S);this.options=O.assign({chunkSize:16384,windowBits:0,to:""},S||{});var K=this.options;K.raw&&0<=K.windowBits&&K.windowBits<16&&(K.windowBits=-K.windowBits,K.windowBits===0&&(K.windowBits=-15)),!(0<=K.windowBits&&K.windowBits<16)||S&&S.windowBits||(K.windowBits+=32),15<K.windowBits&&K.windowBits<48&&!(15&K.windowBits)&&(K.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new L,this.strm.avail_out=0;var F=Y.inflateInit2(this.strm,K.windowBits);if(F!==n.Z_OK)throw new Error(o[F]);this.header=new p,Y.inflateGetHeader(this.strm,this.header)}function m(S,K){var F=new A(K);if(F.push(S,!0),F.err)throw F.msg||o[F.err];return F.result}A.prototype.push=function(S,K){var F,H,V,ee,B,G,ce=this.strm,q=this.options.chunkSize,be=this.options.dictionary,xe=!1;if(this.ended)return!1;H=K===~~K?K:K===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof S=="string"?ce.input=T.binstring2buf(S):a.call(S)==="[object ArrayBuffer]"?ce.input=new Uint8Array(S):ce.input=S,ce.next_in=0,ce.avail_in=ce.input.length;do{if(ce.avail_out===0&&(ce.output=new O.Buf8(q),ce.next_out=0,ce.avail_out=q),(F=Y.inflate(ce,n.Z_NO_FLUSH))===n.Z_NEED_DICT&&be&&(G=typeof be=="string"?T.string2buf(be):a.call(be)==="[object ArrayBuffer]"?new Uint8Array(be):be,F=Y.inflateSetDictionary(this.strm,G)),F===n.Z_BUF_ERROR&&xe===!0&&(F=n.Z_OK,xe=!1),F!==n.Z_STREAM_END&&F!==n.Z_OK)return this.onEnd(F),!(this.ended=!0);ce.next_out&&(ce.avail_out!==0&&F!==n.Z_STREAM_END&&(ce.avail_in!==0||H!==n.Z_FINISH&&H!==n.Z_SYNC_FLUSH)||(this.options.to==="string"?(V=T.utf8border(ce.output,ce.next_out),ee=ce.next_out-V,B=T.buf2string(ce.output,V),ce.next_out=ee,ce.avail_out=q-ee,ee&&O.arraySet(ce.output,ce.output,V,ee,0),this.onData(B)):this.onData(O.shrinkBuf(ce.output,ce.next_out)))),ce.avail_in===0&&ce.avail_out===0&&(xe=!0)}while((0<ce.avail_in||ce.avail_out===0)&&F!==n.Z_STREAM_END);return F===n.Z_STREAM_END&&(H=n.Z_FINISH),H===n.Z_FINISH?(F=Y.inflateEnd(this.strm),this.onEnd(F),this.ended=!0,F===n.Z_OK):H!==n.Z_SYNC_FLUSH||(this.onEnd(n.Z_OK),!(ce.avail_out=0))},A.prototype.onData=function(S){this.chunks.push(S)},A.prototype.onEnd=function(S){S===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},ie.Inflate=A,ie.inflate=m,ie.inflateRaw=function(S,K){return(K=K||{}).raw=!0,m(S,K)},ie.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(se,ke,ie){"use strict";var Y=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ie.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var L=o.shift();if(L){if(typeof L!="object")throw new TypeError(L+"must be non-object");for(var p in L)L.hasOwnProperty(p)&&(n[p]=L[p])}}return n},ie.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var O={arraySet:function(n,o,L,p,a){if(o.subarray&&n.subarray)n.set(o.subarray(L,L+p),a);else for(var A=0;A<p;A++)n[a+A]=o[L+A]},flattenChunks:function(n){var o,L,p,a,A,m;for(o=p=0,L=n.length;o<L;o++)p+=n[o].length;for(m=new Uint8Array(p),o=a=0,L=n.length;o<L;o++)A=n[o],m.set(A,a),a+=A.length;return m}},T={arraySet:function(n,o,L,p,a){for(var A=0;A<p;A++)n[a+A]=o[L+A]},flattenChunks:function(n){return[].concat.apply([],n)}};ie.setTyped=function(n){n?(ie.Buf8=Uint8Array,ie.Buf16=Uint16Array,ie.Buf32=Int32Array,ie.assign(ie,O)):(ie.Buf8=Array,ie.Buf16=Array,ie.Buf32=Array,ie.assign(ie,T))},ie.setTyped(Y)},{}],42:[function(se,ke,ie){"use strict";var Y=se("./common"),O=!0,T=!0;try{String.fromCharCode.apply(null,[0])}catch(p){O=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(p){T=!1}for(var n=new Y.Buf8(256),o=0;o<256;o++)n[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function L(p,a){if(a<65537&&(p.subarray&&T||!p.subarray&&O))return String.fromCharCode.apply(null,Y.shrinkBuf(p,a));for(var A="",m=0;m<a;m++)A+=String.fromCharCode(p[m]);return A}n[254]=n[254]=1,ie.string2buf=function(p){var a,A,m,S,K,F=p.length,H=0;for(S=0;S<F;S++)(64512&(A=p.charCodeAt(S)))==55296&&S+1<F&&(64512&(m=p.charCodeAt(S+1)))==56320&&(A=65536+(A-55296<<10)+(m-56320),S++),H+=A<128?1:A<2048?2:A<65536?3:4;for(a=new Y.Buf8(H),S=K=0;K<H;S++)(64512&(A=p.charCodeAt(S)))==55296&&S+1<F&&(64512&(m=p.charCodeAt(S+1)))==56320&&(A=65536+(A-55296<<10)+(m-56320),S++),A<128?a[K++]=A:(A<2048?a[K++]=192|A>>>6:(A<65536?a[K++]=224|A>>>12:(a[K++]=240|A>>>18,a[K++]=128|A>>>12&63),a[K++]=128|A>>>6&63),a[K++]=128|63&A);return a},ie.buf2binstring=function(p){return L(p,p.length)},ie.binstring2buf=function(p){for(var a=new Y.Buf8(p.length),A=0,m=a.length;A<m;A++)a[A]=p.charCodeAt(A);return a},ie.buf2string=function(p,a){var A,m,S,K,F=a||p.length,H=new Array(2*F);for(A=m=0;A<F;)if((S=p[A++])<128)H[m++]=S;else if(4<(K=n[S]))H[m++]=65533,A+=K-1;else{for(S&=K===2?31:K===3?15:7;1<K&&A<F;)S=S<<6|63&p[A++],K--;1<K?H[m++]=65533:S<65536?H[m++]=S:(S-=65536,H[m++]=55296|S>>10&1023,H[m++]=56320|1023&S)}return L(H,m)},ie.utf8border=function(p,a){var A;for((a=a||p.length)>p.length&&(a=p.length),A=a-1;0<=A&&(192&p[A])==128;)A--;return A<0||A===0?a:A+n[p[A]]>a?A:a}},{"./common":41}],43:[function(se,ke,ie){"use strict";ke.exports=function(Y,O,T,n){for(var o=65535&Y|0,L=Y>>>16&65535|0,p=0;T!==0;){for(T-=p=2e3<T?2e3:T;L=L+(o=o+O[n++]|0)|0,--p;);o%=65521,L%=65521}return o|L<<16|0}},{}],44:[function(se,ke,ie){"use strict";ke.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(se,ke,ie){"use strict";var Y=function(){for(var O,T=[],n=0;n<256;n++){O=n;for(var o=0;o<8;o++)O=1&O?3988292384^O>>>1:O>>>1;T[n]=O}return T}();ke.exports=function(O,T,n,o){var L=Y,p=o+n;O^=-1;for(var a=o;a<p;a++)O=O>>>8^L[255&(O^T[a])];return-1^O}},{}],46:[function(se,ke,ie){"use strict";var Y,O=se("../utils/common"),T=se("./trees"),n=se("./adler32"),o=se("./crc32"),L=se("./messages"),p=0,a=4,A=0,m=-2,S=-1,K=4,F=2,H=8,V=9,ee=286,B=30,G=19,ce=2*ee+1,q=15,be=3,xe=258,Le=xe+be+1,ae=42,me=113,I=1,_e=2,oe=3,he=4;function ve(Me,Tt){return Me.msg=L[Tt],Tt}function _(Me){return(Me<<1)-(4<Me?9:0)}function N(Me){for(var Tt=Me.length;0<=--Tt;)Me[Tt]=0}function X(Me){var Tt=Me.state,z=Tt.pending;z>Me.avail_out&&(z=Me.avail_out),z!==0&&(O.arraySet(Me.output,Tt.pending_buf,Tt.pending_out,z,Me.next_out),Me.next_out+=z,Tt.pending_out+=z,Me.total_out+=z,Me.avail_out-=z,Tt.pending-=z,Tt.pending===0&&(Tt.pending_out=0))}function pe(Me,Tt){T._tr_flush_block(Me,0<=Me.block_start?Me.block_start:-1,Me.strstart-Me.block_start,Tt),Me.block_start=Me.strstart,X(Me.strm)}function qe(Me,Tt){Me.pending_buf[Me.pending++]=Tt}function at(Me,Tt){Me.pending_buf[Me.pending++]=Tt>>>8&255,Me.pending_buf[Me.pending++]=255&Tt}function rt(Me,Tt){var z,v,f=Me.max_chain_length,D=Me.strstart,de=Me.prev_length,W=Me.nice_match,P=Me.strstart>Me.w_size-Le?Me.strstart-(Me.w_size-Le):0,te=Me.window,Ie=Me.w_mask,Te=Me.prev,Se=Me.strstart+xe,Ge=te[D+de-1],ft=te[D+de];Me.prev_length>=Me.good_match&&(f>>=2),W>Me.lookahead&&(W=Me.lookahead);do if(te[(z=Tt)+de]===ft&&te[z+de-1]===Ge&&te[z]===te[D]&&te[++z]===te[D+1]){D+=2,z++;do;while(te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&te[++D]===te[++z]&&D<Se);if(v=xe-(Se-D),D=Se-xe,de<v){if(Me.match_start=Tt,W<=(de=v))break;Ge=te[D+de-1],ft=te[D+de]}}while((Tt=Te[Tt&Ie])>P&&--f!=0);return de<=Me.lookahead?de:Me.lookahead}function Rt(Me){var Tt,z,v,f,D,de,W,P,te,Ie,Te=Me.w_size;do{if(f=Me.window_size-Me.lookahead-Me.strstart,Me.strstart>=Te+(Te-Le)){for(O.arraySet(Me.window,Me.window,Te,Te,0),Me.match_start-=Te,Me.strstart-=Te,Me.block_start-=Te,Tt=z=Me.hash_size;v=Me.head[--Tt],Me.head[Tt]=Te<=v?v-Te:0,--z;);for(Tt=z=Te;v=Me.prev[--Tt],Me.prev[Tt]=Te<=v?v-Te:0,--z;);f+=Te}if(Me.strm.avail_in===0)break;if(de=Me.strm,W=Me.window,P=Me.strstart+Me.lookahead,te=f,Ie=void 0,Ie=de.avail_in,te<Ie&&(Ie=te),z=Ie===0?0:(de.avail_in-=Ie,O.arraySet(W,de.input,de.next_in,Ie,P),de.state.wrap===1?de.adler=n(de.adler,W,Ie,P):de.state.wrap===2&&(de.adler=o(de.adler,W,Ie,P)),de.next_in+=Ie,de.total_in+=Ie,Ie),Me.lookahead+=z,Me.lookahead+Me.insert>=be)for(D=Me.strstart-Me.insert,Me.ins_h=Me.window[D],Me.ins_h=(Me.ins_h<<Me.hash_shift^Me.window[D+1])&Me.hash_mask;Me.insert&&(Me.ins_h=(Me.ins_h<<Me.hash_shift^Me.window[D+be-1])&Me.hash_mask,Me.prev[D&Me.w_mask]=Me.head[Me.ins_h],Me.head[Me.ins_h]=D,D++,Me.insert--,!(Me.lookahead+Me.insert<be)););}while(Me.lookahead<Le&&Me.strm.avail_in!==0)}function lr(Me,Tt){for(var z,v;;){if(Me.lookahead<Le){if(Rt(Me),Me.lookahead<Le&&Tt===p)return I;if(Me.lookahead===0)break}if(z=0,Me.lookahead>=be&&(Me.ins_h=(Me.ins_h<<Me.hash_shift^Me.window[Me.strstart+be-1])&Me.hash_mask,z=Me.prev[Me.strstart&Me.w_mask]=Me.head[Me.ins_h],Me.head[Me.ins_h]=Me.strstart),z!==0&&Me.strstart-z<=Me.w_size-Le&&(Me.match_length=rt(Me,z)),Me.match_length>=be)if(v=T._tr_tally(Me,Me.strstart-Me.match_start,Me.match_length-be),Me.lookahead-=Me.match_length,Me.match_length<=Me.max_lazy_match&&Me.lookahead>=be){for(Me.match_length--;Me.strstart++,Me.ins_h=(Me.ins_h<<Me.hash_shift^Me.window[Me.strstart+be-1])&Me.hash_mask,z=Me.prev[Me.strstart&Me.w_mask]=Me.head[Me.ins_h],Me.head[Me.ins_h]=Me.strstart,--Me.match_length!=0;);Me.strstart++}else Me.strstart+=Me.match_length,Me.match_length=0,Me.ins_h=Me.window[Me.strstart],Me.ins_h=(Me.ins_h<<Me.hash_shift^Me.window[Me.strstart+1])&Me.hash_mask;else v=T._tr_tally(Me,0,Me.window[Me.strstart]),Me.lookahead--,Me.strstart++;if(v&&(pe(Me,!1),Me.strm.avail_out===0))return I}return Me.insert=Me.strstart<be-1?Me.strstart:be-1,Tt===a?(pe(Me,!0),Me.strm.avail_out===0?oe:he):Me.last_lit&&(pe(Me,!1),Me.strm.avail_out===0)?I:_e}function qt(Me,Tt){for(var z,v,f;;){if(Me.lookahead<Le){if(Rt(Me),Me.lookahead<Le&&Tt===p)return I;if(Me.lookahead===0)break}if(z=0,Me.lookahead>=be&&(Me.ins_h=(Me.ins_h<<Me.hash_shift^Me.window[Me.strstart+be-1])&Me.hash_mask,z=Me.prev[Me.strstart&Me.w_mask]=Me.head[Me.ins_h],Me.head[Me.ins_h]=Me.strstart),Me.prev_length=Me.match_length,Me.prev_match=Me.match_start,Me.match_length=be-1,z!==0&&Me.prev_length<Me.max_lazy_match&&Me.strstart-z<=Me.w_size-Le&&(Me.match_length=rt(Me,z),Me.match_length<=5&&(Me.strategy===1||Me.match_length===be&&4096<Me.strstart-Me.match_start)&&(Me.match_length=be-1)),Me.prev_length>=be&&Me.match_length<=Me.prev_length){for(f=Me.strstart+Me.lookahead-be,v=T._tr_tally(Me,Me.strstart-1-Me.prev_match,Me.prev_length-be),Me.lookahead-=Me.prev_length-1,Me.prev_length-=2;++Me.strstart<=f&&(Me.ins_h=(Me.ins_h<<Me.hash_shift^Me.window[Me.strstart+be-1])&Me.hash_mask,z=Me.prev[Me.strstart&Me.w_mask]=Me.head[Me.ins_h],Me.head[Me.ins_h]=Me.strstart),--Me.prev_length!=0;);if(Me.match_available=0,Me.match_length=be-1,Me.strstart++,v&&(pe(Me,!1),Me.strm.avail_out===0))return I}else if(Me.match_available){if((v=T._tr_tally(Me,0,Me.window[Me.strstart-1]))&&pe(Me,!1),Me.strstart++,Me.lookahead--,Me.strm.avail_out===0)return I}else Me.match_available=1,Me.strstart++,Me.lookahead--}return Me.match_available&&(v=T._tr_tally(Me,0,Me.window[Me.strstart-1]),Me.match_available=0),Me.insert=Me.strstart<be-1?Me.strstart:be-1,Tt===a?(pe(Me,!0),Me.strm.avail_out===0?oe:he):Me.last_lit&&(pe(Me,!1),Me.strm.avail_out===0)?I:_e}function Ze(Me,Tt,z,v,f){this.good_length=Me,this.max_lazy=Tt,this.nice_length=z,this.max_chain=v,this.func=f}function Er(){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=H,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 O.Buf16(2*ce),this.dyn_dtree=new O.Buf16(2*(2*B+1)),this.bl_tree=new O.Buf16(2*(2*G+1)),N(this.dyn_ltree),N(this.dyn_dtree),N(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new O.Buf16(q+1),this.heap=new O.Buf16(2*ee+1),N(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new O.Buf16(2*ee+1),N(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 Cr(Me){var Tt;return Me&&Me.state?(Me.total_in=Me.total_out=0,Me.data_type=F,(Tt=Me.state).pending=0,Tt.pending_out=0,Tt.wrap<0&&(Tt.wrap=-Tt.wrap),Tt.status=Tt.wrap?ae:me,Me.adler=Tt.wrap===2?0:1,Tt.last_flush=p,T._tr_init(Tt),A):ve(Me,m)}function Kr(Me){var Tt=Cr(Me);return Tt===A&&function(z){z.window_size=2*z.w_size,N(z.head),z.max_lazy_match=Y[z.level].max_lazy,z.good_match=Y[z.level].good_length,z.nice_match=Y[z.level].nice_length,z.max_chain_length=Y[z.level].max_chain,z.strstart=0,z.block_start=0,z.lookahead=0,z.insert=0,z.match_length=z.prev_length=be-1,z.match_available=0,z.ins_h=0}(Me.state),Tt}function _r(Me,Tt,z,v,f,D){if(!Me)return m;var de=1;if(Tt===S&&(Tt=6),v<0?(de=0,v=-v):15<v&&(de=2,v-=16),f<1||V<f||z!==H||v<8||15<v||Tt<0||9<Tt||D<0||K<D)return ve(Me,m);v===8&&(v=9);var W=new Er;return(Me.state=W).strm=Me,W.wrap=de,W.gzhead=null,W.w_bits=v,W.w_size=1<<W.w_bits,W.w_mask=W.w_size-1,W.hash_bits=f+7,W.hash_size=1<<W.hash_bits,W.hash_mask=W.hash_size-1,W.hash_shift=~~((W.hash_bits+be-1)/be),W.window=new O.Buf8(2*W.w_size),W.head=new O.Buf16(W.hash_size),W.prev=new O.Buf16(W.w_size),W.lit_bufsize=1<<f+6,W.pending_buf_size=4*W.lit_bufsize,W.pending_buf=new O.Buf8(W.pending_buf_size),W.d_buf=1*W.lit_bufsize,W.l_buf=3*W.lit_bufsize,W.level=Tt,W.strategy=D,W.method=z,Kr(Me)}Y=[new Ze(0,0,0,0,function(Me,Tt){var z=65535;for(z>Me.pending_buf_size-5&&(z=Me.pending_buf_size-5);;){if(Me.lookahead<=1){if(Rt(Me),Me.lookahead===0&&Tt===p)return I;if(Me.lookahead===0)break}Me.strstart+=Me.lookahead,Me.lookahead=0;var v=Me.block_start+z;if((Me.strstart===0||Me.strstart>=v)&&(Me.lookahead=Me.strstart-v,Me.strstart=v,pe(Me,!1),Me.strm.avail_out===0)||Me.strstart-Me.block_start>=Me.w_size-Le&&(pe(Me,!1),Me.strm.avail_out===0))return I}return Me.insert=0,Tt===a?(pe(Me,!0),Me.strm.avail_out===0?oe:he):(Me.strstart>Me.block_start&&(pe(Me,!1),Me.strm.avail_out),I)}),new Ze(4,4,8,4,lr),new Ze(4,5,16,8,lr),new Ze(4,6,32,32,lr),new Ze(4,4,16,16,qt),new Ze(8,16,32,32,qt),new Ze(8,16,128,128,qt),new Ze(8,32,128,256,qt),new Ze(32,128,258,1024,qt),new Ze(32,258,258,4096,qt)],ie.deflateInit=function(Me,Tt){return _r(Me,Tt,H,15,8,0)},ie.deflateInit2=_r,ie.deflateReset=Kr,ie.deflateResetKeep=Cr,ie.deflateSetHeader=function(Me,Tt){return Me&&Me.state?Me.state.wrap!==2?m:(Me.state.gzhead=Tt,A):m},ie.deflate=function(Me,Tt){var z,v,f,D;if(!Me||!Me.state||5<Tt||Tt<0)return Me?ve(Me,m):m;if(v=Me.state,!Me.output||!Me.input&&Me.avail_in!==0||v.status===666&&Tt!==a)return ve(Me,Me.avail_out===0?-5:m);if(v.strm=Me,z=v.last_flush,v.last_flush=Tt,v.status===ae)if(v.wrap===2)Me.adler=0,qe(v,31),qe(v,139),qe(v,8),v.gzhead?(qe(v,(v.gzhead.text?1:0)+(v.gzhead.hcrc?2:0)+(v.gzhead.extra?4:0)+(v.gzhead.name?8:0)+(v.gzhead.comment?16:0)),qe(v,255&v.gzhead.time),qe(v,v.gzhead.time>>8&255),qe(v,v.gzhead.time>>16&255),qe(v,v.gzhead.time>>24&255),qe(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),qe(v,255&v.gzhead.os),v.gzhead.extra&&v.gzhead.extra.length&&(qe(v,255&v.gzhead.extra.length),qe(v,v.gzhead.extra.length>>8&255)),v.gzhead.hcrc&&(Me.adler=o(Me.adler,v.pending_buf,v.pending,0)),v.gzindex=0,v.status=69):(qe(v,0),qe(v,0),qe(v,0),qe(v,0),qe(v,0),qe(v,v.level===9?2:2<=v.strategy||v.level<2?4:0),qe(v,3),v.status=me);else{var de=H+(v.w_bits-8<<4)<<8;de|=(2<=v.strategy||v.level<2?0:v.level<6?1:v.level===6?2:3)<<6,v.strstart!==0&&(de|=32),de+=31-de%31,v.status=me,at(v,de),v.strstart!==0&&(at(v,Me.adler>>>16),at(v,65535&Me.adler)),Me.adler=1}if(v.status===69)if(v.gzhead.extra){for(f=v.pending;v.gzindex<(65535&v.gzhead.extra.length)&&(v.pending!==v.pending_buf_size||(v.gzhead.hcrc&&v.pending>f&&(Me.adler=o(Me.adler,v.pending_buf,v.pending-f,f)),X(Me),f=v.pending,v.pending!==v.pending_buf_size));)qe(v,255&v.gzhead.extra[v.gzindex]),v.gzindex++;v.gzhead.hcrc&&v.pending>f&&(Me.adler=o(Me.adler,v.pending_buf,v.pending-f,f)),v.gzindex===v.gzhead.extra.length&&(v.gzindex=0,v.status=73)}else v.status=73;if(v.status===73)if(v.gzhead.name){f=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>f&&(Me.adler=o(Me.adler,v.pending_buf,v.pending-f,f)),X(Me),f=v.pending,v.pending===v.pending_buf_size)){D=1;break}D=v.gzindex<v.gzhead.name.length?255&v.gzhead.name.charCodeAt(v.gzindex++):0,qe(v,D)}while(D!==0);v.gzhead.hcrc&&v.pending>f&&(Me.adler=o(Me.adler,v.pending_buf,v.pending-f,f)),D===0&&(v.gzindex=0,v.status=91)}else v.status=91;if(v.status===91)if(v.gzhead.comment){f=v.pending;do{if(v.pending===v.pending_buf_size&&(v.gzhead.hcrc&&v.pending>f&&(Me.adler=o(Me.adler,v.pending_buf,v.pending-f,f)),X(Me),f=v.pending,v.pending===v.pending_buf_size)){D=1;break}D=v.gzindex<v.gzhead.comment.length?255&v.gzhead.comment.charCodeAt(v.gzindex++):0,qe(v,D)}while(D!==0);v.gzhead.hcrc&&v.pending>f&&(Me.adler=o(Me.adler,v.pending_buf,v.pending-f,f)),D===0&&(v.status=103)}else v.status=103;if(v.status===103&&(v.gzhead.hcrc?(v.pending+2>v.pending_buf_size&&X(Me),v.pending+2<=v.pending_buf_size&&(qe(v,255&Me.adler),qe(v,Me.adler>>8&255),Me.adler=0,v.status=me)):v.status=me),v.pending!==0){if(X(Me),Me.avail_out===0)return v.last_flush=-1,A}else if(Me.avail_in===0&&_(Tt)<=_(z)&&Tt!==a)return ve(Me,-5);if(v.status===666&&Me.avail_in!==0)return ve(Me,-5);if(Me.avail_in!==0||v.lookahead!==0||Tt!==p&&v.status!==666){var W=v.strategy===2?function(P,te){for(var Ie;;){if(P.lookahead===0&&(Rt(P),P.lookahead===0)){if(te===p)return I;break}if(P.match_length=0,Ie=T._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++,Ie&&(pe(P,!1),P.strm.avail_out===0))return I}return P.insert=0,te===a?(pe(P,!0),P.strm.avail_out===0?oe:he):P.last_lit&&(pe(P,!1),P.strm.avail_out===0)?I:_e}(v,Tt):v.strategy===3?function(P,te){for(var Ie,Te,Se,Ge,ft=P.window;;){if(P.lookahead<=xe){if(Rt(P),P.lookahead<=xe&&te===p)return I;if(P.lookahead===0)break}if(P.match_length=0,P.lookahead>=be&&0<P.strstart&&(Te=ft[Se=P.strstart-1])===ft[++Se]&&Te===ft[++Se]&&Te===ft[++Se]){Ge=P.strstart+xe;do;while(Te===ft[++Se]&&Te===ft[++Se]&&Te===ft[++Se]&&Te===ft[++Se]&&Te===ft[++Se]&&Te===ft[++Se]&&Te===ft[++Se]&&Te===ft[++Se]&&Se<Ge);P.match_length=xe-(Ge-Se),P.match_length>P.lookahead&&(P.match_length=P.lookahead)}if(P.match_length>=be?(Ie=T._tr_tally(P,1,P.match_length-be),P.lookahead-=P.match_length,P.strstart+=P.match_length,P.match_length=0):(Ie=T._tr_tally(P,0,P.window[P.strstart]),P.lookahead--,P.strstart++),Ie&&(pe(P,!1),P.strm.avail_out===0))return I}return P.insert=0,te===a?(pe(P,!0),P.strm.avail_out===0?oe:he):P.last_lit&&(pe(P,!1),P.strm.avail_out===0)?I:_e}(v,Tt):Y[v.level].func(v,Tt);if(W!==oe&&W!==he||(v.status=666),W===I||W===oe)return Me.avail_out===0&&(v.last_flush=-1),A;if(W===_e&&(Tt===1?T._tr_align(v):Tt!==5&&(T._tr_stored_block(v,0,0,!1),Tt===3&&(N(v.head),v.lookahead===0&&(v.strstart=0,v.block_start=0,v.insert=0))),X(Me),Me.avail_out===0))return v.last_flush=-1,A}return Tt!==a?A:v.wrap<=0?1:(v.wrap===2?(qe(v,255&Me.adler),qe(v,Me.adler>>8&255),qe(v,Me.adler>>16&255),qe(v,Me.adler>>24&255),qe(v,255&Me.total_in),qe(v,Me.total_in>>8&255),qe(v,Me.total_in>>16&255),qe(v,Me.total_in>>24&255)):(at(v,Me.adler>>>16),at(v,65535&Me.adler)),X(Me),0<v.wrap&&(v.wrap=-v.wrap),v.pending!==0?A:1)},ie.deflateEnd=function(Me){var Tt;return Me&&Me.state?(Tt=Me.state.status)!==ae&&Tt!==69&&Tt!==73&&Tt!==91&&Tt!==103&&Tt!==me&&Tt!==666?ve(Me,m):(Me.state=null,Tt===me?ve(Me,-3):A):m},ie.deflateSetDictionary=function(Me,Tt){var z,v,f,D,de,W,P,te,Ie=Tt.length;if(!Me||!Me.state||(D=(z=Me.state).wrap)===2||D===1&&z.status!==ae||z.lookahead)return m;for(D===1&&(Me.adler=n(Me.adler,Tt,Ie,0)),z.wrap=0,Ie>=z.w_size&&(D===0&&(N(z.head),z.strstart=0,z.block_start=0,z.insert=0),te=new O.Buf8(z.w_size),O.arraySet(te,Tt,Ie-z.w_size,z.w_size,0),Tt=te,Ie=z.w_size),de=Me.avail_in,W=Me.next_in,P=Me.input,Me.avail_in=Ie,Me.next_in=0,Me.input=Tt,Rt(z);z.lookahead>=be;){for(v=z.strstart,f=z.lookahead-(be-1);z.ins_h=(z.ins_h<<z.hash_shift^z.window[v+be-1])&z.hash_mask,z.prev[v&z.w_mask]=z.head[z.ins_h],z.head[z.ins_h]=v,v++,--f;);z.strstart=v,z.lookahead=be-1,Rt(z)}return z.strstart+=z.lookahead,z.block_start=z.strstart,z.insert=z.lookahead,z.lookahead=0,z.match_length=z.prev_length=be-1,z.match_available=0,Me.next_in=W,Me.input=P,Me.avail_in=de,z.wrap=D,A},ie.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(se,ke,ie){"use strict";ke.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(se,ke,ie){"use strict";ke.exports=function(Y,O){var T,n,o,L,p,a,A,m,S,K,F,H,V,ee,B,G,ce,q,be,xe,Le,ae,me,I,_e;T=Y.state,n=Y.next_in,I=Y.input,o=n+(Y.avail_in-5),L=Y.next_out,_e=Y.output,p=L-(O-Y.avail_out),a=L+(Y.avail_out-257),A=T.dmax,m=T.wsize,S=T.whave,K=T.wnext,F=T.window,H=T.hold,V=T.bits,ee=T.lencode,B=T.distcode,G=(1<<T.lenbits)-1,ce=(1<<T.distbits)-1;e:do{V<15&&(H+=I[n++]<<V,V+=8,H+=I[n++]<<V,V+=8),q=ee[H&G];t:for(;;){if(H>>>=be=q>>>24,V-=be,(be=q>>>16&255)===0)_e[L++]=65535&q;else{if(!(16&be)){if(!(64&be)){q=ee[(65535&q)+(H&(1<<be)-1)];continue t}if(32&be){T.mode=12;break e}Y.msg="invalid literal/length code",T.mode=30;break e}xe=65535&q,(be&=15)&&(V<be&&(H+=I[n++]<<V,V+=8),xe+=H&(1<<be)-1,H>>>=be,V-=be),V<15&&(H+=I[n++]<<V,V+=8,H+=I[n++]<<V,V+=8),q=B[H&ce];r:for(;;){if(H>>>=be=q>>>24,V-=be,!(16&(be=q>>>16&255))){if(!(64&be)){q=B[(65535&q)+(H&(1<<be)-1)];continue r}Y.msg="invalid distance code",T.mode=30;break e}if(Le=65535&q,V<(be&=15)&&(H+=I[n++]<<V,(V+=8)<be&&(H+=I[n++]<<V,V+=8)),A<(Le+=H&(1<<be)-1)){Y.msg="invalid distance too far back",T.mode=30;break e}if(H>>>=be,V-=be,(be=L-p)<Le){if(S<(be=Le-be)&&T.sane){Y.msg="invalid distance too far back",T.mode=30;break e}if(me=F,(ae=0)===K){if(ae+=m-be,be<xe){for(xe-=be;_e[L++]=F[ae++],--be;);ae=L-Le,me=_e}}else if(K<be){if(ae+=m+K-be,(be-=K)<xe){for(xe-=be;_e[L++]=F[ae++],--be;);if(ae=0,K<xe){for(xe-=be=K;_e[L++]=F[ae++],--be;);ae=L-Le,me=_e}}}else if(ae+=K-be,be<xe){for(xe-=be;_e[L++]=F[ae++],--be;);ae=L-Le,me=_e}for(;2<xe;)_e[L++]=me[ae++],_e[L++]=me[ae++],_e[L++]=me[ae++],xe-=3;xe&&(_e[L++]=me[ae++],1<xe&&(_e[L++]=me[ae++]))}else{for(ae=L-Le;_e[L++]=_e[ae++],_e[L++]=_e[ae++],_e[L++]=_e[ae++],2<(xe-=3););xe&&(_e[L++]=_e[ae++],1<xe&&(_e[L++]=_e[ae++]))}break}}break}}while(n<o&&L<a);n-=xe=V>>3,H&=(1<<(V-=xe<<3))-1,Y.next_in=n,Y.next_out=L,Y.avail_in=n<o?o-n+5:5-(n-o),Y.avail_out=L<a?a-L+257:257-(L-a),T.hold=H,T.bits=V}},{}],49:[function(se,ke,ie){"use strict";var Y=se("../utils/common"),O=se("./adler32"),T=se("./crc32"),n=se("./inffast"),o=se("./inftrees"),L=1,p=2,a=0,A=-2,m=1,S=852,K=592;function F(ae){return(ae>>>24&255)+(ae>>>8&65280)+((65280&ae)<<8)+((255&ae)<<24)}function H(){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 Y.Buf16(320),this.work=new Y.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function V(ae){var me;return ae&&ae.state?(me=ae.state,ae.total_in=ae.total_out=me.total=0,ae.msg="",me.wrap&&(ae.adler=1&me.wrap),me.mode=m,me.last=0,me.havedict=0,me.dmax=32768,me.head=null,me.hold=0,me.bits=0,me.lencode=me.lendyn=new Y.Buf32(S),me.distcode=me.distdyn=new Y.Buf32(K),me.sane=1,me.back=-1,a):A}function ee(ae){var me;return ae&&ae.state?((me=ae.state).wsize=0,me.whave=0,me.wnext=0,V(ae)):A}function B(ae,me){var I,_e;return ae&&ae.state?(_e=ae.state,me<0?(I=0,me=-me):(I=1+(me>>4),me<48&&(me&=15)),me&&(me<8||15<me)?A:(_e.window!==null&&_e.wbits!==me&&(_e.window=null),_e.wrap=I,_e.wbits=me,ee(ae))):A}function G(ae,me){var I,_e;return ae?(_e=new H,(ae.state=_e).window=null,(I=B(ae,me))!==a&&(ae.state=null),I):A}var ce,q,be=!0;function xe(ae){if(be){var me;for(ce=new Y.Buf32(512),q=new Y.Buf32(32),me=0;me<144;)ae.lens[me++]=8;for(;me<256;)ae.lens[me++]=9;for(;me<280;)ae.lens[me++]=7;for(;me<288;)ae.lens[me++]=8;for(o(L,ae.lens,0,288,ce,0,ae.work,{bits:9}),me=0;me<32;)ae.lens[me++]=5;o(p,ae.lens,0,32,q,0,ae.work,{bits:5}),be=!1}ae.lencode=ce,ae.lenbits=9,ae.distcode=q,ae.distbits=5}function Le(ae,me,I,_e){var oe,he=ae.state;return he.window===null&&(he.wsize=1<<he.wbits,he.wnext=0,he.whave=0,he.window=new Y.Buf8(he.wsize)),_e>=he.wsize?(Y.arraySet(he.window,me,I-he.wsize,he.wsize,0),he.wnext=0,he.whave=he.wsize):(_e<(oe=he.wsize-he.wnext)&&(oe=_e),Y.arraySet(he.window,me,I-_e,oe,he.wnext),(_e-=oe)?(Y.arraySet(he.window,me,I-_e,_e,0),he.wnext=_e,he.whave=he.wsize):(he.wnext+=oe,he.wnext===he.wsize&&(he.wnext=0),he.whave<he.wsize&&(he.whave+=oe))),0}ie.inflateReset=ee,ie.inflateReset2=B,ie.inflateResetKeep=V,ie.inflateInit=function(ae){return G(ae,15)},ie.inflateInit2=G,ie.inflate=function(ae,me){var I,_e,oe,he,ve,_,N,X,pe,qe,at,rt,Rt,lr,qt,Ze,Er,Cr,Kr,_r,Me,Tt,z,v,f=0,D=new Y.Buf8(4),de=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ae||!ae.state||!ae.output||!ae.input&&ae.avail_in!==0)return A;(I=ae.state).mode===12&&(I.mode=13),ve=ae.next_out,oe=ae.output,N=ae.avail_out,he=ae.next_in,_e=ae.input,_=ae.avail_in,X=I.hold,pe=I.bits,qe=_,at=N,Tt=a;e:for(;;)switch(I.mode){case m:if(I.wrap===0){I.mode=13;break}for(;pe<16;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if(2&I.wrap&&X===35615){D[I.check=0]=255&X,D[1]=X>>>8&255,I.check=T(I.check,D,2,0),pe=X=0,I.mode=2;break}if(I.flags=0,I.head&&(I.head.done=!1),!(1&I.wrap)||(((255&X)<<8)+(X>>8))%31){ae.msg="incorrect header check",I.mode=30;break}if((15&X)!=8){ae.msg="unknown compression method",I.mode=30;break}if(pe-=4,Me=8+(15&(X>>>=4)),I.wbits===0)I.wbits=Me;else if(Me>I.wbits){ae.msg="invalid window size",I.mode=30;break}I.dmax=1<<Me,ae.adler=I.check=1,I.mode=512&X?10:12,pe=X=0;break;case 2:for(;pe<16;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if(I.flags=X,(255&I.flags)!=8){ae.msg="unknown compression method",I.mode=30;break}if(57344&I.flags){ae.msg="unknown header flags set",I.mode=30;break}I.head&&(I.head.text=X>>8&1),512&I.flags&&(D[0]=255&X,D[1]=X>>>8&255,I.check=T(I.check,D,2,0)),pe=X=0,I.mode=3;case 3:for(;pe<32;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}I.head&&(I.head.time=X),512&I.flags&&(D[0]=255&X,D[1]=X>>>8&255,D[2]=X>>>16&255,D[3]=X>>>24&255,I.check=T(I.check,D,4,0)),pe=X=0,I.mode=4;case 4:for(;pe<16;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}I.head&&(I.head.xflags=255&X,I.head.os=X>>8),512&I.flags&&(D[0]=255&X,D[1]=X>>>8&255,I.check=T(I.check,D,2,0)),pe=X=0,I.mode=5;case 5:if(1024&I.flags){for(;pe<16;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}I.length=X,I.head&&(I.head.extra_len=X),512&I.flags&&(D[0]=255&X,D[1]=X>>>8&255,I.check=T(I.check,D,2,0)),pe=X=0}else I.head&&(I.head.extra=null);I.mode=6;case 6:if(1024&I.flags&&(_<(rt=I.length)&&(rt=_),rt&&(I.head&&(Me=I.head.extra_len-I.length,I.head.extra||(I.head.extra=new Array(I.head.extra_len)),Y.arraySet(I.head.extra,_e,he,rt,Me)),512&I.flags&&(I.check=T(I.check,_e,rt,he)),_-=rt,he+=rt,I.length-=rt),I.length))break e;I.length=0,I.mode=7;case 7:if(2048&I.flags){if(_===0)break e;for(rt=0;Me=_e[he+rt++],I.head&&Me&&I.length<65536&&(I.head.name+=String.fromCharCode(Me)),Me&&rt<_;);if(512&I.flags&&(I.check=T(I.check,_e,rt,he)),_-=rt,he+=rt,Me)break e}else I.head&&(I.head.name=null);I.length=0,I.mode=8;case 8:if(4096&I.flags){if(_===0)break e;for(rt=0;Me=_e[he+rt++],I.head&&Me&&I.length<65536&&(I.head.comment+=String.fromCharCode(Me)),Me&&rt<_;);if(512&I.flags&&(I.check=T(I.check,_e,rt,he)),_-=rt,he+=rt,Me)break e}else I.head&&(I.head.comment=null);I.mode=9;case 9:if(512&I.flags){for(;pe<16;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if(X!==(65535&I.check)){ae.msg="header crc mismatch",I.mode=30;break}pe=X=0}I.head&&(I.head.hcrc=I.flags>>9&1,I.head.done=!0),ae.adler=I.check=0,I.mode=12;break;case 10:for(;pe<32;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}ae.adler=I.check=F(X),pe=X=0,I.mode=11;case 11:if(I.havedict===0)return ae.next_out=ve,ae.avail_out=N,ae.next_in=he,ae.avail_in=_,I.hold=X,I.bits=pe,2;ae.adler=I.check=1,I.mode=12;case 12:if(me===5||me===6)break e;case 13:if(I.last){X>>>=7&pe,pe-=7&pe,I.mode=27;break}for(;pe<3;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}switch(I.last=1&X,pe-=1,3&(X>>>=1)){case 0:I.mode=14;break;case 1:if(xe(I),I.mode=20,me!==6)break;X>>>=2,pe-=2;break e;case 2:I.mode=17;break;case 3:ae.msg="invalid block type",I.mode=30}X>>>=2,pe-=2;break;case 14:for(X>>>=7&pe,pe-=7&pe;pe<32;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if((65535&X)!=(X>>>16^65535)){ae.msg="invalid stored block lengths",I.mode=30;break}if(I.length=65535&X,pe=X=0,I.mode=15,me===6)break e;case 15:I.mode=16;case 16:if(rt=I.length){if(_<rt&&(rt=_),N<rt&&(rt=N),rt===0)break e;Y.arraySet(oe,_e,he,rt,ve),_-=rt,he+=rt,N-=rt,ve+=rt,I.length-=rt;break}I.mode=12;break;case 17:for(;pe<14;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if(I.nlen=257+(31&X),X>>>=5,pe-=5,I.ndist=1+(31&X),X>>>=5,pe-=5,I.ncode=4+(15&X),X>>>=4,pe-=4,286<I.nlen||30<I.ndist){ae.msg="too many length or distance symbols",I.mode=30;break}I.have=0,I.mode=18;case 18:for(;I.have<I.ncode;){for(;pe<3;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}I.lens[de[I.have++]]=7&X,X>>>=3,pe-=3}for(;I.have<19;)I.lens[de[I.have++]]=0;if(I.lencode=I.lendyn,I.lenbits=7,z={bits:I.lenbits},Tt=o(0,I.lens,0,19,I.lencode,0,I.work,z),I.lenbits=z.bits,Tt){ae.msg="invalid code lengths set",I.mode=30;break}I.have=0,I.mode=19;case 19:for(;I.have<I.nlen+I.ndist;){for(;Ze=(f=I.lencode[X&(1<<I.lenbits)-1])>>>16&255,Er=65535&f,!((qt=f>>>24)<=pe);){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if(Er<16)X>>>=qt,pe-=qt,I.lens[I.have++]=Er;else{if(Er===16){for(v=qt+2;pe<v;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if(X>>>=qt,pe-=qt,I.have===0){ae.msg="invalid bit length repeat",I.mode=30;break}Me=I.lens[I.have-1],rt=3+(3&X),X>>>=2,pe-=2}else if(Er===17){for(v=qt+3;pe<v;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}pe-=qt,Me=0,rt=3+(7&(X>>>=qt)),X>>>=3,pe-=3}else{for(v=qt+7;pe<v;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}pe-=qt,Me=0,rt=11+(127&(X>>>=qt)),X>>>=7,pe-=7}if(I.have+rt>I.nlen+I.ndist){ae.msg="invalid bit length repeat",I.mode=30;break}for(;rt--;)I.lens[I.have++]=Me}}if(I.mode===30)break;if(I.lens[256]===0){ae.msg="invalid code -- missing end-of-block",I.mode=30;break}if(I.lenbits=9,z={bits:I.lenbits},Tt=o(L,I.lens,0,I.nlen,I.lencode,0,I.work,z),I.lenbits=z.bits,Tt){ae.msg="invalid literal/lengths set",I.mode=30;break}if(I.distbits=6,I.distcode=I.distdyn,z={bits:I.distbits},Tt=o(p,I.lens,I.nlen,I.ndist,I.distcode,0,I.work,z),I.distbits=z.bits,Tt){ae.msg="invalid distances set",I.mode=30;break}if(I.mode=20,me===6)break e;case 20:I.mode=21;case 21:if(6<=_&&258<=N){ae.next_out=ve,ae.avail_out=N,ae.next_in=he,ae.avail_in=_,I.hold=X,I.bits=pe,n(ae,at),ve=ae.next_out,oe=ae.output,N=ae.avail_out,he=ae.next_in,_e=ae.input,_=ae.avail_in,X=I.hold,pe=I.bits,I.mode===12&&(I.back=-1);break}for(I.back=0;Ze=(f=I.lencode[X&(1<<I.lenbits)-1])>>>16&255,Er=65535&f,!((qt=f>>>24)<=pe);){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if(Ze&&!(240&Ze)){for(Cr=qt,Kr=Ze,_r=Er;Ze=(f=I.lencode[_r+((X&(1<<Cr+Kr)-1)>>Cr)])>>>16&255,Er=65535&f,!(Cr+(qt=f>>>24)<=pe);){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}X>>>=Cr,pe-=Cr,I.back+=Cr}if(X>>>=qt,pe-=qt,I.back+=qt,I.length=Er,Ze===0){I.mode=26;break}if(32&Ze){I.back=-1,I.mode=12;break}if(64&Ze){ae.msg="invalid literal/length code",I.mode=30;break}I.extra=15&Ze,I.mode=22;case 22:if(I.extra){for(v=I.extra;pe<v;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}I.length+=X&(1<<I.extra)-1,X>>>=I.extra,pe-=I.extra,I.back+=I.extra}I.was=I.length,I.mode=23;case 23:for(;Ze=(f=I.distcode[X&(1<<I.distbits)-1])>>>16&255,Er=65535&f,!((qt=f>>>24)<=pe);){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if(!(240&Ze)){for(Cr=qt,Kr=Ze,_r=Er;Ze=(f=I.distcode[_r+((X&(1<<Cr+Kr)-1)>>Cr)])>>>16&255,Er=65535&f,!(Cr+(qt=f>>>24)<=pe);){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}X>>>=Cr,pe-=Cr,I.back+=Cr}if(X>>>=qt,pe-=qt,I.back+=qt,64&Ze){ae.msg="invalid distance code",I.mode=30;break}I.offset=Er,I.extra=15&Ze,I.mode=24;case 24:if(I.extra){for(v=I.extra;pe<v;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}I.offset+=X&(1<<I.extra)-1,X>>>=I.extra,pe-=I.extra,I.back+=I.extra}if(I.offset>I.dmax){ae.msg="invalid distance too far back",I.mode=30;break}I.mode=25;case 25:if(N===0)break e;if(rt=at-N,I.offset>rt){if((rt=I.offset-rt)>I.whave&&I.sane){ae.msg="invalid distance too far back",I.mode=30;break}Rt=rt>I.wnext?(rt-=I.wnext,I.wsize-rt):I.wnext-rt,rt>I.length&&(rt=I.length),lr=I.window}else lr=oe,Rt=ve-I.offset,rt=I.length;for(N<rt&&(rt=N),N-=rt,I.length-=rt;oe[ve++]=lr[Rt++],--rt;);I.length===0&&(I.mode=21);break;case 26:if(N===0)break e;oe[ve++]=I.length,N--,I.mode=21;break;case 27:if(I.wrap){for(;pe<32;){if(_===0)break e;_--,X|=_e[he++]<<pe,pe+=8}if(at-=N,ae.total_out+=at,I.total+=at,at&&(ae.adler=I.check=I.flags?T(I.check,oe,at,ve-at):O(I.check,oe,at,ve-at)),at=N,(I.flags?X:F(X))!==I.check){ae.msg="incorrect data check",I.mode=30;break}pe=X=0}I.mode=28;case 28:if(I.wrap&&I.flags){for(;pe<32;){if(_===0)break e;_--,X+=_e[he++]<<pe,pe+=8}if(X!==(4294967295&I.total)){ae.msg="incorrect length check",I.mode=30;break}pe=X=0}I.mode=29;case 29:Tt=1;break e;case 30:Tt=-3;break e;case 31:return-4;case 32:default:return A}return ae.next_out=ve,ae.avail_out=N,ae.next_in=he,ae.avail_in=_,I.hold=X,I.bits=pe,(I.wsize||at!==ae.avail_out&&I.mode<30&&(I.mode<27||me!==4))&&Le(ae,ae.output,ae.next_out,at-ae.avail_out)?(I.mode=31,-4):(qe-=ae.avail_in,at-=ae.avail_out,ae.total_in+=qe,ae.total_out+=at,I.total+=at,I.wrap&&at&&(ae.adler=I.check=I.flags?T(I.check,oe,at,ae.next_out-at):O(I.check,oe,at,ae.next_out-at)),ae.data_type=I.bits+(I.last?64:0)+(I.mode===12?128:0)+(I.mode===20||I.mode===15?256:0),(qe==0&&at===0||me===4)&&Tt===a&&(Tt=-5),Tt)},ie.inflateEnd=function(ae){if(!ae||!ae.state)return A;var me=ae.state;return me.window&&(me.window=null),ae.state=null,a},ie.inflateGetHeader=function(ae,me){var I;return ae&&ae.state&&2&(I=ae.state).wrap?((I.head=me).done=!1,a):A},ie.inflateSetDictionary=function(ae,me){var I,_e=me.length;return ae&&ae.state?(I=ae.state).wrap!==0&&I.mode!==11?A:I.mode===11&&O(1,me,_e,0)!==I.check?-3:Le(ae,me,_e,_e)?(I.mode=31,-4):(I.havedict=1,a):A},ie.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(se,ke,ie){"use strict";var Y=se("../utils/common"),O=[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],n=[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],o=[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];ke.exports=function(L,p,a,A,m,S,K,F){var H,V,ee,B,G,ce,q,be,xe,Le=F.bits,ae=0,me=0,I=0,_e=0,oe=0,he=0,ve=0,_=0,N=0,X=0,pe=null,qe=0,at=new Y.Buf16(16),rt=new Y.Buf16(16),Rt=null,lr=0;for(ae=0;ae<=15;ae++)at[ae]=0;for(me=0;me<A;me++)at[p[a+me]]++;for(oe=Le,_e=15;1<=_e&&at[_e]===0;_e--);if(_e<oe&&(oe=_e),_e===0)return m[S++]=20971520,m[S++]=20971520,F.bits=1,0;for(I=1;I<_e&&at[I]===0;I++);for(oe<I&&(oe=I),ae=_=1;ae<=15;ae++)if(_<<=1,(_-=at[ae])<0)return-1;if(0<_&&(L===0||_e!==1))return-1;for(rt[1]=0,ae=1;ae<15;ae++)rt[ae+1]=rt[ae]+at[ae];for(me=0;me<A;me++)p[a+me]!==0&&(K[rt[p[a+me]]++]=me);if(ce=L===0?(pe=Rt=K,19):L===1?(pe=O,qe-=257,Rt=T,lr-=257,256):(pe=n,Rt=o,-1),ae=I,G=S,ve=me=X=0,ee=-1,B=(N=1<<(he=oe))-1,L===1&&852<N||L===2&&592<N)return 1;for(;;){for(q=ae-ve,xe=K[me]<ce?(be=0,K[me]):K[me]>ce?(be=Rt[lr+K[me]],pe[qe+K[me]]):(be=96,0),H=1<<ae-ve,I=V=1<<he;m[G+(X>>ve)+(V-=H)]=q<<24|be<<16|xe|0,V!==0;);for(H=1<<ae-1;X&H;)H>>=1;if(H!==0?(X&=H-1,X+=H):X=0,me++,--at[ae]==0){if(ae===_e)break;ae=p[a+K[me]]}if(oe<ae&&(X&B)!==ee){for(ve===0&&(ve=oe),G+=I,_=1<<(he=ae-ve);he+ve<_e&&!((_-=at[he+ve])<=0);)he++,_<<=1;if(N+=1<<he,L===1&&852<N||L===2&&592<N)return 1;m[ee=X&B]=oe<<24|he<<16|G-S|0}}return X!==0&&(m[G+X]=ae-ve<<24|64<<16|0),F.bits=oe,0}},{"../utils/common":41}],51:[function(se,ke,ie){"use strict";ke.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(se,ke,ie){"use strict";var Y=se("../utils/common"),O=0,T=1;function n(f){for(var D=f.length;0<=--D;)f[D]=0}var o=0,L=29,p=256,a=p+1+L,A=30,m=19,S=2*a+1,K=15,F=16,H=7,V=256,ee=16,B=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],be=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],xe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Le=new Array(2*(a+2));n(Le);var ae=new Array(2*A);n(ae);var me=new Array(512);n(me);var I=new Array(256);n(I);var _e=new Array(L);n(_e);var oe,he,ve,_=new Array(A);function N(f,D,de,W,P){this.static_tree=f,this.extra_bits=D,this.extra_base=de,this.elems=W,this.max_length=P,this.has_stree=f&&f.length}function X(f,D){this.dyn_tree=f,this.max_code=0,this.stat_desc=D}function pe(f){return f<256?me[f]:me[256+(f>>>7)]}function qe(f,D){f.pending_buf[f.pending++]=255&D,f.pending_buf[f.pending++]=D>>>8&255}function at(f,D,de){f.bi_valid>F-de?(f.bi_buf|=D<<f.bi_valid&65535,qe(f,f.bi_buf),f.bi_buf=D>>F-f.bi_valid,f.bi_valid+=de-F):(f.bi_buf|=D<<f.bi_valid&65535,f.bi_valid+=de)}function rt(f,D,de){at(f,de[2*D],de[2*D+1])}function Rt(f,D){for(var de=0;de|=1&f,f>>>=1,de<<=1,0<--D;);return de>>>1}function lr(f,D,de){var W,P,te=new Array(K+1),Ie=0;for(W=1;W<=K;W++)te[W]=Ie=Ie+de[W-1]<<1;for(P=0;P<=D;P++){var Te=f[2*P+1];Te!==0&&(f[2*P]=Rt(te[Te]++,Te))}}function qt(f){var D;for(D=0;D<a;D++)f.dyn_ltree[2*D]=0;for(D=0;D<A;D++)f.dyn_dtree[2*D]=0;for(D=0;D<m;D++)f.bl_tree[2*D]=0;f.dyn_ltree[2*V]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function Ze(f){8<f.bi_valid?qe(f,f.bi_buf):0<f.bi_valid&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function Er(f,D,de,W){var P=2*D,te=2*de;return f[P]<f[te]||f[P]===f[te]&&W[D]<=W[de]}function Cr(f,D,de){for(var W=f.heap[de],P=de<<1;P<=f.heap_len&&(P<f.heap_len&&Er(D,f.heap[P+1],f.heap[P],f.depth)&&P++,!Er(D,W,f.heap[P],f.depth));)f.heap[de]=f.heap[P],de=P,P<<=1;f.heap[de]=W}function Kr(f,D,de){var W,P,te,Ie,Te=0;if(f.last_lit!==0)for(;W=f.pending_buf[f.d_buf+2*Te]<<8|f.pending_buf[f.d_buf+2*Te+1],P=f.pending_buf[f.l_buf+Te],Te++,W===0?rt(f,P,D):(rt(f,(te=I[P])+p+1,D),(Ie=ce[te])!==0&&at(f,P-=_e[te],Ie),rt(f,te=pe(--W),de),(Ie=q[te])!==0&&at(f,W-=_[te],Ie)),Te<f.last_lit;);rt(f,V,D)}function _r(f,D){var de,W,P,te=D.dyn_tree,Ie=D.stat_desc.static_tree,Te=D.stat_desc.has_stree,Se=D.stat_desc.elems,Ge=-1;for(f.heap_len=0,f.heap_max=S,de=0;de<Se;de++)te[2*de]!==0?(f.heap[++f.heap_len]=Ge=de,f.depth[de]=0):te[2*de+1]=0;for(;f.heap_len<2;)te[2*(P=f.heap[++f.heap_len]=Ge<2?++Ge:0)]=1,f.depth[P]=0,f.opt_len--,Te&&(f.static_len-=Ie[2*P+1]);for(D.max_code=Ge,de=f.heap_len>>1;1<=de;de--)Cr(f,te,de);for(P=Se;de=f.heap[1],f.heap[1]=f.heap[f.heap_len--],Cr(f,te,1),W=f.heap[1],f.heap[--f.heap_max]=de,f.heap[--f.heap_max]=W,te[2*P]=te[2*de]+te[2*W],f.depth[P]=(f.depth[de]>=f.depth[W]?f.depth[de]:f.depth[W])+1,te[2*de+1]=te[2*W+1]=P,f.heap[1]=P++,Cr(f,te,1),2<=f.heap_len;);f.heap[--f.heap_max]=f.heap[1],function(ft,Ke){var Xe,At,We,$e,Bt,Kt,Mt=Ke.dyn_tree,wr=Ke.max_code,vr=Ke.stat_desc.static_tree,re=Ke.stat_desc.has_stree,le=Ke.stat_desc.extra_bits,rr=Ke.stat_desc.extra_base,Ue=Ke.stat_desc.max_length,ot=0;for($e=0;$e<=K;$e++)ft.bl_count[$e]=0;for(Mt[2*ft.heap[ft.heap_max]+1]=0,Xe=ft.heap_max+1;Xe<S;Xe++)Ue<($e=Mt[2*Mt[2*(At=ft.heap[Xe])+1]+1]+1)&&($e=Ue,ot++),Mt[2*At+1]=$e,wr<At||(ft.bl_count[$e]++,Bt=0,rr<=At&&(Bt=le[At-rr]),Kt=Mt[2*At],ft.opt_len+=Kt*($e+Bt),re&&(ft.static_len+=Kt*(vr[2*At+1]+Bt)));if(ot!==0){do{for($e=Ue-1;ft.bl_count[$e]===0;)$e--;ft.bl_count[$e]--,ft.bl_count[$e+1]+=2,ft.bl_count[Ue]--,ot-=2}while(0<ot);for($e=Ue;$e!==0;$e--)for(At=ft.bl_count[$e];At!==0;)wr<(We=ft.heap[--Xe])||(Mt[2*We+1]!==$e&&(ft.opt_len+=($e-Mt[2*We+1])*Mt[2*We],Mt[2*We+1]=$e),At--)}}(f,D),lr(te,Ge,f.bl_count)}function Me(f,D,de){var W,P,te=-1,Ie=D[1],Te=0,Se=7,Ge=4;for(Ie===0&&(Se=138,Ge=3),D[2*(de+1)+1]=65535,W=0;W<=de;W++)P=Ie,Ie=D[2*(W+1)+1],++Te<Se&&P===Ie||(Te<Ge?f.bl_tree[2*P]+=Te:P!==0?(P!==te&&f.bl_tree[2*P]++,f.bl_tree[2*ee]++):Te<=10?f.bl_tree[2*B]++:f.bl_tree[2*G]++,te=P,Ge=(Te=0)===Ie?(Se=138,3):P===Ie?(Se=6,3):(Se=7,4))}function Tt(f,D,de){var W,P,te=-1,Ie=D[1],Te=0,Se=7,Ge=4;for(Ie===0&&(Se=138,Ge=3),W=0;W<=de;W++)if(P=Ie,Ie=D[2*(W+1)+1],!(++Te<Se&&P===Ie)){if(Te<Ge)for(;rt(f,P,f.bl_tree),--Te!=0;);else P!==0?(P!==te&&(rt(f,P,f.bl_tree),Te--),rt(f,ee,f.bl_tree),at(f,Te-3,2)):Te<=10?(rt(f,B,f.bl_tree),at(f,Te-3,3)):(rt(f,G,f.bl_tree),at(f,Te-11,7));te=P,Ge=(Te=0)===Ie?(Se=138,3):P===Ie?(Se=6,3):(Se=7,4)}}n(_);var z=!1;function v(f,D,de,W){at(f,(o<<1)+(W?1:0),3),function(P,te,Ie,Te){Ze(P),Te&&(qe(P,Ie),qe(P,~Ie)),Y.arraySet(P.pending_buf,P.window,te,Ie,P.pending),P.pending+=Ie}(f,D,de,!0)}ie._tr_init=function(f){z||(function(){var D,de,W,P,te,Ie=new Array(K+1);for(P=W=0;P<L-1;P++)for(_e[P]=W,D=0;D<1<<ce[P];D++)I[W++]=P;for(I[W-1]=P,P=te=0;P<16;P++)for(_[P]=te,D=0;D<1<<q[P];D++)me[te++]=P;for(te>>=7;P<A;P++)for(_[P]=te<<7,D=0;D<1<<q[P]-7;D++)me[256+te++]=P;for(de=0;de<=K;de++)Ie[de]=0;for(D=0;D<=143;)Le[2*D+1]=8,D++,Ie[8]++;for(;D<=255;)Le[2*D+1]=9,D++,Ie[9]++;for(;D<=279;)Le[2*D+1]=7,D++,Ie[7]++;for(;D<=287;)Le[2*D+1]=8,D++,Ie[8]++;for(lr(Le,a+1,Ie),D=0;D<A;D++)ae[2*D+1]=5,ae[2*D]=Rt(D,5);oe=new N(Le,ce,p+1,a,K),he=new N(ae,q,0,A,K),ve=new N(new Array(0),be,0,m,H)}(),z=!0),f.l_desc=new X(f.dyn_ltree,oe),f.d_desc=new X(f.dyn_dtree,he),f.bl_desc=new X(f.bl_tree,ve),f.bi_buf=0,f.bi_valid=0,qt(f)},ie._tr_stored_block=v,ie._tr_flush_block=function(f,D,de,W){var P,te,Ie=0;0<f.level?(f.strm.data_type===2&&(f.strm.data_type=function(Te){var Se,Ge=4093624447;for(Se=0;Se<=31;Se++,Ge>>>=1)if(1&Ge&&Te.dyn_ltree[2*Se]!==0)return O;if(Te.dyn_ltree[18]!==0||Te.dyn_ltree[20]!==0||Te.dyn_ltree[26]!==0)return T;for(Se=32;Se<p;Se++)if(Te.dyn_ltree[2*Se]!==0)return T;return O}(f)),_r(f,f.l_desc),_r(f,f.d_desc),Ie=function(Te){var Se;for(Me(Te,Te.dyn_ltree,Te.l_desc.max_code),Me(Te,Te.dyn_dtree,Te.d_desc.max_code),_r(Te,Te.bl_desc),Se=m-1;3<=Se&&Te.bl_tree[2*xe[Se]+1]===0;Se--);return Te.opt_len+=3*(Se+1)+5+5+4,Se}(f),P=f.opt_len+3+7>>>3,(te=f.static_len+3+7>>>3)<=P&&(P=te)):P=te=de+5,de+4<=P&&D!==-1?v(f,D,de,W):f.strategy===4||te===P?(at(f,2+(W?1:0),3),Kr(f,Le,ae)):(at(f,4+(W?1:0),3),function(Te,Se,Ge,ft){var Ke;for(at(Te,Se-257,5),at(Te,Ge-1,5),at(Te,ft-4,4),Ke=0;Ke<ft;Ke++)at(Te,Te.bl_tree[2*xe[Ke]+1],3);Tt(Te,Te.dyn_ltree,Se-1),Tt(Te,Te.dyn_dtree,Ge-1)}(f,f.l_desc.max_code+1,f.d_desc.max_code+1,Ie+1),Kr(f,f.dyn_ltree,f.dyn_dtree)),qt(f),W&&Ze(f)},ie._tr_tally=function(f,D,de){return f.pending_buf[f.d_buf+2*f.last_lit]=D>>>8&255,f.pending_buf[f.d_buf+2*f.last_lit+1]=255&D,f.pending_buf[f.l_buf+f.last_lit]=255&de,f.last_lit++,D===0?f.dyn_ltree[2*de]++:(f.matches++,D--,f.dyn_ltree[2*(I[de]+p+1)]++,f.dyn_dtree[2*pe(D)]++),f.last_lit===f.lit_bufsize-1},ie._tr_align=function(f){at(f,2,3),rt(f,V,Le),function(D){D.bi_valid===16?(qe(D,D.bi_buf),D.bi_buf=0,D.bi_valid=0):8<=D.bi_valid&&(D.pending_buf[D.pending++]=255&D.bi_buf,D.bi_buf>>=8,D.bi_valid-=8)}(f)}},{"../utils/common":41}],53:[function(se,ke,ie){"use strict";ke.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(se,ke,ie){(function(Y){(function(O,T){"use strict";if(!O.setImmediate){var n,o,L,p,a=1,A={},m=!1,S=O.document,K=Object.getPrototypeOf&&Object.getPrototypeOf(O);K=K&&K.setTimeout?K:O,n={}.toString.call(O.process)==="[object process]"?function(ee){Fe.nextTick(function(){H(ee)})}:function(){if(O.postMessage&&!O.importScripts){var ee=!0,B=O.onmessage;return O.onmessage=function(){ee=!1},O.postMessage("","*"),O.onmessage=B,ee}}()?(p="setImmediate$"+Math.random()+"$",O.addEventListener?O.addEventListener("message",V,!1):O.attachEvent("onmessage",V),function(ee){O.postMessage(p+ee,"*")}):O.MessageChannel?((L=new MessageChannel).port1.onmessage=function(ee){H(ee.data)},function(ee){L.port2.postMessage(ee)}):S&&"onreadystatechange"in S.createElement("script")?(o=S.documentElement,function(ee){var B=S.createElement("script");B.onreadystatechange=function(){H(ee),B.onreadystatechange=null,o.removeChild(B),B=null},o.appendChild(B)}):function(ee){setTimeout(H,0,ee)},K.setImmediate=function(ee){typeof ee!="function"&&(ee=new Function(""+ee));for(var B=new Array(arguments.length-1),G=0;G<B.length;G++)B[G]=arguments[G+1];var ce={callback:ee,args:B};return A[a]=ce,n(a),a++},K.clearImmediate=F}function F(ee){delete A[ee]}function H(ee){if(m)setTimeout(H,0,ee);else{var B=A[ee];if(B){m=!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)}})(B)}finally{F(ee),m=!1}}}}function V(ee){ee.source===O&&typeof ee.data=="string"&&ee.data.indexOf(p)===0&&H(+ee.data.slice(p.length))}})(typeof self=="undefined"?Y===void 0?this:Y:self)}).call(this,typeof g.g!="undefined"?g.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},15342:function(yn){(function(g,we){yn.exports=we()})(typeof self!="undefined"?self:this,function(){return function(Gt){var g={};function we(Fe){if(g[Fe])return g[Fe].exports;var se=g[Fe]={i:Fe,l:!1,exports:{}};return Gt[Fe].call(se.exports,se,se.exports,we),se.l=!0,se.exports}return we.m=Gt,we.c=g,we.d=function(Fe,se,ke){we.o(Fe,se)||Object.defineProperty(Fe,se,{enumerable:!0,get:ke})},we.r=function(Fe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Fe,"__esModule",{value:!0})},we.t=function(Fe,se){if(se&1&&(Fe=we(Fe)),se&8||se&4&&typeof Fe=="object"&&Fe&&Fe.__esModule)return Fe;var ke=Object.create(null);if(we.r(ke),Object.defineProperty(ke,"default",{enumerable:!0,value:Fe}),se&2&&typeof Fe!="string")for(var ie in Fe)we.d(ke,ie,function(Y){return Fe[Y]}.bind(null,ie));return ke},we.n=function(Fe){var se=Fe&&Fe.__esModule?function(){return Fe.default}:function(){return Fe};return we.d(se,"a",se),se},we.o=function(Fe,se){return Object.prototype.hasOwnProperty.call(Fe,se)},we.p="",we(we.s=1)}([function(Gt,g,we){},function(Gt,g,we){"use strict";we.r(g);var Fe=we(0),se=function(){function He(c,w,C){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=c,this.start=w,this.end=C}return He.range=function(w,C){return C?!w||!w.loc||!C.loc||w.loc.lexer!==C.loc.lexer?null:new He(w.loc.lexer,w.loc.start,C.loc.end):w&&w.loc},He}(),ke=function(){function He(w,C){this.text=void 0,this.loc=void 0,this.text=w,this.loc=C}var c=He.prototype;return c.range=function(C,$){return new He($,se.range(this,C))},He}(),ie=function He(c,w){this.position=void 0;var C="KaTeX parse error: "+c,$,Be=w&&w.loc;if(Be&&Be.start<=Be.end){var je=Be.lexer.input;$=Be.start;var xt=Be.end;$===je.length?C+=" at end of input: ":C+=" at position "+($+1)+": ";var bt=je.slice($,xt).replace(/[^]/g,"$&\u0332"),Jt;$>15?Jt="\u2026"+je.slice($-15,$):Jt=je.slice(0,$);var Ar;xt+15<je.length?Ar=je.slice(xt,xt+15)+"\u2026":Ar=je.slice(xt),C+=Jt+bt+Ar}var xr=new Error(C);return xr.name="ParseError",xr.__proto__=He.prototype,xr.position=$,xr};ie.prototype.__proto__=Error.prototype;var Y=ie,O=function(c,w){return c.indexOf(w)!==-1},T=function(c,w){return c===void 0?w:c},n=/([A-Z])/g,o=function(c){return c.replace(n,"-$1").toLowerCase()},L={"&":"&",">":">","<":"<",'"':""","'":"'"},p=/[&><"']/g;function a(He){return String(He).replace(p,function(c){return L[c]})}var A=function He(c){return c.type==="ordgroup"||c.type==="color"?c.body.length===1?He(c.body[0]):c:c.type==="font"?He(c.body):c},m=function(c){var w=A(c);return w.type==="mathord"||w.type==="textord"||w.type==="atom"},S=function(c){if(!c)throw new Error("Expected non-null, but got "+String(c));return c},K=function(c){var w=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(c);return w!=null?w[1]:"_relative"},F={contains:O,deflt:T,escape:a,hyphenate:o,getBaseElem:A,isCharacterBox:m,protocolFromUrl:K},H=function(){function He(w){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,w=w||{},this.displayMode=F.deflt(w.displayMode,!1),this.output=F.deflt(w.output,"htmlAndMathml"),this.leqno=F.deflt(w.leqno,!1),this.fleqn=F.deflt(w.fleqn,!1),this.throwOnError=F.deflt(w.throwOnError,!0),this.errorColor=F.deflt(w.errorColor,"#cc0000"),this.macros=w.macros||{},this.minRuleThickness=Math.max(0,F.deflt(w.minRuleThickness,0)),this.colorIsTextColor=F.deflt(w.colorIsTextColor,!1),this.strict=F.deflt(w.strict,"warn"),this.trust=F.deflt(w.trust,!1),this.maxSize=Math.max(0,F.deflt(w.maxSize,1/0)),this.maxExpand=Math.max(0,F.deflt(w.maxExpand,1e3))}var c=He.prototype;return c.reportNonstrict=function(C,$,Be){var je=this.strict;if(typeof je=="function"&&(je=je(C,$,Be)),!(!je||je==="ignore")){if(je===!0||je==="error")throw new Y("LaTeX-incompatible input and strict mode is set to 'error': "+($+" ["+C+"]"),Be);je==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+($+" ["+C+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+je+"': "+$+" ["+C+"]"))}},c.useStrictBehavior=function(C,$,Be){var je=this.strict;if(typeof je=="function")try{je=je(C,$,Be)}catch(xt){je="error"}return!je||je==="ignore"?!1:je===!0||je==="error"?!0:je==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+($+" ["+C+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+je+"': "+$+" ["+C+"]")),!1)},c.isTrusted=function(C){C.url&&!C.protocol&&(C.protocol=F.protocolFromUrl(C.url));var $=typeof this.trust=="function"?this.trust(C):this.trust;return!!$},He}(),V=function(){function He(w,C,$){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=w,this.size=C,this.cramped=$}var c=He.prototype;return c.sup=function(){return ae[me[this.id]]},c.sub=function(){return ae[I[this.id]]},c.fracNum=function(){return ae[_e[this.id]]},c.fracDen=function(){return ae[oe[this.id]]},c.cramp=function(){return ae[he[this.id]]},c.text=function(){return ae[ve[this.id]]},c.isTight=function(){return this.size>=2},He}(),ee=0,B=1,G=2,ce=3,q=4,be=5,xe=6,Le=7,ae=[new V(ee,0,!1),new V(B,0,!0),new V(G,1,!1),new V(ce,1,!0),new V(q,2,!1),new V(be,2,!0),new V(xe,3,!1),new V(Le,3,!0)],me=[q,be,q,be,xe,Le,xe,Le],I=[be,be,be,be,Le,Le,Le,Le],_e=[G,ce,q,be,xe,Le,xe,Le],oe=[ce,ce,be,be,Le,Le,Le,Le],he=[B,B,ce,ce,be,be,Le,Le],ve=[ee,B,G,ce,G,ce,G,ce],_={DISPLAY:ae[ee],TEXT:ae[G],SCRIPT:ae[q],SCRIPTSCRIPT:ae[xe]},N=[{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 X(He){for(var c=0;c<N.length;c++)for(var w=N[c],C=0;C<w.blocks.length;C++){var $=w.blocks[C];if(He>=$[0]&&He<=$[1])return w.name}return null}var pe=[];N.forEach(function(He){return He.blocks.forEach(function(c){return pe.push.apply(pe,c)})});function qe(He){for(var c=0;c<pe.length;c+=2)if(He>=pe[c]&&He<=pe[c+1])return!0;return!1}var at=80,rt=function(c,w){return"M95,"+(622+c+w)+`
|
|
|
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`+c/2.075+" -"+c+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+c)+`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+c)+" "+w+"h400000v"+(40+c)+"h-400000z"},Rt=function(c,w){return"M263,"+(601+c+w)+`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`+c/2.084+" -"+c+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+c)+`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+c)+" "+w+"h400000v"+(40+c)+"h-400000z"},lr=function(c,w){return"M983 "+(10+c+w)+`
|
|
|
l`+c/3.13+" -"+c+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+c)+`
|
|
|
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+c)+" "+w+"h400000v"+(40+c)+"h-400000z"},qt=function(c,w){return"M424,"+(2398+c+w)+`
|
|
|
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`+c/4.223+" -"+c+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+c)+`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+c)+" "+w+`
|
|
|
h400000v`+(40+c)+"h-400000z"},Ze=function(c,w){return"M473,"+(2713+c+w)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+c/5.298+" -"+c+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+c)+`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+c)+" "+w+"h400000v"+(40+c)+"H1017.7z"},Er=function(c,w,C){var $=C-54-w-c;return"M702 "+(c+w)+"H400000"+(40+c)+`
|
|
|
H742v`+$+`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 `+w+"H400000v"+(40+c)+"H742z"},Cr=function(c,w,C){w=1e3*w;var $="";switch(c){case"sqrtMain":$=rt(w,at);break;case"sqrtSize1":$=Rt(w,at);break;case"sqrtSize2":$=lr(w,at);break;case"sqrtSize3":$=qt(w,at);break;case"sqrtSize4":$=Ze(w,at);break;case"sqrtTall":$=Er(w,at,C)}return $},Kr={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`},_r=function(){function He(w){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=w,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var c=He.prototype;return c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){for(var C=document.createDocumentFragment(),$=0;$<this.children.length;$++)C.appendChild(this.children[$].toNode());return C},c.toMarkup=function(){for(var C="",$=0;$<this.children.length;$++)C+=this.children[$].toMarkup();return C},c.toText=function(){var C=function(Be){return Be.toText()};return this.children.map(C).join("")},He}(),Me=function(c){return c.filter(function(w){return w}).join(" ")},Tt=function(c,w,C){if(this.classes=c||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=C||{},w){w.style.isTight()&&this.classes.push("mtight");var $=w.getColor();$&&(this.style.color=$)}},z=function(c){var w=document.createElement(c);w.className=Me(this.classes);for(var C in this.style)this.style.hasOwnProperty(C)&&(w.style[C]=this.style[C]);for(var $ in this.attributes)this.attributes.hasOwnProperty($)&&w.setAttribute($,this.attributes[$]);for(var Be=0;Be<this.children.length;Be++)w.appendChild(this.children[Be].toNode());return w},v=function(c){var w="<"+c;this.classes.length&&(w+=' class="'+F.escape(Me(this.classes))+'"');var C="";for(var $ in this.style)this.style.hasOwnProperty($)&&(C+=F.hyphenate($)+":"+this.style[$]+";");C&&(w+=' style="'+F.escape(C)+'"');for(var Be in this.attributes)this.attributes.hasOwnProperty(Be)&&(w+=" "+Be+'="'+F.escape(this.attributes[Be])+'"');w+=">";for(var je=0;je<this.children.length;je++)w+=this.children[je].toMarkup();return w+="</"+c+">",w},f=function(){function He(w,C,$,Be){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,Tt.call(this,w,$,Be),this.children=C||[]}var c=He.prototype;return c.setAttribute=function(C,$){this.attributes[C]=$},c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){return z.call(this,"span")},c.toMarkup=function(){return v.call(this,"span")},He}(),D=function(){function He(w,C,$,Be){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,Tt.call(this,C,Be),this.children=$||[],this.setAttribute("href",w)}var c=He.prototype;return c.setAttribute=function(C,$){this.attributes[C]=$},c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){return z.call(this,"a")},c.toMarkup=function(){return v.call(this,"a")},He}(),de=function(){function He(w,C,$){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=C,this.src=w,this.classes=["mord"],this.style=$}var c=He.prototype;return c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){var C=document.createElement("img");C.src=this.src,C.alt=this.alt,C.className="mord";for(var $ in this.style)this.style.hasOwnProperty($)&&(C.style[$]=this.style[$]);return C},c.toMarkup=function(){var C="<img src='"+this.src+" 'alt='"+this.alt+"' ",$="";for(var Be in this.style)this.style.hasOwnProperty(Be)&&($+=F.hyphenate(Be)+":"+this.style[Be]+";");return $&&(C+=' style="'+F.escape($)+'"'),C+="'/>",C},He}(),W={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},P=function(){function He(w,C,$,Be,je,xt,bt,Jt){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=w,this.height=C||0,this.depth=$||0,this.italic=Be||0,this.skew=je||0,this.width=xt||0,this.classes=bt||[],this.style=Jt||{},this.maxFontSize=0;var Ar=X(this.text.charCodeAt(0));Ar&&this.classes.push(Ar+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=W[this.text])}var c=He.prototype;return c.hasClass=function(C){return F.contains(this.classes,C)},c.toNode=function(){var C=document.createTextNode(this.text),$=null;this.italic>0&&($=document.createElement("span"),$.style.marginRight=this.italic+"em"),this.classes.length>0&&($=$||document.createElement("span"),$.className=Me(this.classes));for(var Be in this.style)this.style.hasOwnProperty(Be)&&($=$||document.createElement("span"),$.style[Be]=this.style[Be]);return $?($.appendChild(C),$):C},c.toMarkup=function(){var C=!1,$="<span";this.classes.length&&(C=!0,$+=' class="',$+=F.escape(Me(this.classes)),$+='"');var Be="";this.italic>0&&(Be+="margin-right:"+this.italic+"em;");for(var je in this.style)this.style.hasOwnProperty(je)&&(Be+=F.hyphenate(je)+":"+this.style[je]+";");Be&&(C=!0,$+=' style="'+F.escape(Be)+'"');var xt=F.escape(this.text);return C?($+=">",$+=xt,$+="</span>",$):xt},He}(),te=function(){function He(w,C){this.children=void 0,this.attributes=void 0,this.children=w||[],this.attributes=C||{}}var c=He.prototype;return c.toNode=function(){var C="http://www.w3.org/2000/svg",$=document.createElementNS(C,"svg");for(var Be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Be)&&$.setAttribute(Be,this.attributes[Be]);for(var je=0;je<this.children.length;je++)$.appendChild(this.children[je].toNode());return $},c.toMarkup=function(){var C="<svg";for(var $ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,$)&&(C+=" "+$+"='"+this.attributes[$]+"'");C+=">";for(var Be=0;Be<this.children.length;Be++)C+=this.children[Be].toMarkup();return C+="</svg>",C},He}(),Ie=function(){function He(w,C){this.pathName=void 0,this.alternate=void 0,this.pathName=w,this.alternate=C}var c=He.prototype;return c.toNode=function(){var C="http://www.w3.org/2000/svg",$=document.createElementNS(C,"path");return this.alternate?$.setAttribute("d",this.alternate):$.setAttribute("d",Kr[this.pathName]),$},c.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Kr[this.pathName]+"'/>"},He}(),Te=function(){function He(w){this.attributes=void 0,this.attributes=w||{}}var c=He.prototype;return c.toNode=function(){var C="http://www.w3.org/2000/svg",$=document.createElementNS(C,"line");for(var Be in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Be)&&$.setAttribute(Be,this.attributes[Be]);return $},c.toMarkup=function(){var C="<line";for(var $ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,$)&&(C+=" "+$+"='"+this.attributes[$]+"'");return C+="/>",C},He}();function Se(He){if(He instanceof P)return He;throw new Error("Expected symbolNode but got "+String(He)+".")}function Ge(He){if(He instanceof f)return He;throw new Error("Expected span<HtmlDomNode> but got "+String(He)+".")}var ft={"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]}},Ke={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]},Xe={\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(He,c){ft[He]=c}function We(He,c,w){if(!ft[c])throw new Error("Font metrics not found for font: "+c+".");var C=He.charCodeAt(0),$=ft[c][C];if(!$&&He[0]in Xe&&(C=Xe[He[0]].charCodeAt(0),$=ft[c][C]),!$&&w==="text"&&qe(C)&&($=ft[c][77]),$)return{depth:$[0],height:$[1],italic:$[2],skew:$[3],width:$[4]}}var $e={};function Bt(He){var c;if(He>=5?c=0:He>=3?c=1:c=2,!$e[c]){var w=$e[c]={cssEmPerMu:Ke.quad[c]/18};for(var C in Ke)Ke.hasOwnProperty(C)&&(w[C]=Ke[C][c])}return $e[c]}var Kt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Mt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},wr={math:{},text:{}},vr=wr;function re(He,c,w,C,$,Be){wr[He][$]={font:c,group:w,replace:C},Be&&C&&(wr[He][C]=wr[He][$])}var le="math",rr="text",Ue="main",ot="ams",Yr="accent-token",St="bin",Vt="close",Zt="inner",nt="mathord",ct="op-token",dt="open",Xt="punct",Re="rel",fn="spacing",kt="textord";re(le,Ue,Re,"\u2261","\\equiv",!0),re(le,Ue,Re,"\u227A","\\prec",!0),re(le,Ue,Re,"\u227B","\\succ",!0),re(le,Ue,Re,"\u223C","\\sim",!0),re(le,Ue,Re,"\u22A5","\\perp"),re(le,Ue,Re,"\u2AAF","\\preceq",!0),re(le,Ue,Re,"\u2AB0","\\succeq",!0),re(le,Ue,Re,"\u2243","\\simeq",!0),re(le,Ue,Re,"\u2223","\\mid",!0),re(le,Ue,Re,"\u226A","\\ll",!0),re(le,Ue,Re,"\u226B","\\gg",!0),re(le,Ue,Re,"\u224D","\\asymp",!0),re(le,Ue,Re,"\u2225","\\parallel"),re(le,Ue,Re,"\u22C8","\\bowtie",!0),re(le,Ue,Re,"\u2323","\\smile",!0),re(le,Ue,Re,"\u2291","\\sqsubseteq",!0),re(le,Ue,Re,"\u2292","\\sqsupseteq",!0),re(le,Ue,Re,"\u2250","\\doteq",!0),re(le,Ue,Re,"\u2322","\\frown",!0),re(le,Ue,Re,"\u220B","\\ni",!0),re(le,Ue,Re,"\u221D","\\propto",!0),re(le,Ue,Re,"\u22A2","\\vdash",!0),re(le,Ue,Re,"\u22A3","\\dashv",!0),re(le,Ue,Re,"\u220B","\\owns"),re(le,Ue,Xt,".","\\ldotp"),re(le,Ue,Xt,"\u22C5","\\cdotp"),re(le,Ue,kt,"#","\\#"),re(rr,Ue,kt,"#","\\#"),re(le,Ue,kt,"&","\\&"),re(rr,Ue,kt,"&","\\&"),re(le,Ue,kt,"\u2135","\\aleph",!0),re(le,Ue,kt,"\u2200","\\forall",!0),re(le,Ue,kt,"\u210F","\\hbar",!0),re(le,Ue,kt,"\u2203","\\exists",!0),re(le,Ue,kt,"\u2207","\\nabla",!0),re(le,Ue,kt,"\u266D","\\flat",!0),re(le,Ue,kt,"\u2113","\\ell",!0),re(le,Ue,kt,"\u266E","\\natural",!0),re(le,Ue,kt,"\u2663","\\clubsuit",!0),re(le,Ue,kt,"\u2118","\\wp",!0),re(le,Ue,kt,"\u266F","\\sharp",!0),re(le,Ue,kt,"\u2662","\\diamondsuit",!0),re(le,Ue,kt,"\u211C","\\Re",!0),re(le,Ue,kt,"\u2661","\\heartsuit",!0),re(le,Ue,kt,"\u2111","\\Im",!0),re(le,Ue,kt,"\u2660","\\spadesuit",!0),re(rr,Ue,kt,"\xA7","\\S",!0),re(rr,Ue,kt,"\xB6","\\P",!0),re(le,Ue,kt,"\u2020","\\dag"),re(rr,Ue,kt,"\u2020","\\dag"),re(rr,Ue,kt,"\u2020","\\textdagger"),re(le,Ue,kt,"\u2021","\\ddag"),re(rr,Ue,kt,"\u2021","\\ddag"),re(rr,Ue,kt,"\u2021","\\textdaggerdbl"),re(le,Ue,Vt,"\u23B1","\\rmoustache",!0),re(le,Ue,dt,"\u23B0","\\lmoustache",!0),re(le,Ue,Vt,"\u27EF","\\rgroup",!0),re(le,Ue,dt,"\u27EE","\\lgroup",!0),re(le,Ue,St,"\u2213","\\mp",!0),re(le,Ue,St,"\u2296","\\ominus",!0),re(le,Ue,St,"\u228E","\\uplus",!0),re(le,Ue,St,"\u2293","\\sqcap",!0),re(le,Ue,St,"\u2217","\\ast"),re(le,Ue,St,"\u2294","\\sqcup",!0),re(le,Ue,St,"\u25EF","\\bigcirc"),re(le,Ue,St,"\u2219","\\bullet"),re(le,Ue,St,"\u2021","\\ddagger"),re(le,Ue,St,"\u2240","\\wr",!0),re(le,Ue,St,"\u2A3F","\\amalg"),re(le,Ue,St,"&","\\And"),re(le,Ue,Re,"\u27F5","\\longleftarrow",!0),re(le,Ue,Re,"\u21D0","\\Leftarrow",!0),re(le,Ue,Re,"\u27F8","\\Longleftarrow",!0),re(le,Ue,Re,"\u27F6","\\longrightarrow",!0),re(le,Ue,Re,"\u21D2","\\Rightarrow",!0),re(le,Ue,Re,"\u27F9","\\Longrightarrow",!0),re(le,Ue,Re,"\u2194","\\leftrightarrow",!0),re(le,Ue,Re,"\u27F7","\\longleftrightarrow",!0),re(le,Ue,Re,"\u21D4","\\Leftrightarrow",!0),re(le,Ue,Re,"\u27FA","\\Longleftrightarrow",!0),re(le,Ue,Re,"\u21A6","\\mapsto",!0),re(le,Ue,Re,"\u27FC","\\longmapsto",!0),re(le,Ue,Re,"\u2197","\\nearrow",!0),re(le,Ue,Re,"\u21A9","\\hookleftarrow",!0),re(le,Ue,Re,"\u21AA","\\hookrightarrow",!0),re(le,Ue,Re,"\u2198","\\searrow",!0),re(le,Ue,Re,"\u21BC","\\leftharpoonup",!0),re(le,Ue,Re,"\u21C0","\\rightharpoonup",!0),re(le,Ue,Re,"\u2199","\\swarrow",!0),re(le,Ue,Re,"\u21BD","\\leftharpoondown",!0),re(le,Ue,Re,"\u21C1","\\rightharpoondown",!0),re(le,Ue,Re,"\u2196","\\nwarrow",!0),re(le,Ue,Re,"\u21CC","\\rightleftharpoons",!0),re(le,ot,Re,"\u226E","\\nless",!0),re(le,ot,Re,"\uE010","\\@nleqslant"),re(le,ot,Re,"\uE011","\\@nleqq"),re(le,ot,Re,"\u2A87","\\lneq",!0),re(le,ot,Re,"\u2268","\\lneqq",!0),re(le,ot,Re,"\uE00C","\\@lvertneqq"),re(le,ot,Re,"\u22E6","\\lnsim",!0),re(le,ot,Re,"\u2A89","\\lnapprox",!0),re(le,ot,Re,"\u2280","\\nprec",!0),re(le,ot,Re,"\u22E0","\\npreceq",!0),re(le,ot,Re,"\u22E8","\\precnsim",!0),re(le,ot,Re,"\u2AB9","\\precnapprox",!0),re(le,ot,Re,"\u2241","\\nsim",!0),re(le,ot,Re,"\uE006","\\@nshortmid"),re(le,ot,Re,"\u2224","\\nmid",!0),re(le,ot,Re,"\u22AC","\\nvdash",!0),re(le,ot,Re,"\u22AD","\\nvDash",!0),re(le,ot,Re,"\u22EA","\\ntriangleleft"),re(le,ot,Re,"\u22EC","\\ntrianglelefteq",!0),re(le,ot,Re,"\u228A","\\subsetneq",!0),re(le,ot,Re,"\uE01A","\\@varsubsetneq"),re(le,ot,Re,"\u2ACB","\\subsetneqq",!0),re(le,ot,Re,"\uE017","\\@varsubsetneqq"),re(le,ot,Re,"\u226F","\\ngtr",!0),re(le,ot,Re,"\uE00F","\\@ngeqslant"),re(le,ot,Re,"\uE00E","\\@ngeqq"),re(le,ot,Re,"\u2A88","\\gneq",!0),re(le,ot,Re,"\u2269","\\gneqq",!0),re(le,ot,Re,"\uE00D","\\@gvertneqq"),re(le,ot,Re,"\u22E7","\\gnsim",!0),re(le,ot,Re,"\u2A8A","\\gnapprox",!0),re(le,ot,Re,"\u2281","\\nsucc",!0),re(le,ot,Re,"\u22E1","\\nsucceq",!0),re(le,ot,Re,"\u22E9","\\succnsim",!0),re(le,ot,Re,"\u2ABA","\\succnapprox",!0),re(le,ot,Re,"\u2246","\\ncong",!0),re(le,ot,Re,"\uE007","\\@nshortparallel"),re(le,ot,Re,"\u2226","\\nparallel",!0),re(le,ot,Re,"\u22AF","\\nVDash",!0),re(le,ot,Re,"\u22EB","\\ntriangleright"),re(le,ot,Re,"\u22ED","\\ntrianglerighteq",!0),re(le,ot,Re,"\uE018","\\@nsupseteqq"),re(le,ot,Re,"\u228B","\\supsetneq",!0),re(le,ot,Re,"\uE01B","\\@varsupsetneq"),re(le,ot,Re,"\u2ACC","\\supsetneqq",!0),re(le,ot,Re,"\uE019","\\@varsupsetneqq"),re(le,ot,Re,"\u22AE","\\nVdash",!0),re(le,ot,Re,"\u2AB5","\\precneqq",!0),re(le,ot,Re,"\u2AB6","\\succneqq",!0),re(le,ot,Re,"\uE016","\\@nsubseteqq"),re(le,ot,St,"\u22B4","\\unlhd"),re(le,ot,St,"\u22B5","\\unrhd"),re(le,ot,Re,"\u219A","\\nleftarrow",!0),re(le,ot,Re,"\u219B","\\nrightarrow",!0),re(le,ot,Re,"\u21CD","\\nLeftarrow",!0),re(le,ot,Re,"\u21CF","\\nRightarrow",!0),re(le,ot,Re,"\u21AE","\\nleftrightarrow",!0),re(le,ot,Re,"\u21CE","\\nLeftrightarrow",!0),re(le,ot,Re,"\u25B3","\\vartriangle"),re(le,ot,kt,"\u210F","\\hslash"),re(le,ot,kt,"\u25BD","\\triangledown"),re(le,ot,kt,"\u25CA","\\lozenge"),re(le,ot,kt,"\u24C8","\\circledS"),re(le,ot,kt,"\xAE","\\circledR"),re(rr,ot,kt,"\xAE","\\circledR"),re(le,ot,kt,"\u2221","\\measuredangle",!0),re(le,ot,kt,"\u2204","\\nexists"),re(le,ot,kt,"\u2127","\\mho"),re(le,ot,kt,"\u2132","\\Finv",!0),re(le,ot,kt,"\u2141","\\Game",!0),re(le,ot,kt,"\u2035","\\backprime"),re(le,ot,kt,"\u25B2","\\blacktriangle"),re(le,ot,kt,"\u25BC","\\blacktriangledown"),re(le,ot,kt,"\u25A0","\\blacksquare"),re(le,ot,kt,"\u29EB","\\blacklozenge"),re(le,ot,kt,"\u2605","\\bigstar"),re(le,ot,kt,"\u2222","\\sphericalangle",!0),re(le,ot,kt,"\u2201","\\complement",!0),re(le,ot,kt,"\xF0","\\eth",!0),re(le,ot,kt,"\u2571","\\diagup"),re(le,ot,kt,"\u2572","\\diagdown"),re(le,ot,kt,"\u25A1","\\square"),re(le,ot,kt,"\u25A1","\\Box"),re(le,ot,kt,"\u25CA","\\Diamond"),re(le,ot,kt,"\xA5","\\yen",!0),re(rr,ot,kt,"\xA5","\\yen",!0),re(le,ot,kt,"\u2713","\\checkmark",!0),re(rr,ot,kt,"\u2713","\\checkmark"),re(le,ot,kt,"\u2136","\\beth",!0),re(le,ot,kt,"\u2138","\\daleth",!0),re(le,ot,kt,"\u2137","\\gimel",!0),re(le,ot,kt,"\u03DD","\\digamma",!0),re(le,ot,kt,"\u03F0","\\varkappa"),re(le,ot,dt,"\u250C","\\ulcorner",!0),re(le,ot,Vt,"\u2510","\\urcorner",!0),re(le,ot,dt,"\u2514","\\llcorner",!0),re(le,ot,Vt,"\u2518","\\lrcorner",!0),re(le,ot,Re,"\u2266","\\leqq",!0),re(le,ot,Re,"\u2A7D","\\leqslant",!0),re(le,ot,Re,"\u2A95","\\eqslantless",!0),re(le,ot,Re,"\u2272","\\lesssim",!0),re(le,ot,Re,"\u2A85","\\lessapprox",!0),re(le,ot,Re,"\u224A","\\approxeq",!0),re(le,ot,St,"\u22D6","\\lessdot"),re(le,ot,Re,"\u22D8","\\lll",!0),re(le,ot,Re,"\u2276","\\lessgtr",!0),re(le,ot,Re,"\u22DA","\\lesseqgtr",!0),re(le,ot,Re,"\u2A8B","\\lesseqqgtr",!0),re(le,ot,Re,"\u2251","\\doteqdot"),re(le,ot,Re,"\u2253","\\risingdotseq",!0),re(le,ot,Re,"\u2252","\\fallingdotseq",!0),re(le,ot,Re,"\u223D","\\backsim",!0),re(le,ot,Re,"\u22CD","\\backsimeq",!0),re(le,ot,Re,"\u2AC5","\\subseteqq",!0),re(le,ot,Re,"\u22D0","\\Subset",!0),re(le,ot,Re,"\u228F","\\sqsubset",!0),re(le,ot,Re,"\u227C","\\preccurlyeq",!0),re(le,ot,Re,"\u22DE","\\curlyeqprec",!0),re(le,ot,Re,"\u227E","\\precsim",!0),re(le,ot,Re,"\u2AB7","\\precapprox",!0),re(le,ot,Re,"\u22B2","\\vartriangleleft"),re(le,ot,Re,"\u22B4","\\trianglelefteq"),re(le,ot,Re,"\u22A8","\\vDash",!0),re(le,ot,Re,"\u22AA","\\Vvdash",!0),re(le,ot,Re,"\u2323","\\smallsmile"),re(le,ot,Re,"\u2322","\\smallfrown"),re(le,ot,Re,"\u224F","\\bumpeq",!0),re(le,ot,Re,"\u224E","\\Bumpeq",!0),re(le,ot,Re,"\u2267","\\geqq",!0),re(le,ot,Re,"\u2A7E","\\geqslant",!0),re(le,ot,Re,"\u2A96","\\eqslantgtr",!0),re(le,ot,Re,"\u2273","\\gtrsim",!0),re(le,ot,Re,"\u2A86","\\gtrapprox",!0),re(le,ot,St,"\u22D7","\\gtrdot"),re(le,ot,Re,"\u22D9","\\ggg",!0),re(le,ot,Re,"\u2277","\\gtrless",!0),re(le,ot,Re,"\u22DB","\\gtreqless",!0),re(le,ot,Re,"\u2A8C","\\gtreqqless",!0),re(le,ot,Re,"\u2256","\\eqcirc",!0),re(le,ot,Re,"\u2257","\\circeq",!0),re(le,ot,Re,"\u225C","\\triangleq",!0),re(le,ot,Re,"\u223C","\\thicksim"),re(le,ot,Re,"\u2248","\\thickapprox"),re(le,ot,Re,"\u2AC6","\\supseteqq",!0),re(le,ot,Re,"\u22D1","\\Supset",!0),re(le,ot,Re,"\u2290","\\sqsupset",!0),re(le,ot,Re,"\u227D","\\succcurlyeq",!0),re(le,ot,Re,"\u22DF","\\curlyeqsucc",!0),re(le,ot,Re,"\u227F","\\succsim",!0),re(le,ot,Re,"\u2AB8","\\succapprox",!0),re(le,ot,Re,"\u22B3","\\vartriangleright"),re(le,ot,Re,"\u22B5","\\trianglerighteq"),re(le,ot,Re,"\u22A9","\\Vdash",!0),re(le,ot,Re,"\u2223","\\shortmid"),re(le,ot,Re,"\u2225","\\shortparallel"),re(le,ot,Re,"\u226C","\\between",!0),re(le,ot,Re,"\u22D4","\\pitchfork",!0),re(le,ot,Re,"\u221D","\\varpropto"),re(le,ot,Re,"\u25C0","\\blacktriangleleft"),re(le,ot,Re,"\u2234","\\therefore",!0),re(le,ot,Re,"\u220D","\\backepsilon"),re(le,ot,Re,"\u25B6","\\blacktriangleright"),re(le,ot,Re,"\u2235","\\because",!0),re(le,ot,Re,"\u22D8","\\llless"),re(le,ot,Re,"\u22D9","\\gggtr"),re(le,ot,St,"\u22B2","\\lhd"),re(le,ot,St,"\u22B3","\\rhd"),re(le,ot,Re,"\u2242","\\eqsim",!0),re(le,Ue,Re,"\u22C8","\\Join"),re(le,ot,Re,"\u2251","\\Doteq",!0),re(le,ot,St,"\u2214","\\dotplus",!0),re(le,ot,St,"\u2216","\\smallsetminus"),re(le,ot,St,"\u22D2","\\Cap",!0),re(le,ot,St,"\u22D3","\\Cup",!0),re(le,ot,St,"\u2A5E","\\doublebarwedge",!0),re(le,ot,St,"\u229F","\\boxminus",!0),re(le,ot,St,"\u229E","\\boxplus",!0),re(le,ot,St,"\u22C7","\\divideontimes",!0),re(le,ot,St,"\u22C9","\\ltimes",!0),re(le,ot,St,"\u22CA","\\rtimes",!0),re(le,ot,St,"\u22CB","\\leftthreetimes",!0),re(le,ot,St,"\u22CC","\\rightthreetimes",!0),re(le,ot,St,"\u22CF","\\curlywedge",!0),re(le,ot,St,"\u22CE","\\curlyvee",!0),re(le,ot,St,"\u229D","\\circleddash",!0),re(le,ot,St,"\u229B","\\circledast",!0),re(le,ot,St,"\u22C5","\\centerdot"),re(le,ot,St,"\u22BA","\\intercal",!0),re(le,ot,St,"\u22D2","\\doublecap"),re(le,ot,St,"\u22D3","\\doublecup"),re(le,ot,St,"\u22A0","\\boxtimes",!0),re(le,ot,Re,"\u21E2","\\dashrightarrow",!0),re(le,ot,Re,"\u21E0","\\dashleftarrow",!0),re(le,ot,Re,"\u21C7","\\leftleftarrows",!0),re(le,ot,Re,"\u21C6","\\leftrightarrows",!0),re(le,ot,Re,"\u21DA","\\Lleftarrow",!0),re(le,ot,Re,"\u219E","\\twoheadleftarrow",!0),re(le,ot,Re,"\u21A2","\\leftarrowtail",!0),re(le,ot,Re,"\u21AB","\\looparrowleft",!0),re(le,ot,Re,"\u21CB","\\leftrightharpoons",!0),re(le,ot,Re,"\u21B6","\\curvearrowleft",!0),re(le,ot,Re,"\u21BA","\\circlearrowleft",!0),re(le,ot,Re,"\u21B0","\\Lsh",!0),re(le,ot,Re,"\u21C8","\\upuparrows",!0),re(le,ot,Re,"\u21BF","\\upharpoonleft",!0),re(le,ot,Re,"\u21C3","\\downharpoonleft",!0),re(le,ot,Re,"\u22B8","\\multimap",!0),re(le,ot,Re,"\u21AD","\\leftrightsquigarrow",!0),re(le,ot,Re,"\u21C9","\\rightrightarrows",!0),re(le,ot,Re,"\u21C4","\\rightleftarrows",!0),re(le,ot,Re,"\u21A0","\\twoheadrightarrow",!0),re(le,ot,Re,"\u21A3","\\rightarrowtail",!0),re(le,ot,Re,"\u21AC","\\looparrowright",!0),re(le,ot,Re,"\u21B7","\\curvearrowright",!0),re(le,ot,Re,"\u21BB","\\circlearrowright",!0),re(le,ot,Re,"\u21B1","\\Rsh",!0),re(le,ot,Re,"\u21CA","\\downdownarrows",!0),re(le,ot,Re,"\u21BE","\\upharpoonright",!0),re(le,ot,Re,"\u21C2","\\downharpoonright",!0),re(le,ot,Re,"\u21DD","\\rightsquigarrow",!0),re(le,ot,Re,"\u21DD","\\leadsto"),re(le,ot,Re,"\u21DB","\\Rrightarrow",!0),re(le,ot,Re,"\u21BE","\\restriction"),re(le,Ue,kt,"\u2018","`"),re(le,Ue,kt,"$","\\$"),re(rr,Ue,kt,"$","\\$"),re(rr,Ue,kt,"$","\\textdollar"),re(le,Ue,kt,"%","\\%"),re(rr,Ue,kt,"%","\\%"),re(le,Ue,kt,"_","\\_"),re(rr,Ue,kt,"_","\\_"),re(rr,Ue,kt,"_","\\textunderscore"),re(le,Ue,kt,"\u2220","\\angle",!0),re(le,Ue,kt,"\u221E","\\infty",!0),re(le,Ue,kt,"\u2032","\\prime"),re(le,Ue,kt,"\u25B3","\\triangle"),re(le,Ue,kt,"\u0393","\\Gamma",!0),re(le,Ue,kt,"\u0394","\\Delta",!0),re(le,Ue,kt,"\u0398","\\Theta",!0),re(le,Ue,kt,"\u039B","\\Lambda",!0),re(le,Ue,kt,"\u039E","\\Xi",!0),re(le,Ue,kt,"\u03A0","\\Pi",!0),re(le,Ue,kt,"\u03A3","\\Sigma",!0),re(le,Ue,kt,"\u03A5","\\Upsilon",!0),re(le,Ue,kt,"\u03A6","\\Phi",!0),re(le,Ue,kt,"\u03A8","\\Psi",!0),re(le,Ue,kt,"\u03A9","\\Omega",!0),re(le,Ue,kt,"A","\u0391"),re(le,Ue,kt,"B","\u0392"),re(le,Ue,kt,"E","\u0395"),re(le,Ue,kt,"Z","\u0396"),re(le,Ue,kt,"H","\u0397"),re(le,Ue,kt,"I","\u0399"),re(le,Ue,kt,"K","\u039A"),re(le,Ue,kt,"M","\u039C"),re(le,Ue,kt,"N","\u039D"),re(le,Ue,kt,"O","\u039F"),re(le,Ue,kt,"P","\u03A1"),re(le,Ue,kt,"T","\u03A4"),re(le,Ue,kt,"X","\u03A7"),re(le,Ue,kt,"\xAC","\\neg",!0),re(le,Ue,kt,"\xAC","\\lnot"),re(le,Ue,kt,"\u22A4","\\top"),re(le,Ue,kt,"\u22A5","\\bot"),re(le,Ue,kt,"\u2205","\\emptyset"),re(le,ot,kt,"\u2205","\\varnothing"),re(le,Ue,nt,"\u03B1","\\alpha",!0),re(le,Ue,nt,"\u03B2","\\beta",!0),re(le,Ue,nt,"\u03B3","\\gamma",!0),re(le,Ue,nt,"\u03B4","\\delta",!0),re(le,Ue,nt,"\u03F5","\\epsilon",!0),re(le,Ue,nt,"\u03B6","\\zeta",!0),re(le,Ue,nt,"\u03B7","\\eta",!0),re(le,Ue,nt,"\u03B8","\\theta",!0),re(le,Ue,nt,"\u03B9","\\iota",!0),re(le,Ue,nt,"\u03BA","\\kappa",!0),re(le,Ue,nt,"\u03BB","\\lambda",!0),re(le,Ue,nt,"\u03BC","\\mu",!0),re(le,Ue,nt,"\u03BD","\\nu",!0),re(le,Ue,nt,"\u03BE","\\xi",!0),re(le,Ue,nt,"\u03BF","\\omicron",!0),re(le,Ue,nt,"\u03C0","\\pi",!0),re(le,Ue,nt,"\u03C1","\\rho",!0),re(le,Ue,nt,"\u03C3","\\sigma",!0),re(le,Ue,nt,"\u03C4","\\tau",!0),re(le,Ue,nt,"\u03C5","\\upsilon",!0),re(le,Ue,nt,"\u03D5","\\phi",!0),re(le,Ue,nt,"\u03C7","\\chi",!0),re(le,Ue,nt,"\u03C8","\\psi",!0),re(le,Ue,nt,"\u03C9","\\omega",!0),re(le,Ue,nt,"\u03B5","\\varepsilon",!0),re(le,Ue,nt,"\u03D1","\\vartheta",!0),re(le,Ue,nt,"\u03D6","\\varpi",!0),re(le,Ue,nt,"\u03F1","\\varrho",!0),re(le,Ue,nt,"\u03C2","\\varsigma",!0),re(le,Ue,nt,"\u03C6","\\varphi",!0),re(le,Ue,St,"\u2217","*"),re(le,Ue,St,"+","+"),re(le,Ue,St,"\u2212","-"),re(le,Ue,St,"\u22C5","\\cdot",!0),re(le,Ue,St,"\u2218","\\circ"),re(le,Ue,St,"\xF7","\\div",!0),re(le,Ue,St,"\xB1","\\pm",!0),re(le,Ue,St,"\xD7","\\times",!0),re(le,Ue,St,"\u2229","\\cap",!0),re(le,Ue,St,"\u222A","\\cup",!0),re(le,Ue,St,"\u2216","\\setminus"),re(le,Ue,St,"\u2227","\\land"),re(le,Ue,St,"\u2228","\\lor"),re(le,Ue,St,"\u2227","\\wedge",!0),re(le,Ue,St,"\u2228","\\vee",!0),re(le,Ue,kt,"\u221A","\\surd"),re(le,Ue,dt,"(","("),re(le,Ue,dt,"[","["),re(le,Ue,dt,"\u27E8","\\langle",!0),re(le,Ue,dt,"\u2223","\\lvert"),re(le,Ue,dt,"\u2225","\\lVert"),re(le,Ue,Vt,")",")"),re(le,Ue,Vt,"]","]"),re(le,Ue,Vt,"?","?"),re(le,Ue,Vt,"!","!"),re(le,Ue,Vt,"\u27E9","\\rangle",!0),re(le,Ue,Vt,"\u2223","\\rvert"),re(le,Ue,Vt,"\u2225","\\rVert"),re(le,Ue,Re,"=","="),re(le,Ue,Re,"<","<"),re(le,Ue,Re,">",">"),re(le,Ue,Re,":",":"),re(le,Ue,Re,"\u2248","\\approx",!0),re(le,Ue,Re,"\u2245","\\cong",!0),re(le,Ue,Re,"\u2265","\\ge"),re(le,Ue,Re,"\u2265","\\geq",!0),re(le,Ue,Re,"\u2190","\\gets"),re(le,Ue,Re,">","\\gt"),re(le,Ue,Re,"\u2208","\\in",!0),re(le,Ue,Re,"\uE020","\\@not"),re(le,Ue,Re,"\u2282","\\subset",!0),re(le,Ue,Re,"\u2283","\\supset",!0),re(le,Ue,Re,"\u2286","\\subseteq",!0),re(le,Ue,Re,"\u2287","\\supseteq",!0),re(le,ot,Re,"\u2288","\\nsubseteq",!0),re(le,ot,Re,"\u2289","\\nsupseteq",!0),re(le,Ue,Re,"\u22A8","\\models"),re(le,Ue,Re,"\u2190","\\leftarrow",!0),re(le,Ue,Re,"\u2264","\\le"),re(le,Ue,Re,"\u2264","\\leq",!0),re(le,Ue,Re,"<","\\lt"),re(le,Ue,Re,"\u2192","\\rightarrow",!0),re(le,Ue,Re,"\u2192","\\to"),re(le,ot,Re,"\u2271","\\ngeq",!0),re(le,ot,Re,"\u2270","\\nleq",!0),re(le,Ue,fn,"\xA0","\\ "),re(le,Ue,fn,"\xA0","~"),re(le,Ue,fn,"\xA0","\\space"),re(le,Ue,fn,"\xA0","\\nobreakspace"),re(rr,Ue,fn,"\xA0","\\ "),re(rr,Ue,fn,"\xA0","~"),re(rr,Ue,fn,"\xA0","\\space"),re(rr,Ue,fn,"\xA0","\\nobreakspace"),re(le,Ue,fn,null,"\\nobreak"),re(le,Ue,fn,null,"\\allowbreak"),re(le,Ue,Xt,",",","),re(le,Ue,Xt,";",";"),re(le,ot,St,"\u22BC","\\barwedge",!0),re(le,ot,St,"\u22BB","\\veebar",!0),re(le,Ue,St,"\u2299","\\odot",!0),re(le,Ue,St,"\u2295","\\oplus",!0),re(le,Ue,St,"\u2297","\\otimes",!0),re(le,Ue,kt,"\u2202","\\partial",!0),re(le,Ue,St,"\u2298","\\oslash",!0),re(le,ot,St,"\u229A","\\circledcirc",!0),re(le,ot,St,"\u22A1","\\boxdot",!0),re(le,Ue,St,"\u25B3","\\bigtriangleup"),re(le,Ue,St,"\u25BD","\\bigtriangledown"),re(le,Ue,St,"\u2020","\\dagger"),re(le,Ue,St,"\u22C4","\\diamond"),re(le,Ue,St,"\u22C6","\\star"),re(le,Ue,St,"\u25C3","\\triangleleft"),re(le,Ue,St,"\u25B9","\\triangleright"),re(le,Ue,dt,"{","\\{"),re(rr,Ue,kt,"{","\\{"),re(rr,Ue,kt,"{","\\textbraceleft"),re(le,Ue,Vt,"}","\\}"),re(rr,Ue,kt,"}","\\}"),re(rr,Ue,kt,"}","\\textbraceright"),re(le,Ue,dt,"{","\\lbrace"),re(le,Ue,Vt,"}","\\rbrace"),re(le,Ue,dt,"[","\\lbrack"),re(rr,Ue,kt,"[","\\lbrack"),re(le,Ue,Vt,"]","\\rbrack"),re(rr,Ue,kt,"]","\\rbrack"),re(le,Ue,dt,"(","\\lparen"),re(le,Ue,Vt,")","\\rparen"),re(rr,Ue,kt,"<","\\textless"),re(rr,Ue,kt,">","\\textgreater"),re(le,Ue,dt,"\u230A","\\lfloor",!0),re(le,Ue,Vt,"\u230B","\\rfloor",!0),re(le,Ue,dt,"\u2308","\\lceil",!0),re(le,Ue,Vt,"\u2309","\\rceil",!0),re(le,Ue,kt,"\\","\\backslash"),re(le,Ue,kt,"\u2223","|"),re(le,Ue,kt,"\u2223","\\vert"),re(rr,Ue,kt,"|","\\textbar"),re(le,Ue,kt,"\u2225","\\|"),re(le,Ue,kt,"\u2225","\\Vert"),re(rr,Ue,kt,"\u2225","\\textbardbl"),re(rr,Ue,kt,"~","\\textasciitilde"),re(rr,Ue,kt,"\\","\\textbackslash"),re(rr,Ue,kt,"^","\\textasciicircum"),re(le,Ue,Re,"\u2191","\\uparrow",!0),re(le,Ue,Re,"\u21D1","\\Uparrow",!0),re(le,Ue,Re,"\u2193","\\downarrow",!0),re(le,Ue,Re,"\u21D3","\\Downarrow",!0),re(le,Ue,Re,"\u2195","\\updownarrow",!0),re(le,Ue,Re,"\u21D5","\\Updownarrow",!0),re(le,Ue,ct,"\u2210","\\coprod"),re(le,Ue,ct,"\u22C1","\\bigvee"),re(le,Ue,ct,"\u22C0","\\bigwedge"),re(le,Ue,ct,"\u2A04","\\biguplus"),re(le,Ue,ct,"\u22C2","\\bigcap"),re(le,Ue,ct,"\u22C3","\\bigcup"),re(le,Ue,ct,"\u222B","\\int"),re(le,Ue,ct,"\u222B","\\intop"),re(le,Ue,ct,"\u222C","\\iint"),re(le,Ue,ct,"\u222D","\\iiint"),re(le,Ue,ct,"\u220F","\\prod"),re(le,Ue,ct,"\u2211","\\sum"),re(le,Ue,ct,"\u2A02","\\bigotimes"),re(le,Ue,ct,"\u2A01","\\bigoplus"),re(le,Ue,ct,"\u2A00","\\bigodot"),re(le,Ue,ct,"\u222E","\\oint"),re(le,Ue,ct,"\u222F","\\oiint"),re(le,Ue,ct,"\u2230","\\oiiint"),re(le,Ue,ct,"\u2A06","\\bigsqcup"),re(le,Ue,ct,"\u222B","\\smallint"),re(rr,Ue,Zt,"\u2026","\\textellipsis"),re(le,Ue,Zt,"\u2026","\\mathellipsis"),re(rr,Ue,Zt,"\u2026","\\ldots",!0),re(le,Ue,Zt,"\u2026","\\ldots",!0),re(le,Ue,Zt,"\u22EF","\\@cdots",!0),re(le,Ue,Zt,"\u22F1","\\ddots",!0),re(le,Ue,kt,"\u22EE","\\varvdots"),re(le,Ue,Yr,"\u02CA","\\acute"),re(le,Ue,Yr,"\u02CB","\\grave"),re(le,Ue,Yr,"\xA8","\\ddot"),re(le,Ue,Yr,"~","\\tilde"),re(le,Ue,Yr,"\u02C9","\\bar"),re(le,Ue,Yr,"\u02D8","\\breve"),re(le,Ue,Yr,"\u02C7","\\check"),re(le,Ue,Yr,"^","\\hat"),re(le,Ue,Yr,"\u20D7","\\vec"),re(le,Ue,Yr,"\u02D9","\\dot"),re(le,Ue,Yr,"\u02DA","\\mathring"),re(le,Ue,nt,"\u0131","\\imath",!0),re(le,Ue,nt,"\u0237","\\jmath",!0),re(rr,Ue,kt,"\u0131","\\i",!0),re(rr,Ue,kt,"\u0237","\\j",!0),re(rr,Ue,kt,"\xDF","\\ss",!0),re(rr,Ue,kt,"\xE6","\\ae",!0),re(rr,Ue,kt,"\xE6","\\ae",!0),re(rr,Ue,kt,"\u0153","\\oe",!0),re(rr,Ue,kt,"\xF8","\\o",!0),re(rr,Ue,kt,"\xC6","\\AE",!0),re(rr,Ue,kt,"\u0152","\\OE",!0),re(rr,Ue,kt,"\xD8","\\O",!0),re(rr,Ue,Yr,"\u02CA","\\'"),re(rr,Ue,Yr,"\u02CB","\\`"),re(rr,Ue,Yr,"\u02C6","\\^"),re(rr,Ue,Yr,"\u02DC","\\~"),re(rr,Ue,Yr,"\u02C9","\\="),re(rr,Ue,Yr,"\u02D8","\\u"),re(rr,Ue,Yr,"\u02D9","\\."),re(rr,Ue,Yr,"\u02DA","\\r"),re(rr,Ue,Yr,"\u02C7","\\v"),re(rr,Ue,Yr,"\xA8",'\\"'),re(rr,Ue,Yr,"\u02DD","\\H"),re(rr,Ue,Yr,"\u25EF","\\textcircled");var Nn={"--":!0,"---":!0,"``":!0,"''":!0};re(rr,Ue,kt,"\u2013","--"),re(rr,Ue,kt,"\u2013","\\textendash"),re(rr,Ue,kt,"\u2014","---"),re(rr,Ue,kt,"\u2014","\\textemdash"),re(rr,Ue,kt,"\u2018","`"),re(rr,Ue,kt,"\u2018","\\textquoteleft"),re(rr,Ue,kt,"\u2019","'"),re(rr,Ue,kt,"\u2019","\\textquoteright"),re(rr,Ue,kt,"\u201C","``"),re(rr,Ue,kt,"\u201C","\\textquotedblleft"),re(rr,Ue,kt,"\u201D","''"),re(rr,Ue,kt,"\u201D","\\textquotedblright"),re(le,Ue,kt,"\xB0","\\degree",!0),re(rr,Ue,kt,"\xB0","\\degree"),re(rr,Ue,kt,"\xB0","\\textdegree",!0),re(le,Ue,nt,"\xA3","\\pounds"),re(le,Ue,nt,"\xA3","\\mathsterling",!0),re(rr,Ue,nt,"\xA3","\\pounds"),re(rr,Ue,nt,"\xA3","\\textsterling",!0),re(le,ot,kt,"\u2720","\\maltese"),re(rr,ot,kt,"\u2720","\\maltese"),re(rr,Ue,fn,"\xA0","\\ "),re(rr,Ue,fn,"\xA0"," "),re(rr,Ue,fn,"\xA0","~");for(var Jn='0123456789/@."',vi=0;vi<Jn.length;vi++){var Fi=Jn.charAt(vi);re(le,Ue,kt,Fi,Fi)}for(var Mn='0123456789!@*()-=+[]<>|";:?/.,',Hn=0;Hn<Mn.length;Hn++){var Yt=Mn.charAt(Hn);re(rr,Ue,kt,Yt,Yt)}for(var kr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",tn=0;tn<kr.length;tn++){var Nt=kr.charAt(tn);re(le,Ue,nt,Nt,Nt),re(rr,Ue,kt,Nt,Nt)}re(le,ot,kt,"C","\u2102"),re(rr,ot,kt,"C","\u2102"),re(le,ot,kt,"H","\u210D"),re(rr,ot,kt,"H","\u210D"),re(le,ot,kt,"N","\u2115"),re(rr,ot,kt,"N","\u2115"),re(le,ot,kt,"P","\u2119"),re(rr,ot,kt,"P","\u2119"),re(le,ot,kt,"Q","\u211A"),re(rr,ot,kt,"Q","\u211A"),re(le,ot,kt,"R","\u211D"),re(rr,ot,kt,"R","\u211D"),re(le,ot,kt,"Z","\u2124"),re(rr,ot,kt,"Z","\u2124"),re(le,Ue,nt,"h","\u210E"),re(rr,Ue,nt,"h","\u210E");for(var _t="",Ir=0;Ir<kr.length;Ir++){var Dr=kr.charAt(Ir);_t=String.fromCharCode(55349,56320+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t),_t=String.fromCharCode(55349,56372+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t),_t=String.fromCharCode(55349,56424+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t),_t=String.fromCharCode(55349,56580+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t),_t=String.fromCharCode(55349,56736+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t),_t=String.fromCharCode(55349,56788+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t),_t=String.fromCharCode(55349,56840+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t),_t=String.fromCharCode(55349,56944+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t),Ir<26&&(_t=String.fromCharCode(55349,56632+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t),_t=String.fromCharCode(55349,56476+Ir),re(le,Ue,nt,Dr,_t),re(rr,Ue,kt,Dr,_t))}_t="\u{1D55C}",re(le,Ue,nt,"k",_t),re(rr,Ue,kt,"k",_t);for(var In=0;In<10;In++){var qr=In.toString();_t=String.fromCharCode(55349,57294+In),re(le,Ue,nt,qr,_t),re(rr,Ue,kt,qr,_t),_t=String.fromCharCode(55349,57314+In),re(le,Ue,nt,qr,_t),re(rr,Ue,kt,qr,_t),_t=String.fromCharCode(55349,57324+In),re(le,Ue,nt,qr,_t),re(rr,Ue,kt,qr,_t),_t=String.fromCharCode(55349,57334+In),re(le,Ue,nt,qr,_t),re(rr,Ue,kt,qr,_t)}for(var Sn="\xC7\xD0\xDE\xE7\xFE",hn=0;hn<Sn.length;hn++){var $n=Sn.charAt(hn);re(le,Ue,nt,$n,$n),re(rr,Ue,kt,$n,$n)}re(rr,Ue,kt,"\xF0","\xF0"),re(rr,Ue,kt,"\u2013","\u2013"),re(rr,Ue,kt,"\u2014","\u2014"),re(rr,Ue,kt,"\u2018","\u2018"),re(rr,Ue,kt,"\u2019","\u2019"),re(rr,Ue,kt,"\u201C","\u201C"),re(rr,Ue,kt,"\u201D","\u201D");var ri=[["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"]],Hr=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],zr=function(c,w){var C=c.charCodeAt(0),$=c.charCodeAt(1),Be=(C-55296)*1024+($-56320)+65536,je=w==="math"?0:1;if(119808<=Be&&Be<120484){var xt=Math.floor((Be-119808)/26);return[ri[xt][2],ri[xt][je]]}else if(120782<=Be&&Be<=120831){var bt=Math.floor((Be-120782)/10);return[Hr[bt][2],Hr[bt][je]]}else{if(Be===120485||Be===120486)return[ri[0][2],ri[0][je]];if(120486<Be&&Be<120782)return["",""];throw new Y("Unsupported character: "+c)}},Tn=[[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]],Bn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Qn=function(c,w){return w.size<2?c:Tn[c-1][w.size-1]},Xn=function(){function He(w){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=w.style,this.color=w.color,this.size=w.size||He.BASESIZE,this.textSize=w.textSize||this.size,this.phantom=!!w.phantom,this.font=w.font||"",this.fontFamily=w.fontFamily||"",this.fontWeight=w.fontWeight||"",this.fontShape=w.fontShape||"",this.sizeMultiplier=Bn[this.size-1],this.maxSize=w.maxSize,this.minRuleThickness=w.minRuleThickness,this._fontMetrics=void 0}var c=He.prototype;return c.extend=function(C){var $={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 Be in C)C.hasOwnProperty(Be)&&($[Be]=C[Be]);return new He($)},c.havingStyle=function(C){return this.style===C?this:this.extend({style:C,size:Qn(this.textSize,C)})},c.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},c.havingSize=function(C){return this.size===C&&this.textSize===C?this:this.extend({style:this.style.text(),size:C,textSize:C,sizeMultiplier:Bn[C-1]})},c.havingBaseStyle=function(C){C=C||this.style.text();var $=Qn(He.BASESIZE,C);return this.size===$&&this.textSize===He.BASESIZE&&this.style===C?this:this.extend({style:C,size:$})},c.havingBaseSizing=function(){var C;switch(this.style.id){case 4:case 5:C=3;break;case 6:case 7:C=1;break;default:C=6}return this.extend({style:this.style.text(),size:C})},c.withColor=function(C){return this.extend({color:C})},c.withPhantom=function(){return this.extend({phantom:!0})},c.withFont=function(C){return this.extend({font:C})},c.withTextFontFamily=function(C){return this.extend({fontFamily:C,font:""})},c.withTextFontWeight=function(C){return this.extend({fontWeight:C,font:""})},c.withTextFontShape=function(C){return this.extend({fontShape:C,font:""})},c.sizingClasses=function(C){return C.size!==this.size?["sizing","reset-size"+C.size,"size"+this.size]:[]},c.baseSizingClasses=function(){return this.size!==He.BASESIZE?["sizing","reset-size"+this.size,"size"+He.BASESIZE]:[]},c.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Bt(this.size)),this._fontMetrics},c.getColor=function(){return this.phantom?"transparent":this.color},He}();Xn.BASESIZE=6;var Hi=Xn,fi={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},wn={ex:!0,em:!0,mu:!0},hr=function(c){return typeof c!="string"&&(c=c.unit),c in fi||c in wn||c==="ex"},yr=function(c,w){var C;if(c.unit in fi)C=fi[c.unit]/w.fontMetrics().ptPerEm/w.sizeMultiplier;else if(c.unit==="mu")C=w.fontMetrics().cssEmPerMu;else{var $;if(w.style.isTight()?$=w.havingStyle(w.style.text()):$=w,c.unit==="ex")C=$.fontMetrics().xHeight;else if(c.unit==="em")C=$.fontMetrics().quad;else throw new Y("Invalid unit: '"+c.unit+"'");$!==w&&(C*=$.sizeMultiplier/w.sizeMultiplier)}return Math.min(c.number*C,w.maxSize)},Pr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],Zr=function(c,w,C){return vr[C][c]&&vr[C][c].replace&&(c=vr[C][c].replace),{value:c,metrics:We(c,w,C)}},Qr=function(c,w,C,$,Be){var je=Zr(c,w,C),xt=je.metrics;c=je.value;var bt;if(xt){var Jt=xt.italic;(C==="text"||$&&$.font==="mathit")&&(Jt=0),bt=new P(c,xt.height,xt.depth,Jt,xt.skew,xt.width,Be)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+c+"' in style '"+w+"' and mode '"+C+"'")),bt=new P(c,0,0,0,0,0,Be);if($){bt.maxFontSize=$.sizeMultiplier,$.style.isTight()&&bt.classes.push("mtight");var Ar=$.getColor();Ar&&(bt.style.color=Ar)}return bt},on=function(c,w,C,$){return $===void 0&&($=[]),C.font==="boldsymbol"&&Zr(c,"Main-Bold",w).metrics?Qr(c,"Main-Bold",w,C,$.concat(["mathbf"])):c==="\\"||vr[w][c].font==="main"?Qr(c,"Main-Regular",w,C,$):Qr(c,"AMS-Regular",w,C,$.concat(["amsrm"]))},en=function(c,w,C,$){return/[0-9]/.test(c.charAt(0))||F.contains(Pr,c)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},jn=function(c,w,C,$){return F.contains(Pr,c)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(c.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},qn=function(c,w,C,$){return Zr(c,"Math-BoldItalic",w).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},oi=function(c,w,C){var $=c.mode,Be=c.text,je=["mord"],xt=$==="math"||$==="text"&&w.font,bt=xt?w.font:w.fontFamily;if(Be.charCodeAt(0)===55349){var Jt=zr(Be,$),Ar=Jt[0],xr=Jt[1];return Qr(Be,Ar,$,w,je.concat(xr))}else if(bt){var nn,xn;if(bt==="boldsymbol"||bt==="mathnormal"){var Xr=bt==="boldsymbol"?qn(Be,$,w,je):jn(Be,$,w,je);nn=Xr.fontName,xn=[Xr.fontClass]}else F.contains(Pr,Be)?(nn="Main-Italic",xn=["mathit"]):xt?(nn=ca[bt].fontName,xn=[bt]):(nn=zi(bt,w.fontWeight,w.fontShape),xn=[bt,w.fontWeight,w.fontShape]);if(Zr(Be,nn,$).metrics)return Qr(Be,nn,$,w,je.concat(xn));if(Nn.hasOwnProperty(Be)&&nn.substr(0,10)==="Typewriter"){for(var dn=[],kn=0;kn<Be.length;kn++)dn.push(Qr(Be[kn],nn,$,w,je.concat(xn)));return ii(dn)}}if(C==="mathord"){var Zn=en(Be,$,w,je);return Qr(Be,Zn.fontName,$,w,je.concat([Zn.fontClass]))}else if(C==="textord"){var bi=vr[$][Be]&&vr[$][Be].font;if(bi==="ams"){var En=zi("amsrm",w.fontWeight,w.fontShape);return Qr(Be,En,$,w,je.concat("amsrm",w.fontWeight,w.fontShape))}else if(bi==="main"||!bi){var pi=zi("textrm",w.fontWeight,w.fontShape);return Qr(Be,pi,$,w,je.concat(w.fontWeight,w.fontShape))}else{var Ji=zi(bi,w.fontWeight,w.fontShape);return Qr(Be,Ji,$,w,je.concat(Ji,w.fontWeight,w.fontShape))}}else throw new Error("unexpected type: "+C+" in makeOrd")},Qi=function(c,w){if(Me(c.classes)!==Me(w.classes)||c.skew!==w.skew||c.maxFontSize!==w.maxFontSize)return!1;for(var C in c.style)if(c.style.hasOwnProperty(C)&&c.style[C]!==w.style[C])return!1;for(var $ in w.style)if(w.style.hasOwnProperty($)&&c.style[$]!==w.style[$])return!1;return!0},Ri=function(c){for(var w=0;w<c.length-1;w++){var C=c[w],$=c[w+1];C instanceof P&&$ instanceof P&&Qi(C,$)&&(C.text+=$.text,C.height=Math.max(C.height,$.height),C.depth=Math.max(C.depth,$.depth),C.italic=$.italic,c.splice(w+1,1),w--)}return c},ki=function(c){for(var w=0,C=0,$=0,Be=0;Be<c.children.length;Be++){var je=c.children[Be];je.height>w&&(w=je.height),je.depth>C&&(C=je.depth),je.maxFontSize>$&&($=je.maxFontSize)}c.height=w,c.depth=C,c.maxFontSize=$},Tr=function(c,w,C,$){var Be=new f(c,w,C,$);return ki(Be),Be},_n=function(c,w,C,$){return new f(c,w,C,$)},gn=function(c,w,C){var $=Tr([c],[],w);return $.height=Math.max(C||w.fontMetrics().defaultRuleThickness,w.minRuleThickness),$.style.borderBottomWidth=$.height+"em",$.maxFontSize=1,$},ui=function(c,w,C,$){var Be=new D(c,w,C,$);return ki(Be),Be},ii=function(c){var w=new _r(c);return ki(w),w},ti=function(c,w){return c instanceof _r?Tr([],[c],w):c},wi=function(c){if(c.positionType==="individualShift"){for(var w=c.children,C=[w[0]],$=-w[0].shift-w[0].elem.depth,Be=$,je=1;je<w.length;je++){var xt=-w[je].shift-Be-w[je].elem.depth,bt=xt-(w[je-1].elem.height+w[je-1].elem.depth);Be=Be+xt,C.push({type:"kern",size:bt}),C.push(w[je])}return{children:C,depth:$}}var Jt;if(c.positionType==="top"){for(var Ar=c.positionData,xr=0;xr<c.children.length;xr++){var nn=c.children[xr];Ar-=nn.type==="kern"?nn.size:nn.elem.height+nn.elem.depth}Jt=Ar}else if(c.positionType==="bottom")Jt=-c.positionData;else{var xn=c.children[0];if(xn.type!=="elem")throw new Error('First child must have type "elem".');if(c.positionType==="shift")Jt=-xn.elem.depth-c.positionData;else if(c.positionType==="firstBaseline")Jt=-xn.elem.depth;else throw new Error("Invalid positionType "+c.positionType+".")}return{children:c.children,depth:Jt}},Pi=function(c,w){for(var C=wi(c),$=C.children,Be=C.depth,je=0,xt=0;xt<$.length;xt++){var bt=$[xt];if(bt.type==="elem"){var Jt=bt.elem;je=Math.max(je,Jt.maxFontSize,Jt.height)}}je+=2;var Ar=Tr(["pstrut"],[]);Ar.style.height=je+"em";for(var xr=[],nn=Be,xn=Be,Xr=Be,dn=0;dn<$.length;dn++){var kn=$[dn];if(kn.type==="kern")Xr+=kn.size;else{var Zn=kn.elem,bi=kn.wrapperClasses||[],En=kn.wrapperStyle||{},pi=Tr(bi,[Ar,Zn],void 0,En);pi.style.top=-je-Xr-Zn.depth+"em",kn.marginLeft&&(pi.style.marginLeft=kn.marginLeft),kn.marginRight&&(pi.style.marginRight=kn.marginRight),xr.push(pi),Xr+=Zn.height+Zn.depth}nn=Math.min(nn,Xr),xn=Math.max(xn,Xr)}var Ji=Tr(["vlist"],xr);Ji.style.height=xn+"em";var Ki;if(nn<0){var Sa=Tr([],[]),Ia=Tr(["vlist"],[Sa]);Ia.style.height=-nn+"em";var Xi=Tr(["vlist-s"],[new P("\u200B")]);Ki=[Tr(["vlist-r"],[Ji,Xi]),Tr(["vlist-r"],[Ia])]}else Ki=[Tr(["vlist-r"],[Ji])];var Ta=Tr(["vlist-t"],Ki);return Ki.length===2&&Ta.classes.push("vlist-t2"),Ta.height=xn,Ta.depth=-nn,Ta},Bi=function(c,w){var C=Tr(["mspace"],[],w),$=yr(c,w);return C.style.marginRight=$+"em",C},zi=function(c,w,C){var $="";switch(c){case"amsrm":$="AMS";break;case"textrm":$="Main";break;case"textsf":$="SansSerif";break;case"texttt":$="Typewriter";break;default:$=c}var Be;return w==="textbf"&&C==="textit"?Be="BoldItalic":w==="textbf"?Be="Bold":w==="textit"?Be="Italic":Be="Regular",$+"-"+Be},ca={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"}},xi={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},vn=function(c,w){var C=xi[c],$=C[0],Be=C[1],je=C[2],xt=new Ie($),bt=new te([xt],{width:Be+"em",height:je+"em",style:"width:"+Be+"em",viewBox:"0 0 "+1e3*Be+" "+1e3*je,preserveAspectRatio:"xMinYMin"}),Jt=_n(["overlay"],[bt],w);return Jt.height=je,Jt.style.height=je+"em",Jt.style.width=Be+"em",Jt},Ht={fontMap:ca,makeSymbol:Qr,mathsym:on,makeSpan:Tr,makeSvgSpan:_n,makeLineSpan:gn,makeAnchor:ui,makeFragment:ii,wrapFragment:ti,makeVList:Pi,makeOrd:oi,makeGlue:Bi,staticSvg:vn,svgData:xi,tryCombineChars:Ri};function Ln(He,c){var w=Gn(He,c);if(!w)throw new Error("Expected node of type "+c+", but got "+(He?"node of type "+He.type:String(He)));return w}function Gn(He,c){return He&&He.type===c?He:null}function Ci(He,c){var w=ji(He,c);if(!w)throw new Error('Expected node of type "atom" and family "'+c+'", but got '+(He?He.type==="atom"?"atom of family "+He.family:"node of type "+He.type:String(He)));return w}function ji(He,c){return He&&He.type==="atom"&&He.family===c?He:null}function fa(He){var c=va(He);if(!c)throw new Error("Expected node of symbol group type, but got "+(He?"node of type "+He.type:String(He)));return c}function va(He){return He&&(He.type==="atom"||Mt.hasOwnProperty(He.type))?He:null}var ea={number:3,unit:"mu"},_i={number:4,unit:"mu"},yi={number:5,unit:"mu"},Si={mord:{mop:ea,mbin:_i,mrel:yi,minner:ea},mop:{mord:ea,mop:ea,mrel:yi,minner:ea},mbin:{mord:_i,mop:_i,mopen:_i,minner:_i},mrel:{mord:yi,mop:yi,mopen:yi,minner:yi},mopen:{},mclose:{mop:ea,mbin:_i,mrel:yi,minner:ea},mpunct:{mord:ea,mop:ea,mrel:yi,mopen:ea,mclose:ea,mpunct:ea,minner:ea},minner:{mord:ea,mop:ea,mbin:_i,mrel:yi,mopen:ea,mpunct:ea,minner:ea}},ra={mord:{mop:ea},mop:{mord:ea,mop:ea},mbin:{},mrel:{},mopen:{},mclose:{mop:ea},mpunct:{},minner:{mop:ea}},Aa={},es={},ps={};function hi(He){for(var c=He.type,w=He.names,C=He.props,$=He.handler,Be=He.htmlBuilder,je=He.mathmlBuilder,xt={type:c,numArgs:C.numArgs,argTypes:C.argTypes,greediness:C.greediness===void 0?1:C.greediness,allowedInText:!!C.allowedInText,allowedInMath:C.allowedInMath===void 0?!0:C.allowedInMath,numOptionalArgs:C.numOptionalArgs||0,infix:!!C.infix,handler:$},bt=0;bt<w.length;++bt)Aa[w[bt]]=xt;c&&(Be&&(es[c]=Be),je&&(ps[c]=je))}function Ca(He){var c=He.type,w=He.htmlBuilder,C=He.mathmlBuilder;hi({type:c,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:w,mathmlBuilder:C})}var ma=function(c){var w=Gn(c,"ordgroup");return w?w.body:[c]},ka=Ht.makeSpan,Ps=["leftmost","mbin","mopen","mrel","mop","mpunct"],is=["rightmost","mrel","mclose","mpunct"],Fa={display:_.DISPLAY,text:_.TEXT,script:_.SCRIPT,scriptscript:_.SCRIPTSCRIPT},Mi={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},la=function(c,w,C,$){$===void 0&&($=[null,null]);for(var Be=[],je=0;je<c.length;je++){var xt=aa(c[je],w);if(xt instanceof _r){var bt=xt.children;Be.push.apply(Be,bt)}else Be.push(xt)}if(!C)return Be;var Jt=w;if(c.length===1){var Ar=Gn(c[0],"sizing")||Gn(c[0],"styling");Ar&&(Ar.type==="sizing"?Jt=w.havingSize(Ar.size):Ar.type==="styling"&&(Jt=w.havingStyle(Fa[Ar.style])))}var xr=ka([$[0]||"leftmost"],[],w),nn=ka([$[1]||"rightmost"],[],w);return ms(Be,function(xn,Xr){var dn=Xr.classes[0],kn=xn.classes[0];dn==="mbin"&&F.contains(is,kn)?Xr.classes[0]="mord":kn==="mbin"&&F.contains(Ps,dn)&&(xn.classes[0]="mord")},{node:xr},nn),ms(Be,function(xn,Xr){var dn=Wi(Xr),kn=Wi(xn),Zn=dn&&kn?xn.hasClass("mtight")?ra[dn][kn]:Si[dn][kn]:null;if(Zn)return Ht.makeGlue(Zn,Jt)},{node:xr},nn),Be},ms=function He(c,w,C,$){$&&c.push($);for(var Be=0;Be<c.length;Be++){var je=c[Be],xt=as(je);if(xt){He(xt.children,w,C);continue}if(je.classes[0]!=="mspace"){var bt=w(je,C.node);bt&&(C.insertAfter?C.insertAfter(bt):(c.unshift(bt),Be++)),C.node=je,C.insertAfter=function(Jt){return function(Ar){c.splice(Jt+1,0,Ar),Be++}}(Be)}}$&&c.pop()},as=function(c){return c instanceof _r||c instanceof D?c:null},ts=function He(c,w){var C=as(c);if(C){var $=C.children;if($.length){if(w==="right")return He($[$.length-1],"right");if(w==="left")return He($[0],"left")}}return c},Wi=function(c,w){return c?(w&&(c=ts(c,w)),Mi[c.classes[0]]||null):null},gs=function(c,w){var C=["nulldelimiter"].concat(c.baseSizingClasses());return ka(w.concat(C))},aa=function(c,w,C){if(!c)return ka();if(es[c.type]){var $=es[c.type](c,w);if(C&&w.size!==C.size){$=ka(w.sizingClasses(C),[$],w);var Be=w.sizeMultiplier/C.sizeMultiplier;$.height*=Be,$.depth*=Be}return $}else throw new Y("Got group of unknown type: '"+c.type+"'")};function co(He,c){var w=ka(["base"],He,c),C=ka(["strut"]);return C.style.height=w.height+w.depth+"em",C.style.verticalAlign=-w.depth+"em",w.children.unshift(C),w}function Qs(He,c){var w=null;He.length===1&&He[0].type==="tag"&&(w=He[0].tag,He=He[0].body);for(var C=la(He,c,!0),$=[],Be=[],je=0;je<C.length;je++)if(Be.push(C[je]),C[je].hasClass("mbin")||C[je].hasClass("mrel")||C[je].hasClass("allowbreak")){for(var xt=!1;je<C.length-1&&C[je+1].hasClass("mspace")&&!C[je+1].hasClass("newline");)je++,Be.push(C[je]),C[je].hasClass("nobreak")&&(xt=!0);xt||($.push(co(Be,c)),Be=[])}else C[je].hasClass("newline")&&(Be.pop(),Be.length>0&&($.push(co(Be,c)),Be=[]),$.push(C[je]));Be.length>0&&$.push(co(Be,c));var bt;w&&(bt=co(la(w,c,!0)),bt.classes=["tag"],$.push(bt));var Jt=ka(["katex-html"],$);if(Jt.setAttribute("aria-hidden","true"),bt){var Ar=bt.children[0];Ar.style.height=Jt.height+Jt.depth+"em",Ar.style.verticalAlign=-Jt.depth+"em"}return Jt}function Co(He){return new _r(He)}var fs=function(){function He(w,C){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=w,this.attributes={},this.children=C||[]}var c=He.prototype;return c.setAttribute=function(C,$){this.attributes[C]=$},c.getAttribute=function(C){return this.attributes[C]},c.toNode=function(){var C=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var $ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,$)&&C.setAttribute($,this.attributes[$]);for(var Be=0;Be<this.children.length;Be++)C.appendChild(this.children[Be].toNode());return C},c.toMarkup=function(){var C="<"+this.type;for(var $ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,$)&&(C+=" "+$+'="',C+=F.escape(this.attributes[$]),C+='"');C+=">";for(var Be=0;Be<this.children.length;Be++)C+=this.children[Be].toMarkup();return C+="</"+this.type+">",C},c.toText=function(){return this.children.map(function(C){return C.toText()}).join("")},He}(),_o=function(){function He(w){this.text=void 0,this.text=w}var c=He.prototype;return c.toNode=function(){return document.createTextNode(this.text)},c.toMarkup=function(){return F.escape(this.toText())},c.toText=function(){return this.text},He}(),ss=function(){function He(w){this.width=void 0,this.character=void 0,this.width=w,w>=.05555&&w<=.05556?this.character="\u200A":w>=.1666&&w<=.1667?this.character="\u2009":w>=.2222&&w<=.2223?this.character="\u2005":w>=.2777&&w<=.2778?this.character="\u2005\u200A":w>=-.05556&&w<=-.05555?this.character="\u200A\u2063":w>=-.1667&&w<=-.1666?this.character="\u2009\u2063":w>=-.2223&&w<=-.2222?this.character="\u205F\u2063":w>=-.2778&&w<=-.2777?this.character="\u2005\u2063":this.character=null}var c=He.prototype;return c.toNode=function(){if(this.character)return document.createTextNode(this.character);var C=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return C.setAttribute("width",this.width+"em"),C},c.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},c.toText=function(){return this.character?this.character:" "},He}(),Yn={MathNode:fs,TextNode:_o,SpaceNode:ss,newDocumentFragment:Co},Da=function(c,w,C){return vr[w][c]&&vr[w][c].replace&&c.charCodeAt(0)!==55349&&!(Nn.hasOwnProperty(c)&&C&&(C.fontFamily&&C.fontFamily.substr(4,2)==="tt"||C.font&&C.font.substr(4,2)==="tt"))&&(c=vr[w][c].replace),new Yn.TextNode(c)},io=function(c){return c.length===1?c[0]:new Yn.MathNode("mrow",c)},Zi=function(c,w){if(w.fontFamily==="texttt")return"monospace";if(w.fontFamily==="textsf")return w.fontShape==="textit"&&w.fontWeight==="textbf"?"sans-serif-bold-italic":w.fontShape==="textit"?"sans-serif-italic":w.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(w.fontShape==="textit"&&w.fontWeight==="textbf")return"bold-italic";if(w.fontShape==="textit")return"italic";if(w.fontWeight==="textbf")return"bold";var C=w.font;if(!C||C==="mathnormal")return null;var $=c.mode;if(C==="mathit")return"italic";if(C==="boldsymbol")return"bold-italic";if(C==="mathbf")return"bold";if(C==="mathbb")return"double-struck";if(C==="mathfrak")return"fraktur";if(C==="mathscr"||C==="mathcal")return"script";if(C==="mathsf")return"sans-serif";if(C==="mathtt")return"monospace";var Be=c.text;if(F.contains(["\\imath","\\jmath"],Be))return null;vr[$][Be]&&vr[$][Be].replace&&(Be=vr[$][Be].replace);var je=Ht.fontMap[C].fontName;return We(Be,je,$)?Ht.fontMap[C].variant:null},ta=function(c,w,C){if(c.length===1){var $=Ui(c[0],w);return C&&$ instanceof fs&&$.type==="mo"&&($.setAttribute("lspace","0em"),$.setAttribute("rspace","0em")),[$]}for(var Be=[],je,xt=0;xt<c.length;xt++){var bt=Ui(c[xt],w);if(bt instanceof fs&&je instanceof fs){if(bt.type==="mtext"&&je.type==="mtext"&&bt.getAttribute("mathvariant")===je.getAttribute("mathvariant")){var Jt;(Jt=je.children).push.apply(Jt,bt.children);continue}else if(bt.type==="mn"&&je.type==="mn"){var Ar;(Ar=je.children).push.apply(Ar,bt.children);continue}else if(bt.type==="mi"&&bt.children.length===1&&je.type==="mn"){var xr=bt.children[0];if(xr instanceof _o&&xr.text==="."){var nn;(nn=je.children).push.apply(nn,bt.children);continue}}else if(je.type==="mi"&&je.children.length===1){var xn=je.children[0];if(xn instanceof _o&&xn.text==="\u0338"&&(bt.type==="mo"||bt.type==="mi"||bt.type==="mn")){var Xr=bt.children[0];Xr instanceof _o&&Xr.text.length>0&&(Xr.text=Xr.text.slice(0,1)+"\u0338"+Xr.text.slice(1),Be.pop())}}}Be.push(bt),je=bt}return Be},$i=function(c,w,C){return io(ta(c,w,C))},Ui=function(c,w){if(!c)return new Yn.MathNode("mrow");if(ps[c.type]){var C=ps[c.type](c,w);return C}else throw new Y("Got group of unknown type: '"+c.type+"'")};function wa(He,c,w,C){var $=ta(He,w),Be;$.length===1&&$[0]instanceof fs&&F.contains(["mrow","mtable"],$[0].type)?Be=$[0]:Be=new Yn.MathNode("mrow",$);var je=new Yn.MathNode("annotation",[new Yn.TextNode(c)]);je.setAttribute("encoding","application/x-tex");var xt=new Yn.MathNode("semantics",[Be,je]),bt=new Yn.MathNode("math",[xt]);bt.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var Jt=C?"katex":"katex-mathml";return Ht.makeSpan([Jt],[bt])}var Pa=function(c){return new Hi({style:c.displayMode?_.DISPLAY:_.TEXT,maxSize:c.maxSize,minRuleThickness:c.minRuleThickness})},Ls=function(c,w){if(w.displayMode){var C=["katex-display"];w.leqno&&C.push("leqno"),w.fleqn&&C.push("fleqn"),c=Ht.makeSpan(C,[c])}return c},cs=function(c,w,C){var $=Pa(C),Be;if(C.output==="mathml")return wa(c,w,$,!0);if(C.output==="html"){var je=Qs(c,$);Be=Ht.makeSpan(["katex"],[je])}else{var xt=wa(c,w,$,!1),bt=Qs(c,$);Be=Ht.makeSpan(["katex"],[xt,bt])}return Ls(Be,C)},Es=function(c,w,C){var $=Pa(C),Be=Qs(c,$),je=Ht.makeSpan(["katex"],[Be]);return Ls(je,C)},rs=cs,Bo={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"},go=function(c){var w=new Yn.MathNode("mo",[new Yn.TextNode(Bo[c.substr(1)])]);return w.setAttribute("stretchy","true"),w},eo={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]},zs=function(c){return c.type==="ordgroup"?c.body.length:1},Rs=function(c,w){function C(){var bt=4e5,Jt=c.label.substr(1);if(F.contains(["widehat","widecheck","widetilde","utilde"],Jt)){var Ar=c,xr=zs(Ar.base),nn,xn,Xr;if(xr>5)Jt==="widehat"||Jt==="widecheck"?(nn=420,bt=2364,Xr=.42,xn=Jt+"4"):(nn=312,bt=2340,Xr=.34,xn="tilde4");else{var dn=[1,1,2,2,3,3][xr];Jt==="widehat"||Jt==="widecheck"?(bt=[0,1062,2364,2364,2364][dn],nn=[0,239,300,360,420][dn],Xr=[0,.24,.3,.3,.36,.42][dn],xn=Jt+dn):(bt=[0,600,1033,2339,2340][dn],nn=[0,260,286,306,312][dn],Xr=[0,.26,.286,.3,.306,.34][dn],xn="tilde"+dn)}var kn=new Ie(xn),Zn=new te([kn],{width:"100%",height:Xr+"em",viewBox:"0 0 "+bt+" "+nn,preserveAspectRatio:"none"});return{span:Ht.makeSvgSpan([],[Zn],w),minWidth:0,height:Xr}}else{var bi=[],En=eo[Jt],pi=En[0],Ji=En[1],Ki=En[2],Sa=Ki/1e3,Ia=pi.length,Xi,Ta;if(Ia===1){var Ba=En[3];Xi=["hide-tail"],Ta=[Ba]}else if(Ia===2)Xi=["halfarrow-left","halfarrow-right"],Ta=["xMinYMin","xMaxYMin"];else if(Ia===3)Xi=["brace-left","brace-center","brace-right"],Ta=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+Ia+" children.");for(var si=0;si<Ia;si++){var Ha=new Ie(pi[si]),os=new te([Ha],{width:"400em",height:Sa+"em",viewBox:"0 0 "+bt+" "+Ki,preserveAspectRatio:Ta[si]+" slice"}),sa=Ht.makeSvgSpan([Xi[si]],[os],w);if(Ia===1)return{span:sa,minWidth:Ji,height:Sa};sa.style.height=Sa+"em",bi.push(sa)}return{span:Ht.makeSpan(["stretchy"],bi,w),minWidth:Ji,height:Sa}}}var $=C(),Be=$.span,je=$.minWidth,xt=$.height;return Be.height=xt,Be.style.height=xt+"em",je>0&&(Be.style.minWidth=je+"em"),Be},Oi=function(c,w,C,$){var Be,je=c.height+c.depth+2*C;if(/fbox|color/.test(w)){if(Be=Ht.makeSpan(["stretchy",w],[],$),w==="fbox"){var xt=$.color&&$.getColor();xt&&(Be.style.borderColor=xt)}}else{var bt=[];/^[bx]cancel$/.test(w)&&bt.push(new Te({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(w)&&bt.push(new Te({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var Jt=new te(bt,{width:"100%",height:je+"em"});Be=Ht.makeSvgSpan([],[Jt],$)}return Be.height=je,Be.style.height=je+"em",Be},Ai={encloseSpan:Oi,mathMLnode:go,svgSpan:Rs},ua=function(c,w){var C,$,Be=Gn(c,"supsub"),je;Be?($=Ln(Be.base,"accent"),C=$.base,Be.base=C,je=Ge(aa(Be,w)),Be.base=$):($=Ln(c,"accent"),C=$.base);var xt=aa(C,w.havingCrampedStyle()),bt=$.isShifty&&F.isCharacterBox(C),Jt=0;if(bt){var Ar=F.getBaseElem(C),xr=aa(Ar,w.havingCrampedStyle());Jt=Se(xr).skew}var nn=Math.min(xt.height,w.fontMetrics().xHeight),xn;if($.isStretchy)xn=Ai.svgSpan($,w),xn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xt},{type:"elem",elem:xn,wrapperClasses:["svg-align"],wrapperStyle:Jt>0?{width:"calc(100% - "+2*Jt+"em)",marginLeft:2*Jt+"em"}:void 0}]},w);else{var Xr,dn;$.label==="\\vec"?(Xr=Ht.staticSvg("vec",w),dn=Ht.svgData.vec[1]):(Xr=Ht.makeOrd({mode:$.mode,text:$.label},w,"textord"),Xr=Se(Xr),Xr.italic=0,dn=Xr.width),xn=Ht.makeSpan(["accent-body"],[Xr]);var kn=$.label==="\\textcircled";kn&&(xn.classes.push("accent-full"),nn=xt.height);var Zn=Jt;kn||(Zn-=dn/2),xn.style.left=Zn+"em",$.label==="\\textcircled"&&(xn.style.top=".2em"),xn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xt},{type:"kern",size:-nn},{type:"elem",elem:xn}]},w)}var bi=Ht.makeSpan(["mord","accent"],[xn],w);return je?(je.children[0]=bi,je.height=Math.max(bi.height,je.height),je.classes[0]="mord",je):bi},vs=function(c,w){var C=c.isStretchy?Ai.mathMLnode(c.label):new Yn.MathNode("mo",[Da(c.label,c.mode)]),$=new Yn.MathNode("mover",[Ui(c.base,w),C]);return $.setAttribute("accent","true"),$},Ra=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(He){return"\\"+He}).join("|"));hi({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(c,w){var C=w[0],$=!Ra.test(c.funcName),Be=!$||c.funcName==="\\widehat"||c.funcName==="\\widetilde"||c.funcName==="\\widecheck";return{type:"accent",mode:c.parser.mode,label:c.funcName,isStretchy:$,isShifty:Be,base:C}},htmlBuilder:ua,mathmlBuilder:vs}),hi({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(c,w){var C=w[0];return{type:"accent",mode:c.parser.mode,label:c.funcName,isStretchy:!1,isShifty:!0,base:C}},htmlBuilder:ua,mathmlBuilder:vs}),hi({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[0];return{type:"accentUnder",mode:C.mode,label:$,base:Be}},htmlBuilder:function(c,w){var C=aa(c.base,w),$=Ai.svgSpan(c,w),Be=c.label==="\\utilde"?.12:0,je=Ht.makeVList({positionType:"bottom",positionData:$.height+Be,children:[{type:"elem",elem:$,wrapperClasses:["svg-align"]},{type:"kern",size:Be},{type:"elem",elem:C}]},w);return Ht.makeSpan(["mord","accentunder"],[je],w)},mathmlBuilder:function(c,w){var C=Ai.mathMLnode(c.label),$=new Yn.MathNode("munder",[Ui(c.base,w),C]);return $.setAttribute("accentunder","true"),$}});var Ns=function(c){var w=new Yn.MathNode("mpadded",c?[c]:[]);return w.setAttribute("width","+0.6em"),w.setAttribute("lspace","0.3em"),w};hi({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(c,w,C){var $=c.parser,Be=c.funcName;return{type:"xArrow",mode:$.mode,label:Be,body:w[0],below:C[0]}},htmlBuilder:function(c,w){var C=w.style,$=w.havingStyle(C.sup()),Be=Ht.wrapFragment(aa(c.body,$,w),w);Be.classes.push("x-arrow-pad");var je;c.below&&($=w.havingStyle(C.sub()),je=Ht.wrapFragment(aa(c.below,$,w),w),je.classes.push("x-arrow-pad"));var xt=Ai.svgSpan(c,w),bt=-w.fontMetrics().axisHeight+.5*xt.height,Jt=-w.fontMetrics().axisHeight-.5*xt.height-.111;(Be.depth>.25||c.label==="\\xleftequilibrium")&&(Jt-=Be.depth);var Ar;if(je){var xr=-w.fontMetrics().axisHeight+je.height+.5*xt.height+.111;Ar=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Be,shift:Jt},{type:"elem",elem:xt,shift:bt},{type:"elem",elem:je,shift:xr}]},w)}else Ar=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Be,shift:Jt},{type:"elem",elem:xt,shift:bt}]},w);return Ar.children[0].children[0].children[1].classes.push("svg-align"),Ht.makeSpan(["mrel","x-arrow"],[Ar],w)},mathmlBuilder:function(c,w){var C=Ai.mathMLnode(c.label),$;if(c.body){var Be=Ns(Ui(c.body,w));if(c.below){var je=Ns(Ui(c.below,w));$=new Yn.MathNode("munderover",[C,je,Be])}else $=new Yn.MathNode("mover",[C,Be])}else if(c.below){var xt=Ns(Ui(c.below,w));$=new Yn.MathNode("munder",[C,xt])}else $=Ns(),$=new Yn.MathNode("mover",[C,$]);return $}}),hi({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){for(var C=c.parser,$=Ln(w[0],"ordgroup"),Be=$.body,je="",xt=0;xt<Be.length;xt++){var bt=Ln(Be[xt],"textord");je+=bt.text}var Jt=parseInt(je);if(isNaN(Jt))throw new Y("\\@char has non-numeric argument "+je);return{type:"textord",mode:C.mode,text:String.fromCharCode(Jt)}}});var Vs=function(c,w){var C=la(c.body,w.withColor(c.color),!1);return Ht.makeFragment(C)},vo=function(c,w){var C=ta(c.body,w.withColor(c.color)),$=new Yn.MathNode("mstyle",C);return $.setAttribute("mathcolor",c.color),$};hi({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(c,w){var C=c.parser,$=Ln(w[0],"color-token").color,Be=w[1];return{type:"color",mode:C.mode,color:$,body:ma(Be)}},htmlBuilder:Vs,mathmlBuilder:vo}),hi({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(c,w){var C=c.parser,$=c.breakOnTokenText,Be=Ln(w[0],"color-token").color;C.gullet.macros.set("\\current@color",Be);var je=C.parseExpression(!0,$);return{type:"color",mode:C.mode,color:Be,body:je}},htmlBuilder:Vs,mathmlBuilder:vo}),hi({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(c,w,C){var $=c.parser,Be=c.funcName,je=C[0],xt=Be==="\\cr",bt=!1;return xt||($.settings.displayMode&&$.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?bt=!1:bt=!0),{type:"cr",mode:$.mode,newLine:bt,newRow:xt,size:je&&Ln(je,"size").value}},htmlBuilder:function(c,w){if(c.newRow)throw new Y("\\cr valid only within a tabular/array environment");var C=Ht.makeSpan(["mspace"],[],w);return c.newLine&&(C.classes.push("newline"),c.size&&(C.style.marginTop=yr(c.size,w)+"em")),C},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mspace");return c.newLine&&(C.setAttribute("linebreak","newline"),c.size&&C.setAttribute("height",yr(c.size,w)+"em")),C}});var Os=function(c,w,C){var $=vr.math[c]&&vr.math[c].replace,Be=We($||c,w,C);if(!Be)throw new Error("Unsupported symbol "+c+" and font size "+w+".");return Be},Di=function(c,w,C,$){var Be=C.havingBaseStyle(w),je=Ht.makeSpan($.concat(Be.sizingClasses(C)),[c],C),xt=Be.sizeMultiplier/C.sizeMultiplier;return je.height*=xt,je.depth*=xt,je.maxFontSize=Be.sizeMultiplier,je},Dl=function(c,w,C){var $=w.havingBaseStyle(C),Be=(1-w.sizeMultiplier/$.sizeMultiplier)*w.fontMetrics().axisHeight;c.classes.push("delimcenter"),c.style.top=Be+"em",c.height-=Be,c.depth+=Be},Js=function(c,w,C,$,Be,je){var xt=Ht.makeSymbol(c,"Main-Regular",Be,$),bt=Di(xt,w,$,je);return C&&Dl(bt,$,w),bt},nl=function(c,w,C,$){return Ht.makeSymbol(c,"Size"+w+"-Regular",C,$)},Qo=function(c,w,C,$,Be,je){var xt=nl(c,w,Be,$),bt=Di(Ht.makeSpan(["delimsizing","size"+w],[xt],$),_.TEXT,$,je);return C&&Dl(bt,$,_.TEXT),bt},Ao=function(c,w,C){var $;w==="Size1-Regular"?$="delim-size1":$="delim-size4";var Be=Ht.makeSpan(["delimsizinginner",$],[Ht.makeSpan([],[Ht.makeSymbol(c,w,C)])]);return{type:"elem",elem:Be}},_a={type:"kern",size:-.005},vl=function(c,w,C,$,Be,je){var xt,bt,Jt,Ar;xt=Jt=Ar=c,bt=null;var xr="Size1-Regular";c==="\\uparrow"?Jt=Ar="\u23D0":c==="\\Uparrow"?Jt=Ar="\u2016":c==="\\downarrow"?xt=Jt="\u23D0":c==="\\Downarrow"?xt=Jt="\u2016":c==="\\updownarrow"?(xt="\\uparrow",Jt="\u23D0",Ar="\\downarrow"):c==="\\Updownarrow"?(xt="\\Uparrow",Jt="\u2016",Ar="\\Downarrow"):c==="["||c==="\\lbrack"?(xt="\u23A1",Jt="\u23A2",Ar="\u23A3",xr="Size4-Regular"):c==="]"||c==="\\rbrack"?(xt="\u23A4",Jt="\u23A5",Ar="\u23A6",xr="Size4-Regular"):c==="\\lfloor"||c==="\u230A"?(Jt=xt="\u23A2",Ar="\u23A3",xr="Size4-Regular"):c==="\\lceil"||c==="\u2308"?(xt="\u23A1",Jt=Ar="\u23A2",xr="Size4-Regular"):c==="\\rfloor"||c==="\u230B"?(Jt=xt="\u23A5",Ar="\u23A6",xr="Size4-Regular"):c==="\\rceil"||c==="\u2309"?(xt="\u23A4",Jt=Ar="\u23A5",xr="Size4-Regular"):c==="("||c==="\\lparen"?(xt="\u239B",Jt="\u239C",Ar="\u239D",xr="Size4-Regular"):c===")"||c==="\\rparen"?(xt="\u239E",Jt="\u239F",Ar="\u23A0",xr="Size4-Regular"):c==="\\{"||c==="\\lbrace"?(xt="\u23A7",bt="\u23A8",Ar="\u23A9",Jt="\u23AA",xr="Size4-Regular"):c==="\\}"||c==="\\rbrace"?(xt="\u23AB",bt="\u23AC",Ar="\u23AD",Jt="\u23AA",xr="Size4-Regular"):c==="\\lgroup"||c==="\u27EE"?(xt="\u23A7",Ar="\u23A9",Jt="\u23AA",xr="Size4-Regular"):c==="\\rgroup"||c==="\u27EF"?(xt="\u23AB",Ar="\u23AD",Jt="\u23AA",xr="Size4-Regular"):c==="\\lmoustache"||c==="\u23B0"?(xt="\u23A7",Ar="\u23AD",Jt="\u23AA",xr="Size4-Regular"):(c==="\\rmoustache"||c==="\u23B1")&&(xt="\u23AB",Ar="\u23A9",Jt="\u23AA",xr="Size4-Regular");var nn=Os(xt,xr,Be),xn=nn.height+nn.depth,Xr=Os(Jt,xr,Be),dn=Xr.height+Xr.depth,kn=Os(Ar,xr,Be),Zn=kn.height+kn.depth,bi=0,En=1;if(bt!==null){var pi=Os(bt,xr,Be);bi=pi.height+pi.depth,En=2}var Ji=xn+Zn+bi,Ki=Math.max(0,Math.ceil((w-Ji)/(En*dn))),Sa=Ji+Ki*En*dn,Ia=$.fontMetrics().axisHeight;C&&(Ia*=$.sizeMultiplier);var Xi=Sa/2-Ia,Ta=(Ki+1)*.005-dn,Ba=[];if(Ba.push(Ao(Ar,xr,Be)),bt===null)for(var si=0;si<Ki;si++)Ba.push(_a),Ba.push(Ao(Jt,xr,Be));else{for(var Ha=0;Ha<Ki;Ha++)Ba.push(_a),Ba.push(Ao(Jt,xr,Be));Ba.push({type:"kern",size:Ta}),Ba.push(Ao(Jt,xr,Be)),Ba.push(_a),Ba.push(Ao(bt,xr,Be));for(var os=0;os<Ki;os++)Ba.push(_a),Ba.push(Ao(Jt,xr,Be))}Ba.push({type:"kern",size:Ta}),Ba.push(Ao(Jt,xr,Be)),Ba.push(_a),Ba.push(Ao(xt,xr,Be));var sa=$.havingBaseStyle(_.TEXT),ha=Ht.makeVList({positionType:"bottom",positionData:Xi,children:Ba},sa);return Di(Ht.makeSpan(["delimsizing","mult"],[ha],sa),_.TEXT,$,je)},yl=80,fo=.08,So=function(c,w,C,$,Be){var je=Cr(c,$,C),xt=new Ie(c,je),bt=new te([xt],{width:"400em",height:w+"em",viewBox:"0 0 400000 "+C,preserveAspectRatio:"xMinYMin slice"});return Ht.makeSvgSpan(["hide-tail"],[bt],Be)},Na=function(c,w){var C=w.havingBaseSizing(),$=Do("\\surd",c*C.sizeMultiplier,ao,C),Be=C.sizeMultiplier,je=Math.max(0,w.minRuleThickness-w.fontMetrics().sqrtRuleThickness),xt,bt=0,Jt=0,Ar=0,xr;return $.type==="small"?(Ar=1e3+1e3*je+yl,c<1?Be=1:c<1.4&&(Be=.7),bt=(1+je+fo)/Be,Jt=(1+je)/Be,xt=So("sqrtMain",bt,Ar,je,w),xt.style.minWidth="0.853em",xr=.833/Be):$.type==="large"?(Ar=(1e3+yl)*ns[$.size],Jt=(ns[$.size]+je)/Be,bt=(ns[$.size]+je+fo)/Be,xt=So("sqrtSize"+$.size,bt,Ar,je,w),xt.style.minWidth="1.02em",xr=1/Be):(bt=c+je+fo,Jt=c+je,Ar=Math.floor(1e3*c+je)+yl,xt=So("sqrtTall",bt,Ar,je,w),xt.style.minWidth="0.742em",xr=1.056),xt.height=Jt,xt.style.height=bt+"em",{span:xt,advanceWidth:xr,ruleWidth:(w.fontMetrics().sqrtRuleThickness+je)*Be}},ya=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],to=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Va=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ns=[0,1.2,1.8,2.4,3],js=function(c,w,C,$,Be){if(c==="<"||c==="\\lt"||c==="\u27E8"?c="\\langle":(c===">"||c==="\\gt"||c==="\u27E9")&&(c="\\rangle"),F.contains(ya,c)||F.contains(Va,c))return Qo(c,w,!1,C,$,Be);if(F.contains(to,c))return vl(c,ns[w],!1,C,$,Be);throw new Y("Illegal delimiter: '"+c+"'")},Ea=[{type:"small",style:_.SCRIPTSCRIPT},{type:"small",style:_.SCRIPT},{type:"small",style:_.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Ys=[{type:"small",style:_.SCRIPTSCRIPT},{type:"small",style:_.SCRIPT},{type:"small",style:_.TEXT},{type:"stack"}],ao=[{type:"small",style:_.SCRIPTSCRIPT},{type:"small",style:_.SCRIPT},{type:"small",style:_.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Po=function(c){if(c.type==="small")return"Main-Regular";if(c.type==="large")return"Size"+c.size+"-Regular";if(c.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+c.type+"' here.")},Do=function(c,w,C,$){for(var Be=Math.min(2,3-$.style.size),je=Be;je<C.length&&C[je].type!=="stack";je++){var xt=Os(c,Po(C[je]),"math"),bt=xt.height+xt.depth;if(C[je].type==="small"){var Jt=$.havingBaseStyle(C[je].style);bt*=Jt.sizeMultiplier}if(bt>w)return C[je]}return C[C.length-1]},Ya=function(c,w,C,$,Be,je){c==="<"||c==="\\lt"||c==="\u27E8"?c="\\langle":(c===">"||c==="\\gt"||c==="\u27E9")&&(c="\\rangle");var xt;F.contains(Va,c)?xt=Ea:F.contains(ya,c)?xt=ao:xt=Ys;var bt=Do(c,w,xt,$);return bt.type==="small"?Js(c,bt.style,C,$,Be,je):bt.type==="large"?Qo(c,bt.size,C,$,Be,je):vl(c,w,C,$,Be,je)},bl=function(c,w,C,$,Be,je){var xt=$.fontMetrics().axisHeight*$.sizeMultiplier,bt=901,Jt=5/$.fontMetrics().ptPerEm,Ar=Math.max(w-xt,C+xt),xr=Math.max(Ar/500*bt,2*Ar-Jt);return Ya(c,xr,!0,$,Be,je)},so={sqrtImage:Na,sizedDelim:js,customSizedDelim:Ya,leftRightDelim:bl},yo={"\\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}},Zl=["(","\\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 wl(He,c){var w=va(He);if(w&&F.contains(Zl,w.text))return w;throw new Y("Invalid delimiter: '"+(w?w.text:JSON.stringify(He))+"' after '"+c.funcName+"'",He)}hi({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(c,w){var C=wl(w[0],c);return{type:"delimsizing",mode:c.parser.mode,size:yo[c.funcName].size,mclass:yo[c.funcName].mclass,delim:C.text}},htmlBuilder:function(c,w){return c.delim==="."?Ht.makeSpan([c.mclass]):so.sizedDelim(c.delim,c.size,w,c.mode,[c.mclass])},mathmlBuilder:function(c){var w=[];c.delim!=="."&&w.push(Da(c.delim,c.mode));var C=new Yn.MathNode("mo",w);return c.mclass==="mopen"||c.mclass==="mclose"?C.setAttribute("fence","true"):C.setAttribute("fence","false"),C}});function fl(He){if(!He.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}hi({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(c,w){var C=c.parser.gullet.macros.get("\\current@color");if(C&&typeof C!="string")throw new Y("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:c.parser.mode,delim:wl(w[0],c).text,color:C}}}),hi({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(c,w){var C=wl(w[0],c),$=c.parser;++$.leftrightDepth;var Be=$.parseExpression(!1);--$.leftrightDepth,$.expect("\\right",!1);var je=Ln($.parseFunction(),"leftright-right");return{type:"leftright",mode:$.mode,body:Be,left:C.text,right:je.delim,rightColor:je.color}},htmlBuilder:function(c,w){fl(c);for(var C=la(c.body,w,!0,["mopen","mclose"]),$=0,Be=0,je=!1,xt=0;xt<C.length;xt++)C[xt].isMiddle?je=!0:($=Math.max(C[xt].height,$),Be=Math.max(C[xt].depth,Be));$*=w.sizeMultiplier,Be*=w.sizeMultiplier;var bt;if(c.left==="."?bt=gs(w,["mopen"]):bt=so.leftRightDelim(c.left,$,Be,w,c.mode,["mopen"]),C.unshift(bt),je)for(var Jt=1;Jt<C.length;Jt++){var Ar=C[Jt],xr=Ar.isMiddle;xr&&(C[Jt]=so.leftRightDelim(xr.delim,$,Be,xr.options,c.mode,[]))}var nn;if(c.right===".")nn=gs(w,["mclose"]);else{var xn=c.rightColor?w.withColor(c.rightColor):w;nn=so.leftRightDelim(c.right,$,Be,xn,c.mode,["mclose"])}return C.push(nn),Ht.makeSpan(["minner"],C,w)},mathmlBuilder:function(c,w){fl(c);var C=ta(c.body,w);if(c.left!=="."){var $=new Yn.MathNode("mo",[Da(c.left,c.mode)]);$.setAttribute("fence","true"),C.unshift($)}if(c.right!=="."){var Be=new Yn.MathNode("mo",[Da(c.right,c.mode)]);Be.setAttribute("fence","true"),c.rightColor&&Be.setAttribute("mathcolor",c.rightColor),C.push(Be)}return io(C)}}),hi({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(c,w){var C=wl(w[0],c);if(!c.parser.leftrightDepth)throw new Y("\\middle without preceding \\left",C);return{type:"middle",mode:c.parser.mode,delim:C.text}},htmlBuilder:function(c,w){var C;if(c.delim===".")C=gs(w,[]);else{C=so.sizedDelim(c.delim,1,w,c.mode,[]);var $={delim:c.delim,options:w};C.isMiddle=$}return C},mathmlBuilder:function(c,w){var C=c.delim==="\\vert"||c.delim==="|"?Da("|","text"):Da(c.delim,c.mode),$=new Yn.MathNode("mo",[C]);return $.setAttribute("fence","true"),$.setAttribute("lspace","0.05em"),$.setAttribute("rspace","0.05em"),$}});var Ll=function(c,w){var C=Ht.wrapFragment(aa(c.body,w),w),$=c.label.substr(1),Be=w.sizeMultiplier,je,xt=0,bt=F.isCharacterBox(c.body);if($==="sout")je=Ht.makeSpan(["stretchy","sout"]),je.height=w.fontMetrics().defaultRuleThickness/Be,xt=-.5*w.fontMetrics().xHeight;else{/cancel/.test($)?bt||C.classes.push("cancel-pad"):C.classes.push("boxpad");var Jt=0,Ar=0;/box/.test($)?(Ar=Math.max(w.fontMetrics().fboxrule,w.minRuleThickness),Jt=w.fontMetrics().fboxsep+($==="colorbox"?0:Ar)):Jt=bt?.2:0,je=Ai.encloseSpan(C,$,Jt,w),/fbox|boxed|fcolorbox/.test($)&&(je.style.borderStyle="solid",je.style.borderWidth=Ar+"em"),xt=C.depth+Jt,c.backgroundColor&&(je.style.backgroundColor=c.backgroundColor,c.borderColor&&(je.style.borderColor=c.borderColor))}var xr;return c.backgroundColor?xr=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:je,shift:xt},{type:"elem",elem:C,shift:0}]},w):xr=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:0},{type:"elem",elem:je,shift:xt,wrapperClasses:/cancel/.test($)?["svg-align"]:[]}]},w),/cancel/.test($)&&(xr.height=C.height,xr.depth=C.depth),/cancel/.test($)&&!bt?Ht.makeSpan(["mord","cancel-lap"],[xr],w):Ht.makeSpan(["mord"],[xr],w)},xl=function(c,w){var C=0,$=new Yn.MathNode(c.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ui(c.body,w)]);switch(c.label){case"\\cancel":$.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":$.setAttribute("notation","downdiagonalstrike");break;case"\\sout":$.setAttribute("notation","horizontalstrike");break;case"\\fbox":$.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(C=w.fontMetrics().fboxsep*w.fontMetrics().ptPerEm,$.setAttribute("width","+"+2*C+"pt"),$.setAttribute("height","+"+2*C+"pt"),$.setAttribute("lspace",C+"pt"),$.setAttribute("voffset",C+"pt"),c.label==="\\fcolorbox"){var Be=Math.max(w.fontMetrics().fboxrule,w.minRuleThickness);$.setAttribute("style","border: "+Be+"em solid "+String(c.borderColor))}break;case"\\xcancel":$.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return c.backgroundColor&&$.setAttribute("mathbackground",c.backgroundColor),$};hi({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(c,w,C){var $=c.parser,Be=c.funcName,je=Ln(w[0],"color-token").color,xt=w[1];return{type:"enclose",mode:$.mode,label:Be,backgroundColor:je,body:xt}},htmlBuilder:Ll,mathmlBuilder:xl}),hi({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(c,w,C){var $=c.parser,Be=c.funcName,je=Ln(w[0],"color-token").color,xt=Ln(w[1],"color-token").color,bt=w[2];return{type:"enclose",mode:$.mode,label:Be,backgroundColor:xt,borderColor:je,body:bt}},htmlBuilder:Ll,mathmlBuilder:xl}),hi({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(c,w){var C=c.parser;return{type:"enclose",mode:C.mode,label:"\\fbox",body:w[0]}}}),hi({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(c,w,C){var $=c.parser,Be=c.funcName,je=w[0];return{type:"enclose",mode:$.mode,label:Be,body:je}},htmlBuilder:Ll,mathmlBuilder:xl});var jo={};function Gs(He){for(var c=He.type,w=He.names,C=He.props,$=He.handler,Be=He.htmlBuilder,je=He.mathmlBuilder,xt={type:c,numArgs:C.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:$},bt=0;bt<w.length;++bt)jo[w[bt]]=xt;Be&&(es[c]=Be),je&&(ps[c]=je)}function Lo(He){var c=[];He.consumeSpaces();for(var w=He.fetch().text;w==="\\hline"||w==="\\hdashline";)He.consume(),c.push(w==="\\hdashline"),He.consumeSpaces(),w=He.fetch().text;return c}function Za(He,c,w){var C=c.hskipBeforeAndAfter,$=c.addJot,Be=c.cols,je=c.arraystretch,xt=c.colSeparationType;if(He.gullet.beginGroup(),He.gullet.macros.set("\\\\","\\cr"),!je){var bt=He.gullet.expandMacroAsText("\\arraystretch");if(bt==null)je=1;else if(je=parseFloat(bt),!je||je<0)throw new Y("Invalid \\arraystretch: "+bt)}He.gullet.beginGroup();var Jt=[],Ar=[Jt],xr=[],nn=[];for(nn.push(Lo(He));;){var xn=He.parseExpression(!1,"\\cr");He.gullet.endGroup(),He.gullet.beginGroup(),xn={type:"ordgroup",mode:He.mode,body:xn},w&&(xn={type:"styling",mode:He.mode,style:w,body:[xn]}),Jt.push(xn);var Xr=He.fetch().text;if(Xr==="&")He.consume();else if(Xr==="\\end"){Jt.length===1&&xn.type==="styling"&&xn.body[0].body.length===0&&Ar.pop(),nn.length<Ar.length+1&&nn.push([]);break}else if(Xr==="\\cr"){var dn=Ln(He.parseFunction(),"cr");xr.push(dn.size),nn.push(Lo(He)),Jt=[],Ar.push(Jt)}else throw new Y("Expected & or \\\\ or \\cr or \\end",He.nextToken)}return He.gullet.endGroup(),He.gullet.endGroup(),{type:"array",mode:He.mode,addJot:$,arraystretch:je,body:Ar,cols:Be,rowGaps:xr,hskipBeforeAndAfter:C,hLinesBeforeRow:nn,colSeparationType:xt}}function ys(He){return He.substr(0,1)==="d"?"display":"text"}var Xa=function(c,w){var C,$,Be=c.body.length,je=c.hLinesBeforeRow,xt=0,bt=new Array(Be),Jt=[],Ar=Math.max(w.fontMetrics().arrayRuleWidth,w.minRuleThickness),xr=1/w.fontMetrics().ptPerEm,nn=5*xr;if(c.colSeparationType&&c.colSeparationType==="small"){var xn=w.havingStyle(_.SCRIPT).sizeMultiplier;nn=.2778*(xn/w.sizeMultiplier)}var Xr=12*xr,dn=3*xr,kn=c.arraystretch*Xr,Zn=.7*kn,bi=.3*kn,En=0;function pi($s){for(var Ja=0;Ja<$s.length;++Ja)Ja>0&&(En+=.25),Jt.push({pos:En,isDashed:$s[Ja]})}for(pi(je[0]),C=0;C<c.body.length;++C){var Ji=c.body[C],Ki=Zn,Sa=bi;xt<Ji.length&&(xt=Ji.length);var Ia=new Array(Ji.length);for($=0;$<Ji.length;++$){var Xi=aa(Ji[$],w);Sa<Xi.depth&&(Sa=Xi.depth),Ki<Xi.height&&(Ki=Xi.height),Ia[$]=Xi}var Ta=c.rowGaps[C],Ba=0;Ta&&(Ba=yr(Ta,w),Ba>0&&(Ba+=bi,Sa<Ba&&(Sa=Ba),Ba=0)),c.addJot&&(Sa+=dn),Ia.height=Ki,Ia.depth=Sa,En+=Ki,Ia.pos=En,En+=Sa+Ba,bt[C]=Ia,pi(je[C+1])}var si=En/2+w.fontMetrics().axisHeight,Ha=c.cols||[],os=[],sa,ha;for($=0,ha=0;$<xt||ha<Ha.length;++$,++ha){for(var xa=Ha[ha]||{},ja=!0;xa.type==="separator";){if(ja||(sa=Ht.makeSpan(["arraycolsep"],[]),sa.style.width=w.fontMetrics().doubleRuleSep+"em",os.push(sa)),xa.separator==="|"||xa.separator===":"){var ls=xa.separator==="|"?"solid":"dashed",da=Ht.makeSpan(["vertical-separator"],[],w);da.style.height=En+"em",da.style.borderRightWidth=Ar+"em",da.style.borderRightStyle=ls,da.style.margin="0 -"+Ar/2+"em",da.style.verticalAlign=-(En-si)+"em",os.push(da)}else throw new Y("Invalid separator type: "+xa.separator);ha++,xa=Ha[ha]||{},ja=!1}if(!($>=xt)){var Is=void 0;($>0||c.hskipBeforeAndAfter)&&(Is=F.deflt(xa.pregap,nn),Is!==0&&(sa=Ht.makeSpan(["arraycolsep"],[]),sa.style.width=Is+"em",os.push(sa)));var bs=[];for(C=0;C<Be;++C){var Hs=bt[C],Zs=Hs[$];if(Zs){var Xs=Hs.pos-si;Zs.depth=Hs.depth,Zs.height=Hs.height,bs.push({type:"elem",elem:Zs,shift:Xs})}}bs=Ht.makeVList({positionType:"individualShift",children:bs},w),bs=Ht.makeSpan(["col-align-"+(xa.align||"c")],[bs]),os.push(bs),($<xt-1||c.hskipBeforeAndAfter)&&(Is=F.deflt(xa.postgap,nn),Is!==0&&(sa=Ht.makeSpan(["arraycolsep"],[]),sa.style.width=Is+"em",os.push(sa)))}}if(bt=Ht.makeSpan(["mtable"],os),Jt.length>0){for(var Wo=Ht.makeLineSpan("hline",w,Ar),$o=Ht.makeLineSpan("hdashline",w,Ar),ho=[{type:"elem",elem:bt,shift:0}];Jt.length>0;){var oo=Jt.pop(),ro=oo.pos-si;oo.isDashed?ho.push({type:"elem",elem:$o,shift:ro}):ho.push({type:"elem",elem:Wo,shift:ro})}bt=Ht.makeVList({positionType:"individualShift",children:ho},w)}return Ht.makeSpan(["mord"],[bt],w)},Cs={c:"center ",l:"left ",r:"right "},qs=function(c,w){var C=new Yn.MathNode("mtable",c.body.map(function(En){return new Yn.MathNode("mtr",En.map(function(pi){return new Yn.MathNode("mtd",[Ui(pi,w)])}))})),$=c.arraystretch===.5?.1:.16+c.arraystretch-1+(c.addJot?.09:0);C.setAttribute("rowspacing",$+"em");var Be="",je="";if(c.cols){var xt=c.cols,bt="",Jt=!1,Ar=0,xr=xt.length;xt[0].type==="separator"&&(Be+="top ",Ar=1),xt[xt.length-1].type==="separator"&&(Be+="bottom ",xr-=1);for(var nn=Ar;nn<xr;nn++)xt[nn].type==="align"?(je+=Cs[xt[nn].align],Jt&&(bt+="none "),Jt=!0):xt[nn].type==="separator"&&Jt&&(bt+=xt[nn].separator==="|"?"solid ":"dashed ",Jt=!1);C.setAttribute("columnalign",je.trim()),/[sd]/.test(bt)&&C.setAttribute("columnlines",bt.trim())}if(c.colSeparationType==="align"){for(var xn=c.cols||[],Xr="",dn=1;dn<xn.length;dn++)Xr+=dn%2?"0em ":"1em ";C.setAttribute("columnspacing",Xr.trim())}else c.colSeparationType==="alignat"?C.setAttribute("columnspacing","0em"):c.colSeparationType==="small"?C.setAttribute("columnspacing","0.2778em"):C.setAttribute("columnspacing","1em");var kn="",Zn=c.hLinesBeforeRow;Be+=Zn[0].length>0?"left ":"",Be+=Zn[Zn.length-1].length>0?"right ":"";for(var bi=1;bi<Zn.length-1;bi++)kn+=Zn[bi].length===0?"none ":Zn[bi][0]?"dashed ":"solid ";return/[sd]/.test(kn)&&C.setAttribute("rowlines",kn.trim()),Be!==""&&(C=new Yn.MathNode("menclose",[C]),C.setAttribute("notation",Be.trim())),c.arraystretch&&c.arraystretch<1&&(C=new Yn.MathNode("mstyle",[C]),C.setAttribute("scriptlevel","1")),C},El=function(c,w){var C=[],$=Za(c.parser,{cols:C,addJot:!0},"display"),Be,je=0,xt={type:"ordgroup",mode:c.mode,body:[]},bt=Gn(w[0],"ordgroup");if(bt){for(var Jt="",Ar=0;Ar<bt.body.length;Ar++){var xr=Ln(bt.body[Ar],"textord");Jt+=xr.text}Be=Number(Jt),je=Be*2}var nn=!je;$.body.forEach(function(kn){for(var Zn=1;Zn<kn.length;Zn+=2){var bi=Ln(kn[Zn],"styling"),En=Ln(bi.body[0],"ordgroup");En.body.unshift(xt)}if(nn)je<kn.length&&(je=kn.length);else{var pi=kn.length/2;if(Be<pi)throw new Y("Too many math in a row: "+("expected "+Be+", but got "+pi),kn[0])}});for(var xn=0;xn<je;++xn){var Xr="r",dn=0;xn%2===1?Xr="l":xn>0&&nn&&(dn=1),C[xn]={type:"align",align:Xr,pregap:dn,postgap:0}}return $.colSeparationType=nn?"align":"alignat",$};Gs({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(c,w){var C=va(w[0]),$=C?[w[0]]:Ln(w[0],"ordgroup").body,Be=$.map(function(xt){var bt=fa(xt),Jt=bt.text;if("lcr".indexOf(Jt)!==-1)return{type:"align",align:Jt};if(Jt==="|")return{type:"separator",separator:"|"};if(Jt===":")return{type:"separator",separator:":"};throw new Y("Unknown column alignment: "+Jt,xt)}),je={cols:Be,hskipBeforeAndAfter:!0};return Za(c.parser,je,ys(c.envName))},htmlBuilder:Xa,mathmlBuilder:qs}),Gs({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(c){var w={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[c.envName],C={hskipBeforeAndAfter:!1},$=Za(c.parser,C,ys(c.envName));return w?{type:"leftright",mode:c.mode,body:[$],left:w[0],right:w[1],rightColor:void 0}:$},htmlBuilder:Xa,mathmlBuilder:qs}),Gs({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(c){var w={arraystretch:.5},C=Za(c.parser,w,"script");return C.colSeparationType="small",C},htmlBuilder:Xa,mathmlBuilder:qs}),Gs({type:"array",names:["subarray"],props:{numArgs:1},handler:function(c,w){var C=va(w[0]),$=C?[w[0]]:Ln(w[0],"ordgroup").body,Be=$.map(function(xt){var bt=fa(xt),Jt=bt.text;if("lc".indexOf(Jt)!==-1)return{type:"align",align:Jt};throw new Y("Unknown column alignment: "+Jt,xt)});if(Be.length>1)throw new Y("{subarray} can contain only one column");var je={cols:Be,hskipBeforeAndAfter:!1,arraystretch:.5};if(je=Za(c.parser,je,"script"),je.body[0].length>1)throw new Y("{subarray} can contain only one column");return je},htmlBuilder:Xa,mathmlBuilder:qs}),Gs({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(c){var w={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},C=Za(c.parser,w,ys(c.envName));return{type:"leftright",mode:c.mode,body:[C],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Xa,mathmlBuilder:qs}),Gs({type:"array",names:["aligned"],props:{numArgs:0},handler:El,htmlBuilder:Xa,mathmlBuilder:qs}),Gs({type:"array",names:["gathered"],props:{numArgs:0},handler:function(c){var w={cols:[{type:"align",align:"c"}],addJot:!0};return Za(c.parser,w,"display")},htmlBuilder:Xa,mathmlBuilder:qs}),Gs({type:"array",names:["alignedat"],props:{numArgs:1},handler:El,htmlBuilder:Xa,mathmlBuilder:qs}),hi({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(c,w){throw new Y(c.funcName+" valid only within array environment")}});var il=jo,Rl=il;hi({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[0];if(Be.type!=="ordgroup")throw new Y("Invalid environment name",Be);for(var je="",xt=0;xt<Be.body.length;++xt)je+=Ln(Be.body[xt],"textord").text;if($==="\\begin"){if(!Rl.hasOwnProperty(je))throw new Y("No such environment: "+je,Be);var bt=Rl[je],Jt=C.parseArguments("\\begin{"+je+"}",bt),Ar=Jt.args,xr=Jt.optArgs,nn={mode:C.mode,envName:je,parser:C},xn=bt.handler(nn,Ar,xr);C.expect("\\end",!1);var Xr=C.nextToken,dn=Ln(C.parseFunction(),"environment");if(dn.name!==je)throw new Y("Mismatch: \\begin{"+je+"} matched by \\end{"+dn.name+"}",Xr);return xn}return{type:"environment",mode:C.mode,name:je,nameGroup:Be}}});var cu=Ht.makeSpan;function Ol(He,c){var w=la(He.body,c,!0);return cu([He.mclass],w,c)}function Pl(He,c){var w,C=ta(He.body,c);return He.mclass==="minner"?Yn.newDocumentFragment(C):(He.mclass==="mord"?He.isCharacterBox?(w=C[0],w.type="mi"):w=new Yn.MathNode("mi",C):(He.isCharacterBox?(w=C[0],w.type="mo"):w=new Yn.MathNode("mo",C),He.mclass==="mbin"?(w.attributes.lspace="0.22em",w.attributes.rspace="0.22em"):He.mclass==="mpunct"?(w.attributes.lspace="0em",w.attributes.rspace="0.17em"):(He.mclass==="mopen"||He.mclass==="mclose")&&(w.attributes.lspace="0em",w.attributes.rspace="0em")),w)}hi({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[0];return{type:"mclass",mode:C.mode,mclass:"m"+$.substr(5),body:ma(Be),isCharacterBox:F.isCharacterBox(Be)}},htmlBuilder:Ol,mathmlBuilder:Pl});var li=function(c){var w=c.type==="ordgroup"&&c.body.length?c.body[0]:c;return w.type==="atom"&&(w.family==="bin"||w.family==="rel")?"m"+w.family:"mord"};hi({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(c,w){var C=c.parser;return{type:"mclass",mode:C.mode,mclass:li(w[0]),body:[w[1]],isCharacterBox:F.isCharacterBox(w[1])}}}),hi({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[1],je=w[0],xt;$!=="\\stackrel"?xt=li(Be):xt="mrel";var bt={type:"op",mode:Be.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:$!=="\\stackrel",body:ma(Be)},Jt={type:"supsub",mode:je.mode,base:bt,sup:$==="\\underset"?null:je,sub:$==="\\underset"?je:null};return{type:"mclass",mode:C.mode,mclass:xt,body:[Jt],isCharacterBox:F.isCharacterBox(Jt)}},htmlBuilder:Ol,mathmlBuilder:Pl});var Au=function(c,w){var C=c.font,$=w.withFont(C);return aa(c.body,$)},Wl=function(c,w){var C=c.font,$=w.withFont(C);return Ui(c.body,$)},ic={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};hi({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[0],je=$;return je in ic&&(je=ic[je]),{type:"font",mode:C.mode,font:je.slice(1),body:Be}},htmlBuilder:Au,mathmlBuilder:Wl}),hi({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(c,w){var C=c.parser,$=w[0],Be=F.isCharacterBox($);return{type:"mclass",mode:C.mode,mclass:li($),body:[{type:"font",mode:C.mode,font:"boldsymbol",body:$}],isCharacterBox:Be}}}),hi({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(c,w){var C=c.parser,$=c.funcName,Be=c.breakOnTokenText,je=C.mode,xt=C.parseExpression(!0,Be),bt="math"+$.slice(1);return{type:"font",mode:je,font:bt,body:{type:"ordgroup",mode:C.mode,body:xt}}},htmlBuilder:Au,mathmlBuilder:Wl});var ac=function(c,w){var C=w;return c==="display"?C=C.id>=_.SCRIPT.id?C.text():_.DISPLAY:c==="text"&&C.size===_.DISPLAY.size?C=_.TEXT:c==="script"?C=_.SCRIPT:c==="scriptscript"&&(C=_.SCRIPTSCRIPT),C},du=function(c,w){var C=ac(c.size,w.style),$=C.fracNum(),Be=C.fracDen(),je;je=w.havingStyle($);var xt=aa(c.numer,je,w);if(c.continued){var bt=8.5/w.fontMetrics().ptPerEm,Jt=3.5/w.fontMetrics().ptPerEm;xt.height=xt.height<bt?bt:xt.height,xt.depth=xt.depth<Jt?Jt:xt.depth}je=w.havingStyle(Be);var Ar=aa(c.denom,je,w),xr,nn,xn;c.hasBarLine?(c.barSize?(nn=yr(c.barSize,w),xr=Ht.makeLineSpan("frac-line",w,nn)):xr=Ht.makeLineSpan("frac-line",w),nn=xr.height,xn=xr.height):(xr=null,nn=0,xn=w.fontMetrics().defaultRuleThickness);var Xr,dn,kn;C.size===_.DISPLAY.size||c.size==="display"?(Xr=w.fontMetrics().num1,nn>0?dn=3*xn:dn=7*xn,kn=w.fontMetrics().denom1):(nn>0?(Xr=w.fontMetrics().num2,dn=xn):(Xr=w.fontMetrics().num3,dn=3*xn),kn=w.fontMetrics().denom2);var Zn;if(xr){var En=w.fontMetrics().axisHeight;Xr-xt.depth-(En+.5*nn)<dn&&(Xr+=dn-(Xr-xt.depth-(En+.5*nn))),En-.5*nn-(Ar.height-kn)<dn&&(kn+=dn-(En-.5*nn-(Ar.height-kn)));var pi=-(En-.5*nn);Zn=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ar,shift:kn},{type:"elem",elem:xr,shift:pi},{type:"elem",elem:xt,shift:-Xr}]},w)}else{var bi=Xr-xt.depth-(Ar.height-kn);bi<dn&&(Xr+=.5*(dn-bi),kn+=.5*(dn-bi)),Zn=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ar,shift:kn},{type:"elem",elem:xt,shift:-Xr}]},w)}je=w.havingStyle(C),Zn.height*=je.sizeMultiplier/w.sizeMultiplier,Zn.depth*=je.sizeMultiplier/w.sizeMultiplier;var Ji;C.size===_.DISPLAY.size?Ji=w.fontMetrics().delim1:Ji=w.fontMetrics().delim2;var Ki,Sa;return c.leftDelim==null?Ki=gs(w,["mopen"]):Ki=so.customSizedDelim(c.leftDelim,Ji,!0,w.havingStyle(C),c.mode,["mopen"]),c.continued?Sa=Ht.makeSpan([]):c.rightDelim==null?Sa=gs(w,["mclose"]):Sa=so.customSizedDelim(c.rightDelim,Ji,!0,w.havingStyle(C),c.mode,["mclose"]),Ht.makeSpan(["mord"].concat(je.sizingClasses(w)),[Ki,Ht.makeSpan(["mfrac"],[Zn]),Sa],w)},sc=function(c,w){var C=new Yn.MathNode("mfrac",[Ui(c.numer,w),Ui(c.denom,w)]);if(!c.hasBarLine)C.setAttribute("linethickness","0px");else if(c.barSize){var $=yr(c.barSize,w);C.setAttribute("linethickness",$+"em")}var Be=ac(c.size,w.style);if(Be.size!==w.style.size){C=new Yn.MathNode("mstyle",[C]);var je=Be.size===_.DISPLAY.size?"true":"false";C.setAttribute("displaystyle",je),C.setAttribute("scriptlevel","0")}if(c.leftDelim!=null||c.rightDelim!=null){var xt=[];if(c.leftDelim!=null){var bt=new Yn.MathNode("mo",[new Yn.TextNode(c.leftDelim.replace("\\",""))]);bt.setAttribute("fence","true"),xt.push(bt)}if(xt.push(C),c.rightDelim!=null){var Jt=new Yn.MathNode("mo",[new Yn.TextNode(c.rightDelim.replace("\\",""))]);Jt.setAttribute("fence","true"),xt.push(Jt)}return io(xt)}return C};hi({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[0],je=w[1],xt,bt=null,Jt=null,Ar="auto";switch($){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":xt=!0;break;case"\\\\atopfrac":xt=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":xt=!1,bt="(",Jt=")";break;case"\\\\bracefrac":xt=!1,bt="\\{",Jt="\\}";break;case"\\\\brackfrac":xt=!1,bt="[",Jt="]";break;default:throw new Error("Unrecognized genfrac command")}switch($){case"\\cfrac":case"\\dfrac":case"\\dbinom":Ar="display";break;case"\\tfrac":case"\\tbinom":Ar="text";break}return{type:"genfrac",mode:C.mode,continued:$==="\\cfrac",numer:Be,denom:je,hasBarLine:xt,leftDelim:bt,rightDelim:Jt,size:Ar,barSize:null}},htmlBuilder:du,mathmlBuilder:sc}),hi({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(c){var w=c.parser,C=c.funcName,$=c.token,Be;switch(C){case"\\over":Be="\\frac";break;case"\\choose":Be="\\binom";break;case"\\atop":Be="\\\\atopfrac";break;case"\\brace":Be="\\\\bracefrac";break;case"\\brack":Be="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:w.mode,replaceWith:Be,token:$}}});var Xo=["display","text","script","scriptscript"],Hu=function(c){var w=null;return c.length>0&&(w=c,w=w==="."?null:w),w};hi({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(c,w){var C=c.parser,$=w[4],Be=w[5],je=Gn(w[0],"atom");je&&(je=Ci(w[0],"open"));var xt=je?Hu(je.text):null,bt=Gn(w[1],"atom");bt&&(bt=Ci(w[1],"close"));var Jt=bt?Hu(bt.text):null,Ar=Ln(w[2],"size"),xr,nn=null;Ar.isBlank?xr=!0:(nn=Ar.value,xr=nn.number>0);var xn="auto",Xr=Gn(w[3],"ordgroup");if(Xr){if(Xr.body.length>0){var dn=Ln(Xr.body[0],"textord");xn=Xo[Number(dn.text)]}}else Xr=Ln(w[3],"textord"),xn=Xo[Number(Xr.text)];return{type:"genfrac",mode:C.mode,numer:$,denom:Be,continued:!1,hasBarLine:xr,barSize:nn,leftDelim:xt,rightDelim:Jt,size:xn}},htmlBuilder:du,mathmlBuilder:sc}),hi({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(c,w){var C=c.parser,$=c.funcName,Be=c.token;return{type:"infix",mode:C.mode,replaceWith:"\\\\abovefrac",size:Ln(w[0],"size").value,token:Be}}}),hi({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[0],je=S(Ln(w[1],"infix").size),xt=w[2],bt=je.number>0;return{type:"genfrac",mode:C.mode,numer:Be,denom:xt,continued:!1,hasBarLine:bt,barSize:je,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:du,mathmlBuilder:sc});var oc=function(c,w){var C=w.style,$,Be,je=Gn(c,"supsub");je?($=je.sup?aa(je.sup,w.havingStyle(C.sup()),w):aa(je.sub,w.havingStyle(C.sub()),w),Be=Ln(je.base,"horizBrace")):Be=Ln(c,"horizBrace");var xt=aa(Be.base,w.havingBaseStyle(_.DISPLAY)),bt=Ai.svgSpan(Be,w),Jt;if(Be.isOver?(Jt=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:xt},{type:"kern",size:.1},{type:"elem",elem:bt}]},w),Jt.children[0].children[0].children[1].classes.push("svg-align")):(Jt=Ht.makeVList({positionType:"bottom",positionData:xt.depth+.1+bt.height,children:[{type:"elem",elem:bt},{type:"kern",size:.1},{type:"elem",elem:xt}]},w),Jt.children[0].children[0].children[0].classes.push("svg-align")),$){var Ar=Ht.makeSpan(["mord",Be.isOver?"mover":"munder"],[Jt],w);Be.isOver?Jt=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Ar},{type:"kern",size:.2},{type:"elem",elem:$}]},w):Jt=Ht.makeVList({positionType:"bottom",positionData:Ar.depth+.2+$.height+$.depth,children:[{type:"elem",elem:$},{type:"kern",size:.2},{type:"elem",elem:Ar}]},w)}return Ht.makeSpan(["mord",Be.isOver?"mover":"munder"],[Jt],w)},b=function(c,w){var C=Ai.mathMLnode(c.label);return new Yn.MathNode(c.isOver?"mover":"munder",[Ui(c.base,w),C])};hi({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(c,w){var C=c.parser,$=c.funcName;return{type:"horizBrace",mode:C.mode,label:$,isOver:/^\\over/.test($),base:w[0]}},htmlBuilder:oc,mathmlBuilder:b}),hi({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(c,w){var C=c.parser,$=w[1],Be=Ln(w[0],"url").url;return C.settings.isTrusted({command:"\\href",url:Be})?{type:"href",mode:C.mode,href:Be,body:ma($)}:C.formatUnsupportedCmd("\\href")},htmlBuilder:function(c,w){var C=la(c.body,w,!1);return Ht.makeAnchor(c.href,[],C,w)},mathmlBuilder:function(c,w){var C=$i(c.body,w);return C instanceof fs||(C=new fs("mrow",[C])),C.setAttribute("href",c.href),C}}),hi({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(c,w){var C=c.parser,$=Ln(w[0],"url").url;if(!C.settings.isTrusted({command:"\\url",url:$}))return C.formatUnsupportedCmd("\\url");for(var Be=[],je=0;je<$.length;je++){var xt=$[je];xt==="~"&&(xt="\\textasciitilde"),Be.push({type:"textord",mode:"text",text:xt})}var bt={type:"text",mode:C.mode,font:"\\texttt",body:Be};return{type:"href",mode:C.mode,href:$,body:ma(bt)}}}),hi({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(c,w){var C=c.parser;return{type:"htmlmathml",mode:C.mode,html:ma(w[0]),mathml:ma(w[1])}},htmlBuilder:function(c,w){var C=la(c.html,w,!1);return Ht.makeFragment(C)},mathmlBuilder:function(c,w){return $i(c.mathml,w)}});var u=function(c){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(c))return{number:+c,unit:"bp"};var w=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(c);if(!w)throw new Y("Invalid size: '"+c+"' in \\includegraphics");var C={number:+(w[1]+w[2]),unit:w[3]};if(!hr(C))throw new Y("Invalid unit: '"+C.unit+"' in \\includegraphics.");return C};hi({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(c,w,C){var $=c.parser,Be={number:0,unit:"em"},je={number:.9,unit:"em"},xt={number:0,unit:"em"},bt="";if(C[0])for(var Jt=Ln(C[0],"raw").string,Ar=Jt.split(","),xr=0;xr<Ar.length;xr++){var nn=Ar[xr].split("=");if(nn.length===2){var xn=nn[1].trim();switch(nn[0].trim()){case"alt":bt=xn;break;case"width":Be=u(xn);break;case"height":je=u(xn);break;case"totalheight":xt=u(xn);break;default:throw new Y("Invalid key: '"+nn[0]+"' in \\includegraphics.")}}}var Xr=Ln(w[0],"url").url;return bt===""&&(bt=Xr,bt=bt.replace(/^.*[\\/]/,""),bt=bt.substring(0,bt.lastIndexOf("."))),$.settings.isTrusted({command:"\\includegraphics",url:Xr})?{type:"includegraphics",mode:$.mode,alt:bt,width:Be,height:je,totalheight:xt,src:Xr}:$.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(c,w){var C=yr(c.height,w),$=0;c.totalheight.number>0&&($=yr(c.totalheight,w)-C,$=Number($.toFixed(2)));var Be=0;c.width.number>0&&(Be=yr(c.width,w));var je={height:C+$+"em"};Be>0&&(je.width=Be+"em"),$>0&&(je.verticalAlign=-$+"em");var xt=new de(c.src,c.alt,je);return xt.height=C,xt.depth=$,xt},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mglyph",[]);C.setAttribute("alt",c.alt);var $=yr(c.height,w),Be=0;if(c.totalheight.number>0&&(Be=yr(c.totalheight,w)-$,Be=Be.toFixed(2),C.setAttribute("valign","-"+Be+"em")),C.setAttribute("height",$+Be+"em"),c.width.number>0){var je=yr(c.width,w);C.setAttribute("width",je+"em")}return C.setAttribute("src",c.src),C}}),hi({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(c,w){var C=c.parser,$=c.funcName,Be=Ln(w[0],"size");if(C.settings.strict){var je=$[1]==="m",xt=Be.value.unit==="mu";je?(xt||C.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+$+" supports only mu units, "+("not "+Be.value.unit+" units")),C.mode!=="math"&&C.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+$+" works only in math mode")):xt&&C.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+$+" doesn't support mu units")}return{type:"kern",mode:C.mode,dimension:Be.value}},htmlBuilder:function(c,w){return Ht.makeGlue(c.dimension,w)},mathmlBuilder:function(c,w){var C=yr(c.dimension,w);return new Yn.SpaceNode(C)}}),hi({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[0];return{type:"lap",mode:C.mode,alignment:$.slice(5),body:Be}},htmlBuilder:function(c,w){var C;c.alignment==="clap"?(C=Ht.makeSpan([],[aa(c.body,w)]),C=Ht.makeSpan(["inner"],[C],w)):C=Ht.makeSpan(["inner"],[aa(c.body,w)]);var $=Ht.makeSpan(["fix"],[]),Be=Ht.makeSpan([c.alignment],[C,$],w),je=Ht.makeSpan(["strut"]);return je.style.height=Be.height+Be.depth+"em",je.style.verticalAlign=-Be.depth+"em",Be.children.unshift(je),Be=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Be}]},w),Ht.makeSpan(["mord"],[Be],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mpadded",[Ui(c.body,w)]);if(c.alignment!=="rlap"){var $=c.alignment==="llap"?"-1":"-0.5";C.setAttribute("lspace",$+"width")}return C.setAttribute("width","0px"),C}}),hi({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(c,w){var C=c.funcName,$=c.parser,Be=$.mode;$.switchMode("math");var je=C==="\\("?"\\)":"$",xt=$.parseExpression(!1,je);return $.expect(je),$.switchMode(Be),{type:"styling",mode:$.mode,style:"text",body:xt}}}),hi({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(c,w){throw new Y("Mismatched "+c.funcName)}});var y=function(c,w){switch(w.style.size){case _.DISPLAY.size:return c.display;case _.TEXT.size:return c.text;case _.SCRIPT.size:return c.script;case _.SCRIPTSCRIPT.size:return c.scriptscript;default:return c.text}};hi({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(c,w){var C=c.parser;return{type:"mathchoice",mode:C.mode,display:ma(w[0]),text:ma(w[1]),script:ma(w[2]),scriptscript:ma(w[3])}},htmlBuilder:function(c,w){var C=y(c,w),$=la(C,w,!1);return Ht.makeFragment($)},mathmlBuilder:function(c,w){var C=y(c,w);return $i(C,w)}});var M=function(c,w,C,$,Be,je,xt){c=Ht.makeSpan([],[c]);var bt,Jt;if(w){var Ar=aa(w,$.havingStyle(Be.sup()),$);Jt={elem:Ar,kern:Math.max($.fontMetrics().bigOpSpacing1,$.fontMetrics().bigOpSpacing3-Ar.depth)}}if(C){var xr=aa(C,$.havingStyle(Be.sub()),$);bt={elem:xr,kern:Math.max($.fontMetrics().bigOpSpacing2,$.fontMetrics().bigOpSpacing4-xr.height)}}var nn;if(Jt&&bt){var xn=$.fontMetrics().bigOpSpacing5+bt.elem.height+bt.elem.depth+bt.kern+c.depth+xt;nn=Ht.makeVList({positionType:"bottom",positionData:xn,children:[{type:"kern",size:$.fontMetrics().bigOpSpacing5},{type:"elem",elem:bt.elem,marginLeft:-je+"em"},{type:"kern",size:bt.kern},{type:"elem",elem:c},{type:"kern",size:Jt.kern},{type:"elem",elem:Jt.elem,marginLeft:je+"em"},{type:"kern",size:$.fontMetrics().bigOpSpacing5}]},$)}else if(bt){var Xr=c.height-xt;nn=Ht.makeVList({positionType:"top",positionData:Xr,children:[{type:"kern",size:$.fontMetrics().bigOpSpacing5},{type:"elem",elem:bt.elem,marginLeft:-je+"em"},{type:"kern",size:bt.kern},{type:"elem",elem:c}]},$)}else if(Jt){var dn=c.depth+xt;nn=Ht.makeVList({positionType:"bottom",positionData:dn,children:[{type:"elem",elem:c},{type:"kern",size:Jt.kern},{type:"elem",elem:Jt.elem,marginLeft:je+"em"},{type:"kern",size:$.fontMetrics().bigOpSpacing5}]},$)}else return c;return Ht.makeSpan(["mop","op-limits"],[nn],$)},ne=["\\smallint"],Z=function(c,w){var C,$,Be=!1,je,xt=Gn(c,"supsub");xt?(C=xt.sup,$=xt.sub,je=Ln(xt.base,"op"),Be=!0):je=Ln(c,"op");var bt=w.style,Jt=!1;bt.size===_.DISPLAY.size&&je.symbol&&!F.contains(ne,je.name)&&(Jt=!0);var Ar;if(je.symbol){var xr=Jt?"Size2-Regular":"Size1-Regular",nn="";if((je.name==="\\oiint"||je.name==="\\oiiint")&&(nn=je.name.substr(1),je.name=nn==="oiint"?"\\iint":"\\iiint"),Ar=Ht.makeSymbol(je.name,xr,"math",w,["mop","op-symbol",Jt?"large-op":"small-op"]),nn.length>0){var xn=Ar.italic,Xr=Ht.staticSvg(nn+"Size"+(Jt?"2":"1"),w);Ar=Ht.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Ar,shift:0},{type:"elem",elem:Xr,shift:Jt?.08:0}]},w),je.name="\\"+nn,Ar.classes.unshift("mop"),Ar.italic=xn}}else if(je.body){var dn=la(je.body,w,!0);dn.length===1&&dn[0]instanceof P?(Ar=dn[0],Ar.classes[0]="mop"):Ar=Ht.makeSpan(["mop"],Ht.tryCombineChars(dn),w)}else{for(var kn=[],Zn=1;Zn<je.name.length;Zn++)kn.push(Ht.mathsym(je.name[Zn],je.mode,w));Ar=Ht.makeSpan(["mop"],kn,w)}var bi=0,En=0;return(Ar instanceof P||je.name==="\\oiint"||je.name==="\\oiiint")&&!je.suppressBaseShift&&(bi=(Ar.height-Ar.depth)/2-w.fontMetrics().axisHeight,En=Ar.italic),Be?M(Ar,C,$,w,bt,En,bi):(bi&&(Ar.style.position="relative",Ar.style.top=bi+"em"),Ar)},ge=function(c,w){var C;if(c.symbol)C=new fs("mo",[Da(c.name,c.mode)]),F.contains(ne,c.name)&&C.setAttribute("largeop","false");else if(c.body)C=new fs("mo",ta(c.body,w));else{C=new fs("mi",[new _o(c.name.slice(1))]);var $=new fs("mo",[Da("\u2061","text")]);c.parentIsSupSub?C=new fs("mo",[C,$]):C=Co([C,$])}return C},De={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};hi({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(c,w){var C=c.parser,$=c.funcName,Be=$;return Be.length===1&&(Be=De[Be]),{type:"op",mode:C.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Be}},htmlBuilder:Z,mathmlBuilder:ge}),hi({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(c,w){var C=c.parser,$=w[0];return{type:"op",mode:C.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ma($)}},htmlBuilder:Z,mathmlBuilder:ge});var Ne={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};hi({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(c){var w=c.parser,C=c.funcName;return{type:"op",mode:w.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:C}},htmlBuilder:Z,mathmlBuilder:ge}),hi({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(c){var w=c.parser,C=c.funcName;return{type:"op",mode:w.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:C}},htmlBuilder:Z,mathmlBuilder:ge}),hi({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(c){var w=c.parser,C=c.funcName,$=C;return $.length===1&&($=Ne[$]),{type:"op",mode:w.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:$}},htmlBuilder:Z,mathmlBuilder:ge});var tt=function(c,w){var C,$,Be=!1,je,xt=Gn(c,"supsub");xt?(C=xt.sup,$=xt.sub,je=Ln(xt.base,"operatorname"),Be=!0):je=Ln(c,"operatorname");var bt;if(je.body.length>0){for(var Jt=je.body.map(function(xn){var Xr=xn.text;return typeof Xr=="string"?{type:"textord",mode:xn.mode,text:Xr}:xn}),Ar=la(Jt,w.withFont("mathrm"),!0),xr=0;xr<Ar.length;xr++){var nn=Ar[xr];nn instanceof P&&(nn.text=nn.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}bt=Ht.makeSpan(["mop"],Ar,w)}else bt=Ht.makeSpan(["mop"],[],w);return Be?M(bt,C,$,w,w.style,0,0):bt},yt=function(c,w){for(var C=ta(c.body,w.withFont("mathrm")),$=!0,Be=0;Be<C.length;Be++){var je=C[Be];if(!(je instanceof Yn.SpaceNode))if(je instanceof Yn.MathNode)switch(je.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var xt=je.children[0];je.children.length===1&&xt instanceof Yn.TextNode?xt.text=xt.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):$=!1;break}default:$=!1}else $=!1}if($){var bt=C.map(function(xr){return xr.toText()}).join("");C=[new Yn.TextNode(bt)]}var Jt=new Yn.MathNode("mi",C);Jt.setAttribute("mathvariant","normal");var Ar=new Yn.MathNode("mo",[Da("\u2061","text")]);return c.parentIsSupSub?new Yn.MathNode("mo",[Jt,Ar]):Yn.newDocumentFragment([Jt,Ar])};hi({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[0];return{type:"operatorname",mode:C.mode,body:ma(Be),alwaysHandleSupSub:$==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:tt,mathmlBuilder:yt}),Ca({type:"ordgroup",htmlBuilder:function(c,w){return c.semisimple?Ht.makeFragment(la(c.body,w,!1)):Ht.makeSpan(["mord"],la(c.body,w,!0),w)},mathmlBuilder:function(c,w){return $i(c.body,w,!0)}}),hi({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(c,w){var C=c.parser,$=w[0];return{type:"overline",mode:C.mode,body:$}},htmlBuilder:function(c,w){var C=aa(c.body,w.havingCrampedStyle()),$=Ht.makeLineSpan("overline-line",w),Be=w.fontMetrics().defaultRuleThickness,je=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C},{type:"kern",size:3*Be},{type:"elem",elem:$},{type:"kern",size:Be}]},w);return Ht.makeSpan(["mord","overline"],[je],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mo",[new Yn.TextNode("\u203E")]);C.setAttribute("stretchy","true");var $=new Yn.MathNode("mover",[Ui(c.body,w),C]);return $.setAttribute("accent","true"),$}}),hi({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser,$=w[0];return{type:"phantom",mode:C.mode,body:ma($)}},htmlBuilder:function(c,w){var C=la(c.body,w.withPhantom(),!1);return Ht.makeFragment(C)},mathmlBuilder:function(c,w){var C=ta(c.body,w);return new Yn.MathNode("mphantom",C)}}),hi({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser,$=w[0];return{type:"hphantom",mode:C.mode,body:$}},htmlBuilder:function(c,w){var C=Ht.makeSpan([],[aa(c.body,w.withPhantom())]);if(C.height=0,C.depth=0,C.children)for(var $=0;$<C.children.length;$++)C.children[$].height=0,C.children[$].depth=0;return C=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C}]},w),Ht.makeSpan(["mord"],[C],w)},mathmlBuilder:function(c,w){var C=ta(ma(c.body),w),$=new Yn.MathNode("mphantom",C),Be=new Yn.MathNode("mpadded",[$]);return Be.setAttribute("height","0px"),Be.setAttribute("depth","0px"),Be}}),hi({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser,$=w[0];return{type:"vphantom",mode:C.mode,body:$}},htmlBuilder:function(c,w){var C=Ht.makeSpan(["inner"],[aa(c.body,w.withPhantom())]),$=Ht.makeSpan(["fix"],[]);return Ht.makeSpan(["mord","rlap"],[C,$],w)},mathmlBuilder:function(c,w){var C=ta(ma(c.body),w),$=new Yn.MathNode("mphantom",C),Be=new Yn.MathNode("mpadded",[$]);return Be.setAttribute("width","0px"),Be}}),hi({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(c,w){var C=c.parser,$=Ln(w[0],"size").value,Be=w[1];return{type:"raisebox",mode:C.mode,dy:$,body:Be}},htmlBuilder:function(c,w){var C=aa(c.body,w),$=yr(c.dy,w);return Ht.makeVList({positionType:"shift",positionData:-$,children:[{type:"elem",elem:C}]},w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mpadded",[Ui(c.body,w)]),$=c.dy.number+c.dy.unit;return C.setAttribute("voffset",$),C}}),hi({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(c,w,C){var $=c.parser,Be=C[0],je=Ln(w[0],"size"),xt=Ln(w[1],"size");return{type:"rule",mode:$.mode,shift:Be&&Ln(Be,"size").value,width:je.value,height:xt.value}},htmlBuilder:function(c,w){var C=Ht.makeSpan(["mord","rule"],[],w),$=yr(c.width,w),Be=yr(c.height,w),je=c.shift?yr(c.shift,w):0;return C.style.borderRightWidth=$+"em",C.style.borderTopWidth=Be+"em",C.style.bottom=je+"em",C.width=$,C.height=Be+je,C.depth=-je,C.maxFontSize=Be*1.125*w.sizeMultiplier,C},mathmlBuilder:function(c,w){var C=yr(c.width,w),$=yr(c.height,w),Be=c.shift?yr(c.shift,w):0,je=w.color&&w.getColor()||"black",xt=new Yn.MathNode("mspace");xt.setAttribute("mathbackground",je),xt.setAttribute("width",C+"em"),xt.setAttribute("height",$+"em");var bt=new Yn.MathNode("mpadded",[xt]);return Be>=0?bt.setAttribute("height","+"+Be+"em"):(bt.setAttribute("height",Be+"em"),bt.setAttribute("depth","+"+-Be+"em")),bt.setAttribute("voffset",Be+"em"),bt}});function vt(He,c,w){for(var C=la(He,c,!1),$=c.sizeMultiplier/w.sizeMultiplier,Be=0;Be<C.length;Be++){var je=C[Be].classes.indexOf("sizing");je<0?Array.prototype.push.apply(C[Be].classes,c.sizingClasses(w)):C[Be].classes[je+1]==="reset-size"+c.size&&(C[Be].classes[je+1]="reset-size"+w.size),C[Be].height*=$,C[Be].depth*=$}return Ht.makeFragment(C)}var Pt=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ye=function(c,w){var C=w.havingSize(c.size);return vt(c.body,C,w)};hi({type:"sizing",names:Pt,props:{numArgs:0,allowedInText:!0},handler:function(c,w){var C=c.breakOnTokenText,$=c.funcName,Be=c.parser,je=Be.parseExpression(!1,C);return{type:"sizing",mode:Be.mode,size:Pt.indexOf($)+1,body:je}},htmlBuilder:Ye,mathmlBuilder:function(c,w){var C=w.havingSize(c.size),$=ta(c.body,C),Be=new Yn.MathNode("mstyle",$);return Be.setAttribute("mathsize",C.sizeMultiplier+"em"),Be}}),hi({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(c,w,C){var $=c.parser,Be=!1,je=!1,xt=C[0]&&Ln(C[0],"ordgroup");if(xt)for(var bt="",Jt=0;Jt<xt.body.length;++Jt){var Ar=xt.body[Jt];if(bt=Ar.text,bt==="t")Be=!0;else if(bt==="b")je=!0;else{Be=!1,je=!1;break}}else Be=!0,je=!0;var xr=w[0];return{type:"smash",mode:$.mode,body:xr,smashHeight:Be,smashDepth:je}},htmlBuilder:function(c,w){var C=Ht.makeSpan([],[aa(c.body,w)]);if(!c.smashHeight&&!c.smashDepth)return C;if(c.smashHeight&&(C.height=0,C.children))for(var $=0;$<C.children.length;$++)C.children[$].height=0;if(c.smashDepth&&(C.depth=0,C.children))for(var Be=0;Be<C.children.length;Be++)C.children[Be].depth=0;var je=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C}]},w);return Ht.makeSpan(["mord"],[je],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mpadded",[Ui(c.body,w)]);return c.smashHeight&&C.setAttribute("height","0px"),c.smashDepth&&C.setAttribute("depth","0px"),C}}),hi({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(c,w,C){var $=c.parser,Be=C[0],je=w[0];return{type:"sqrt",mode:$.mode,body:je,index:Be}},htmlBuilder:function(c,w){var C=aa(c.body,w.havingCrampedStyle());C.height===0&&(C.height=w.fontMetrics().xHeight),C=Ht.wrapFragment(C,w);var $=w.fontMetrics(),Be=$.defaultRuleThickness,je=Be;w.style.id<_.TEXT.id&&(je=w.fontMetrics().xHeight);var xt=Be+je/4,bt=C.height+C.depth+xt+Be,Jt=so.sqrtImage(bt,w),Ar=Jt.span,xr=Jt.ruleWidth,nn=Jt.advanceWidth,xn=Ar.height-xr;xn>C.height+C.depth+xt&&(xt=(xt+xn-C.height-C.depth)/2);var Xr=Ar.height-C.height-xt-xr;C.style.paddingLeft=nn+"em";var dn=Ht.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:C,wrapperClasses:["svg-align"]},{type:"kern",size:-(C.height+Xr)},{type:"elem",elem:Ar},{type:"kern",size:xr}]},w);if(c.index){var kn=w.havingStyle(_.SCRIPTSCRIPT),Zn=aa(c.index,kn,w),bi=.6*(dn.height-dn.depth),En=Ht.makeVList({positionType:"shift",positionData:-bi,children:[{type:"elem",elem:Zn}]},w),pi=Ht.makeSpan(["root"],[En]);return Ht.makeSpan(["mord","sqrt"],[pi,dn],w)}else return Ht.makeSpan(["mord","sqrt"],[dn],w)},mathmlBuilder:function(c,w){var C=c.body,$=c.index;return $?new Yn.MathNode("mroot",[Ui(C,w),Ui($,w)]):new Yn.MathNode("msqrt",[Ui(C,w)])}});var cr={display:_.DISPLAY,text:_.TEXT,script:_.SCRIPT,scriptscript:_.SCRIPTSCRIPT};hi({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(c,w){var C=c.breakOnTokenText,$=c.funcName,Be=c.parser,je=Be.parseExpression(!0,C),xt=$.slice(1,$.length-5);return{type:"styling",mode:Be.mode,style:xt,body:je}},htmlBuilder:function(c,w){var C=cr[c.style],$=w.havingStyle(C).withFont("");return vt(c.body,$,w)},mathmlBuilder:function(c,w){var C=cr[c.style],$=w.havingStyle(C),Be=ta(c.body,$),je=new Yn.MathNode("mstyle",Be),xt={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},bt=xt[c.style];return je.setAttribute("scriptlevel",bt[0]),je.setAttribute("displaystyle",bt[1]),je}});var tr=function(c,w){var C=c.base;if(C)if(C.type==="op"){var $=C.limits&&(w.style.size===_.DISPLAY.size||C.alwaysHandleSupSub);return $?Z:null}else if(C.type==="operatorname"){var Be=C.alwaysHandleSupSub&&(w.style.size===_.DISPLAY.size||C.limits);return Be?tt:null}else{if(C.type==="accent")return F.isCharacterBox(C.base)?ua:null;if(C.type==="horizBrace"){var je=!c.sub;return je===C.isOver?oc:null}else return null}else return null};Ca({type:"supsub",htmlBuilder:function(c,w){var C=tr(c,w);if(C)return C(c,w);var $=c.base,Be=c.sup,je=c.sub,xt=aa($,w),bt,Jt,Ar=w.fontMetrics(),xr=0,nn=0,xn=$&&F.isCharacterBox($);if(Be){var Xr=w.havingStyle(w.style.sup());bt=aa(Be,Xr,w),xn||(xr=xt.height-Xr.fontMetrics().supDrop*Xr.sizeMultiplier/w.sizeMultiplier)}if(je){var dn=w.havingStyle(w.style.sub());Jt=aa(je,dn,w),xn||(nn=xt.depth+dn.fontMetrics().subDrop*dn.sizeMultiplier/w.sizeMultiplier)}var kn;w.style===_.DISPLAY?kn=Ar.sup1:w.style.cramped?kn=Ar.sup3:kn=Ar.sup2;var Zn=w.sizeMultiplier,bi=.5/Ar.ptPerEm/Zn+"em",En=null;if(Jt){var pi=c.base&&c.base.type==="op"&&c.base.name&&(c.base.name==="\\oiint"||c.base.name==="\\oiiint");(xt instanceof P||pi)&&(En=-xt.italic+"em")}var Ji;if(bt&&Jt){xr=Math.max(xr,kn,bt.depth+.25*Ar.xHeight),nn=Math.max(nn,Ar.sub2);var Ki=Ar.defaultRuleThickness,Sa=4*Ki;if(xr-bt.depth-(Jt.height-nn)<Sa){nn=Sa-(xr-bt.depth)+Jt.height;var Ia=.8*Ar.xHeight-(xr-bt.depth);Ia>0&&(xr+=Ia,nn-=Ia)}var Xi=[{type:"elem",elem:Jt,shift:nn,marginRight:bi,marginLeft:En},{type:"elem",elem:bt,shift:-xr,marginRight:bi}];Ji=Ht.makeVList({positionType:"individualShift",children:Xi},w)}else if(Jt){nn=Math.max(nn,Ar.sub1,Jt.height-.8*Ar.xHeight);var Ta=[{type:"elem",elem:Jt,marginLeft:En,marginRight:bi}];Ji=Ht.makeVList({positionType:"shift",positionData:nn,children:Ta},w)}else if(bt)xr=Math.max(xr,kn,bt.depth+.25*Ar.xHeight),Ji=Ht.makeVList({positionType:"shift",positionData:-xr,children:[{type:"elem",elem:bt,marginRight:bi}]},w);else throw new Error("supsub must have either sup or sub.");var Ba=Wi(xt,"right")||"mord";return Ht.makeSpan([Ba],[xt,Ht.makeSpan(["msupsub"],[Ji])],w)},mathmlBuilder:function(c,w){var C=!1,$,Be,je=Gn(c.base,"horizBrace");je&&(Be=!!c.sup,Be===je.isOver&&(C=!0,$=je.isOver)),c.base&&(c.base.type==="op"||c.base.type==="operatorname")&&(c.base.parentIsSupSub=!0);var xt=[Ui(c.base,w)];c.sub&&xt.push(Ui(c.sub,w)),c.sup&&xt.push(Ui(c.sup,w));var bt;if(C)bt=$?"mover":"munder";else if(c.sub)if(c.sup){var xr=c.base;xr&&xr.type==="op"&&xr.limits&&w.style===_.DISPLAY||xr&&xr.type==="operatorname"&&xr.alwaysHandleSupSub&&(w.style===_.DISPLAY||xr.limits)?bt="munderover":bt="msubsup"}else{var Ar=c.base;Ar&&Ar.type==="op"&&Ar.limits&&(w.style===_.DISPLAY||Ar.alwaysHandleSupSub)||Ar&&Ar.type==="operatorname"&&Ar.alwaysHandleSupSub&&(Ar.limits||w.style===_.DISPLAY)?bt="munder":bt="msub"}else{var Jt=c.base;Jt&&Jt.type==="op"&&Jt.limits&&(w.style===_.DISPLAY||Jt.alwaysHandleSupSub)||Jt&&Jt.type==="operatorname"&&Jt.alwaysHandleSupSub&&(Jt.limits||w.style===_.DISPLAY)?bt="mover":bt="msup"}var nn=new Yn.MathNode(bt,xt);return nn}}),Ca({type:"atom",htmlBuilder:function(c,w){return Ht.mathsym(c.text,c.mode,w,["m"+c.family])},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mo",[Da(c.text,c.mode)]);if(c.family==="bin"){var $=Zi(c,w);$==="bold-italic"&&C.setAttribute("mathvariant",$)}else c.family==="punct"?C.setAttribute("separator","true"):(c.family==="open"||c.family==="close")&&C.setAttribute("stretchy","false");return C}});var dr={mi:"italic",mn:"normal",mtext:"normal"};Ca({type:"mathord",htmlBuilder:function(c,w){return Ht.makeOrd(c,w,"mathord")},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mi",[Da(c.text,c.mode,w)]),$=Zi(c,w)||"italic";return $!==dr[C.type]&&C.setAttribute("mathvariant",$),C}}),Ca({type:"textord",htmlBuilder:function(c,w){return Ht.makeOrd(c,w,"textord")},mathmlBuilder:function(c,w){var C=Da(c.text,c.mode,w),$=Zi(c,w)||"normal",Be;return c.mode==="text"?Be=new Yn.MathNode("mtext",[C]):/[0-9]/.test(c.text)?Be=new Yn.MathNode("mn",[C]):c.text==="\\prime"?Be=new Yn.MathNode("mo",[C]):Be=new Yn.MathNode("mi",[C]),$!==dr[Be.type]&&Be.setAttribute("mathvariant",$),Be}});var Qt={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},pr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ca({type:"spacing",htmlBuilder:function(c,w){if(pr.hasOwnProperty(c.text)){var C=pr[c.text].className||"";if(c.mode==="text"){var $=Ht.makeOrd(c,w,"textord");return $.classes.push(C),$}else return Ht.makeSpan(["mspace",C],[Ht.mathsym(c.text,c.mode,w)],w)}else{if(Qt.hasOwnProperty(c.text))return Ht.makeSpan(["mspace",Qt[c.text]],[],w);throw new Y('Unknown type of space "'+c.text+'"')}},mathmlBuilder:function(c,w){var C;if(pr.hasOwnProperty(c.text))C=new Yn.MathNode("mtext",[new Yn.TextNode("\xA0")]);else{if(Qt.hasOwnProperty(c.text))return new Yn.MathNode("mspace");throw new Y('Unknown type of space "'+c.text+'"')}return C}});var Ur=function(){var c=new Yn.MathNode("mtd",[]);return c.setAttribute("width","50%"),c};Ca({type:"tag",mathmlBuilder:function(c,w){var C=new Yn.MathNode("mtable",[new Yn.MathNode("mtr",[Ur(),new Yn.MathNode("mtd",[$i(c.body,w)]),Ur(),new Yn.MathNode("mtd",[$i(c.tag,w)])])]);return C.setAttribute("width","100%"),C}});var sn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Rn={"\\textbf":"textbf","\\textmd":"textmd"},ci={"\\textit":"textit","\\textup":"textup"},pn=function(c,w){var C=c.font;return C?sn[C]?w.withTextFontFamily(sn[C]):Rn[C]?w.withTextFontWeight(Rn[C]):w.withTextFontShape(ci[C]):w};hi({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(c,w){var C=c.parser,$=c.funcName,Be=w[0];return{type:"text",mode:C.mode,body:ma(Be),font:$}},htmlBuilder:function(c,w){var C=pn(c,w),$=la(c.body,C,!0);return Ht.makeSpan(["mord","text"],Ht.tryCombineChars($),C)},mathmlBuilder:function(c,w){var C=pn(c,w);return $i(c.body,C)}}),hi({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(c,w){var C=c.parser;return{type:"underline",mode:C.mode,body:w[0]}},htmlBuilder:function(c,w){var C=aa(c.body,w),$=Ht.makeLineSpan("underline-line",w),Be=w.fontMetrics().defaultRuleThickness,je=Ht.makeVList({positionType:"top",positionData:C.height,children:[{type:"kern",size:Be},{type:"elem",elem:$},{type:"kern",size:3*Be},{type:"elem",elem:C}]},w);return Ht.makeSpan(["mord","underline"],[je],w)},mathmlBuilder:function(c,w){var C=new Yn.MathNode("mo",[new Yn.TextNode("\u203E")]);C.setAttribute("stretchy","true");var $=new Yn.MathNode("munder",[Ui(c.body,w),C]);return $.setAttribute("accentunder","true"),$}}),hi({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(c,w,C){throw new Y("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(c,w){for(var C=Br(c),$=[],Be=w.havingStyle(w.style.text()),je=0;je<C.length;je++){var xt=C[je];xt==="~"&&(xt="\\textasciitilde"),$.push(Ht.makeSymbol(xt,"Typewriter-Regular",c.mode,Be,["mord","texttt"]))}return Ht.makeSpan(["mord","text"].concat(Be.sizingClasses(w)),Ht.tryCombineChars($),Be)},mathmlBuilder:function(c,w){var C=new Yn.TextNode(Br(c)),$=new Yn.MathNode("mtext",[C]);return $.setAttribute("mathvariant","monospace"),$}});var Br=function(c){return c.body.replace(/ /g,c.star?"\u2423":"\xA0")},bn=Aa,Pn=bn,er=`[ \r
|
|
|
]`,nr="\\\\[a-zA-Z@]+",ye="\\\\[^\uD800-\uDFFF]",Ee=""+nr+er+"*",et=new RegExp("^("+nr+")"+er+"*$"),st="[\u0300-\u036F]",gt=new RegExp(st+"+$"),ht="("+er+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(st+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(st+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+Ee)+("|"+ye+")"),Ut=function(){function He(w,C){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=w,this.settings=C,this.tokenRegex=new RegExp(ht,"g"),this.catcodes={"%":14}}var c=He.prototype;return c.setCatcode=function(C,$){this.catcodes[C]=$},c.lex=function(){var C=this.input,$=this.tokenRegex.lastIndex;if($===C.length)return new ke("EOF",new se(this,$,$));var Be=this.tokenRegex.exec(C);if(Be===null||Be.index!==$)throw new Y("Unexpected character: '"+C[$]+"'",new ke(C[$],new se(this,$,$+1)));var je=Be[2]||" ";if(this.catcodes[je]===14){var xt=C.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return xt===-1?(this.tokenRegex.lastIndex=C.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=xt+1,this.lex()}var bt=je.match(et);return bt&&(je=bt[1]),new ke(je,new se(this,$,this.tokenRegex.lastIndex))},He}(),$t=function(){function He(w,C){w===void 0&&(w={}),C===void 0&&(C={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=C,this.builtins=w,this.undefStack=[]}var c=He.prototype;return c.beginGroup=function(){this.undefStack.push({})},c.endGroup=function(){if(this.undefStack.length===0)throw new Y("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var C=this.undefStack.pop();for(var $ in C)C.hasOwnProperty($)&&(C[$]===void 0?delete this.current[$]:this.current[$]=C[$])},c.has=function(C){return this.current.hasOwnProperty(C)||this.builtins.hasOwnProperty(C)},c.get=function(C){return this.current.hasOwnProperty(C)?this.current[C]:this.builtins[C]},c.set=function(C,$,Be){if(Be===void 0&&(Be=!1),Be){for(var je=0;je<this.undefStack.length;je++)delete this.undefStack[je][C];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][C]=$)}else{var xt=this.undefStack[this.undefStack.length-1];xt&&!xt.hasOwnProperty(C)&&(xt[C]=this.current[C])}this.current[C]=$},He}(),sr={},ze=sr;function Ce(He,c){sr[He]=c}Ce("\\@firstoftwo",function(He){var c=He.consumeArgs(2);return{tokens:c[0],numArgs:0}}),Ce("\\@secondoftwo",function(He){var c=He.consumeArgs(2);return{tokens:c[1],numArgs:0}}),Ce("\\@ifnextchar",function(He){var c=He.consumeArgs(3),w=He.future();return c[0].length===1&&c[0][0].text===w.text?{tokens:c[1],numArgs:0}:{tokens:c[2],numArgs:0}}),Ce("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Ce("\\TextOrMath",function(He){var c=He.consumeArgs(2);return He.mode==="text"?{tokens:c[0],numArgs:0}:{tokens:c[1],numArgs:0}});var wt={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};Ce("\\char",function(He){var c=He.popToken(),w,C="";if(c.text==="'")w=8,c=He.popToken();else if(c.text==='"')w=16,c=He.popToken();else if(c.text==="`")if(c=He.popToken(),c.text[0]==="\\")C=c.text.charCodeAt(1);else{if(c.text==="EOF")throw new Y("\\char` missing argument");C=c.text.charCodeAt(0)}else w=10;if(w){if(C=wt[c.text],C==null||C>=w)throw new Y("Invalid base-"+w+" digit "+c.text);for(var $;($=wt[He.future().text])!=null&&$<w;)C*=w,C+=$,He.popToken()}return"\\@char{"+C+"}"});var jt=function(c,w){var C=c.consumeArgs(1)[0];if(C.length!==1)throw new Y("\\gdef's first argument must be a macro name");var $=C[0].text,Be=0;for(C=c.consumeArgs(1)[0];C.length===1&&C[0].text==="#";){if(C=c.consumeArgs(1)[0],C.length!==1)throw new Y('Invalid argument number length "'+C.length+'"');if(!/^[1-9]$/.test(C[0].text))throw new Y('Invalid argument number "'+C[0].text+'"');if(Be++,parseInt(C[0].text)!==Be)throw new Y('Argument number "'+C[0].text+'" out of order');C=c.consumeArgs(1)[0]}return c.macros.set($,{tokens:C,numArgs:Be},w),""};Ce("\\gdef",function(He){return jt(He,!0)}),Ce("\\def",function(He){return jt(He,!1)}),Ce("\\global",function(He){var c=He.consumeArgs(1)[0];if(c.length!==1)throw new Y("Invalid command after \\global");var w=c[0].text;if(w==="\\def")return jt(He,!0);throw new Y("Invalid command '"+w+"' after \\global")});var Wt=function(c,w,C){var $=c.consumeArgs(1)[0];if($.length!==1)throw new Y("\\newcommand's first argument must be a macro name");var Be=$[0].text,je=c.isDefined(Be);if(je&&!w)throw new Y("\\newcommand{"+Be+"} attempting to redefine "+(Be+"; use \\renewcommand"));if(!je&&!C)throw new Y("\\renewcommand{"+Be+"} when command "+Be+" does not yet exist; use \\newcommand");var xt=0;if($=c.consumeArgs(1)[0],$.length===1&&$[0].text==="["){for(var bt="",Jt=c.expandNextToken();Jt.text!=="]"&&Jt.text!=="EOF";)bt+=Jt.text,Jt=c.expandNextToken();if(!bt.match(/^\s*[0-9]+\s*$/))throw new Y("Invalid number of arguments: "+bt);xt=parseInt(bt),$=c.consumeArgs(1)[0]}return c.macros.set(Be,{tokens:$,numArgs:xt}),""};Ce("\\newcommand",function(He){return Wt(He,!1,!0)}),Ce("\\renewcommand",function(He){return Wt(He,!0,!1)}),Ce("\\providecommand",function(He){return Wt(He,!0,!0)}),Ce("\\bgroup","{"),Ce("\\egroup","}"),Ce("\\lq","`"),Ce("\\rq","'"),Ce("\\aa","\\r a"),Ce("\\AA","\\r A"),Ce("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Ce("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Ce("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Ce("\u212C","\\mathscr{B}"),Ce("\u2130","\\mathscr{E}"),Ce("\u2131","\\mathscr{F}"),Ce("\u210B","\\mathscr{H}"),Ce("\u2110","\\mathscr{I}"),Ce("\u2112","\\mathscr{L}"),Ce("\u2133","\\mathscr{M}"),Ce("\u211B","\\mathscr{R}"),Ce("\u212D","\\mathfrak{C}"),Ce("\u210C","\\mathfrak{H}"),Ce("\u2128","\\mathfrak{Z}"),Ce("\\Bbbk","\\Bbb{k}"),Ce("\xB7","\\cdotp"),Ce("\\llap","\\mathllap{\\textrm{#1}}"),Ce("\\rlap","\\mathrlap{\\textrm{#1}}"),Ce("\\clap","\\mathclap{\\textrm{#1}}"),Ce("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Ce("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Ce("\\ne","\\neq"),Ce("\u2260","\\neq"),Ce("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Ce("\u2209","\\notin"),Ce("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Ce("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Ce("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Ce("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Ce("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Ce("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Ce("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Ce("\u27C2","\\perp"),Ce("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Ce("\u220C","\\notni"),Ce("\u231C","\\ulcorner"),Ce("\u231D","\\urcorner"),Ce("\u231E","\\llcorner"),Ce("\u231F","\\lrcorner"),Ce("\xA9","\\copyright"),Ce("\xAE","\\textregistered"),Ce("\uFE0F","\\textregistered"),Ce("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Ce("\u22EE","\\vdots"),Ce("\\varGamma","\\mathit{\\Gamma}"),Ce("\\varDelta","\\mathit{\\Delta}"),Ce("\\varTheta","\\mathit{\\Theta}"),Ce("\\varLambda","\\mathit{\\Lambda}"),Ce("\\varXi","\\mathit{\\Xi}"),Ce("\\varPi","\\mathit{\\Pi}"),Ce("\\varSigma","\\mathit{\\Sigma}"),Ce("\\varUpsilon","\\mathit{\\Upsilon}"),Ce("\\varPhi","\\mathit{\\Phi}"),Ce("\\varPsi","\\mathit{\\Psi}"),Ce("\\varOmega","\\mathit{\\Omega}"),Ce("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Ce("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Ce("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Ce("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Ce("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Ce("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var ur={",":"\\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"};Ce("\\dots",function(He){var c="\\dotso",w=He.expandAfterFuture().text;return w in ur?c=ur[w]:(w.substr(0,4)==="\\not"||w in vr.math&&F.contains(["bin","rel"],vr.math[w].group))&&(c="\\dotsb"),c});var It={")":!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};Ce("\\dotso",function(He){var c=He.future().text;return c in It?"\\ldots\\,":"\\ldots"}),Ce("\\dotsc",function(He){var c=He.future().text;return c in It&&c!==","?"\\ldots\\,":"\\ldots"}),Ce("\\cdots",function(He){var c=He.future().text;return c in It?"\\@cdots\\,":"\\@cdots"}),Ce("\\dotsb","\\cdots"),Ce("\\dotsm","\\cdots"),Ce("\\dotsi","\\!\\cdots"),Ce("\\dotsx","\\ldots\\,"),Ce("\\DOTSI","\\relax"),Ce("\\DOTSB","\\relax"),Ce("\\DOTSX","\\relax"),Ce("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Ce("\\,","\\tmspace+{3mu}{.1667em}"),Ce("\\thinspace","\\,"),Ce("\\>","\\mskip{4mu}"),Ce("\\:","\\tmspace+{4mu}{.2222em}"),Ce("\\medspace","\\:"),Ce("\\;","\\tmspace+{5mu}{.2777em}"),Ce("\\thickspace","\\;"),Ce("\\!","\\tmspace-{3mu}{.1667em}"),Ce("\\negthinspace","\\!"),Ce("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Ce("\\negthickspace","\\tmspace-{5mu}{.277em}"),Ce("\\enspace","\\kern.5em "),Ce("\\enskip","\\hskip.5em\\relax"),Ce("\\quad","\\hskip1em\\relax"),Ce("\\qquad","\\hskip2em\\relax"),Ce("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Ce("\\tag@paren","\\tag@literal{({#1})}"),Ce("\\tag@literal",function(He){if(He.macros.get("\\df@tag"))throw new Y("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Ce("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Ce("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Ce("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Ce("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Ce("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Ce("\\\\","\\newline"),Ce("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var br=ft["Main-Regular"][84][1]-.7*ft["Main-Regular"][65][1]+"em";Ce("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+br+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Ce("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+br+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Ce("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Ce("\\@hspace","\\hskip #1\\relax"),Ce("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Ce("\\ordinarycolon",":"),Ce("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Ce("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Ce("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Ce("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Ce("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Ce("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Ce("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Ce("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Ce("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Ce("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Ce("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Ce("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Ce("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Ce("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Ce("\u2237","\\dblcolon"),Ce("\u2239","\\eqcolon"),Ce("\u2254","\\coloneqq"),Ce("\u2255","\\eqqcolon"),Ce("\u2A74","\\Coloneqq"),Ce("\\ratio","\\vcentcolon"),Ce("\\coloncolon","\\dblcolon"),Ce("\\colonequals","\\coloneqq"),Ce("\\coloncolonequals","\\Coloneqq"),Ce("\\equalscolon","\\eqqcolon"),Ce("\\equalscoloncolon","\\Eqqcolon"),Ce("\\colonminus","\\coloneq"),Ce("\\coloncolonminus","\\Coloneq"),Ce("\\minuscolon","\\eqcolon"),Ce("\\minuscoloncolon","\\Eqcolon"),Ce("\\coloncolonapprox","\\Colonapprox"),Ce("\\coloncolonsim","\\Colonsim"),Ce("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ce("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ce("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Ce("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Ce("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Ce("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Ce("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Ce("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Ce("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Ce("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Ce("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Ce("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Ce("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Ce("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Ce("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Ce("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Ce("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Ce("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Ce("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Ce("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Ce("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Ce("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Ce("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Ce("\u27E6","\\llbracket"),Ce("\u27E7","\\rrbracket"),Ce("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Ce("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Ce("\u2983","\\lBrace"),Ce("\u2984","\\rBrace"),Ce("\\darr","\\downarrow"),Ce("\\dArr","\\Downarrow"),Ce("\\Darr","\\Downarrow"),Ce("\\lang","\\langle"),Ce("\\rang","\\rangle"),Ce("\\uarr","\\uparrow"),Ce("\\uArr","\\Uparrow"),Ce("\\Uarr","\\Uparrow"),Ce("\\N","\\mathbb{N}"),Ce("\\R","\\mathbb{R}"),Ce("\\Z","\\mathbb{Z}"),Ce("\\alef","\\aleph"),Ce("\\alefsym","\\aleph"),Ce("\\Alpha","\\mathrm{A}"),Ce("\\Beta","\\mathrm{B}"),Ce("\\bull","\\bullet"),Ce("\\Chi","\\mathrm{X}"),Ce("\\clubs","\\clubsuit"),Ce("\\cnums","\\mathbb{C}"),Ce("\\Complex","\\mathbb{C}"),Ce("\\Dagger","\\ddagger"),Ce("\\diamonds","\\diamondsuit"),Ce("\\empty","\\emptyset"),Ce("\\Epsilon","\\mathrm{E}"),Ce("\\Eta","\\mathrm{H}"),Ce("\\exist","\\exists"),Ce("\\harr","\\leftrightarrow"),Ce("\\hArr","\\Leftrightarrow"),Ce("\\Harr","\\Leftrightarrow"),Ce("\\hearts","\\heartsuit"),Ce("\\image","\\Im"),Ce("\\infin","\\infty"),Ce("\\Iota","\\mathrm{I}"),Ce("\\isin","\\in"),Ce("\\Kappa","\\mathrm{K}"),Ce("\\larr","\\leftarrow"),Ce("\\lArr","\\Leftarrow"),Ce("\\Larr","\\Leftarrow"),Ce("\\lrarr","\\leftrightarrow"),Ce("\\lrArr","\\Leftrightarrow"),Ce("\\Lrarr","\\Leftrightarrow"),Ce("\\Mu","\\mathrm{M}"),Ce("\\natnums","\\mathbb{N}"),Ce("\\Nu","\\mathrm{N}"),Ce("\\Omicron","\\mathrm{O}"),Ce("\\plusmn","\\pm"),Ce("\\rarr","\\rightarrow"),Ce("\\rArr","\\Rightarrow"),Ce("\\Rarr","\\Rightarrow"),Ce("\\real","\\Re"),Ce("\\reals","\\mathbb{R}"),Ce("\\Reals","\\mathbb{R}"),Ce("\\Rho","\\mathrm{P}"),Ce("\\sdot","\\cdot"),Ce("\\sect","\\S"),Ce("\\spades","\\spadesuit"),Ce("\\sub","\\subset"),Ce("\\sube","\\subseteq"),Ce("\\supe","\\supseteq"),Ce("\\Tau","\\mathrm{T}"),Ce("\\thetasym","\\vartheta"),Ce("\\weierp","\\wp"),Ce("\\Zeta","\\mathrm{Z}"),Ce("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Ce("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Ce("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Ce("\\blue","\\textcolor{##6495ed}{#1}"),Ce("\\orange","\\textcolor{##ffa500}{#1}"),Ce("\\pink","\\textcolor{##ff00af}{#1}"),Ce("\\red","\\textcolor{##df0030}{#1}"),Ce("\\green","\\textcolor{##28ae7b}{#1}"),Ce("\\gray","\\textcolor{gray}{#1}"),Ce("\\purple","\\textcolor{##9d38bd}{#1}"),Ce("\\blueA","\\textcolor{##ccfaff}{#1}"),Ce("\\blueB","\\textcolor{##80f6ff}{#1}"),Ce("\\blueC","\\textcolor{##63d9ea}{#1}"),Ce("\\blueD","\\textcolor{##11accd}{#1}"),Ce("\\blueE","\\textcolor{##0c7f99}{#1}"),Ce("\\tealA","\\textcolor{##94fff5}{#1}"),Ce("\\tealB","\\textcolor{##26edd5}{#1}"),Ce("\\tealC","\\textcolor{##01d1c1}{#1}"),Ce("\\tealD","\\textcolor{##01a995}{#1}"),Ce("\\tealE","\\textcolor{##208170}{#1}"),Ce("\\greenA","\\textcolor{##b6ffb0}{#1}"),Ce("\\greenB","\\textcolor{##8af281}{#1}"),Ce("\\greenC","\\textcolor{##74cf70}{#1}"),Ce("\\greenD","\\textcolor{##1fab54}{#1}"),Ce("\\greenE","\\textcolor{##0d923f}{#1}"),Ce("\\goldA","\\textcolor{##ffd0a9}{#1}"),Ce("\\goldB","\\textcolor{##ffbb71}{#1}"),Ce("\\goldC","\\textcolor{##ff9c39}{#1}"),Ce("\\goldD","\\textcolor{##e07d10}{#1}"),Ce("\\goldE","\\textcolor{##a75a05}{#1}"),Ce("\\redA","\\textcolor{##fca9a9}{#1}"),Ce("\\redB","\\textcolor{##ff8482}{#1}"),Ce("\\redC","\\textcolor{##f9685d}{#1}"),Ce("\\redD","\\textcolor{##e84d39}{#1}"),Ce("\\redE","\\textcolor{##bc2612}{#1}"),Ce("\\maroonA","\\textcolor{##ffbde0}{#1}"),Ce("\\maroonB","\\textcolor{##ff92c6}{#1}"),Ce("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Ce("\\maroonD","\\textcolor{##ca337c}{#1}"),Ce("\\maroonE","\\textcolor{##9e034e}{#1}"),Ce("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Ce("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Ce("\\purpleC","\\textcolor{##aa87ff}{#1}"),Ce("\\purpleD","\\textcolor{##7854ab}{#1}"),Ce("\\purpleE","\\textcolor{##543b78}{#1}"),Ce("\\mintA","\\textcolor{##f5f9e8}{#1}"),Ce("\\mintB","\\textcolor{##edf2df}{#1}"),Ce("\\mintC","\\textcolor{##e0e5cc}{#1}"),Ce("\\grayA","\\textcolor{##f6f7f7}{#1}"),Ce("\\grayB","\\textcolor{##f0f1f2}{#1}"),Ce("\\grayC","\\textcolor{##e3e5e6}{#1}"),Ce("\\grayD","\\textcolor{##d6d8da}{#1}"),Ce("\\grayE","\\textcolor{##babec2}{#1}"),Ce("\\grayF","\\textcolor{##888d93}{#1}"),Ce("\\grayG","\\textcolor{##626569}{#1}"),Ce("\\grayH","\\textcolor{##3b3e40}{#1}"),Ce("\\grayI","\\textcolor{##21242c}{#1}"),Ce("\\kaBlue","\\textcolor{##314453}{#1}"),Ce("\\kaGreen","\\textcolor{##71B307}{#1}");var Gr={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},$r=function(){function He(w,C,$){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=C,this.expansionCount=0,this.feed(w),this.macros=new $t(ze,C.macros),this.mode=$,this.stack=[]}var c=He.prototype;return c.feed=function(C){this.lexer=new Ut(C,this.settings)},c.switchMode=function(C){this.mode=C},c.beginGroup=function(){this.macros.beginGroup()},c.endGroup=function(){this.macros.endGroup()},c.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},c.popToken=function(){return this.future(),this.stack.pop()},c.pushToken=function(C){this.stack.push(C)},c.pushTokens=function(C){var $;($=this.stack).push.apply($,C)},c.consumeSpaces=function(){for(;;){var C=this.future();if(C.text===" ")this.stack.pop();else break}},c.consumeArgs=function(C){for(var $=[],Be=0;Be<C;++Be){this.consumeSpaces();var je=this.popToken();if(je.text==="{"){for(var xt=[],bt=1;bt!==0;){var Jt=this.popToken();if(xt.push(Jt),Jt.text==="{")++bt;else if(Jt.text==="}")--bt;else if(Jt.text==="EOF")throw new Y("End of input in macro argument",je)}xt.pop(),xt.reverse(),$[Be]=xt}else{if(je.text==="EOF")throw new Y("End of input expecting macro argument");$[Be]=[je]}}return $},c.expandOnce=function(){var C=this.popToken(),$=C.text,Be=this._getExpansion($);if(Be==null)return this.pushToken(C),C;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new Y("Too many expansions: infinite loop or need to increase maxExpand setting");var je=Be.tokens;if(Be.numArgs){var xt=this.consumeArgs(Be.numArgs);je=je.slice();for(var bt=je.length-1;bt>=0;--bt){var Jt=je[bt];if(Jt.text==="#"){if(bt===0)throw new Y("Incomplete placeholder at end of macro body",Jt);if(Jt=je[--bt],Jt.text==="#")je.splice(bt+1,1);else if(/^[1-9]$/.test(Jt.text)){var Ar;(Ar=je).splice.apply(Ar,[bt,2].concat(xt[+Jt.text-1]))}else throw new Y("Not a valid argument number",Jt)}}}return this.pushTokens(je),je},c.expandAfterFuture=function(){return this.expandOnce(),this.future()},c.expandNextToken=function(){for(;;){var C=this.expandOnce();if(C instanceof ke)if(C.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},c.expandMacro=function(C){if(this.macros.get(C)){var $=[],Be=this.stack.length;for(this.pushToken(new ke(C));this.stack.length>Be;){var je=this.expandOnce();je instanceof ke&&$.push(this.stack.pop())}return $}},c.expandMacroAsText=function(C){var $=this.expandMacro(C);return $&&$.map(function(Be){return Be.text}).join("")},c._getExpansion=function(C){var $=this.macros.get(C);if($==null)return $;var Be=typeof $=="function"?$(this):$;if(typeof Be=="string"){var je=0;if(Be.indexOf("#")!==-1)for(var xt=Be.replace(/##/g,"");xt.indexOf("#"+(je+1))!==-1;)++je;for(var bt=new Ut(Be,this.settings),Jt=[],Ar=bt.lex();Ar.text!=="EOF";)Jt.push(Ar),Ar=bt.lex();Jt.reverse();var xr={tokens:Jt,numArgs:je};return xr}return Be},c.isDefined=function(C){return this.macros.has(C)||Pn.hasOwnProperty(C)||vr.math.hasOwnProperty(C)||vr.text.hasOwnProperty(C)||Gr.hasOwnProperty(C)},He}(),cn={"\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"}},Dn={\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"},ni=function(){function He(w,C){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 $r(w,C,this.mode),this.settings=C,this.leftrightDepth=0}var c=He.prototype;return c.expect=function(C,$){if($===void 0&&($=!0),this.fetch().text!==C)throw new Y("Expected '"+C+"', got '"+this.fetch().text+"'",this.fetch());$&&this.consume()},c.consume=function(){this.nextToken=null},c.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},c.switchMode=function(C){this.mode=C,this.gullet.switchMode(C)},c.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var C=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),C},c.parseExpression=function(C,$){for(var Be=[];;){this.mode==="math"&&this.consumeSpaces();var je=this.fetch();if(He.endOfExpression.indexOf(je.text)!==-1||$&&je.text===$||C&&Pn[je.text]&&Pn[je.text].infix)break;var xt=this.parseAtom($);if(!xt)break;Be.push(xt)}return this.mode==="text"&&this.formLigatures(Be),this.handleInfixNodes(Be)},c.handleInfixNodes=function(C){for(var $=-1,Be,je=0;je<C.length;je++){var xt=Gn(C[je],"infix");if(xt){if($!==-1)throw new Y("only one infix operator per group",xt.token);$=je,Be=xt.replaceWith}}if($!==-1&&Be){var bt,Jt,Ar=C.slice(0,$),xr=C.slice($+1);Ar.length===1&&Ar[0].type==="ordgroup"?bt=Ar[0]:bt={type:"ordgroup",mode:this.mode,body:Ar},xr.length===1&&xr[0].type==="ordgroup"?Jt=xr[0]:Jt={type:"ordgroup",mode:this.mode,body:xr};var nn;return Be==="\\\\abovefrac"?nn=this.callFunction(Be,[bt,C[$],Jt],[]):nn=this.callFunction(Be,[bt,Jt],[]),[nn]}else return C},c.handleSupSubscript=function(C){var $=this.fetch(),Be=$.text;this.consume();var je=this.parseGroup(C,!1,He.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!je)throw new Y("Expected group after '"+Be+"'",$);return je},c.formatUnsupportedCmd=function(C){for(var $=[],Be=0;Be<C.length;Be++)$.push({type:"textord",mode:"text",text:C[Be]});var je={type:"text",mode:this.mode,body:$},xt={type:"color",mode:this.mode,color:this.settings.errorColor,body:[je]};return xt},c.parseAtom=function(C){var $=this.parseGroup("atom",!1,null,C);if(this.mode==="text")return $;for(var Be,je;;){this.consumeSpaces();var xt=this.fetch();if(xt.text==="\\limits"||xt.text==="\\nolimits"){var bt=Gn($,"op");if(bt){var Jt=xt.text==="\\limits";bt.limits=Jt,bt.alwaysHandleSupSub=!0}else if(bt=Gn($,"operatorname"),bt&&bt.alwaysHandleSupSub){var Ar=xt.text==="\\limits";bt.limits=Ar}else throw new Y("Limit controls must follow a math operator",xt);this.consume()}else if(xt.text==="^"){if(Be)throw new Y("Double superscript",xt);Be=this.handleSupSubscript("superscript")}else if(xt.text==="_"){if(je)throw new Y("Double subscript",xt);je=this.handleSupSubscript("subscript")}else if(xt.text==="'"){if(Be)throw new Y("Double superscript",xt);var xr={type:"textord",mode:this.mode,text:"\\prime"},nn=[xr];for(this.consume();this.fetch().text==="'";)nn.push(xr),this.consume();this.fetch().text==="^"&&nn.push(this.handleSupSubscript("superscript")),Be={type:"ordgroup",mode:this.mode,body:nn}}else break}return Be||je?{type:"supsub",mode:this.mode,base:$,sup:Be,sub:je}:$},c.parseFunction=function(C,$,Be){var je=this.fetch(),xt=je.text,bt=Pn[xt];if(!bt)return null;if(this.consume(),Be!=null&&bt.greediness<=Be)throw new Y("Got function '"+xt+"' with no arguments"+($?" as "+$:""),je);if(this.mode==="text"&&!bt.allowedInText)throw new Y("Can't use function '"+xt+"' in text mode",je);if(this.mode==="math"&&bt.allowedInMath===!1)throw new Y("Can't use function '"+xt+"' in math mode",je);var Jt=this.parseArguments(xt,bt),Ar=Jt.args,xr=Jt.optArgs;return this.callFunction(xt,Ar,xr,je,C)},c.callFunction=function(C,$,Be,je,xt){var bt={funcName:C,parser:this,token:je,breakOnTokenText:xt},Jt=Pn[C];if(Jt&&Jt.handler)return Jt.handler(bt,$,Be);throw new Y("No function handler for "+C)},c.parseArguments=function(C,$){var Be=$.numArgs+$.numOptionalArgs;if(Be===0)return{args:[],optArgs:[]};for(var je=$.greediness,xt=[],bt=[],Jt=0;Jt<Be;Jt++){var Ar=$.argTypes&&$.argTypes[Jt],xr=Jt<$.numOptionalArgs,nn=Jt>0&&!xr||Jt===0&&!xr&&this.mode==="math",xn=this.parseGroupOfType("argument to '"+C+"'",Ar,xr,je,nn);if(!xn){if(xr){bt.push(null);continue}throw new Y("Expected group after '"+C+"'",this.fetch())}(xr?bt:xt).push(xn)}return{args:xt,optArgs:bt}},c.parseGroupOfType=function(C,$,Be,je,xt){switch($){case"color":return xt&&this.consumeSpaces(),this.parseColorGroup(Be);case"size":return xt&&this.consumeSpaces(),this.parseSizeGroup(Be);case"url":return this.parseUrlGroup(Be,xt);case"math":case"text":return this.parseGroup(C,Be,je,void 0,$,xt);case"hbox":{var bt=this.parseGroup(C,Be,je,void 0,"text",xt);if(!bt)return bt;var Jt={type:"styling",mode:bt.mode,body:[bt],style:"text"};return Jt}case"raw":{if(xt&&this.consumeSpaces(),Be&&this.fetch().text==="{")return null;var Ar=this.parseStringGroup("raw",Be,!0);if(Ar)return{type:"raw",mode:"text",string:Ar.text};throw new Y("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(C,Be,je,void 0,void 0,xt);default:throw new Y("Unknown group type as "+C,this.fetch())}},c.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},c.parseStringGroup=function(C,$,Be){var je=$?"[":"{",xt=$?"]":"}",bt=this.fetch();if(bt.text!==je){if($)return null;if(Be&&bt.text!=="EOF"&&/[^{}[\]]/.test(bt.text))return this.consume(),bt}var Jt=this.mode;this.mode="text",this.expect(je);for(var Ar="",xr=this.fetch(),nn=0,xn=xr,Xr;(Xr=this.fetch()).text!==xt||Be&&nn>0;){switch(Xr.text){case"EOF":throw new Y("Unexpected end of input in "+C,xr.range(xn,Ar));case je:nn++;break;case xt:nn--;break}xn=Xr,Ar+=xn.text,this.consume()}return this.expect(xt),this.mode=Jt,xr.range(xn,Ar)},c.parseRegexGroup=function(C,$){var Be=this.mode;this.mode="text";for(var je=this.fetch(),xt=je,bt="",Jt;(Jt=this.fetch()).text!=="EOF"&&C.test(bt+Jt.text);)xt=Jt,bt+=xt.text,this.consume();if(bt==="")throw new Y("Invalid "+$+": '"+je.text+"'",je);return this.mode=Be,je.range(xt,bt)},c.parseColorGroup=function(C){var $=this.parseStringGroup("color",C);if(!$)return null;var Be=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec($.text);if(!Be)throw new Y("Invalid color: '"+$.text+"'",$);var je=Be[0];return/^[0-9a-f]{6}$/i.test(je)&&(je="#"+je),{type:"color-token",mode:this.mode,color:je}},c.parseSizeGroup=function(C){var $,Be=!1;if(!C&&this.fetch().text!=="{"?$=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):$=this.parseStringGroup("size",C),!$)return null;!C&&$.text.length===0&&($.text="0pt",Be=!0);var je=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec($.text);if(!je)throw new Y("Invalid size: '"+$.text+"'",$);var xt={number:+(je[1]+je[2]),unit:je[3]};if(!hr(xt))throw new Y("Invalid unit: '"+xt.unit+"'",$);return{type:"size",mode:this.mode,value:xt,isBlank:Be}},c.parseUrlGroup=function(C,$){this.gullet.lexer.setCatcode("%",13);var Be=this.parseStringGroup("url",C,!0);if(this.gullet.lexer.setCatcode("%",14),!Be)return null;var je=Be.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:je}},c.parseGroup=function(C,$,Be,je,xt,bt){var Jt=this.mode;xt&&this.switchMode(xt),bt&&this.consumeSpaces();var Ar=this.fetch(),xr=Ar.text,nn;if($?xr==="[":xr==="{"||xr==="\\begingroup"){this.consume();var xn=He.endOfGroup[xr];this.gullet.beginGroup();var Xr=this.parseExpression(!1,xn),dn=this.fetch();this.expect(xn),this.gullet.endGroup(),nn={type:"ordgroup",mode:this.mode,loc:se.range(Ar,dn),body:Xr,semisimple:xr==="\\begingroup"||void 0}}else if($)nn=null;else if(nn=this.parseFunction(je,C,Be)||this.parseSymbol(),nn==null&&xr[0]==="\\"&&!Gr.hasOwnProperty(xr)){if(this.settings.throwOnError)throw new Y("Undefined control sequence: "+xr,Ar);nn=this.formatUnsupportedCmd(xr),this.consume()}return xt&&this.switchMode(Jt),nn},c.formLigatures=function(C){for(var $=C.length-1,Be=0;Be<$;++Be){var je=C[Be],xt=je.text;xt==="-"&&C[Be+1].text==="-"&&(Be+1<$&&C[Be+2].text==="-"?(C.splice(Be,3,{type:"textord",mode:"text",loc:se.range(je,C[Be+2]),text:"---"}),$-=2):(C.splice(Be,2,{type:"textord",mode:"text",loc:se.range(je,C[Be+1]),text:"--"}),$-=1)),(xt==="'"||xt==="`")&&C[Be+1].text===xt&&(C.splice(Be,2,{type:"textord",mode:"text",loc:se.range(je,C[Be+1]),text:xt+xt}),$-=1)}},c.parseSymbol=function(){var C=this.fetch(),$=C.text;if(/^\\verb[^a-zA-Z]/.test($)){this.consume();var Be=$.slice(5),je=Be.charAt(0)==="*";if(je&&(Be=Be.slice(1)),Be.length<2||Be.charAt(0)!==Be.slice(-1))throw new Y(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return Be=Be.slice(1,-1),{type:"verb",mode:"text",body:Be,star:je}}Dn.hasOwnProperty($[0])&&!vr[this.mode][$[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+$[0]+'" used in math mode',C),$=Dn[$[0]]+$.substr(1));var xt=gt.exec($);xt&&($=$.substring(0,xt.index),$==="i"?$="\u0131":$==="j"&&($="\u0237"));var bt;if(vr[this.mode][$]){this.settings.strict&&this.mode==="math"&&Sn.indexOf($)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+$[0]+'" used in math mode',C);var Jt=vr[this.mode][$].group,Ar=se.range(C),xr;if(Kt.hasOwnProperty(Jt)){var nn=Jt;xr={type:"atom",mode:this.mode,family:nn,loc:Ar,text:$}}else xr={type:Jt,mode:this.mode,loc:Ar,text:$};bt=xr}else if($.charCodeAt(0)>=128)this.settings.strict&&(qe($.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+$[0]+'" used in math mode',C):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+$[0]+'"'+(" ("+$.charCodeAt(0)+")"),C)),bt={type:"textord",mode:"text",loc:se.range(C),text:$};else return null;if(this.consume(),xt)for(var xn=0;xn<xt[0].length;xn++){var Xr=xt[0][xn];if(!cn[Xr])throw new Y("Unknown accent ' "+Xr+"'",C);var dn=cn[Xr][this.mode];if(!dn)throw new Y("Accent "+Xr+" unsupported in "+this.mode+" mode",C);bt={type:"accent",mode:this.mode,loc:se.range(C),label:dn,isStretchy:!1,isShifty:!0,base:bt}}return bt},He}();ni.endOfExpression=["}","\\endgroup","\\end","\\right","&"],ni.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},ni.SUPSUB_GREEDINESS=1;var Mr=function(c,w){if(!(typeof c=="string"||c instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var C=new ni(c,w);delete C.gullet.macros.current["\\df@tag"];var $=C.parse();if(C.gullet.macros.get("\\df@tag")){if(!w.displayMode)throw new Y("\\tag works only in display equations");C.gullet.feed("\\df@tag"),$=[{type:"tag",mode:"text",body:$,tag:C.parse()}]}return $},ir=Mr,Ii=function(c,w,C){w.textContent="";var $=rn(c,C).toNode();w.appendChild($)};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."),Ii=function(){throw new Y("KaTeX doesn't work in quirks mode.")});var Fn=function(c,w){var C=rn(c,w).toMarkup();return C},ln=function(c,w){var C=new H(w);return ir(c,C)},An=function(c,w,C){if(C.throwOnError||!(c instanceof Y))throw c;var $=Ht.makeSpan(["katex-error"],[new P(w)]);return $.setAttribute("title",c.toString()),$.setAttribute("style","color:"+C.errorColor),$},rn=function(c,w){var C=new H(w);try{var $=ir(c,C);return cs($,c,C)}catch(Be){return An(Be,c,C)}},Cn=function(c,w){var C=new H(w);try{var $=ir(c,C);return Es($,c,C)}catch(Be){return An(Be,c,C)}},ai={version:"0.11.1",render:Ii,renderToString:Fn,ParseError:Y,__parse:ln,__renderToDomTree:rn,__renderToHTMLTree:Cn,__setFontMetrics:At,__defineSymbol:re,__defineMacro:Ce,__domTree:{Span:f,Anchor:D,SymbolNode:P,SvgNode:te,PathNode:Ie,LineNode:Te}},Li=g.default=ai}]).default})},32834:function(yn){(function(Gt,g){yn.exports=g()})(this,function(){"use strict";function Gt(St,Vt){for(var Zt=0;Zt<Vt.length;Zt++){var nt=Vt[Zt];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(St,nt.key,nt)}}function g(St,Vt,Zt){return Vt&&Gt(St.prototype,Vt),Zt&&Gt(St,Zt),St}function we(St,Vt){if(St){if(typeof St=="string")return Fe(St,Vt);var Zt=Object.prototype.toString.call(St).slice(8,-1);if(Zt==="Object"&&St.constructor&&(Zt=St.constructor.name),Zt==="Map"||Zt==="Set")return Array.from(St);if(Zt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Zt))return Fe(St,Vt)}}function Fe(St,Vt){(Vt==null||Vt>St.length)&&(Vt=St.length);for(var Zt=0,nt=new Array(Vt);Zt<Vt;Zt++)nt[Zt]=St[Zt];return nt}function se(St,Vt){var Zt=typeof Symbol!="undefined"&&St[Symbol.iterator]||St["@@iterator"];if(Zt)return(Zt=Zt.call(St)).next.bind(Zt);if(Array.isArray(St)||(Zt=we(St))||Vt&&St&&typeof St.length=="number"){Zt&&(St=Zt);var nt=0;return function(){return nt>=St.length?{done:!0}:{done:!1,value:St[nt++]}}}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 ke={exports:{}};function ie(){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 Y(St){ke.exports.defaults=St}ke.exports={defaults:ie(),getDefaults:ie,changeDefaults:Y};var O=/[&<>"']/,T=/[&<>"']/g,n=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,L={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(Vt){return L[Vt]};function a(St,Vt){if(Vt){if(O.test(St))return St.replace(T,p)}else if(n.test(St))return St.replace(o,p);return St}var A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function m(St){return St.replace(A,function(Vt,Zt){return Zt=Zt.toLowerCase(),Zt==="colon"?":":Zt.charAt(0)==="#"?Zt.charAt(1)==="x"?String.fromCharCode(parseInt(Zt.substring(2),16)):String.fromCharCode(+Zt.substring(1)):""})}var S=/(^|[^\[])\^/g;function K(St,Vt){St=St.source||St,Vt=Vt||"";var Zt={replace:function(ct,dt){return dt=dt.source||dt,dt=dt.replace(S,"$1"),St=St.replace(ct,dt),Zt},getRegex:function(){return new RegExp(St,Vt)}};return Zt}var F=/[^\w:]/g,H=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(St,Vt,Zt){if(St){var nt;try{nt=decodeURIComponent(m(Zt)).replace(F,"").toLowerCase()}catch(ct){return null}if(nt.indexOf("javascript:")===0||nt.indexOf("vbscript:")===0||nt.indexOf("data:")===0)return null}Vt&&!H.test(Zt)&&(Zt=q(Vt,Zt));try{Zt=encodeURI(Zt).replace(/%25/g,"%")}catch(ct){return null}return Zt}var ee={},B=/^[^:]+:\/*[^/]*$/,G=/^([^:]+:)[\s\S]*$/,ce=/^([^:]+:\/*[^/]*)[\s\S]*$/;function q(St,Vt){ee[" "+St]||(B.test(St)?ee[" "+St]=St+"/":ee[" "+St]=ae(St,"/",!0)),St=ee[" "+St];var Zt=St.indexOf(":")===-1;return Vt.substring(0,2)==="//"?Zt?Vt:St.replace(G,"$1")+Vt:Vt.charAt(0)==="/"?Zt?Vt:St.replace(ce,"$1")+Vt:St+Vt}var be={exec:function(){}};function xe(St){for(var Vt=1,Zt,nt;Vt<arguments.length;Vt++){Zt=arguments[Vt];for(nt in Zt)Object.prototype.hasOwnProperty.call(Zt,nt)&&(St[nt]=Zt[nt])}return St}function Le(St,Vt){var Zt=St.replace(/\|/g,function(dt,Xt,Re){for(var fn=!1,kt=Xt;--kt>=0&&Re[kt]==="\\";)fn=!fn;return fn?"|":" |"}),nt=Zt.split(/ \|/),ct=0;if(nt.length>Vt)nt.splice(Vt);else for(;nt.length<Vt;)nt.push("");for(;ct<nt.length;ct++)nt[ct]=nt[ct].trim().replace(/\\\|/g,"|");return nt}function ae(St,Vt,Zt){var nt=St.length;if(nt===0)return"";for(var ct=0;ct<nt;){var dt=St.charAt(nt-ct-1);if(dt===Vt&&!Zt)ct++;else if(dt!==Vt&&Zt)ct++;else break}return St.substr(0,nt-ct)}function me(St,Vt){if(St.indexOf(Vt[1])===-1)return-1;for(var Zt=St.length,nt=0,ct=0;ct<Zt;ct++)if(St[ct]==="\\")ct++;else if(St[ct]===Vt[0])nt++;else if(St[ct]===Vt[1]&&(nt--,nt<0))return ct;return-1}function I(St){St&&St.sanitize&&!St.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 _e(St,Vt){if(Vt<1)return"";for(var Zt="";Vt>1;)Vt&1&&(Zt+=St),Vt>>=1,St+=St;return Zt+St}var oe={escape:a,unescape:m,edit:K,cleanUrl:V,resolveUrl:q,noopTest:be,merge:xe,splitCells:Le,rtrim:ae,findClosingBracket:me,checkSanitizeDeprecation:I,repeatString:_e},he=ke.exports.defaults,ve=oe.rtrim,_=oe.splitCells,N=oe.escape,X=oe.findClosingBracket;function pe(St,Vt,Zt){var nt=Vt.href,ct=Vt.title?N(Vt.title):null,dt=St[1].replace(/\\([\[\]])/g,"$1");return St[0].charAt(0)!=="!"?{type:"link",raw:Zt,href:nt,title:ct,text:dt}:{type:"image",raw:Zt,href:nt,title:ct,text:N(dt)}}function qe(St,Vt){var Zt=St.match(/^(\s+)(?:```)/);if(Zt===null)return Vt;var nt=Zt[1];return Vt.split(`
|
|
|
`).map(function(ct){var dt=ct.match(/^\s+/);if(dt===null)return ct;var Xt=dt[0];return Xt.length>=nt.length?ct.slice(nt.length):ct}).join(`
|
|
|
`)}var at=function(){function St(Zt){this.options=Zt||he}var Vt=St.prototype;return Vt.space=function(nt){var ct=this.rules.block.newline.exec(nt);if(ct)return ct[0].length>1?{type:"space",raw:ct[0]}:{raw:`
|
|
|
`}},Vt.code=function(nt){var ct=this.rules.block.code.exec(nt);if(ct){var dt=ct[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ct[0],codeBlockStyle:"indented",text:this.options.pedantic?dt:ve(dt,`
|
|
|
`)}}},Vt.fences=function(nt){var ct=this.rules.block.fences.exec(nt);if(ct){var dt=ct[0],Xt=qe(dt,ct[3]||"");return{type:"code",raw:dt,lang:ct[2]?ct[2].trim():ct[2],text:Xt}}},Vt.heading=function(nt){var ct=this.rules.block.heading.exec(nt);if(ct){var dt=ct[2].trim();if(/#$/.test(dt)){var Xt=ve(dt,"#");(this.options.pedantic||!Xt||/ $/.test(Xt))&&(dt=Xt.trim())}return{type:"heading",raw:ct[0],depth:ct[1].length,text:dt}}},Vt.nptable=function(nt){var ct=this.rules.block.nptable.exec(nt);if(ct){var dt={type:"table",header:_(ct[1].replace(/^ *| *\| *$/g,"")),align:ct[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ct[3]?ct[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:ct[0]};if(dt.header.length===dt.align.length){var Xt=dt.align.length,Re;for(Re=0;Re<Xt;Re++)/^ *-+: *$/.test(dt.align[Re])?dt.align[Re]="right":/^ *:-+: *$/.test(dt.align[Re])?dt.align[Re]="center":/^ *:-+ *$/.test(dt.align[Re])?dt.align[Re]="left":dt.align[Re]=null;for(Xt=dt.cells.length,Re=0;Re<Xt;Re++)dt.cells[Re]=_(dt.cells[Re],dt.header.length);return dt}}},Vt.hr=function(nt){var ct=this.rules.block.hr.exec(nt);if(ct)return{type:"hr",raw:ct[0]}},Vt.blockquote=function(nt){var ct=this.rules.block.blockquote.exec(nt);if(ct){var dt=ct[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ct[0],text:dt}}},Vt.list=function(nt){var ct=this.rules.block.list.exec(nt);if(ct){var dt=ct[0],Xt=ct[2],Re=Xt.length>1,fn={type:"list",raw:dt,ordered:Re,start:Re?+Xt.slice(0,-1):"",loose:!1,items:[]},kt=ct[0].match(this.rules.block.item),Nn=!1,Jn,vi,Fi,Mn,Hn,Yt,kr,tn,Nt,_t=kt.length;Fi=this.rules.block.listItemStart.exec(kt[0]);for(var Ir=0;Ir<_t;Ir++){if(Jn=kt[Ir],dt=Jn,this.options.pedantic||(Nt=Jn.match(new RegExp("\\n\\s*\\n {0,"+(Fi[0].length-1)+"}\\S")),Nt&&(Hn=Jn.length-Nt.index+kt.slice(Ir+1).join(`
|
|
|
`).length,fn.raw=fn.raw.substring(0,fn.raw.length-Hn),Jn=Jn.substring(0,Nt.index),dt=Jn,_t=Ir+1)),Ir!==_t-1){if(Mn=this.rules.block.listItemStart.exec(kt[Ir+1]),this.options.pedantic?Mn[1].length>Fi[1].length:Mn[1].length>=Fi[0].length||Mn[1].length>3){kt.splice(Ir,2,kt[Ir]+(!this.options.pedantic&&Mn[1].length<Fi[0].length&&!kt[Ir].match(/\n$/)?"":`
|
|
|
`)+kt[Ir+1]),Ir--,_t--;continue}else(!this.options.pedantic||this.options.smartLists?Mn[2][Mn[2].length-1]!==Xt[Xt.length-1]:Re===(Mn[2].length===1))&&(Hn=kt.slice(Ir+1).join(`
|
|
|
`).length,fn.raw=fn.raw.substring(0,fn.raw.length-Hn),Ir=_t-1);Fi=Mn}vi=Jn.length,Jn=Jn.replace(/^ *([*+-]|\d+[.)]) ?/,""),~Jn.indexOf(`
|
|
|
`)&&(vi-=Jn.length,Jn=this.options.pedantic?Jn.replace(/^ {1,4}/gm,""):Jn.replace(new RegExp("^ {1,"+vi+"}","gm"),"")),Jn=ve(Jn,`
|
|
|
`),Ir!==_t-1&&(dt=dt+`
|
|
|
`),Yt=Nn||/\n\n(?!\s*$)/.test(dt),Ir!==_t-1&&(Nn=dt.slice(-2)===`
|
|
|
|
|
|
`,Yt||(Yt=Nn)),Yt&&(fn.loose=!0),this.options.gfm&&(kr=/^\[[ xX]\] /.test(Jn),tn=void 0,kr&&(tn=Jn[1]!==" ",Jn=Jn.replace(/^\[[ xX]\] +/,""))),fn.items.push({type:"list_item",raw:dt,task:kr,checked:tn,loose:Yt,text:Jn})}return fn}},Vt.html=function(nt){var ct=this.rules.block.html.exec(nt);if(ct)return{type:this.options.sanitize?"paragraph":"html",raw:ct[0],pre:!this.options.sanitizer&&(ct[1]==="pre"||ct[1]==="script"||ct[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ct[0]):N(ct[0]):ct[0]}},Vt.def=function(nt){var ct=this.rules.block.def.exec(nt);if(ct){ct[3]&&(ct[3]=ct[3].substring(1,ct[3].length-1));var dt=ct[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:dt,raw:ct[0],href:ct[2],title:ct[3]}}},Vt.table=function(nt){var ct=this.rules.block.table.exec(nt);if(ct){var dt={type:"table",header:_(ct[1].replace(/^ *| *\| *$/g,"")),align:ct[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ct[3]?ct[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(dt.header.length===dt.align.length){dt.raw=ct[0];var Xt=dt.align.length,Re;for(Re=0;Re<Xt;Re++)/^ *-+: *$/.test(dt.align[Re])?dt.align[Re]="right":/^ *:-+: *$/.test(dt.align[Re])?dt.align[Re]="center":/^ *:-+ *$/.test(dt.align[Re])?dt.align[Re]="left":dt.align[Re]=null;for(Xt=dt.cells.length,Re=0;Re<Xt;Re++)dt.cells[Re]=_(dt.cells[Re].replace(/^ *\| *| *\| *$/g,""),dt.header.length);return dt}}},Vt.lheading=function(nt){var ct=this.rules.block.lheading.exec(nt);if(ct)return{type:"heading",raw:ct[0],depth:ct[2].charAt(0)==="="?1:2,text:ct[1]}},Vt.paragraph=function(nt){var ct=this.rules.block.paragraph.exec(nt);if(ct)return{type:"paragraph",raw:ct[0],text:ct[1].charAt(ct[1].length-1)===`
|
|
|
`?ct[1].slice(0,-1):ct[1]}},Vt.text=function(nt){var ct=this.rules.block.text.exec(nt);if(ct)return{type:"text",raw:ct[0],text:ct[0]}},Vt.escape=function(nt){var ct=this.rules.inline.escape.exec(nt);if(ct)return{type:"escape",raw:ct[0],text:N(ct[1])}},Vt.tag=function(nt,ct,dt){var Xt=this.rules.inline.tag.exec(nt);if(Xt)return!ct&&/^<a /i.test(Xt[0])?ct=!0:ct&&/^<\/a>/i.test(Xt[0])&&(ct=!1),!dt&&/^<(pre|code|kbd|script)(\s|>)/i.test(Xt[0])?dt=!0:dt&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Xt[0])&&(dt=!1),{type:this.options.sanitize?"text":"html",raw:Xt[0],inLink:ct,inRawBlock:dt,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Xt[0]):N(Xt[0]):Xt[0]}},Vt.link=function(nt){var ct=this.rules.inline.link.exec(nt);if(ct){var dt=ct[2].trim();if(!this.options.pedantic&&/^</.test(dt)){if(!/>$/.test(dt))return;var Xt=ve(dt.slice(0,-1),"\\");if((dt.length-Xt.length)%2===0)return}else{var Re=X(ct[2],"()");if(Re>-1){var fn=ct[0].indexOf("!")===0?5:4,kt=fn+ct[1].length+Re;ct[2]=ct[2].substring(0,Re),ct[0]=ct[0].substring(0,kt).trim(),ct[3]=""}}var Nn=ct[2],Jn="";if(this.options.pedantic){var vi=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Nn);vi&&(Nn=vi[1],Jn=vi[3])}else Jn=ct[3]?ct[3].slice(1,-1):"";return Nn=Nn.trim(),/^</.test(Nn)&&(this.options.pedantic&&!/>$/.test(dt)?Nn=Nn.slice(1):Nn=Nn.slice(1,-1)),pe(ct,{href:Nn&&Nn.replace(this.rules.inline._escapes,"$1"),title:Jn&&Jn.replace(this.rules.inline._escapes,"$1")},ct[0])}},Vt.reflink=function(nt,ct){var dt;if((dt=this.rules.inline.reflink.exec(nt))||(dt=this.rules.inline.nolink.exec(nt))){var Xt=(dt[2]||dt[1]).replace(/\s+/g," ");if(Xt=ct[Xt.toLowerCase()],!Xt||!Xt.href){var Re=dt[0].charAt(0);return{type:"text",raw:Re,text:Re}}return pe(dt,Xt,dt[0])}},Vt.emStrong=function(nt,ct,dt){dt===void 0&&(dt="");var Xt=this.rules.inline.emStrong.lDelim.exec(nt);if(Xt&&!(Xt[3]&&dt.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 Re=Xt[1]||Xt[2]||"";if(!Re||Re&&(dt===""||this.rules.inline.punctuation.exec(dt))){var fn=Xt[0].length-1,kt,Nn,Jn=fn,vi=0,Fi=Xt[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Fi.lastIndex=0,ct=ct.slice(-1*nt.length+fn);(Xt=Fi.exec(ct))!=null;)if(kt=Xt[1]||Xt[2]||Xt[3]||Xt[4]||Xt[5]||Xt[6],!!kt){if(Nn=kt.length,Xt[3]||Xt[4]){Jn+=Nn;continue}else if((Xt[5]||Xt[6])&&fn%3&&!((fn+Nn)%3)){vi+=Nn;continue}if(Jn-=Nn,!(Jn>0))return Nn=Math.min(Nn,Nn+Jn+vi),Math.min(fn,Nn)%2?{type:"em",raw:nt.slice(0,fn+Xt.index+Nn+1),text:nt.slice(1,fn+Xt.index+Nn)}:{type:"strong",raw:nt.slice(0,fn+Xt.index+Nn+1),text:nt.slice(2,fn+Xt.index+Nn-1)}}}}},Vt.codespan=function(nt){var ct=this.rules.inline.code.exec(nt);if(ct){var dt=ct[2].replace(/\n/g," "),Xt=/[^ ]/.test(dt),Re=/^ /.test(dt)&&/ $/.test(dt);return Xt&&Re&&(dt=dt.substring(1,dt.length-1)),dt=N(dt,!0),{type:"codespan",raw:ct[0],text:dt}}},Vt.br=function(nt){var ct=this.rules.inline.br.exec(nt);if(ct)return{type:"br",raw:ct[0]}},Vt.del=function(nt){var ct=this.rules.inline.del.exec(nt);if(ct)return{type:"del",raw:ct[0],text:ct[2]}},Vt.autolink=function(nt,ct){var dt=this.rules.inline.autolink.exec(nt);if(dt){var Xt,Re;return dt[2]==="@"?(Xt=N(this.options.mangle?ct(dt[1]):dt[1]),Re="mailto:"+Xt):(Xt=N(dt[1]),Re=Xt),{type:"link",raw:dt[0],text:Xt,href:Re,tokens:[{type:"text",raw:Xt,text:Xt}]}}},Vt.url=function(nt,ct){var dt;if(dt=this.rules.inline.url.exec(nt)){var Xt,Re;if(dt[2]==="@")Xt=N(this.options.mangle?ct(dt[0]):dt[0]),Re="mailto:"+Xt;else{var fn;do fn=dt[0],dt[0]=this.rules.inline._backpedal.exec(dt[0])[0];while(fn!==dt[0]);Xt=N(dt[0]),dt[1]==="www."?Re="http://"+Xt:Re=Xt}return{type:"link",raw:dt[0],text:Xt,href:Re,tokens:[{type:"text",raw:Xt,text:Xt}]}}},Vt.inlineText=function(nt,ct,dt){var Xt=this.rules.inline.text.exec(nt);if(Xt){var Re;return ct?Re=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Xt[0]):N(Xt[0]):Xt[0]:Re=N(this.options.smartypants?dt(Xt[0]):Xt[0]),{type:"text",raw:Xt[0],text:Re}}},St}(),rt=oe.noopTest,Rt=oe.edit,lr=oe.merge,qt={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:rt,table:rt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};qt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,qt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,qt.def=Rt(qt.def).replace("label",qt._label).replace("title",qt._title).getRegex(),qt.bullet=/(?:[*+-]|\d{1,9}[.)])/,qt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,qt.item=Rt(qt.item,"gm").replace(/bull/g,qt.bullet).getRegex(),qt.listItemStart=Rt(/^( *)(bull) */).replace("bull",qt.bullet).getRegex(),qt.list=Rt(qt.list).replace(/bull/g,qt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+qt.def.source+")").getRegex(),qt._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",qt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,qt.html=Rt(qt.html,"i").replace("comment",qt._comment).replace("tag",qt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qt.paragraph=Rt(qt._paragraph).replace("hr",qt.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",qt._tag).getRegex(),qt.blockquote=Rt(qt.blockquote).replace("paragraph",qt.paragraph).getRegex(),qt.normal=lr({},qt),qt.gfm=lr({},qt.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*|$)"}),qt.gfm.nptable=Rt(qt.gfm.nptable).replace("hr",qt.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",qt._tag).getRegex(),qt.gfm.table=Rt(qt.gfm.table).replace("hr",qt.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",qt._tag).getRegex(),qt.pedantic=lr({},qt.normal,{html:Rt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qt._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:rt,paragraph:Rt(qt.normal._paragraph).replace("hr",qt.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",qt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ze={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:rt,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:rt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ze._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ze.punctuation=Rt(Ze.punctuation).replace(/punctuation/g,Ze._punctuation).getRegex(),Ze.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ze.escapedEmSt=/\\\*|\\_/g,Ze._comment=Rt(qt._comment).replace("(?:-->|$)","-->").getRegex(),Ze.emStrong.lDelim=Rt(Ze.emStrong.lDelim).replace(/punct/g,Ze._punctuation).getRegex(),Ze.emStrong.rDelimAst=Rt(Ze.emStrong.rDelimAst,"g").replace(/punct/g,Ze._punctuation).getRegex(),Ze.emStrong.rDelimUnd=Rt(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=Rt(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=Rt(Ze.tag).replace("comment",Ze._comment).replace("attribute",Ze._attribute).getRegex(),Ze._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ze._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ze._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ze.link=Rt(Ze.link).replace("label",Ze._label).replace("href",Ze._href).replace("title",Ze._title).getRegex(),Ze.reflink=Rt(Ze.reflink).replace("label",Ze._label).getRegex(),Ze.reflinkSearch=Rt(Ze.reflinkSearch,"g").replace("reflink",Ze.reflink).replace("nolink",Ze.nolink).getRegex(),Ze.normal=lr({},Ze),Ze.pedantic=lr({},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:Rt(/^!?\[(label)\]\((.*?)\)/).replace("label",Ze._label).getRegex(),reflink:Rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ze._label).getRegex()}),Ze.gfm=lr({},Ze.normal,{escape:Rt(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=Rt(Ze.gfm.url,"i").replace("email",Ze.gfm._extended_email).getRegex(),Ze.breaks=lr({},Ze.gfm,{br:Rt(Ze.br).replace("{2,}","*").getRegex(),text:Rt(Ze.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Er={block:qt,inline:Ze},Cr=at,Kr=ke.exports.defaults,_r=Er.block,Me=Er.inline,Tt=oe.repeatString;function z(St){return St.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 v(St){var Vt="",Zt,nt,ct=St.length;for(Zt=0;Zt<ct;Zt++)nt=St.charCodeAt(Zt),Math.random()>.5&&(nt="x"+nt.toString(16)),Vt+="&#"+nt+";";return Vt}var f=function(){function St(Zt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Zt||Kr,this.options.tokenizer=this.options.tokenizer||new Cr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var nt={block:_r.normal,inline:Me.normal};this.options.pedantic?(nt.block=_r.pedantic,nt.inline=Me.pedantic):this.options.gfm&&(nt.block=_r.gfm,this.options.breaks?nt.inline=Me.breaks:nt.inline=Me.gfm),this.tokenizer.rules=nt}St.lex=function(nt,ct){var dt=new St(ct);return dt.lex(nt)},St.lexInline=function(nt,ct){var dt=new St(ct);return dt.inlineTokens(nt)};var Vt=St.prototype;return Vt.lex=function(nt){return nt=nt.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(nt,this.tokens,!0),this.inline(this.tokens),this.tokens},Vt.blockTokens=function(nt,ct,dt){ct===void 0&&(ct=[]),dt===void 0&&(dt=!0),this.options.pedantic&&(nt=nt.replace(/^ +$/gm,""));for(var Xt,Re,fn,kt;nt;){if(Xt=this.tokenizer.space(nt)){nt=nt.substring(Xt.raw.length),Xt.type&&ct.push(Xt);continue}if(Xt=this.tokenizer.code(nt)){nt=nt.substring(Xt.raw.length),kt=ct[ct.length-1],kt&&kt.type==="paragraph"?(kt.raw+=`
|
|
|
`+Xt.raw,kt.text+=`
|
|
|
`+Xt.text):ct.push(Xt);continue}if(Xt=this.tokenizer.fences(nt)){nt=nt.substring(Xt.raw.length),ct.push(Xt);continue}if(Xt=this.tokenizer.heading(nt)){nt=nt.substring(Xt.raw.length),ct.push(Xt);continue}if(Xt=this.tokenizer.nptable(nt)){nt=nt.substring(Xt.raw.length),ct.push(Xt);continue}if(Xt=this.tokenizer.hr(nt)){nt=nt.substring(Xt.raw.length),ct.push(Xt);continue}if(Xt=this.tokenizer.blockquote(nt)){nt=nt.substring(Xt.raw.length),Xt.tokens=this.blockTokens(Xt.text,[],dt),ct.push(Xt);continue}if(Xt=this.tokenizer.list(nt)){for(nt=nt.substring(Xt.raw.length),fn=Xt.items.length,Re=0;Re<fn;Re++)Xt.items[Re].tokens=this.blockTokens(Xt.items[Re].text,[],!1);ct.push(Xt);continue}if(Xt=this.tokenizer.html(nt)){nt=nt.substring(Xt.raw.length),ct.push(Xt);continue}if(dt&&(Xt=this.tokenizer.def(nt))){nt=nt.substring(Xt.raw.length),this.tokens.links[Xt.tag]||(this.tokens.links[Xt.tag]={href:Xt.href,title:Xt.title});continue}if(Xt=this.tokenizer.table(nt)){nt=nt.substring(Xt.raw.length),ct.push(Xt);continue}if(Xt=this.tokenizer.lheading(nt)){nt=nt.substring(Xt.raw.length),ct.push(Xt);continue}if(dt&&(Xt=this.tokenizer.paragraph(nt))){nt=nt.substring(Xt.raw.length),ct.push(Xt);continue}if(Xt=this.tokenizer.text(nt)){nt=nt.substring(Xt.raw.length),kt=ct[ct.length-1],kt&&kt.type==="text"?(kt.raw+=`
|
|
|
`+Xt.raw,kt.text+=`
|
|
|
`+Xt.text):ct.push(Xt);continue}if(nt){var Nn="Infinite loop on byte: "+nt.charCodeAt(0);if(this.options.silent){console.error(Nn);break}else throw new Error(Nn)}}return ct},Vt.inline=function(nt){var ct,dt,Xt,Re,fn,kt,Nn=nt.length;for(ct=0;ct<Nn;ct++)switch(kt=nt[ct],kt.type){case"paragraph":case"text":case"heading":{kt.tokens=[],this.inlineTokens(kt.text,kt.tokens);break}case"table":{for(kt.tokens={header:[],cells:[]},Re=kt.header.length,dt=0;dt<Re;dt++)kt.tokens.header[dt]=[],this.inlineTokens(kt.header[dt],kt.tokens.header[dt]);for(Re=kt.cells.length,dt=0;dt<Re;dt++)for(fn=kt.cells[dt],kt.tokens.cells[dt]=[],Xt=0;Xt<fn.length;Xt++)kt.tokens.cells[dt][Xt]=[],this.inlineTokens(fn[Xt],kt.tokens.cells[dt][Xt]);break}case"blockquote":{this.inline(kt.tokens);break}case"list":{for(Re=kt.items.length,dt=0;dt<Re;dt++)this.inline(kt.items[dt].tokens);break}}return nt},Vt.inlineTokens=function(nt,ct,dt,Xt){ct===void 0&&(ct=[]),dt===void 0&&(dt=!1),Xt===void 0&&(Xt=!1);var Re,fn,kt=nt,Nn,Jn,vi;if(this.tokens.links){var Fi=Object.keys(this.tokens.links);if(Fi.length>0)for(;(Nn=this.tokenizer.rules.inline.reflinkSearch.exec(kt))!=null;)Fi.includes(Nn[0].slice(Nn[0].lastIndexOf("[")+1,-1))&&(kt=kt.slice(0,Nn.index)+"["+Tt("a",Nn[0].length-2)+"]"+kt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Nn=this.tokenizer.rules.inline.blockSkip.exec(kt))!=null;)kt=kt.slice(0,Nn.index)+"["+Tt("a",Nn[0].length-2)+"]"+kt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Nn=this.tokenizer.rules.inline.escapedEmSt.exec(kt))!=null;)kt=kt.slice(0,Nn.index)+"++"+kt.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;nt;){if(Jn||(vi=""),Jn=!1,Re=this.tokenizer.escape(nt)){nt=nt.substring(Re.raw.length),ct.push(Re);continue}if(Re=this.tokenizer.tag(nt,dt,Xt)){nt=nt.substring(Re.raw.length),dt=Re.inLink,Xt=Re.inRawBlock;var Mn=ct[ct.length-1];Mn&&Re.type==="text"&&Mn.type==="text"?(Mn.raw+=Re.raw,Mn.text+=Re.text):ct.push(Re);continue}if(Re=this.tokenizer.link(nt)){nt=nt.substring(Re.raw.length),Re.type==="link"&&(Re.tokens=this.inlineTokens(Re.text,[],!0,Xt)),ct.push(Re);continue}if(Re=this.tokenizer.reflink(nt,this.tokens.links)){nt=nt.substring(Re.raw.length);var Hn=ct[ct.length-1];Re.type==="link"?(Re.tokens=this.inlineTokens(Re.text,[],!0,Xt),ct.push(Re)):Hn&&Re.type==="text"&&Hn.type==="text"?(Hn.raw+=Re.raw,Hn.text+=Re.text):ct.push(Re);continue}if(Re=this.tokenizer.emStrong(nt,kt,vi)){nt=nt.substring(Re.raw.length),Re.tokens=this.inlineTokens(Re.text,[],dt,Xt),ct.push(Re);continue}if(Re=this.tokenizer.codespan(nt)){nt=nt.substring(Re.raw.length),ct.push(Re);continue}if(Re=this.tokenizer.br(nt)){nt=nt.substring(Re.raw.length),ct.push(Re);continue}if(Re=this.tokenizer.del(nt)){nt=nt.substring(Re.raw.length),Re.tokens=this.inlineTokens(Re.text,[],dt,Xt),ct.push(Re);continue}if(Re=this.tokenizer.autolink(nt,v)){nt=nt.substring(Re.raw.length),ct.push(Re);continue}if(!dt&&(Re=this.tokenizer.url(nt,v))){nt=nt.substring(Re.raw.length),ct.push(Re);continue}if(Re=this.tokenizer.inlineText(nt,Xt,z)){nt=nt.substring(Re.raw.length),Re.raw.slice(-1)!=="_"&&(vi=Re.raw.slice(-1)),Jn=!0,fn=ct[ct.length-1],fn&&fn.type==="text"?(fn.raw+=Re.raw,fn.text+=Re.text):ct.push(Re);continue}if(nt){var Yt="Infinite loop on byte: "+nt.charCodeAt(0);if(this.options.silent){console.error(Yt);break}else throw new Error(Yt)}}return ct},g(St,null,[{key:"rules",get:function(){return{block:_r,inline:Me}}}]),St}(),D=ke.exports.defaults,de=oe.cleanUrl,W=oe.escape,P=function(){function St(Zt){this.options=Zt||D}var Vt=St.prototype;return Vt.code=function(nt,ct,dt){var Xt=(ct||"").match(/\S*/)[0];if(this.options.highlight){var Re=this.options.highlight(nt,Xt);Re!=null&&Re!==nt&&(dt=!0,nt=Re)}return nt=nt.replace(/\n$/,"")+`
|
|
|
`,Xt?'<pre><code class="'+this.options.langPrefix+W(Xt,!0)+'">'+(dt?nt:W(nt,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(dt?nt:W(nt,!0))+`</code></pre>
|
|
|
`},Vt.blockquote=function(nt){return`<blockquote>
|
|
|
`+nt+`</blockquote>
|
|
|
`},Vt.html=function(nt){return nt},Vt.heading=function(nt,ct,dt,Xt){return this.options.headerIds?"<h"+ct+' id="'+this.options.headerPrefix+Xt.slug(dt)+'">'+nt+"</h"+ct+`>
|
|
|
`:"<h"+ct+">"+nt+"</h"+ct+`>
|
|
|
`},Vt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Vt.list=function(nt,ct,dt){var Xt=ct?"ol":"ul",Re=ct&&dt!==1?' start="'+dt+'"':"";return"<"+Xt+Re+`>
|
|
|
`+nt+"</"+Xt+`>
|
|
|
`},Vt.listitem=function(nt){return"<li>"+nt+`</li>
|
|
|
`},Vt.checkbox=function(nt){return"<input "+(nt?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Vt.paragraph=function(nt){return"<p>"+nt+`</p>
|
|
|
`},Vt.table=function(nt,ct){return ct&&(ct="<tbody>"+ct+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+nt+`</thead>
|
|
|
`+ct+`</table>
|
|
|
`},Vt.tablerow=function(nt){return`<tr>
|
|
|
`+nt+`</tr>
|
|
|
`},Vt.tablecell=function(nt,ct){var dt=ct.header?"th":"td",Xt=ct.align?"<"+dt+' align="'+ct.align+'">':"<"+dt+">";return Xt+nt+"</"+dt+`>
|
|
|
`},Vt.strong=function(nt){return"<strong>"+nt+"</strong>"},Vt.em=function(nt){return"<em>"+nt+"</em>"},Vt.codespan=function(nt){return"<code>"+nt+"</code>"},Vt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Vt.del=function(nt){return"<del>"+nt+"</del>"},Vt.link=function(nt,ct,dt){if(nt=de(this.options.sanitize,this.options.baseUrl,nt),nt===null)return dt;var Xt='<a href="'+W(nt)+'"';return ct&&(Xt+=' title="'+ct+'"'),Xt+=">"+dt+"</a>",Xt},Vt.image=function(nt,ct,dt){if(nt=de(this.options.sanitize,this.options.baseUrl,nt),nt===null)return dt;var Xt='<img src="'+nt+'" alt="'+dt+'"';return ct&&(Xt+=' title="'+ct+'"'),Xt+=this.options.xhtml?"/>":">",Xt},Vt.text=function(nt){return nt},St}(),te=function(){function St(){}var Vt=St.prototype;return Vt.strong=function(nt){return nt},Vt.em=function(nt){return nt},Vt.codespan=function(nt){return nt},Vt.del=function(nt){return nt},Vt.html=function(nt){return nt},Vt.text=function(nt){return nt},Vt.link=function(nt,ct,dt){return""+dt},Vt.image=function(nt,ct,dt){return""+dt},Vt.br=function(){return""},St}(),Ie=function(){function St(){this.seen={}}var Vt=St.prototype;return Vt.serialize=function(nt){return nt.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Vt.getNextSafeSlug=function(nt,ct){var dt=nt,Xt=0;if(this.seen.hasOwnProperty(dt)){Xt=this.seen[nt];do Xt++,dt=nt+"-"+Xt;while(this.seen.hasOwnProperty(dt))}return ct||(this.seen[nt]=Xt,this.seen[dt]=0),dt},Vt.slug=function(nt,ct){ct===void 0&&(ct={});var dt=this.serialize(nt);return this.getNextSafeSlug(dt,ct.dryrun)},St}(),Te=P,Se=te,Ge=Ie,ft=ke.exports.defaults,Ke=oe.unescape,Xe=function(){function St(Zt){this.options=Zt||ft,this.options.renderer=this.options.renderer||new Te,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Se,this.slugger=new Ge}St.parse=function(nt,ct){var dt=new St(ct);return dt.parse(nt)},St.parseInline=function(nt,ct){var dt=new St(ct);return dt.parseInline(nt)};var Vt=St.prototype;return Vt.parse=function(nt,ct){ct===void 0&&(ct=!0);var dt="",Xt,Re,fn,kt,Nn,Jn,vi,Fi,Mn,Hn,Yt,kr,tn,Nt,_t,Ir,Dr,In,qr=nt.length;for(Xt=0;Xt<qr;Xt++)switch(Hn=nt[Xt],Hn.type){case"space":continue;case"hr":{dt+=this.renderer.hr();continue}case"heading":{dt+=this.renderer.heading(this.parseInline(Hn.tokens),Hn.depth,Ke(this.parseInline(Hn.tokens,this.textRenderer)),this.slugger);continue}case"code":{dt+=this.renderer.code(Hn.text,Hn.lang,Hn.escaped);continue}case"table":{for(Fi="",vi="",kt=Hn.header.length,Re=0;Re<kt;Re++)vi+=this.renderer.tablecell(this.parseInline(Hn.tokens.header[Re]),{header:!0,align:Hn.align[Re]});for(Fi+=this.renderer.tablerow(vi),Mn="",kt=Hn.cells.length,Re=0;Re<kt;Re++){for(Jn=Hn.tokens.cells[Re],vi="",Nn=Jn.length,fn=0;fn<Nn;fn++)vi+=this.renderer.tablecell(this.parseInline(Jn[fn]),{header:!1,align:Hn.align[fn]});Mn+=this.renderer.tablerow(vi)}dt+=this.renderer.table(Fi,Mn);continue}case"blockquote":{Mn=this.parse(Hn.tokens),dt+=this.renderer.blockquote(Mn);continue}case"list":{for(Yt=Hn.ordered,kr=Hn.start,tn=Hn.loose,kt=Hn.items.length,Mn="",Re=0;Re<kt;Re++)_t=Hn.items[Re],Ir=_t.checked,Dr=_t.task,Nt="",_t.task&&(In=this.renderer.checkbox(Ir),tn?_t.tokens.length>0&&_t.tokens[0].type==="text"?(_t.tokens[0].text=In+" "+_t.tokens[0].text,_t.tokens[0].tokens&&_t.tokens[0].tokens.length>0&&_t.tokens[0].tokens[0].type==="text"&&(_t.tokens[0].tokens[0].text=In+" "+_t.tokens[0].tokens[0].text)):_t.tokens.unshift({type:"text",text:In}):Nt+=In),Nt+=this.parse(_t.tokens,tn),Mn+=this.renderer.listitem(Nt,Dr,Ir);dt+=this.renderer.list(Mn,Yt,kr);continue}case"html":{dt+=this.renderer.html(Hn.text);continue}case"paragraph":{dt+=this.renderer.paragraph(this.parseInline(Hn.tokens));continue}case"text":{for(Mn=Hn.tokens?this.parseInline(Hn.tokens):Hn.text;Xt+1<qr&&nt[Xt+1].type==="text";)Hn=nt[++Xt],Mn+=`
|
|
|
`+(Hn.tokens?this.parseInline(Hn.tokens):Hn.text);dt+=ct?this.renderer.paragraph(Mn):Mn;continue}default:{var Sn='Token with "'+Hn.type+'" type was not found.';if(this.options.silent){console.error(Sn);return}else throw new Error(Sn)}}return dt},Vt.parseInline=function(nt,ct){ct=ct||this.renderer;var dt="",Xt,Re,fn=nt.length;for(Xt=0;Xt<fn;Xt++)switch(Re=nt[Xt],Re.type){case"escape":{dt+=ct.text(Re.text);break}case"html":{dt+=ct.html(Re.text);break}case"link":{dt+=ct.link(Re.href,Re.title,this.parseInline(Re.tokens,ct));break}case"image":{dt+=ct.image(Re.href,Re.title,Re.text);break}case"strong":{dt+=ct.strong(this.parseInline(Re.tokens,ct));break}case"em":{dt+=ct.em(this.parseInline(Re.tokens,ct));break}case"codespan":{dt+=ct.codespan(Re.text);break}case"br":{dt+=ct.br();break}case"del":{dt+=ct.del(this.parseInline(Re.tokens,ct));break}case"text":{dt+=ct.text(Re.text);break}default:{var kt='Token with "'+Re.type+'" type was not found.';if(this.options.silent){console.error(kt);return}else throw new Error(kt)}}return dt},St}(),At=f,We=Xe,$e=at,Bt=P,Kt=te,Mt=Ie,wr=oe.merge,vr=oe.checkSanitizeDeprecation,re=oe.escape,le=ke.exports.getDefaults,rr=ke.exports.changeDefaults,Ue=ke.exports.defaults;function ot(St,Vt,Zt){if(typeof St=="undefined"||St===null)throw new Error("marked(): input parameter is undefined or null");if(typeof St!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(St)+", string expected");if(typeof Vt=="function"&&(Zt=Vt,Vt=null),Vt=wr({},ot.defaults,Vt||{}),vr(Vt),Zt){var nt=Vt.highlight,ct;try{ct=At.lex(St,Vt)}catch(fn){return Zt(fn)}var dt=function(kt){var Nn;if(!kt)try{Vt.walkTokens&&ot.walkTokens(ct,Vt.walkTokens),Nn=We.parse(ct,Vt)}catch(Jn){kt=Jn}return Vt.highlight=nt,kt?Zt(kt):Zt(null,Nn)};if(!nt||nt.length<3||(delete Vt.highlight,!ct.length))return dt();var Xt=0;ot.walkTokens(ct,function(fn){fn.type==="code"&&(Xt++,setTimeout(function(){nt(fn.text,fn.lang,function(kt,Nn){if(kt)return dt(kt);Nn!=null&&Nn!==fn.text&&(fn.text=Nn,fn.escaped=!0),Xt--,Xt===0&&dt()})},0))}),Xt===0&&dt();return}try{var Re=At.lex(St,Vt);return Vt.walkTokens&&ot.walkTokens(Re,Vt.walkTokens),We.parse(Re,Vt)}catch(fn){if(fn.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Vt.silent)return"<p>An error occurred:</p><pre>"+re(fn.message+"",!0)+"</pre>";throw fn}}ot.options=ot.setOptions=function(St){return wr(ot.defaults,St),rr(ot.defaults),ot},ot.getDefaults=le,ot.defaults=Ue,ot.use=function(St){var Vt=wr({},St);if(St.renderer&&function(){var nt=ot.defaults.renderer||new Bt,ct=function(Re){var fn=nt[Re];nt[Re]=function(){for(var kt=arguments.length,Nn=new Array(kt),Jn=0;Jn<kt;Jn++)Nn[Jn]=arguments[Jn];var vi=St.renderer[Re].apply(nt,Nn);return vi===!1&&(vi=fn.apply(nt,Nn)),vi}};for(var dt in St.renderer)ct(dt);Vt.renderer=nt}(),St.tokenizer&&function(){var nt=ot.defaults.tokenizer||new $e,ct=function(Re){var fn=nt[Re];nt[Re]=function(){for(var kt=arguments.length,Nn=new Array(kt),Jn=0;Jn<kt;Jn++)Nn[Jn]=arguments[Jn];var vi=St.tokenizer[Re].apply(nt,Nn);return vi===!1&&(vi=fn.apply(nt,Nn)),vi}};for(var dt in St.tokenizer)ct(dt);Vt.tokenizer=nt}(),St.walkTokens){var Zt=ot.defaults.walkTokens;Vt.walkTokens=function(nt){St.walkTokens(nt),Zt&&Zt(nt)}}ot.setOptions(Vt)},ot.walkTokens=function(St,Vt){for(var Zt=se(St),nt;!(nt=Zt()).done;){var ct=nt.value;switch(Vt(ct),ct.type){case"table":{for(var dt=se(ct.tokens.header),Xt;!(Xt=dt()).done;){var Re=Xt.value;ot.walkTokens(Re,Vt)}for(var fn=se(ct.tokens.cells),kt;!(kt=fn()).done;)for(var Nn=kt.value,Jn=se(Nn),vi;!(vi=Jn()).done;){var Fi=vi.value;ot.walkTokens(Fi,Vt)}break}case"list":{ot.walkTokens(ct.items,Vt);break}default:ct.tokens&&ot.walkTokens(ct.tokens,Vt)}}},ot.parseInline=function(St,Vt){if(typeof St=="undefined"||St===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof St!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(St)+", string expected");Vt=wr({},ot.defaults,Vt||{}),vr(Vt);try{var Zt=At.lexInline(St,Vt);return Vt.walkTokens&&ot.walkTokens(Zt,Vt.walkTokens),We.parseInline(Zt,Vt)}catch(nt){if(nt.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Vt.silent)return"<p>An error occurred:</p><pre>"+re(nt.message+"",!0)+"</pre>";throw nt}},ot.Parser=We,ot.parser=We.parse,ot.Renderer=Bt,ot.TextRenderer=Kt,ot.Lexer=At,ot.lexer=At.lex,ot.Tokenizer=$e,ot.Slugger=Mt,ot.parse=ot;var Yr=ot;return Yr})},11690:function(yn){const Gt=/[&<>"']/,g=/[&<>"']/g,we=/[<>"']|&(?!#?\w+;)/,Fe=/[<>"']|&(?!#?\w+;)/g,se={"&":"&","<":"<",">":">",'"':""","'":"'"},ke=q=>se[q];function ie(q,be){if(be){if(Gt.test(q))return q.replace(g,ke)}else if(we.test(q))return q.replace(Fe,ke);return q}const Y=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function O(q){return q.replace(Y,(be,xe)=>(xe=xe.toLowerCase(),xe==="colon"?":":xe.charAt(0)==="#"?xe.charAt(1)==="x"?String.fromCharCode(parseInt(xe.substring(2),16)):String.fromCharCode(+xe.substring(1)):""))}const T=/(^|[^\[])\^/g;function n(q,be){q=q.source||q,be=be||"";const xe={replace:(Le,ae)=>(ae=ae.source||ae,ae=ae.replace(T,"$1"),q=q.replace(Le,ae),xe),getRegex:()=>new RegExp(q,be)};return xe}const o=/[^\w:]/g,L=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(q,be,xe){if(q){let Le;try{Le=decodeURIComponent(O(xe)).replace(o,"").toLowerCase()}catch(ae){return null}if(Le.indexOf("javascript:")===0||Le.indexOf("vbscript:")===0||Le.indexOf("data:")===0)return null}be&&!L.test(xe)&&(xe=K(be,xe));try{xe=encodeURI(xe).replace(/%25/g,"%")}catch(Le){return null}return xe}const a={},A=/^[^:]+:\/*[^/]*$/,m=/^([^:]+:)[\s\S]*$/,S=/^([^:]+:\/*[^/]*)[\s\S]*$/;function K(q,be){a[" "+q]||(A.test(q)?a[" "+q]=q+"/":a[" "+q]=ee(q,"/",!0)),q=a[" "+q];const xe=q.indexOf(":")===-1;return be.substring(0,2)==="//"?xe?be:q.replace(m,"$1")+be:be.charAt(0)==="/"?xe?be:q.replace(S,"$1")+be:q+be}const F={exec:function(){}};function H(q){let be=1,xe,Le;for(;be<arguments.length;be++){xe=arguments[be];for(Le in xe)Object.prototype.hasOwnProperty.call(xe,Le)&&(q[Le]=xe[Le])}return q}function V(q,be){const xe=q.replace(/\|/g,(me,I,_e)=>{let oe=!1,he=I;for(;--he>=0&&_e[he]==="\\";)oe=!oe;return oe?"|":" |"}),Le=xe.split(/ \|/);let ae=0;if(Le.length>be)Le.splice(be);else for(;Le.length<be;)Le.push("");for(;ae<Le.length;ae++)Le[ae]=Le[ae].trim().replace(/\\\|/g,"|");return Le}function ee(q,be,xe){const Le=q.length;if(Le===0)return"";let ae=0;for(;ae<Le;){const me=q.charAt(Le-ae-1);if(me===be&&!xe)ae++;else if(me!==be&&xe)ae++;else break}return q.substr(0,Le-ae)}function B(q,be){if(q.indexOf(be[1])===-1)return-1;const xe=q.length;let Le=0,ae=0;for(;ae<xe;ae++)if(q[ae]==="\\")ae++;else if(q[ae]===be[0])Le++;else if(q[ae]===be[1]&&(Le--,Le<0))return ae;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,be){if(be<1)return"";let xe="";for(;be>1;)be&1&&(xe+=q),be>>=1,q+=q;return xe+q}yn.exports={escape:ie,unescape:O,edit:n,cleanUrl:p,resolveUrl:K,noopTest:F,merge:H,splitCells:V,rtrim:ee,findClosingBracket:B,checkSanitizeDeprecation:G,repeatString:ce}},75918:function(yn,Gt,g){"use strict";g.d(Gt,{Wi:function(){return Y},Z0:function(){return O},aU:function(){return ie},eZ:function(){return n},wY:function(){return T}});var we=g(4348),Fe=g(69323),se=g(13268),ke=function(o,L,p,a){function A(m){return m instanceof p?m:new p(function(S){S(m)})}return new(p||(p=Promise))(function(m,S){function K(V){try{H(a.next(V))}catch(ee){S(ee)}}function F(V){try{H(a.throw(V))}catch(ee){S(ee)}}function H(V){V.done?m(V.value):A(V.value).then(K,F)}H((a=a.apply(o,L||[])).next())})};class ie extends Fe.JT{constructor(L,p="",a="",A=!0,m){super(),this._onDidChange=this._register(new we.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=L,this._label=p,this._cssClass=a,this._enabled=A,this._actionCallback=m}get id(){return this._id}get label(){return this._label}set label(L){this._setLabel(L)}_setLabel(L){this._label!==L&&(this._label=L,this._onDidChange.fire({label:L}))}get tooltip(){return this._tooltip||""}set tooltip(L){this._setTooltip(L)}_setTooltip(L){this._tooltip!==L&&(this._tooltip=L,this._onDidChange.fire({tooltip:L}))}get class(){return this._cssClass}set class(L){this._setClass(L)}_setClass(L){this._cssClass!==L&&(this._cssClass=L,this._onDidChange.fire({class:L}))}get enabled(){return this._enabled}set enabled(L){this._setEnabled(L)}_setEnabled(L){this._enabled!==L&&(this._enabled=L,this._onDidChange.fire({enabled:L}))}get checked(){return this._checked}set checked(L){this._setChecked(L)}_setChecked(L){this._checked!==L&&(this._checked=L,this._onDidChange.fire({checked:L}))}run(L,p){return ke(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(L))})}}class Y extends Fe.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new we.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new we.Q5),this.onDidRun=this._onDidRun.event}run(L,p){return ke(this,void 0,void 0,function*(){if(!L.enabled)return;this._onBeforeRun.fire({action:L});let a;try{yield this.runAction(L,p)}catch(A){a=A}this._onDidRun.fire({action:L,error:a})})}runAction(L,p){return ke(this,void 0,void 0,function*(){yield L.run(p)})}}class O extends ie{constructor(L){super(O.ID,L,L?"separator text":"separator"),this.checked=!1,this.enabled=!1}}O.ID="vs.actions.separator";class T{constructor(L,p,a,A){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=L,this.label=p,this.class=A,this._actions=a}get actions(){return this._actions}dispose(){}run(){return ke(this,void 0,void 0,function*(){})}}class n extends ie{constructor(){super(n.ID,se.N("submenu.empty","(empty)"),void 0,!1)}}n.ID="vs.actions.empty"},76068:function(yn,Gt,g){"use strict";g.d(Gt,{ok:function(){return we}});function we(Fe,se){if(!Fe)throw new Error(se?`Assertion failed (${se})`:"Assertion Failed")}},52615:function(yn,Gt,g){"use strict";g.d(Gt,{CM:function(){return ie},JL:function(){return Y},dT:function(){return T},fK:function(){return ke},lA:function(){return O}});var we=g(4348);class Fe{constructor(){this._icons=new Map,this._onDidRegister=new we.Q5}add(o){const L=this._icons.get(o.id);L?o.description?L.description=o.description:console.error(`Duplicate registration of codicon ${o.id}`):(this._icons.set(o.id,o),this._onDidRegister.fire(o))}get(o){return this._icons.get(o)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const se=new Fe,ke=se;function ie(n,o){return new O(n,o)}function Y(n){return n?n.replace(/\$\((.*?)\)/g,(o,L)=>` ${L} `).trim():""}class O{constructor(o,L,p){this.id=o,this.definition=L,this.description=p,se.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(n){n.iconNameSegment="[A-Za-z0-9]+",n.iconNameExpression="[A-Za-z0-9\\-]+",n.iconModifierExpression="~[A-Za-z]+";const o=new RegExp(`^(${n.iconNameExpression})(${n.iconModifierExpression})?$`);function L(A){if(A instanceof O)return["codicon","codicon-"+A.id];const m=o.exec(A.id);if(!m)return L(O.error);let[,S,K]=m;const F=["codicon","codicon-"+S];return K&&F.push("codicon-modifier-"+K.substr(1)),F}n.asClassNameArray=L;function p(A){return L(A).join(" ")}n.asClassName=p;function a(A){return"."+L(A).join(".")}n.asCSSSelector=a})(T||(T={})),function(n){n.add=new n("add",{fontCharacter:"\\ea60"}),n.plus=new n("plus",n.add.definition),n.gistNew=new n("gist-new",n.add.definition),n.repoCreate=new n("repo-create",n.add.definition),n.lightbulb=new n("lightbulb",{fontCharacter:"\\ea61"}),n.lightBulb=new n("light-bulb",{fontCharacter:"\\ea61"}),n.repo=new n("repo",{fontCharacter:"\\ea62"}),n.repoDelete=new n("repo-delete",{fontCharacter:"\\ea62"}),n.gistFork=new n("gist-fork",{fontCharacter:"\\ea63"}),n.repoForked=new n("repo-forked",{fontCharacter:"\\ea63"}),n.gitPullRequest=new n("git-pull-request",{fontCharacter:"\\ea64"}),n.gitPullRequestAbandoned=new n("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),n.recordKeys=new n("record-keys",{fontCharacter:"\\ea65"}),n.keyboard=new n("keyboard",{fontCharacter:"\\ea65"}),n.tag=new n("tag",{fontCharacter:"\\ea66"}),n.tagAdd=new n("tag-add",{fontCharacter:"\\ea66"}),n.tagRemove=new n("tag-remove",{fontCharacter:"\\ea66"}),n.person=new n("person",{fontCharacter:"\\ea67"}),n.personFollow=new n("person-follow",{fontCharacter:"\\ea67"}),n.personOutline=new n("person-outline",{fontCharacter:"\\ea67"}),n.personFilled=new n("person-filled",{fontCharacter:"\\ea67"}),n.gitBranch=new n("git-branch",{fontCharacter:"\\ea68"}),n.gitBranchCreate=new n("git-branch-create",{fontCharacter:"\\ea68"}),n.gitBranchDelete=new n("git-branch-delete",{fontCharacter:"\\ea68"}),n.sourceControl=new n("source-control",{fontCharacter:"\\ea68"}),n.mirror=new n("mirror",{fontCharacter:"\\ea69"}),n.mirrorPublic=new n("mirror-public",{fontCharacter:"\\ea69"}),n.star=new n("star",{fontCharacter:"\\ea6a"}),n.starAdd=new n("star-add",{fontCharacter:"\\ea6a"}),n.starDelete=new n("star-delete",{fontCharacter:"\\ea6a"}),n.starEmpty=new n("star-empty",{fontCharacter:"\\ea6a"}),n.comment=new n("comment",{fontCharacter:"\\ea6b"}),n.commentAdd=new n("comment-add",{fontCharacter:"\\ea6b"}),n.alert=new n("alert",{fontCharacter:"\\ea6c"}),n.warning=new n("warning",{fontCharacter:"\\ea6c"}),n.search=new n("search",{fontCharacter:"\\ea6d"}),n.searchSave=new n("search-save",{fontCharacter:"\\ea6d"}),n.logOut=new n("log-out",{fontCharacter:"\\ea6e"}),n.signOut=new n("sign-out",{fontCharacter:"\\ea6e"}),n.logIn=new n("log-in",{fontCharacter:"\\ea6f"}),n.signIn=new n("sign-in",{fontCharacter:"\\ea6f"}),n.eye=new n("eye",{fontCharacter:"\\ea70"}),n.eyeUnwatch=new n("eye-unwatch",{fontCharacter:"\\ea70"}),n.eyeWatch=new n("eye-watch",{fontCharacter:"\\ea70"}),n.circleFilled=new n("circle-filled",{fontCharacter:"\\ea71"}),n.primitiveDot=new n("primitive-dot",{fontCharacter:"\\ea71"}),n.closeDirty=new n("close-dirty",{fontCharacter:"\\ea71"}),n.debugBreakpoint=new n("debug-breakpoint",{fontCharacter:"\\ea71"}),n.debugBreakpointDisabled=new n("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),n.debugHint=new n("debug-hint",{fontCharacter:"\\ea71"}),n.primitiveSquare=new n("primitive-square",{fontCharacter:"\\ea72"}),n.edit=new n("edit",{fontCharacter:"\\ea73"}),n.pencil=new n("pencil",{fontCharacter:"\\ea73"}),n.info=new n("info",{fontCharacter:"\\ea74"}),n.issueOpened=new n("issue-opened",{fontCharacter:"\\ea74"}),n.gistPrivate=new n("gist-private",{fontCharacter:"\\ea75"}),n.gitForkPrivate=new n("git-fork-private",{fontCharacter:"\\ea75"}),n.lock=new n("lock",{fontCharacter:"\\ea75"}),n.mirrorPrivate=new n("mirror-private",{fontCharacter:"\\ea75"}),n.close=new n("close",{fontCharacter:"\\ea76"}),n.removeClose=new n("remove-close",{fontCharacter:"\\ea76"}),n.x=new n("x",{fontCharacter:"\\ea76"}),n.repoSync=new n("repo-sync",{fontCharacter:"\\ea77"}),n.sync=new n("sync",{fontCharacter:"\\ea77"}),n.clone=new n("clone",{fontCharacter:"\\ea78"}),n.desktopDownload=new n("desktop-download",{fontCharacter:"\\ea78"}),n.beaker=new n("beaker",{fontCharacter:"\\ea79"}),n.microscope=new n("microscope",{fontCharacter:"\\ea79"}),n.vm=new n("vm",{fontCharacter:"\\ea7a"}),n.deviceDesktop=new n("device-desktop",{fontCharacter:"\\ea7a"}),n.file=new n("file",{fontCharacter:"\\ea7b"}),n.fileText=new n("file-text",{fontCharacter:"\\ea7b"}),n.more=new n("more",{fontCharacter:"\\ea7c"}),n.ellipsis=new n("ellipsis",{fontCharacter:"\\ea7c"}),n.kebabHorizontal=new n("kebab-horizontal",{fontCharacter:"\\ea7c"}),n.mailReply=new n("mail-reply",{fontCharacter:"\\ea7d"}),n.reply=new n("reply",{fontCharacter:"\\ea7d"}),n.organization=new n("organization",{fontCharacter:"\\ea7e"}),n.organizationFilled=new n("organization-filled",{fontCharacter:"\\ea7e"}),n.organizationOutline=new n("organization-outline",{fontCharacter:"\\ea7e"}),n.newFile=new n("new-file",{fontCharacter:"\\ea7f"}),n.fileAdd=new n("file-add",{fontCharacter:"\\ea7f"}),n.newFolder=new n("new-folder",{fontCharacter:"\\ea80"}),n.fileDirectoryCreate=new n("file-directory-create",{fontCharacter:"\\ea80"}),n.trash=new n("trash",{fontCharacter:"\\ea81"}),n.trashcan=new n("trashcan",{fontCharacter:"\\ea81"}),n.history=new n("history",{fontCharacter:"\\ea82"}),n.clock=new n("clock",{fontCharacter:"\\ea82"}),n.folder=new n("folder",{fontCharacter:"\\ea83"}),n.fileDirectory=new n("file-directory",{fontCharacter:"\\ea83"}),n.symbolFolder=new n("symbol-folder",{fontCharacter:"\\ea83"}),n.logoGithub=new n("logo-github",{fontCharacter:"\\ea84"}),n.markGithub=new n("mark-github",{fontCharacter:"\\ea84"}),n.github=new n("github",{fontCharacter:"\\ea84"}),n.terminal=new n("terminal",{fontCharacter:"\\ea85"}),n.console=new n("console",{fontCharacter:"\\ea85"}),n.repl=new n("repl",{fontCharacter:"\\ea85"}),n.zap=new n("zap",{fontCharacter:"\\ea86"}),n.symbolEvent=new n("symbol-event",{fontCharacter:"\\ea86"}),n.error=new n("error",{fontCharacter:"\\ea87"}),n.stop=new n("stop",{fontCharacter:"\\ea87"}),n.variable=new n("variable",{fontCharacter:"\\ea88"}),n.symbolVariable=new n("symbol-variable",{fontCharacter:"\\ea88"}),n.array=new n("array",{fontCharacter:"\\ea8a"}),n.symbolArray=new n("symbol-array",{fontCharacter:"\\ea8a"}),n.symbolModule=new n("symbol-module",{fontCharacter:"\\ea8b"}),n.symbolPackage=new n("symbol-package",{fontCharacter:"\\ea8b"}),n.symbolNamespace=new n("symbol-namespace",{fontCharacter:"\\ea8b"}),n.symbolObject=new n("symbol-object",{fontCharacter:"\\ea8b"}),n.symbolMethod=new n("symbol-method",{fontCharacter:"\\ea8c"}),n.symbolFunction=new n("symbol-function",{fontCharacter:"\\ea8c"}),n.symbolConstructor=new n("symbol-constructor",{fontCharacter:"\\ea8c"}),n.symbolBoolean=new n("symbol-boolean",{fontCharacter:"\\ea8f"}),n.symbolNull=new n("symbol-null",{fontCharacter:"\\ea8f"}),n.symbolNumeric=new n("symbol-numeric",{fontCharacter:"\\ea90"}),n.symbolNumber=new n("symbol-number",{fontCharacter:"\\ea90"}),n.symbolStructure=new n("symbol-structure",{fontCharacter:"\\ea91"}),n.symbolStruct=new n("symbol-struct",{fontCharacter:"\\ea91"}),n.symbolParameter=new n("symbol-parameter",{fontCharacter:"\\ea92"}),n.symbolTypeParameter=new n("symbol-type-parameter",{fontCharacter:"\\ea92"}),n.symbolKey=new n("symbol-key",{fontCharacter:"\\ea93"}),n.symbolText=new n("symbol-text",{fontCharacter:"\\ea93"}),n.symbolReference=new n("symbol-reference",{fontCharacter:"\\ea94"}),n.goToFile=new n("go-to-file",{fontCharacter:"\\ea94"}),n.symbolEnum=new n("symbol-enum",{fontCharacter:"\\ea95"}),n.symbolValue=new n("symbol-value",{fontCharacter:"\\ea95"}),n.symbolRuler=new n("symbol-ruler",{fontCharacter:"\\ea96"}),n.symbolUnit=new n("symbol-unit",{fontCharacter:"\\ea96"}),n.activateBreakpoints=new n("activate-breakpoints",{fontCharacter:"\\ea97"}),n.archive=new n("archive",{fontCharacter:"\\ea98"}),n.arrowBoth=new n("arrow-both",{fontCharacter:"\\ea99"}),n.arrowDown=new n("arrow-down",{fontCharacter:"\\ea9a"}),n.arrowLeft=new n("arrow-left",{fontCharacter:"\\ea9b"}),n.arrowRight=new n("arrow-right",{fontCharacter:"\\ea9c"}),n.arrowSmallDown=new n("arrow-small-down",{fontCharacter:"\\ea9d"}),n.arrowSmallLeft=new n("arrow-small-left",{fontCharacter:"\\ea9e"}),n.arrowSmallRight=new n("arrow-small-right",{fontCharacter:"\\ea9f"}),n.arrowSmallUp=new n("arrow-small-up",{fontCharacter:"\\eaa0"}),n.arrowUp=new n("arrow-up",{fontCharacter:"\\eaa1"}),n.bell=new n("bell",{fontCharacter:"\\eaa2"}),n.bold=new n("bold",{fontCharacter:"\\eaa3"}),n.book=new n("book",{fontCharacter:"\\eaa4"}),n.bookmark=new n("bookmark",{fontCharacter:"\\eaa5"}),n.debugBreakpointConditionalUnverified=new n("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),n.debugBreakpointConditional=new n("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),n.debugBreakpointConditionalDisabled=new n("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),n.debugBreakpointDataUnverified=new n("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),n.debugBreakpointData=new n("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),n.debugBreakpointDataDisabled=new n("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),n.debugBreakpointLogUnverified=new n("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),n.debugBreakpointLog=new n("debug-breakpoint-log",{fontCharacter:"\\eaab"}),n.debugBreakpointLogDisabled=new n("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),n.briefcase=new n("briefcase",{fontCharacter:"\\eaac"}),n.broadcast=new n("broadcast",{fontCharacter:"\\eaad"}),n.browser=new n("browser",{fontCharacter:"\\eaae"}),n.bug=new n("bug",{fontCharacter:"\\eaaf"}),n.calendar=new n("calendar",{fontCharacter:"\\eab0"}),n.caseSensitive=new n("case-sensitive",{fontCharacter:"\\eab1"}),n.check=new n("check",{fontCharacter:"\\eab2"}),n.checklist=new n("checklist",{fontCharacter:"\\eab3"}),n.chevronDown=new n("chevron-down",{fontCharacter:"\\eab4"}),n.dropDownButton=new n("drop-down-button",n.chevronDown.definition),n.chevronLeft=new n("chevron-left",{fontCharacter:"\\eab5"}),n.chevronRight=new n("chevron-right",{fontCharacter:"\\eab6"}),n.chevronUp=new n("chevron-up",{fontCharacter:"\\eab7"}),n.chromeClose=new n("chrome-close",{fontCharacter:"\\eab8"}),n.chromeMaximize=new n("chrome-maximize",{fontCharacter:"\\eab9"}),n.chromeMinimize=new n("chrome-minimize",{fontCharacter:"\\eaba"}),n.chromeRestore=new n("chrome-restore",{fontCharacter:"\\eabb"}),n.circleOutline=new n("circle-outline",{fontCharacter:"\\eabc"}),n.debugBreakpointUnverified=new n("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),n.circleSlash=new n("circle-slash",{fontCharacter:"\\eabd"}),n.circuitBoard=new n("circuit-board",{fontCharacter:"\\eabe"}),n.clearAll=new n("clear-all",{fontCharacter:"\\eabf"}),n.clippy=new n("clippy",{fontCharacter:"\\eac0"}),n.closeAll=new n("close-all",{fontCharacter:"\\eac1"}),n.cloudDownload=new n("cloud-download",{fontCharacter:"\\eac2"}),n.cloudUpload=new n("cloud-upload",{fontCharacter:"\\eac3"}),n.code=new n("code",{fontCharacter:"\\eac4"}),n.collapseAll=new n("collapse-all",{fontCharacter:"\\eac5"}),n.colorMode=new n("color-mode",{fontCharacter:"\\eac6"}),n.commentDiscussion=new n("comment-discussion",{fontCharacter:"\\eac7"}),n.compareChanges=new n("compare-changes",{fontCharacter:"\\eafd"}),n.creditCard=new n("credit-card",{fontCharacter:"\\eac9"}),n.dash=new n("dash",{fontCharacter:"\\eacc"}),n.dashboard=new n("dashboard",{fontCharacter:"\\eacd"}),n.database=new n("database",{fontCharacter:"\\eace"}),n.debugContinue=new n("debug-continue",{fontCharacter:"\\eacf"}),n.debugDisconnect=new n("debug-disconnect",{fontCharacter:"\\ead0"}),n.debugPause=new n("debug-pause",{fontCharacter:"\\ead1"}),n.debugRestart=new n("debug-restart",{fontCharacter:"\\ead2"}),n.debugStart=new n("debug-start",{fontCharacter:"\\ead3"}),n.debugStepInto=new n("debug-step-into",{fontCharacter:"\\ead4"}),n.debugStepOut=new n("debug-step-out",{fontCharacter:"\\ead5"}),n.debugStepOver=new n("debug-step-over",{fontCharacter:"\\ead6"}),n.debugStop=new n("debug-stop",{fontCharacter:"\\ead7"}),n.debug=new n("debug",{fontCharacter:"\\ead8"}),n.deviceCameraVideo=new n("device-camera-video",{fontCharacter:"\\ead9"}),n.deviceCamera=new n("device-camera",{fontCharacter:"\\eada"}),n.deviceMobile=new n("device-mobile",{fontCharacter:"\\eadb"}),n.diffAdded=new n("diff-added",{fontCharacter:"\\eadc"}),n.diffIgnored=new n("diff-ignored",{fontCharacter:"\\eadd"}),n.diffModified=new n("diff-modified",{fontCharacter:"\\eade"}),n.diffRemoved=new n("diff-removed",{fontCharacter:"\\eadf"}),n.diffRenamed=new n("diff-renamed",{fontCharacter:"\\eae0"}),n.diff=new n("diff",{fontCharacter:"\\eae1"}),n.discard=new n("discard",{fontCharacter:"\\eae2"}),n.editorLayout=new n("editor-layout",{fontCharacter:"\\eae3"}),n.emptyWindow=new n("empty-window",{fontCharacter:"\\eae4"}),n.exclude=new n("exclude",{fontCharacter:"\\eae5"}),n.extensions=new n("extensions",{fontCharacter:"\\eae6"}),n.eyeClosed=new n("eye-closed",{fontCharacter:"\\eae7"}),n.fileBinary=new n("file-binary",{fontCharacter:"\\eae8"}),n.fileCode=new n("file-code",{fontCharacter:"\\eae9"}),n.fileMedia=new n("file-media",{fontCharacter:"\\eaea"}),n.filePdf=new n("file-pdf",{fontCharacter:"\\eaeb"}),n.fileSubmodule=new n("file-submodule",{fontCharacter:"\\eaec"}),n.fileSymlinkDirectory=new n("file-symlink-directory",{fontCharacter:"\\eaed"}),n.fileSymlinkFile=new n("file-symlink-file",{fontCharacter:"\\eaee"}),n.fileZip=new n("file-zip",{fontCharacter:"\\eaef"}),n.files=new n("files",{fontCharacter:"\\eaf0"}),n.filter=new n("filter",{fontCharacter:"\\eaf1"}),n.flame=new n("flame",{fontCharacter:"\\eaf2"}),n.foldDown=new n("fold-down",{fontCharacter:"\\eaf3"}),n.foldUp=new n("fold-up",{fontCharacter:"\\eaf4"}),n.fold=new n("fold",{fontCharacter:"\\eaf5"}),n.folderActive=new n("folder-active",{fontCharacter:"\\eaf6"}),n.folderOpened=new n("folder-opened",{fontCharacter:"\\eaf7"}),n.gear=new n("gear",{fontCharacter:"\\eaf8"}),n.gift=new n("gift",{fontCharacter:"\\eaf9"}),n.gistSecret=new n("gist-secret",{fontCharacter:"\\eafa"}),n.gist=new n("gist",{fontCharacter:"\\eafb"}),n.gitCommit=new n("git-commit",{fontCharacter:"\\eafc"}),n.gitCompare=new n("git-compare",{fontCharacter:"\\eafd"}),n.gitMerge=new n("git-merge",{fontCharacter:"\\eafe"}),n.githubAction=new n("github-action",{fontCharacter:"\\eaff"}),n.githubAlt=new n("github-alt",{fontCharacter:"\\eb00"}),n.globe=new n("globe",{fontCharacter:"\\eb01"}),n.grabber=new n("grabber",{fontCharacter:"\\eb02"}),n.graph=new n("graph",{fontCharacter:"\\eb03"}),n.gripper=new n("gripper",{fontCharacter:"\\eb04"}),n.heart=new n("heart",{fontCharacter:"\\eb05"}),n.home=new n("home",{fontCharacter:"\\eb06"}),n.horizontalRule=new n("horizontal-rule",{fontCharacter:"\\eb07"}),n.hubot=new n("hubot",{fontCharacter:"\\eb08"}),n.inbox=new n("inbox",{fontCharacter:"\\eb09"}),n.issueClosed=new n("issue-closed",{fontCharacter:"\\eba4"}),n.issueReopened=new n("issue-reopened",{fontCharacter:"\\eb0b"}),n.issues=new n("issues",{fontCharacter:"\\eb0c"}),n.italic=new n("italic",{fontCharacter:"\\eb0d"}),n.jersey=new n("jersey",{fontCharacter:"\\eb0e"}),n.json=new n("json",{fontCharacter:"\\eb0f"}),n.kebabVertical=new n("kebab-vertical",{fontCharacter:"\\eb10"}),n.key=new n("key",{fontCharacter:"\\eb11"}),n.law=new n("law",{fontCharacter:"\\eb12"}),n.lightbulbAutofix=new n("lightbulb-autofix",{fontCharacter:"\\eb13"}),n.linkExternal=new n("link-external",{fontCharacter:"\\eb14"}),n.link=new n("link",{fontCharacter:"\\eb15"}),n.listOrdered=new n("list-ordered",{fontCharacter:"\\eb16"}),n.listUnordered=new n("list-unordered",{fontCharacter:"\\eb17"}),n.liveShare=new n("live-share",{fontCharacter:"\\eb18"}),n.loading=new n("loading",{fontCharacter:"\\eb19"}),n.location=new n("location",{fontCharacter:"\\eb1a"}),n.mailRead=new n("mail-read",{fontCharacter:"\\eb1b"}),n.mail=new n("mail",{fontCharacter:"\\eb1c"}),n.markdown=new n("markdown",{fontCharacter:"\\eb1d"}),n.megaphone=new n("megaphone",{fontCharacter:"\\eb1e"}),n.mention=new n("mention",{fontCharacter:"\\eb1f"}),n.milestone=new n("milestone",{fontCharacter:"\\eb20"}),n.mortarBoard=new n("mortar-board",{fontCharacter:"\\eb21"}),n.move=new n("move",{fontCharacter:"\\eb22"}),n.multipleWindows=new n("multiple-windows",{fontCharacter:"\\eb23"}),n.mute=new n("mute",{fontCharacter:"\\eb24"}),n.noNewline=new n("no-newline",{fontCharacter:"\\eb25"}),n.note=new n("note",{fontCharacter:"\\eb26"}),n.octoface=new n("octoface",{fontCharacter:"\\eb27"}),n.openPreview=new n("open-preview",{fontCharacter:"\\eb28"}),n.package_=new n("package",{fontCharacter:"\\eb29"}),n.paintcan=new n("paintcan",{fontCharacter:"\\eb2a"}),n.pin=new n("pin",{fontCharacter:"\\eb2b"}),n.play=new n("play",{fontCharacter:"\\eb2c"}),n.run=new n("run",{fontCharacter:"\\eb2c"}),n.plug=new n("plug",{fontCharacter:"\\eb2d"}),n.preserveCase=new n("preserve-case",{fontCharacter:"\\eb2e"}),n.preview=new n("preview",{fontCharacter:"\\eb2f"}),n.project=new n("project",{fontCharacter:"\\eb30"}),n.pulse=new n("pulse",{fontCharacter:"\\eb31"}),n.question=new n("question",{fontCharacter:"\\eb32"}),n.quote=new n("quote",{fontCharacter:"\\eb33"}),n.radioTower=new n("radio-tower",{fontCharacter:"\\eb34"}),n.reactions=new n("reactions",{fontCharacter:"\\eb35"}),n.references=new n("references",{fontCharacter:"\\eb36"}),n.refresh=new n("refresh",{fontCharacter:"\\eb37"}),n.regex=new n("regex",{fontCharacter:"\\eb38"}),n.remoteExplorer=new n("remote-explorer",{fontCharacter:"\\eb39"}),n.remote=new n("remote",{fontCharacter:"\\eb3a"}),n.remove=new n("remove",{fontCharacter:"\\eb3b"}),n.replaceAll=new n("replace-all",{fontCharacter:"\\eb3c"}),n.replace=new n("replace",{fontCharacter:"\\eb3d"}),n.repoClone=new n("repo-clone",{fontCharacter:"\\eb3e"}),n.repoForcePush=new n("repo-force-push",{fontCharacter:"\\eb3f"}),n.repoPull=new n("repo-pull",{fontCharacter:"\\eb40"}),n.repoPush=new n("repo-push",{fontCharacter:"\\eb41"}),n.report=new n("report",{fontCharacter:"\\eb42"}),n.requestChanges=new n("request-changes",{fontCharacter:"\\eb43"}),n.rocket=new n("rocket",{fontCharacter:"\\eb44"}),n.rootFolderOpened=new n("root-folder-opened",{fontCharacter:"\\eb45"}),n.rootFolder=new n("root-folder",{fontCharacter:"\\eb46"}),n.rss=new n("rss",{fontCharacter:"\\eb47"}),n.ruby=new n("ruby",{fontCharacter:"\\eb48"}),n.saveAll=new n("save-all",{fontCharacter:"\\eb49"}),n.saveAs=new n("save-as",{fontCharacter:"\\eb4a"}),n.save=new n("save",{fontCharacter:"\\eb4b"}),n.screenFull=new n("screen-full",{fontCharacter:"\\eb4c"}),n.screenNormal=new n("screen-normal",{fontCharacter:"\\eb4d"}),n.searchStop=new n("search-stop",{fontCharacter:"\\eb4e"}),n.server=new n("server",{fontCharacter:"\\eb50"}),n.settingsGear=new n("settings-gear",{fontCharacter:"\\eb51"}),n.settings=new n("settings",{fontCharacter:"\\eb52"}),n.shield=new n("shield",{fontCharacter:"\\eb53"}),n.smiley=new n("smiley",{fontCharacter:"\\eb54"}),n.sortPrecedence=new n("sort-precedence",{fontCharacter:"\\eb55"}),n.splitHorizontal=new n("split-horizontal",{fontCharacter:"\\eb56"}),n.splitVertical=new n("split-vertical",{fontCharacter:"\\eb57"}),n.squirrel=new n("squirrel",{fontCharacter:"\\eb58"}),n.starFull=new n("star-full",{fontCharacter:"\\eb59"}),n.starHalf=new n("star-half",{fontCharacter:"\\eb5a"}),n.symbolClass=new n("symbol-class",{fontCharacter:"\\eb5b"}),n.symbolColor=new n("symbol-color",{fontCharacter:"\\eb5c"}),n.symbolConstant=new n("symbol-constant",{fontCharacter:"\\eb5d"}),n.symbolEnumMember=new n("symbol-enum-member",{fontCharacter:"\\eb5e"}),n.symbolField=new n("symbol-field",{fontCharacter:"\\eb5f"}),n.symbolFile=new n("symbol-file",{fontCharacter:"\\eb60"}),n.symbolInterface=new n("symbol-interface",{fontCharacter:"\\eb61"}),n.symbolKeyword=new n("symbol-keyword",{fontCharacter:"\\eb62"}),n.symbolMisc=new n("symbol-misc",{fontCharacter:"\\eb63"}),n.symbolOperator=new n("symbol-operator",{fontCharacter:"\\eb64"}),n.symbolProperty=new n("symbol-property",{fontCharacter:"\\eb65"}),n.wrench=new n("wrench",{fontCharacter:"\\eb65"}),n.wrenchSubaction=new n("wrench-subaction",{fontCharacter:"\\eb65"}),n.symbolSnippet=new n("symbol-snippet",{fontCharacter:"\\eb66"}),n.tasklist=new n("tasklist",{fontCharacter:"\\eb67"}),n.telescope=new n("telescope",{fontCharacter:"\\eb68"}),n.textSize=new n("text-size",{fontCharacter:"\\eb69"}),n.threeBars=new n("three-bars",{fontCharacter:"\\eb6a"}),n.thumbsdown=new n("thumbsdown",{fontCharacter:"\\eb6b"}),n.thumbsup=new n("thumbsup",{fontCharacter:"\\eb6c"}),n.tools=new n("tools",{fontCharacter:"\\eb6d"}),n.triangleDown=new n("triangle-down",{fontCharacter:"\\eb6e"}),n.triangleLeft=new n("triangle-left",{fontCharacter:"\\eb6f"}),n.triangleRight=new n("triangle-right",{fontCharacter:"\\eb70"}),n.triangleUp=new n("triangle-up",{fontCharacter:"\\eb71"}),n.twitter=new n("twitter",{fontCharacter:"\\eb72"}),n.unfold=new n("unfold",{fontCharacter:"\\eb73"}),n.unlock=new n("unlock",{fontCharacter:"\\eb74"}),n.unmute=new n("unmute",{fontCharacter:"\\eb75"}),n.unverified=new n("unverified",{fontCharacter:"\\eb76"}),n.verified=new n("verified",{fontCharacter:"\\eb77"}),n.versions=new n("versions",{fontCharacter:"\\eb78"}),n.vmActive=new n("vm-active",{fontCharacter:"\\eb79"}),n.vmOutline=new n("vm-outline",{fontCharacter:"\\eb7a"}),n.vmRunning=new n("vm-running",{fontCharacter:"\\eb7b"}),n.watch=new n("watch",{fontCharacter:"\\eb7c"}),n.whitespace=new n("whitespace",{fontCharacter:"\\eb7d"}),n.wholeWord=new n("whole-word",{fontCharacter:"\\eb7e"}),n.window=new n("window",{fontCharacter:"\\eb7f"}),n.wordWrap=new n("word-wrap",{fontCharacter:"\\eb80"}),n.zoomIn=new n("zoom-in",{fontCharacter:"\\eb81"}),n.zoomOut=new n("zoom-out",{fontCharacter:"\\eb82"}),n.listFilter=new n("list-filter",{fontCharacter:"\\eb83"}),n.listFlat=new n("list-flat",{fontCharacter:"\\eb84"}),n.listSelection=new n("list-selection",{fontCharacter:"\\eb85"}),n.selection=new n("selection",{fontCharacter:"\\eb85"}),n.listTree=new n("list-tree",{fontCharacter:"\\eb86"}),n.debugBreakpointFunctionUnverified=new n("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),n.debugBreakpointFunction=new n("debug-breakpoint-function",{fontCharacter:"\\eb88"}),n.debugBreakpointFunctionDisabled=new n("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),n.debugStackframeActive=new n("debug-stackframe-active",{fontCharacter:"\\eb89"}),n.debugStackframeDot=new n("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),n.debugStackframe=new n("debug-stackframe",{fontCharacter:"\\eb8b"}),n.debugStackframeFocused=new n("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),n.debugBreakpointUnsupported=new n("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),n.symbolString=new n("symbol-string",{fontCharacter:"\\eb8d"}),n.debugReverseContinue=new n("debug-reverse-continue",{fontCharacter:"\\eb8e"}),n.debugStepBack=new n("debug-step-back",{fontCharacter:"\\eb8f"}),n.debugRestartFrame=new n("debug-restart-frame",{fontCharacter:"\\eb90"}),n.callIncoming=new n("call-incoming",{fontCharacter:"\\eb92"}),n.callOutgoing=new n("call-outgoing",{fontCharacter:"\\eb93"}),n.menu=new n("menu",{fontCharacter:"\\eb94"}),n.expandAll=new n("expand-all",{fontCharacter:"\\eb95"}),n.feedback=new n("feedback",{fontCharacter:"\\eb96"}),n.groupByRefType=new n("group-by-ref-type",{fontCharacter:"\\eb97"}),n.ungroupByRefType=new n("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),n.account=new n("account",{fontCharacter:"\\eb99"}),n.bellDot=new n("bell-dot",{fontCharacter:"\\eb9a"}),n.debugConsole=new n("debug-console",{fontCharacter:"\\eb9b"}),n.library=new n("library",{fontCharacter:"\\eb9c"}),n.output=new n("output",{fontCharacter:"\\eb9d"}),n.runAll=new n("run-all",{fontCharacter:"\\eb9e"}),n.syncIgnored=new n("sync-ignored",{fontCharacter:"\\eb9f"}),n.pinned=new n("pinned",{fontCharacter:"\\eba0"}),n.githubInverted=new n("github-inverted",{fontCharacter:"\\eba1"}),n.debugAlt=new n("debug-alt",{fontCharacter:"\\eb91"}),n.serverProcess=new n("server-process",{fontCharacter:"\\eba2"}),n.serverEnvironment=new n("server-environment",{fontCharacter:"\\eba3"}),n.pass=new n("pass",{fontCharacter:"\\eba4"}),n.stopCircle=new n("stop-circle",{fontCharacter:"\\eba5"}),n.playCircle=new n("play-circle",{fontCharacter:"\\eba6"}),n.record=new n("record",{fontCharacter:"\\eba7"}),n.debugAltSmall=new n("debug-alt-small",{fontCharacter:"\\eba8"}),n.vmConnect=new n("vm-connect",{fontCharacter:"\\eba9"}),n.cloud=new n("cloud",{fontCharacter:"\\ebaa"}),n.merge=new n("merge",{fontCharacter:"\\ebab"}),n.exportIcon=new n("export",{fontCharacter:"\\ebac"}),n.graphLeft=new n("graph-left",{fontCharacter:"\\ebad"}),n.magnet=new n("magnet",{fontCharacter:"\\ebae"}),n.notebook=new n("notebook",{fontCharacter:"\\ebaf"}),n.redo=new n("redo",{fontCharacter:"\\ebb0"}),n.checkAll=new n("check-all",{fontCharacter:"\\ebb1"}),n.pinnedDirty=new n("pinned-dirty",{fontCharacter:"\\ebb2"}),n.passFilled=new n("pass-filled",{fontCharacter:"\\ebb3"}),n.circleLargeFilled=new n("circle-large-filled",{fontCharacter:"\\ebb4"}),n.circleLargeOutline=new n("circle-large-outline",{fontCharacter:"\\ebb5"}),n.combine=new n("combine",{fontCharacter:"\\ebb6"}),n.gather=new n("gather",{fontCharacter:"\\ebb6"}),n.table=new n("table",{fontCharacter:"\\ebb7"}),n.variableGroup=new n("variable-group",{fontCharacter:"\\ebb8"}),n.typeHierarchy=new n("type-hierarchy",{fontCharacter:"\\ebb9"}),n.typeHierarchySub=new n("type-hierarchy-sub",{fontCharacter:"\\ebba"}),n.typeHierarchySuper=new n("type-hierarchy-super",{fontCharacter:"\\ebbb"}),n.gitPullRequestCreate=new n("git-pull-request-create",{fontCharacter:"\\ebbc"}),n.runAbove=new n("run-above",{fontCharacter:"\\ebbd"}),n.runBelow=new n("run-below",{fontCharacter:"\\ebbe"}),n.notebookTemplate=new n("notebook-template",{fontCharacter:"\\ebbf"}),n.debugRerun=new n("debug-rerun",{fontCharacter:"\\ebc0"}),n.workspaceTrusted=new n("workspace-trusted",{fontCharacter:"\\ebc1"}),n.workspaceUntrusted=new n("workspace-untrusted",{fontCharacter:"\\ebc2"}),n.workspaceUnspecified=new n("workspace-unspecified",{fontCharacter:"\\ebc3"}),n.terminalCmd=new n("terminal-cmd",{fontCharacter:"\\ebc4"}),n.terminalDebian=new n("terminal-debian",{fontCharacter:"\\ebc5"}),n.terminalLinux=new n("terminal-linux",{fontCharacter:"\\ebc6"}),n.terminalPowershell=new n("terminal-powershell",{fontCharacter:"\\ebc7"}),n.terminalTmux=new n("terminal-tmux",{fontCharacter:"\\ebc8"}),n.terminalUbuntu=new n("terminal-ubuntu",{fontCharacter:"\\ebc9"}),n.terminalBash=new n("terminal-bash",{fontCharacter:"\\ebca"}),n.arrowSwap=new n("arrow-swap",{fontCharacter:"\\ebcb"}),n.copy=new n("copy",{fontCharacter:"\\ebcc"}),n.personAdd=new n("person-add",{fontCharacter:"\\ebcd"}),n.filterFilled=new n("filter-filled",{fontCharacter:"\\ebce"}),n.wand=new n("wand",{fontCharacter:"\\ebcf"}),n.debugLineByLine=new n("debug-line-by-line",{fontCharacter:"\\ebd0"}),n.inspect=new n("inspect",{fontCharacter:"\\ebd1"}),n.layers=new n("layers",{fontCharacter:"\\ebd2"}),n.layersDot=new n("layers-dot",{fontCharacter:"\\ebd3"}),n.layersActive=new n("layers-active",{fontCharacter:"\\ebd4"}),n.compass=new n("compass",{fontCharacter:"\\ebd5"}),n.compassDot=new n("compass-dot",{fontCharacter:"\\ebd6"}),n.compassActive=new n("compass-active",{fontCharacter:"\\ebd7"}),n.azure=new n("azure",{fontCharacter:"\\ebd8"}),n.issueDraft=new n("issue-draft",{fontCharacter:"\\ebd9"}),n.gitPullRequestClosed=new n("git-pull-request-closed",{fontCharacter:"\\ebda"}),n.gitPullRequestDraft=new n("git-pull-request-draft",{fontCharacter:"\\ebdb"}),n.debugAll=new n("debug-all",{fontCharacter:"\\ebdc"}),n.debugCoverage=new n("debug-coverage",{fontCharacter:"\\ebdd"}),n.runErrors=new n("run-errors",{fontCharacter:"\\ebde"}),n.folderLibrary=new n("folder-library",{fontCharacter:"\\ebdf"}),n.debugContinueSmall=new n("debug-continue-small",{fontCharacter:"\\ebe0"}),n.beakerStop=new n("beaker-stop",{fontCharacter:"\\ebe1"}),n.graphLine=new n("graph-line",{fontCharacter:"\\ebe2"}),n.graphScatter=new n("graph-scatter",{fontCharacter:"\\ebe3"}),n.pieChart=new n("pie-chart",{fontCharacter:"\\ebe4"}),n.bracket=new n("bracket",n.json.definition),n.bracketDot=new n("bracket-dot",{fontCharacter:"\\ebe5"}),n.bracketError=new n("bracket-error",{fontCharacter:"\\ebe6"}),n.lockSmall=new n("lock-small",{fontCharacter:"\\ebe7"}),n.azureDevops=new n("azure-devops",{fontCharacter:"\\ebe8"}),n.verifiedFilled=new n("verified-filled",{fontCharacter:"\\ebe9"})}(O||(O={}))},79881:function(yn,Gt,g){"use strict";g.d(Gt,{B8:function(){return L},Cp:function(){return ke},F0:function(){return T},L6:function(){return o},VV:function(){return O},b1:function(){return n},dL:function(){return se},ri:function(){return ie}});class we{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(a){setTimeout(()=>{throw a.stack?new Error(a.message+`
|
|
|
|
|
|
`+a.stack):a},0)}}emit(a){this.listeners.forEach(A=>{A(a)})}onUnexpectedError(a){this.unexpectedErrorHandler(a),this.emit(a)}onUnexpectedExternalError(a){this.unexpectedErrorHandler(a)}}const Fe=new we;function se(p){O(p)||Fe.onUnexpectedError(p)}function ke(p){O(p)||Fe.onUnexpectedExternalError(p)}function ie(p){if(p instanceof Error){let{name:a,message:A}=p;const m=p.stacktrace||p.stack;return{$isError:!0,name:a,message:A,stack:m}}return p}const Y="Canceled";function O(p){return p instanceof Error&&p.name===Y&&p.message===Y}function T(){const p=new Error(Y);return p.name=p.message,p}function n(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function o(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class L extends Error{constructor(a){super("NotSupported"),a&&(this.message=a)}}},4348:function(yn,Gt,g){"use strict";g.d(Gt,{D0:function(){return L},E7:function(){return p},K3:function(){return o},Q5:function(){return n},ZD:function(){return a},ju:function(){return ie}});var we=g(79881),Fe=g(69323),se=g(34502),ke=g(95830),ie;(function(A){A.None=()=>Fe.JT.None;function m(_e){return(oe,he=null,ve)=>{let _=!1,N;return N=_e(X=>{if(!_)return N?N.dispose():_=!0,oe.call(he,X)},null,ve),_&&N.dispose(),N}}A.once=m;function S(_e,oe){return B((he,ve=null,_)=>_e(N=>he.call(ve,oe(N)),null,_))}A.map=S;function K(_e,oe){return B((he,ve=null,_)=>_e(N=>{oe(N),he.call(ve,N)},null,_))}A.forEach=K;function F(_e,oe){return B((he,ve=null,_)=>_e(N=>oe(N)&&he.call(ve,N),null,_))}A.filter=F;function H(_e){return _e}A.signal=H;function V(..._e){return(oe,he=null,ve)=>(0,Fe.F8)(..._e.map(_=>_(N=>oe.call(he,N),null,ve)))}A.any=V;function ee(_e,oe,he){let ve=he;return S(_e,_=>(ve=oe(ve,_),ve))}A.reduce=ee;function B(_e){let oe;const he=new n({onFirstListenerAdd(){oe=_e(he.fire,he)},onLastListenerRemove(){oe.dispose()}});return he.event}function G(_e,oe,he=100,ve=!1,_){let N,X,pe,qe=0;const at=new n({leakWarningThreshold:_,onFirstListenerAdd(){N=_e(rt=>{qe++,X=oe(X,rt),ve&&!pe&&(at.fire(X),X=void 0),clearTimeout(pe),pe=setTimeout(()=>{const Rt=X;X=void 0,pe=void 0,(!ve||qe>1)&&at.fire(Rt),qe=0},he)})},onLastListenerRemove(){N.dispose()}});return at.event}A.debounce=G;function ce(_e,oe=(he,ve)=>he===ve){let he=!0,ve;return F(_e,_=>{const N=he||!oe(_,ve);return he=!1,ve=_,N})}A.latch=ce;function q(_e,oe){return[A.filter(_e,oe),A.filter(_e,he=>!oe(he))]}A.split=q;function be(_e,oe=!1,he=[]){let ve=he.slice(),_=_e(pe=>{ve?ve.push(pe):X.fire(pe)});const N=()=>{ve&&ve.forEach(pe=>X.fire(pe)),ve=null},X=new n({onFirstListenerAdd(){_||(_=_e(pe=>X.fire(pe)))},onFirstListenerDidAdd(){ve&&(oe?setTimeout(N):N())},onLastListenerRemove(){_&&_.dispose(),_=null}});return X.event}A.buffer=be;class xe{constructor(oe){this.event=oe}map(oe){return new xe(S(this.event,oe))}forEach(oe){return new xe(K(this.event,oe))}filter(oe){return new xe(F(this.event,oe))}reduce(oe,he){return new xe(ee(this.event,oe,he))}latch(){return new xe(ce(this.event))}debounce(oe,he=100,ve=!1,_){return new xe(G(this.event,oe,he,ve,_))}on(oe,he,ve){return this.event(oe,he,ve)}once(oe,he,ve){return m(this.event)(oe,he,ve)}}function Le(_e){return new xe(_e)}A.chain=Le;function ae(_e,oe,he=ve=>ve){const ve=(...pe)=>X.fire(he(...pe)),_=()=>_e.on(oe,ve),N=()=>_e.removeListener(oe,ve),X=new n({onFirstListenerAdd:_,onLastListenerRemove:N});return X.event}A.fromNodeEventEmitter=ae;function me(_e,oe,he=ve=>ve){const ve=(...pe)=>X.fire(he(...pe)),_=()=>_e.addEventListener(oe,ve),N=()=>_e.removeEventListener(oe,ve),X=new n({onFirstListenerAdd:_,onLastListenerRemove:N});return X.event}A.fromDOMEventEmitter=me;function I(_e){return new Promise(oe=>m(_e)(oe))}A.toPromise=I})(ie||(ie={}));class Y{constructor(m){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${m}_${Y._idPool++}`}start(m){this._stopWatch=new ke.G(!0),this._listenerCount=m}stop(){if(this._stopWatch){const m=this._stopWatch.elapsed();this._elapsedOverall+=m,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${m.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Y._idPool=0;let O=-1;class T{constructor(m,S=Math.random().toString(18).slice(2,5)){this.customThreshold=m,this.name=S,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(m){let S=O;if(typeof this.customThreshold=="number"&&(S=this.customThreshold),S<=0||m<S)return;this._stacks||(this._stacks=new Map);const K=new Error().stack.split(`
|
|
|
`).slice(3).join(`
|
|
|
`),F=this._stacks.get(K)||0;if(this._stacks.set(K,F+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=S*.5;let H,V=0;for(const[ee,B]of this._stacks)(!H||V<B)&&(H=ee,V=B);console.warn(`[${this.name}] potential listener LEAK detected, having ${m} listeners already. MOST frequent listener (${V}):`),console.warn(H)}return()=>{const H=this._stacks.get(K)||0;this._stacks.set(K,H-1)}}}class n{constructor(m){var S;this._disposed=!1,this._options=m,this._leakageMon=O>0?new T(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((S=this._options)===null||S===void 0)&&S._profName?new Y(this._options._profName):void 0}get event(){return this._event||(this._event=(m,S,K)=>{var F;this._listeners||(this._listeners=new se.S);const H=this._listeners.isEmpty();H&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const V=this._listeners.push(S?[m,S]:m);H&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,m,S);const ee=(F=this._leakageMon)===null||F===void 0?void 0:F.check(this._listeners.size),B=(0,Fe.OF)(()=>{ee&&ee(),this._disposed||(V(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return K instanceof Fe.SL?K.add(B):Array.isArray(K)&&K.push(B),B}),this._event}fire(m){var S,K;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new se.S);for(let F of this._listeners)this._deliveryQueue.push([F,m]);for((S=this._perfMon)===null||S===void 0||S.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[F,H]=this._deliveryQueue.shift();try{typeof F=="function"?F.call(void 0,H):F[0].call(F[1],H)}catch(V){(0,we.dL)(V)}}(K=this._perfMon)===null||K===void 0||K.stop()}}dispose(){var m,S,K,F,H;this._disposed||(this._disposed=!0,(m=this._listeners)===null||m===void 0||m.clear(),(S=this._deliveryQueue)===null||S===void 0||S.clear(),(F=(K=this._options)===null||K===void 0?void 0:K.onLastListenerRemove)===null||F===void 0||F.call(K),(H=this._leakageMon)===null||H===void 0||H.dispose())}}class o extends n{constructor(m){super(m),this._isPaused=0,this._eventQueue=new se.S,this._mergeFn=m==null?void 0:m.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const m=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(m))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(m){this._listeners&&(this._isPaused!==0?this._eventQueue.push(m):super.fire(m))}}class L extends o{constructor(m){var S;super(m),this._delay=(S=m.delay)!==null&&S!==void 0?S:100}fire(m){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(m)}}class p{constructor(){this.buffers=[]}wrapEvent(m){return(S,K,F)=>m(H=>{const V=this.buffers[this.buffers.length-1];V?V.push(()=>S.call(K,H)):S.call(K,H)},void 0,F)}bufferEvents(m){const S=[];this.buffers.push(S);const K=m();return this.buffers.pop(),S.forEach(F=>F()),K}}class a{constructor(){this.listening=!1,this.inputEvent=ie.None,this.inputEventListener=Fe.JT.None,this.emitter=new n({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(m){this.inputEvent=m,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=m(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(yn,Gt,g){"use strict";g.d(Gt,{I:function(){return we}});function we(Fe){const se=this;let ke=!1,ie;return function(){return ke||(ke=!0,ie=Fe.apply(se,arguments)),ie}}},88226:function(yn,Gt,g){"use strict";g.d(Gt,{$:function(){return we}});var we;(function(Fe){function se(V){return V&&typeof V=="object"&&typeof V[Symbol.iterator]=="function"}Fe.is=se;const ke=Object.freeze([]);function ie(){return ke}Fe.empty=ie;function*Y(V){yield V}Fe.single=Y;function O(V){return V||ke}Fe.from=O;function T(V){return!V||V[Symbol.iterator]().next().done===!0}Fe.isEmpty=T;function n(V){return V[Symbol.iterator]().next().value}Fe.first=n;function o(V,ee){for(const B of V)if(ee(B))return!0;return!1}Fe.some=o;function L(V,ee){for(const B of V)if(ee(B))return B}Fe.find=L;function*p(V,ee){for(const B of V)ee(B)&&(yield B)}Fe.filter=p;function*a(V,ee){let B=0;for(const G of V)yield ee(G,B++)}Fe.map=a;function*A(...V){for(const ee of V)for(const B of ee)yield B}Fe.concat=A;function*m(V){for(const ee of V)for(const B of ee)yield B}Fe.concatNested=m;function S(V,ee,B){let G=B;for(const ce of V)G=ee(G,ce);return G}Fe.reduce=S;function*K(V,ee,B=V.length){for(ee<0&&(ee+=V.length),B<0?B+=V.length:B>V.length&&(B=V.length);ee<B;ee++)yield V[ee]}Fe.slice=K;function F(V,ee=Number.POSITIVE_INFINITY){const B=[];if(ee===0)return[B,V];const G=V[Symbol.iterator]();for(let ce=0;ce<ee;ce++){const q=G.next();if(q.done)return[B,Fe.empty()];B.push(q.value)}return[B,{[Symbol.iterator](){return G}}]}Fe.consume=F;function H(V,ee,B=(G,ce)=>G===ce){const G=V[Symbol.iterator](),ce=ee[Symbol.iterator]();for(;;){const q=G.next(),be=ce.next();if(q.done!==be.done)return!1;if(q.done)return!0;if(!B(q.value,be.value))return!1}}Fe.equals=H})(we||(we={}))},69323:function(yn,Gt,g){"use strict";g.d(Gt,{B9:function(){return a},F8:function(){return A},JT:function(){return K},Jz:function(){return H},OF:function(){return m},SL:function(){return S},Wf:function(){return p},XK:function(){return F},dk:function(){return o}});var we=g(17845),Fe=g(88226);const se=!1;let ke=null;function ie(V){ke=V}if(se){const V="__is_disposable_tracked__";ie(new class{trackDisposable(ee){const B=new Error("Potentially leaked disposable").stack;setTimeout(()=>{ee[V]||console.log(B)},3e3)}setParent(ee,B){if(ee&&ee!==K.None)try{ee[V]=!0}catch(G){}}markAsDisposed(ee){if(ee&&ee!==K.None)try{ee[V]=!0}catch(B){}}markAsSingleton(ee){}})}function Y(V){return ke==null||ke.trackDisposable(V),V}function O(V){ke==null||ke.markAsDisposed(V)}function T(V,ee){ke==null||ke.setParent(V,ee)}function n(V,ee){if(ke)for(const B of V)ke.setParent(B,ee)}function o(V){return ke==null||ke.markAsSingleton(V),V}class L extends Error{constructor(ee){super(`Encountered errors while disposing of store. Errors: [${ee.join(", ")}]`),this.errors=ee}}function p(V){return typeof V.dispose=="function"&&V.dispose.length===0}function a(V){if(Fe.$.is(V)){let ee=[];for(const B of V)if(B)try{B.dispose()}catch(G){ee.push(G)}if(ee.length===1)throw ee[0];if(ee.length>1)throw new L(ee);return Array.isArray(V)?[]:V}else if(V)return V.dispose(),V}function A(...V){const ee=m(()=>a(V));return n(V,ee),ee}function m(V){const ee=Y({dispose:(0,we.I)(()=>{O(ee),V()})});return ee}class S{constructor(){this._toDispose=new Set,this._isDisposed=!1,Y(this)}dispose(){this._isDisposed||(O(this),this._isDisposed=!0,this.clear())}clear(){try{a(this._toDispose.values())}finally{this._toDispose.clear()}}add(ee){if(!ee)return ee;if(ee===this)throw new Error("Cannot register a disposable on itself!");return T(ee,this),this._isDisposed?S.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(ee),ee}}S.DISABLE_DISPOSED_WARNING=!1;class K{constructor(){this._store=new S,Y(this),T(this._store,this)}dispose(){O(this),this._store.dispose()}_register(ee){if(ee===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(ee)}}K.None=Object.freeze({dispose(){}});class F{constructor(){this._isDisposed=!1,Y(this)}get value(){return this._isDisposed?void 0:this._value}set value(ee){var B;this._isDisposed||ee===this._value||((B=this._value)===null||B===void 0||B.dispose(),ee&&T(ee,this),this._value=ee)}clear(){this.value=void 0}dispose(){var ee;this._isDisposed=!0,O(this),(ee=this._value)===null||ee===void 0||ee.dispose(),this._value=void 0}clearAndLeak(){const ee=this._value;return this._value=void 0,ee&&T(ee,null),ee}}class H{constructor(ee){this.object=ee}dispose(){}}},34502:function(yn,Gt,g){"use strict";g.d(Gt,{S:function(){return Fe}});class we{constructor(ke){this.element=ke,this.next=we.Undefined,this.prev=we.Undefined}}we.Undefined=new we(void 0);class Fe{constructor(){this._first=we.Undefined,this._last=we.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===we.Undefined}clear(){let ke=this._first;for(;ke!==we.Undefined;){const ie=ke.next;ke.prev=we.Undefined,ke.next=we.Undefined,ke=ie}this._first=we.Undefined,this._last=we.Undefined,this._size=0}unshift(ke){return this._insert(ke,!1)}push(ke){return this._insert(ke,!0)}_insert(ke,ie){const Y=new we(ke);if(this._first===we.Undefined)this._first=Y,this._last=Y;else if(ie){const T=this._last;this._last=Y,Y.prev=T,T.next=Y}else{const T=this._first;this._first=Y,Y.next=T,T.prev=Y}this._size+=1;let O=!1;return()=>{O||(O=!0,this._remove(Y))}}shift(){if(this._first!==we.Undefined){const ke=this._first.element;return this._remove(this._first),ke}}pop(){if(this._last!==we.Undefined){const ke=this._last.element;return this._remove(this._last),ke}}_remove(ke){if(ke.prev!==we.Undefined&&ke.next!==we.Undefined){const ie=ke.prev;ie.next=ke.next,ke.next.prev=ie}else ke.prev===we.Undefined&&ke.next===we.Undefined?(this._first=we.Undefined,this._last=we.Undefined):ke.next===we.Undefined?(this._last=this._last.prev,this._last.next=we.Undefined):ke.prev===we.Undefined&&(this._first=this._first.next,this._first.prev=we.Undefined);this._size-=1}*[Symbol.iterator](){let ke=this._first;for(;ke!==we.Undefined;)yield ke.element,ke=ke.next}}},23345:function(yn,Gt,g){"use strict";g.d(Gt,{$L:function(){return G},ED:function(){return H},IJ:function(){return ee},OS:function(){return xe},WE:function(){return q},dz:function(){return V},gn:function(){return ce},li:function(){return m},r:function(){return me},tY:function(){return B},xS:function(){return be}});var we=g(97671),Fe;const se="en";let ke=!1,ie=!1,Y=!1,O=!1,T=!1,n=!1,o=!1,L,p=null,a=null,A;const m=typeof self=="object"?self:typeof g.g=="object"?g.g:{};let S;typeof m.vscode!="undefined"&&typeof m.vscode.process!="undefined"?S=m.vscode.process:typeof we!="undefined"&&(S=we);const K=typeof((Fe=S==null?void 0:S.versions)===null||Fe===void 0?void 0:Fe.electron)=="string"&&S.type==="renderer";if(typeof navigator=="object"&&!K)A=navigator.userAgent,ke=A.indexOf("Windows")>=0,ie=A.indexOf("Macintosh")>=0,o=(A.indexOf("Macintosh")>=0||A.indexOf("iPad")>=0||A.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Y=A.indexOf("Linux")>=0,n=!0,L=navigator.language,p=L;else if(typeof S=="object"){ke=S.platform==="win32",ie=S.platform==="darwin",Y=S.platform==="linux",O=Y&&!!S.env.SNAP&&!!S.env.SNAP_REVISION,L=se,p=se;const I=S.env.VSCODE_NLS_CONFIG;if(I)try{const _e=JSON.parse(I),oe=_e.availableLanguages["*"];L=_e.locale,p=oe||se,a=_e._translationsConfigFile}catch(_e){}T=!0}else console.error("Unable to resolve platform.");let F=0;ie?F=1:ke?F=3:Y&&(F=2);const H=ke,V=ie,ee=Y,B=T,G=n,ce=o,q=A,be=function(){if(m.setImmediate)return m.setImmediate.bind(m);if(typeof m.postMessage=="function"&&!m.importScripts){let oe=[];m.addEventListener("message",ve=>{if(ve.data&&ve.data.vscodeSetImmediateId)for(let _=0,N=oe.length;_<N;_++){const X=oe[_];if(X.id===ve.data.vscodeSetImmediateId){oe.splice(_,1),X.callback();return}}});let he=0;return ve=>{const _=++he;oe.push({id:_,callback:ve}),m.postMessage({vscodeSetImmediateId:_},"*")}}if(typeof(S==null?void 0:S.nextTick)=="function")return S.nextTick.bind(S);const _e=Promise.resolve();return oe=>_e.then(oe)}(),xe=ie||o?2:ke?1:3;let Le=!0,ae=!1;function me(){if(!ae){ae=!0;const I=new Uint8Array(2);I[0]=1,I[1]=2,Le=new Uint16Array(I.buffer)[0]===513}return Le}},95830:function(yn,Gt,g){"use strict";g.d(Gt,{G:function(){return se}});var we=g(23345);const Fe=we.li.performance&&typeof we.li.performance.now=="function";class se{constructor(ie){this._highResolution=Fe&&ie,this._startTime=this._now(),this._stopTime=-1}static create(ie=!0){return new se(ie)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?we.li.performance.now():Date.now()}}},82983:function(yn,Gt,g){"use strict";g.d(Gt,{$i:function(){return qe},C8:function(){return qt},GF:function(){return L},HO:function(){return he},IO:function(){return p},K7:function(){return lr},Kw:function(){return Cr},LC:function(){return m},Mh:function(){return be},P1:function(){return xe},PJ:function(){return Kr},Qe:function(){return at},R1:function(){return o},RP:function(){return X},S6:function(){return _r},TT:function(){return H},Ut:function(){return _},V8:function(){return S},WU:function(){return se},YK:function(){return ae},YU:function(){return ke},ZG:function(){return Le},ZH:function(){return I},ab:function(){return rt},c1:function(){return Ze},df:function(){return G},ec:function(){return ie},fi:function(){return Me},fy:function(){return Y},j3:function(){return O},j_:function(){return ee},m5:function(){return we},mK:function(){return B},mr:function(){return a},oH:function(){return v},oL:function(){return T},ok:function(){return q},ow:function(){return K},qq:function(){return ce},qu:function(){return F},rL:function(){return me},uS:function(){return Er},un:function(){return n},uq:function(){return A},vH:function(){return oe},xe:function(){return Rt},zY:function(){return V}});function we(W){return!W||typeof W!="string"?!0:W.trim().length===0}const Fe=/{(\d+)}/g;function se(W,...P){return P.length===0?W:W.replace(Fe,function(te,Ie){const Te=parseInt(Ie,10);return isNaN(Te)||Te<0||Te>=P.length?te:P[Te]})}function ke(W){return W.replace(/[<>&]/g,function(P){switch(P){case"<":return"<";case">":return">";case"&":return"&";default:return P}})}function ie(W){return W.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Y(W,P=" "){const te=O(W,P);return T(te,P)}function O(W,P){if(!W||!P)return W;const te=P.length;if(te===0||W.length===0)return W;let Ie=0;for(;W.indexOf(P,Ie)===Ie;)Ie=Ie+te;return W.substring(Ie)}function T(W,P){if(!W||!P)return W;const te=P.length,Ie=W.length;if(te===0||Ie===0)return W;let Te=Ie,Se=-1;for(;Se=W.lastIndexOf(P,Te-1),!(Se===-1||Se+te!==Te);){if(Se===0)return"";Te=Se}return W.substring(0,Te)}function n(W){return W.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function o(W){return W.replace(/\*/g,"")}function L(W,P,te={}){if(!W)throw new Error("Cannot create regex from empty string");P||(W=ie(W)),te.wholeWord&&(/\B/.test(W.charAt(0))||(W="\\b"+W),/\B/.test(W.charAt(W.length-1))||(W=W+"\\b"));let Ie="";return te.global&&(Ie+="g"),te.matchCase||(Ie+="i"),te.multiline&&(Ie+="m"),te.unicode&&(Ie+="u"),new RegExp(W,Ie)}function p(W){return W.source==="^"||W.source==="^$"||W.source==="$"||W.source==="^\\s*$"?!1:!!(W.exec("")&&W.lastIndex===0)}function a(W){return(W.global?"g":"")+(W.ignoreCase?"i":"")+(W.multiline?"m":"")+(W.unicode?"u":"")}function A(W){return W.split(/\r\n|\r|\n/)}function m(W){for(let P=0,te=W.length;P<te;P++){const Ie=W.charCodeAt(P);if(Ie!==32&&Ie!==9)return P}return-1}function S(W,P=0,te=W.length){for(let Ie=P;Ie<te;Ie++){const Te=W.charCodeAt(Ie);if(Te!==32&&Te!==9)return W.substring(P,Ie)}return W.substring(P,te)}function K(W,P=W.length-1){for(let te=P;te>=0;te--){const Ie=W.charCodeAt(te);if(Ie!==32&&Ie!==9)return te}return-1}function F(W,P){return W<P?-1:W>P?1:0}function H(W,P,te=0,Ie=W.length,Te=0,Se=P.length){for(;te<Ie&&Te<Se;te++,Te++){let Ke=W.charCodeAt(te),Xe=P.charCodeAt(Te);if(Ke<Xe)return-1;if(Ke>Xe)return 1}const Ge=Ie-te,ft=Se-Te;return Ge<ft?-1:Ge>ft?1:0}function V(W,P){return ee(W,P,0,W.length,0,P.length)}function ee(W,P,te=0,Ie=W.length,Te=0,Se=P.length){for(;te<Ie&&Te<Se;te++,Te++){let Ke=W.charCodeAt(te),Xe=P.charCodeAt(Te);if(Ke===Xe)continue;if(Ke>=128||Xe>=128)return H(W.toLowerCase(),P.toLowerCase(),te,Ie,Te,Se);B(Ke)&&(Ke-=32),B(Xe)&&(Xe-=32);const At=Ke-Xe;if(At!==0)return At}const Ge=Ie-te,ft=Se-Te;return Ge<ft?-1:Ge>ft?1:0}function B(W){return W>=97&&W<=122}function G(W){return W>=65&&W<=90}function ce(W,P){return W.length===P.length&&ee(W,P)===0}function q(W,P){const te=P.length;return P.length>W.length?!1:ee(W,P,0,te)===0}function be(W,P){let te,Ie=Math.min(W.length,P.length);for(te=0;te<Ie;te++)if(W.charCodeAt(te)!==P.charCodeAt(te))return te;return Ie}function xe(W,P){let te,Ie=Math.min(W.length,P.length);const Te=W.length-1,Se=P.length-1;for(te=0;te<Ie;te++)if(W.charCodeAt(Te-te)!==P.charCodeAt(Se-te))return te;return Ie}function Le(W){return 55296<=W&&W<=56319}function ae(W){return 56320<=W&&W<=57343}function me(W,P){return(W-55296<<10)+(P-56320)+65536}function I(W,P,te){const Ie=W.charCodeAt(te);if(Le(Ie)&&te+1<P){const Te=W.charCodeAt(te+1);if(ae(Te))return me(Ie,Te)}return Ie}function _e(W,P){const te=W.charCodeAt(P-1);if(ae(te)&&P>1){const Ie=W.charCodeAt(P-2);if(Le(Ie))return me(Ie,te)}return te}function oe(W,P){const te=Tt.getInstance(),Ie=P,Te=W.length,Se=I(W,Te,P);P+=Se>=65536?2:1;let Ge=te.getGraphemeBreakType(Se);for(;P<Te;){const ft=I(W,Te,P),Ke=te.getGraphemeBreakType(ft);if(Me(Ge,Ke))break;P+=ft>=65536?2:1,Ge=Ke}return P-Ie}function he(W,P){const te=Tt.getInstance(),Ie=P,Te=_e(W,P);P-=Te>=65536?2:1;let Se=te.getGraphemeBreakType(Te);for(;P>0;){const Ge=_e(W,P),ft=te.getGraphemeBreakType(Ge);if(Me(ft,Se))break;P-=Ge>=65536?2:1,Se=ft}return Ie-P}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 _(W){return ve.test(W)}const N=/(?:[\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 X(W){return N.test(W)}const pe=/^[\t\n\r\x20-\x7E]*$/;function qe(W){return pe.test(W)}const at=/[\u2028\u2029]/;function rt(W){return at.test(W)}function Rt(W){for(let P=0,te=W.length;P<te;P++)if(lr(W.charCodeAt(P)))return!0;return!1}function lr(W){return W=+W,W>=11904&&W<=55215||W>=63744&&W<=64255||W>=65281&&W<=65374}function qt(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 Er(W){return!!(W&&W.length>0&&W.charCodeAt(0)===65279)}function Cr(W,P=!1){return W?(P&&(W=W.replace(/\\./g,"")),W.toLowerCase()!==W):!1}function Kr(W){return W=W%(2*26),W<26?String.fromCharCode(97+W):String.fromCharCode(65+W-26)}function _r(W){return Tt.getInstance().getGraphemeBreakType(W)}function Me(W,P){return W===0?P!==5&&P!==7:W===2&&P===3?!1:W===4||W===2||W===3||P===4||P===2||P===3?!0:!(W===8&&(P===8||P===9||P===11||P===12)||(W===11||W===9)&&(P===9||P===10)||(W===12||W===10)&&P===10||P===5||P===13||P===7||W===1||W===13&&P===14||W===6&&P===6)}class Tt{constructor(){this._data=z()}static getInstance(){return Tt._INSTANCE||(Tt._INSTANCE=new Tt),Tt._INSTANCE}getGraphemeBreakType(P){if(P<32)return P===10?3:P===13?2:4;if(P<127)return 0;const te=this._data,Ie=te.length/3;let Te=1;for(;Te<=Ie;)if(P<te[3*Te])Te=2*Te;else if(P>te[3*Te+1])Te=2*Te+1;else return te[3*Te+2];return 0}}Tt._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 v(W,P){if(W===0)return 0;const te=f(W,P);if(te!==void 0)return te;const Ie=_e(P,W);return W-=D(Ie),W}function f(W,P){let te=_e(P,W);for(W-=D(te);de(te)||te===65039||te===8419;){if(W===0)return;te=_e(P,W),W-=D(te)}if(qt(te)){if(W>=0){const Ie=_e(P,W);Ie===8205&&(W-=D(Ie))}return W}}function D(W){return W>=65536?2:1}function de(W){return 127995<=W&&W<=127999}},72999:function(yn,Gt,g){"use strict";g.d(Gt,{$E:function(){return m},$K:function(){return O},D8:function(){return p},HD:function(){return Fe},IU:function(){return S},Jp:function(){return T},Kn:function(){return se},cW:function(){return o},f6:function(){return K},hj:function(){return ke},jn:function(){return ie},kJ:function(){return we},mf:function(){return L},o8:function(){return Y},p_:function(){return n},vE:function(){return F}});function we(H){return Array.isArray(H)}function Fe(H){return typeof H=="string"}function se(H){return typeof H=="object"&&H!==null&&!Array.isArray(H)&&!(H instanceof RegExp)&&!(H instanceof Date)}function ke(H){return typeof H=="number"&&!isNaN(H)}function ie(H){return H===!0||H===!1}function Y(H){return typeof H=="undefined"}function O(H){return!T(H)}function T(H){return Y(H)||H===null}function n(H,V){if(!H)throw new Error(V?`Unexpected type, expected '${V}'`:"Unexpected type")}function o(H){if(T(H))throw new Error("Assertion Failed: argument is undefined or null");return H}function L(H){return typeof H=="function"}function p(H,V){const ee=Math.min(H.length,V.length);for(let B=0;B<ee;B++)a(H[B],V[B])}function a(H,V){if(Fe(V)){if(typeof H!==V)throw new Error(`argument does not match constraint: typeof ${V}`)}else if(L(V)){try{if(H instanceof V)return}catch(ee){}if(!T(H)&&H.constructor===V||V.length===1&&V.call(void 0,H)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function A(H){let V=[],ee=Object.getPrototypeOf(H);for(;Object.prototype!==ee;)V=V.concat(Object.getOwnPropertyNames(ee)),ee=Object.getPrototypeOf(ee);return V}function m(H){const V=[];for(const ee of A(H))typeof H[ee]=="function"&&V.push(ee);return V}function S(H,V){const ee=G=>function(){const ce=Array.prototype.slice.call(arguments,0);return V(G,ce)};let B={};for(const G of H)B[G]=ee(G);return B}function K(H){return H===null?void 0:H}function F(H,V="Unreachable"){throw new Error(V)}},13268:function(yn,Gt,g){"use strict";g.d(Gt,{N:function(){return Fe}});function we(se,ke){let ie;return ke.length===0?ie=se:ie=se.replace(/\{(\d+)\}/g,function(Y,O){const T=O[0];return typeof ke[T]!="undefined"?ke[T]:Y}),ie}function Fe(se,ke,...ie){return we(ke,ie)}},96236:function(yn,Gt,g){"use strict";g.d(Gt,{BH:function(){return S},NZ:function(){return K},U8:function(){return F},co:function(){return m},eH:function(){return A},vr:function(){return a}});var we=g(75918),Fe=g(52615),se=g(4348),ke=g(88226),ie=g(69323),Y=g(34502),O=g(35884),T=g(90689),n=g(16925),o=g(49055),L=function(H,V,ee,B){var G=arguments.length,ce=G<3?V:B===null?B=Object.getOwnPropertyDescriptor(V,ee):B,q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ce=Reflect.decorate(H,V,ee,B);else for(var be=H.length-1;be>=0;be--)(q=H[be])&&(ce=(G<3?q(ce):G>3?q(V,ee,ce):q(V,ee))||ce);return G>3&&ce&&Object.defineProperty(V,ee,ce),ce},p=function(H,V){return function(ee,B){V(ee,B,H)}};function a(H){return H.command!==void 0}class A{constructor(V){this.id=A._idPool++,this._debugName=V}}A._idPool=0,A.CommandPalette=new A("CommandPalette"),A.EditorContext=new A("EditorContext"),A.SimpleEditorContext=new A("SimpleEditorContext"),A.EditorContextCopy=new A("EditorContextCopy"),A.EditorContextPeek=new A("EditorContextPeek"),A.MenubarEditMenu=new A("MenubarEditMenu"),A.MenubarCopy=new A("MenubarCopy"),A.MenubarGoMenu=new A("MenubarGoMenu"),A.MenubarSelectionMenu=new A("MenubarSelectionMenu"),A.InlineCompletionsActions=new A("InlineCompletionsActions");const m=(0,n.yh)("menuService"),S=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new se.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:H=>H===A.CommandPalette}}addCommand(H){return this.addCommands(ke.$.single(H))}addCommands(H){for(const V of H)this._commands.set(V.id,V);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,ie.OF)(()=>{let V=!1;for(const ee of H)V=this._commands.delete(ee.id)||V;V&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(H){return this._commands.get(H)}getCommands(){const H=new Map;return this._commands.forEach((V,ee)=>H.set(ee,V)),H}appendMenuItem(H,V){return this.appendMenuItems(ke.$.single({id:H,item:V}))}appendMenuItems(H){const V=new Set,ee=new Y.S;for(const{id:B,item:G}of H){let ce=this._menuItems.get(B);ce||(ce=new Y.S,this._menuItems.set(B,ce)),ee.push(ce.push(G)),V.add(B)}return this._onDidChangeMenu.fire(V),(0,ie.OF)(()=>{if(ee.size>0){for(let B of ee)B();this._onDidChangeMenu.fire(V),ee.clear()}})}getMenuItems(H){let V;return this._menuItems.has(H)?V=[...this._menuItems.get(H)]:V=[],H===A.CommandPalette&&this._appendImplicitItems(V),V}_appendImplicitItems(H){const V=new Set;for(const ee of H)a(ee)&&(V.add(ee.command.id),ee.alt&&V.add(ee.alt.id));this._commands.forEach((ee,B)=>{V.has(B)||H.push({command:ee})})}};class K extends we.wY{constructor(V,ee,B,G){super(`submenuitem.${V.submenu.id}`,typeof V.title=="string"?V.title:V.title.value,[],"submenu"),this.item=V,this._menuService=ee,this._contextKeyService=B,this._options=G}get actions(){const V=[],ee=this._menuService.createMenu(this.item.submenu,this._contextKeyService),B=ee.getActions(this._options);ee.dispose();for(const[,G]of B)G.length>0&&(V.push(...G),V.push(new we.Z0));return V.length&&V.pop(),V}}let F=class WA{constructor(V,ee,B,G,ce){var q,be;if(this._commandService=ce,this.id=V.id,this.label=B!=null&&B.renderShortTitle&&V.shortTitle?typeof V.shortTitle=="string"?V.shortTitle:V.shortTitle.value:typeof V.title=="string"?V.title:V.title.value,this.tooltip=(be=typeof V.tooltip=="string"?V.tooltip:(q=V.tooltip)===null||q===void 0?void 0:q.value)!==null&&be!==void 0?be:"",this.enabled=!V.precondition||G.contextMatchesRules(V.precondition),this.checked=void 0,V.toggled){const xe=V.toggled.condition?V.toggled:{condition:V.toggled};this.checked=G.contextMatchesRules(xe.condition),this.checked&&xe.tooltip&&(this.tooltip=typeof xe.tooltip=="string"?xe.tooltip:xe.tooltip.value),xe.title&&(this.label=typeof xe.title=="string"?xe.title:xe.title.value)}this.item=V,this.alt=ee?new WA(ee,void 0,B,G,ce):void 0,this._options=B,o.kS.isThemeIcon(V.icon)&&(this.class=Fe.dT.asClassName(V.icon))}dispose(){}run(...V){var ee,B;let G=[];return!((ee=this._options)===null||ee===void 0)&&ee.arg&&(G=[...G,this._options.arg]),!((B=this._options)===null||B===void 0)&&B.shouldForwardArgs&&(G=[...G,...V]),this._commandService.executeCommand(this.id,...G)}};F=L([p(3,T.i6),p(4,O.H)],F)},35884:function(yn,Gt,g){"use strict";g.d(Gt,{H:function(){return O},P:function(){return T}});var we=g(4348),Fe=g(88226),se=g(69323),ke=g(34502),ie=g(72999),Y=g(16925);const O=(0,Y.yh)("commandService"),T=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new we.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(n,o){if(!n)throw new Error("invalid command");if(typeof n=="string"){if(!o)throw new Error("invalid command");return this.registerCommand({id:n,handler:o})}if(n.description){const m=[];for(let K of n.description.args)m.push(K.constraint);const S=n.handler;n.handler=function(K,...F){return(0,ie.D8)(F,m),S(K,...F)}}const{id:L}=n;let p=this._commands.get(L);p||(p=new ke.S,this._commands.set(L,p));let a=p.unshift(n),A=(0,se.OF)(()=>{a();const m=this._commands.get(L);m!=null&&m.isEmpty()&&this._commands.delete(L)});return this._onDidRegisterCommand.fire(L),A}registerCommandAlias(n,o){return T.registerCommand(n,(L,...p)=>L.get(O).executeCommand(o,...p))}getCommand(n){const o=this._commands.get(n);if(!(!o||o.isEmpty()))return Fe.$.first(o)}getCommands(){const n=new Map;for(const o of this._commands.keys()){const L=this.getCommand(o);L&&n.set(o,L)}return n}};T.registerCommand("noop",()=>{})},90689:function(yn,Gt,g){"use strict";g.d(Gt,{Ao:function(){return O},Eq:function(){return me},Fb:function(){return T},K8:function(){return oe},i6:function(){return ae},uy:function(){return Le}});var we=g(23345),Fe=g(82983),se=g(16925);let ke=we.WE||"";const ie=new Map;ie.set("false",!1),ie.set("true",!0),ie.set("isMac",we.dz),ie.set("isLinux",we.IJ),ie.set("isWindows",we.ED),ie.set("isWeb",we.$L),ie.set("isMacNative",we.dz&&!we.$L),ie.set("isEdge",ke.indexOf("Edg/")>=0),ie.set("isFirefox",ke.indexOf("Firefox")>=0),ie.set("isChrome",ke.indexOf("Chrome")>=0),ie.set("isSafari",ke.indexOf("Safari")>=0);const Y=Object.prototype.hasOwnProperty;class O{static has(_){return p.create(_)}static equals(_,N){return a.create(_,N)}static regex(_,N){return G.create(_,N)}static not(_){return K.create(_)}static and(..._){return be.create(_,null)}static or(..._){return xe.create(_,null,!0)}static deserialize(_,N=!1){if(_)return this._deserializeOrExpression(_,N)}static _deserializeOrExpression(_,N){let X=_.split("||");return xe.create(X.map(pe=>this._deserializeAndExpression(pe,N)),null,!0)}static _deserializeAndExpression(_,N){let X=_.split("&&");return be.create(X.map(pe=>this._deserializeOne(pe,N)),null)}static _deserializeOne(_,N){if(_=_.trim(),_.indexOf("!=")>=0){let X=_.split("!=");return S.create(X[0].trim(),this._deserializeValue(X[1],N))}if(_.indexOf("==")>=0){let X=_.split("==");return a.create(X[0].trim(),this._deserializeValue(X[1],N))}if(_.indexOf("=~")>=0){let X=_.split("=~");return G.create(X[0].trim(),this._deserializeRegexValue(X[1],N))}if(_.indexOf(" in ")>=0){let X=_.split(" in ");return A.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(_)){const X=_.split(">=");return V.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(_)){const X=_.split(">");return H.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(_)){const X=_.split("<=");return B.create(X[0].trim(),X[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(_)){const X=_.split("<");return ee.create(X[0].trim(),X[1].trim())}return/^\!\s*/.test(_)?K.create(_.substr(1).trim()):p.create(_)}static _deserializeValue(_,N){if(_=_.trim(),_==="true")return!0;if(_==="false")return!1;let X=/^'([^']*)'$/.exec(_);return X?X[1].trim():_}static _deserializeRegexValue(_,N){if((0,Fe.m5)(_)){if(N)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let X=_.indexOf("/"),pe=_.lastIndexOf("/");if(X===pe||X<0){if(N)throw new Error(`bad regexp-value '${_}', missing /-enclosure`);return console.warn(`bad regexp-value '${_}', missing /-enclosure`),null}let qe=_.slice(X+1,pe),at=_[pe+1]==="i"?"i":"";try{return new RegExp(qe,at)}catch(rt){if(N)throw new Error(`bad regexp-value '${_}', parse error: ${rt}`);return console.warn(`bad regexp-value '${_}', parse error: ${rt}`),null}}}function T(ve,_){const N=ve?ve.substituteConstants():void 0,X=_?_.substituteConstants():void 0;return!N&&!X?!0:!N||!X?!1:N.equals(X)}function n(ve,_){return ve.cmp(_)}class o{constructor(){this.type=0}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!1}serialize(){return"false"}keys(){return[]}negate(){return L.INSTANCE}}o.INSTANCE=new o;class L{constructor(){this.type=1}cmp(_){return this.type-_.type}equals(_){return _.type===this.type}substituteConstants(){return this}evaluate(_){return!0}serialize(){return"true"}keys(){return[]}negate(){return o.INSTANCE}}L.INSTANCE=new L;class p{constructor(_,N){this.key=_,this.negated=N,this.type=2}static create(_,N=null){const X=ie.get(_);return typeof X=="boolean"?X?L.INSTANCE:o.INSTANCE:new p(_,N)}cmp(_){return _.type!==this.type?this.type-_.type:I(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=ie.get(this.key);return typeof _=="boolean"?_?L.INSTANCE:o.INSTANCE:this}evaluate(_){return!!_.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=K.create(this.key,this)),this.negated}}class a{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=4}static create(_,N,X=null){if(typeof N=="boolean")return N?p.create(_,X):K.create(_,X);const pe=ie.get(_);return typeof pe=="boolean"?N===(pe?"true":"false")?L.INSTANCE:o.INSTANCE:new a(_,N,X)}cmp(_){return _.type!==this.type?this.type-_.type:_e(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=ie.get(this.key);if(typeof _=="boolean"){const N=_?"true":"false";return this.value===N?L.INSTANCE:o.INSTANCE}return this}evaluate(_){return _.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this.value,this)),this.negated}}class A{constructor(_,N){this.key=_,this.valueKey=N,this.type=10,this.negated=null}static create(_,N){return new A(_,N)}cmp(_){return _.type!==this.type?this.type-_.type:_e(this.key,this.valueKey,_.key,_.valueKey)}equals(_){return _.type===this.type?this.key===_.key&&this.valueKey===_.valueKey:!1}substituteConstants(){return this}evaluate(_){const N=_.getValue(this.valueKey),X=_.getValue(this.key);return Array.isArray(N)?N.indexOf(X)>=0:typeof X=="string"&&typeof N=="object"&&N!==null?Y.call(N,X):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=m.create(this)),this.negated}}class m{constructor(_){this._actual=_,this.type=11}static create(_){return new m(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class S{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=5}static create(_,N,X=null){if(typeof N=="boolean")return N?K.create(_,X):p.create(_,X);const pe=ie.get(_);return typeof pe=="boolean"?N===(pe?"true":"false")?o.INSTANCE:L.INSTANCE:new S(_,N,X)}cmp(_){return _.type!==this.type?this.type-_.type:_e(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){const _=ie.get(this.key);if(typeof _=="boolean"){const N=_?"true":"false";return this.value===N?o.INSTANCE:L.INSTANCE}return this}evaluate(_){return _.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=a.create(this.key,this.value,this)),this.negated}}class K{constructor(_,N){this.key=_,this.negated=N,this.type=3}static create(_,N=null){const X=ie.get(_);return typeof X=="boolean"?X?o.INSTANCE:L.INSTANCE:new K(_,N)}cmp(_){return _.type!==this.type?this.type-_.type:I(this.key,_.key)}equals(_){return _.type===this.type?this.key===_.key:!1}substituteConstants(){const _=ie.get(this.key);return typeof _=="boolean"?_?o.INSTANCE:L.INSTANCE:this}evaluate(_){return!_.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function F(ve,_){if(typeof ve=="string"){const N=parseFloat(ve);isNaN(N)||(ve=N)}return typeof ve=="string"||typeof ve=="number"?_(ve):o.INSTANCE}class H{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=12}static create(_,N,X=null){return F(N,pe=>new H(_,pe,X))}cmp(_){return _.type!==this.type?this.type-_.type:_e(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class V{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=13}static create(_,N,X=null){return F(N,pe=>new V(_,pe,X))}cmp(_){return _.type!==this.type?this.type-_.type:_e(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ee.create(this.key,this.value,this)),this.negated}}class ee{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=14}static create(_,N,X=null){return F(N,pe=>new ee(_,pe,X))}cmp(_){return _.type!==this.type?this.type-_.type:_e(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this.key,this.value,this)),this.negated}}class B{constructor(_,N,X){this.key=_,this.value=N,this.negated=X,this.type=15}static create(_,N,X=null){return F(N,pe=>new B(_,pe,X))}cmp(_){return _.type!==this.type?this.type-_.type:_e(this.key,this.value,_.key,_.value)}equals(_){return _.type===this.type?this.key===_.key&&this.value===_.value:!1}substituteConstants(){return this}evaluate(_){return typeof this.value=="string"?!1:parseFloat(_.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 G{constructor(_,N){this.key=_,this.regexp=N,this.type=7,this.negated=null}static create(_,N){return new G(_,N)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.key<_.key)return-1;if(this.key>_.key)return 1;const N=this.regexp?this.regexp.source:"",X=_.regexp?_.regexp.source:"";return N<X?-1:N>X?1:0}equals(_){if(_.type===this.type){const N=this.regexp?this.regexp.source:"",X=_.regexp?_.regexp.source:"";return this.key===_.key&&N===X}return!1}substituteConstants(){return this}evaluate(_){let N=_.getValue(this.key);return this.regexp?this.regexp.test(N):!1}serialize(){const _=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${_}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=ce.create(this)),this.negated}}class ce{constructor(_){this._actual=_,this.type=8}static create(_){return new ce(_)}cmp(_){return _.type!==this.type?this.type-_.type:this._actual.cmp(_._actual)}equals(_){return _.type===this.type?this._actual.equals(_._actual):!1}substituteConstants(){return this}evaluate(_){return!this._actual.evaluate(_)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function q(ve){let _=null;for(let N=0,X=ve.length;N<X;N++){const pe=ve[N].substituteConstants();if(ve[N]!==pe&&_===null){_=[];for(let qe=0;qe<N;qe++)_[qe]=ve[qe]}_!==null&&(_[N]=pe)}return _===null?ve:_}class be{constructor(_,N){this.expr=_,this.negated=N,this.type=6}static create(_,N){return be._normalizeArr(_,N)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let N=0,X=this.expr.length;N<X;N++){const pe=n(this.expr[N],_.expr[N]);if(pe!==0)return pe}return 0}equals(_){if(_.type===this.type){if(this.expr.length!==_.expr.length)return!1;for(let N=0,X=this.expr.length;N<X;N++)if(!this.expr[N].equals(_.expr[N]))return!1;return!0}return!1}substituteConstants(){const _=q(this.expr);return _===this.expr?this:be.create(_,this.negated)}evaluate(_){for(let N=0,X=this.expr.length;N<X;N++)if(!this.expr[N].evaluate(_))return!1;return!0}static _normalizeArr(_,N){const X=[];let pe=!1;for(const qe of _)if(qe){if(qe.type===1){pe=!0;continue}if(qe.type===0)return o.INSTANCE;if(qe.type===6){X.push(...qe.expr);continue}X.push(qe)}if(X.length===0&&pe)return L.INSTANCE;if(X.length!==0){if(X.length===1)return X[0];X.sort(n);for(let qe=1;qe<X.length;qe++)X[qe-1].equals(X[qe])&&(X.splice(qe,1),qe--);if(X.length===1)return X[0];for(;X.length>1;){const qe=X[X.length-1];if(qe.type!==9)break;X.pop();const at=X.pop(),rt=X.length===0,Rt=xe.create(qe.expr.map(lr=>be.create([lr,at],null)),null,rt);Rt&&(X.push(Rt),X.sort(n))}return X.length===1?X[0]:new be(X,N)}}serialize(){return this.expr.map(_=>_.serialize()).join(" && ")}keys(){const _=[];for(let N of this.expr)_.push(...N.keys());return _}negate(){if(!this.negated){const _=[];for(let N of this.expr)_.push(N.negate());this.negated=xe.create(_,this,!0)}return this.negated}}class xe{constructor(_,N){this.expr=_,this.negated=N,this.type=9}static create(_,N,X){return xe._normalizeArr(_,N,X)}cmp(_){if(_.type!==this.type)return this.type-_.type;if(this.expr.length<_.expr.length)return-1;if(this.expr.length>_.expr.length)return 1;for(let N=0,X=this.expr.length;N<X;N++){const pe=n(this.expr[N],_.expr[N]);if(pe!==0)return pe}return 0}equals(_){if(_.type===this.type){if(this.expr.length!==_.expr.length)return!1;for(let N=0,X=this.expr.length;N<X;N++)if(!this.expr[N].equals(_.expr[N]))return!1;return!0}return!1}substituteConstants(){const _=q(this.expr);return _===this.expr?this:xe.create(_,this.negated,!1)}evaluate(_){for(let N=0,X=this.expr.length;N<X;N++)if(this.expr[N].evaluate(_))return!0;return!1}static _normalizeArr(_,N,X){let pe=[],qe=!1;if(_){for(let at=0,rt=_.length;at<rt;at++){const Rt=_[at];if(Rt){if(Rt.type===0){qe=!0;continue}if(Rt.type===1)return L.INSTANCE;if(Rt.type===9){pe=pe.concat(Rt.expr);continue}pe.push(Rt)}}if(pe.length===0&&qe)return o.INSTANCE;pe.sort(n)}if(pe.length!==0){if(pe.length===1)return pe[0];for(let at=1;at<pe.length;at++)pe[at-1].equals(pe[at])&&(pe.splice(at,1),at--);if(pe.length===1)return pe[0];if(X){for(let at=0;at<pe.length;at++)for(let rt=at+1;rt<pe.length;rt++)oe(pe[at],pe[rt])&&(pe.splice(rt,1),rt--);if(pe.length===1)return pe[0]}return new xe(pe,N)}}serialize(){return this.expr.map(_=>_.serialize()).join(" || ")}keys(){const _=[];for(let N of this.expr)_.push(...N.keys());return _}negate(){if(!this.negated){let _=[];for(let N of this.expr)_.push(N.negate());for(;_.length>1;){const N=_.shift(),X=_.shift(),pe=[];for(const at of he(N))for(const rt of he(X))pe.push(be.create([at,rt],null));const qe=_.length===0;_.unshift(xe.create(pe,null,qe))}this.negated=_[0]}return this.negated}}class Le extends p{constructor(_,N,X){super(_,null),this._defaultValue=N,typeof X=="object"?Le._info.push(Object.assign(Object.assign({},X),{key:_})):X!==!0&&Le._info.push({key:_,description:X,type:N!=null?typeof N:void 0})}static all(){return Le._info.values()}bindTo(_){return _.createKey(this.key,this._defaultValue)}getValue(_){return _.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(_){return a.create(this.key,_)}}Le._info=[];const ae=(0,se.yh)("contextKeyService"),me="setContext";function I(ve,_){return ve<_?-1:ve>_?1:0}function _e(ve,_,N,X){return ve<N?-1:ve>N?1:_<X?-1:_>X?1:0}function oe(ve,_){if(_.type===6&&ve.type!==9&&ve.type!==6){for(const pe of _.expr)if(ve.equals(pe))return!0}const N=ve.negate(),X=he(N).concat(he(_));X.sort(n);for(let pe=0;pe<X.length;pe++){const at=X[pe].negate();for(let rt=pe+1;rt<X.length;rt++){const Rt=X[rt];if(at.equals(Rt))return!0}}return!1}function he(ve){return ve.type===9?ve.expr:[ve]}},16925:function(yn,Gt,g){"use strict";g.d(Gt,{I8:function(){return we},TG:function(){return Fe},jt:function(){return ie},yh:function(){return ke}});var we;(function(Y){Y.serviceIds=new Map,Y.DI_TARGET="$di$target",Y.DI_DEPENDENCIES="$di$dependencies";function O(T){return T[Y.DI_DEPENDENCIES]||[]}Y.getServiceDependencies=O})(we||(we={}));const Fe=ke("instantiationService");function se(Y,O,T,n){O[we.DI_TARGET]===O?O[we.DI_DEPENDENCIES].push({id:Y,index:T,optional:n}):(O[we.DI_DEPENDENCIES]=[{id:Y,index:T,optional:n}],O[we.DI_TARGET]=O)}function ke(Y){if(we.serviceIds.has(Y))return we.serviceIds.get(Y);const O=function(T,n,o){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");se(O,T,o,!1)};return O.toString=()=>Y,we.serviceIds.set(Y,O),O}function ie(Y){return function(O,T,n){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");se(Y,O,n,!0)}}},44650:function(yn,Gt,g){"use strict";g.d(Gt,{B:function(){return ke}});var we=g(76068),Fe=g(72999);class se{constructor(){this.data=new Map}add(Y,O){we.ok(Fe.HD(Y)),we.ok(Fe.Kn(O)),we.ok(!this.data.has(Y),"There is already an extension with this id"),this.data.set(Y,O)}as(Y){return this.data.get(Y)||null}}const ke=new se},66213:function(yn,Gt,g){"use strict";g.d(Gt,{e:function(){return we}});var we;(function(Fe){Fe.DARK="dark",Fe.LIGHT="light",Fe.HIGH_CONTRAST="hc"})(we||(we={}))},49055:function(yn,Gt,g){"use strict";g.d(Gt,{EN:function(){return n},IP:function(){return p},Ic:function(){return m},XE:function(){return O},bB:function(){return S},kS:function(){return o},m6:function(){return L}});var we=g(52615),Fe=g(4348),se=g(69323),ke=g(16925),ie=g(44650),Y=g(66213);const O=(0,ke.yh)("themeService");var T;(function(K){function F(H){return H&&typeof H=="object"&&typeof H.id=="string"}K.isThemeColor=F})(T||(T={}));function n(K){return{id:K}}var o;(function(K){function F(ce){return ce&&typeof ce=="object"&&typeof ce.id=="string"&&(typeof ce.color=="undefined"||T.isThemeColor(ce.color))}K.isThemeIcon=F;const H=new RegExp(`^\\$\\((${we.dT.iconNameExpression}(?:${we.dT.iconModifierExpression})?)\\)$`);function V(ce){const q=H.exec(ce);if(!q)return;let[,be]=q;return{id:be}}K.fromString=V;function ee(ce,q){let be=ce.id;const xe=be.lastIndexOf("~");return xe!==-1&&(be=be.substring(0,xe)),q&&(be=`${be}~${q}`),{id:be}}K.modify=ee;function B(ce,q){var be,xe;return ce.id===q.id&&((be=ce.color)===null||be===void 0?void 0:be.id)===((xe=q.color)===null||xe===void 0?void 0:xe.id)}K.isEqual=B;function G(ce,q){return{id:ce.id,color:q?n(q):void 0}}K.asThemeIcon=G,K.asClassNameArray=we.dT.asClassNameArray,K.asClassName=we.dT.asClassName,K.asCSSSelector=we.dT.asCSSSelector})(o||(o={}));function L(K){switch(K){case Y.e.DARK:return"vs-dark";case Y.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class a{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Fe.Q5}onColorThemeChange(F){return this.themingParticipants.push(F),this.onThemingParticipantAddedEmitter.fire(F),(0,se.OF)(()=>{const H=this.themingParticipants.indexOf(F);this.themingParticipants.splice(H,1)})}getThemingParticipants(){return this.themingParticipants}}let A=new a;ie.B.add(p.ThemingContribution,A);function m(K){return A.onColorThemeChange(K)}class S extends se.JT{constructor(F){super(),this.themeService=F,this.theme=F.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(H=>this.onThemeChange(H)))}onThemeChange(F){this.theme=F,this.updateStyles()}updateStyles(){}}},5630:function(yn,Gt,g){"use strict";var we=g(5891),Fe=g(57259),se=g(80962),ke=g(29043),ie=g(19149),Y=g(92310),O=g.n(Y),T=g(35788),n=g(59301),o=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],L=(0,n.forwardRef)(function(p,a){var A,m=p.prefixCls,S=m===void 0?"rc-checkbox":m,K=p.className,F=p.style,H=p.checked,V=p.disabled,ee=p.defaultChecked,B=ee===void 0?!1:ee,G=p.type,ce=G===void 0?"checkbox":G,q=p.title,be=p.onChange,xe=(0,ie.Z)(p,o),Le=(0,n.useRef)(null),ae=(0,T.Z)(B,{value:H}),me=(0,ke.Z)(ae,2),I=me[0],_e=me[1];(0,n.useImperativeHandle)(a,function(){return{focus:function(){var _;(_=Le.current)===null||_===void 0||_.focus()},blur:function(){var _;(_=Le.current)===null||_===void 0||_.blur()},input:Le.current}});var oe=O()(S,K,(A={},(0,se.Z)(A,"".concat(S,"-checked"),I),(0,se.Z)(A,"".concat(S,"-disabled"),V),A)),he=function(_){V||("checked"in p||_e(_.target.checked),be==null||be({target:(0,Fe.Z)((0,Fe.Z)({},p),{},{type:ce,checked:_.target.checked}),stopPropagation:function(){_.stopPropagation()},preventDefault:function(){_.preventDefault()},nativeEvent:_.nativeEvent}))};return n.createElement("span",{className:oe,title:q,style:F},n.createElement("input",(0,we.Z)({},xe,{className:"".concat(S,"-input"),ref:Le,onChange:he,disabled:V,checked:!!I,type:ce})),n.createElement("span",{className:"".concat(S,"-inner")}))});Gt.Z=L},31561:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return ce}});var we=g(5891),Fe=g(80962),se=g(29043),ke=g(19149),ie=g(35593),Y=g(92310),O=g.n(Y),T=g(20475),n=g(59301),o=g(85108),L=g(23073),p=o.Z.ESC,a=o.Z.TAB;function A(q){var be=q.visible,xe=q.triggerRef,Le=q.onVisibleChange,ae=q.autoFocus,me=q.overlayRef,I=n.useRef(!1),_e=function(){if(be){var _,N;(_=xe.current)===null||_===void 0||(N=_.focus)===null||N===void 0||N.call(_),Le==null||Le(!1)}},oe=function(){var _;return(_=me.current)!==null&&_!==void 0&&_.focus?(me.current.focus(),I.current=!0,!0):!1},he=function(_){switch(_.keyCode){case p:_e();break;case a:{var N=!1;I.current||(N=oe()),N?_.preventDefault():_e();break}}};n.useEffect(function(){return be?(window.addEventListener("keydown",he),ae&&(0,L.Z)(oe,3),function(){window.removeEventListener("keydown",he),I.current=!1}):function(){I.current=!1}},[be])}var m=(0,n.forwardRef)(function(q,be){var xe=q.overlay,Le=q.arrow,ae=q.prefixCls,me=(0,n.useMemo)(function(){var _e;return typeof xe=="function"?_e=xe():_e=xe,_e},[xe]),I=(0,T.sQ)(be,me==null?void 0:me.ref);return n.createElement(n.Fragment,null,Le&&n.createElement("div",{className:"".concat(ae,"-arrow")}),n.cloneElement(me,{ref:(0,T.Yr)(me)?I:void 0}))}),S=m,K={adjustX:1,adjustY:1},F=[0,0],H={topLeft:{points:["bl","tl"],overflow:K,offset:[0,-4],targetOffset:F},top:{points:["bc","tc"],overflow:K,offset:[0,-4],targetOffset:F},topRight:{points:["br","tr"],overflow:K,offset:[0,-4],targetOffset:F},bottomLeft:{points:["tl","bl"],overflow:K,offset:[0,4],targetOffset:F},bottom:{points:["tc","bc"],overflow:K,offset:[0,4],targetOffset:F},bottomRight:{points:["tr","br"],overflow:K,offset:[0,4],targetOffset:F}},V=H,ee=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function B(q,be){var xe,Le=q.arrow,ae=Le===void 0?!1:Le,me=q.prefixCls,I=me===void 0?"rc-dropdown":me,_e=q.transitionName,oe=q.animation,he=q.align,ve=q.placement,_=ve===void 0?"bottomLeft":ve,N=q.placements,X=N===void 0?V:N,pe=q.getPopupContainer,qe=q.showAction,at=q.hideAction,rt=q.overlayClassName,Rt=q.overlayStyle,lr=q.visible,qt=q.trigger,Ze=qt===void 0?["hover"]:qt,Er=q.autoFocus,Cr=q.overlay,Kr=q.children,_r=q.onVisibleChange,Me=(0,ke.Z)(q,ee),Tt=n.useState(),z=(0,se.Z)(Tt,2),v=z[0],f=z[1],D="visible"in q?lr:v,de=n.useRef(null),W=n.useRef(null),P=n.useRef(null);n.useImperativeHandle(be,function(){return de.current});var te=function(We){f(We),_r==null||_r(We)};A({visible:D,triggerRef:P,onVisibleChange:te,autoFocus:Er,overlayRef:W});var Ie=function(We){var $e=q.onOverlayClick;f(!1),$e&&$e(We)},Te=function(){return n.createElement(S,{ref:W,overlay:Cr,prefixCls:I,arrow:ae})},Se=function(){return typeof Cr=="function"?Te:Te()},Ge=function(){var We=q.minOverlayWidthMatchTrigger,$e=q.alignPoint;return"minOverlayWidthMatchTrigger"in q?We:!$e},ft=function(){var We=q.openClassName;return We!==void 0?We:"".concat(I,"-open")},Ke=n.cloneElement(Kr,{className:O()((xe=Kr.props)===null||xe===void 0?void 0:xe.className,D&&ft()),ref:(0,T.Yr)(Kr)?(0,T.sQ)(P,Kr.ref):void 0}),Xe=at;return!Xe&&Ze.indexOf("contextMenu")!==-1&&(Xe=["click"]),n.createElement(ie.Z,(0,we.Z)({builtinPlacements:X},Me,{prefixCls:I,ref:de,popupClassName:O()(rt,(0,Fe.Z)({},"".concat(I,"-show-arrow"),ae)),popupStyle:Rt,action:Ze,showAction:qe,hideAction:Xe,popupPlacement:_,popupAlign:he,popupTransitionName:_e,popupAnimation:oe,popupVisible:D,stretch:Ge()?"minWidth":"",popup:Se(),onPopupVisibleChange:te,onPopupClick:Ie,getPopupContainer:pe}),Ke)}var G=n.forwardRef(B),ce=G},93681:function(yn,Gt,g){"use strict";g.r(Gt),g.d(Gt,{BaseInput:function(){return o},default:function(){return H}});var we=g(5891),Fe=g(57259),se=g(80962),ke=g(80665),ie=g(92310),Y=g.n(ie),O=g(59301),T=g(5643),n=function(ee){var B,G,ce=ee.inputElement,q=ee.prefixCls,be=ee.prefix,xe=ee.suffix,Le=ee.addonBefore,ae=ee.addonAfter,me=ee.className,I=ee.style,_e=ee.disabled,oe=ee.readOnly,he=ee.focused,ve=ee.triggerFocus,_=ee.allowClear,N=ee.value,X=ee.handleReset,pe=ee.hidden,qe=ee.classes,at=ee.classNames,rt=ee.dataAttrs,Rt=ee.styles,lr=ee.components,qt=(lr==null?void 0:lr.affixWrapper)||"span",Ze=(lr==null?void 0:lr.groupWrapper)||"span",Er=(lr==null?void 0:lr.wrapper)||"span",Cr=(lr==null?void 0:lr.groupAddon)||"span",Kr=(0,O.useRef)(null),_r=function(Te){var Se;(Se=Kr.current)!==null&&Se!==void 0&&Se.contains(Te.target)&&(ve==null||ve())},Me=function(){var Te;if(!_)return null;var Se=!_e&&!oe&&N,Ge="".concat(q,"-clear-icon"),ft=(0,ke.Z)(_)==="object"&&_!==null&&_!==void 0&&_.clearIcon?_.clearIcon:"\u2716";return O.createElement("span",{onClick:X,onMouseDown:function(Xe){return Xe.preventDefault()},className:Y()(Ge,(Te={},(0,se.Z)(Te,"".concat(Ge,"-hidden"),!Se),(0,se.Z)(Te,"".concat(Ge,"-has-suffix"),!!xe),Te)),role:"button",tabIndex:-1},ft)},Tt=(0,O.cloneElement)(ce,{value:N,hidden:pe,className:Y()((B=ce.props)===null||B===void 0?void 0:B.className,!(0,T.X3)(ee)&&!(0,T.He)(ee)&&me)||null,style:(0,Fe.Z)((0,Fe.Z)({},(G=ce.props)===null||G===void 0?void 0:G.style),!(0,T.X3)(ee)&&!(0,T.He)(ee)?I:{})});if((0,T.X3)(ee)){var z,v="".concat(q,"-affix-wrapper"),f=Y()(v,(z={},(0,se.Z)(z,"".concat(v,"-disabled"),_e),(0,se.Z)(z,"".concat(v,"-focused"),he),(0,se.Z)(z,"".concat(v,"-readonly"),oe),(0,se.Z)(z,"".concat(v,"-input-with-clear-btn"),xe&&_&&N),z),!(0,T.He)(ee)&&me,qe==null?void 0:qe.affixWrapper,at==null?void 0:at.affixWrapper),D=(xe||_)&&O.createElement("span",{className:Y()("".concat(q,"-suffix"),at==null?void 0:at.suffix),style:Rt==null?void 0:Rt.suffix},Me(),xe);Tt=O.createElement(qt,(0,we.Z)({className:f,style:(0,Fe.Z)((0,Fe.Z)({},(0,T.He)(ee)?void 0:I),Rt==null?void 0:Rt.affixWrapper),hidden:!(0,T.He)(ee)&&pe,onClick:_r},rt==null?void 0:rt.affixWrapper,{ref:Kr}),be&&O.createElement("span",{className:Y()("".concat(q,"-prefix"),at==null?void 0:at.prefix),style:Rt==null?void 0:Rt.prefix},be),(0,O.cloneElement)(ce,{value:N,hidden:null}),D)}if((0,T.He)(ee)){var de="".concat(q,"-group"),W="".concat(de,"-addon"),P=Y()("".concat(q,"-wrapper"),de,qe==null?void 0:qe.wrapper),te=Y()("".concat(q,"-group-wrapper"),me,qe==null?void 0:qe.group);return O.createElement(Ze,{className:te,style:I,hidden:pe},O.createElement(Er,{className:P},Le&&O.createElement(Cr,{className:W},Le),(0,O.cloneElement)(Tt,{hidden:null}),ae&&O.createElement(Cr,{className:W},ae)))}return Tt},o=n,L=g(26390),p=g(29043),a=g(19149),A=g(35788),m=g(64002),S=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],K=(0,O.forwardRef)(function(V,ee){var B=V.autoComplete,G=V.onChange,ce=V.onFocus,q=V.onBlur,be=V.onPressEnter,xe=V.onKeyDown,Le=V.prefixCls,ae=Le===void 0?"rc-input":Le,me=V.disabled,I=V.htmlSize,_e=V.className,oe=V.maxLength,he=V.suffix,ve=V.showCount,_=V.type,N=_===void 0?"text":_,X=V.classes,pe=V.classNames,qe=V.styles,at=(0,a.Z)(V,S),rt=(0,A.Z)(V.defaultValue,{value:V.value}),Rt=(0,p.Z)(rt,2),lr=Rt[0],qt=Rt[1],Ze=(0,O.useState)(!1),Er=(0,p.Z)(Ze,2),Cr=Er[0],Kr=Er[1],_r=(0,O.useRef)(null),Me=function(te){_r.current&&(0,T.nH)(_r.current,te)};(0,O.useImperativeHandle)(ee,function(){return{focus:Me,blur:function(){var te;(te=_r.current)===null||te===void 0||te.blur()},setSelectionRange:function(te,Ie,Te){var Se;(Se=_r.current)===null||Se===void 0||Se.setSelectionRange(te,Ie,Te)},select:function(){var te;(te=_r.current)===null||te===void 0||te.select()},input:_r.current}}),(0,O.useEffect)(function(){Kr(function(P){return P&&me?!1:P})},[me]);var Tt=function(te){V.value===void 0&&qt(te.target.value),_r.current&&(0,T.rJ)(_r.current,te,G)},z=function(te){be&&te.key==="Enter"&&be(te),xe==null||xe(te)},v=function(te){Kr(!0),ce==null||ce(te)},f=function(te){Kr(!1),q==null||q(te)},D=function(te){qt(""),Me(),_r.current&&(0,T.rJ)(_r.current,te,G)},de=function(){var te=(0,m.Z)(V,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return O.createElement("input",(0,we.Z)({autoComplete:B},te,{onChange:Tt,onFocus:v,onBlur:f,onKeyDown:z,className:Y()(ae,(0,se.Z)({},"".concat(ae,"-disabled"),me),pe==null?void 0:pe.input),style:qe==null?void 0:qe.input,ref:_r,size:I,type:N}))},W=function(){var te=Number(oe)>0;if(he||ve){var Ie=(0,T.D7)(lr),Te=(0,L.Z)(Ie).length,Se=(0,ke.Z)(ve)==="object"?ve.formatter({value:Ie,count:Te,maxLength:oe}):"".concat(Te).concat(te?" / ".concat(oe):"");return O.createElement(O.Fragment,null,!!ve&&O.createElement("span",{className:Y()("".concat(ae,"-show-count-suffix"),(0,se.Z)({},"".concat(ae,"-show-count-has-suffix"),!!he),pe==null?void 0:pe.count),style:(0,Fe.Z)({},qe==null?void 0:qe.count)},Se),he)}return null};return O.createElement(o,(0,we.Z)({},at,{prefixCls:ae,className:_e,inputElement:de(),handleReset:D,value:(0,T.D7)(lr),focused:Cr,triggerFocus:Me,suffix:W(),disabled:me,classes:X,classNames:pe,styles:qe}))}),F=K,H=F},5643:function(yn,Gt,g){"use strict";g.d(Gt,{D7:function(){return ie},He:function(){return we},X3:function(){return Fe},nH:function(){return ke},rJ:function(){return se}});function we(Y){return!!(Y.addonBefore||Y.addonAfter)}function Fe(Y){return!!(Y.prefix||Y.suffix||Y.allowClear)}function se(Y,O,T,n){if(T){var o=O;if(O.type==="click"){var L=Y.cloneNode(!0);o=Object.create(O,{target:{value:L},currentTarget:{value:L}}),L.value="",T(o);return}if(n!==void 0){o=Object.create(O,{target:{value:Y},currentTarget:{value:Y}}),Y.value=n,T(o);return}T(o)}}function ke(Y,O){if(Y){Y.focus(O);var T=O||{},n=T.cursor;if(n){var o=Y.value.length;switch(n){case"start":Y.setSelectionRange(0,0);break;case"end":Y.setSelectionRange(o,o);break;default:Y.setSelectionRange(0,o)}}}}function ie(Y){return typeof Y=="undefined"||Y===null?"":String(Y)}},22798:function(yn,Gt,g){"use strict";g.d(Gt,{iz:function(){return ri},ck:function(){return Zt},BW:function(){return $n},sN:function(){return Zt},Wd:function(){return Dr},ZP:function(){return wn},Xl:function(){return xe}});var we=g(5891),Fe=g(80962),se=g(57259),ke=g(26390),ie=g(29043),Y=g(19149),O=g(92310),T=g.n(O),n=g(11780),o=g(35788),L=g(51346),p=g(51395),a=g(59301),A=g(4676),m=a.createContext(null);function S(hr,yr){return hr===void 0?null:"".concat(hr,"-").concat(yr)}function K(hr){var yr=a.useContext(m);return S(yr,hr)}var F=g(79722),H=["children","locked"],V=a.createContext(null);function ee(hr,yr){var Pr=(0,se.Z)({},hr);return Object.keys(yr).forEach(function(Zr){var Qr=yr[Zr];Qr!==void 0&&(Pr[Zr]=Qr)}),Pr}function B(hr){var yr=hr.children,Pr=hr.locked,Zr=(0,Y.Z)(hr,H),Qr=a.useContext(V),on=(0,F.Z)(function(){return ee(Qr,Zr)},[Qr,Zr],function(en,jn){return!Pr&&(en[0]!==jn[0]||!(0,L.Z)(en[1],jn[1],!0))});return a.createElement(V.Provider,{value:on},yr)}var G=[],ce=a.createContext(null);function q(){return a.useContext(ce)}var be=a.createContext(G);function xe(hr){var yr=a.useContext(be);return a.useMemo(function(){return hr!==void 0?[].concat((0,ke.Z)(yr),[hr]):yr},[yr,hr])}var Le=a.createContext(null),ae=a.createContext({}),me=ae,I=g(48886);function _e(hr){var yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,I.Z)(hr)){var Pr=hr.nodeName.toLowerCase(),Zr=["input","select","textarea","button"].includes(Pr)||hr.isContentEditable||Pr==="a"&&!!hr.getAttribute("href"),Qr=hr.getAttribute("tabindex"),on=Number(Qr),en=null;return Qr&&!Number.isNaN(on)?en=on:Zr&&en===null&&(en=0),Zr&&hr.disabled&&(en=null),en!==null&&(en>=0||yr&&en<0)}return!1}function oe(hr){var yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pr=(0,ke.Z)(hr.querySelectorAll("*")).filter(function(Zr){return _e(Zr,yr)});return _e(hr,yr)&&Pr.unshift(hr),Pr}var he=null;function ve(){he=document.activeElement}function _(){he=null}function N(){if(he)try{he.focus()}catch(hr){}}function X(hr,yr){if(yr.keyCode===9){var Pr=oe(hr),Zr=Pr[yr.shiftKey?0:Pr.length-1],Qr=Zr===document.activeElement||hr===document.activeElement;if(Qr){var on=Pr[yr.shiftKey?Pr.length-1:0];on.focus(),yr.preventDefault()}}}var pe=g(85108),qe=g(23073),at=pe.Z.LEFT,rt=pe.Z.RIGHT,Rt=pe.Z.UP,lr=pe.Z.DOWN,qt=pe.Z.ENTER,Ze=pe.Z.ESC,Er=pe.Z.HOME,Cr=pe.Z.END,Kr=[Rt,lr,at,rt];function _r(hr,yr,Pr,Zr){var Qr,on,en,jn,qn="prev",oi="next",Qi="children",Ri="parent";if(hr==="inline"&&Zr===qt)return{inlineTrigger:!0};var ki=(Qr={},(0,Fe.Z)(Qr,Rt,qn),(0,Fe.Z)(Qr,lr,oi),Qr),Tr=(on={},(0,Fe.Z)(on,at,Pr?oi:qn),(0,Fe.Z)(on,rt,Pr?qn:oi),(0,Fe.Z)(on,lr,Qi),(0,Fe.Z)(on,qt,Qi),on),_n=(en={},(0,Fe.Z)(en,Rt,qn),(0,Fe.Z)(en,lr,oi),(0,Fe.Z)(en,qt,Qi),(0,Fe.Z)(en,Ze,Ri),(0,Fe.Z)(en,at,Pr?Qi:Ri),(0,Fe.Z)(en,rt,Pr?Ri:Qi),en),gn={inline:ki,horizontal:Tr,vertical:_n,inlineSub:ki,horizontalSub:_n,verticalSub:_n},ui=(jn=gn["".concat(hr).concat(yr?"":"Sub")])===null||jn===void 0?void 0:jn[Zr];switch(ui){case qn:return{offset:-1,sibling:!0};case oi:return{offset:1,sibling:!0};case Ri:return{offset:-1,sibling:!1};case Qi:return{offset:1,sibling:!1};default:return null}}function Me(hr){for(var yr=hr;yr;){if(yr.getAttribute("data-menu-list"))return yr;yr=yr.parentElement}return null}function Tt(hr,yr){for(var Pr=hr||document.activeElement;Pr;){if(yr.has(Pr))return Pr;Pr=Pr.parentElement}return null}function z(hr,yr){var Pr=oe(hr,!0);return Pr.filter(function(Zr){return yr.has(Zr)})}function v(hr,yr,Pr){var Zr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!hr)return null;var Qr=z(hr,yr),on=Qr.length,en=Qr.findIndex(function(jn){return Pr===jn});return Zr<0?en===-1?en=on-1:en-=1:Zr>0&&(en+=1),en=(en+on)%on,Qr[en]}var f=function(yr,Pr){var Zr=new Set,Qr=new Map,on=new Map;return yr.forEach(function(en){var jn=document.querySelector("[data-menu-id='".concat(S(Pr,en),"']"));jn&&(Zr.add(jn),on.set(jn,en),Qr.set(en,jn))}),{elements:Zr,key2element:Qr,element2key:on}};function D(hr,yr,Pr,Zr,Qr,on,en,jn,qn,oi){var Qi=a.useRef(),Ri=a.useRef();Ri.current=yr;var ki=function(){qe.Z.cancel(Qi.current)};return a.useEffect(function(){return function(){ki()}},[]),function(Tr){var _n=Tr.which;if([].concat(Kr,[qt,Ze,Er,Cr]).includes(_n)){var gn=on(),ui=f(gn,Zr),ii=ui,ti=ii.elements,wi=ii.key2element,Pi=ii.element2key,Bi=wi.get(yr),zi=Tt(Bi,ti),ca=Pi.get(zi),xi=_r(hr,en(ca,!0).length===1,Pr,_n);if(!xi&&_n!==Er&&_n!==Cr)return;(Kr.includes(_n)||[Er,Cr].includes(_n))&&Tr.preventDefault();var vn=function(ea){if(ea){var _i=ea,yi=ea.querySelector("a");yi!=null&&yi.getAttribute("href")&&(_i=yi);var Si=Pi.get(ea);jn(Si),ki(),Qi.current=(0,qe.Z)(function(){Ri.current===Si&&_i.focus()})}};if([Er,Cr].includes(_n)||xi.sibling||!zi){var Ht;!zi||hr==="inline"?Ht=Qr.current:Ht=Me(zi);var Ln,Gn=z(Ht,ti);_n===Er?Ln=Gn[0]:_n===Cr?Ln=Gn[Gn.length-1]:Ln=v(Ht,ti,zi,xi.offset),vn(Ln)}else if(xi.inlineTrigger)qn(ca);else if(xi.offset>0)qn(ca,!0),ki(),Qi.current=(0,qe.Z)(function(){ui=f(gn,Zr);var va=zi.getAttribute("aria-controls"),ea=document.getElementById(va),_i=v(ea,ui.elements);vn(_i)},5);else if(xi.offset<0){var Ci=en(ca,!0),ji=Ci[Ci.length-2],fa=wi.get(ji);qn(ji,!1),vn(fa)}}oi==null||oi(Tr)}}function de(hr){Promise.resolve().then(hr)}var W="__RC_UTIL_PATH_SPLIT__",P=function(yr){return yr.join(W)},te=function(yr){return yr.split(W)},Ie="rc-menu-more";function Te(){var hr=a.useState({}),yr=(0,ie.Z)(hr,2),Pr=yr[1],Zr=(0,a.useRef)(new Map),Qr=(0,a.useRef)(new Map),on=a.useState([]),en=(0,ie.Z)(on,2),jn=en[0],qn=en[1],oi=(0,a.useRef)(0),Qi=(0,a.useRef)(!1),Ri=function(){Qi.current||Pr({})},ki=(0,a.useCallback)(function(wi,Pi){var Bi=P(Pi);Qr.current.set(Bi,wi),Zr.current.set(wi,Bi),oi.current+=1;var zi=oi.current;de(function(){zi===oi.current&&Ri()})},[]),Tr=(0,a.useCallback)(function(wi,Pi){var Bi=P(Pi);Qr.current.delete(Bi),Zr.current.delete(wi)},[]),_n=(0,a.useCallback)(function(wi){qn(wi)},[]),gn=(0,a.useCallback)(function(wi,Pi){var Bi=Zr.current.get(wi)||"",zi=te(Bi);return Pi&&jn.includes(zi[0])&&zi.unshift(Ie),zi},[jn]),ui=(0,a.useCallback)(function(wi,Pi){return wi.some(function(Bi){var zi=gn(Bi,!0);return zi.includes(Pi)})},[gn]),ii=function(){var Pi=(0,ke.Z)(Zr.current.keys());return jn.length&&Pi.push(Ie),Pi},ti=(0,a.useCallback)(function(wi){var Pi="".concat(Zr.current.get(wi)).concat(W),Bi=new Set;return(0,ke.Z)(Qr.current.keys()).forEach(function(zi){zi.startsWith(Pi)&&Bi.add(Qr.current.get(zi))}),Bi},[]);return a.useEffect(function(){return function(){Qi.current=!0}},[]),{registerPath:ki,unregisterPath:Tr,refreshOverflowKeys:_n,isSubPathKey:ui,getKeyPath:gn,getKeys:ii,getSubPathKeys:ti}}function Se(hr){var yr=a.useRef(hr);yr.current=hr;var Pr=a.useCallback(function(){for(var Zr,Qr=arguments.length,on=new Array(Qr),en=0;en<Qr;en++)on[en]=arguments[en];return(Zr=yr.current)===null||Zr===void 0?void 0:Zr.call.apply(Zr,[yr].concat(on))},[]);return hr?Pr:void 0}var Ge=Math.random().toFixed(5).toString().slice(2),ft=0;function Ke(hr){var yr=(0,o.Z)(hr,{value:hr}),Pr=(0,ie.Z)(yr,2),Zr=Pr[0],Qr=Pr[1];return a.useEffect(function(){ft+=1;var on="".concat(Ge,"-").concat(ft);Qr("rc-menu-uuid-".concat(on))},[]),Zr}var Xe=g(79545),At=g(68550),We=g(17928),$e=g(7711),Bt=g(64002),Kt=g(20475);function Mt(hr,yr,Pr,Zr){var Qr=a.useContext(V),on=Qr.activeKey,en=Qr.onActive,jn=Qr.onInactive,qn={active:on===hr};return yr||(qn.onMouseEnter=function(oi){Pr==null||Pr({key:hr,domEvent:oi}),en(hr)},qn.onMouseLeave=function(oi){Zr==null||Zr({key:hr,domEvent:oi}),jn(hr)}),qn}function wr(hr){var yr=a.useContext(V),Pr=yr.mode,Zr=yr.rtl,Qr=yr.inlineIndent;if(Pr!=="inline")return null;var on=hr;return Zr?{paddingRight:on*Qr}:{paddingLeft:on*Qr}}function vr(hr){var yr=hr.icon,Pr=hr.props,Zr=hr.children,Qr;return yr===null||yr===!1?null:(typeof yr=="function"?Qr=a.createElement(yr,(0,se.Z)({},Pr)):typeof yr!="boolean"&&(Qr=yr),Qr||Zr||null)}var re=["item"];function le(hr){var yr=hr.item,Pr=(0,Y.Z)(hr,re);return Object.defineProperty(Pr,"item",{get:function(){return(0,p.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),yr}}),Pr}var rr=["title","attribute","elementRef"],Ue=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ot=["active"],Yr=function(hr){(0,We.Z)(Pr,hr);var yr=(0,$e.Z)(Pr);function Pr(){return(0,Xe.Z)(this,Pr),yr.apply(this,arguments)}return(0,At.Z)(Pr,[{key:"render",value:function(){var Qr=this.props,on=Qr.title,en=Qr.attribute,jn=Qr.elementRef,qn=(0,Y.Z)(Qr,rr),oi=(0,Bt.Z)(qn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,p.ZP)(!en,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),a.createElement(n.Z.Item,(0,we.Z)({},en,{title:typeof on=="string"?on:void 0},oi,{ref:jn}))}}]),Pr}(a.Component),St=a.forwardRef(function(hr,yr){var Pr,Zr=hr.style,Qr=hr.className,on=hr.eventKey,en=hr.warnKey,jn=hr.disabled,qn=hr.itemIcon,oi=hr.children,Qi=hr.role,Ri=hr.onMouseEnter,ki=hr.onMouseLeave,Tr=hr.onClick,_n=hr.onKeyDown,gn=hr.onFocus,ui=(0,Y.Z)(hr,Ue),ii=K(on),ti=a.useContext(V),wi=ti.prefixCls,Pi=ti.onItemClick,Bi=ti.disabled,zi=ti.overflowDisabled,ca=ti.itemIcon,xi=ti.selectedKeys,vn=ti.onActive,Ht=a.useContext(me),Ln=Ht._internalRenderMenuItem,Gn="".concat(wi,"-item"),Ci=a.useRef(),ji=a.useRef(),fa=Bi||jn,va=(0,Kt.x1)(yr,ji),ea=xe(on),_i=function(Fa){return{key:on,keyPath:(0,ke.Z)(ea).reverse(),item:Ci.current,domEvent:Fa}},yi=qn||ca,Si=Mt(on,fa,Ri,ki),ra=Si.active,Aa=(0,Y.Z)(Si,ot),es=xi.includes(on),ps=wr(ea.length),hi=function(Fa){if(!fa){var Mi=_i(Fa);Tr==null||Tr(le(Mi)),Pi(Mi)}},Ca=function(Fa){if(_n==null||_n(Fa),Fa.which===pe.Z.ENTER){var Mi=_i(Fa);Tr==null||Tr(le(Mi)),Pi(Mi)}},ma=function(Fa){vn(on),gn==null||gn(Fa)},ka={};hr.role==="option"&&(ka["aria-selected"]=es);var Ps=a.createElement(Yr,(0,we.Z)({ref:Ci,elementRef:va,role:Qi===null?"none":Qi||"menuitem",tabIndex:jn?null:-1,"data-menu-id":zi&&ii?null:ii},ui,Aa,ka,{component:"li","aria-disabled":jn,style:(0,se.Z)((0,se.Z)({},ps),Zr),className:T()(Gn,(Pr={},(0,Fe.Z)(Pr,"".concat(Gn,"-active"),ra),(0,Fe.Z)(Pr,"".concat(Gn,"-selected"),es),(0,Fe.Z)(Pr,"".concat(Gn,"-disabled"),fa),Pr),Qr),onClick:hi,onKeyDown:Ca,onFocus:ma}),oi,a.createElement(vr,{props:(0,se.Z)((0,se.Z)({},hr),{},{isSelected:es}),icon:yi}));return Ln&&(Ps=Ln(Ps,hr,{selected:es})),Ps});function Vt(hr,yr){var Pr=hr.eventKey,Zr=q(),Qr=xe(Pr);return a.useEffect(function(){if(Zr)return Zr.registerPath(Pr,Qr),function(){Zr.unregisterPath(Pr,Qr)}},[Qr]),Zr?null:a.createElement(St,(0,we.Z)({},hr,{ref:yr}))}var Zt=a.forwardRef(Vt),nt=["className","children"],ct=function(yr,Pr){var Zr=yr.className,Qr=yr.children,on=(0,Y.Z)(yr,nt),en=a.useContext(V),jn=en.prefixCls,qn=en.mode,oi=en.rtl;return a.createElement("ul",(0,we.Z)({className:T()(jn,oi&&"".concat(jn,"-rtl"),"".concat(jn,"-sub"),"".concat(jn,"-").concat(qn==="inline"?"inline":"vertical"),Zr),role:"menu"},on,{"data-menu-list":!0,ref:Pr}),Qr)},dt=a.forwardRef(ct);dt.displayName="SubMenuList";var Xt=dt,Re=g(38298);function fn(hr,yr){return(0,Re.Z)(hr).map(function(Pr,Zr){if(a.isValidElement(Pr)){var Qr,on,en=Pr.key,jn=(Qr=(on=Pr.props)===null||on===void 0?void 0:on.eventKey)!==null&&Qr!==void 0?Qr:en,qn=jn==null;qn&&(jn="tmp_key-".concat([].concat((0,ke.Z)(yr),[Zr]).join("-")));var oi={key:jn,eventKey:jn};return a.cloneElement(Pr,oi)}return Pr})}var kt=g(35593),Nn={adjustX:1,adjustY:1},Jn={topLeft:{points:["bl","tl"],overflow:Nn},topRight:{points:["br","tr"],overflow:Nn},bottomLeft:{points:["tl","bl"],overflow:Nn},bottomRight:{points:["tr","br"],overflow:Nn},leftTop:{points:["tr","tl"],overflow:Nn},leftBottom:{points:["br","bl"],overflow:Nn},rightTop:{points:["tl","tr"],overflow:Nn},rightBottom:{points:["bl","br"],overflow:Nn}},vi={topLeft:{points:["bl","tl"],overflow:Nn},topRight:{points:["br","tr"],overflow:Nn},bottomLeft:{points:["tl","bl"],overflow:Nn},bottomRight:{points:["tr","br"],overflow:Nn},rightTop:{points:["tr","tl"],overflow:Nn},rightBottom:{points:["br","bl"],overflow:Nn},leftTop:{points:["tl","tr"],overflow:Nn},leftBottom:{points:["bl","br"],overflow:Nn}},Fi=null;function Mn(hr,yr,Pr){if(yr)return yr;if(Pr)return Pr[hr]||Pr.other}var Hn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Yt(hr){var yr=hr.prefixCls,Pr=hr.visible,Zr=hr.children,Qr=hr.popup,on=hr.popupStyle,en=hr.popupClassName,jn=hr.popupOffset,qn=hr.disabled,oi=hr.mode,Qi=hr.onVisibleChange,Ri=a.useContext(V),ki=Ri.getPopupContainer,Tr=Ri.rtl,_n=Ri.subMenuOpenDelay,gn=Ri.subMenuCloseDelay,ui=Ri.builtinPlacements,ii=Ri.triggerSubMenuAction,ti=Ri.forceSubMenuRender,wi=Ri.rootClassName,Pi=Ri.motion,Bi=Ri.defaultMotions,zi=a.useState(!1),ca=(0,ie.Z)(zi,2),xi=ca[0],vn=ca[1],Ht=Tr?(0,se.Z)((0,se.Z)({},vi),ui):(0,se.Z)((0,se.Z)({},Jn),ui),Ln=Hn[oi],Gn=Mn(oi,Pi,Bi),Ci=a.useRef(Gn);oi!=="inline"&&(Ci.current=Gn);var ji=(0,se.Z)((0,se.Z)({},Ci.current),{},{leavedClassName:"".concat(yr,"-hidden"),removeOnLeave:!1,motionAppear:!0}),fa=a.useRef();return a.useEffect(function(){return fa.current=(0,qe.Z)(function(){vn(Pr)}),function(){qe.Z.cancel(fa.current)}},[Pr]),a.createElement(kt.Z,{prefixCls:yr,popupClassName:T()("".concat(yr,"-popup"),(0,Fe.Z)({},"".concat(yr,"-rtl"),Tr),en,wi),stretch:oi==="horizontal"?"minWidth":null,getPopupContainer:ki,builtinPlacements:Ht,popupPlacement:Ln,popupVisible:xi,popup:Qr,popupStyle:on,popupAlign:jn&&{offset:jn},action:qn?[]:[ii],mouseEnterDelay:_n,mouseLeaveDelay:gn,onPopupVisibleChange:Qi,forceRender:ti,popupMotion:ji,fresh:!0},Zr)}var kr=g(43469);function tn(hr){var yr=hr.id,Pr=hr.open,Zr=hr.keyPath,Qr=hr.children,on="inline",en=a.useContext(V),jn=en.prefixCls,qn=en.forceSubMenuRender,oi=en.motion,Qi=en.defaultMotions,Ri=en.mode,ki=a.useRef(!1);ki.current=Ri===on;var Tr=a.useState(!ki.current),_n=(0,ie.Z)(Tr,2),gn=_n[0],ui=_n[1],ii=ki.current?Pr:!1;a.useEffect(function(){ki.current&&ui(!1)},[Ri]);var ti=(0,se.Z)({},Mn(on,oi,Qi));Zr.length>1&&(ti.motionAppear=!1);var wi=ti.onVisibleChanged;return ti.onVisibleChanged=function(Pi){return!ki.current&&!Pi&&ui(!0),wi==null?void 0:wi(Pi)},gn?null:a.createElement(B,{mode:on,locked:!ki.current},a.createElement(kr.default,(0,we.Z)({visible:ii},ti,{forceRender:qn,removeOnLeave:!1,leavedClassName:"".concat(jn,"-hidden")}),function(Pi){var Bi=Pi.className,zi=Pi.style;return a.createElement(Xt,{id:yr,className:Bi,style:zi},Qr)}))}var Nt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],_t=["active"],Ir=function(yr){var Pr,Zr=yr.style,Qr=yr.className,on=yr.title,en=yr.eventKey,jn=yr.warnKey,qn=yr.disabled,oi=yr.internalPopupClose,Qi=yr.children,Ri=yr.itemIcon,ki=yr.expandIcon,Tr=yr.popupClassName,_n=yr.popupOffset,gn=yr.popupStyle,ui=yr.onClick,ii=yr.onMouseEnter,ti=yr.onMouseLeave,wi=yr.onTitleClick,Pi=yr.onTitleMouseEnter,Bi=yr.onTitleMouseLeave,zi=(0,Y.Z)(yr,Nt),ca=K(en),xi=a.useContext(V),vn=xi.prefixCls,Ht=xi.mode,Ln=xi.openKeys,Gn=xi.disabled,Ci=xi.overflowDisabled,ji=xi.activeKey,fa=xi.selectedKeys,va=xi.itemIcon,ea=xi.expandIcon,_i=xi.onItemClick,yi=xi.onOpenChange,Si=xi.onActive,ra=a.useContext(me),Aa=ra._internalRenderSubMenuItem,es=a.useContext(Le),ps=es.isSubPathKey,hi=xe(),Ca="".concat(vn,"-submenu"),ma=Gn||qn,ka=a.useRef(),Ps=a.useRef(),is=Ri!=null?Ri:va,Fa=ki!=null?ki:ea,Mi=Ln.includes(en),la=!Ci&&Mi,ms=ps(fa,en),as=Mt(en,ma,Pi,Bi),ts=as.active,Wi=(0,Y.Z)(as,_t),gs=a.useState(!1),aa=(0,ie.Z)(gs,2),co=aa[0],Qs=aa[1],Co=function(Es){ma||Qs(Es)},fs=function(Es){Co(!0),ii==null||ii({key:en,domEvent:Es})},_o=function(Es){Co(!1),ti==null||ti({key:en,domEvent:Es})},ss=a.useMemo(function(){return ts||(Ht!=="inline"?co||ps([ji],en):!1)},[Ht,ts,ji,co,en,ps]),Yn=wr(hi.length),Da=function(Es){ma||(wi==null||wi({key:en,domEvent:Es}),Ht==="inline"&&yi(en,!Mi))},io=Se(function(cs){ui==null||ui(le(cs)),_i(cs)}),Zi=function(Es){Ht!=="inline"&&yi(en,Es)},ta=function(){Si(en)},$i=ca&&"".concat(ca,"-popup"),Ui=a.createElement("div",(0,we.Z)({role:"menuitem",style:Yn,className:"".concat(Ca,"-title"),tabIndex:ma?null:-1,ref:ka,title:typeof on=="string"?on:null,"data-menu-id":Ci&&ca?null:ca,"aria-expanded":la,"aria-haspopup":!0,"aria-controls":$i,"aria-disabled":ma,onClick:Da,onFocus:ta},Wi),on,a.createElement(vr,{icon:Ht!=="horizontal"?Fa:void 0,props:(0,se.Z)((0,se.Z)({},yr),{},{isOpen:la,isSubMenu:!0})},a.createElement("i",{className:"".concat(Ca,"-arrow")}))),wa=a.useRef(Ht);if(Ht!=="inline"&&hi.length>1?wa.current="vertical":wa.current=Ht,!Ci){var Pa=wa.current;Ui=a.createElement(Yt,{mode:Pa,prefixCls:Ca,visible:!oi&&la&&Ht!=="inline",popupClassName:Tr,popupOffset:_n,popupStyle:gn,popup:a.createElement(B,{mode:Pa==="horizontal"?"vertical":Pa},a.createElement(Xt,{id:$i,ref:Ps},Qi)),disabled:ma,onVisibleChange:Zi},Ui)}var Ls=a.createElement(n.Z.Item,(0,we.Z)({role:"none"},zi,{component:"li",style:Zr,className:T()(Ca,"".concat(Ca,"-").concat(Ht),Qr,(Pr={},(0,Fe.Z)(Pr,"".concat(Ca,"-open"),la),(0,Fe.Z)(Pr,"".concat(Ca,"-active"),ss),(0,Fe.Z)(Pr,"".concat(Ca,"-selected"),ms),(0,Fe.Z)(Pr,"".concat(Ca,"-disabled"),ma),Pr)),onMouseEnter:fs,onMouseLeave:_o}),Ui,!Ci&&a.createElement(tn,{id:$i,open:la,keyPath:hi},Qi));return Aa&&(Ls=Aa(Ls,yr,{selected:ms,active:ss,open:la,disabled:ma})),a.createElement(B,{onItemClick:io,mode:Ht==="horizontal"?"vertical":Ht,itemIcon:is,expandIcon:Fa},Ls)};function Dr(hr){var yr=hr.eventKey,Pr=hr.children,Zr=xe(yr),Qr=fn(Pr,Zr),on=q();a.useEffect(function(){if(on)return on.registerPath(yr,Zr),function(){on.unregisterPath(yr,Zr)}},[Zr]);var en;return on?en=Qr:en=a.createElement(Ir,hr,Qr),a.createElement(be.Provider,{value:Zr},en)}var In=g(80665),qr=["className","title","eventKey","children"],Sn=["children"],hn=function(yr){var Pr=yr.className,Zr=yr.title,Qr=yr.eventKey,on=yr.children,en=(0,Y.Z)(yr,qr),jn=a.useContext(V),qn=jn.prefixCls,oi="".concat(qn,"-item-group");return a.createElement("li",(0,we.Z)({role:"presentation"},en,{onClick:function(Ri){return Ri.stopPropagation()},className:T()(oi,Pr)}),a.createElement("div",{role:"presentation",className:"".concat(oi,"-title"),title:typeof Zr=="string"?Zr:void 0},Zr),a.createElement("ul",{role:"group",className:"".concat(oi,"-list")},on))};function $n(hr){var yr=hr.children,Pr=(0,Y.Z)(hr,Sn),Zr=xe(Pr.eventKey),Qr=fn(yr,Zr),on=q();return on?Qr:a.createElement(hn,(0,Bt.Z)(Pr,["warnKey"]),Qr)}function ri(hr){var yr=hr.className,Pr=hr.style,Zr=a.useContext(V),Qr=Zr.prefixCls,on=q();return on?null:a.createElement("li",{role:"separator",className:T()("".concat(Qr,"-item-divider"),yr),style:Pr})}var Hr=["label","children","key","type"];function zr(hr){return(hr||[]).map(function(yr,Pr){if(yr&&(0,In.Z)(yr)==="object"){var Zr=yr,Qr=Zr.label,on=Zr.children,en=Zr.key,jn=Zr.type,qn=(0,Y.Z)(Zr,Hr),oi=en!=null?en:"tmp-".concat(Pr);return on||jn==="group"?jn==="group"?a.createElement($n,(0,we.Z)({key:oi},qn,{title:Qr}),zr(on)):a.createElement(Dr,(0,we.Z)({key:oi},qn,{title:Qr}),zr(on)):jn==="divider"?a.createElement(ri,(0,we.Z)({key:oi},qn)):a.createElement(Zt,(0,we.Z)({key:oi},qn),Qr)}return null}).filter(function(yr){return yr})}function Tn(hr,yr,Pr){var Zr=hr;return yr&&(Zr=zr(yr)),fn(Zr,Pr)}var Bn=["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"],Qn=[],Xn=a.forwardRef(function(hr,yr){var Pr,Zr,Qr=hr,on=Qr.prefixCls,en=on===void 0?"rc-menu":on,jn=Qr.rootClassName,qn=Qr.style,oi=Qr.className,Qi=Qr.tabIndex,Ri=Qi===void 0?0:Qi,ki=Qr.items,Tr=Qr.children,_n=Qr.direction,gn=Qr.id,ui=Qr.mode,ii=ui===void 0?"vertical":ui,ti=Qr.inlineCollapsed,wi=Qr.disabled,Pi=Qr.disabledOverflow,Bi=Qr.subMenuOpenDelay,zi=Bi===void 0?.1:Bi,ca=Qr.subMenuCloseDelay,xi=ca===void 0?.1:ca,vn=Qr.forceSubMenuRender,Ht=Qr.defaultOpenKeys,Ln=Qr.openKeys,Gn=Qr.activeKey,Ci=Qr.defaultActiveFirst,ji=Qr.selectable,fa=ji===void 0?!0:ji,va=Qr.multiple,ea=va===void 0?!1:va,_i=Qr.defaultSelectedKeys,yi=Qr.selectedKeys,Si=Qr.onSelect,ra=Qr.onDeselect,Aa=Qr.inlineIndent,es=Aa===void 0?24:Aa,ps=Qr.motion,hi=Qr.defaultMotions,Ca=Qr.triggerSubMenuAction,ma=Ca===void 0?"hover":Ca,ka=Qr.builtinPlacements,Ps=Qr.itemIcon,is=Qr.expandIcon,Fa=Qr.overflowedIndicator,Mi=Fa===void 0?"...":Fa,la=Qr.overflowedIndicatorPopupClassName,ms=Qr.getPopupContainer,as=Qr.onClick,ts=Qr.onOpenChange,Wi=Qr.onKeyDown,gs=Qr.openAnimation,aa=Qr.openTransitionName,co=Qr._internalRenderMenuItem,Qs=Qr._internalRenderSubMenuItem,Co=(0,Y.Z)(Qr,Bn),fs=a.useMemo(function(){return Tn(Tr,ki,Qn)},[Tr,ki]),_o=a.useState(!1),ss=(0,ie.Z)(_o,2),Yn=ss[0],Da=ss[1],io=a.useRef(),Zi=Ke(gn),ta=_n==="rtl",$i=(0,o.Z)(Ht,{value:Ln,postState:function(ys){return ys||Qn}}),Ui=(0,ie.Z)($i,2),wa=Ui[0],Pa=Ui[1],Ls=function(ys){var Xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Cs(){Pa(ys),ts==null||ts(ys)}Xa?(0,A.flushSync)(Cs):Cs()},cs=a.useState(wa),Es=(0,ie.Z)(cs,2),rs=Es[0],Bo=Es[1],go=a.useRef(!1),eo=a.useMemo(function(){return(ii==="inline"||ii==="vertical")&&ti?["vertical",ti]:[ii,!1]},[ii,ti]),zs=(0,ie.Z)(eo,2),Rs=zs[0],Oi=zs[1],Ai=Rs==="inline",ua=a.useState(Rs),vs=(0,ie.Z)(ua,2),Ra=vs[0],Ns=vs[1],Vs=a.useState(Oi),vo=(0,ie.Z)(Vs,2),Os=vo[0],Di=vo[1];a.useEffect(function(){Ns(Rs),Di(Oi),go.current&&(Ai?Pa(rs):Ls(Qn))},[Rs,Oi]);var Dl=a.useState(0),Js=(0,ie.Z)(Dl,2),nl=Js[0],Qo=Js[1],Ao=nl>=fs.length-1||Ra!=="horizontal"||Pi;a.useEffect(function(){Ai&&Bo(wa)},[wa]),a.useEffect(function(){return go.current=!0,function(){go.current=!1}},[]);var _a=Te(),vl=_a.registerPath,yl=_a.unregisterPath,fo=_a.refreshOverflowKeys,So=_a.isSubPathKey,Na=_a.getKeyPath,ya=_a.getKeys,to=_a.getSubPathKeys,Va=a.useMemo(function(){return{registerPath:vl,unregisterPath:yl}},[vl,yl]),ns=a.useMemo(function(){return{isSubPathKey:So}},[So]);a.useEffect(function(){fo(Ao?Qn:fs.slice(nl+1).map(function(Za){return Za.key}))},[nl,Ao]);var js=(0,o.Z)(Gn||Ci&&((Pr=fs[0])===null||Pr===void 0?void 0:Pr.key),{value:Gn}),Ea=(0,ie.Z)(js,2),Ys=Ea[0],ao=Ea[1],Po=Se(function(Za){ao(Za)}),Do=Se(function(){ao(void 0)});(0,a.useImperativeHandle)(yr,function(){return{list:io.current,focus:function(ys){var Xa,Cs=ya(),qs=f(Cs,Zi),El=qs.elements,il=qs.key2element,Rl=qs.element2key,cu=z(io.current,El),Ol=Ys!=null?Ys:cu[0]?Rl.get(cu[0]):(Xa=fs.find(function(Au){return!Au.props.disabled}))===null||Xa===void 0?void 0:Xa.key,Pl=il.get(Ol);if(Ol&&Pl){var li;Pl==null||(li=Pl.focus)===null||li===void 0||li.call(Pl,ys)}}}});var Ya=(0,o.Z)(_i||[],{value:yi,postState:function(ys){return Array.isArray(ys)?ys:ys==null?Qn:[ys]}}),bl=(0,ie.Z)(Ya,2),so=bl[0],yo=bl[1],Zl=function(ys){if(fa){var Xa=ys.key,Cs=so.includes(Xa),qs;ea?Cs?qs=so.filter(function(il){return il!==Xa}):qs=[].concat((0,ke.Z)(so),[Xa]):qs=[Xa],yo(qs);var El=(0,se.Z)((0,se.Z)({},ys),{},{selectedKeys:qs});Cs?ra==null||ra(El):Si==null||Si(El)}!ea&&wa.length&&Ra!=="inline"&&Ls(Qn)},wl=Se(function(Za){as==null||as(le(Za)),Zl(Za)}),fl=Se(function(Za,ys){var Xa=wa.filter(function(qs){return qs!==Za});if(ys)Xa.push(Za);else if(Ra!=="inline"){var Cs=to(Za);Xa=Xa.filter(function(qs){return!Cs.has(qs)})}(0,L.Z)(wa,Xa,!0)||Ls(Xa,!0)}),Ll=function(ys,Xa){var Cs=Xa!=null?Xa:!wa.includes(ys);fl(ys,Cs)},xl=D(Ra,Ys,ta,Zi,io,ya,Na,ao,Ll,Wi);a.useEffect(function(){Da(!0)},[]);var jo=a.useMemo(function(){return{_internalRenderMenuItem:co,_internalRenderSubMenuItem:Qs}},[co,Qs]),Gs=Ra!=="horizontal"||Pi?fs:fs.map(function(Za,ys){return a.createElement(B,{key:Za.key,overflowDisabled:ys>nl},Za)}),Lo=a.createElement(n.Z,(0,we.Z)({id:gn,ref:io,prefixCls:"".concat(en,"-overflow"),component:"ul",itemComponent:Zt,className:T()(en,"".concat(en,"-root"),"".concat(en,"-").concat(Ra),oi,(Zr={},(0,Fe.Z)(Zr,"".concat(en,"-inline-collapsed"),Os),(0,Fe.Z)(Zr,"".concat(en,"-rtl"),ta),Zr),jn),dir:_n,style:qn,role:"menu",tabIndex:Ri,data:Gs,renderRawItem:function(ys){return ys},renderRawRest:function(ys){var Xa=ys.length,Cs=Xa?fs.slice(-Xa):null;return a.createElement(Dr,{eventKey:Ie,title:Mi,disabled:Ao,internalPopupClose:Xa===0,popupClassName:la},Cs)},maxCount:Ra!=="horizontal"||Pi?n.Z.INVALIDATE:n.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ys){Qo(ys)},onKeyDown:xl},Co));return a.createElement(me.Provider,{value:jo},a.createElement(m.Provider,{value:Zi},a.createElement(B,{prefixCls:en,rootClassName:jn,mode:Ra,openKeys:wa,rtl:ta,disabled:wi,motion:Yn?ps:null,defaultMotions:Yn?hi:null,activeKey:Ys,onActive:Po,onInactive:Do,selectedKeys:so,inlineIndent:es,subMenuOpenDelay:zi,subMenuCloseDelay:xi,forceSubMenuRender:vn,builtinPlacements:ka,triggerSubMenuAction:ma,getPopupContainer:ms,itemIcon:Ps,expandIcon:is,onItemClick:wl,onOpenChange:fl},a.createElement(Le.Provider,{value:ns},Lo),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(ce.Provider,{value:Va},fs)))))}),Hi=Xn,fi=Hi;fi.Item=Zt,fi.SubMenu=Dr,fi.ItemGroup=$n,fi.Divider=ri;var wn=fi},11780:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return ve}});var we=g(5891),Fe=g(57259),se=g(29043),ke=g(19149),ie=g(59301),Y=g(92310),O=g.n(Y),T=g(29301),n=g(28800),o=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],L=void 0;function p(_,N){var X=_.prefixCls,pe=_.invalidate,qe=_.item,at=_.renderItem,rt=_.responsive,Rt=_.responsiveDisabled,lr=_.registerSize,qt=_.itemKey,Ze=_.className,Er=_.style,Cr=_.children,Kr=_.display,_r=_.order,Me=_.component,Tt=Me===void 0?"div":Me,z=(0,ke.Z)(_,o),v=rt&&!Kr;function f(te){lr(qt,te)}ie.useEffect(function(){return function(){f(null)}},[]);var D=at&&qe!==L?at(qe,{index:_r}):Cr,de;pe||(de={opacity:v?0:1,height:v?0:L,overflowY:v?"hidden":L,order:rt?_r:L,pointerEvents:v?"none":L,position:v?"absolute":L});var W={};v&&(W["aria-hidden"]=!0);var P=ie.createElement(Tt,(0,we.Z)({className:O()(!pe&&X,Ze),style:(0,Fe.Z)((0,Fe.Z)({},de),Er)},W,z,{ref:N}),D);return rt&&(P=ie.createElement(T.Z,{onResize:function(Ie){var Te=Ie.offsetWidth;f(Te)},disabled:Rt},P)),P}var a=ie.forwardRef(p);a.displayName="Item";var A=a,m=g(8107),S=g(4676),K=g(23073);function F(_){if(typeof MessageChannel=="undefined")(0,K.Z)(_);else{var N=new MessageChannel;N.port1.onmessage=function(){return _()},N.port2.postMessage(void 0)}}function H(){var _=ie.useRef(null),N=function(pe){_.current||(_.current=[],F(function(){(0,S.unstable_batchedUpdates)(function(){_.current.forEach(function(qe){qe()}),_.current=null})})),_.current.push(pe)};return N}function V(_,N){var X=ie.useState(N),pe=(0,se.Z)(X,2),qe=pe[0],at=pe[1],rt=(0,m.Z)(function(Rt){_(function(){at(Rt)})});return[qe,rt]}var ee=ie.createContext(null),B=["component"],G=["className"],ce=["className"],q=function(N,X){var pe=ie.useContext(ee);if(!pe){var qe=N.component,at=qe===void 0?"div":qe,rt=(0,ke.Z)(N,B);return ie.createElement(at,(0,we.Z)({},rt,{ref:X}))}var Rt=pe.className,lr=(0,ke.Z)(pe,G),qt=N.className,Ze=(0,ke.Z)(N,ce);return ie.createElement(ee.Provider,{value:null},ie.createElement(A,(0,we.Z)({ref:X,className:O()(Rt,qt)},lr,Ze)))},be=ie.forwardRef(q);be.displayName="RawItem";var xe=be,Le=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ae="responsive",me="invalidate";function I(_){return"+ ".concat(_.length," ...")}function _e(_,N){var X=_.prefixCls,pe=X===void 0?"rc-overflow":X,qe=_.data,at=qe===void 0?[]:qe,rt=_.renderItem,Rt=_.renderRawItem,lr=_.itemKey,qt=_.itemWidth,Ze=qt===void 0?10:qt,Er=_.ssr,Cr=_.style,Kr=_.className,_r=_.maxCount,Me=_.renderRest,Tt=_.renderRawRest,z=_.suffix,v=_.component,f=v===void 0?"div":v,D=_.itemComponent,de=_.onVisibleChange,W=(0,ke.Z)(_,Le),P=Er==="full",te=H(),Ie=V(te,null),Te=(0,se.Z)(Ie,2),Se=Te[0],Ge=Te[1],ft=Se||0,Ke=V(te,new Map),Xe=(0,se.Z)(Ke,2),At=Xe[0],We=Xe[1],$e=V(te,0),Bt=(0,se.Z)($e,2),Kt=Bt[0],Mt=Bt[1],wr=V(te,0),vr=(0,se.Z)(wr,2),re=vr[0],le=vr[1],rr=V(te,0),Ue=(0,se.Z)(rr,2),ot=Ue[0],Yr=Ue[1],St=(0,ie.useState)(null),Vt=(0,se.Z)(St,2),Zt=Vt[0],nt=Vt[1],ct=(0,ie.useState)(null),dt=(0,se.Z)(ct,2),Xt=dt[0],Re=dt[1],fn=ie.useMemo(function(){return Xt===null&&P?Number.MAX_SAFE_INTEGER:Xt||0},[Xt,Se]),kt=(0,ie.useState)(!1),Nn=(0,se.Z)(kt,2),Jn=Nn[0],vi=Nn[1],Fi="".concat(pe,"-item"),Mn=Math.max(Kt,re),Hn=_r===ae,Yt=at.length&&Hn,kr=_r===me,tn=Yt||typeof _r=="number"&&at.length>_r,Nt=(0,ie.useMemo)(function(){var wn=at;return Yt?Se===null&&P?wn=at:wn=at.slice(0,Math.min(at.length,ft/Ze)):typeof _r=="number"&&(wn=at.slice(0,_r)),wn},[at,Ze,Se,_r,Yt]),_t=(0,ie.useMemo)(function(){return Yt?at.slice(fn+1):at.slice(Nt.length)},[at,Nt,Yt,fn]),Ir=(0,ie.useCallback)(function(wn,hr){var yr;return typeof lr=="function"?lr(wn):(yr=lr&&(wn==null?void 0:wn[lr]))!==null&&yr!==void 0?yr:hr},[lr]),Dr=(0,ie.useCallback)(rt||function(wn){return wn},[rt]);function In(wn,hr,yr){Xt===wn&&(hr===void 0||hr===Zt)||(Re(wn),yr||(vi(wn<at.length-1),de==null||de(wn)),hr!==void 0&&nt(hr))}function qr(wn,hr){Ge(hr.clientWidth)}function Sn(wn,hr){We(function(yr){var Pr=new Map(yr);return hr===null?Pr.delete(wn):Pr.set(wn,hr),Pr})}function hn(wn,hr){le(hr),Mt(re)}function $n(wn,hr){Yr(hr)}function ri(wn){return At.get(Ir(Nt[wn],wn))}(0,n.Z)(function(){if(ft&&typeof Mn=="number"&&Nt){var wn=ot,hr=Nt.length,yr=hr-1;if(!hr){In(0,null);return}for(var Pr=0;Pr<hr;Pr+=1){var Zr=ri(Pr);if(P&&(Zr=Zr||0),Zr===void 0){In(Pr-1,void 0,!0);break}if(wn+=Zr,yr===0&&wn<=ft||Pr===yr-1&&wn+ri(yr)<=ft){In(yr,null);break}else if(wn+Mn>ft){In(Pr-1,wn-Zr-ot+re);break}}z&&ri(0)+ot>ft&&nt(null)}},[ft,At,re,ot,Ir,Nt]);var Hr=Jn&&!!_t.length,zr={};Zt!==null&&Yt&&(zr={position:"absolute",left:Zt,top:0});var Tn={prefixCls:Fi,responsive:Yt,component:D,invalidate:kr},Bn=Rt?function(wn,hr){var yr=Ir(wn,hr);return ie.createElement(ee.Provider,{key:yr,value:(0,Fe.Z)((0,Fe.Z)({},Tn),{},{order:hr,item:wn,itemKey:yr,registerSize:Sn,display:hr<=fn})},Rt(wn,hr))}:function(wn,hr){var yr=Ir(wn,hr);return ie.createElement(A,(0,we.Z)({},Tn,{order:hr,key:yr,item:wn,renderItem:Dr,itemKey:yr,registerSize:Sn,display:hr<=fn}))},Qn={order:Hr?fn:Number.MAX_SAFE_INTEGER,className:"".concat(Fi,"-rest"),registerSize:hn,display:Hr},Xn=Me||I,Hi=Tt?ie.createElement(ee.Provider,{value:(0,Fe.Z)((0,Fe.Z)({},Tn),Qn)},Tt(_t)):ie.createElement(A,(0,we.Z)({},Tn,Qn),typeof Xn=="function"?Xn(_t):Xn),fi=ie.createElement(f,(0,we.Z)({className:O()(!kr&&pe,Kr),style:Cr,ref:N},W),Nt.map(Bn),tn?Hi:null,z&&ie.createElement(A,(0,we.Z)({},Tn,{responsive:Hn,responsiveDisabled:!Yt,order:fn,className:"".concat(Fi,"-suffix"),registerSize:$n,display:!0,style:zr}),z));return Hn?ie.createElement(T.Z,{onResize:qr,disabled:!Yt},fi):fi}var oe=ie.forwardRef(_e);oe.displayName="Overflow",oe.Item=xe,oe.RESPONSIVE=ae,oe.INVALIDATE=me;var he=oe,ve=he},29301:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return me}});var we=g(5891),Fe=g(59301),se=g(38298),ke=g(51395),ie=g(57259),Y=g(80665),O=g(85899),T=g(20475),n=Fe.createContext(null);function o(I){var _e=I.children,oe=I.onBatchResize,he=Fe.useRef(0),ve=Fe.useRef([]),_=Fe.useContext(n),N=Fe.useCallback(function(X,pe,qe){he.current+=1;var at=he.current;ve.current.push({size:X,element:pe,data:qe}),Promise.resolve().then(function(){at===he.current&&(oe==null||oe(ve.current),ve.current=[])}),_==null||_(X,pe,qe)},[oe,_]);return Fe.createElement(n.Provider,{value:N},_e)}var L=g(76374),p=new Map;function a(I){I.forEach(function(_e){var oe,he=_e.target;(oe=p.get(he))===null||oe===void 0||oe.forEach(function(ve){return ve(he)})})}var A=new L.Z(a),m=null,S=null;function K(I,_e){p.has(I)||(p.set(I,new Set),A.observe(I)),p.get(I).add(_e)}function F(I,_e){p.has(I)&&(p.get(I).delete(_e),p.get(I).size||(A.unobserve(I),p.delete(I)))}var H=g(79545),V=g(68550),ee=g(17928),B=g(7711),G=function(I){(0,ee.Z)(oe,I);var _e=(0,B.Z)(oe);function oe(){return(0,H.Z)(this,oe),_e.apply(this,arguments)}return(0,V.Z)(oe,[{key:"render",value:function(){return this.props.children}}]),oe}(Fe.Component);function ce(I,_e){var oe=I.children,he=I.disabled,ve=Fe.useRef(null),_=Fe.useRef(null),N=Fe.useContext(n),X=typeof oe=="function",pe=X?oe(ve):oe,qe=Fe.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),at=!X&&Fe.isValidElement(pe)&&(0,T.Yr)(pe),rt=at?(0,T.C4)(pe):null,Rt=(0,T.x1)(rt,ve),lr=function(){var Cr;return(0,O.ZP)(ve.current)||(ve.current&&(0,Y.Z)(ve.current)==="object"?(0,O.ZP)((Cr=ve.current)===null||Cr===void 0?void 0:Cr.nativeElement):null)||(0,O.ZP)(_.current)};Fe.useImperativeHandle(_e,function(){return lr()});var qt=Fe.useRef(I);qt.current=I;var Ze=Fe.useCallback(function(Er){var Cr=qt.current,Kr=Cr.onResize,_r=Cr.data,Me=Er.getBoundingClientRect(),Tt=Me.width,z=Me.height,v=Er.offsetWidth,f=Er.offsetHeight,D=Math.floor(Tt),de=Math.floor(z);if(qe.current.width!==D||qe.current.height!==de||qe.current.offsetWidth!==v||qe.current.offsetHeight!==f){var W={width:D,height:de,offsetWidth:v,offsetHeight:f};qe.current=W;var P=v===Math.round(Tt)?Tt:v,te=f===Math.round(z)?z:f,Ie=(0,ie.Z)((0,ie.Z)({},W),{},{offsetWidth:P,offsetHeight:te});N==null||N(Ie,Er,_r),Kr&&Promise.resolve().then(function(){Kr(Ie,Er)})}},[]);return Fe.useEffect(function(){var Er=lr();return Er&&!he&&K(Er,Ze),function(){return F(Er,Ze)}},[ve.current,he]),Fe.createElement(G,{ref:_},at?Fe.cloneElement(pe,{ref:Rt}):pe)}var q=Fe.forwardRef(ce),be=q,xe="rc-observer-key";function Le(I,_e){var oe=I.children,he=typeof oe=="function"?[oe]:(0,se.Z)(oe);return he.map(function(ve,_){var N=(ve==null?void 0:ve.key)||"".concat(xe,"-").concat(_);return Fe.createElement(be,(0,we.Z)({},I,{key:N,ref:_===0?_e:void 0}),ve)})}var ae=Fe.forwardRef(Le);ae.Collection=o;var me=ae},17115:function(yn,Gt,g){"use strict";g.d(Gt,{ZP:function(){return O}});var we=g(29043),Fe=g(59301),se=g(87746),ke=0,ie=(0,se.Z)();function Y(){var T;return ie?(T=ke,ke+=1):T="TEST_OR_SSR",T}function O(T){var n=Fe.useState(),o=(0,we.Z)(n,2),L=o[0],p=o[1];return Fe.useEffect(function(){p("rc_select_".concat(Y()))},[]),T||L}},77861:function(yn,Gt,g){"use strict";g.d(Gt,{Ac:function(){return Ge},Xo:function(){return le},Wx:function(){return Ue},ZP:function(){return tn},lk:function(){return ee}});var we=g(5891),Fe=g(26390),se=g(80962),ke=g(57259),ie=g(29043),Y=g(19149),O=g(80665),T=g(35788),n=g(51395),o=g(59301),L=g(92310),p=g.n(L),a=g(28800),A=g(93144),m=g(85108),S=g(20475),K=function(_t){var Ir=_t.className,Dr=_t.customizeIcon,In=_t.customizeIconProps,qr=_t.onMouseDown,Sn=_t.onClick,hn=_t.children,$n;return typeof Dr=="function"?$n=Dr(In):$n=Dr,o.createElement("span",{className:Ir,onMouseDown:function(Hr){Hr.preventDefault(),qr&&qr(Hr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Sn,"aria-hidden":!0},$n!==void 0?$n:o.createElement("span",{className:p()(Ir.split(/\s+/).map(function(ri){return"".concat(ri,"-icon")}))},hn))},F=K;function H(Nt,_t,Ir,Dr,In){var qr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Sn=arguments.length>6?arguments[6]:void 0,hn=arguments.length>7?arguments[7]:void 0,$n=o.useMemo(function(){if((0,O.Z)(Dr)==="object")return Dr.clearIcon;if(In)return In},[Dr,In]),ri=o.useMemo(function(){return!!(!qr&&Dr&&(Ir.length||Sn)&&!(hn==="combobox"&&Sn===""))},[Dr,qr,Ir.length,Sn,hn]);return{allowClear:ri,clearIcon:o.createElement(F,{className:"".concat(Nt,"-clear"),onMouseDown:_t,customizeIcon:$n},"\xD7")}}var V=o.createContext(null);function ee(){return o.useContext(V)}function B(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,_t=o.useState(!1),Ir=(0,ie.Z)(_t,2),Dr=Ir[0],In=Ir[1],qr=o.useRef(null),Sn=function(){window.clearTimeout(qr.current)};o.useEffect(function(){return Sn},[]);var hn=function(ri,Hr){Sn(),qr.current=window.setTimeout(function(){In(ri),Hr&&Hr()},Nt)};return[Dr,hn,Sn]}function G(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,_t=o.useRef(null),Ir=o.useRef(null);o.useEffect(function(){return function(){window.clearTimeout(Ir.current)}},[]);function Dr(In){(In||_t.current===null)&&(_t.current=In),window.clearTimeout(Ir.current),Ir.current=window.setTimeout(function(){_t.current=null},Nt)}return[function(){return _t.current},Dr]}function ce(Nt,_t,Ir,Dr){var In=o.useRef(null);In.current={open:_t,triggerOpen:Ir,customizedTrigger:Dr},o.useEffect(function(){function qr(Sn){var hn;if(!((hn=In.current)!==null&&hn!==void 0&&hn.customizedTrigger)){var $n=Sn.target;$n.shadowRoot&&Sn.composed&&($n=Sn.composedPath()[0]||$n),In.current.open&&Nt().filter(function(ri){return ri}).every(function(ri){return!ri.contains($n)&&ri!==$n})&&In.current.triggerOpen(!1)}}return window.addEventListener("mousedown",qr),function(){return window.removeEventListener("mousedown",qr)}},[])}var q=g(36994),be=g(11780),xe=function(_t,Ir){var Dr,In,qr=_t.prefixCls,Sn=_t.id,hn=_t.inputElement,$n=_t.disabled,ri=_t.tabIndex,Hr=_t.autoFocus,zr=_t.autoComplete,Tn=_t.editable,Bn=_t.activeDescendantId,Qn=_t.value,Xn=_t.maxLength,Hi=_t.onKeyDown,fi=_t.onMouseDown,wn=_t.onChange,hr=_t.onPaste,yr=_t.onCompositionStart,Pr=_t.onCompositionEnd,Zr=_t.open,Qr=_t.attrs,on=hn||o.createElement("input",null),en=on,jn=en.ref,qn=en.props,oi=qn.onKeyDown,Qi=qn.onChange,Ri=qn.onMouseDown,ki=qn.onCompositionStart,Tr=qn.onCompositionEnd,_n=qn.style;return(0,n.Kp)(!("maxLength"in on.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),on=o.cloneElement(on,(0,ke.Z)((0,ke.Z)((0,ke.Z)({type:"search"},qn),{},{id:Sn,ref:(0,S.sQ)(Ir,jn),disabled:$n,tabIndex:ri,autoComplete:zr||"off",autoFocus:Hr,className:p()("".concat(qr,"-selection-search-input"),(Dr=on)===null||Dr===void 0||(In=Dr.props)===null||In===void 0?void 0:In.className),role:"combobox","aria-label":"Search","aria-expanded":Zr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Sn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Sn,"_list"),"aria-activedescendant":Zr?Bn:void 0},Qr),{},{value:Tn?Qn:"",maxLength:Xn,readOnly:!Tn,unselectable:Tn?null:"on",style:(0,ke.Z)((0,ke.Z)({},_n),{},{opacity:Tn?null:0}),onKeyDown:function(ui){Hi(ui),oi&&oi(ui)},onMouseDown:function(ui){fi(ui),Ri&&Ri(ui)},onChange:function(ui){wn(ui),Qi&&Qi(ui)},onCompositionStart:function(ui){yr(ui),ki&&ki(ui)},onCompositionEnd:function(ui){Pr(ui),Tr&&Tr(ui)},onPaste:hr})),on},Le=o.forwardRef(xe);Le.displayName="Input";var ae=Le;function me(Nt){return Array.isArray(Nt)?Nt:Nt!==void 0?[Nt]:[]}var I=typeof window!="undefined"&&window.document&&window.document.documentElement,_e=I;function oe(Nt){return Nt!=null}function he(Nt){return!Nt&&Nt!==0}function ve(Nt){return["string","number"].includes((0,O.Z)(Nt))}function _(Nt){var _t=void 0;return Nt&&(ve(Nt.title)?_t=Nt.title.toString():ve(Nt.label)&&(_t=Nt.label.toString())),_t}function N(Nt,_t){_e?o.useLayoutEffect(Nt,_t):o.useEffect(Nt,_t)}function X(Nt){var _t;return(_t=Nt.key)!==null&&_t!==void 0?_t:Nt.value}var pe=function(_t){_t.preventDefault(),_t.stopPropagation()},qe=function(_t){var Ir=_t.id,Dr=_t.prefixCls,In=_t.values,qr=_t.open,Sn=_t.searchValue,hn=_t.autoClearSearchValue,$n=_t.inputRef,ri=_t.placeholder,Hr=_t.disabled,zr=_t.mode,Tn=_t.showSearch,Bn=_t.autoFocus,Qn=_t.autoComplete,Xn=_t.activeDescendantId,Hi=_t.tabIndex,fi=_t.removeIcon,wn=_t.maxTagCount,hr=_t.maxTagTextLength,yr=_t.maxTagPlaceholder,Pr=yr===void 0?function(ji){return"+ ".concat(ji.length," ...")}:yr,Zr=_t.tagRender,Qr=_t.onToggleOpen,on=_t.onRemove,en=_t.onInputChange,jn=_t.onInputPaste,qn=_t.onInputKeyDown,oi=_t.onInputMouseDown,Qi=_t.onInputCompositionStart,Ri=_t.onInputCompositionEnd,ki=o.useRef(null),Tr=(0,o.useState)(0),_n=(0,ie.Z)(Tr,2),gn=_n[0],ui=_n[1],ii=(0,o.useState)(!1),ti=(0,ie.Z)(ii,2),wi=ti[0],Pi=ti[1],Bi="".concat(Dr,"-selection"),zi=qr||zr==="multiple"&&hn===!1||zr==="tags"?Sn:"",ca=zr==="tags"||zr==="multiple"&&hn===!1||Tn&&(qr||wi);N(function(){ui(ki.current.scrollWidth)},[zi]);function xi(ji,fa,va,ea,_i){return o.createElement("span",{className:p()("".concat(Bi,"-item"),(0,se.Z)({},"".concat(Bi,"-item-disabled"),va)),title:_(ji)},o.createElement("span",{className:"".concat(Bi,"-item-content")},fa),ea&&o.createElement(F,{className:"".concat(Bi,"-item-remove"),onMouseDown:pe,onClick:_i,customizeIcon:fi},"\xD7"))}function vn(ji,fa,va,ea,_i){var yi=function(ra){pe(ra),Qr(!qr)};return o.createElement("span",{onMouseDown:yi},Zr({label:fa,value:ji,disabled:va,closable:ea,onClose:_i}))}function Ht(ji){var fa=ji.disabled,va=ji.label,ea=ji.value,_i=!Hr&&!fa,yi=va;if(typeof hr=="number"&&(typeof va=="string"||typeof va=="number")){var Si=String(yi);Si.length>hr&&(yi="".concat(Si.slice(0,hr),"..."))}var ra=function(es){es&&es.stopPropagation(),on(ji)};return typeof Zr=="function"?vn(ea,yi,fa,_i,ra):xi(ji,yi,fa,_i,ra)}function Ln(ji){var fa=typeof Pr=="function"?Pr(ji):Pr;return xi({title:fa},fa,!1)}var Gn=o.createElement("div",{className:"".concat(Bi,"-search"),style:{width:gn},onFocus:function(){Pi(!0)},onBlur:function(){Pi(!1)}},o.createElement(ae,{ref:$n,open:qr,prefixCls:Dr,id:Ir,inputElement:null,disabled:Hr,autoFocus:Bn,autoComplete:Qn,editable:ca,activeDescendantId:Xn,value:zi,onKeyDown:qn,onMouseDown:oi,onChange:en,onPaste:jn,onCompositionStart:Qi,onCompositionEnd:Ri,tabIndex:Hi,attrs:(0,q.Z)(_t,!0)}),o.createElement("span",{ref:ki,className:"".concat(Bi,"-search-mirror"),"aria-hidden":!0},zi,"\xA0")),Ci=o.createElement(be.Z,{prefixCls:"".concat(Bi,"-overflow"),data:In,renderItem:Ht,renderRest:Ln,suffix:Gn,itemKey:X,maxCount:wn});return o.createElement(o.Fragment,null,Ci,!In.length&&!zi&&o.createElement("span",{className:"".concat(Bi,"-placeholder")},ri))},at=qe,rt=function(_t){var Ir=_t.inputElement,Dr=_t.prefixCls,In=_t.id,qr=_t.inputRef,Sn=_t.disabled,hn=_t.autoFocus,$n=_t.autoComplete,ri=_t.activeDescendantId,Hr=_t.mode,zr=_t.open,Tn=_t.values,Bn=_t.placeholder,Qn=_t.tabIndex,Xn=_t.showSearch,Hi=_t.searchValue,fi=_t.activeValue,wn=_t.maxLength,hr=_t.onInputKeyDown,yr=_t.onInputMouseDown,Pr=_t.onInputChange,Zr=_t.onInputPaste,Qr=_t.onInputCompositionStart,on=_t.onInputCompositionEnd,en=_t.title,jn=o.useState(!1),qn=(0,ie.Z)(jn,2),oi=qn[0],Qi=qn[1],Ri=Hr==="combobox",ki=Ri||Xn,Tr=Tn[0],_n=Hi||"";Ri&&fi&&!oi&&(_n=fi),o.useEffect(function(){Ri&&Qi(!1)},[Ri,fi]);var gn=Hr!=="combobox"&&!zr&&!Xn?!1:!!_n,ui=en===void 0?_(Tr):en,ii=function(){if(Tr)return null;var wi=gn?{visibility:"hidden"}:void 0;return o.createElement("span",{className:"".concat(Dr,"-selection-placeholder"),style:wi},Bn)};return o.createElement(o.Fragment,null,o.createElement("span",{className:"".concat(Dr,"-selection-search")},o.createElement(ae,{ref:qr,prefixCls:Dr,id:In,open:zr,inputElement:Ir,disabled:Sn,autoFocus:hn,autoComplete:$n,editable:ki,activeDescendantId:ri,value:_n,onKeyDown:hr,onMouseDown:yr,onChange:function(wi){Qi(!0),Pr(wi)},onPaste:Zr,onCompositionStart:Qr,onCompositionEnd:on,tabIndex:Qn,attrs:(0,q.Z)(_t,!0),maxLength:Ri?wn:void 0})),!Ri&&Tr?o.createElement("span",{className:"".concat(Dr,"-selection-item"),title:ui,style:gn?{visibility:"hidden"}:void 0},Tr.label):null,ii())},Rt=rt;function lr(Nt){return![m.Z.ESC,m.Z.SHIFT,m.Z.BACKSPACE,m.Z.TAB,m.Z.WIN_KEY,m.Z.ALT,m.Z.META,m.Z.WIN_KEY_RIGHT,m.Z.CTRL,m.Z.SEMICOLON,m.Z.EQUALS,m.Z.CAPS_LOCK,m.Z.CONTEXT_MENU,m.Z.F1,m.Z.F2,m.Z.F3,m.Z.F4,m.Z.F5,m.Z.F6,m.Z.F7,m.Z.F8,m.Z.F9,m.Z.F10,m.Z.F11,m.Z.F12].includes(Nt)}var qt=function(_t,Ir){var Dr=(0,o.useRef)(null),In=(0,o.useRef)(!1),qr=_t.prefixCls,Sn=_t.open,hn=_t.mode,$n=_t.showSearch,ri=_t.tokenWithEnter,Hr=_t.autoClearSearchValue,zr=_t.onSearch,Tn=_t.onSearchSubmit,Bn=_t.onToggleOpen,Qn=_t.onInputKeyDown,Xn=_t.domRef;o.useImperativeHandle(Ir,function(){return{focus:function(){Dr.current.focus()},blur:function(){Dr.current.blur()}}});var Hi=G(0),fi=(0,ie.Z)(Hi,2),wn=fi[0],hr=fi[1],yr=function(_n){var gn=_n.which;(gn===m.Z.UP||gn===m.Z.DOWN)&&_n.preventDefault(),Qn&&Qn(_n),gn===m.Z.ENTER&&hn==="tags"&&!In.current&&!Sn&&(Tn==null||Tn(_n.target.value)),lr(gn)&&Bn(!0)},Pr=function(){hr(!0)},Zr=(0,o.useRef)(null),Qr=function(_n){zr(_n,!0,In.current)!==!1&&Bn(!0)},on=function(){In.current=!0},en=function(_n){In.current=!1,hn!=="combobox"&&Qr(_n.target.value)},jn=function(_n){var gn=_n.target.value;if(ri&&Zr.current&&/[\r\n]/.test(Zr.current)){var ui=Zr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");gn=gn.replace(ui,Zr.current)}Zr.current=null,Qr(gn)},qn=function(_n){var gn=_n.clipboardData,ui=gn.getData("text");Zr.current=ui},oi=function(_n){var gn=_n.target;if(gn!==Dr.current){var ui=document.body.style.msTouchAction!==void 0;ui?setTimeout(function(){Dr.current.focus()}):Dr.current.focus()}},Qi=function(_n){var gn=wn();_n.target!==Dr.current&&!gn&&hn!=="combobox"&&_n.preventDefault(),(hn!=="combobox"&&(!$n||!gn)||!Sn)&&(Sn&&Hr!==!1&&zr("",!0,!1),Bn())},Ri={inputRef:Dr,onInputKeyDown:yr,onInputMouseDown:Pr,onInputChange:jn,onInputPaste:qn,onInputCompositionStart:on,onInputCompositionEnd:en},ki=hn==="multiple"||hn==="tags"?o.createElement(at,(0,we.Z)({},_t,Ri)):o.createElement(Rt,(0,we.Z)({},_t,Ri));return o.createElement("div",{ref:Xn,className:"".concat(qr,"-selector"),onClick:oi,onMouseDown:Qi},ki)},Ze=o.forwardRef(qt);Ze.displayName="Selector";var Er=Ze,Cr=g(35593),Kr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],_r=function(_t){var Ir=_t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ir,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ir,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ir,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ir,adjustY:1},htmlRegion:"scroll"}}},Me=function(_t,Ir){var Dr=_t.prefixCls,In=_t.disabled,qr=_t.visible,Sn=_t.children,hn=_t.popupElement,$n=_t.animation,ri=_t.transitionName,Hr=_t.dropdownStyle,zr=_t.dropdownClassName,Tn=_t.direction,Bn=Tn===void 0?"ltr":Tn,Qn=_t.placement,Xn=_t.builtinPlacements,Hi=_t.dropdownMatchSelectWidth,fi=_t.dropdownRender,wn=_t.dropdownAlign,hr=_t.getPopupContainer,yr=_t.empty,Pr=_t.getTriggerDOMNode,Zr=_t.onPopupVisibleChange,Qr=_t.onPopupMouseEnter,on=(0,Y.Z)(_t,Kr),en="".concat(Dr,"-dropdown"),jn=hn;fi&&(jn=fi(hn));var qn=o.useMemo(function(){return Xn||_r(Hi)},[Xn,Hi]),oi=$n?"".concat(en,"-").concat($n):ri,Qi=typeof Hi=="number",Ri=o.useMemo(function(){return Qi?null:Hi===!1?"minWidth":"width"},[Hi,Qi]),ki=Hr;Qi&&(ki=(0,ke.Z)((0,ke.Z)({},ki),{},{width:Hi}));var Tr=o.useRef(null);return o.useImperativeHandle(Ir,function(){return{getPopupElement:function(){return Tr.current}}}),o.createElement(Cr.Z,(0,we.Z)({},on,{showAction:Zr?["click"]:[],hideAction:Zr?["click"]:[],popupPlacement:Qn||(Bn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:qn,prefixCls:en,popupTransitionName:oi,popup:o.createElement("div",{ref:Tr,onMouseEnter:Qr},jn),stretch:Ri,popupAlign:wn,popupVisible:qr,getPopupContainer:hr,popupClassName:p()(zr,(0,se.Z)({},"".concat(en,"-empty"),yr)),popupStyle:ki,getTriggerDOMNode:Pr,onPopupVisibleChange:Zr}),Sn)},Tt=o.forwardRef(Me);Tt.displayName="SelectTrigger";var z=Tt,v=g(17953);function f(Nt,_t){var Ir=Nt.key,Dr;return"value"in Nt&&(Dr=Nt.value),Ir!=null?Ir:Dr!==void 0?Dr:"rc-index-key-".concat(_t)}function D(Nt,_t){var Ir=Nt||{},Dr=Ir.label,In=Ir.value,qr=Ir.options,Sn=Ir.groupLabel,hn=Dr||(_t?"children":"label");return{label:hn,value:In||"value",options:qr||"options",groupLabel:Sn||hn}}function de(Nt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ir=_t.fieldNames,Dr=_t.childrenAsData,In=[],qr=D(Ir,!1),Sn=qr.label,hn=qr.value,$n=qr.options,ri=qr.groupLabel;function Hr(zr,Tn){zr.forEach(function(Bn){if(Tn||!($n in Bn)){var Qn=Bn[hn];In.push({key:f(Bn,In.length),groupOption:Tn,data:Bn,label:Bn[Sn],value:Qn})}else{var Xn=Bn[ri];Xn===void 0&&Dr&&(Xn=Bn.label),In.push({key:f(Bn,In.length),group:!0,data:Bn,label:Xn}),Hr(Bn[$n],!0)}})}return Hr(Nt,!1),In}function W(Nt){var _t=(0,ke.Z)({},Nt);return"props"in _t||Object.defineProperty(_t,"props",{get:function(){return(0,n.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),_t}}),_t}function P(Nt,_t){if(!_t||!_t.length)return null;var Ir=!1;function Dr(qr,Sn){var hn=(0,v.Z)(Sn),$n=hn[0],ri=hn.slice(1);if(!$n)return[qr];var Hr=qr.split($n);return Ir=Ir||Hr.length>1,Hr.reduce(function(zr,Tn){return[].concat((0,Fe.Z)(zr),(0,Fe.Z)(Dr(Tn,ri)))},[]).filter(function(zr){return zr})}var In=Dr(Nt,_t);return Ir?In:null}var te=["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"],Ie=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Te(Nt){return Nt==="tags"||Nt==="multiple"}var Se=o.forwardRef(function(Nt,_t){var Ir,Dr,In=Nt.id,qr=Nt.prefixCls,Sn=Nt.className,hn=Nt.showSearch,$n=Nt.tagRender,ri=Nt.direction,Hr=Nt.omitDomProps,zr=Nt.displayValues,Tn=Nt.onDisplayValuesChange,Bn=Nt.emptyOptions,Qn=Nt.notFoundContent,Xn=Qn===void 0?"Not Found":Qn,Hi=Nt.onClear,fi=Nt.mode,wn=Nt.disabled,hr=Nt.loading,yr=Nt.getInputElement,Pr=Nt.getRawInputElement,Zr=Nt.open,Qr=Nt.defaultOpen,on=Nt.onDropdownVisibleChange,en=Nt.activeValue,jn=Nt.onActiveValueChange,qn=Nt.activeDescendantId,oi=Nt.searchValue,Qi=Nt.autoClearSearchValue,Ri=Nt.onSearch,ki=Nt.onSearchSplit,Tr=Nt.tokenSeparators,_n=Nt.allowClear,gn=Nt.suffixIcon,ui=Nt.clearIcon,ii=Nt.OptionList,ti=Nt.animation,wi=Nt.transitionName,Pi=Nt.dropdownStyle,Bi=Nt.dropdownClassName,zi=Nt.dropdownMatchSelectWidth,ca=Nt.dropdownRender,xi=Nt.dropdownAlign,vn=Nt.placement,Ht=Nt.builtinPlacements,Ln=Nt.getPopupContainer,Gn=Nt.showAction,Ci=Gn===void 0?[]:Gn,ji=Nt.onFocus,fa=Nt.onBlur,va=Nt.onKeyUp,ea=Nt.onKeyDown,_i=Nt.onMouseDown,yi=(0,Y.Z)(Nt,te),Si=Te(fi),ra=(hn!==void 0?hn:Si)||fi==="combobox",Aa=(0,ke.Z)({},yi);Ie.forEach(function(Na){delete Aa[Na]}),Hr==null||Hr.forEach(function(Na){delete Aa[Na]});var es=o.useState(!1),ps=(0,ie.Z)(es,2),hi=ps[0],Ca=ps[1];o.useEffect(function(){Ca((0,A.Z)())},[]);var ma=o.useRef(null),ka=o.useRef(null),Ps=o.useRef(null),is=o.useRef(null),Fa=o.useRef(null),Mi=B(),la=(0,ie.Z)(Mi,3),ms=la[0],as=la[1],ts=la[2];o.useImperativeHandle(_t,function(){var Na,ya;return{focus:(Na=is.current)===null||Na===void 0?void 0:Na.focus,blur:(ya=is.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(Va){var ns;return(ns=Fa.current)===null||ns===void 0?void 0:ns.scrollTo(Va)}}});var Wi=o.useMemo(function(){var Na;if(fi!=="combobox")return oi;var ya=(Na=zr[0])===null||Na===void 0?void 0:Na.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[oi,fi,zr]),gs=fi==="combobox"&&typeof yr=="function"&&yr()||null,aa=typeof Pr=="function"&&Pr(),co=(0,S.x1)(ka,aa==null||(Ir=aa.props)===null||Ir===void 0?void 0:Ir.ref),Qs=o.useState(!1),Co=(0,ie.Z)(Qs,2),fs=Co[0],_o=Co[1];(0,a.Z)(function(){_o(!0)},[]);var ss=(0,T.Z)(!1,{defaultValue:Qr,value:Zr}),Yn=(0,ie.Z)(ss,2),Da=Yn[0],io=Yn[1],Zi=fs?Da:!1,ta=!Xn&&Bn;(wn||ta&&Zi&&fi==="combobox")&&(Zi=!1);var $i=ta?!1:Zi,Ui=o.useCallback(function(Na){var ya=Na!==void 0?Na:!Zi;wn||(io(ya),Zi!==ya&&(on==null||on(ya)))},[wn,Zi,io,on]),wa=o.useMemo(function(){return(Tr||[]).some(function(Na){return[`
|
|
|
`,`\r
|
|
|
`].includes(Na)})},[Tr]),Pa=function(ya,to,Va){var ns=!0,js=ya;jn==null||jn(null);var Ea=Va?null:P(ya,Tr);return fi!=="combobox"&&Ea&&(js="",ki==null||ki(Ea),Ui(!1),ns=!1),Ri&&Wi!==js&&Ri(js,{source:to?"typing":"effect"}),ns},Ls=function(ya){!ya||!ya.trim()||Ri(ya,{source:"submit"})};o.useEffect(function(){!Zi&&!Si&&fi!=="combobox"&&Pa("",!1,!1)},[Zi]),o.useEffect(function(){Da&&wn&&io(!1),wn&&as(!1)},[wn]);var cs=G(),Es=(0,ie.Z)(cs,2),rs=Es[0],Bo=Es[1],go=function(ya){var to=rs(),Va=ya.which;if(Va===m.Z.ENTER&&(fi!=="combobox"&&ya.preventDefault(),Zi||Ui(!0)),Bo(!!Wi),Va===m.Z.BACKSPACE&&!to&&Si&&!Wi&&zr.length){for(var ns=(0,Fe.Z)(zr),js=null,Ea=ns.length-1;Ea>=0;Ea-=1){var Ys=ns[Ea];if(!Ys.disabled){ns.splice(Ea,1),js=Ys;break}}js&&Tn(ns,{type:"remove",values:[js]})}for(var ao=arguments.length,Po=new Array(ao>1?ao-1:0),Do=1;Do<ao;Do++)Po[Do-1]=arguments[Do];if(Zi&&Fa.current){var Ya;(Ya=Fa.current).onKeyDown.apply(Ya,[ya].concat(Po))}ea==null||ea.apply(void 0,[ya].concat(Po))},eo=function(ya){for(var to=arguments.length,Va=new Array(to>1?to-1:0),ns=1;ns<to;ns++)Va[ns-1]=arguments[ns];if(Zi&&Fa.current){var js;(js=Fa.current).onKeyUp.apply(js,[ya].concat(Va))}va==null||va.apply(void 0,[ya].concat(Va))},zs=function(ya){var to=zr.filter(function(Va){return Va!==ya});Tn(to,{type:"remove",values:[ya]})},Rs=o.useRef(!1),Oi=function(){as(!0),wn||(ji&&!Rs.current&&ji.apply(void 0,arguments),Ci.includes("focus")&&Ui(!0)),Rs.current=!0},Ai=function(){as(!1,function(){Rs.current=!1,Ui(!1)}),!wn&&(Wi&&(fi==="tags"?Ri(Wi,{source:"submit"}):fi==="multiple"&&Ri("",{source:"blur"})),fa&&fa.apply(void 0,arguments))},ua=[];o.useEffect(function(){return function(){ua.forEach(function(Na){return clearTimeout(Na)}),ua.splice(0,ua.length)}},[]);var vs=function(ya){var to,Va=ya.target,ns=(to=Ps.current)===null||to===void 0?void 0:to.getPopupElement();if(ns&&ns.contains(Va)){var js=setTimeout(function(){var Po=ua.indexOf(js);if(Po!==-1&&ua.splice(Po,1),ts(),!hi&&!ns.contains(document.activeElement)){var Do;(Do=is.current)===null||Do===void 0||Do.focus()}});ua.push(js)}for(var Ea=arguments.length,Ys=new Array(Ea>1?Ea-1:0),ao=1;ao<Ea;ao++)Ys[ao-1]=arguments[ao];_i==null||_i.apply(void 0,[ya].concat(Ys))},Ra=o.useState({}),Ns=(0,ie.Z)(Ra,2),Vs=Ns[1];function vo(){Vs({})}var Os;aa&&(Os=function(ya){Ui(ya)}),ce(function(){var Na;return[ma.current,(Na=Ps.current)===null||Na===void 0?void 0:Na.getPopupElement()]},$i,Ui,!!aa);var Di=o.useMemo(function(){return(0,ke.Z)((0,ke.Z)({},Nt),{},{notFoundContent:Xn,open:Zi,triggerOpen:$i,id:In,showSearch:ra,multiple:Si,toggleOpen:Ui})},[Nt,Xn,$i,Zi,In,ra,Si,Ui]),Dl=!!gn||hr,Js;Dl&&(Js=o.createElement(F,{className:p()("".concat(qr,"-arrow"),(0,se.Z)({},"".concat(qr,"-arrow-loading"),hr)),customizeIcon:gn,customizeIconProps:{loading:hr,searchValue:Wi,open:Zi,focused:ms,showSearch:ra}}));var nl=function(){var ya;Hi==null||Hi(),(ya=is.current)===null||ya===void 0||ya.focus(),Tn([],{type:"clear",values:zr}),Pa("",!1,!1)},Qo=H(qr,nl,zr,_n,ui,wn,Wi,fi),Ao=Qo.allowClear,_a=Qo.clearIcon,vl=o.createElement(ii,{ref:Fa}),yl=p()(qr,Sn,(Dr={},(0,se.Z)(Dr,"".concat(qr,"-focused"),ms),(0,se.Z)(Dr,"".concat(qr,"-multiple"),Si),(0,se.Z)(Dr,"".concat(qr,"-single"),!Si),(0,se.Z)(Dr,"".concat(qr,"-allow-clear"),_n),(0,se.Z)(Dr,"".concat(qr,"-show-arrow"),Dl),(0,se.Z)(Dr,"".concat(qr,"-disabled"),wn),(0,se.Z)(Dr,"".concat(qr,"-loading"),hr),(0,se.Z)(Dr,"".concat(qr,"-open"),Zi),(0,se.Z)(Dr,"".concat(qr,"-customize-input"),gs),(0,se.Z)(Dr,"".concat(qr,"-show-search"),ra),Dr)),fo=o.createElement(z,{ref:Ps,disabled:wn,prefixCls:qr,visible:$i,popupElement:vl,animation:ti,transitionName:wi,dropdownStyle:Pi,dropdownClassName:Bi,direction:ri,dropdownMatchSelectWidth:zi,dropdownRender:ca,dropdownAlign:xi,placement:vn,builtinPlacements:Ht,getPopupContainer:Ln,empty:Bn,getTriggerDOMNode:function(){return ka.current},onPopupVisibleChange:Os,onPopupMouseEnter:vo},aa?o.cloneElement(aa,{ref:co}):o.createElement(Er,(0,we.Z)({},Nt,{domRef:ka,prefixCls:qr,inputElement:gs,ref:is,id:In,showSearch:ra,autoClearSearchValue:Qi,mode:fi,activeDescendantId:qn,tagRender:$n,values:zr,open:Zi,onToggleOpen:Ui,activeValue:en,searchValue:Wi,onSearch:Pa,onSearchSubmit:Ls,onRemove:zs,tokenWithEnter:wa}))),So;return aa?So=fo:So=o.createElement("div",(0,we.Z)({className:yl},Aa,{ref:ma,onMouseDown:vs,onKeyDown:go,onKeyUp:eo,onFocus:Oi,onBlur:Ai}),ms&&!Zi&&o.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(zr.map(function(Na){var ya=Na.label,to=Na.value;return["number","string"].includes((0,O.Z)(ya))?ya:to}).join(", "))),fo,Js,Ao&&_a),o.createElement(V.Provider,{value:Di},So)}),Ge=Se,ft=function(Nt,_t){var Ir=o.useRef({values:new Map,options:new Map}),Dr=o.useMemo(function(){var qr=Ir.current,Sn=qr.values,hn=qr.options,$n=Nt.map(function(zr){if(zr.label===void 0){var Tn;return(0,ke.Z)((0,ke.Z)({},zr),{},{label:(Tn=Sn.get(zr.value))===null||Tn===void 0?void 0:Tn.label})}return zr}),ri=new Map,Hr=new Map;return $n.forEach(function(zr){ri.set(zr.value,zr),Hr.set(zr.value,_t.get(zr.value)||hn.get(zr.value))}),Ir.current.values=ri,Ir.current.options=Hr,$n},[Nt,_t]),In=o.useCallback(function(qr){return _t.get(qr)||Ir.current.options.get(qr)},[_t]);return[Dr,In]};function Ke(Nt,_t){return me(Nt).join("").toUpperCase().includes(_t)}var Xe=function(Nt,_t,Ir,Dr,In){return o.useMemo(function(){if(!Ir||Dr===!1)return Nt;var qr=_t.options,Sn=_t.label,hn=_t.value,$n=[],ri=typeof Dr=="function",Hr=Ir.toUpperCase(),zr=ri?Dr:function(Bn,Qn){return In?Ke(Qn[In],Hr):Qn[qr]?Ke(Qn[Sn!=="children"?Sn:"label"],Hr):Ke(Qn[hn],Hr)},Tn=ri?function(Bn){return W(Bn)}:function(Bn){return Bn};return Nt.forEach(function(Bn){if(Bn[qr]){var Qn=zr(Ir,Tn(Bn));if(Qn)$n.push(Bn);else{var Xn=Bn[qr].filter(function(Hi){return zr(Ir,Tn(Hi))});Xn.length&&$n.push((0,ke.Z)((0,ke.Z)({},Bn),{},(0,se.Z)({},qr,Xn)))}return}zr(Ir,Tn(Bn))&&$n.push(Bn)}),$n},[Nt,Dr,In,Ir,_t])},At=g(17115),We=g(38298),$e=["children","value"],Bt=["children"];function Kt(Nt){var _t=Nt,Ir=_t.key,Dr=_t.props,In=Dr.children,qr=Dr.value,Sn=(0,Y.Z)(Dr,$e);return(0,ke.Z)({key:Ir,value:qr!==void 0?qr:Ir,children:In},Sn)}function Mt(Nt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,We.Z)(Nt).map(function(Ir,Dr){if(!o.isValidElement(Ir)||!Ir.type)return null;var In=Ir,qr=In.type.isSelectOptGroup,Sn=In.key,hn=In.props,$n=hn.children,ri=(0,Y.Z)(hn,Bt);return _t||!qr?Kt(Ir):(0,ke.Z)((0,ke.Z)({key:"__RC_SELECT_GRP__".concat(Sn===null?Dr:Sn,"__"),label:Sn},ri),{},{options:Mt($n)})}).filter(function(Ir){return Ir})}function wr(Nt,_t,Ir,Dr,In){return o.useMemo(function(){var qr=Nt,Sn=!Nt;Sn&&(qr=Mt(_t));var hn=new Map,$n=new Map,ri=function(Tn,Bn,Qn){Qn&&typeof Qn=="string"&&Tn.set(Bn[Qn],Bn)};function Hr(zr){for(var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bn=0;Bn<zr.length;Bn+=1){var Qn=zr[Bn];!Qn[Ir.options]||Tn?(hn.set(Qn[Ir.value],Qn),ri($n,Qn,Ir.label),ri($n,Qn,Dr),ri($n,Qn,In)):Hr(Qn[Ir.options],!0)}}return Hr(qr),{options:qr,valueOptions:hn,labelOptions:$n}},[Nt,_t,Ir,Dr,In])}function vr(Nt){var _t=o.useRef();_t.current=Nt;var Ir=o.useCallback(function(){return _t.current.apply(_t,arguments)},[]);return Ir}var re=function(){return null};re.isSelectOptGroup=!0;var le=re,rr=function(){return null};rr.isSelectOption=!0;var Ue=rr,ot=g(79722),Yr=g(64002),St=g(21881),Vt=o.createContext(null),Zt=Vt;function nt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ct=["disabled","title","children","style","className"];function dt(Nt){return typeof Nt=="string"||typeof Nt=="number"}var Xt=function(_t,Ir){var Dr=ee(),In=Dr.prefixCls,qr=Dr.id,Sn=Dr.open,hn=Dr.multiple,$n=Dr.mode,ri=Dr.searchValue,Hr=Dr.toggleOpen,zr=Dr.notFoundContent,Tn=Dr.onPopupScroll,Bn=o.useContext(Zt),Qn=Bn.flattenOptions,Xn=Bn.onActiveValue,Hi=Bn.defaultActiveFirstOption,fi=Bn.onSelect,wn=Bn.menuItemSelectedIcon,hr=Bn.rawValues,yr=Bn.fieldNames,Pr=Bn.virtual,Zr=Bn.direction,Qr=Bn.listHeight,on=Bn.listItemHeight,en="".concat(In,"-item"),jn=(0,ot.Z)(function(){return Qn},[Sn,Qn],function(xi,vn){return vn[0]&&xi[1]!==vn[1]}),qn=o.useRef(null),oi=function(vn){vn.preventDefault()},Qi=function(vn){qn.current&&qn.current.scrollTo(typeof vn=="number"?{index:vn}:vn)},Ri=function(vn){for(var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ln=jn.length,Gn=0;Gn<Ln;Gn+=1){var Ci=(vn+Gn*Ht+Ln)%Ln,ji=jn[Ci],fa=ji.group,va=ji.data;if(!fa&&!va.disabled)return Ci}return-1},ki=o.useState(function(){return Ri(0)}),Tr=(0,ie.Z)(ki,2),_n=Tr[0],gn=Tr[1],ui=function(vn){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;gn(vn);var Ln={source:Ht?"keyboard":"mouse"},Gn=jn[vn];if(!Gn){Xn(null,-1,Ln);return}Xn(Gn.value,vn,Ln)};(0,o.useEffect)(function(){ui(Hi!==!1?Ri(0):-1)},[jn.length,ri]);var ii=o.useCallback(function(xi){return hr.has(xi)&&$n!=="combobox"},[$n,(0,Fe.Z)(hr).toString(),hr.size]);(0,o.useEffect)(function(){var xi=setTimeout(function(){if(!hn&&Sn&&hr.size===1){var Ht=Array.from(hr)[0],Ln=jn.findIndex(function(Gn){var Ci=Gn.data;return Ci.value===Ht});Ln!==-1&&(ui(Ln),Qi(Ln))}});if(Sn){var vn;(vn=qn.current)===null||vn===void 0||vn.scrollTo(void 0)}return function(){return clearTimeout(xi)}},[Sn,ri,Qn.length]);var ti=function(vn){vn!==void 0&&fi(vn,{selected:!hr.has(vn)}),hn||Hr(!1)};if(o.useImperativeHandle(Ir,function(){return{onKeyDown:function(vn){var Ht=vn.which,Ln=vn.ctrlKey;switch(Ht){case m.Z.N:case m.Z.P:case m.Z.UP:case m.Z.DOWN:{var Gn=0;if(Ht===m.Z.UP?Gn=-1:Ht===m.Z.DOWN?Gn=1:nt()&&Ln&&(Ht===m.Z.N?Gn=1:Ht===m.Z.P&&(Gn=-1)),Gn!==0){var Ci=Ri(_n+Gn,Gn);Qi(Ci),ui(Ci,!0)}break}case m.Z.ENTER:{var ji=jn[_n];ji&&!ji.data.disabled?ti(ji.value):ti(void 0),Sn&&vn.preventDefault();break}case m.Z.ESC:Hr(!1),Sn&&vn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vn){Qi(vn)}}}),jn.length===0)return o.createElement("div",{role:"listbox",id:"".concat(qr,"_list"),className:"".concat(en,"-empty"),onMouseDown:oi},zr);var wi=Object.keys(yr).map(function(xi){return yr[xi]}),Pi=function(vn){return vn.label};function Bi(xi,vn){var Ht=xi.group;return{role:Ht?"presentation":"option",id:"".concat(qr,"_list_").concat(vn)}}var zi=function(vn){var Ht=jn[vn];if(!Ht)return null;var Ln=Ht.data||{},Gn=Ln.value,Ci=Ht.group,ji=(0,q.Z)(Ln,!0),fa=Pi(Ht);return Ht?o.createElement("div",(0,we.Z)({"aria-label":typeof fa=="string"&&!Ci?fa:null},ji,{key:vn},Bi(Ht,vn),{"aria-selected":ii(Gn)}),Gn):null},ca={role:"listbox",id:"".concat(qr,"_list")};return o.createElement(o.Fragment,null,Pr&&o.createElement("div",(0,we.Z)({},ca,{style:{height:0,width:0,overflow:"hidden"}}),zi(_n-1),zi(_n),zi(_n+1)),o.createElement(St.Z,{itemKey:"key",ref:qn,data:jn,height:Qr,itemHeight:on,fullHeight:!1,onMouseDown:oi,onScroll:Tn,virtual:Pr,direction:Zr,innerProps:Pr?null:ca},function(xi,vn){var Ht,Ln=xi.group,Gn=xi.groupOption,Ci=xi.data,ji=xi.label,fa=xi.value,va=Ci.key;if(Ln){var ea,_i=(ea=Ci.title)!==null&&ea!==void 0?ea:dt(ji)?ji.toString():void 0;return o.createElement("div",{className:p()(en,"".concat(en,"-group")),title:_i},ji!==void 0?ji:va)}var yi=Ci.disabled,Si=Ci.title,ra=Ci.children,Aa=Ci.style,es=Ci.className,ps=(0,Y.Z)(Ci,ct),hi=(0,Yr.Z)(ps,wi),Ca=ii(fa),ma="".concat(en,"-option"),ka=p()(en,ma,es,(Ht={},(0,se.Z)(Ht,"".concat(ma,"-grouped"),Gn),(0,se.Z)(Ht,"".concat(ma,"-active"),_n===vn&&!yi),(0,se.Z)(Ht,"".concat(ma,"-disabled"),yi),(0,se.Z)(Ht,"".concat(ma,"-selected"),Ca),Ht)),Ps=Pi(xi),is=!wn||typeof wn=="function"||Ca,Fa=typeof Ps=="number"?Ps:Ps||fa,Mi=dt(Fa)?Fa.toString():void 0;return Si!==void 0&&(Mi=Si),o.createElement("div",(0,we.Z)({},(0,q.Z)(hi),Pr?{}:Bi(xi,vn),{"aria-selected":Ca,className:ka,title:Mi,onMouseMove:function(){_n===vn||yi||ui(vn)},onClick:function(){yi||ti(fa)},style:Aa}),o.createElement("div",{className:"".concat(ma,"-content")},Fa),o.isValidElement(wn)||Ca,is&&o.createElement(F,{className:"".concat(en,"-option-state"),customizeIcon:wn,customizeIconProps:{isSelected:Ca}},Ca?"\u2713":null))}))},Re=o.forwardRef(Xt);Re.displayName="OptionList";var fn=Re;function kt(Nt){var _t=Nt.mode,Ir=Nt.options,Dr=Nt.children,In=Nt.backfill,qr=Nt.allowClear,Sn=Nt.placeholder,hn=Nt.getInputElement,$n=Nt.showSearch,ri=Nt.onSearch,Hr=Nt.defaultOpen,zr=Nt.autoFocus,Tn=Nt.labelInValue,Bn=Nt.value,Qn=Nt.inputValue,Xn=Nt.optionLabelProp,Hi=isMultiple(_t),fi=$n!==void 0?$n:Hi||_t==="combobox",wn=Ir||convertChildrenToData(Dr);if(warning(_t!=="tags"||wn.every(function(Zr){return!Zr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_t==="tags"||_t==="combobox"){var hr=wn.some(function(Zr){return Zr.options?Zr.options.some(function(Qr){return typeof("value"in Qr?Qr.value:Qr.key)=="number"}):typeof("value"in Zr?Zr.value:Zr.key)=="number"});warning(!hr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(_t!=="combobox"||!Xn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(_t==="combobox"||!In,"`backfill` only works with `combobox` mode."),warning(_t==="combobox"||!hn,"`getInputElement` only work with `combobox` mode."),noteOnce(_t!=="combobox"||!hn||!qr||!Sn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ri&&!fi&&_t!=="combobox"&&_t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Hr||zr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Bn!=null){var yr=toArray(Bn);warning(!Tn||yr.every(function(Zr){return _typeof(Zr)==="object"&&("key"in Zr||"value"in Zr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Hi||Array.isArray(Bn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Dr){var Pr=null;toNodeArray(Dr).some(function(Zr){if(!React.isValidElement(Zr)||!Zr.type)return!1;var Qr=Zr,on=Qr.type;if(on.isSelectOption)return!1;if(on.isSelectOptGroup){var en=toNodeArray(Zr.props.children).every(function(jn){return!React.isValidElement(jn)||!Zr.type||jn.type.isSelectOption?!0:(Pr=jn.type,!1)});return!en}return Pr=on,!0}),Pr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Pr.displayName||Pr.name||Pr,"`.")),warning(Qn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Nn(Nt,_t){if(Nt){var Ir=function Dr(In){for(var qr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Sn=0;Sn<In.length;Sn++){var hn=In[Sn];if(hn[_t==null?void 0:_t.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!qr&&Array.isArray(hn[_t==null?void 0:_t.options])&&Dr(hn[_t==null?void 0:_t.options],!0))break}};Ir(Nt)}}var Jn=null,vi=["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"],Fi=["inputValue"];function Mn(Nt){return!Nt||(0,O.Z)(Nt)!=="object"}var Hn=o.forwardRef(function(Nt,_t){var Ir=Nt.id,Dr=Nt.mode,In=Nt.prefixCls,qr=In===void 0?"rc-select":In,Sn=Nt.backfill,hn=Nt.fieldNames,$n=Nt.inputValue,ri=Nt.searchValue,Hr=Nt.onSearch,zr=Nt.autoClearSearchValue,Tn=zr===void 0?!0:zr,Bn=Nt.onSelect,Qn=Nt.onDeselect,Xn=Nt.dropdownMatchSelectWidth,Hi=Xn===void 0?!0:Xn,fi=Nt.filterOption,wn=Nt.filterSort,hr=Nt.optionFilterProp,yr=Nt.optionLabelProp,Pr=Nt.options,Zr=Nt.children,Qr=Nt.defaultActiveFirstOption,on=Nt.menuItemSelectedIcon,en=Nt.virtual,jn=Nt.direction,qn=Nt.listHeight,oi=qn===void 0?200:qn,Qi=Nt.listItemHeight,Ri=Qi===void 0?20:Qi,ki=Nt.value,Tr=Nt.defaultValue,_n=Nt.labelInValue,gn=Nt.onChange,ui=(0,Y.Z)(Nt,vi),ii=(0,At.ZP)(Ir),ti=Te(Dr),wi=!!(!Pr&&Zr),Pi=o.useMemo(function(){return fi===void 0&&Dr==="combobox"?!1:fi},[fi,Dr]),Bi=o.useMemo(function(){return D(hn,wi)},[JSON.stringify(hn),wi]),zi=(0,T.Z)("",{value:ri!==void 0?ri:$n,postState:function(ta){return ta||""}}),ca=(0,ie.Z)(zi,2),xi=ca[0],vn=ca[1],Ht=wr(Pr,Zr,Bi,hr,yr),Ln=Ht.valueOptions,Gn=Ht.labelOptions,Ci=Ht.options,ji=o.useCallback(function(Zi){var ta=me(Zi);return ta.map(function($i){var Ui,wa,Pa,Ls,cs;if(Mn($i))Ui=$i;else{var Es;Pa=$i.key,wa=$i.label,Ui=(Es=$i.value)!==null&&Es!==void 0?Es:Pa}var rs=Ln.get(Ui);if(rs){var Bo;if(wa===void 0&&(wa=rs==null?void 0:rs[yr||Bi.label]),Pa===void 0&&(Pa=(Bo=rs==null?void 0:rs.key)!==null&&Bo!==void 0?Bo:Ui),Ls=rs==null?void 0:rs.disabled,cs=rs==null?void 0:rs.title,0)var go}return{label:wa,value:Ui,key:Pa,disabled:Ls,title:cs}})},[Bi,yr,Ln]),fa=(0,T.Z)(Tr,{value:ki}),va=(0,ie.Z)(fa,2),ea=va[0],_i=va[1],yi=o.useMemo(function(){var Zi,ta=ji(ea);return Dr==="combobox"&&he((Zi=ta[0])===null||Zi===void 0?void 0:Zi.value)?[]:ta},[ea,ji,Dr]),Si=ft(yi,Ln),ra=(0,ie.Z)(Si,2),Aa=ra[0],es=ra[1],ps=o.useMemo(function(){if(!Dr&&Aa.length===1){var Zi=Aa[0];if(Zi.value===null&&(Zi.label===null||Zi.label===void 0))return[]}return Aa.map(function(ta){var $i;return(0,ke.Z)((0,ke.Z)({},ta),{},{label:($i=ta.label)!==null&&$i!==void 0?$i:ta.value})})},[Dr,Aa]),hi=o.useMemo(function(){return new Set(Aa.map(function(Zi){return Zi.value}))},[Aa]);o.useEffect(function(){if(Dr==="combobox"){var Zi,ta=(Zi=Aa[0])===null||Zi===void 0?void 0:Zi.value;vn(oe(ta)?String(ta):"")}},[Aa]);var Ca=vr(function(Zi,ta){var $i,Ui=ta!=null?ta:Zi;return $i={},(0,se.Z)($i,Bi.value,Zi),(0,se.Z)($i,Bi.label,Ui),$i}),ma=o.useMemo(function(){if(Dr!=="tags")return Ci;var Zi=(0,Fe.Z)(Ci),ta=function(Ui){return Ln.has(Ui)};return(0,Fe.Z)(Aa).sort(function($i,Ui){return $i.value<Ui.value?-1:1}).forEach(function($i){var Ui=$i.value;ta(Ui)||Zi.push(Ca(Ui,$i.label))}),Zi},[Ca,Ci,Ln,Aa,Dr]),ka=Xe(ma,Bi,xi,Pi,hr),Ps=o.useMemo(function(){return Dr!=="tags"||!xi||ka.some(function(Zi){return Zi[hr||"value"]===xi})||ka.some(function(Zi){return Zi[Bi.value]===xi})?ka:[Ca(xi)].concat((0,Fe.Z)(ka))},[Ca,hr,Dr,ka,xi,Bi]),is=o.useMemo(function(){return wn?(0,Fe.Z)(Ps).sort(function(Zi,ta){return wn(Zi,ta)}):Ps},[Ps,wn]),Fa=o.useMemo(function(){return de(is,{fieldNames:Bi,childrenAsData:wi})},[is,Bi,wi]),Mi=function(ta){var $i=ji(ta);if(_i($i),gn&&($i.length!==Aa.length||$i.some(function(Pa,Ls){var cs;return((cs=Aa[Ls])===null||cs===void 0?void 0:cs.value)!==(Pa==null?void 0:Pa.value)}))){var Ui=_n?$i:$i.map(function(Pa){return Pa.value}),wa=$i.map(function(Pa){return W(es(Pa.value))});gn(ti?Ui:Ui[0],ti?wa:wa[0])}},la=o.useState(null),ms=(0,ie.Z)(la,2),as=ms[0],ts=ms[1],Wi=o.useState(0),gs=(0,ie.Z)(Wi,2),aa=gs[0],co=gs[1],Qs=Qr!==void 0?Qr:Dr!=="combobox",Co=o.useCallback(function(Zi,ta){var $i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ui=$i.source,wa=Ui===void 0?"keyboard":Ui;co(ta),Sn&&Dr==="combobox"&&Zi!==null&&wa==="keyboard"&&ts(String(Zi))},[Sn,Dr]),fs=function(ta,$i,Ui){var wa=function(){var Rs,Oi=es(ta);return[_n?{label:Oi==null?void 0:Oi[Bi.label],value:ta,key:(Rs=Oi==null?void 0:Oi.key)!==null&&Rs!==void 0?Rs:ta}:ta,W(Oi)]};if($i&&Bn){var Pa=wa(),Ls=(0,ie.Z)(Pa,2),cs=Ls[0],Es=Ls[1];Bn(cs,Es)}else if(!$i&&Qn&&Ui!=="clear"){var rs=wa(),Bo=(0,ie.Z)(rs,2),go=Bo[0],eo=Bo[1];Qn(go,eo)}},_o=vr(function(Zi,ta){var $i,Ui=ti?ta.selected:!0;Ui?$i=ti?[].concat((0,Fe.Z)(Aa),[Zi]):[Zi]:$i=Aa.filter(function(wa){return wa.value!==Zi}),Mi($i),fs(Zi,Ui),Dr==="combobox"?ts(""):(!Te||Tn)&&(vn(""),ts(""))}),ss=function(ta,$i){Mi(ta);var Ui=$i.type,wa=$i.values;(Ui==="remove"||Ui==="clear")&&wa.forEach(function(Pa){fs(Pa.value,!1,Ui)})},Yn=function(ta,$i){if(vn(ta),ts(null),$i.source==="submit"){var Ui=(ta||"").trim();if(Ui){var wa=Array.from(new Set([].concat((0,Fe.Z)(hi),[Ui])));Mi(wa),fs(Ui,!0),vn("")}return}$i.source!=="blur"&&(Dr==="combobox"&&Mi(ta),Hr==null||Hr(ta))},Da=function(ta){var $i=ta;Dr!=="tags"&&($i=ta.map(function(wa){var Pa=Gn.get(wa);return Pa==null?void 0:Pa.value}).filter(function(wa){return wa!==void 0}));var Ui=Array.from(new Set([].concat((0,Fe.Z)(hi),(0,Fe.Z)($i))));Mi(Ui),Ui.forEach(function(wa){fs(wa,!0)})},io=o.useMemo(function(){var Zi=en!==!1&&Hi!==!1;return(0,ke.Z)((0,ke.Z)({},Ht),{},{flattenOptions:Fa,onActiveValue:Co,defaultActiveFirstOption:Qs,onSelect:_o,menuItemSelectedIcon:on,rawValues:hi,fieldNames:Bi,virtual:Zi,direction:jn,listHeight:oi,listItemHeight:Ri,childrenAsData:wi})},[Ht,Fa,Co,Qs,_o,on,hi,Bi,en,Hi,oi,Ri,wi]);return o.createElement(Zt.Provider,{value:io},o.createElement(Ge,(0,we.Z)({},ui,{id:ii,prefixCls:qr,ref:_t,omitDomProps:Fi,mode:Dr,displayValues:ps,onDisplayValuesChange:ss,direction:jn,searchValue:xi,onSearch:Yn,autoClearSearchValue:Tn,onSearchSplit:Da,dropdownMatchSelectWidth:Hi,OptionList:fn,emptyOptions:!Fa.length,activeValue:as,activeDescendantId:"".concat(ii,"_list_").concat(aa)})))}),Yt=Hn;Yt.Option=Ue,Yt.OptGroup=le;var kr=Yt,tn=kr},9296:function(yn,Gt,g){"use strict";g.r(Gt),g.d(Gt,{ResizableTextArea:function(){return Le},default:function(){return he}});var we=g(5891),Fe=g(57259),se=g(80962),ke=g(80665),ie=g(29043),Y=g(19149),O=g(26390),T=g(92310),n=g.n(T),o=g(93681),L=g(5643),p=g(35788),a=g(59301),A=g(29301),m=g(28800),S=g(23073),K=`
|
|
|
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;
|
|
|
`,F=["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"],H={},V;function ee(ve){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=ve.getAttribute("id")||ve.getAttribute("data-reactid")||ve.getAttribute("name");if(_&&H[N])return H[N];var X=window.getComputedStyle(ve),pe=X.getPropertyValue("box-sizing")||X.getPropertyValue("-moz-box-sizing")||X.getPropertyValue("-webkit-box-sizing"),qe=parseFloat(X.getPropertyValue("padding-bottom"))+parseFloat(X.getPropertyValue("padding-top")),at=parseFloat(X.getPropertyValue("border-bottom-width"))+parseFloat(X.getPropertyValue("border-top-width")),rt=F.map(function(lr){return"".concat(lr,":").concat(X.getPropertyValue(lr))}).join(";"),Rt={sizingStyle:rt,paddingSize:qe,borderSize:at,boxSizing:pe};return _&&N&&(H[N]=Rt),Rt}function B(ve){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;V||(V=document.createElement("textarea"),V.setAttribute("tab-index","-1"),V.setAttribute("aria-hidden","true"),document.body.appendChild(V)),ve.getAttribute("wrap")?V.setAttribute("wrap",ve.getAttribute("wrap")):V.removeAttribute("wrap");var pe=ee(ve,_),qe=pe.paddingSize,at=pe.borderSize,rt=pe.boxSizing,Rt=pe.sizingStyle;V.setAttribute("style","".concat(Rt,";").concat(K)),V.value=ve.value||ve.placeholder||"";var lr=void 0,qt=void 0,Ze,Er=V.scrollHeight;if(rt==="border-box"?Er+=at:rt==="content-box"&&(Er-=qe),N!==null||X!==null){V.value=" ";var Cr=V.scrollHeight-qe;N!==null&&(lr=Cr*N,rt==="border-box"&&(lr=lr+qe+at),Er=Math.max(lr,Er)),X!==null&&(qt=Cr*X,rt==="border-box"&&(qt=qt+qe+at),Ze=Er>qt?"":"hidden",Er=Math.min(qt,Er))}var Kr={height:Er,overflowY:Ze,resize:"none"};return lr&&(Kr.minHeight=lr),qt&&(Kr.maxHeight=qt),Kr}var G=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ce=0,q=1,be=2,xe=a.forwardRef(function(ve,_){var N=ve,X=N.prefixCls,pe=N.onPressEnter,qe=N.defaultValue,at=N.value,rt=N.autoSize,Rt=N.onResize,lr=N.className,qt=N.style,Ze=N.disabled,Er=N.onChange,Cr=N.onInternalAutoSize,Kr=(0,Y.Z)(N,G),_r=(0,p.Z)(qe,{value:at,postState:function(le){return le!=null?le:""}}),Me=(0,ie.Z)(_r,2),Tt=Me[0],z=Me[1],v=function(le){z(le.target.value),Er==null||Er(le)},f=a.useRef();a.useImperativeHandle(_,function(){return{textArea:f.current}});var D=a.useMemo(function(){return rt&&(0,ke.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),de=(0,ie.Z)(D,2),W=de[0],P=de[1],te=!!rt,Ie=function(){try{if(document.activeElement===f.current){var le=f.current,rr=le.selectionStart,Ue=le.selectionEnd,ot=le.scrollTop;f.current.setSelectionRange(rr,Ue),f.current.scrollTop=ot}}catch(Yr){}},Te=a.useState(be),Se=(0,ie.Z)(Te,2),Ge=Se[0],ft=Se[1],Ke=a.useState(),Xe=(0,ie.Z)(Ke,2),At=Xe[0],We=Xe[1],$e=function(){ft(ce)};(0,m.Z)(function(){te&&$e()},[at,W,P,te]),(0,m.Z)(function(){if(Ge===ce)ft(q);else if(Ge===q){var re=B(f.current,!1,W,P);ft(be),We(re)}else Ie()},[Ge]);var Bt=a.useRef(),Kt=function(){S.Z.cancel(Bt.current)},Mt=function(le){Ge===be&&(Rt==null||Rt(le),rt&&(Kt(),Bt.current=(0,S.Z)(function(){$e()})))};a.useEffect(function(){return Kt},[]);var wr=te?At:null,vr=(0,Fe.Z)((0,Fe.Z)({},qt),wr);return(Ge===ce||Ge===q)&&(vr.overflowY="hidden",vr.overflowX="hidden"),a.createElement(A.Z,{onResize:Mt,disabled:!(rt||Rt)},a.createElement("textarea",(0,we.Z)({},Kr,{ref:f,style:vr,className:n()(X,lr,(0,se.Z)({},"".concat(X,"-disabled"),Ze)),disabled:Ze,value:Tt,onChange:v})))}),Le=xe,ae=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function me(ve,_){return(0,O.Z)(ve||"").slice(0,_).join("")}function I(ve,_,N,X){var pe=N;return ve?pe=me(N,X):(0,O.Z)(_||"").length<N.length&&(0,O.Z)(N||"").length>X&&(pe=_),pe}var _e=a.forwardRef(function(ve,_){var N,X=ve.defaultValue,pe=ve.value,qe=ve.onFocus,at=ve.onBlur,rt=ve.onChange,Rt=ve.allowClear,lr=ve.maxLength,qt=ve.onCompositionStart,Ze=ve.onCompositionEnd,Er=ve.suffix,Cr=ve.prefixCls,Kr=Cr===void 0?"rc-textarea":Cr,_r=ve.classes,Me=ve.showCount,Tt=ve.className,z=ve.style,v=ve.disabled,f=ve.hidden,D=ve.classNames,de=ve.styles,W=ve.onResize,P=(0,Y.Z)(ve,ae),te=(0,p.Z)(X,{value:pe,defaultValue:X}),Ie=(0,ie.Z)(te,2),Te=Ie[0],Se=Ie[1],Ge=(0,a.useRef)(null),ft=a.useState(!1),Ke=(0,ie.Z)(ft,2),Xe=Ke[0],At=Ke[1],We=a.useState(!1),$e=(0,ie.Z)(We,2),Bt=$e[0],Kt=$e[1],Mt=a.useRef(),wr=a.useRef(0),vr=a.useState(null),re=(0,ie.Z)(vr,2),le=re[0],rr=re[1],Ue=function(){var Mn;(Mn=Ge.current)===null||Mn===void 0||Mn.textArea.focus()};(0,a.useImperativeHandle)(_,function(){return{resizableTextArea:Ge.current,focus:Ue,blur:function(){var Mn;(Mn=Ge.current)===null||Mn===void 0||Mn.textArea.blur()}}}),(0,a.useEffect)(function(){At(function(Fi){return!v&&Fi})},[v]);var ot=Number(lr)>0,Yr=function(Mn){Kt(!0),Mt.current=Te,wr.current=Mn.currentTarget.selectionStart,qt==null||qt(Mn)},St=function(Mn){Kt(!1);var Hn=Mn.currentTarget.value;if(ot){var Yt,kr=wr.current>=lr+1||wr.current===((Yt=Mt.current)===null||Yt===void 0?void 0:Yt.length);Hn=I(kr,Mt.current,Hn,lr)}Hn!==Te&&(Se(Hn),(0,L.rJ)(Mn.currentTarget,Mn,rt,Hn)),Ze==null||Ze(Mn)},Vt=function(Mn){var Hn=Mn.target.value;if(!Bt&&ot){var Yt=Mn.target.selectionStart>=lr+1||Mn.target.selectionStart===Hn.length||!Mn.target.selectionStart;Hn=I(Yt,Te,Hn,lr)}Se(Hn),(0,L.rJ)(Mn.currentTarget,Mn,rt,Hn)},Zt=function(Mn){var Hn=P.onPressEnter,Yt=P.onKeyDown;Mn.key==="Enter"&&Hn&&Hn(Mn),Yt==null||Yt(Mn)},nt=function(Mn){At(!0),qe==null||qe(Mn)},ct=function(Mn){At(!1),at==null||at(Mn)},dt=function(Mn){var Hn;Se(""),Ue(),(0,L.rJ)((Hn=Ge.current)===null||Hn===void 0?void 0:Hn.textArea,Mn,rt)},Xt=(0,L.D7)(Te);!Bt&&ot&&pe==null&&(Xt=me(Xt,lr));var Re=Er,fn;if(Me){var kt=(0,O.Z)(Xt).length;(0,ke.Z)(Me)==="object"?fn=Me.formatter({value:Xt,count:kt,maxLength:lr}):fn="".concat(kt).concat(ot?" / ".concat(lr):""),Re=a.createElement(a.Fragment,null,Re,a.createElement("span",{className:n()("".concat(Kr,"-data-count"),D==null?void 0:D.count),style:de==null?void 0:de.count},fn))}var Nn=function(Mn){var Hn;W==null||W(Mn),(Hn=Ge.current)!==null&&Hn!==void 0&&Hn.textArea.style.height&&rr(!0)},Jn=!P.autoSize&&!Me&&!Rt,vi=a.createElement(o.BaseInput,{value:Xt,allowClear:Rt,handleReset:dt,suffix:Re,prefixCls:Kr,classes:{affixWrapper:n()(_r==null?void 0:_r.affixWrapper,(N={},(0,se.Z)(N,"".concat(Kr,"-show-count"),Me),(0,se.Z)(N,"".concat(Kr,"-textarea-allow-clear"),Rt),N))},disabled:v,focused:Xe,className:Tt,style:(0,Fe.Z)((0,Fe.Z)({},z),le&&!Jn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof fn=="string"?fn:void 0}},hidden:f,inputElement:a.createElement(Le,(0,we.Z)({},P,{onKeyDown:Zt,onChange:Vt,onFocus:nt,onBlur:ct,onCompositionStart:Yr,onCompositionEnd:St,className:D==null?void 0:D.textarea,style:(0,Fe.Z)((0,Fe.Z)({},de==null?void 0:de.textarea),{},{resize:z==null?void 0:z.resize}),disabled:v,prefixCls:Kr,onResize:Nn,ref:Ge}))});return vi}),oe=_e,he=oe},55477:function(yn,Gt,g){"use strict";g.d(Gt,{G:function(){return a},Z:function(){return K}});var we=g(5891),Fe=g(57259),se=g(19149),ke=g(35593),ie=g(59301),Y={shiftX:64,adjustY:1},O={adjustX:1,shiftY:!0},T=[0,0],n={left:{points:["cr","cl"],overflow:O,offset:[-4,0],targetOffset:T},right:{points:["cl","cr"],overflow:O,offset:[4,0],targetOffset:T},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:T},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:T},topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:T},leftTop:{points:["tr","tl"],overflow:O,offset:[-4,0],targetOffset:T},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:T},rightTop:{points:["tl","tr"],overflow:O,offset:[4,0],targetOffset:T},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:T},rightBottom:{points:["bl","br"],overflow:O,offset:[4,0],targetOffset:T},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:T},leftBottom:{points:["br","bl"],overflow:O,offset:[-4,0],targetOffset:T}},o=null,L=g(92310),p=g.n(L);function a(F){var H=F.children,V=F.prefixCls,ee=F.id,B=F.overlayInnerStyle,G=F.className,ce=F.style;return ie.createElement("div",{className:p()("".concat(V,"-content"),G),style:ce},ie.createElement("div",{className:"".concat(V,"-inner"),id:ee,role:"tooltip",style:B},typeof H=="function"?H():H))}var A=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],m=function(H,V){var ee=H.overlayClassName,B=H.trigger,G=B===void 0?["hover"]:B,ce=H.mouseEnterDelay,q=ce===void 0?0:ce,be=H.mouseLeaveDelay,xe=be===void 0?.1:be,Le=H.overlayStyle,ae=H.prefixCls,me=ae===void 0?"rc-tooltip":ae,I=H.children,_e=H.onVisibleChange,oe=H.afterVisibleChange,he=H.transitionName,ve=H.animation,_=H.motion,N=H.placement,X=N===void 0?"right":N,pe=H.align,qe=pe===void 0?{}:pe,at=H.destroyTooltipOnHide,rt=at===void 0?!1:at,Rt=H.defaultVisible,lr=H.getTooltipContainer,qt=H.overlayInnerStyle,Ze=H.arrowContent,Er=H.overlay,Cr=H.id,Kr=H.showArrow,_r=Kr===void 0?!0:Kr,Me=(0,se.Z)(H,A),Tt=(0,ie.useRef)(null);(0,ie.useImperativeHandle)(V,function(){return Tt.current});var z=(0,Fe.Z)({},Me);"visible"in H&&(z.popupVisible=H.visible);var v=function(){return ie.createElement(a,{key:"content",prefixCls:me,id:Cr,overlayInnerStyle:qt},Er)};return ie.createElement(ke.Z,(0,we.Z)({popupClassName:ee,prefixCls:me,popup:v,action:G,builtinPlacements:n,popupPlacement:X,ref:Tt,popupAlign:qe,getPopupContainer:lr,onPopupVisibleChange:_e,afterPopupVisibleChange:oe,popupTransitionName:he,popupAnimation:ve,popupMotion:_,defaultPopupVisible:Rt,autoDestroy:rt,mouseLeaveDelay:xe,popupStyle:Le,mouseEnterDelay:q,arrow:_r},z),I)},S=(0,ie.forwardRef)(m),K=S},39417:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return q}});var we=g(5891),Fe=g(80962),se=g(19149),ke=g(57259),ie=g(79545),Y=g(68550),O=g(21882),T=g(17928),n=g(7711),o=g(92310),L=g.n(o),p=g(36994),a=g(59301),A=g(39378),m=function(xe){for(var Le=xe.prefixCls,ae=xe.level,me=xe.isStart,I=xe.isEnd,_e="".concat(Le,"-indent-unit"),oe=[],he=0;he<ae;he+=1){var ve;oe.push(a.createElement("span",{key:he,className:L()(_e,(ve={},(0,Fe.Z)(ve,"".concat(_e,"-start"),me[he]),(0,Fe.Z)(ve,"".concat(_e,"-end"),I[he]),ve))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(Le,"-indent")},oe)},S=a.memo(m),K=g(67841),F=g(71430),H=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],V="open",ee="close",B="---",G=function(be){(0,T.Z)(Le,be);var xe=(0,n.Z)(Le);function Le(){var ae;(0,ie.Z)(this,Le);for(var me=arguments.length,I=new Array(me),_e=0;_e<me;_e++)I[_e]=arguments[_e];return ae=xe.call.apply(xe,[this].concat(I)),ae.state={dragNodeHighlight:!1},ae.selectHandle=void 0,ae.cacheIndent=void 0,ae.onSelectorClick=function(oe){var he=ae.props.context.onNodeClick;he(oe,(0,F.F)(ae.props)),ae.isSelectable()?ae.onSelect(oe):ae.onCheck(oe)},ae.onSelectorDoubleClick=function(oe){var he=ae.props.context.onNodeDoubleClick;he(oe,(0,F.F)(ae.props))},ae.onSelect=function(oe){if(!ae.isDisabled()){var he=ae.props.context.onNodeSelect;he(oe,(0,F.F)(ae.props))}},ae.onCheck=function(oe){if(!ae.isDisabled()){var he=ae.props,ve=he.disableCheckbox,_=he.checked,N=ae.props.context.onNodeCheck;if(!(!ae.isCheckable()||ve)){var X=!_;N(oe,(0,F.F)(ae.props),X)}}},ae.onMouseEnter=function(oe){var he=ae.props.context.onNodeMouseEnter;he(oe,(0,F.F)(ae.props))},ae.onMouseLeave=function(oe){var he=ae.props.context.onNodeMouseLeave;he(oe,(0,F.F)(ae.props))},ae.onContextMenu=function(oe){var he=ae.props.context.onNodeContextMenu;he(oe,(0,F.F)(ae.props))},ae.onDragStart=function(oe){var he=ae.props.context.onNodeDragStart;oe.stopPropagation(),ae.setState({dragNodeHighlight:!0}),he(oe,(0,O.Z)(ae));try{oe.dataTransfer.setData("text/plain","")}catch(ve){}},ae.onDragEnter=function(oe){var he=ae.props.context.onNodeDragEnter;oe.preventDefault(),oe.stopPropagation(),he(oe,(0,O.Z)(ae))},ae.onDragOver=function(oe){var he=ae.props.context.onNodeDragOver;oe.preventDefault(),oe.stopPropagation(),he(oe,(0,O.Z)(ae))},ae.onDragLeave=function(oe){var he=ae.props.context.onNodeDragLeave;oe.stopPropagation(),he(oe,(0,O.Z)(ae))},ae.onDragEnd=function(oe){var he=ae.props.context.onNodeDragEnd;oe.stopPropagation(),ae.setState({dragNodeHighlight:!1}),he(oe,(0,O.Z)(ae))},ae.onDrop=function(oe){var he=ae.props.context.onNodeDrop;oe.preventDefault(),oe.stopPropagation(),ae.setState({dragNodeHighlight:!1}),he(oe,(0,O.Z)(ae))},ae.onExpand=function(oe){var he=ae.props,ve=he.loading,_=he.context.onNodeExpand;ve||_(oe,(0,F.F)(ae.props))},ae.setSelectHandle=function(oe){ae.selectHandle=oe},ae.getNodeState=function(){var oe=ae.props.expanded;return ae.isLeaf()?null:oe?V:ee},ae.hasChildren=function(){var oe=ae.props.eventKey,he=ae.props.context.keyEntities,ve=(0,K.Z)(he,oe)||{},_=ve.children;return!!(_||[]).length},ae.isLeaf=function(){var oe=ae.props,he=oe.isLeaf,ve=oe.loaded,_=ae.props.context.loadData,N=ae.hasChildren();return he===!1?!1:he||!_&&!N||_&&ve&&!N},ae.isDisabled=function(){var oe=ae.props.disabled,he=ae.props.context.disabled;return!!(he||oe)},ae.isCheckable=function(){var oe=ae.props.checkable,he=ae.props.context.checkable;return!he||oe===!1?!1:he},ae.syncLoadData=function(oe){var he=oe.expanded,ve=oe.loading,_=oe.loaded,N=ae.props.context,X=N.loadData,pe=N.onNodeLoad;ve||X&&he&&!ae.isLeaf()&&!ae.hasChildren()&&!_&&pe((0,F.F)(ae.props))},ae.isDraggable=function(){var oe=ae.props,he=oe.data,ve=oe.context.draggable;return!!(ve&&(!ve.nodeDraggable||ve.nodeDraggable(he)))},ae.renderDragHandler=function(){var oe=ae.props.context,he=oe.draggable,ve=oe.prefixCls;return he!=null&&he.icon?a.createElement("span",{className:"".concat(ve,"-draggable-icon")},he.icon):null},ae.renderSwitcherIconDom=function(oe){var he=ae.props.switcherIcon,ve=ae.props.context.switcherIcon,_=he||ve;return typeof _=="function"?_((0,ke.Z)((0,ke.Z)({},ae.props),{},{isLeaf:oe})):_},ae.renderSwitcher=function(){var oe=ae.props.expanded,he=ae.props.context.prefixCls;if(ae.isLeaf()){var ve=ae.renderSwitcherIconDom(!0);return ve!==!1?a.createElement("span",{className:L()("".concat(he,"-switcher"),"".concat(he,"-switcher-noop"))},ve):null}var _=L()("".concat(he,"-switcher"),"".concat(he,"-switcher_").concat(oe?V:ee)),N=ae.renderSwitcherIconDom(!1);return N!==!1?a.createElement("span",{onClick:ae.onExpand,className:_},N):null},ae.renderCheckbox=function(){var oe=ae.props,he=oe.checked,ve=oe.halfChecked,_=oe.disableCheckbox,N=ae.props.context.prefixCls,X=ae.isDisabled(),pe=ae.isCheckable();if(!pe)return null;var qe=typeof pe!="boolean"?pe:null;return a.createElement("span",{className:L()("".concat(N,"-checkbox"),he&&"".concat(N,"-checkbox-checked"),!he&&ve&&"".concat(N,"-checkbox-indeterminate"),(X||_)&&"".concat(N,"-checkbox-disabled")),onClick:ae.onCheck},qe)},ae.renderIcon=function(){var oe=ae.props.loading,he=ae.props.context.prefixCls;return a.createElement("span",{className:L()("".concat(he,"-iconEle"),"".concat(he,"-icon__").concat(ae.getNodeState()||"docu"),oe&&"".concat(he,"-icon_loading"))})},ae.renderSelector=function(){var oe=ae.state.dragNodeHighlight,he=ae.props,ve=he.title,_=ve===void 0?B:ve,N=he.selected,X=he.icon,pe=he.loading,qe=he.data,at=ae.props.context,rt=at.prefixCls,Rt=at.showIcon,lr=at.icon,qt=at.loadData,Ze=at.titleRender,Er=ae.isDisabled(),Cr="".concat(rt,"-node-content-wrapper"),Kr;if(Rt){var _r=X||lr;Kr=_r?a.createElement("span",{className:L()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof _r=="function"?_r(ae.props):_r):ae.renderIcon()}else qt&&pe&&(Kr=ae.renderIcon());var Me;typeof _=="function"?Me=_(qe):Ze?Me=Ze(qe):Me=_;var Tt=a.createElement("span",{className:"".concat(rt,"-title")},Me);return a.createElement("span",{ref:ae.setSelectHandle,title:typeof _=="string"?_:"",className:L()("".concat(Cr),"".concat(Cr,"-").concat(ae.getNodeState()||"normal"),!Er&&(N||oe)&&"".concat(rt,"-node-selected")),onMouseEnter:ae.onMouseEnter,onMouseLeave:ae.onMouseLeave,onContextMenu:ae.onContextMenu,onClick:ae.onSelectorClick,onDoubleClick:ae.onSelectorDoubleClick},Kr,Tt,ae.renderDropIndicator())},ae.renderDropIndicator=function(){var oe=ae.props,he=oe.disabled,ve=oe.eventKey,_=ae.props.context,N=_.draggable,X=_.dropLevelOffset,pe=_.dropPosition,qe=_.prefixCls,at=_.indent,rt=_.dropIndicatorRender,Rt=_.dragOverNodeKey,lr=_.direction,qt=!!N,Ze=!he&&qt&&Rt===ve,Er=at!=null?at:ae.cacheIndent;return ae.cacheIndent=at,Ze?rt({dropPosition:pe,dropLevelOffset:X,indent:Er,prefixCls:qe,direction:lr}):null},ae}return(0,Y.Z)(Le,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var me=this.props.selectable,I=this.props.context.selectable;return typeof me=="boolean"?me:I}},{key:"render",value:function(){var me,I=this.props,_e=I.eventKey,oe=I.className,he=I.style,ve=I.dragOver,_=I.dragOverGapTop,N=I.dragOverGapBottom,X=I.isLeaf,pe=I.isStart,qe=I.isEnd,at=I.expanded,rt=I.selected,Rt=I.checked,lr=I.halfChecked,qt=I.loading,Ze=I.domRef,Er=I.active,Cr=I.data,Kr=I.onMouseMove,_r=I.selectable,Me=(0,se.Z)(I,H),Tt=this.props.context,z=Tt.prefixCls,v=Tt.filterTreeNode,f=Tt.keyEntities,D=Tt.dropContainerKey,de=Tt.dropTargetKey,W=Tt.draggingNodeKey,P=this.isDisabled(),te=(0,p.Z)(Me,{aria:!0,data:!0}),Ie=(0,K.Z)(f,_e)||{},Te=Ie.level,Se=qe[qe.length-1],Ge=this.isDraggable(),ft=!P&&Ge,Ke=W===_e,Xe=_r!==void 0?{"aria-selected":!!_r}:void 0;return a.createElement("div",(0,we.Z)({ref:Ze,className:L()(oe,"".concat(z,"-treenode"),(me={},(0,Fe.Z)(me,"".concat(z,"-treenode-disabled"),P),(0,Fe.Z)(me,"".concat(z,"-treenode-switcher-").concat(at?"open":"close"),!X),(0,Fe.Z)(me,"".concat(z,"-treenode-checkbox-checked"),Rt),(0,Fe.Z)(me,"".concat(z,"-treenode-checkbox-indeterminate"),lr),(0,Fe.Z)(me,"".concat(z,"-treenode-selected"),rt),(0,Fe.Z)(me,"".concat(z,"-treenode-loading"),qt),(0,Fe.Z)(me,"".concat(z,"-treenode-active"),Er),(0,Fe.Z)(me,"".concat(z,"-treenode-leaf-last"),Se),(0,Fe.Z)(me,"".concat(z,"-treenode-draggable"),Ge),(0,Fe.Z)(me,"dragging",Ke),(0,Fe.Z)(me,"drop-target",de===_e),(0,Fe.Z)(me,"drop-container",D===_e),(0,Fe.Z)(me,"drag-over",!P&&ve),(0,Fe.Z)(me,"drag-over-gap-top",!P&&_),(0,Fe.Z)(me,"drag-over-gap-bottom",!P&&N),(0,Fe.Z)(me,"filter-node",v&&v((0,F.F)(this.props))),me)),style:he,draggable:ft,"aria-grabbed":Ke,onDragStart:ft?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:Kr},Xe,te),a.createElement(S,{prefixCls:z,level:Te,isStart:pe,isEnd:qe}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Le}(a.Component),ce=function(xe){return a.createElement(A.k.Consumer,null,function(Le){return a.createElement(G,(0,we.Z)({},xe,{context:Le}))})};ce.displayName="TreeNode",ce.isTreeNode=1;var q=ce},39378:function(yn,Gt,g){"use strict";g.d(Gt,{k:function(){return Fe}});var we=g(59301),Fe=we.createContext(null)},99581:function(yn,Gt,g){"use strict";g.d(Gt,{O:function(){return q.Z},Z:function(){return Tt}});var we=g(5891),Fe=g(80962),se=g(80665),ke=g(57259),ie=g(26390),Y=g(79545),O=g(68550),T=g(21882),n=g(17928),o=g(7711),L=g(92310),p=g.n(L),a=g(85108),A=g(36994),m=g(51395),S=g(59301),K=g(39378);function F(z){var v=z.dropPosition,f=z.dropLevelOffset,D=z.indent,de={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(v){case-1:de.top=0,de.left=-f*D;break;case 1:de.bottom=0,de.left=-f*D;break;case 0:de.bottom=0,de.left=D;break}return S.createElement("div",{style:de})}function H(z){if(z==null)throw new TypeError("Cannot destructure "+z)}var V=g(29043),ee=g(19149),B=g(28800),G=g(21881),ce=g(43469),q=g(39417);function be(z,v){var f=S.useState(!1),D=(0,V.Z)(f,2),de=D[0],W=D[1];S.useLayoutEffect(function(){if(de)return z(),function(){v()}},[de]),S.useLayoutEffect(function(){return W(!0),function(){W(!1)}},[])}var xe=g(71430),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ae=function(v,f){var D=v.className,de=v.style,W=v.motion,P=v.motionNodes,te=v.motionType,Ie=v.onMotionStart,Te=v.onMotionEnd,Se=v.active,Ge=v.treeNodeRequiredProps,ft=(0,ee.Z)(v,Le),Ke=S.useState(!0),Xe=(0,V.Z)(Ke,2),At=Xe[0],We=Xe[1],$e=S.useContext(K.k),Bt=$e.prefixCls,Kt=P&&te!=="hide";(0,B.Z)(function(){P&&Kt!==At&&We(Kt)},[P]);var Mt=function(){P&&Ie()},wr=S.useRef(!1),vr=function(){P&&!wr.current&&(wr.current=!0,Te())};be(Mt,vr);var re=function(rr){Kt===rr&&vr()};return P?S.createElement(ce.default,(0,we.Z)({ref:f,visible:At},W,{motionAppear:te==="show",onVisibleChanged:re}),function(le,rr){var Ue=le.className,ot=le.style;return S.createElement("div",{ref:rr,className:p()("".concat(Bt,"-treenode-motion"),Ue),style:ot},P.map(function(Yr){var St=(0,we.Z)({},(H(Yr.data),Yr.data)),Vt=Yr.title,Zt=Yr.key,nt=Yr.isStart,ct=Yr.isEnd;delete St.children;var dt=(0,xe.H8)(Zt,Ge);return S.createElement(q.Z,(0,we.Z)({},St,dt,{title:Vt,active:Se,data:Yr.data,key:Zt,isStart:nt,isEnd:ct}))}))}):S.createElement(q.Z,(0,we.Z)({domRef:f,className:D,style:de},ft,{active:Se}))};ae.displayName="MotionTreeNode";var me=S.forwardRef(ae),I=me;function _e(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=z.length,D=v.length;if(Math.abs(f-D)!==1)return{add:!1,key:null};function de(W,P){var te=new Map;W.forEach(function(Te){te.set(Te,!0)});var Ie=P.filter(function(Te){return!te.has(Te)});return Ie.length===1?Ie[0]:null}return f<D?{add:!0,key:de(z,v)}:{add:!1,key:de(v,z)}}function oe(z,v,f){var D=z.findIndex(function(te){return te.key===f}),de=z[D+1],W=v.findIndex(function(te){return te.key===f});if(de){var P=v.findIndex(function(te){return te.key===de.key});return v.slice(W+1,P)}return v.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},_=function(){},N="RC_TREE_MOTION_".concat(Math.random()),X={key:N},pe={key:N,level:0,index:0,pos:"0",node:X,nodes:[X]},qe={parent:null,children:[],pos:pe.pos,data:X,title:null,key:N,isStart:[],isEnd:[]};function at(z,v,f,D){return v===!1||!f?z:z.slice(0,Math.ceil(f/D)+1)}function rt(z){var v=z.key,f=z.pos;return(0,xe.km)(v,f)}function Rt(z){for(var v=String(z.data.key),f=z;f.parent;)f=f.parent,v="".concat(f.data.key," > ").concat(v);return v}var lr=S.forwardRef(function(z,v){var f=z.prefixCls,D=z.data,de=z.selectable,W=z.checkable,P=z.expandedKeys,te=z.selectedKeys,Ie=z.checkedKeys,Te=z.loadedKeys,Se=z.loadingKeys,Ge=z.halfCheckedKeys,ft=z.keyEntities,Ke=z.disabled,Xe=z.dragging,At=z.dragOverNodeKey,We=z.dropPosition,$e=z.motion,Bt=z.height,Kt=z.itemHeight,Mt=z.virtual,wr=z.focusable,vr=z.activeItem,re=z.focused,le=z.tabIndex,rr=z.onKeyDown,Ue=z.onFocus,ot=z.onBlur,Yr=z.onActiveChange,St=z.onListChangeStart,Vt=z.onListChangeEnd,Zt=(0,ee.Z)(z,he),nt=S.useRef(null),ct=S.useRef(null);S.useImperativeHandle(v,function(){return{scrollTo:function(zr){nt.current.scrollTo(zr)},getIndentWidth:function(){return ct.current.offsetWidth}}});var dt=S.useState(P),Xt=(0,V.Z)(dt,2),Re=Xt[0],fn=Xt[1],kt=S.useState(D),Nn=(0,V.Z)(kt,2),Jn=Nn[0],vi=Nn[1],Fi=S.useState(D),Mn=(0,V.Z)(Fi,2),Hn=Mn[0],Yt=Mn[1],kr=S.useState([]),tn=(0,V.Z)(kr,2),Nt=tn[0],_t=tn[1],Ir=S.useState(null),Dr=(0,V.Z)(Ir,2),In=Dr[0],qr=Dr[1],Sn=S.useRef(D);Sn.current=D;function hn(){var Hr=Sn.current;vi(Hr),Yt(Hr),_t([]),qr(null),Vt()}(0,B.Z)(function(){fn(P);var Hr=_e(Re,P);if(Hr.key!==null)if(Hr.add){var zr=Jn.findIndex(function(fi){var wn=fi.key;return wn===Hr.key}),Tn=at(oe(Jn,D,Hr.key),Mt,Bt,Kt),Bn=Jn.slice();Bn.splice(zr+1,0,qe),Yt(Bn),_t(Tn),qr("show")}else{var Qn=D.findIndex(function(fi){var wn=fi.key;return wn===Hr.key}),Xn=at(oe(D,Jn,Hr.key),Mt,Bt,Kt),Hi=D.slice();Hi.splice(Qn+1,0,qe),Yt(Hi),_t(Xn),qr("hide")}else Jn!==D&&(vi(D),Yt(D))},[P,D]),S.useEffect(function(){Xe||hn()},[Xe]);var $n=$e?Hn:D,ri={expandedKeys:P,selectedKeys:te,loadedKeys:Te,loadingKeys:Se,checkedKeys:Ie,halfCheckedKeys:Ge,dragOverNodeKey:At,dropPosition:We,keyEntities:ft};return S.createElement(S.Fragment,null,re&&vr&&S.createElement("span",{style:ve,"aria-live":"assertive"},Rt(vr)),S.createElement("div",null,S.createElement("input",{style:ve,disabled:wr===!1||Ke,tabIndex:wr!==!1?le:null,onKeyDown:rr,onFocus:Ue,onBlur:ot,value:"",onChange:_,"aria-label":"for screen reader"})),S.createElement("div",{className:"".concat(f,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},S.createElement("div",{className:"".concat(f,"-indent")},S.createElement("div",{ref:ct,className:"".concat(f,"-indent-unit")}))),S.createElement(G.Z,(0,we.Z)({},Zt,{data:$n,itemKey:rt,height:Bt,fullHeight:!1,virtual:Mt,itemHeight:Kt,prefixCls:"".concat(f,"-list"),ref:nt,onVisibleChange:function(zr,Tn){var Bn=new Set(zr),Qn=Tn.filter(function(Xn){return!Bn.has(Xn)});Qn.some(function(Xn){return rt(Xn)===N})&&hn()}}),function(Hr){var zr=Hr.pos,Tn=(0,we.Z)({},(H(Hr.data),Hr.data)),Bn=Hr.title,Qn=Hr.key,Xn=Hr.isStart,Hi=Hr.isEnd,fi=(0,xe.km)(Qn,zr);delete Tn.key,delete Tn.children;var wn=(0,xe.H8)(fi,ri);return S.createElement(I,(0,we.Z)({},Tn,wn,{title:Bn,active:!!vr&&Qn===vr.key,pos:zr,data:Hr.data,isStart:Xn,isEnd:Hi,motion:$e,motionNodes:Qn===N?Nt:null,motionType:In,onMotionStart:St,onMotionEnd:hn,treeNodeRequiredProps:ri,onMouseMove:function(){Yr(null)}}))}))});lr.displayName="NodeList";var qt=lr,Ze=g(35654),Er=g(90782),Cr=g(67841),Kr=10,_r=function(z){(0,n.Z)(f,z);var v=(0,o.Z)(f);function f(){var D;(0,Y.Z)(this,f);for(var de=arguments.length,W=new Array(de),P=0;P<de;P++)W[P]=arguments[P];return D=v.call.apply(v,[this].concat(W)),D.destroyed=!1,D.delayedDragEnterLogic=void 0,D.loadingRetryTimes={},D.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,xe.w$)()},D.dragStartMousePosition=null,D.dragNode=void 0,D.currentMouseOverDroppableNodeKey=null,D.listRef=S.createRef(),D.onNodeDragStart=function(te,Ie){var Te=D.state,Se=Te.expandedKeys,Ge=Te.keyEntities,ft=D.props.onDragStart,Ke=Ie.props.eventKey;D.dragNode=Ie,D.dragStartMousePosition={x:te.clientX,y:te.clientY};var Xe=(0,Ze._5)(Se,Ke);D.setState({draggingNodeKey:Ke,dragChildrenKeys:(0,Ze.wA)(Ke,Ge),indent:D.listRef.current.getIndentWidth()}),D.setExpandedKeys(Xe),window.addEventListener("dragend",D.onWindowDragEnd),ft==null||ft({event:te,node:(0,xe.F)(Ie.props)})},D.onNodeDragEnter=function(te,Ie){var Te=D.state,Se=Te.expandedKeys,Ge=Te.keyEntities,ft=Te.dragChildrenKeys,Ke=Te.flattenNodes,Xe=Te.indent,At=D.props,We=At.onDragEnter,$e=At.onExpand,Bt=At.allowDrop,Kt=At.direction,Mt=Ie.props,wr=Mt.pos,vr=Mt.eventKey,re=(0,T.Z)(D),le=re.dragNode;if(D.currentMouseOverDroppableNodeKey!==vr&&(D.currentMouseOverDroppableNodeKey=vr),!le){D.resetDragState();return}var rr=(0,Ze.OM)(te,le,Ie,Xe,D.dragStartMousePosition,Bt,Ke,Ge,Se,Kt),Ue=rr.dropPosition,ot=rr.dropLevelOffset,Yr=rr.dropTargetKey,St=rr.dropContainerKey,Vt=rr.dropTargetPos,Zt=rr.dropAllowed,nt=rr.dragOverNodeKey;if(ft.indexOf(Yr)!==-1||!Zt){D.resetDragState();return}if(D.delayedDragEnterLogic||(D.delayedDragEnterLogic={}),Object.keys(D.delayedDragEnterLogic).forEach(function(ct){clearTimeout(D.delayedDragEnterLogic[ct])}),le.props.eventKey!==Ie.props.eventKey&&(te.persist(),D.delayedDragEnterLogic[wr]=window.setTimeout(function(){if(D.state.draggingNodeKey!==null){var ct=(0,ie.Z)(Se),dt=(0,Cr.Z)(Ge,Ie.props.eventKey);dt&&(dt.children||[]).length&&(ct=(0,Ze.L0)(Se,Ie.props.eventKey)),"expandedKeys"in D.props||D.setExpandedKeys(ct),$e==null||$e(ct,{node:(0,xe.F)(Ie.props),expanded:!0,nativeEvent:te.nativeEvent})}},800)),le.props.eventKey===Yr&&ot===0){D.resetDragState();return}D.setState({dragOverNodeKey:nt,dropPosition:Ue,dropLevelOffset:ot,dropTargetKey:Yr,dropContainerKey:St,dropTargetPos:Vt,dropAllowed:Zt}),We==null||We({event:te,node:(0,xe.F)(Ie.props),expandedKeys:Se})},D.onNodeDragOver=function(te,Ie){var Te=D.state,Se=Te.dragChildrenKeys,Ge=Te.flattenNodes,ft=Te.keyEntities,Ke=Te.expandedKeys,Xe=Te.indent,At=D.props,We=At.onDragOver,$e=At.allowDrop,Bt=At.direction,Kt=(0,T.Z)(D),Mt=Kt.dragNode;if(Mt){var wr=(0,Ze.OM)(te,Mt,Ie,Xe,D.dragStartMousePosition,$e,Ge,ft,Ke,Bt),vr=wr.dropPosition,re=wr.dropLevelOffset,le=wr.dropTargetKey,rr=wr.dropContainerKey,Ue=wr.dropAllowed,ot=wr.dropTargetPos,Yr=wr.dragOverNodeKey;Se.indexOf(le)!==-1||!Ue||(Mt.props.eventKey===le&&re===0?D.state.dropPosition===null&&D.state.dropLevelOffset===null&&D.state.dropTargetKey===null&&D.state.dropContainerKey===null&&D.state.dropTargetPos===null&&D.state.dropAllowed===!1&&D.state.dragOverNodeKey===null||D.resetDragState():vr===D.state.dropPosition&&re===D.state.dropLevelOffset&&le===D.state.dropTargetKey&&rr===D.state.dropContainerKey&&ot===D.state.dropTargetPos&&Ue===D.state.dropAllowed&&Yr===D.state.dragOverNodeKey||D.setState({dropPosition:vr,dropLevelOffset:re,dropTargetKey:le,dropContainerKey:rr,dropTargetPos:ot,dropAllowed:Ue,dragOverNodeKey:Yr}),We==null||We({event:te,node:(0,xe.F)(Ie.props)}))}},D.onNodeDragLeave=function(te,Ie){D.currentMouseOverDroppableNodeKey===Ie.props.eventKey&&!te.currentTarget.contains(te.relatedTarget)&&(D.resetDragState(),D.currentMouseOverDroppableNodeKey=null);var Te=D.props.onDragLeave;Te==null||Te({event:te,node:(0,xe.F)(Ie.props)})},D.onWindowDragEnd=function(te){D.onNodeDragEnd(te,null,!0),window.removeEventListener("dragend",D.onWindowDragEnd)},D.onNodeDragEnd=function(te,Ie){var Te=D.props.onDragEnd;D.setState({dragOverNodeKey:null}),D.cleanDragState(),Te==null||Te({event:te,node:(0,xe.F)(Ie.props)}),D.dragNode=null,window.removeEventListener("dragend",D.onWindowDragEnd)},D.onNodeDrop=function(te,Ie){var Te,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ge=D.state,ft=Ge.dragChildrenKeys,Ke=Ge.dropPosition,Xe=Ge.dropTargetKey,At=Ge.dropTargetPos,We=Ge.dropAllowed;if(We){var $e=D.props.onDrop;if(D.setState({dragOverNodeKey:null}),D.cleanDragState(),Xe!==null){var Bt=(0,ke.Z)((0,ke.Z)({},(0,xe.H8)(Xe,D.getTreeNodeRequiredProps())),{},{active:((Te=D.getActiveItem())===null||Te===void 0?void 0:Te.key)===Xe,data:(0,Cr.Z)(D.state.keyEntities,Xe).node}),Kt=ft.indexOf(Xe)!==-1;(0,m.ZP)(!Kt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Mt=(0,Ze.yx)(At),wr={event:te,node:(0,xe.F)(Bt),dragNode:D.dragNode?(0,xe.F)(D.dragNode.props):null,dragNodesKeys:[D.dragNode.props.eventKey].concat(ft),dropToGap:Ke!==0,dropPosition:Ke+Number(Mt[Mt.length-1])};Se||$e==null||$e(wr),D.dragNode=null}}},D.cleanDragState=function(){var te=D.state.draggingNodeKey;te!==null&&D.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),D.dragStartMousePosition=null,D.currentMouseOverDroppableNodeKey=null},D.triggerExpandActionExpand=function(te,Ie){var Te=D.state,Se=Te.expandedKeys,Ge=Te.flattenNodes,ft=Ie.expanded,Ke=Ie.key,Xe=Ie.isLeaf;if(!(Xe||te.shiftKey||te.metaKey||te.ctrlKey)){var At=Ge.filter(function($e){return $e.key===Ke})[0],We=(0,xe.F)((0,ke.Z)((0,ke.Z)({},(0,xe.H8)(Ke,D.getTreeNodeRequiredProps())),{},{data:At.data}));D.setExpandedKeys(ft?(0,Ze._5)(Se,Ke):(0,Ze.L0)(Se,Ke)),D.onNodeExpand(te,We)}},D.onNodeClick=function(te,Ie){var Te=D.props,Se=Te.onClick,Ge=Te.expandAction;Ge==="click"&&D.triggerExpandActionExpand(te,Ie),Se==null||Se(te,Ie)},D.onNodeDoubleClick=function(te,Ie){var Te=D.props,Se=Te.onDoubleClick,Ge=Te.expandAction;Ge==="doubleClick"&&D.triggerExpandActionExpand(te,Ie),Se==null||Se(te,Ie)},D.onNodeSelect=function(te,Ie){var Te=D.state.selectedKeys,Se=D.state,Ge=Se.keyEntities,ft=Se.fieldNames,Ke=D.props,Xe=Ke.onSelect,At=Ke.multiple,We=Ie.selected,$e=Ie[ft.key],Bt=!We;Bt?At?Te=(0,Ze.L0)(Te,$e):Te=[$e]:Te=(0,Ze._5)(Te,$e);var Kt=Te.map(function(Mt){var wr=(0,Cr.Z)(Ge,Mt);return wr?wr.node:null}).filter(function(Mt){return Mt});D.setUncontrolledState({selectedKeys:Te}),Xe==null||Xe(Te,{event:"select",selected:Bt,node:Ie,selectedNodes:Kt,nativeEvent:te.nativeEvent})},D.onNodeCheck=function(te,Ie,Te){var Se=D.state,Ge=Se.keyEntities,ft=Se.checkedKeys,Ke=Se.halfCheckedKeys,Xe=D.props,At=Xe.checkStrictly,We=Xe.onCheck,$e=Ie.key,Bt,Kt={event:"check",node:Ie,checked:Te,nativeEvent:te.nativeEvent};if(At){var Mt=Te?(0,Ze.L0)(ft,$e):(0,Ze._5)(ft,$e),wr=(0,Ze._5)(Ke,$e);Bt={checked:Mt,halfChecked:wr},Kt.checkedNodes=Mt.map(function(ot){return(0,Cr.Z)(Ge,ot)}).filter(function(ot){return ot}).map(function(ot){return ot.node}),D.setUncontrolledState({checkedKeys:Mt})}else{var vr=(0,Er.S)([].concat((0,ie.Z)(ft),[$e]),!0,Ge),re=vr.checkedKeys,le=vr.halfCheckedKeys;if(!Te){var rr=new Set(re);rr.delete($e);var Ue=(0,Er.S)(Array.from(rr),{checked:!1,halfCheckedKeys:le},Ge);re=Ue.checkedKeys,le=Ue.halfCheckedKeys}Bt=re,Kt.checkedNodes=[],Kt.checkedNodesPositions=[],Kt.halfCheckedKeys=le,re.forEach(function(ot){var Yr=(0,Cr.Z)(Ge,ot);if(Yr){var St=Yr.node,Vt=Yr.pos;Kt.checkedNodes.push(St),Kt.checkedNodesPositions.push({node:St,pos:Vt})}}),D.setUncontrolledState({checkedKeys:re},!1,{halfCheckedKeys:le})}We==null||We(Bt,Kt)},D.onNodeLoad=function(te){var Ie=te.key,Te=new Promise(function(Se,Ge){D.setState(function(ft){var Ke=ft.loadedKeys,Xe=Ke===void 0?[]:Ke,At=ft.loadingKeys,We=At===void 0?[]:At,$e=D.props,Bt=$e.loadData,Kt=$e.onLoad;if(!Bt||Xe.indexOf(Ie)!==-1||We.indexOf(Ie)!==-1)return null;var Mt=Bt(te);return Mt.then(function(){var wr=D.state.loadedKeys,vr=(0,Ze.L0)(wr,Ie);Kt==null||Kt(vr,{event:"load",node:te}),D.setUncontrolledState({loadedKeys:vr}),D.setState(function(re){return{loadingKeys:(0,Ze._5)(re.loadingKeys,Ie)}}),Se()}).catch(function(wr){if(D.setState(function(re){return{loadingKeys:(0,Ze._5)(re.loadingKeys,Ie)}}),D.loadingRetryTimes[Ie]=(D.loadingRetryTimes[Ie]||0)+1,D.loadingRetryTimes[Ie]>=Kr){var vr=D.state.loadedKeys;(0,m.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),D.setUncontrolledState({loadedKeys:(0,Ze.L0)(vr,Ie)}),Se()}Ge(wr)}),{loadingKeys:(0,Ze.L0)(We,Ie)}})});return Te.catch(function(){}),Te},D.onNodeMouseEnter=function(te,Ie){var Te=D.props.onMouseEnter;Te==null||Te({event:te,node:Ie})},D.onNodeMouseLeave=function(te,Ie){var Te=D.props.onMouseLeave;Te==null||Te({event:te,node:Ie})},D.onNodeContextMenu=function(te,Ie){var Te=D.props.onRightClick;Te&&(te.preventDefault(),Te({event:te,node:Ie}))},D.onFocus=function(){var te=D.props.onFocus;D.setState({focused:!0});for(var Ie=arguments.length,Te=new Array(Ie),Se=0;Se<Ie;Se++)Te[Se]=arguments[Se];te==null||te.apply(void 0,Te)},D.onBlur=function(){var te=D.props.onBlur;D.setState({focused:!1}),D.onActiveChange(null);for(var Ie=arguments.length,Te=new Array(Ie),Se=0;Se<Ie;Se++)Te[Se]=arguments[Se];te==null||te.apply(void 0,Te)},D.getTreeNodeRequiredProps=function(){var te=D.state,Ie=te.expandedKeys,Te=te.selectedKeys,Se=te.loadedKeys,Ge=te.loadingKeys,ft=te.checkedKeys,Ke=te.halfCheckedKeys,Xe=te.dragOverNodeKey,At=te.dropPosition,We=te.keyEntities;return{expandedKeys:Ie||[],selectedKeys:Te||[],loadedKeys:Se||[],loadingKeys:Ge||[],checkedKeys:ft||[],halfCheckedKeys:Ke||[],dragOverNodeKey:Xe,dropPosition:At,keyEntities:We}},D.setExpandedKeys=function(te){var Ie=D.state,Te=Ie.treeData,Se=Ie.fieldNames,Ge=(0,xe.oH)(Te,te,Se);D.setUncontrolledState({expandedKeys:te,flattenNodes:Ge},!0)},D.onNodeExpand=function(te,Ie){var Te=D.state.expandedKeys,Se=D.state,Ge=Se.listChanging,ft=Se.fieldNames,Ke=D.props,Xe=Ke.onExpand,At=Ke.loadData,We=Ie.expanded,$e=Ie[ft.key];if(!Ge){var Bt=Te.indexOf($e),Kt=!We;if((0,m.ZP)(We&&Bt!==-1||!We&&Bt===-1,"Expand state not sync with index check"),Kt?Te=(0,Ze.L0)(Te,$e):Te=(0,Ze._5)(Te,$e),D.setExpandedKeys(Te),Xe==null||Xe(Te,{node:Ie,expanded:Kt,nativeEvent:te.nativeEvent}),Kt&&At){var Mt=D.onNodeLoad(Ie);Mt&&Mt.then(function(){var wr=(0,xe.oH)(D.state.treeData,Te,ft);D.setUncontrolledState({flattenNodes:wr})}).catch(function(){var wr=D.state.expandedKeys,vr=(0,Ze._5)(wr,$e);D.setExpandedKeys(vr)})}}},D.onListChangeStart=function(){D.setUncontrolledState({listChanging:!0})},D.onListChangeEnd=function(){setTimeout(function(){D.setUncontrolledState({listChanging:!1})})},D.onActiveChange=function(te){var Ie=D.state.activeKey,Te=D.props.onActiveChange;Ie!==te&&(D.setState({activeKey:te}),te!==null&&D.scrollTo({key:te}),Te==null||Te(te))},D.getActiveItem=function(){var te=D.state,Ie=te.activeKey,Te=te.flattenNodes;return Ie===null?null:Te.find(function(Se){var Ge=Se.key;return Ge===Ie})||null},D.offsetActiveKey=function(te){var Ie=D.state,Te=Ie.flattenNodes,Se=Ie.activeKey,Ge=Te.findIndex(function(Xe){var At=Xe.key;return At===Se});Ge===-1&&te<0&&(Ge=Te.length),Ge=(Ge+te+Te.length)%Te.length;var ft=Te[Ge];if(ft){var Ke=ft.key;D.onActiveChange(Ke)}else D.onActiveChange(null)},D.onKeyDown=function(te){var Ie=D.state,Te=Ie.activeKey,Se=Ie.expandedKeys,Ge=Ie.checkedKeys,ft=Ie.fieldNames,Ke=D.props,Xe=Ke.onKeyDown,At=Ke.checkable,We=Ke.selectable;switch(te.which){case a.Z.UP:{D.offsetActiveKey(-1),te.preventDefault();break}case a.Z.DOWN:{D.offsetActiveKey(1),te.preventDefault();break}}var $e=D.getActiveItem();if($e&&$e.data){var Bt=D.getTreeNodeRequiredProps(),Kt=$e.data.isLeaf===!1||!!($e.data[ft.children]||[]).length,Mt=(0,xe.F)((0,ke.Z)((0,ke.Z)({},(0,xe.H8)(Te,Bt)),{},{data:$e.data,active:!0}));switch(te.which){case a.Z.LEFT:{Kt&&Se.includes(Te)?D.onNodeExpand({},Mt):$e.parent&&D.onActiveChange($e.parent.key),te.preventDefault();break}case a.Z.RIGHT:{Kt&&!Se.includes(Te)?D.onNodeExpand({},Mt):$e.children&&$e.children.length&&D.onActiveChange($e.children[0].key),te.preventDefault();break}case a.Z.ENTER:case a.Z.SPACE:{At&&!Mt.disabled&&Mt.checkable!==!1&&!Mt.disableCheckbox?D.onNodeCheck({},Mt,!Ge.includes(Te)):!At&&We&&!Mt.disabled&&Mt.selectable!==!1&&D.onNodeSelect({},Mt);break}}}Xe==null||Xe(te)},D.setUncontrolledState=function(te){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!D.destroyed){var Se=!1,Ge=!0,ft={};Object.keys(te).forEach(function(Ke){if(Ke in D.props){Ge=!1;return}Se=!0,ft[Ke]=te[Ke]}),Se&&(!Ie||Ge)&&D.setState((0,ke.Z)((0,ke.Z)({},ft),Te))}},D.scrollTo=function(te){D.listRef.current.scrollTo(te)},D}return(0,O.Z)(f,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var de=this.props.activeKey;de!==void 0&&de!==this.state.activeKey&&(this.setState({activeKey:de}),de!==null&&this.scrollTo({key:de}))}},{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 de,W=this.state,P=W.focused,te=W.flattenNodes,Ie=W.keyEntities,Te=W.draggingNodeKey,Se=W.activeKey,Ge=W.dropLevelOffset,ft=W.dropContainerKey,Ke=W.dropTargetKey,Xe=W.dropPosition,At=W.dragOverNodeKey,We=W.indent,$e=this.props,Bt=$e.prefixCls,Kt=$e.className,Mt=$e.style,wr=$e.showLine,vr=$e.focusable,re=$e.tabIndex,le=re===void 0?0:re,rr=$e.selectable,Ue=$e.showIcon,ot=$e.icon,Yr=$e.switcherIcon,St=$e.draggable,Vt=$e.checkable,Zt=$e.checkStrictly,nt=$e.disabled,ct=$e.motion,dt=$e.loadData,Xt=$e.filterTreeNode,Re=$e.height,fn=$e.itemHeight,kt=$e.virtual,Nn=$e.titleRender,Jn=$e.dropIndicatorRender,vi=$e.onContextMenu,Fi=$e.onScroll,Mn=$e.direction,Hn=$e.rootClassName,Yt=$e.rootStyle,kr=(0,A.Z)(this.props,{aria:!0,data:!0}),tn;return St&&((0,se.Z)(St)==="object"?tn=St:typeof St=="function"?tn={nodeDraggable:St}:tn={}),S.createElement(K.k.Provider,{value:{prefixCls:Bt,selectable:rr,showIcon:Ue,icon:ot,switcherIcon:Yr,draggable:tn,draggingNodeKey:Te,checkable:Vt,checkStrictly:Zt,disabled:nt,keyEntities:Ie,dropLevelOffset:Ge,dropContainerKey:ft,dropTargetKey:Ke,dropPosition:Xe,dragOverNodeKey:At,indent:We,direction:Mn,dropIndicatorRender:Jn,loadData:dt,filterTreeNode:Xt,titleRender:Nn,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}},S.createElement("div",{role:"tree",className:p()(Bt,Kt,Hn,(de={},(0,Fe.Z)(de,"".concat(Bt,"-show-line"),wr),(0,Fe.Z)(de,"".concat(Bt,"-focused"),P),(0,Fe.Z)(de,"".concat(Bt,"-active-focused"),Se!==null),de)),style:Yt},S.createElement(qt,(0,we.Z)({ref:this.listRef,prefixCls:Bt,style:Mt,data:te,disabled:nt,selectable:rr,checkable:!!Vt,motion:ct,dragging:Te!==null,height:Re,itemHeight:fn,virtual:kt,focusable:vr,focused:P,tabIndex:le,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:vi,onScroll:Fi},this.getTreeNodeRequiredProps(),kr))))}}],[{key:"getDerivedStateFromProps",value:function(de,W){var P=W.prevProps,te={prevProps:de};function Ie(vr){return!P&&vr in de||P&&P[vr]!==de[vr]}var Te,Se=W.fieldNames;if(Ie("fieldNames")&&(Se=(0,xe.w$)(de.fieldNames),te.fieldNames=Se),Ie("treeData")?Te=de.treeData:Ie("children")&&((0,m.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Te=(0,xe.zn)(de.children)),Te){te.treeData=Te;var Ge=(0,xe.I8)(Te,{fieldNames:Se});te.keyEntities=(0,ke.Z)((0,Fe.Z)({},N,pe),Ge.keyEntities)}var ft=te.keyEntities||W.keyEntities;if(Ie("expandedKeys")||P&&Ie("autoExpandParent"))te.expandedKeys=de.autoExpandParent||!P&&de.defaultExpandParent?(0,Ze.r7)(de.expandedKeys,ft):de.expandedKeys;else if(!P&&de.defaultExpandAll){var Ke=(0,ke.Z)({},ft);delete Ke[N],te.expandedKeys=Object.keys(Ke).map(function(vr){return Ke[vr].key})}else!P&&de.defaultExpandedKeys&&(te.expandedKeys=de.autoExpandParent||de.defaultExpandParent?(0,Ze.r7)(de.defaultExpandedKeys,ft):de.defaultExpandedKeys);if(te.expandedKeys||delete te.expandedKeys,Te||te.expandedKeys){var Xe=(0,xe.oH)(Te||W.treeData,te.expandedKeys||W.expandedKeys,Se);te.flattenNodes=Xe}if(de.selectable&&(Ie("selectedKeys")?te.selectedKeys=(0,Ze.BT)(de.selectedKeys,de):!P&&de.defaultSelectedKeys&&(te.selectedKeys=(0,Ze.BT)(de.defaultSelectedKeys,de))),de.checkable){var At;if(Ie("checkedKeys")?At=(0,Ze.E6)(de.checkedKeys)||{}:!P&&de.defaultCheckedKeys?At=(0,Ze.E6)(de.defaultCheckedKeys)||{}:Te&&(At=(0,Ze.E6)(de.checkedKeys)||{checkedKeys:W.checkedKeys,halfCheckedKeys:W.halfCheckedKeys}),At){var We=At,$e=We.checkedKeys,Bt=$e===void 0?[]:$e,Kt=We.halfCheckedKeys,Mt=Kt===void 0?[]:Kt;if(!de.checkStrictly){var wr=(0,Er.S)(Bt,!0,ft);Bt=wr.checkedKeys,Mt=wr.halfCheckedKeys}te.checkedKeys=Bt,te.halfCheckedKeys=Mt}}return Ie("loadedKeys")&&(te.loadedKeys=de.loadedKeys),te}}]),f}(S.Component);_r.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:F,allowDrop:function(){return!0},expandAction:!1},_r.TreeNode=q.Z;var Me=_r,Tt=Me},35654:function(yn,Gt,g){"use strict";g.d(Gt,{BT:function(){return S},E6:function(){return H},L0:function(){return o},OM:function(){return m},_5:function(){return n},r7:function(){return V},wA:function(){return p},yx:function(){return L}});var we=g(26390),Fe=g(80665),se=g(51395),ke=g(59301),ie=g(39417),Y=g(67841),O=g(71430),T=null;function n(ee,B){if(!ee)return[];var G=ee.slice(),ce=G.indexOf(B);return ce>=0&&G.splice(ce,1),G}function o(ee,B){var G=(ee||[]).slice();return G.indexOf(B)===-1&&G.push(B),G}function L(ee){return ee.split("-")}function p(ee,B){var G=[],ce=(0,Y.Z)(B,ee);function q(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];be.forEach(function(xe){var Le=xe.key,ae=xe.children;G.push(Le),q(ae)})}return q(ce.children),G}function a(ee){if(ee.parent){var B=L(ee.pos);return Number(B[B.length-1])===ee.parent.children.length-1}return!1}function A(ee){var B=L(ee.pos);return Number(B[B.length-1])===0}function m(ee,B,G,ce,q,be,xe,Le,ae,me){var I,_e=ee.clientX,oe=ee.clientY,he=ee.target.getBoundingClientRect(),ve=he.top,_=he.height,N=(me==="rtl"?-1:1)*(((q==null?void 0:q.x)||0)-_e),X=(N-12)/ce,pe=(0,Y.Z)(Le,G.props.eventKey);if(oe<ve+_/2){var qe=xe.findIndex(function(Tt){return Tt.key===pe.key}),at=qe<=0?0:qe-1,rt=xe[at].key;pe=(0,Y.Z)(Le,rt)}var Rt=pe.key,lr=pe,qt=pe.key,Ze=0,Er=0;if(!ae.includes(Rt))for(var Cr=0;Cr<X&&a(pe);Cr+=1)pe=pe.parent,Er+=1;var Kr=B.props.data,_r=pe.node,Me=!0;return A(pe)&&pe.level===0&&oe<ve+_/2&&be({dragNode:Kr,dropNode:_r,dropPosition:-1})&&pe.key===G.props.eventKey?Ze=-1:(lr.children||[]).length&&ae.includes(qt)?be({dragNode:Kr,dropNode:_r,dropPosition:0})?Ze=0:Me=!1:Er===0?X>-1.5?be({dragNode:Kr,dropNode:_r,dropPosition:1})?Ze=1:Me=!1:be({dragNode:Kr,dropNode:_r,dropPosition:0})?Ze=0:be({dragNode:Kr,dropNode:_r,dropPosition:1})?Ze=1:Me=!1:be({dragNode:Kr,dropNode:_r,dropPosition:1})?Ze=1:Me=!1,{dropPosition:Ze,dropLevelOffset:Er,dropTargetKey:pe.key,dropTargetPos:pe.pos,dragOverNodeKey:qt,dropContainerKey:Ze===0?null:((I=pe.parent)===null||I===void 0?void 0:I.key)||null,dropAllowed:Me}}function S(ee,B){if(ee){var G=B.multiple;return G?ee.slice():ee.length?[ee[0]]:ee}}var K=function(B){return B};function F(ee,B){if(!ee)return[];var G=B||{},ce=G.processProps,q=ce===void 0?K:ce,be=Array.isArray(ee)?ee:[ee];return be.map(function(xe){var Le=xe.children,ae=_objectWithoutProperties(xe,T),me=F(Le,B);return React.createElement(TreeNode,_extends({key:ae.key},q(ae)),me)})}function H(ee){if(!ee)return null;var B;if(Array.isArray(ee))B={checkedKeys:ee,halfCheckedKeys:void 0};else if((0,Fe.Z)(ee)==="object")B={checkedKeys:ee.checked||void 0,halfCheckedKeys:ee.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return B}function V(ee,B){var G=new Set;function ce(q){if(!G.has(q)){var be=(0,Y.Z)(B,q);if(be){G.add(q);var xe=be.parent,Le=be.node;Le.disabled||xe&&ce(xe.key)}}}return(ee||[]).forEach(function(q){ce(q)}),(0,we.Z)(G)}},90782:function(yn,Gt,g){"use strict";g.d(Gt,{S:function(){return O}});var we=g(51395),Fe=g(67841);function se(T,n){var o=new Set;return T.forEach(function(L){n.has(L)||o.add(L)}),o}function ke(T){var n=T||{},o=n.disabled,L=n.disableCheckbox,p=n.checkable;return!!(o||L)||p===!1}function ie(T,n,o,L){for(var p=new Set(T),a=new Set,A=0;A<=o;A+=1){var m=n.get(A)||new Set;m.forEach(function(H){var V=H.key,ee=H.node,B=H.children,G=B===void 0?[]:B;p.has(V)&&!L(ee)&&G.filter(function(ce){return!L(ce.node)}).forEach(function(ce){p.add(ce.key)})})}for(var S=new Set,K=o;K>=0;K-=1){var F=n.get(K)||new Set;F.forEach(function(H){var V=H.parent,ee=H.node;if(!(L(ee)||!H.parent||S.has(H.parent.key))){if(L(H.parent.node)){S.add(V.key);return}var B=!0,G=!1;(V.children||[]).filter(function(ce){return!L(ce.node)}).forEach(function(ce){var q=ce.key,be=p.has(q);B&&!be&&(B=!1),!G&&(be||a.has(q))&&(G=!0)}),B&&p.add(V.key),G&&a.add(V.key),S.add(V.key)}})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(se(a,p))}}function Y(T,n,o,L,p){for(var a=new Set(T),A=new Set(n),m=0;m<=L;m+=1){var S=o.get(m)||new Set;S.forEach(function(V){var ee=V.key,B=V.node,G=V.children,ce=G===void 0?[]:G;!a.has(ee)&&!A.has(ee)&&!p(B)&&ce.filter(function(q){return!p(q.node)}).forEach(function(q){a.delete(q.key)})})}A=new Set;for(var K=new Set,F=L;F>=0;F-=1){var H=o.get(F)||new Set;H.forEach(function(V){var ee=V.parent,B=V.node;if(!(p(B)||!V.parent||K.has(V.parent.key))){if(p(V.parent.node)){K.add(ee.key);return}var G=!0,ce=!1;(ee.children||[]).filter(function(q){return!p(q.node)}).forEach(function(q){var be=q.key,xe=a.has(be);G&&!xe&&(G=!1),!ce&&(xe||A.has(be))&&(ce=!0)}),G||a.delete(ee.key),ce&&A.add(ee.key),K.add(ee.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(se(A,a))}}function O(T,n,o,L){var p=[],a;L?a=L:a=ke;var A=new Set(T.filter(function(F){var H=!!(0,Fe.Z)(o,F);return H||p.push(F),H})),m=new Map,S=0;Object.keys(o).forEach(function(F){var H=o[F],V=H.level,ee=m.get(V);ee||(ee=new Set,m.set(V,ee)),ee.add(H),S=Math.max(S,V)}),(0,we.ZP)(!p.length,"Tree missing follow keys: ".concat(p.slice(0,100).map(function(F){return"'".concat(F,"'")}).join(", ")));var K;return n===!0?K=ie(A,m,S,a):K=Y(A,n.halfCheckedKeys,m,S,a),K}},67841:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return we}});function we(Fe,se){return Fe[se]}},71430:function(yn,Gt,g){"use strict";g.d(Gt,{F:function(){return V},H8:function(){return H},I8:function(){return F},km:function(){return p},oH:function(){return S},w$:function(){return a},zn:function(){return m}});var we=g(80665),Fe=g(26390),se=g(57259),ke=g(19149),ie=g(38298),Y=g(64002),O=g(51395),T=g(67841),n=["children"];function o(ee,B){return"".concat(ee,"-").concat(B)}function L(ee){return ee&&ee.type&&ee.type.isTreeNode}function p(ee,B){return ee!=null?ee:B}function a(ee){var B=ee||{},G=B.title,ce=B._title,q=B.key,be=B.children,xe=G||"title";return{title:xe,_title:ce||[xe],key:q||"key",children:be||"children"}}function A(ee,B){var G=new Map;function ce(q){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(q||[]).forEach(function(xe){var Le=xe[B.key],ae=xe[B.children];warning(Le!=null,"Tree node must have a certain key: [".concat(be).concat(Le,"]"));var me=String(Le);warning(!G.has(me)||Le===null||Le===void 0,"Same 'key' exist in the Tree: ".concat(me)),G.set(me,!0),ce(ae,"".concat(be).concat(me," > "))})}ce(ee)}function m(ee){function B(G){var ce=(0,ie.Z)(G);return ce.map(function(q){if(!L(q))return(0,O.ZP)(!q,"Tree/TreeNode can only accept TreeNode as children."),null;var be=q.key,xe=q.props,Le=xe.children,ae=(0,ke.Z)(xe,n),me=(0,se.Z)({key:be},ae),I=B(Le);return I.length&&(me.children=I),me}).filter(function(q){return q})}return B(ee)}function S(ee,B,G){var ce=a(G),q=ce._title,be=ce.key,xe=ce.children,Le=new Set(B===!0?[]:B),ae=[];function me(I){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return I.map(function(oe,he){for(var ve=o(_e?_e.pos:"0",he),_=p(oe[be],ve),N,X=0;X<q.length;X+=1){var pe=q[X];if(oe[pe]!==void 0){N=oe[pe];break}}var qe=(0,se.Z)((0,se.Z)({},(0,Y.Z)(oe,[].concat((0,Fe.Z)(q),[be,xe]))),{},{title:N,key:_,parent:_e,pos:ve,children:null,data:oe,isStart:[].concat((0,Fe.Z)(_e?_e.isStart:[]),[he===0]),isEnd:[].concat((0,Fe.Z)(_e?_e.isEnd:[]),[he===I.length-1])});return ae.push(qe),B===!0||Le.has(_)?qe.children=me(oe[xe]||[],qe):qe.children=[],qe})}return me(ee),ae}function K(ee,B,G){var ce={};(0,we.Z)(G)==="object"?ce=G:ce={externalGetKey:G},ce=ce||{};var q=ce,be=q.childrenPropName,xe=q.externalGetKey,Le=q.fieldNames,ae=a(Le),me=ae.key,I=ae.children,_e=be||I,oe;xe?typeof xe=="string"?oe=function(_){return _[xe]}:typeof xe=="function"&&(oe=function(_){return xe(_)}):oe=function(_,N){return p(_[me],N)};function he(ve,_,N,X){var pe=ve?ve[_e]:ee,qe=ve?o(N.pos,_):"0",at=ve?[].concat((0,Fe.Z)(X),[ve]):[];if(ve){var rt=oe(ve,qe),Rt={node:ve,index:_,pos:qe,key:rt,parentPos:N.node?N.pos:null,level:N.level+1,nodes:at};B(Rt)}pe&&pe.forEach(function(lr,qt){he(lr,qt,{node:ve,pos:qe,level:N?N.level+1:-1},at)})}he(null)}function F(ee){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=B.initWrapper,ce=B.processEntity,q=B.onProcessFinished,be=B.externalGetKey,xe=B.childrenPropName,Le=B.fieldNames,ae=arguments.length>2?arguments[2]:void 0,me=be||ae,I={},_e={},oe={posEntities:I,keyEntities:_e};return G&&(oe=G(oe)||oe),K(ee,function(he){var ve=he.node,_=he.index,N=he.pos,X=he.key,pe=he.parentPos,qe=he.level,at=he.nodes,rt={node:ve,nodes:at,index:_,key:X,pos:N,level:qe},Rt=p(X,N);I[N]=rt,_e[Rt]=rt,rt.parent=I[pe],rt.parent&&(rt.parent.children=rt.parent.children||[],rt.parent.children.push(rt)),ce&&ce(rt,oe)},{externalGetKey:me,childrenPropName:xe,fieldNames:Le}),q&&q(oe),oe}function H(ee,B){var G=B.expandedKeys,ce=B.selectedKeys,q=B.loadedKeys,be=B.loadingKeys,xe=B.checkedKeys,Le=B.halfCheckedKeys,ae=B.dragOverNodeKey,me=B.dropPosition,I=B.keyEntities,_e=(0,T.Z)(I,ee),oe={eventKey:ee,expanded:G.indexOf(ee)!==-1,selected:ce.indexOf(ee)!==-1,loaded:q.indexOf(ee)!==-1,loading:be.indexOf(ee)!==-1,checked:xe.indexOf(ee)!==-1,halfChecked:Le.indexOf(ee)!==-1,pos:String(_e?_e.pos:""),dragOver:ae===ee&&me===0,dragOverGapTop:ae===ee&&me===-1,dragOverGapBottom:ae===ee&&me===1};return oe}function V(ee){var B=ee.data,G=ee.expanded,ce=ee.selected,q=ee.checked,be=ee.loaded,xe=ee.loading,Le=ee.halfChecked,ae=ee.dragOver,me=ee.dragOverGapTop,I=ee.dragOverGapBottom,_e=ee.pos,oe=ee.active,he=ee.eventKey,ve=(0,se.Z)((0,se.Z)({},B),{},{expanded:G,selected:ce,checked:q,loaded:be,loading:xe,halfChecked:Le,dragOver:ae,dragOverGapTop:me,dragOverGapBottom:I,pos:_e,active:oe,key:he});return"props"in ve||Object.defineProperty(ve,"props",{get:function(){return(0,O.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ee}}),ve}},8178:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return Fe}});var we=g(4676);function Fe(se,ke,ie,Y){var O=we.unstable_batchedUpdates?function(n){we.unstable_batchedUpdates(ie,n)}:ie;return se!=null&&se.addEventListener&&se.addEventListener(ke,O,Y),{remove:function(){se!=null&&se.removeEventListener&&se.removeEventListener(ke,O,Y)}}}},21783:function(yn,Gt,g){"use strict";g.d(Gt,{g1:function(){return L},os:function(){return a}});var we=/margin|padding|width|height|max|min|offset/,Fe={left:!0,top:!0},se={cssFloat:1,styleFloat:1,float:1};function ke(A){return A.nodeType===1?A.ownerDocument.defaultView.getComputedStyle(A,null):{}}function ie(A,m,S){if(m=m.toLowerCase(),S==="auto"){if(m==="height")return A.offsetHeight;if(m==="width")return A.offsetWidth}return m in Fe||(Fe[m]=we.test(m)),Fe[m]?parseFloat(S)||0:S}function Y(A,m){var S=arguments.length,K=ke(A);return m=se[m]?"cssFloat"in A.style?"cssFloat":"styleFloat":m,S===1?K:ie(A,m,K[m]||A.style[m])}function O(A,m,S){var K=arguments.length;if(m=se[m]?"cssFloat"in A.style?"cssFloat":"styleFloat":m,K===3)return typeof S=="number"&&we.test(m)&&(S="".concat(S,"px")),A.style[m]=S,S;for(var F in m)m.hasOwnProperty(F)&&O(A,F,m[F]);return ke(A)}function T(A){return A===document.body?document.documentElement.clientWidth:A.offsetWidth}function n(A){return A===document.body?window.innerHeight||document.documentElement.clientHeight:A.offsetHeight}function o(){var A=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),m=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:A,height:m}}function L(){var A=document.documentElement.clientWidth,m=window.innerHeight||document.documentElement.clientHeight;return{width:A,height:m}}function p(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function a(A){var m=A.getBoundingClientRect(),S=document.documentElement;return{left:m.left+(window.pageXOffset||S.scrollLeft)-(S.clientLeft||document.body.clientLeft||0),top:m.top+(window.pageYOffset||S.scrollTop)-(S.clientTop||document.body.clientTop||0)}}},24387:function(yn,Gt,g){"use strict";g.d(Gt,{G:function(){return ke}});var we=g(87746),Fe=function(Y){if((0,we.Z)()&&window.document.documentElement){var O=Array.isArray(Y)?Y:[Y],T=window.document.documentElement;return O.some(function(n){return n in T.style})}return!1},se=function(Y,O){if(!Fe(Y))return!1;var T=document.createElement("div"),n=T.style[Y];return T.style[Y]=O,T.style[Y]!==n};function ke(ie,Y){return!Array.isArray(ie)&&Y!==void 0?se(ie,Y):Fe(ie)}},93144:function(yn,Gt){"use strict";Gt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var g=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(g)||/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(g==null?void 0:g.substr(0,4))}},21881:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return Me}});var we=g(5891),Fe=g(80665),se=g(57259),ke=g(80962),ie=g(29043),Y=g(19149),O=g(92310),T=g.n(O),n=g(29301),o=g(80764),L=g(28800),p=g(59301),a=g(4676),A=p.forwardRef(function(Tt,z){var v=Tt.height,f=Tt.offsetY,D=Tt.offsetX,de=Tt.children,W=Tt.prefixCls,P=Tt.onInnerResize,te=Tt.innerProps,Ie=Tt.rtl,Te=Tt.extra,Se={},Ge={display:"flex",flexDirection:"column"};return f!==void 0&&(Se={height:v,position:"relative",overflow:"hidden"},Ge=(0,se.Z)((0,se.Z)({},Ge),{},(0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)((0,ke.Z)({transform:"translateY(".concat(f,"px)")},Ie?"marginRight":"marginLeft",-D),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:Se},p.createElement(n.Z,{onResize:function(Ke){var Xe=Ke.offsetHeight;Xe&&P&&P()}},p.createElement("div",(0,we.Z)({style:Ge,className:T()((0,ke.Z)({},"".concat(W,"-holder-inner"),W)),ref:z},te),de,Te)))});A.displayName="Filler";var m=A;function S(Tt){var z=Tt.children,v=Tt.setRef,f=p.useCallback(function(D){v(D)},[]);return p.cloneElement(z,{ref:f})}function K(Tt,z,v,f,D,de,W,P){var te=P.getKey;return Tt.slice(z,v+1).map(function(Ie,Te){var Se=z+Te,Ge=W(Ie,Se,{style:{width:f},offsetX:D}),ft=te(Ie);return p.createElement(S,{key:ft,setRef:function(Xe){return de(Ie,Xe)}},Ge)})}function F(Tt,z,v,f){var D=v-Tt,de=z-v,W=Math.min(D,de)*2;if(f<=W){var P=Math.floor(f/2);return f%2?v+P+1:v-P}return D>de?v-(f-de):v+(f-D)}function H(Tt,z,v){var f=Tt.length,D=z.length,de,W;if(f===0&&D===0)return null;f<D?(de=Tt,W=z):(de=z,W=Tt);var P={__EMPTY_ITEM__:!0};function te(Ke){return Ke!==void 0?v(Ke):P}for(var Ie=null,Te=Math.abs(f-D)!==1,Se=0;Se<W.length;Se+=1){var Ge=te(de[Se]),ft=te(W[Se]);if(Ge!==ft){Ie=Se,Te=Te||Ge!==te(W[Se+1]);break}}return Ie===null?null:{index:Ie,multiple:Te}}function V(Tt,z,v){var f=p.useState(Tt),D=(0,ie.Z)(f,2),de=D[0],W=D[1],P=p.useState(null),te=(0,ie.Z)(P,2),Ie=te[0],Te=te[1];return p.useEffect(function(){var Se=H(de||[],Tt||[],z);(Se==null?void 0:Se.index)!==void 0&&(v==null||v(Se.index),Te(Tt[Se.index])),W(Tt)},[Tt]),[Ie]}var ee=g(23073),B=(typeof navigator=="undefined"?"undefined":(0,Fe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),G=B,ce=function(Tt,z,v,f){var D=(0,p.useRef)(!1),de=(0,p.useRef)(null);function W(){clearTimeout(de.current),D.current=!0,de.current=setTimeout(function(){D.current=!1},50)}var P=(0,p.useRef)({top:Tt,bottom:z,left:v,right:f});return P.current.top=Tt,P.current.bottom=z,P.current.left=v,P.current.right=f,function(te,Ie){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Se=te?Ie<0&&P.current.left||Ie>0&&P.current.right:Ie<0&&P.current.top||Ie>0&&P.current.bottom;return Te&&Se?(clearTimeout(de.current),D.current=!1):(!Se||D.current)&&W(),!D.current&&Se}};function q(Tt,z,v,f,D,de,W){var P=(0,p.useRef)(0),te=(0,p.useRef)(null),Ie=(0,p.useRef)(null),Te=(0,p.useRef)(!1),Se=ce(z,v,f,D);function Ge($e,Bt){if(ee.Z.cancel(te.current),!Se(!1,Bt)){var Kt=$e;if(!Kt._virtualHandled)Kt._virtualHandled=!0;else return;P.current+=Bt,Ie.current=Bt,G||Kt.preventDefault(),te.current=(0,ee.Z)(function(){var Mt=Te.current?10:1;W(P.current*Mt,!1),P.current=0})}}function ft($e,Bt){W(Bt,!0),G||$e.preventDefault()}var Ke=(0,p.useRef)(null),Xe=(0,p.useRef)(null);function At($e){if(Tt){ee.Z.cancel(Xe.current),Xe.current=(0,ee.Z)(function(){Ke.current=null},2);var Bt=$e.deltaX,Kt=$e.deltaY,Mt=$e.shiftKey,wr=Bt,vr=Kt;(Ke.current==="sx"||!Ke.current&&Mt&&Kt&&!Bt)&&(wr=Kt,vr=0,Ke.current="sx");var re=Math.abs(wr),le=Math.abs(vr);Ke.current===null&&(Ke.current=de&&re>le?"x":"y"),Ke.current==="y"?Ge($e,vr):ft($e,wr)}}function We($e){Tt&&(Te.current=$e.detail===Ie.current)}return[At,We]}function be(Tt,z,v,f){var D=p.useMemo(function(){return[new Map,[]]},[Tt,v.id,f]),de=(0,ie.Z)(D,2),W=de[0],P=de[1],te=function(Te){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Te,Ge=W.get(Te),ft=W.get(Se);if(Ge===void 0||ft===void 0)for(var Ke=Tt.length,Xe=P.length;Xe<Ke;Xe+=1){var At,We=Tt[Xe],$e=z(We);W.set($e,Xe);var Bt=(At=v.get($e))!==null&&At!==void 0?At:f;if(P[Xe]=(P[Xe-1]||0)+Bt,$e===Te&&(Ge=Xe),$e===Se&&(ft=Xe),Ge!==void 0&&ft!==void 0)break}return{top:P[Ge-1]||0,bottom:P[ft]}};return te}var xe=g(85899),Le=g(79545),ae=g(68550),me=function(){function Tt(){(0,Le.Z)(this,Tt),(0,ke.Z)(this,"maps",void 0),(0,ke.Z)(this,"id",0),(0,ke.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,ae.Z)(Tt,[{key:"set",value:function(v,f){this.maps[v]=f,this.id+=1,this.diffKeys.add(v)}},{key:"get",value:function(v){return this.maps[v]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Tt}(),I=me;function _e(Tt){var z=parseFloat(Tt);return isNaN(z)?0:z}function oe(Tt,z,v){var f=p.useState(0),D=(0,ie.Z)(f,2),de=D[0],W=D[1],P=(0,p.useRef)(new Map),te=(0,p.useRef)(new I),Ie=(0,p.useRef)(0);function Te(){Ie.current+=1}function Se(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Te();var Ke=function(){var We=!1;P.current.forEach(function($e,Bt){if($e&&$e.offsetParent){var Kt=(0,xe.ZP)($e),Mt=Kt.offsetHeight,wr=getComputedStyle(Kt),vr=wr.marginTop,re=wr.marginBottom,le=_e(vr),rr=_e(re),Ue=Mt+le+rr;te.current.get(Bt)!==Ue&&(te.current.set(Bt,Ue),We=!0)}}),We&&W(function($e){return $e+1})};if(ft)Ke();else{Ie.current+=1;var Xe=Ie.current;Promise.resolve().then(function(){Xe===Ie.current&&Ke()})}}function Ge(ft,Ke){var Xe=Tt(ft),At=P.current.get(Xe);Ke?(P.current.set(Xe,Ke),Se()):P.current.delete(Xe),!At!=!Ke&&(Ke?z==null||z(ft):v==null||v(ft))}return(0,p.useEffect)(function(){return Te},[]),[Ge,Se,te.current,de]}var he=14/15;function ve(Tt,z,v){var f=(0,p.useRef)(!1),D=(0,p.useRef)(0),de=(0,p.useRef)(0),W=(0,p.useRef)(null),P=(0,p.useRef)(null),te,Ie=function(ft){if(f.current){var Ke=Math.ceil(ft.touches[0].pageX),Xe=Math.ceil(ft.touches[0].pageY),At=D.current-Ke,We=de.current-Xe,$e=Math.abs(At)>Math.abs(We);$e?D.current=Ke:de.current=Xe;var Bt=v($e,$e?At:We,!1,ft);Bt&&ft.preventDefault(),clearInterval(P.current),Bt&&(P.current=setInterval(function(){$e?At*=he:We*=he;var Kt=Math.floor($e?At:We);(!v($e,Kt,!0)||Math.abs(Kt)<=.1)&&clearInterval(P.current)},16))}},Te=function(){f.current=!1,te()},Se=function(ft){te(),ft.touches.length===1&&!f.current&&(f.current=!0,D.current=Math.ceil(ft.touches[0].pageX),de.current=Math.ceil(ft.touches[0].pageY),W.current=ft.target,W.current.addEventListener("touchmove",Ie,{passive:!1}),W.current.addEventListener("touchend",Te,{passive:!0}))};te=function(){W.current&&(W.current.removeEventListener("touchmove",Ie),W.current.removeEventListener("touchend",Te))},(0,L.Z)(function(){return Tt&&z.current.addEventListener("touchstart",Se,{passive:!0}),function(){var Ge;(Ge=z.current)===null||Ge===void 0||Ge.removeEventListener("touchstart",Se),te(),clearInterval(P.current)}},[Tt])}function _(Tt){return Math.floor(Math.pow(Tt,.5))}function N(Tt,z){var v="touches"in Tt?Tt.touches[0]:Tt;return v[z?"pageX":"pageY"]-window[z?"scrollX":"scrollY"]}function X(Tt,z,v){p.useEffect(function(){var f=z.current;if(Tt&&f){var D=!1,de,W,P=function(){ee.Z.cancel(de)},te=function Ge(){P(),de=(0,ee.Z)(function(){v(W),Ge()})},Ie=function(ft){var Ke=ft;Ke._virtualHandled||(Ke._virtualHandled=!0,D=!0)},Te=function(){D=!1,P()},Se=function(ft){if(D){var Ke=N(ft,!1),Xe=f.getBoundingClientRect(),At=Xe.top,We=Xe.bottom;if(Ke<=At){var $e=At-Ke;W=-_($e),te()}else if(Ke>=We){var Bt=Ke-We;W=_(Bt),te()}else P()}};return f.addEventListener("mousedown",Ie),f.ownerDocument.addEventListener("mouseup",Te),f.ownerDocument.addEventListener("mousemove",Se),function(){f.removeEventListener("mousedown",Ie),f.ownerDocument.removeEventListener("mouseup",Te),f.ownerDocument.removeEventListener("mousemove",Se),P()}}},[Tt])}var pe=10;function qe(Tt,z,v,f,D,de,W,P){var te=p.useRef(),Ie=p.useState(null),Te=(0,ie.Z)(Ie,2),Se=Te[0],Ge=Te[1];return(0,L.Z)(function(){if(Se&&Se.times<pe){if(!Tt.current){Ge(function(dt){return(0,se.Z)({},dt)});return}de();var ft=Se.targetAlign,Ke=Se.originAlign,Xe=Se.index,At=Se.offset,We=Tt.current.clientHeight,$e=!1,Bt=ft,Kt=null;if(We){for(var Mt=ft||Ke,wr=0,vr=0,re=0,le=Math.min(z.length-1,Xe),rr=0;rr<=le;rr+=1){var Ue=D(z[rr]);vr=wr;var ot=v.get(Ue);re=vr+(ot===void 0?f:ot),wr=re}for(var Yr=Mt==="top"?At:We-At,St=le;St>=0;St-=1){var Vt=D(z[St]),Zt=v.get(Vt);if(Zt===void 0){$e=!0;break}if(Yr-=Zt,Yr<=0)break}switch(Mt){case"top":Kt=vr-At;break;case"bottom":Kt=re-We+At;break;default:{var nt=Tt.current.scrollTop,ct=nt+We;vr<nt?Bt="top":re>ct&&(Bt="bottom")}}Kt!==null&&W(Kt),Kt!==Se.lastTop&&($e=!0)}$e&&Ge((0,se.Z)((0,se.Z)({},Se),{},{times:Se.times+1,targetAlign:Bt,lastTop:Kt}))}},[Se,Tt.current]),function(ft){if(ft==null){P();return}if(ee.Z.cancel(te.current),typeof ft=="number")W(ft);else if(ft&&(0,Fe.Z)(ft)==="object"){var Ke,Xe=ft.align;"index"in ft?Ke=ft.index:Ke=z.findIndex(function($e){return D($e)===ft.key});var At=ft.offset,We=At===void 0?0:At;Ge({times:0,index:Ke,offset:We,originAlign:Xe})}}}var at=p.forwardRef(function(Tt,z){var v=Tt.prefixCls,f=Tt.rtl,D=Tt.scrollOffset,de=Tt.scrollRange,W=Tt.onStartMove,P=Tt.onStopMove,te=Tt.onScroll,Ie=Tt.horizontal,Te=Tt.spinSize,Se=Tt.containerSize,Ge=Tt.style,ft=Tt.thumbStyle,Ke=p.useState(!1),Xe=(0,ie.Z)(Ke,2),At=Xe[0],We=Xe[1],$e=p.useState(null),Bt=(0,ie.Z)($e,2),Kt=Bt[0],Mt=Bt[1],wr=p.useState(null),vr=(0,ie.Z)(wr,2),re=vr[0],le=vr[1],rr=!f,Ue=p.useRef(),ot=p.useRef(),Yr=p.useState(!1),St=(0,ie.Z)(Yr,2),Vt=St[0],Zt=St[1],nt=p.useRef(),ct=function(){clearTimeout(nt.current),Zt(!0),nt.current=setTimeout(function(){Zt(!1)},3e3)},dt=de-Se||0,Xt=Se-Te||0,Re=p.useMemo(function(){if(D===0||dt===0)return 0;var Yt=D/dt;return Yt*Xt},[D,dt,Xt]),fn=function(kr){kr.stopPropagation(),kr.preventDefault()},kt=p.useRef({top:Re,dragging:At,pageY:Kt,startTop:re});kt.current={top:Re,dragging:At,pageY:Kt,startTop:re};var Nn=function(kr){We(!0),Mt(N(kr,Ie)),le(kt.current.top),W(),kr.stopPropagation(),kr.preventDefault()};p.useEffect(function(){var Yt=function(_t){_t.preventDefault()},kr=Ue.current,tn=ot.current;return kr.addEventListener("touchstart",Yt,{passive:!1}),tn.addEventListener("touchstart",Nn,{passive:!1}),function(){kr.removeEventListener("touchstart",Yt),tn.removeEventListener("touchstart",Nn)}},[]);var Jn=p.useRef();Jn.current=dt;var vi=p.useRef();vi.current=Xt,p.useEffect(function(){if(At){var Yt,kr=function(_t){var Ir=kt.current,Dr=Ir.dragging,In=Ir.pageY,qr=Ir.startTop;ee.Z.cancel(Yt);var Sn=Ue.current.getBoundingClientRect(),hn=Se/(Ie?Sn.width:Sn.height);if(Dr){var $n=(N(_t,Ie)-In)*hn,ri=qr;!rr&&Ie?ri-=$n:ri+=$n;var Hr=Jn.current,zr=vi.current,Tn=zr?ri/zr:0,Bn=Math.ceil(Tn*Hr);Bn=Math.max(Bn,0),Bn=Math.min(Bn,Hr),Yt=(0,ee.Z)(function(){te(Bn,Ie)})}},tn=function(){We(!1),P()};return window.addEventListener("mousemove",kr,{passive:!0}),window.addEventListener("touchmove",kr,{passive:!0}),window.addEventListener("mouseup",tn,{passive:!0}),window.addEventListener("touchend",tn,{passive:!0}),function(){window.removeEventListener("mousemove",kr),window.removeEventListener("touchmove",kr),window.removeEventListener("mouseup",tn),window.removeEventListener("touchend",tn),ee.Z.cancel(Yt)}}},[At]),p.useEffect(function(){return ct(),function(){clearTimeout(nt.current)}},[D]),p.useImperativeHandle(z,function(){return{delayHidden:ct}});var Fi="".concat(v,"-scrollbar"),Mn={position:"absolute",visibility:Vt?null:"hidden"},Hn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ie?(Mn.height=8,Mn.left=0,Mn.right=0,Mn.bottom=0,Hn.height="100%",Hn.width=Te,rr?Hn.left=Re:Hn.right=Re):(Mn.width=8,Mn.top=0,Mn.bottom=0,rr?Mn.right=0:Mn.left=0,Hn.width="100%",Hn.height=Te,Hn.top=Re),p.createElement("div",{ref:Ue,className:T()(Fi,(0,ke.Z)((0,ke.Z)((0,ke.Z)({},"".concat(Fi,"-horizontal"),Ie),"".concat(Fi,"-vertical"),!Ie),"".concat(Fi,"-visible"),Vt)),style:(0,se.Z)((0,se.Z)({},Mn),Ge),onMouseDown:fn,onMouseMove:ct},p.createElement("div",{ref:ot,className:T()("".concat(Fi,"-thumb"),(0,ke.Z)({},"".concat(Fi,"-thumb-moving"),At)),style:(0,se.Z)((0,se.Z)({},Hn),ft),onMouseDown:Nn}))}),rt=at,Rt=20;function lr(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=Tt/z*Tt;return isNaN(v)&&(v=0),v=Math.max(v,Rt),Math.floor(v)}var qt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Ze=[],Er={overflowY:"auto",overflowAnchor:"none"};function Cr(Tt,z){var v=Tt.prefixCls,f=v===void 0?"rc-virtual-list":v,D=Tt.className,de=Tt.height,W=Tt.itemHeight,P=Tt.fullHeight,te=P===void 0?!0:P,Ie=Tt.style,Te=Tt.data,Se=Tt.children,Ge=Tt.itemKey,ft=Tt.virtual,Ke=Tt.direction,Xe=Tt.scrollWidth,At=Tt.component,We=At===void 0?"div":At,$e=Tt.onScroll,Bt=Tt.onVirtualScroll,Kt=Tt.onVisibleChange,Mt=Tt.innerProps,wr=Tt.extraRender,vr=Tt.styles,re=(0,Y.Z)(Tt,qt),le=p.useCallback(function(_i){return typeof Ge=="function"?Ge(_i):_i==null?void 0:_i[Ge]},[Ge]),rr=oe(le,null,null),Ue=(0,ie.Z)(rr,4),ot=Ue[0],Yr=Ue[1],St=Ue[2],Vt=Ue[3],Zt=!!(ft!==!1&&de&&W),nt=p.useMemo(function(){return Object.values(St.maps).reduce(function(_i,yi){return _i+yi},0)},[St.id,St.maps]),ct=Zt&&Te&&(Math.max(W*Te.length,nt)>de||!!Xe),dt=Ke==="rtl",Xt=T()(f,(0,ke.Z)({},"".concat(f,"-rtl"),dt),D),Re=Te||Ze,fn=(0,p.useRef)(),kt=(0,p.useRef)(),Nn=(0,p.useRef)(),Jn=(0,p.useState)(0),vi=(0,ie.Z)(Jn,2),Fi=vi[0],Mn=vi[1],Hn=(0,p.useState)(0),Yt=(0,ie.Z)(Hn,2),kr=Yt[0],tn=Yt[1],Nt=(0,p.useState)(!1),_t=(0,ie.Z)(Nt,2),Ir=_t[0],Dr=_t[1],In=function(){Dr(!0)},qr=function(){Dr(!1)},Sn={getKey:le};function hn(_i){Mn(function(yi){var Si;typeof _i=="function"?Si=_i(yi):Si=_i;var ra=Qi(Si);return fn.current.scrollTop=ra,ra})}var $n=(0,p.useRef)({start:0,end:Re.length}),ri=(0,p.useRef)(),Hr=V(Re,le),zr=(0,ie.Z)(Hr,1),Tn=zr[0];ri.current=Tn;var Bn=p.useMemo(function(){if(!Zt)return{scrollHeight:void 0,start:0,end:Re.length-1,offset:void 0};if(!ct){var _i;return{scrollHeight:((_i=kt.current)===null||_i===void 0?void 0:_i.offsetHeight)||0,start:0,end:Re.length-1,offset:void 0}}for(var yi=0,Si,ra,Aa,es=Re.length,ps=0;ps<es;ps+=1){var hi=Re[ps],Ca=le(hi),ma=St.get(Ca),ka=yi+(ma===void 0?W:ma);ka>=Fi&&Si===void 0&&(Si=ps,ra=yi),ka>Fi+de&&Aa===void 0&&(Aa=ps),yi=ka}return Si===void 0&&(Si=0,ra=0,Aa=Math.ceil(de/W)),Aa===void 0&&(Aa=Re.length-1),Aa=Math.min(Aa+1,Re.length-1),{scrollHeight:yi,start:Si,end:Aa,offset:ra}},[ct,Zt,Fi,Re,Vt,de]),Qn=Bn.scrollHeight,Xn=Bn.start,Hi=Bn.end,fi=Bn.offset;$n.current.start=Xn,$n.current.end=Hi,p.useLayoutEffect(function(){var _i=St.getRecord();if(_i.size===1){var yi=Array.from(_i)[0],Si=le(Re[Xn]);if(Si===yi){var ra=St.get(yi),Aa=ra-W;hn(function(es){return es+Aa})}}St.resetRecord()},[Qn]);var wn=p.useState({width:0,height:de}),hr=(0,ie.Z)(wn,2),yr=hr[0],Pr=hr[1],Zr=function(yi){Pr({width:yi.offsetWidth,height:yi.offsetHeight})},Qr=(0,p.useRef)(),on=(0,p.useRef)(),en=p.useMemo(function(){return lr(yr.width,Xe)},[yr.width,Xe]),jn=p.useMemo(function(){return lr(yr.height,Qn)},[yr.height,Qn]),qn=Qn-de,oi=(0,p.useRef)(qn);oi.current=qn;function Qi(_i){var yi=_i;return Number.isNaN(oi.current)||(yi=Math.min(yi,oi.current)),yi=Math.max(yi,0),yi}var Ri=Fi<=0,ki=Fi>=qn,Tr=kr<=0,_n=kr>=Xe,gn=ce(Ri,ki,Tr,_n),ui=function(){return{x:dt?-kr:kr,y:Fi}},ii=(0,p.useRef)(ui()),ti=(0,o.useEvent)(function(_i){if(Bt){var yi=(0,se.Z)((0,se.Z)({},ui()),_i);(ii.current.x!==yi.x||ii.current.y!==yi.y)&&(Bt(yi),ii.current=yi)}});function wi(_i,yi){var Si=_i;yi?((0,a.flushSync)(function(){tn(Si)}),ti()):hn(Si)}function Pi(_i){var yi=_i.currentTarget.scrollTop;yi!==Fi&&hn(yi),$e==null||$e(_i),ti()}var Bi=function(yi){var Si=yi,ra=Xe?Xe-yr.width:0;return Si=Math.max(Si,0),Si=Math.min(Si,ra),Si},zi=(0,o.useEvent)(function(_i,yi){yi?((0,a.flushSync)(function(){tn(function(Si){var ra=Si+(dt?-_i:_i);return Bi(ra)})}),ti()):hn(function(Si){var ra=Si+_i;return ra})}),ca=q(Zt,Ri,ki,Tr,_n,!!Xe,zi),xi=(0,ie.Z)(ca,2),vn=xi[0],Ht=xi[1];ve(Zt,fn,function(_i,yi,Si,ra){var Aa=ra;return gn(_i,yi,Si)?!1:!Aa||!Aa._virtualHandled?(Aa&&(Aa._virtualHandled=!0),vn({preventDefault:function(){},deltaX:_i?yi:0,deltaY:_i?0:yi}),!0):!1}),X(ct,fn,function(_i){hn(function(yi){return yi+_i})}),(0,L.Z)(function(){function _i(Si){var ra=Ri&&Si.detail<0,Aa=ki&&Si.detail>0;Zt&&!ra&&!Aa&&Si.preventDefault()}var yi=fn.current;return yi.addEventListener("wheel",vn,{passive:!1}),yi.addEventListener("DOMMouseScroll",Ht,{passive:!0}),yi.addEventListener("MozMousePixelScroll",_i,{passive:!1}),function(){yi.removeEventListener("wheel",vn),yi.removeEventListener("DOMMouseScroll",Ht),yi.removeEventListener("MozMousePixelScroll",_i)}},[Zt,Ri,ki]),(0,L.Z)(function(){if(Xe){var _i=Bi(kr);tn(_i),ti({x:_i})}},[yr.width,Xe]);var Ln=function(){var yi,Si;(yi=Qr.current)===null||yi===void 0||yi.delayHidden(),(Si=on.current)===null||Si===void 0||Si.delayHidden()},Gn=qe(fn,Re,St,W,le,function(){return Yr(!0)},hn,Ln);p.useImperativeHandle(z,function(){return{nativeElement:Nn.current,getScrollInfo:ui,scrollTo:function(yi){function Si(ra){return ra&&(0,Fe.Z)(ra)==="object"&&("left"in ra||"top"in ra)}Si(yi)?(yi.left!==void 0&&tn(Bi(yi.left)),Gn(yi.top)):Gn(yi)}}}),(0,L.Z)(function(){if(Kt){var _i=Re.slice(Xn,Hi+1);Kt(_i,Re)}},[Xn,Hi,Re]);var Ci=be(Re,le,St,W),ji=wr==null?void 0:wr({start:Xn,end:Hi,virtual:ct,offsetX:kr,offsetY:fi,rtl:dt,getSize:Ci}),fa=K(Re,Xn,Hi,Xe,kr,ot,Se,Sn),va=null;de&&(va=(0,se.Z)((0,ke.Z)({},te?"height":"maxHeight",de),Er),Zt&&(va.overflowY="hidden",Xe&&(va.overflowX="hidden"),Ir&&(va.pointerEvents="none")));var ea={};return dt&&(ea.dir="rtl"),p.createElement("div",(0,we.Z)({ref:Nn,style:(0,se.Z)((0,se.Z)({},Ie),{},{position:"relative"}),className:Xt},ea,re),p.createElement(n.Z,{onResize:Zr},p.createElement(We,{className:"".concat(f,"-holder"),style:va,ref:fn,onScroll:Pi,onMouseEnter:Ln},p.createElement(m,{prefixCls:f,height:Qn,offsetX:kr,offsetY:fi,scrollWidth:Xe,onInnerResize:Yr,ref:kt,innerProps:Mt,rtl:dt,extra:ji},fa))),ct&&Qn>de&&p.createElement(rt,{ref:Qr,prefixCls:f,scrollOffset:Fi,scrollRange:Qn,rtl:dt,onScroll:wi,onStartMove:In,onStopMove:qr,spinSize:jn,containerSize:yr.height,style:vr==null?void 0:vr.verticalScrollBar,thumbStyle:vr==null?void 0:vr.verticalScrollBarThumb}),ct&&Xe>yr.width&&p.createElement(rt,{ref:on,prefixCls:f,scrollOffset:kr,scrollRange:Xe,rtl:dt,onScroll:wi,onStartMove:In,onStopMove:qr,spinSize:en,containerSize:yr.width,horizontal:!0,style:vr==null?void 0:vr.horizontalScrollBar,thumbStyle:vr==null?void 0:vr.horizontalScrollBarThumb}))}var Kr=p.forwardRef(Cr);Kr.displayName="List";var _r=Kr,Me=_r},83145:function(yn,Gt,g){"use strict";Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.CopyToClipboard=void 0;var we=se(g(59301)),Fe=se(g(25769));function se(H){return H&&H.__esModule?H:{default:H}}function ke(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ke=function(ee){return typeof ee}:ke=function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},ke(H)}function ie(H,V){var ee=Object.keys(H);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(H);V&&(B=B.filter(function(G){return Object.getOwnPropertyDescriptor(H,G).enumerable})),ee.push.apply(ee,B)}return ee}function Y(H){for(var V=1;V<arguments.length;V++){var ee=arguments[V]!=null?arguments[V]:{};V%2?ie(ee,!0).forEach(function(B){K(H,B,ee[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(ee)):ie(ee).forEach(function(B){Object.defineProperty(H,B,Object.getOwnPropertyDescriptor(ee,B))})}return H}function O(H,V){if(H==null)return{};var ee=T(H,V),B,G;if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(H);for(G=0;G<ce.length;G++)B=ce[G],!(V.indexOf(B)>=0)&&Object.prototype.propertyIsEnumerable.call(H,B)&&(ee[B]=H[B])}return ee}function T(H,V){if(H==null)return{};var ee={},B=Object.keys(H),G,ce;for(ce=0;ce<B.length;ce++)G=B[ce],!(V.indexOf(G)>=0)&&(ee[G]=H[G]);return ee}function n(H,V){if(!(H instanceof V))throw new TypeError("Cannot call a class as a function")}function o(H,V){for(var ee=0;ee<V.length;ee++){var B=V[ee];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(H,B.key,B)}}function L(H,V,ee){return V&&o(H.prototype,V),ee&&o(H,ee),H}function p(H,V){return V&&(ke(V)==="object"||typeof V=="function")?V:A(H)}function a(H){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},a(H)}function A(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function m(H,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(V&&V.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),V&&S(H,V)}function S(H,V){return S=Object.setPrototypeOf||function(B,G){return B.__proto__=G,B},S(H,V)}function K(H,V,ee){return V in H?Object.defineProperty(H,V,{value:ee,enumerable:!0,configurable:!0,writable:!0}):H[V]=ee,H}var F=function(H){m(V,H);function V(){var ee,B;n(this,V);for(var G=arguments.length,ce=new Array(G),q=0;q<G;q++)ce[q]=arguments[q];return B=p(this,(ee=a(V)).call.apply(ee,[this].concat(ce))),K(A(B),"onClick",function(be){var xe=B.props,Le=xe.text,ae=xe.onCopy,me=xe.children,I=xe.options,_e=we.default.Children.only(me),oe=(0,Fe.default)(Le,I);ae&&ae(Le,oe),_e&&_e.props&&typeof _e.props.onClick=="function"&&_e.props.onClick(be)}),B}return L(V,[{key:"render",value:function(){var B=this.props,G=B.text,ce=B.onCopy,q=B.options,be=B.children,xe=O(B,["text","onCopy","options","children"]),Le=we.default.Children.only(be);return we.default.cloneElement(Le,Y({},xe,{onClick:this.onClick}))}}]),V}(we.default.PureComponent);Gt.CopyToClipboard=F,K(F,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(yn,Gt,g){"use strict";var we=g(83145),Fe=we.CopyToClipboard;Fe.CopyToClipboard=Fe,yn.exports=Fe},76374:function(yn,Gt,g){"use strict";var we=function(){if(typeof Map!="undefined")return Map;function me(I,_e){var oe=-1;return I.some(function(he,ve){return he[0]===_e?(oe=ve,!0):!1}),oe}return function(){function I(){this.__entries__=[]}return Object.defineProperty(I.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),I.prototype.get=function(_e){var oe=me(this.__entries__,_e),he=this.__entries__[oe];return he&&he[1]},I.prototype.set=function(_e,oe){var he=me(this.__entries__,_e);~he?this.__entries__[he][1]=oe:this.__entries__.push([_e,oe])},I.prototype.delete=function(_e){var oe=this.__entries__,he=me(oe,_e);~he&&oe.splice(he,1)},I.prototype.has=function(_e){return!!~me(this.__entries__,_e)},I.prototype.clear=function(){this.__entries__.splice(0)},I.prototype.forEach=function(_e,oe){oe===void 0&&(oe=null);for(var he=0,ve=this.__entries__;he<ve.length;he++){var _=ve[he];_e.call(oe,_[1],_[0])}},I}()}(),Fe=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,se=function(){return typeof g.g!="undefined"&&g.g.Math===Math?g.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ke=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(se):function(me){return setTimeout(function(){return me(Date.now())},1e3/60)}}(),ie=2;function Y(me,I){var _e=!1,oe=!1,he=0;function ve(){_e&&(_e=!1,me()),oe&&N()}function _(){ke(ve)}function N(){var X=Date.now();if(_e){if(X-he<ie)return;oe=!0}else _e=!0,oe=!1,setTimeout(_,I);he=X}return N}var O=20,T=["top","right","bottom","left","width","height","size","weight"],n=typeof MutationObserver!="undefined",o=function(){function me(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Y(this.refresh.bind(this),O)}return me.prototype.addObserver=function(I){~this.observers_.indexOf(I)||this.observers_.push(I),this.connected_||this.connect_()},me.prototype.removeObserver=function(I){var _e=this.observers_,oe=_e.indexOf(I);~oe&&_e.splice(oe,1),!_e.length&&this.connected_&&this.disconnect_()},me.prototype.refresh=function(){var I=this.updateObservers_();I&&this.refresh()},me.prototype.updateObservers_=function(){var I=this.observers_.filter(function(_e){return _e.gatherActive(),_e.hasActive()});return I.forEach(function(_e){return _e.broadcastActive()}),I.length>0},me.prototype.connect_=function(){!Fe||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),n?(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)},me.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)},me.prototype.onTransitionEnd_=function(I){var _e=I.propertyName,oe=_e===void 0?"":_e,he=T.some(function(ve){return!!~oe.indexOf(ve)});he&&this.refresh()},me.getInstance=function(){return this.instance_||(this.instance_=new me),this.instance_},me.instance_=null,me}(),L=function(me,I){for(var _e=0,oe=Object.keys(I);_e<oe.length;_e++){var he=oe[_e];Object.defineProperty(me,he,{value:I[he],enumerable:!1,writable:!1,configurable:!0})}return me},p=function(me){var I=me&&me.ownerDocument&&me.ownerDocument.defaultView;return I||se},a=G(0,0,0,0);function A(me){return parseFloat(me)||0}function m(me){for(var I=[],_e=1;_e<arguments.length;_e++)I[_e-1]=arguments[_e];return I.reduce(function(oe,he){var ve=me["border-"+he+"-width"];return oe+A(ve)},0)}function S(me){for(var I=["top","right","bottom","left"],_e={},oe=0,he=I;oe<he.length;oe++){var ve=he[oe],_=me["padding-"+ve];_e[ve]=A(_)}return _e}function K(me){var I=me.getBBox();return G(0,0,I.width,I.height)}function F(me){var I=me.clientWidth,_e=me.clientHeight;if(!I&&!_e)return a;var oe=p(me).getComputedStyle(me),he=S(oe),ve=he.left+he.right,_=he.top+he.bottom,N=A(oe.width),X=A(oe.height);if(oe.boxSizing==="border-box"&&(Math.round(N+ve)!==I&&(N-=m(oe,"left","right")+ve),Math.round(X+_)!==_e&&(X-=m(oe,"top","bottom")+_)),!V(me)){var pe=Math.round(N+ve)-I,qe=Math.round(X+_)-_e;Math.abs(pe)!==1&&(N-=pe),Math.abs(qe)!==1&&(X-=qe)}return G(he.left,he.top,N,X)}var H=function(){return typeof SVGGraphicsElement!="undefined"?function(me){return me instanceof p(me).SVGGraphicsElement}:function(me){return me instanceof p(me).SVGElement&&typeof me.getBBox=="function"}}();function V(me){return me===p(me).document.documentElement}function ee(me){return Fe?H(me)?K(me):F(me):a}function B(me){var I=me.x,_e=me.y,oe=me.width,he=me.height,ve=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,_=Object.create(ve.prototype);return L(_,{x:I,y:_e,width:oe,height:he,top:_e,right:I+oe,bottom:he+_e,left:I}),_}function G(me,I,_e,oe){return{x:me,y:I,width:_e,height:oe}}var ce=function(){function me(I){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=G(0,0,0,0),this.target=I}return me.prototype.isActive=function(){var I=ee(this.target);return this.contentRect_=I,I.width!==this.broadcastWidth||I.height!==this.broadcastHeight},me.prototype.broadcastRect=function(){var I=this.contentRect_;return this.broadcastWidth=I.width,this.broadcastHeight=I.height,I},me}(),q=function(){function me(I,_e){var oe=B(_e);L(this,{target:I,contentRect:oe})}return me}(),be=function(){function me(I,_e,oe){if(this.activeObservations_=[],this.observations_=new we,typeof I!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=I,this.controller_=_e,this.callbackCtx_=oe}return me.prototype.observe=function(I){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(I instanceof p(I).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(I)||(_e.set(I,new ce(I)),this.controller_.addObserver(this),this.controller_.refresh())}},me.prototype.unobserve=function(I){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(I instanceof p(I).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(I)&&(_e.delete(I),_e.size||this.controller_.removeObserver(this))}},me.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},me.prototype.gatherActive=function(){var I=this;this.clearActive(),this.observations_.forEach(function(_e){_e.isActive()&&I.activeObservations_.push(_e)})},me.prototype.broadcastActive=function(){if(this.hasActive()){var I=this.callbackCtx_,_e=this.activeObservations_.map(function(oe){return new q(oe.target,oe.broadcastRect())});this.callback_.call(I,_e,I),this.clearActive()}},me.prototype.clearActive=function(){this.activeObservations_.splice(0)},me.prototype.hasActive=function(){return this.activeObservations_.length>0},me}(),xe=typeof WeakMap!="undefined"?new WeakMap:new we,Le=function(){function me(I){if(!(this instanceof me))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var _e=o.getInstance(),oe=new be(I,_e,this);xe.set(this,oe)}return me}();["observe","unobserve","disconnect"].forEach(function(me){Le.prototype[me]=function(){var I;return(I=xe.get(this))[me].apply(I,arguments)}});var ae=function(){return typeof se.ResizeObserver!="undefined"?se.ResizeObserver:Le}();Gt.Z=ae},98040:function(yn){yn.exports=function(){var Gt=document.getSelection();if(!Gt.rangeCount)return function(){};for(var g=document.activeElement,we=[],Fe=0;Fe<Gt.rangeCount;Fe++)we.push(Gt.getRangeAt(Fe));switch(g.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":g.blur();break;default:g=null;break}return Gt.removeAllRanges(),function(){Gt.type==="Caret"&&Gt.removeAllRanges(),Gt.rangeCount||we.forEach(function(se){Gt.addRange(se)}),g&&g.focus()}}},1012:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return p}});var we=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 se(){if(!we)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return we(Fe)}var ke=/^(?:[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 ie(a){return typeof a=="string"&&ke.test(a)}for(var Y=ie,O=[],T=0;T<256;++T)O.push((T+256).toString(16).substr(1));function n(a){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=(O[a[A+0]]+O[a[A+1]]+O[a[A+2]]+O[a[A+3]]+"-"+O[a[A+4]]+O[a[A+5]]+"-"+O[a[A+6]]+O[a[A+7]]+"-"+O[a[A+8]]+O[a[A+9]]+"-"+O[a[A+10]]+O[a[A+11]]+O[a[A+12]]+O[a[A+13]]+O[a[A+14]]+O[a[A+15]]).toLowerCase();if(!Y(m))throw TypeError("Stringified UUID is invalid");return m}var o=n;function L(a,A,m){a=a||{};var S=a.random||(a.rng||se)();if(S[6]=S[6]&15|64,S[8]=S[8]&63|128,A){m=m||0;for(var K=0;K<16;++K)A[m+K]=S[K];return A}return o(S)}var p=L},93314:function(yn){"use strict";yn.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=="},37312:function(yn,Gt,g){"use strict";g.d(Gt,{ZP:function(){return Al}});function we(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var Fe={exports:{}};(function(d,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,s=/(?:\/|^)\.(?=\/)/g,l=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,x={buildAbsoluteURL:function(j,J,fe){if(fe=fe||{},j=j.trim(),J=J.trim(),!J){if(!fe.alwaysNormalize)return j;var Oe=x.parseURL(j);if(!Oe)throw new Error("Error trying to parse base URL.");return Oe.path=x.normalizePath(Oe.path),x.buildURLFromParts(Oe)}var Ve=x.parseURL(J);if(!Ve)throw new Error("Error trying to parse relative URL.");if(Ve.scheme)return fe.alwaysNormalize?(Ve.path=x.normalizePath(Ve.path),x.buildURLFromParts(Ve)):J;var Je=x.parseURL(j);if(!Je)throw new Error("Error trying to parse base URL.");if(!Je.netLoc&&Je.path&&Je.path[0]!=="/"){var ut=i.exec(Je.path);Je.netLoc=ut[1],Je.path=ut[2]}Je.netLoc&&!Je.path&&(Je.path="/");var Ct={scheme:Je.scheme,netLoc:Ve.netLoc,path:null,params:Ve.params,query:Ve.query,fragment:Ve.fragment};if(!Ve.netLoc&&(Ct.netLoc=Je.netLoc,Ve.path[0]!=="/"))if(!Ve.path)Ct.path=Je.path,Ve.params||(Ct.params=Je.params,Ve.query||(Ct.query=Je.query));else{var Ft=Je.path,gr=Ft.substring(0,Ft.lastIndexOf("/")+1)+Ve.path;Ct.path=x.normalizePath(gr)}return Ct.path===null&&(Ct.path=fe.alwaysNormalize?x.normalizePath(Ve.path):Ve.path),x.buildURLFromParts(Ct)},parseURL:function(j){var J=r.exec(j);return J?{scheme:J[1]||"",netLoc:J[2]||"",path:J[3]||"",params:J[4]||"",query:J[5]||"",fragment:J[6]||""}:null},normalizePath:function(j){for(j=j.split("").reverse().join("").replace(s,"");j.length!==(j=j.replace(l,"")).length;);return j.split("").reverse().join("")},buildURLFromParts:function(j){return j.scheme+j.netLoc+j.path+j.params+j.query+j.fragment}};d.exports=x})()})(Fe);var se=Fe.exports;function ke(d,e){var t=Object.keys(d);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(d);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(d,i).enumerable})),t.push.apply(t,r)}return t}function ie(d){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ke(Object(t),!0).forEach(function(r){T(d,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach(function(r){Object.defineProperty(d,r,Object.getOwnPropertyDescriptor(t,r))})}return d}function Y(d,e){if(typeof d!="object"||!d)return d;var t=d[Symbol.toPrimitive];if(t!==void 0){var r=t.call(d,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(d)}function O(d){var e=Y(d,"string");return typeof e=="symbol"?e:String(e)}function T(d,e,t){return e=O(e),e in d?Object.defineProperty(d,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):d[e]=t,d}function n(){return n=Object.assign?Object.assign.bind():function(d){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(d[r]=t[r])}return d},n.apply(this,arguments)}const o=Number.isFinite||function(d){return typeof d=="number"&&isFinite(d)},L=Number.isSafeInteger||function(d){return typeof d=="number"&&Math.abs(d)<=p},p=Number.MAX_SAFE_INTEGER||9007199254740991;let a=function(d){return d.MEDIA_ATTACHING="hlsMediaAttaching",d.MEDIA_ATTACHED="hlsMediaAttached",d.MEDIA_DETACHING="hlsMediaDetaching",d.MEDIA_DETACHED="hlsMediaDetached",d.BUFFER_RESET="hlsBufferReset",d.BUFFER_CODECS="hlsBufferCodecs",d.BUFFER_CREATED="hlsBufferCreated",d.BUFFER_APPENDING="hlsBufferAppending",d.BUFFER_APPENDED="hlsBufferAppended",d.BUFFER_EOS="hlsBufferEos",d.BUFFER_FLUSHING="hlsBufferFlushing",d.BUFFER_FLUSHED="hlsBufferFlushed",d.MANIFEST_LOADING="hlsManifestLoading",d.MANIFEST_LOADED="hlsManifestLoaded",d.MANIFEST_PARSED="hlsManifestParsed",d.LEVEL_SWITCHING="hlsLevelSwitching",d.LEVEL_SWITCHED="hlsLevelSwitched",d.LEVEL_LOADING="hlsLevelLoading",d.LEVEL_LOADED="hlsLevelLoaded",d.LEVEL_UPDATED="hlsLevelUpdated",d.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",d.LEVELS_UPDATED="hlsLevelsUpdated",d.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",d.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",d.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",d.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",d.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",d.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",d.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",d.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",d.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",d.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",d.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",d.CUES_PARSED="hlsCuesParsed",d.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",d.INIT_PTS_FOUND="hlsInitPtsFound",d.FRAG_LOADING="hlsFragLoading",d.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",d.FRAG_LOADED="hlsFragLoaded",d.FRAG_DECRYPTED="hlsFragDecrypted",d.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",d.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",d.FRAG_PARSING_METADATA="hlsFragParsingMetadata",d.FRAG_PARSED="hlsFragParsed",d.FRAG_BUFFERED="hlsFragBuffered",d.FRAG_CHANGED="hlsFragChanged",d.FPS_DROP="hlsFpsDrop",d.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",d.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",d.ERROR="hlsError",d.DESTROYING="hlsDestroying",d.KEY_LOADING="hlsKeyLoading",d.KEY_LOADED="hlsKeyLoaded",d.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",d.BACK_BUFFER_REACHED="hlsBackBufferReached",d.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",d}({}),A=function(d){return d.NETWORK_ERROR="networkError",d.MEDIA_ERROR="mediaError",d.KEY_SYSTEM_ERROR="keySystemError",d.MUX_ERROR="muxError",d.OTHER_ERROR="otherError",d}({}),m=function(d){return d.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",d.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",d.KEY_SYSTEM_NO_SESSION="keySystemNoSession",d.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",d.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",d.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",d.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",d.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",d.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",d.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",d.MANIFEST_LOAD_ERROR="manifestLoadError",d.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",d.MANIFEST_PARSING_ERROR="manifestParsingError",d.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",d.LEVEL_EMPTY_ERROR="levelEmptyError",d.LEVEL_LOAD_ERROR="levelLoadError",d.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",d.LEVEL_PARSING_ERROR="levelParsingError",d.LEVEL_SWITCH_ERROR="levelSwitchError",d.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",d.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",d.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",d.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",d.FRAG_LOAD_ERROR="fragLoadError",d.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",d.FRAG_DECRYPT_ERROR="fragDecryptError",d.FRAG_PARSING_ERROR="fragParsingError",d.FRAG_GAP="fragGap",d.REMUX_ALLOC_ERROR="remuxAllocError",d.KEY_LOAD_ERROR="keyLoadError",d.KEY_LOAD_TIMEOUT="keyLoadTimeOut",d.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",d.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",d.BUFFER_APPEND_ERROR="bufferAppendError",d.BUFFER_APPENDING_ERROR="bufferAppendingError",d.BUFFER_STALLED_ERROR="bufferStalledError",d.BUFFER_FULL_ERROR="bufferFullError",d.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",d.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",d.INTERNAL_EXCEPTION="internalException",d.INTERNAL_ABORTED="aborted",d.UNKNOWN="unknown",d}({});const S=function(){},K={trace:S,debug:S,log:S,warn:S,info:S,error:S};let F=K;function H(d){const e=self.console[d];return e?e.bind(self.console,`[${d}] >`):S}function V(d,...e){e.forEach(function(t){F[t]=d[t]?d[t].bind(d):H(t)})}function ee(d,e){if(typeof console=="object"&&d===!0||typeof d=="object"){V(d,"debug","log","info","warn","error");try{F.log(`Debug logs enabled for "${e}" in hls.js version 1.5.19`)}catch(t){F=K}}else F=K}const B=F,G=/^(\d+)x(\d+)$/,ce=/(.+?)=(".*?"|.*?)(?:,|$)/g;class q{constructor(e){typeof e=="string"&&(e=q.parseAttrList(e)),n(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 i=0;i<t.length/2;i++)r[i]=parseInt(t.slice(i*2,i*2+2),16);return r}else 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]}bool(e){return this[e]==="YES"}decimalResolution(e){const t=G.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e){let t;const r={},i='"';for(ce.lastIndex=0;(t=ce.exec(e))!==null;){let s=t[2];s.indexOf(i)===0&&s.lastIndexOf(i)===s.length-1&&(s=s.slice(1,-1));const l=t[1].trim();r[l]=s}return r}}function be(d){return d!=="ID"&&d!=="CLASS"&&d!=="START-DATE"&&d!=="DURATION"&&d!=="END-DATE"&&d!=="END-ON-NEXT"}function xe(d){return d==="SCTE35-OUT"||d==="SCTE35-IN"}class Le{constructor(e,t){if(this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,t){const r=t.attr;for(const i in r)if(Object.prototype.hasOwnProperty.call(e,i)&&e[i]!==r[i]){B.warn(`DATERANGE tag attribute: "${i}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=i;break}e=n(new q({}),r,e)}if(this.attr=e,this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const r=new Date(this.attr["END-DATE"]);o(r.getTime())&&(this._endDate=r)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get startDate(){return this._startDate}get endDate(){if(this._endDate)return this._endDate;const e=this.duration;return e!==null?new Date(this._startDate.getTime()+e*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(o(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 isValid(){return!!this.id&&!this._badValueForSameId&&o(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}class ae{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 me={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class I{constructor(e){this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams={[me.AUDIO]:null,[me.VIDEO]:null,[me.AUDIOVIDEO]:null},this.baseurl=e}setByteRange(e,t){const r=e.split("@",2);let i;r.length===1?i=(t==null?void 0:t.byteRangeEndOffset)||0:i=parseInt(r[1]),this._byteRange=[i,parseInt(r[0])+i]}get byteRange(){return this._byteRange?this._byteRange:[]}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=se.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}}class _e extends I{constructor(e,t){super(t),this._decryptdata=null,this.rawProgramDateTime=null,this.programDateTime=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.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.stats=new ae,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 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||!o(this.programDateTime))return null;const e=o(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}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,i,s,l=!1){const{elementaryStreams:x}=this,j=x[e];if(!j){x[e]={startPTS:t,endPTS:r,startDTS:i,endDTS:s,partial:l};return}j.startPTS=Math.min(j.startPTS,t),j.endPTS=Math.max(j.endPTS,r),j.startDTS=Math.min(j.startDTS,i),j.endDTS=Math.max(j.endDTS,s)}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[me.AUDIO]=null,e[me.VIDEO]=null,e[me.AUDIOVIDEO]=null}}class oe extends I{constructor(e,t,r,i,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.stats=new ae,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=i;const l=e.enumeratedString("BYTERANGE");l&&this.setByteRange(l,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)}}const he=10;class ve{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.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 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.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,this.availabilityDelay=e.availabilityDelay}get hasProgramDateTime(){return this.fragments.length?o(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||he}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 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 lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}function _(d){return Uint8Array.from(atob(d),e=>e.charCodeAt(0))}function N(d){const e=qe(d).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function X(d){const e=function(r,i,s){const l=r[i];r[i]=r[s],r[s]=l};e(d,0,3),e(d,1,2),e(d,4,5),e(d,6,7)}function pe(d){const e=d.split(":");let t=null;if(e[0]==="data"&&e.length===2){const r=e[1].split(";"),i=r[r.length-1].split(",");if(i.length===2){const s=i[0]==="base64",l=i[1];s?(r.splice(-1,1),t=_(l)):t=N(l)}}return t}function qe(d){return Uint8Array.from(unescape(encodeURIComponent(d)),e=>e.charCodeAt(0))}const at=typeof self!="undefined"?self:void 0;var rt={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Rt={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function lr(d){switch(d){case Rt.FAIRPLAY:return rt.FAIRPLAY;case Rt.PLAYREADY:return rt.PLAYREADY;case Rt.WIDEVINE:return rt.WIDEVINE;case Rt.CLEARKEY:return rt.CLEARKEY}}var qt={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",FAIRPLAY:"94ce86fb07ff4f43adb893d2fa968ca2",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Ze(d){if(d===qt.WIDEVINE)return rt.WIDEVINE;if(d===qt.PLAYREADY)return rt.PLAYREADY;if(d===qt.CENC||d===qt.CLEARKEY)return rt.CLEARKEY}function Er(d){switch(d){case rt.FAIRPLAY:return Rt.FAIRPLAY;case rt.PLAYREADY:return Rt.PLAYREADY;case rt.WIDEVINE:return Rt.WIDEVINE;case rt.CLEARKEY:return Rt.CLEARKEY}}function Cr(d){const{drmSystems:e,widevineLicenseUrl:t}=d,r=e?[rt.FAIRPLAY,rt.WIDEVINE,rt.PLAYREADY,rt.CLEARKEY].filter(i=>!!e[i]):[];return!r[rt.WIDEVINE]&&t&&r.push(rt.WIDEVINE),r}const Kr=function(d){return at!=null&&(d=at.navigator)!=null&&d.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function _r(d,e,t,r){let i;switch(d){case rt.FAIRPLAY:i=["cenc","sinf"];break;case rt.WIDEVINE:case rt.PLAYREADY:i=["cenc"];break;case rt.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${d}`)}return Me(i,e,t,r)}function Me(d,e,t,r){return[{initDataTypes:d,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 Tt(d){const e=new Uint16Array(d.buffer,d.byteOffset,d.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),r=t.substring(t.indexOf("<"),t.length),l=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(l){const x=l.childNodes[0]?l.childNodes[0].nodeValue:l.getAttribute("VALUE");if(x){const j=_(x).subarray(0,16);return X(j),j}}return null}function z(d,e,t){return Uint8Array.prototype.slice?d.slice(e,t):new Uint8Array(Array.prototype.slice.call(d,e,t))}const v=(d,e)=>e+10<=d.length&&d[e]===73&&d[e+1]===68&&d[e+2]===51&&d[e+3]<255&&d[e+4]<255&&d[e+6]<128&&d[e+7]<128&&d[e+8]<128&&d[e+9]<128,f=(d,e)=>e+10<=d.length&&d[e]===51&&d[e+1]===68&&d[e+2]===73&&d[e+3]<255&&d[e+4]<255&&d[e+6]<128&&d[e+7]<128&&d[e+8]<128&&d[e+9]<128,D=(d,e)=>{const t=e;let r=0;for(;v(d,e);){r+=10;const i=de(d,e+6);r+=i,f(d,e+10)&&(r+=10),e+=r}if(r>0)return d.subarray(t,t+r)},de=(d,e)=>{let t=0;return t=(d[e]&127)<<21,t|=(d[e+1]&127)<<14,t|=(d[e+2]&127)<<7,t|=d[e+3]&127,t},W=(d,e)=>v(d,e)&&de(d,e+6)+10<=d.length-e,P=d=>{const e=Te(d);for(let t=0;t<e.length;t++){const r=e[t];if(te(r))return Xe(r)}},te=d=>d&&d.key==="PRIV"&&d.info==="com.apple.streaming.transportStreamTimestamp",Ie=d=>{const e=String.fromCharCode(d[0],d[1],d[2],d[3]),t=de(d,4),r=10;return{type:e,size:t,data:d.subarray(r,r+t)}},Te=d=>{let e=0;const t=[];for(;v(d,e);){const r=de(d,e+6);e+=10;const i=e+r;for(;e+8<i;){const s=Ie(d.subarray(e)),l=Se(s);l&&t.push(l),e+=s.size+10}f(d,e)&&(e+=10)}return t},Se=d=>d.type==="PRIV"?Ge(d):d.type[0]==="W"?Ke(d):ft(d),Ge=d=>{if(d.size<2)return;const e=At(d.data,!0),t=new Uint8Array(d.data.subarray(e.length+1));return{key:d.type,info:e,data:t.buffer}},ft=d=>{if(d.size<2)return;if(d.type==="TXXX"){let t=1;const r=At(d.data.subarray(t),!0);t+=r.length+1;const i=At(d.data.subarray(t));return{key:d.type,info:r,data:i}}const e=At(d.data.subarray(1));return{key:d.type,data:e}},Ke=d=>{if(d.type==="WXXX"){if(d.size<2)return;let t=1;const r=At(d.data.subarray(t),!0);t+=r.length+1;const i=At(d.data.subarray(t));return{key:d.type,info:r,data:i}}const e=At(d.data);return{key:d.type,data:e}},Xe=d=>{if(d.data.byteLength===8){const e=new Uint8Array(d.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)}},At=(d,e=!1)=>{const t=$e();if(t){const J=t.decode(d);if(e){const fe=J.indexOf("\0");return fe!==-1?J.substring(0,fe):J}return J.replace(/\0/g,"")}const r=d.length;let i,s,l,x="",j=0;for(;j<r;){if(i=d[j++],i===0&&e)return x;if(i===0||i===3)continue;switch(i>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:x+=String.fromCharCode(i);break;case 12:case 13:s=d[j++],x+=String.fromCharCode((i&31)<<6|s&63);break;case 14:s=d[j++],l=d[j++],x+=String.fromCharCode((i&15)<<12|(s&63)<<6|(l&63)<<0);break}}return x};let We;function $e(){if(!navigator.userAgent.includes("PlayStation 4"))return!We&&typeof self.TextDecoder!="undefined"&&(We=new self.TextDecoder("utf-8")),We}const Bt={hexDump:function(d){let e="";for(let t=0;t<d.length;t++){let r=d[t].toString(16);r.length<2&&(r="0"+r),e+=r}return e}},Kt=Math.pow(2,32)-1,Mt=[].push,wr={video:1,audio:2,id3:3,text:4};function vr(d){return String.fromCharCode.apply(null,d)}function re(d,e){const t=d[e]<<8|d[e+1];return t<0?65536+t:t}function le(d,e){const t=Ue(d,e);return t<0?4294967296+t:t}function rr(d,e){let t=le(d,e);return t*=Math.pow(2,32),t+=le(d,e+4),t}function Ue(d,e){return d[e]<<24|d[e+1]<<16|d[e+2]<<8|d[e+3]}function ot(d,e,t){d[e]=t>>24,d[e+1]=t>>16&255,d[e+2]=t>>8&255,d[e+3]=t&255}function Yr(d){const e=d.byteLength;for(let t=0;t<e;){const r=le(d,t);if(r>8&&d[t+4]===109&&d[t+5]===111&&d[t+6]===111&&d[t+7]===102)return!0;t=r>1?t+r:e}return!1}function St(d,e){const t=[];if(!e.length)return t;const r=d.byteLength;for(let i=0;i<r;){const s=le(d,i),l=vr(d.subarray(i+4,i+8)),x=s>1?i+s:r;if(l===e[0])if(e.length===1)t.push(d.subarray(i+8,x));else{const j=St(d.subarray(i+8,x),e.slice(1));j.length&&Mt.apply(t,j)}i=x}return t}function Vt(d){const e=[],t=d[0];let r=8;const i=le(d,r);r+=4;let s=0,l=0;t===0?(s=le(d,r),l=le(d,r+4),r+=8):(s=rr(d,r),l=rr(d,r+8),r+=16),r+=2;let x=d.length+l;const j=re(d,r);r+=2;for(let J=0;J<j;J++){let fe=r;const Oe=le(d,fe);fe+=4;const Ve=Oe&2147483647;if((Oe&2147483648)>>>31===1)return B.warn("SIDX has hierarchical references (not supported)"),null;const ut=le(d,fe);fe+=4,e.push({referenceSize:Ve,subsegmentDuration:ut,info:{duration:ut/i,start:x,end:x+Ve-1}}),x+=Ve,fe+=4,r=fe}return{earliestPresentationTime:s,timescale:i,version:t,referencesCount:j,references:e}}function Zt(d){const e=[],t=St(d,["moov","trak"]);for(let i=0;i<t.length;i++){const s=t[i],l=St(s,["tkhd"])[0];if(l){let x=l[0];const j=le(l,x===0?12:20),J=St(s,["mdia","mdhd"])[0];if(J){x=J[0];const fe=le(J,x===0?12:20),Oe=St(s,["mdia","hdlr"])[0];if(Oe){const Ve=vr(Oe.subarray(8,12)),Je={soun:me.AUDIO,vide:me.VIDEO}[Ve];if(Je){const ut=St(s,["mdia","minf","stbl","stsd"])[0],Ct=nt(ut);e[j]={timescale:fe,type:Je},e[Je]=ie({timescale:fe,id:j},Ct)}}}}}return St(d,["moov","mvex","trex"]).forEach(i=>{const s=le(i,4),l=e[s];l&&(l.default={duration:le(i,12),flags:le(i,20)})}),e}function nt(d){const e=d.subarray(8),t=e.subarray(86),r=vr(e.subarray(4,8));let i=r;const s=r==="enca"||r==="encv";if(s){const x=St(e,[r])[0].subarray(r==="enca"?28:78);St(x,["sinf"]).forEach(J=>{const fe=St(J,["schm"])[0];if(fe){const Oe=vr(fe.subarray(4,8));if(Oe==="cbcs"||Oe==="cenc"){const Ve=St(J,["frma"])[0];Ve&&(i=vr(Ve))}}})}switch(i){case"avc1":case"avc2":case"avc3":case"avc4":{const l=St(t,["avcC"])[0];i+="."+dt(l[1])+dt(l[2])+dt(l[3]);break}case"mp4a":{const l=St(e,[r])[0],x=St(l.subarray(28),["esds"])[0];if(x&&x.length>12){let j=4;if(x[j++]!==3)break;j=ct(x,j),j+=2;const J=x[j++];if(J&128&&(j+=2),J&64&&(j+=x[j++]),x[j++]!==4)break;j=ct(x,j);const fe=x[j++];if(fe===64)i+="."+dt(fe);else break;if(j+=12,x[j++]!==5)break;j=ct(x,j);const Oe=x[j++];let Ve=(Oe&248)>>3;Ve===31&&(Ve+=1+((Oe&7)<<3)+((x[j]&224)>>5)),i+="."+Ve}break}case"hvc1":case"hev1":{const l=St(t,["hvcC"])[0],x=l[1],j=["","A","B","C"][x>>6],J=x&31,fe=le(l,2),Oe=(x&32)>>5?"H":"L",Ve=l[12],Je=l.subarray(6,12);i+="."+j+J,i+="."+fe.toString(16).toUpperCase(),i+="."+Oe+Ve;let ut="";for(let Ct=Je.length;Ct--;){const Ft=Je[Ct];(Ft||ut)&&(ut="."+Ft.toString(16).toUpperCase()+ut)}i+=ut;break}case"dvh1":case"dvhe":{const l=St(t,["dvcC"])[0],x=l[2]>>1&127,j=l[2]<<5&32|l[3]>>3&31;i+="."+Xt(x)+"."+Xt(j);break}case"vp09":{const l=St(t,["vpcC"])[0],x=l[4],j=l[5],J=l[6]>>4&15;i+="."+Xt(x)+"."+Xt(j)+"."+Xt(J);break}case"av01":{const l=St(t,["av1C"])[0],x=l[1]>>>5,j=l[1]&31,J=l[2]>>>7?"H":"M",fe=(l[2]&64)>>6,Oe=(l[2]&32)>>5,Ve=x===2&&fe?Oe?12:10:fe?10:8,Je=(l[2]&16)>>4,ut=(l[2]&8)>>3,Ct=(l[2]&4)>>2,Ft=l[2]&3;i+="."+x+"."+Xt(j)+J+"."+Xt(Ve)+"."+Je+"."+ut+Ct+Ft+"."+Xt(1)+"."+Xt(1)+"."+Xt(1)+"."+0;break}}return{codec:i,encrypted:s}}function ct(d,e){const t=e+5;for(;d[e++]&128&&e<t;);return e}function dt(d){return("0"+d.toString(16).toUpperCase()).slice(-2)}function Xt(d){return(d<10?"0":"")+d}function Re(d,e){if(!d||!e)return d;const t=e.keyId;return t&&e.isCommonEncryption&&St(d,["moov","trak"]).forEach(i=>{const l=St(i,["mdia","minf","stbl","stsd"])[0].subarray(8);let x=St(l,["enca"]);const j=x.length>0;j||(x=St(l,["encv"])),x.forEach(J=>{const fe=j?J.subarray(28):J.subarray(78);St(fe,["sinf"]).forEach(Ve=>{const Je=fn(Ve);if(Je){const ut=Je.subarray(8,24);ut.some(Ct=>Ct!==0)||(B.log(`[eme] Patching keyId in 'enc${j?"a":"v"}>sinf>>tenc' box: ${Bt.hexDump(ut)} -> ${Bt.hexDump(t)}`),Je.set(t,8))}})})}),d}function fn(d){const e=St(d,["schm"])[0];if(e){const t=vr(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return St(d,["schi","tenc"])[0]}return null}function kt(d,e){return St(e,["moof","traf"]).reduce((t,r)=>{const i=St(r,["tfdt"])[0],s=i[0],l=St(r,["tfhd"]).reduce((x,j)=>{const J=le(j,4),fe=d[J];if(fe){let Oe=le(i,4);if(s===1){if(Oe===Kt)return B.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),x;Oe*=Kt+1,Oe+=le(i,8)}const Ve=fe.timescale||9e4,Je=Oe/Ve;if(o(Je)&&(x===null||Je<x))return Je}return x},null);return l!==null&&o(l)&&(t===null||l<t)?l:t},null)}function Nn(d,e){let t=0,r=0,i=0;const s=St(d,["moof","traf"]);for(let l=0;l<s.length;l++){const x=s[l],j=St(x,["tfhd"])[0],J=le(j,4),fe=e[J];if(!fe)continue;const Oe=fe.default,Ve=le(j,0)|(Oe==null?void 0:Oe.flags);let Je=Oe==null?void 0:Oe.duration;Ve&8&&(Ve&2?Je=le(j,12):Je=le(j,8));const ut=fe.timescale||9e4,Ct=St(x,["trun"]);for(let Ft=0;Ft<Ct.length;Ft++){if(t=Jn(Ct[Ft]),!t&&Je){const gr=le(Ct[Ft],4);t=Je*gr}fe.type===me.VIDEO?r+=t/ut:fe.type===me.AUDIO&&(i+=t/ut)}}if(r===0&&i===0){let l=1/0,x=0,j=0;const J=St(d,["sidx"]);for(let fe=0;fe<J.length;fe++){const Oe=Vt(J[fe]);if(Oe!=null&&Oe.references){l=Math.min(l,Oe.earliestPresentationTime/Oe.timescale);const Ve=Oe.references.reduce((Je,ut)=>Je+ut.info.duration||0,0);x=Math.max(x,Ve+Oe.earliestPresentationTime/Oe.timescale),j=x-l}}if(j&&o(j))return j}return r||i}function Jn(d){const e=le(d,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let r=0;const i=le(d,4);for(let s=0;s<i;s++){if(e&256){const l=le(d,t);r+=l,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return r}function vi(d,e,t){St(e,["moof","traf"]).forEach(r=>{St(r,["tfhd"]).forEach(i=>{const s=le(i,4),l=d[s];if(!l)return;const x=l.timescale||9e4;St(r,["tfdt"]).forEach(j=>{const J=j[0],fe=t*x;if(fe){let Oe=le(j,4);if(J===0)Oe-=fe,Oe=Math.max(Oe,0),ot(j,4,Oe);else{Oe*=Math.pow(2,32),Oe+=le(j,8),Oe-=fe,Oe=Math.max(Oe,0);const Ve=Math.floor(Oe/(Kt+1)),Je=Math.floor(Oe%(Kt+1));ot(j,4,Ve),ot(j,8,Je)}}})})})}function Fi(d){const e={valid:null,remainder:null},t=St(d,["moof"]);if(t.length<2)return e.remainder=d,e;const r=t[t.length-1];return e.valid=z(d,0,r.byteOffset-8),e.remainder=z(d,r.byteOffset-8),e}function Mn(d,e){const t=new Uint8Array(d.length+e.length);return t.set(d),t.set(e,d.length),t}function Hn(d,e){const t=[],r=e.samples,i=e.timescale,s=e.id;let l=!1;return St(r,["moof"]).map(j=>{const J=j.byteOffset-8;St(j,["traf"]).map(Oe=>{const Ve=St(Oe,["tfdt"]).map(Je=>{const ut=Je[0];let Ct=le(Je,4);return ut===1&&(Ct*=Math.pow(2,32),Ct+=le(Je,8)),Ct/i})[0];return Ve!==void 0&&(d=Ve),St(Oe,["tfhd"]).map(Je=>{const ut=le(Je,4),Ct=le(Je,0)&16777215,Ft=(Ct&1)!==0,gr=(Ct&2)!==0,Or=(Ct&8)!==0;let Fr=0;const Un=(Ct&16)!==0;let an=0;const mi=(Ct&32)!==0;let zn=8;ut===s&&(Ft&&(zn+=8),gr&&(zn+=4),Or&&(Fr=le(Je,zn),zn+=4),Un&&(an=le(Je,zn),zn+=4),mi&&(zn+=4),e.type==="video"&&(l=Yt(e.codec)),St(Oe,["trun"]).map(Ti=>{const qi=Ti[0],di=le(Ti,0)&16777215,Ni=(di&1)!==0;let za=0;const ia=(di&4)!==0,Qa=(di&256)!==0;let Ua=0;const La=(di&512)!==0;let Ts=0;const Ks=(di&1024)!==0,pa=(di&2048)!==0;let oa=0;const ks=le(Ti,4);let hs=8;Ni&&(za=le(Ti,hs),hs+=4),ia&&(hs+=4);let Ws=za+J;for(let lo=0;lo<ks;lo++){if(Qa?(Ua=le(Ti,hs),hs+=4):Ua=Fr,La?(Ts=le(Ti,hs),hs+=4):Ts=an,Ks&&(hs+=4),pa&&(qi===0?oa=le(Ti,hs):oa=Ue(Ti,hs),hs+=4),e.type===me.VIDEO){let Ms=0;for(;Ms<Ts;){const Fo=le(r,Ws);if(Ws+=4,kr(l,r[Ws])){const dl=r.subarray(Ws,Ws+Fo);tn(dl,l?2:1,d+oa/i,t)}Ws+=Fo,Ms+=Fo+4}}d+=Ua/i}}))})})}),t}function Yt(d){if(!d)return!1;const e=d.indexOf("."),t=e<0?d:d.substring(0,e);return t==="hvc1"||t==="hev1"||t==="dvh1"||t==="dvhe"}function kr(d,e){if(d){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function tn(d,e,t,r){const i=Nt(d);let s=0;s+=e;let l=0,x=0,j=0;for(;s<i.length;){l=0;do{if(s>=i.length)break;j=i[s++],l+=j}while(j===255);x=0;do{if(s>=i.length)break;j=i[s++],x+=j}while(j===255);const J=i.length-s;let fe=s;if(x<J)s+=x;else if(x>J){B.error(`Malformed SEI payload. ${x} is too small, only ${J} bytes left to parse.`);break}if(l===4){if(i[fe++]===181){const Ve=re(i,fe);if(fe+=2,Ve===49){const Je=le(i,fe);if(fe+=4,Je===1195456820){const ut=i[fe++];if(ut===3){const Ct=i[fe++],Ft=31&Ct,gr=64&Ct,Or=gr?2+Ft*3:0,Fr=new Uint8Array(Or);if(gr){Fr[0]=Ct;for(let Un=1;Un<Or;Un++)Fr[Un]=i[fe++]}r.push({type:ut,payloadType:l,pts:t,bytes:Fr})}}}}}else if(l===5&&x>16){const Oe=[];for(let ut=0;ut<16;ut++){const Ct=i[fe++].toString(16);Oe.push(Ct.length==1?"0"+Ct:Ct),(ut===3||ut===5||ut===7||ut===9)&&Oe.push("-")}const Ve=x-16,Je=new Uint8Array(Ve);for(let ut=0;ut<Ve;ut++)Je[ut]=i[fe++];r.push({payloadType:l,pts:t,uuid:Oe.join(""),userData:At(Je),userDataBytes:Je})}}}function Nt(d){const e=d.byteLength,t=[];let r=1;for(;r<e-2;)d[r]===0&&d[r+1]===0&&d[r+2]===3?(t.push(r+2),r+=2):r++;if(t.length===0)return d;const i=e-t.length,s=new Uint8Array(i);let l=0;for(r=0;r<i;l++,r++)l===t[0]&&(l++,t.shift()),s[r]=d[l];return s}function _t(d){const e=d[0];let t="",r="",i=0,s=0,l=0,x=0,j=0,J=0;if(e===0){for(;vr(d.subarray(J,J+1))!=="\0";)t+=vr(d.subarray(J,J+1)),J+=1;for(t+=vr(d.subarray(J,J+1)),J+=1;vr(d.subarray(J,J+1))!=="\0";)r+=vr(d.subarray(J,J+1)),J+=1;r+=vr(d.subarray(J,J+1)),J+=1,i=le(d,12),s=le(d,16),x=le(d,20),j=le(d,24),J=28}else if(e===1){J+=4,i=le(d,J),J+=4;const Oe=le(d,J);J+=4;const Ve=le(d,J);for(J+=4,l=GA(2,32)*Oe+Ve,L(l)||(l=Number.MAX_SAFE_INTEGER,B.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),x=le(d,J),J+=4,j=le(d,J),J+=4;vr(d.subarray(J,J+1))!=="\0";)t+=vr(d.subarray(J,J+1)),J+=1;for(t+=vr(d.subarray(J,J+1)),J+=1;vr(d.subarray(J,J+1))!=="\0";)r+=vr(d.subarray(J,J+1)),J+=1;r+=vr(d.subarray(J,J+1)),J+=1}const fe=d.subarray(J,d.byteLength);return{schemeIdUri:t,value:r,timeScale:i,presentationTime:l,presentationTimeDelta:s,eventDuration:x,id:j,payload:fe}}function Ir(d,...e){const t=e.length;let r=8,i=t;for(;i--;)r+=e[i].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(d,4),i=0,r=8;i<t;i++)s.set(e[i],r),r+=e[i].byteLength;return s}function Dr(d,e,t){if(d.byteLength!==16)throw new RangeError("Invalid system id");let r,i;if(e){r=1,i=new Uint8Array(e.length*16);for(let x=0;x<e.length;x++){const j=e[x];if(j.byteLength!==16)throw new RangeError("Invalid key");i.set(j,x*16)}}else r=0,i=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 l=new Uint8Array(4);return t&&t.byteLength>0&&new DataView(l.buffer).setUint32(0,t.byteLength,!1),Ir([112,115,115,104],new Uint8Array([r,0,0,0]),d,s,i,l,t||new Uint8Array)}function In(d){const e=[];if(d instanceof ArrayBuffer){const t=d.byteLength;let r=0;for(;r+32<t;){const i=new DataView(d,r),s=qr(i);e.push(s),r+=s.size}}return e}function qr(d){const e=d.getUint32(0),t=d.byteOffset,r=d.byteLength;if(r<e)return{offset:t,size:r};if(d.getUint32(4)!==1886614376)return{offset:t,size:e};const s=d.getUint32(8)>>>24;if(s!==0&&s!==1)return{offset:t,size:e};const l=d.buffer,x=Bt.hexDump(new Uint8Array(l,t+12,16)),j=d.getUint32(28);let J=null,fe=null;if(s===0){if(e-32<j||j<22)return{offset:t,size:e};fe=new Uint8Array(l,t+32,j)}else if(s===1){if(!j||r<t+32+j*16+16)return{offset:t,size:e};J=[];for(let Oe=0;Oe<j;Oe++)J.push(new Uint8Array(l,t+32+Oe*16,16))}return{version:s,systemId:x,kids:J,data:fe,offset:t,size:e}}let Sn={};class hn{static clearKeyUriToKeyIdMap(){Sn={}}constructor(e,t,r,i=[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=i,this.iv=s,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&e!=="AES-128"}isSupported(){if(this.method){if(this.method==="AES-128"||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Rt.FAIRPLAY:case Rt.WIDEVINE:case Rt.PLAYREADY:case Rt.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(this.method==="AES-128"&&this.uri&&!this.iv){typeof e!="number"&&(this.method==="AES-128"&&!this.iv&&B.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=$n(e);return new hn(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=pe(this.uri);if(t)switch(this.keyFormat){case Rt.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Rt.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=Dr(r,null,t),this.keyId=Tt(t);break}default:{let r=t.subarray(0,16);if(r.length!==16){const i=new Uint8Array(16);i.set(r,16-r.length),r=i}this.keyId=r;break}}if(!this.keyId||this.keyId.byteLength!==16){let r=Sn[this.uri];if(!r){const i=Object.keys(Sn).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,i),Sn[this.uri]=r}this.keyId=r}return this}}function $n(d){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=d>>8*(15-t)&255;return e}const ri=/\{\$([a-zA-Z0-9-_]+)\}/g;function Hr(d){return ri.test(d)}function zr(d,e,t){if(d.variableList!==null||d.hasVariableRefs)for(let r=t.length;r--;){const i=t[r],s=e[i];s&&(e[i]=Tn(d,s))}}function Tn(d,e){if(d.variableList!==null||d.hasVariableRefs){const t=d.variableList;return e.replace(ri,r=>{const i=r.substring(2,r.length-1),s=t==null?void 0:t[i];return s===void 0?(d.playlistParsingError||(d.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${i}"`)),r):s})}return e}function Bn(d,e,t){let r=d.variableList;r||(d.variableList=r={});let i,s;if("QUERYPARAM"in e){i=e.QUERYPARAM;try{const l=new self.URL(t).searchParams;if(l.has(i))s=l.get(i);else throw new Error(`"${i}" does not match any query parameter in URI: "${t}"`)}catch(l){d.playlistParsingError||(d.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${l.message}`))}}else i=e.NAME,s=e.VALUE;i in r?d.playlistParsingError||(d.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${i}"`)):r[i]=s||""}function Qn(d,e,t){const r=e.IMPORT;if(t&&r in t){let i=d.variableList;i||(d.variableList=i={}),i[r]=t[r]}else d.playlistParsingError||(d.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}function Xn(d=!0){return typeof self=="undefined"?void 0:(d||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Hi(d){return typeof self!="undefined"&&d===self.ManagedMediaSource}const fi={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,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 wn(d,e){const t=fi[e];return!!t&&!!t[d.slice(0,4)]}function hr(d,e,t=!0){return!d.split(",").some(r=>!yr(r,e,t))}function yr(d,e,t=!0){var r;const i=Xn(t);return(r=i==null?void 0:i.isTypeSupported(Pr(d,e)))!=null?r:!1}function Pr(d,e){return`${e}/mp4;codecs="${d}"`}function Zr(d){if(d){const e=d.substring(0,4);return fi.video[e]}return 2}function Qr(d){return d.split(",").reduce((e,t)=>{const r=fi.video[t];return r?(r*2+e)/(e?3:2):(fi.audio[t]+e)/(e?2:1)},0)}const on={};function en(d,e=!0){if(on[d])return on[d];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[d];for(let r=0;r<t.length;r++)if(yr(t[r],"audio",e))return on[d]=t[r],t[r];return d}const jn=/flac|opus/i;function qn(d,e=!0){return d.replace(jn,t=>en(t.toLowerCase(),e))}function oi(d,e){return d&&d!=="mp4a"?d:e&&e.split(",")[0]}function Qi(d){const e=d.split(",");for(let t=0;t<e.length;t++){const r=e[t].split(".");if(r.length>2){let i=r.shift()+".";i+=parseInt(r.shift()).toString(16),i+=("000"+parseInt(r.shift()).toString(16)).slice(-4),e[t]=i}}return e.join(",")}const Ri=/#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,ki=/#EXT-X-MEDIA:(.*)/g,Tr=/^#EXT(?:INF|-X-TARGETDURATION):/m,_n=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),gn=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(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 ui{static findGroup(e,t){for(let r=0;r<e.length;r++){const i=e[r];if(i.id===t)return i}}static resolve(e,t){return se.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return Tr.test(e)}static parseMasterPlaylist(e,t){const r=Hr(e),i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},s=[];Ri.lastIndex=0;let l;for(;(l=Ri.exec(e))!=null;)if(l[1]){var x;const J=new q(l[1]);zr(i,J,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);const fe=Tn(i,l[2]),Oe={attrs:J,bitrate:J.decimalInteger("BANDWIDTH")||J.decimalInteger("AVERAGE-BANDWIDTH"),name:J.NAME,url:ui.resolve(fe,t)},Ve=J.decimalResolution("RESOLUTION");Ve&&(Oe.width=Ve.width,Oe.height=Ve.height),wi(J.CODECS,Oe),(x=Oe.unknownCodecs)!=null&&x.length||s.push(Oe),i.levels.push(Oe)}else if(l[3]){const J=l[3],fe=l[4];switch(J){case"SESSION-DATA":{const Oe=new q(fe);zr(i,Oe,["DATA-ID","LANGUAGE","VALUE","URI"]);const Ve=Oe["DATA-ID"];Ve&&(i.sessionData===null&&(i.sessionData={}),i.sessionData[Ve]=Oe);break}case"SESSION-KEY":{const Oe=ii(fe,t,i);Oe.encrypted&&Oe.isSupported()?(i.sessionKeys===null&&(i.sessionKeys=[]),i.sessionKeys.push(Oe)):B.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${fe}"`);break}case"DEFINE":{{const Oe=new q(fe);zr(i,Oe,["NAME","VALUE","QUERYPARAM"]),Bn(i,Oe,t)}break}case"CONTENT-STEERING":{const Oe=new q(fe);zr(i,Oe,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:ui.resolve(Oe["SERVER-URI"],t),pathwayId:Oe["PATHWAY-ID"]||"."};break}case"START":{i.startTimeOffset=ti(fe);break}}}const j=s.length>0&&s.length<i.levels.length;return i.levels=j?s:i.levels,i.levels.length===0&&(i.playlistParsingError=new Error("no levels found in manifest")),i}static parseMasterPlaylistMedia(e,t,r){let i;const s={},l=r.levels,x={AUDIO:l.map(J=>({id:J.attrs.AUDIO,audioCodec:J.audioCodec})),SUBTITLES:l.map(J=>({id:J.attrs.SUBTITLES,textCodec:J.textCodec})),"CLOSED-CAPTIONS":[]};let j=0;for(ki.lastIndex=0;(i=ki.exec(e))!==null;){const J=new q(i[1]),fe=J.TYPE;if(fe){const Oe=x[fe],Ve=s[fe]||[];s[fe]=Ve,zr(r,J,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);const Je=J.LANGUAGE,ut=J["ASSOC-LANGUAGE"],Ct=J.CHANNELS,Ft=J.CHARACTERISTICS,gr=J["INSTREAM-ID"],Or={attrs:J,bitrate:0,id:j++,groupId:J["GROUP-ID"]||"",name:J.NAME||Je||"",type:fe,default:J.bool("DEFAULT"),autoselect:J.bool("AUTOSELECT"),forced:J.bool("FORCED"),lang:Je,url:J.URI?ui.resolve(J.URI,t):""};if(ut&&(Or.assocLang=ut),Ct&&(Or.channels=Ct),Ft&&(Or.characteristics=Ft),gr&&(Or.instreamId=gr),Oe!=null&&Oe.length){const Fr=ui.findGroup(Oe,Or.groupId)||Oe[0];Pi(Or,Fr,"audioCodec"),Pi(Or,Fr,"textCodec")}Ve.push(Or)}}return s}static parseLevelPlaylist(e,t,r,i,s,l){const x=new ve(t),j=x.fragments;let J=null,fe=0,Oe=0,Ve=0,Je=0,ut=null,Ct=new _e(i,t),Ft,gr,Or,Fr=-1,Un=!1,an=null;for(_n.lastIndex=0,x.m3u8=e,x.hasVariableRefs=Hr(e);(Ft=_n.exec(e))!==null;){Un&&(Un=!1,Ct=new _e(i,t),Ct.start=Ve,Ct.sn=fe,Ct.cc=Je,Ct.level=r,J&&(Ct.initSegment=J,Ct.rawProgramDateTime=J.rawProgramDateTime,J.rawProgramDateTime=null,an&&(Ct.setByteRange(an),an=null)));const qi=Ft[1];if(qi){Ct.duration=parseFloat(qi);const di=(" "+Ft[2]).slice(1);Ct.title=di||null,Ct.tagList.push(di?["INF",qi,di]:["INF",qi])}else if(Ft[3]){if(o(Ct.duration)){Ct.start=Ve,Or&&xi(Ct,Or,x),Ct.sn=fe,Ct.level=r,Ct.cc=Je,j.push(Ct);const di=(" "+Ft[3]).slice(1);Ct.relurl=Tn(x,di),zi(Ct,ut),ut=Ct,Ve+=Ct.duration,fe++,Oe=0,Un=!0}}else if(Ft[4]){const di=(" "+Ft[4]).slice(1);ut?Ct.setByteRange(di,ut):Ct.setByteRange(di)}else if(Ft[5])Ct.rawProgramDateTime=(" "+Ft[5]).slice(1),Ct.tagList.push(["PROGRAM-DATE-TIME",Ct.rawProgramDateTime]),Fr===-1&&(Fr=j.length);else{if(Ft=Ft[0].match(gn),!Ft){B.warn("No matches on slow regex match for level playlist!");continue}for(gr=1;gr<Ft.length&&typeof Ft[gr]=="undefined";gr++);const di=(" "+Ft[gr]).slice(1),Ni=(" "+Ft[gr+1]).slice(1),za=Ft[gr+2]?(" "+Ft[gr+2]).slice(1):"";switch(di){case"PLAYLIST-TYPE":x.type=Ni.toUpperCase();break;case"MEDIA-SEQUENCE":fe=x.startSN=parseInt(Ni);break;case"SKIP":{const ia=new q(Ni);zr(x,ia,["RECENTLY-REMOVED-DATERANGES"]);const Qa=ia.decimalInteger("SKIPPED-SEGMENTS");if(o(Qa)){x.skippedSegments=Qa;for(let La=Qa;La--;)j.unshift(null);fe+=Qa}const Ua=ia.enumeratedString("RECENTLY-REMOVED-DATERANGES");Ua&&(x.recentlyRemovedDateranges=Ua.split(" "));break}case"TARGETDURATION":x.targetduration=Math.max(parseInt(Ni),1);break;case"VERSION":x.version=parseInt(Ni);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":x.live=!1;break;case"#":(Ni||za)&&Ct.tagList.push(za?[Ni,za]:[Ni]);break;case"DISCONTINUITY":Je++,Ct.tagList.push(["DIS"]);break;case"GAP":Ct.gap=!0,Ct.tagList.push([di]);break;case"BITRATE":Ct.tagList.push([di,Ni]);break;case"DATERANGE":{const ia=new q(Ni);zr(x,ia,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),zr(x,ia,ia.clientAttrs);const Qa=new Le(ia,x.dateRanges[ia.ID]);Qa.isValid||x.skippedSegments?x.dateRanges[Qa.id]=Qa:B.warn(`Ignoring invalid DATERANGE tag: "${Ni}"`),Ct.tagList.push(["EXT-X-DATERANGE",Ni]);break}case"DEFINE":{{const ia=new q(Ni);zr(x,ia,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in ia?Qn(x,ia,l):Bn(x,ia,t)}break}case"DISCONTINUITY-SEQUENCE":Je=parseInt(Ni);break;case"KEY":{const ia=ii(Ni,t,x);if(ia.isSupported()){if(ia.method==="NONE"){Or=void 0;break}Or||(Or={}),Or[ia.keyFormat]&&(Or=n({},Or)),Or[ia.keyFormat]=ia}else B.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Ni}"`);break}case"START":x.startTimeOffset=ti(Ni);break;case"MAP":{const ia=new q(Ni);if(zr(x,ia,["BYTERANGE","URI"]),Ct.duration){const Qa=new _e(i,t);ca(Qa,ia,r,Or),J=Qa,Ct.initSegment=J,J.rawProgramDateTime&&!Ct.rawProgramDateTime&&(Ct.rawProgramDateTime=J.rawProgramDateTime)}else{const Qa=Ct.byteRangeEndOffset;if(Qa){const Ua=Ct.byteRangeStartOffset;an=`${Qa-Ua}@${Ua}`}else an=null;ca(Ct,ia,r,Or),J=Ct,Un=!0}break}case"SERVER-CONTROL":{const ia=new q(Ni);x.canBlockReload=ia.bool("CAN-BLOCK-RELOAD"),x.canSkipUntil=ia.optionalFloat("CAN-SKIP-UNTIL",0),x.canSkipDateRanges=x.canSkipUntil>0&&ia.bool("CAN-SKIP-DATERANGES"),x.partHoldBack=ia.optionalFloat("PART-HOLD-BACK",0),x.holdBack=ia.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{const ia=new q(Ni);x.partTarget=ia.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ia=x.partList;ia||(ia=x.partList=[]);const Qa=Oe>0?ia[ia.length-1]:void 0,Ua=Oe++,La=new q(Ni);zr(x,La,["BYTERANGE","URI"]);const Ts=new oe(La,Ct,t,Ua,Qa);ia.push(Ts),Ct.duration+=Ts.duration;break}case"PRELOAD-HINT":{const ia=new q(Ni);zr(x,ia,["URI"]),x.preloadHint=ia;break}case"RENDITION-REPORT":{const ia=new q(Ni);zr(x,ia,["URI"]),x.renditionReports=x.renditionReports||[],x.renditionReports.push(ia);break}default:B.warn(`line parsed but not handled: ${Ft}`);break}}}ut&&!ut.relurl?(j.pop(),Ve-=ut.duration,x.partList&&(x.fragmentHint=ut)):x.partList&&(zi(Ct,ut),Ct.cc=Je,x.fragmentHint=Ct,Or&&xi(Ct,Or,x));const mi=j.length,zn=j[0],Ti=j[mi-1];if(Ve+=x.skippedSegments*x.targetduration,Ve>0&&mi&&Ti){x.averagetargetduration=Ve/mi;const qi=Ti.sn;x.endSN=qi!=="initSegment"?qi:0,x.live||(Ti.endList=!0),zn&&(x.startCC=zn.cc)}else x.endSN=0,x.startCC=0;return x.fragmentHint&&(Ve+=x.fragmentHint.duration),x.totalduration=Ve,x.endCC=Je,Fr>0&&Bi(j,Fr),x}}function ii(d,e,t){var r,i;const s=new q(d);zr(t,s,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);const l=(r=s.METHOD)!=null?r:"",x=s.URI,j=s.hexadecimalInteger("IV"),J=s.KEYFORMATVERSIONS,fe=(i=s.KEYFORMAT)!=null?i:"identity";x&&s.IV&&!j&&B.error(`Invalid IV: ${s.IV}`);const Oe=x?ui.resolve(x,e):"",Ve=(J||"1").split("/").map(Number).filter(Number.isFinite);return new hn(l,Oe,fe,Ve,j)}function ti(d){const t=new q(d).decimalFloatingPoint("TIME-OFFSET");return o(t)?t:null}function wi(d,e){let t=(d||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const i=t.filter(s=>wn(s,r));i.length&&(e[`${r}Codec`]=i.join(","),t=t.filter(s=>i.indexOf(s)===-1))}),e.unknownCodecs=t}function Pi(d,e,t){const r=e[t];r&&(d[t]=r)}function Bi(d,e){let t=d[e];for(let r=e;r--;){const i=d[r];if(!i)return;i.programDateTime=t.programDateTime-i.duration*1e3,t=i}}function zi(d,e){d.rawProgramDateTime?d.programDateTime=Date.parse(d.rawProgramDateTime):e!=null&&e.programDateTime&&(d.programDateTime=e.endProgramDateTime),o(d.programDateTime)||(d.programDateTime=null,d.rawProgramDateTime=null)}function ca(d,e,t,r){d.relurl=e.URI,e.BYTERANGE&&d.setByteRange(e.BYTERANGE),d.level=t,d.sn="initSegment",r&&(d.levelkeys=r),d.initSegment=null}function xi(d,e,t){d.levelkeys=e;const{encryptedFragments:r}=t;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(i=>e[i].isCommonEncryption)&&r.push(d)}var vn={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Ht={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Ln(d){const{type:e}=d;switch(e){case vn.AUDIO_TRACK:return Ht.AUDIO;case vn.SUBTITLE_TRACK:return Ht.SUBTITLE;default:return Ht.MAIN}}function Gn(d,e){let t=d.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Ci{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(a.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_LOADING,this.onLevelLoading,this),e.off(a.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(a.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}createInternalLoader(e){const t=this.hls.config,r=t.pLoader,i=t.loader,s=r||i,l=new s(t);return this.loaders[e.type]=l,l}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:vn.MANIFEST,url:r,deliveryDirectives:null})}onLevelLoading(e,t){const{id:r,level:i,pathwayId:s,url:l,deliveryDirectives:x}=t;this.load({id:r,level:i,pathwayId:s,responseType:"text",type:vn.LEVEL,url:l,deliveryDirectives:x})}onAudioTrackLoading(e,t){const{id:r,groupId:i,url:s,deliveryDirectives:l}=t;this.load({id:r,groupId:i,level:null,responseType:"text",type:vn.AUDIO_TRACK,url:s,deliveryDirectives:l})}onSubtitleTrackLoading(e,t){const{id:r,groupId:i,url:s,deliveryDirectives:l}=t;this.load({id:r,groupId:i,level:null,responseType:"text",type:vn.SUBTITLE_TRACK,url:s,deliveryDirectives:l})}load(e){var t;const r=this.hls.config;let i=this.getInternalLoader(e);if(i){const J=i.context;if(J&&J.url===e.url&&J.level===e.level){B.trace("[playlist-loader]: playlist request ongoing");return}B.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),i.abort()}let s;if(e.type===vn.MANIFEST?s=r.manifestLoadPolicy.default:s=n({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),i=this.createInternalLoader(e),o((t=e.deliveryDirectives)==null?void 0:t.part)){let J;if(e.type===vn.LEVEL&&e.level!==null?J=this.hls.levels[e.level].details:e.type===vn.AUDIO_TRACK&&e.id!==null?J=this.hls.audioTracks[e.id].details:e.type===vn.SUBTITLE_TRACK&&e.id!==null&&(J=this.hls.subtitleTracks[e.id].details),J){const fe=J.partTarget,Oe=J.targetduration;if(fe&&Oe){const Ve=Math.max(fe*3,Oe*.8)*1e3;s=n({},s,{maxTimeToFirstByteMs:Math.min(Ve,s.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Ve,s.maxTimeToFirstByteMs)})}}}const l=s.errorRetry||s.timeoutRetry||{},x={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},j={onSuccess:(J,fe,Oe,Ve)=>{const Je=this.getInternalLoader(Oe);this.resetInternalLoader(Oe.type);const ut=J.data;if(ut.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(J,Oe,new Error("no EXTM3U delimiter"),Ve||null,fe);return}fe.parsing.start=performance.now(),ui.isMediaPlaylist(ut)?this.handleTrackOrLevelPlaylist(J,fe,Oe,Ve||null,Je):this.handleMasterPlaylist(J,fe,Oe,Ve)},onError:(J,fe,Oe,Ve)=>{this.handleNetworkError(fe,Oe,!1,J,Ve)},onTimeout:(J,fe,Oe)=>{this.handleNetworkError(fe,Oe,!0,void 0,J)}};i.load(e,x,j)}handleMasterPlaylist(e,t,r,i){const s=this.hls,l=e.data,x=Gn(e,r),j=ui.parseMasterPlaylist(l,x);if(j.playlistParsingError){this.handleManifestParsingError(e,r,j.playlistParsingError,i,t);return}const{contentSteering:J,levels:fe,sessionData:Oe,sessionKeys:Ve,startTimeOffset:Je,variableList:ut}=j;this.variableList=ut;const{AUDIO:Ct=[],SUBTITLES:Ft,"CLOSED-CAPTIONS":gr}=ui.parseMasterPlaylistMedia(l,x,j);Ct.length&&!Ct.some(Fr=>!Fr.url)&&fe[0].audioCodec&&!fe[0].attrs.AUDIO&&(B.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Ct.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new q({}),bitrate:0,url:""})),s.trigger(a.MANIFEST_LOADED,{levels:fe,audioTracks:Ct,subtitles:Ft,captions:gr,contentSteering:J,url:x,stats:t,networkDetails:i,sessionData:Oe,sessionKeys:Ve,startTimeOffset:Je,variableList:ut})}handleTrackOrLevelPlaylist(e,t,r,i,s){const l=this.hls,{id:x,level:j,type:J}=r,fe=Gn(e,r),Oe=0,Ve=o(j)?j:o(x)?x:0,Je=Ln(r),ut=ui.parseLevelPlaylist(e.data,fe,Ve,Je,Oe,this.variableList);if(J===vn.MANIFEST){const Ct={attrs:new q({}),bitrate:0,details:ut,name:"",url:fe};l.trigger(a.MANIFEST_LOADED,{levels:[Ct],audioTracks:[],url:fe,stats:t,networkDetails:i,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=ut,this.handlePlaylistLoaded(ut,e,t,r,i,s)}handleManifestParsingError(e,t,r,i,s){this.hls.trigger(a.ERROR,{type:A.NETWORK_ERROR,details:m.MANIFEST_PARSING_ERROR,fatal:t.type===vn.MANIFEST,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:i,stats:s})}handleNetworkError(e,t,r=!1,i,s){let l=`A network ${r?"timeout":"error"+(i?" (status "+i.code+")":"")} occurred while loading ${e.type}`;e.type===vn.LEVEL?l+=`: ${e.level} id: ${e.id}`:(e.type===vn.AUDIO_TRACK||e.type===vn.SUBTITLE_TRACK)&&(l+=` id: ${e.id} group-id: "${e.groupId}"`);const x=new Error(l);B.warn(`[playlist-loader]: ${l}`);let j=m.UNKNOWN,J=!1;const fe=this.getInternalLoader(e);switch(e.type){case vn.MANIFEST:j=r?m.MANIFEST_LOAD_TIMEOUT:m.MANIFEST_LOAD_ERROR,J=!0;break;case vn.LEVEL:j=r?m.LEVEL_LOAD_TIMEOUT:m.LEVEL_LOAD_ERROR,J=!1;break;case vn.AUDIO_TRACK:j=r?m.AUDIO_TRACK_LOAD_TIMEOUT:m.AUDIO_TRACK_LOAD_ERROR,J=!1;break;case vn.SUBTITLE_TRACK:j=r?m.SUBTITLE_TRACK_LOAD_TIMEOUT:m.SUBTITLE_LOAD_ERROR,J=!1;break}fe&&this.resetInternalLoader(e.type);const Oe={type:A.NETWORK_ERROR,details:j,fatal:J,url:e.url,loader:fe,context:e,error:x,networkDetails:t,stats:s};if(i){const Ve=(t==null?void 0:t.url)||e.url;Oe.response=ie({url:Ve,data:void 0},i)}this.hls.trigger(a.ERROR,Oe)}handlePlaylistLoaded(e,t,r,i,s,l){const x=this.hls,{type:j,level:J,id:fe,groupId:Oe,deliveryDirectives:Ve}=i,Je=Gn(t,i),ut=Ln(i),Ct=typeof i.level=="number"&&ut===Ht.MAIN?J:void 0;if(!e.fragments.length){const gr=new Error("No Segments found in Playlist");x.trigger(a.ERROR,{type:A.NETWORK_ERROR,details:m.LEVEL_EMPTY_ERROR,fatal:!1,url:Je,error:gr,reason:gr.message,response:t,context:i,level:Ct,parent:ut,networkDetails:s,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Ft=e.playlistParsingError;if(Ft){x.trigger(a.ERROR,{type:A.NETWORK_ERROR,details:m.LEVEL_PARSING_ERROR,fatal:!1,url:Je,error:Ft,reason:Ft.message,response:t,context:i,level:Ct,parent:ut,networkDetails:s,stats:r});return}switch(e.live&&l&&(l.getCacheAge&&(e.ageHeader=l.getCacheAge()||0),(!l.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),j){case vn.MANIFEST:case vn.LEVEL:x.trigger(a.LEVEL_LOADED,{details:e,level:Ct||0,id:fe||0,stats:r,networkDetails:s,deliveryDirectives:Ve});break;case vn.AUDIO_TRACK:x.trigger(a.AUDIO_TRACK_LOADED,{details:e,id:fe||0,groupId:Oe||"",stats:r,networkDetails:s,deliveryDirectives:Ve});break;case vn.SUBTITLE_TRACK:x.trigger(a.SUBTITLE_TRACK_LOADED,{details:e,id:fe||0,groupId:Oe||"",stats:r,networkDetails:s,deliveryDirectives:Ve});break}}}function ji(d,e){let t;try{t=new Event("addtrack")}catch(r){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=d,e.dispatchEvent(t)}function fa(d,e){const t=d.mode;if(t==="disabled"&&(d.mode="hidden"),d.cues&&!d.cues.getCueById(e.id))try{if(d.addCue(e),!d.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(r){B.debug(`[texttrack-utils]: ${r}`);try{const i=new self.TextTrackCue(e.startTime,e.endTime,e.text);i.id=e.id,d.addCue(i)}catch(i){B.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${i}`)}}t==="disabled"&&(d.mode=t)}function va(d){const e=d.mode;if(e==="disabled"&&(d.mode="hidden"),d.cues)for(let t=d.cues.length;t--;)d.removeCue(d.cues[t]);e==="disabled"&&(d.mode=e)}function ea(d,e,t,r){const i=d.mode;if(i==="disabled"&&(d.mode="hidden"),d.cues&&d.cues.length>0){const s=yi(d.cues,e,t);for(let l=0;l<s.length;l++)(!r||r(s[l]))&&d.removeCue(s[l])}i==="disabled"&&(d.mode=i)}function _i(d,e){if(e<d[0].startTime)return 0;const t=d.length-1;if(e>d[t].endTime)return-1;let r=0,i=t;for(;r<=i;){const s=Math.floor((i+r)/2);if(e<d[s].startTime)i=s-1;else if(e>d[s].startTime&&r<t)r=s+1;else return s}return d[r].startTime-e<e-d[i].startTime?r:i}function yi(d,e,t){const r=[],i=_i(d,e);if(i>-1)for(let s=i,l=d.length;s<l;s++){const x=d[s];if(x.startTime>=e&&x.endTime<=t)r.push(x);else if(x.startTime>t)return r}return r}function Si(d){const e=[];for(let t=0;t<d.length;t++){const r=d[t];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&e.push(d[t])}return e}var ra={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};const Aa=.25;function es(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function ps(d,e,t,r,i){let s=new d(e,t,"");try{s.value=r,i&&(s.type=i)}catch(l){s=new d(e,t,JSON.stringify(i?ie({type:i},r):r))}return s}const hi=(()=>{const d=es();try{d&&new d(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function Ca(d,e){return d.getTime()/1e3-e}function ma(d){return Uint8Array.from(d.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class ka{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.LEVEL_UPDATED,this.onLevelUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.LEVEL_UPDATED,this.onLevelUpdated,this)}onMediaAttached(e,t){this.media=t.media}onMediaDetaching(){this.id3Track&&(va(this.id3Track),this.id3Track=null,this.media=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 ji(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:r,enableID3MetadataCues:i}}}=this;if(!r&&!i)return;const{samples:s}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const l=es();if(l)for(let x=0;x<s.length;x++){const j=s[x].type;if(j===ra.emsg&&!r||!i)continue;const J=Te(s[x].data);if(J){const fe=s[x].pts;let Oe=fe+s[x].duration;Oe>hi&&(Oe=hi),Oe-fe<=0&&(Oe=fe+Aa);for(let Je=0;Je<J.length;Je++){const ut=J[Je];if(!te(ut)){this.updateId3CueEnds(fe,j);const Ct=ps(l,fe,Oe,ut,j);Ct&&this.id3Track.addCue(Ct)}}}}}updateId3CueEnds(e,t){var r;const i=(r=this.id3Track)==null?void 0:r.cues;if(i)for(let s=i.length;s--;){const l=i[s];l.type===t&&l.startTime<e&&l.endTime===hi&&(l.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:r,type:i}){const{id3Track:s,hls:l}=this;if(!l)return;const{config:{enableEmsgMetadataCues:x,enableID3MetadataCues:j}}=l;if(s&&(x||j)){let J;i==="audio"?J=fe=>fe.type===ra.audioId3&&j:i==="video"?J=fe=>fe.type===ra.emsg&&x:J=fe=>fe.type===ra.audioId3&&j||fe.type===ra.emsg&&x,ea(s,t,r,J)}}onLevelUpdated(e,{details:t}){if(!this.media||!t.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{dateRangeCuesAppended:r,id3Track:i}=this,{dateRanges:s}=t,l=Object.keys(s);if(i){const fe=Object.keys(r).filter(Oe=>!l.includes(Oe));for(let Oe=fe.length;Oe--;){const Ve=fe[Oe];Object.keys(r[Ve].cues).forEach(Je=>{i.removeCue(r[Ve].cues[Je])}),delete r[Ve]}}const x=t.fragments[t.fragments.length-1];if(l.length===0||!o(x==null?void 0:x.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const j=x.programDateTime/1e3-x.start,J=es();for(let fe=0;fe<l.length;fe++){const Oe=l[fe],Ve=s[Oe],Je=Ca(Ve.startDate,j),ut=r[Oe],Ct=(ut==null?void 0:ut.cues)||{};let Ft=(ut==null?void 0:ut.durationKnown)||!1,gr=hi;const Or=Ve.endDate;if(Or)gr=Ca(Or,j),Ft=!0;else if(Ve.endOnNext&&!Ft){const Un=l.reduce((an,mi)=>{if(mi!==Ve.id){const zn=s[mi];if(zn.class===Ve.class&&zn.startDate>Ve.startDate&&(!an||Ve.startDate<an.startDate))return zn}return an},null);Un&&(gr=Ca(Un.startDate,j),Ft=!0)}const Fr=Object.keys(Ve.attr);for(let Un=0;Un<Fr.length;Un++){const an=Fr[Un];if(!be(an))continue;const mi=Ct[an];if(mi)Ft&&!ut.durationKnown&&(mi.endTime=gr);else if(J){let zn=Ve.attr[an];xe(an)&&(zn=ma(zn));const Ti=ps(J,Je,gr,{key:an,data:zn},ra.dateRange);Ti&&(Ti.id=Oe,this.id3Track.addCue(Ti),Ct[an]=Ti)}}r[Oe]={cues:Ct,dateRange:Ve,durationKnown:Ft}}}}class Ps{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=()=>this.timeupdate(),this.hls=e,this.config=e.config,this.registerListeners()}get latency(){return this._latency||0}get maxLatency(){const{config:e,levelDetails:t}=this;return e.liveMaxLatencyDuration!==void 0?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const{levelDetails:e}=this;if(e===null)return null;const{holdBack:t,partHoldBack:r,targetduration:i}=e,{liveSyncDuration:s,liveSyncDurationCount:l,lowLatencyMode:x}=this.config,j=this.hls.userConfig;let J=x&&r||t;(j.liveSyncDuration||j.liveSyncDurationCount||J===0)&&(J=s!==void 0?s:l*i);const fe=i;return J+Math.min(this.stallCount*1,fe)}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency,r=this.levelDetails;if(e===null||t===null||r===null)return null;const i=r.edge,s=e-t-this.edgeStalled,l=i-r.totalduration,x=i-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(l,s),x)}get drift(){const{levelDetails:e}=this;return e===null?1:e.drift}get edgeStalled(){const{levelDetails:e}=this;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,levelDetails:t}=this;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.levelDetails=null,this.hls=this.timeupdateHandler=null}registerListeners(){this.hls.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(a.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(a.ERROR,this.onError,this)}unregisterListeners(){this.hls.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(a.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(a.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}onManifestLoading(){this.levelDetails=null,this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){this.levelDetails=t,t.advanced&&this.timeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}onError(e,t){var r;t.details===m.BUFFER_STALLED_ERROR&&(this.stallCount++,(r=this.levelDetails)!=null&&r.live&&B.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}timeupdate(){const{media:e,levelDetails:t}=this;if(!e||!t)return;this.currentTime=e.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!t.live)return;const l=this.targetLatency;if(l===null)return;const x=r-l,j=Math.min(this.maxLatency,l+t.targetduration);if(x<j&&x>.05&&this.forwardBufferLength>1){const fe=Math.min(2,Math.max(1,s)),Oe=Math.round(2/(1+Math.exp(-.75*x-this.edgeStalled))*20)/20;e.playbackRate=Math.min(fe,Math.max(1,Oe))}else e.playbackRate!==1&&e.playbackRate!==0&&(e.playbackRate=1)}estimateLiveEdge(){const{levelDetails:e}=this;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}const is=["NONE","TYPE-0","TYPE-1",null];function Fa(d){return is.indexOf(d)>-1}const Mi=["SDR","PQ","HLG"];function la(d){return!!d&&Mi.indexOf(d)>-1}var ms={No:"",Yes:"YES",v2:"v2"};function as(d){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=d,i=r<e/2;return e&&i?t?ms.v2:ms.Yes:ms.No}class ts{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 Wi{constructor(e){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.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(t=>!!t).map(t=>t.substring(0,4)).join(","),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 gs(this._audioGroups,e)}hasSubtitleGroup(e){return gs(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 gs(d,e){return!e||!d?!1:d.indexOf(e)!==-1}function aa(d,e){const t=e.startPTS;if(o(t)){let r=0,i;e.sn>d.sn?(r=t-d.start,i=d):(r=d.start-t,i=e),i.duration!==r&&(i.duration=r)}else e.sn>d.sn?d.cc===e.cc&&d.minEndPTS?e.start=d.start+(d.minEndPTS-d.start):e.start=d.start+d.duration:e.start=Math.max(d.start-e.duration,0)}function co(d,e,t,r,i,s){r-t<=0&&(B.warn("Fragment should have a positive duration",e),r=t+e.duration,s=i+e.duration);let x=t,j=r;const J=e.startPTS,fe=e.endPTS;if(o(J)){const Ft=Math.abs(J-t);o(e.deltaPTS)?e.deltaPTS=Math.max(Ft,e.deltaPTS):e.deltaPTS=Ft,x=Math.max(t,J),t=Math.min(t,J),i=Math.min(i,e.startDTS),j=Math.min(r,fe),r=Math.max(r,fe),s=Math.max(s,e.endDTS)}const Oe=t-e.start;e.start!==0&&(e.start=t),e.duration=r-e.start,e.startPTS=t,e.maxStartPTS=x,e.startDTS=i,e.endPTS=r,e.minEndPTS=j,e.endDTS=s;const Ve=e.sn;if(!d||Ve<d.startSN||Ve>d.endSN)return 0;let Je;const ut=Ve-d.startSN,Ct=d.fragments;for(Ct[ut]=e,Je=ut;Je>0;Je--)aa(Ct[Je],Ct[Je-1]);for(Je=ut;Je<Ct.length-1;Je++)aa(Ct[Je],Ct[Je+1]);return d.fragmentHint&&aa(Ct[Ct.length-1],d.fragmentHint),d.PTSKnown=d.alignedSliding=!0,Oe}function Qs(d,e){let t=null;const r=d.fragments;for(let x=r.length-1;x>=0;x--){const j=r[x].initSegment;if(j){t=j;break}}d.fragmentHint&&delete d.fragmentHint.endPTS;let i;_o(d,e,(x,j,J,fe)=>{if(e.skippedSegments&&j.cc!==x.cc){const Oe=x.cc-j.cc;for(let Ve=J;Ve<fe.length;Ve++)fe[Ve].cc+=Oe}o(x.startPTS)&&o(x.endPTS)&&(j.start=j.startPTS=x.startPTS,j.startDTS=x.startDTS,j.maxStartPTS=x.maxStartPTS,j.endPTS=x.endPTS,j.endDTS=x.endDTS,j.minEndPTS=x.minEndPTS,j.duration=x.endPTS-x.startPTS,j.duration&&(i=j),e.PTSKnown=e.alignedSliding=!0),j.elementaryStreams=x.elementaryStreams,j.loader=x.loader,j.stats=x.stats,x.initSegment&&(j.initSegment=x.initSegment,t=x.initSegment)});const s=e.fragments;if(t&&(e.fragmentHint?s.concat(e.fragmentHint):s).forEach(j=>{var J;j&&(!j.initSegment||j.initSegment.relurl===((J=t)==null?void 0:J.relurl))&&(j.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=s.some(x=>!x),e.deltaUpdateFailed){B.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let x=e.skippedSegments;x--;)s.shift();e.startSN=s[0].sn}else e.canSkipDateRanges&&(e.dateRanges=Co(d.dateRanges,e.dateRanges,e.recentlyRemovedDateranges));e.startCC=e.fragments[0].cc,e.endCC=s[s.length-1].cc}fs(d.partList,e.partList,(x,j)=>{j.elementaryStreams=x.elementaryStreams,j.stats=x.stats}),i?co(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS):ss(d,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=d.driftStartTime,e.driftStart=d.driftStart;const l=e.advancedDateTime;if(e.advanced&&l){const x=e.edge;e.driftStart||(e.driftStartTime=l,e.driftStart=x),e.driftEndTime=l,e.driftEnd=x}else e.driftEndTime=d.driftEndTime,e.driftEnd=d.driftEnd,e.advancedDateTime=d.advancedDateTime}function Co(d,e,t){const r=n({},d);return t&&t.forEach(i=>{delete r[i]}),Object.keys(e).forEach(i=>{const s=new Le(e[i].attr,r[i]);s.isValid?r[i]=s:B.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${JSON.stringify(e[i].attr)}"`)}),r}function fs(d,e,t){if(d&&e){let r=0;for(let i=0,s=d.length;i<=s;i++){const l=d[i],x=e[i+r];l&&x&&l.index===x.index&&l.fragment.sn===x.fragment.sn?t(l,x):r--}}}function _o(d,e,t){const r=e.skippedSegments,i=Math.max(d.startSN,e.startSN)-e.startSN,s=(d.fragmentHint?1:0)+(r?e.endSN:Math.min(d.endSN,e.endSN))-e.startSN,l=e.startSN-d.startSN,x=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,j=d.fragmentHint?d.fragments.concat(d.fragmentHint):d.fragments;for(let J=i;J<=s;J++){const fe=j[l+J];let Oe=x[J];r&&!Oe&&J<r&&(Oe=e.fragments[J]=fe),fe&&Oe&&t(fe,Oe,J,x)}}function ss(d,e){const t=e.startSN+e.skippedSegments-d.startSN,r=d.fragments;t<0||t>=r.length||Yn(e,r[t].start)}function Yn(d,e){if(e){const t=d.fragments;for(let r=d.skippedSegments;r<t.length;r++)t[r].start+=e;d.fragmentHint&&(d.fragmentHint.start+=e)}}function Da(d,e=1/0){let t=1e3*d.targetduration;if(d.updated){const r=d.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 io(d,e,t){if(!(d!=null&&d.details))return null;const r=d.details;let i=r.fragments[e-r.startSN];return i||(i=r.fragmentHint,i&&i.sn===e)?i:e<r.startSN&&t&&t.sn===e?t:null}function Zi(d,e,t){var r;return d!=null&&d.details?ta((r=d.details)==null?void 0:r.partList,e,t):null}function ta(d,e,t){if(d)for(let r=d.length;r--;){const i=d[r];if(i.index===t&&i.fragment.sn===e)return i}return null}function $i(d){d.forEach((e,t)=>{const{details:r}=e;r!=null&&r.fragments&&r.fragments.forEach(i=>{i.level=t})})}function Ui(d){switch(d.details){case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_TIMEOUT:case m.LEVEL_LOAD_TIMEOUT:case m.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function wa(d,e){const t=Ui(e);return d.default[`${t?"timeout":"error"}Retry`]}function Pa(d,e){const t=d.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*d.retryDelayMs,d.maxRetryDelayMs)}function Ls(d){return ie(ie({},d),{errorRetry:null,timeoutRetry:null})}function cs(d,e,t,r){if(!d)return!1;const i=r==null?void 0:r.code,s=e<d.maxNumRetry&&(Es(i)||!!t);return d.shouldRetry?d.shouldRetry(d,e,t,r,s):s}function Es(d){return d===0&&navigator.onLine===!1||!!d&&(d<400||d>499)}const rs={search:function(d,e){let t=0,r=d.length-1,i=null,s=null;for(;t<=r;){i=(t+r)/2|0,s=d[i];const l=e(s);if(l>0)t=i+1;else if(l<0)r=i-1;else return s}return null}};function Bo(d,e,t){if(e===null||!Array.isArray(d)||!d.length||!o(e))return null;const r=d[0].programDateTime;if(e<(r||0))return null;const i=d[d.length-1].endProgramDateTime;if(e>=(i||0))return null;t=t||0;for(let s=0;s<d.length;++s){const l=d[s];if(Rs(e,t,l))return l}return null}function go(d,e,t=0,r=0,i=.005){let s=null;if(d){s=e[d.sn-e[0].sn+1]||null;const x=d.endDTS-t;x>0&&x<15e-7&&(t+=15e-7)}else t===0&&e[0].start===0&&(s=e[0]);if(s&&((!d||d.level===s.level)&&zs(t,r,s)===0||eo(s,d,Math.min(i,r))))return s;const l=rs.search(e,zs.bind(null,t,r));return l&&(l!==d||!s)?l:s}function eo(d,e,t){if(e&&e.start===0&&e.level<d.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((i,s)=>(s[0]==="INF"&&(i+=parseFloat(s[1])),i),t);return d.start<=r}return!1}function zs(d=0,e=0,t){if(t.start<=d&&t.start+t.duration>d)return 0;const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-r<=d?1:t.start-r>d&&t.start?-1:0}function Rs(d,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>d}function Oi(d,e){return rs.search(d,t=>t.cc<e?1:t.cc>e?-1:0)}var Ai={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},ua={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class vs{constructor(e){this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=e,this.log=B.log.bind(B,"[info]:"),this.warn=B.warn.bind(B,"[warning]:"),this.error=B.error.bind(B,"[error]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(a.ERROR,this.onError,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(a.ERROR,this.onError,this),e.off(a.ERROR,this.onErrorOut,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.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)===Ht.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var r,i;if(t.fatal)return;const s=this.hls,l=t.context;switch(t.details){case m.FRAG_LOAD_ERROR:case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_ERROR:case m.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case m.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction={action:Ai.DoNothing,flags:ua.None};return}case m.FRAG_GAP:case m.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Ai.SendAlternateToPenaltyBox;return}case m.LEVEL_EMPTY_ERROR:case m.LEVEL_PARSING_ERROR:{var x,j;const J=t.parent===Ht.MAIN?t.level:s.loadLevel;t.details===m.LEVEL_EMPTY_ERROR&&((x=t.context)!=null&&(j=x.levelDetails)!=null&&j.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,J):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,J))}return;case m.LEVEL_LOAD_ERROR:case m.LEVEL_LOAD_TIMEOUT:typeof(l==null?void 0:l.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,l.level));return;case m.AUDIO_TRACK_LOAD_ERROR:case m.AUDIO_TRACK_LOAD_TIMEOUT:case m.SUBTITLE_LOAD_ERROR:case m.SUBTITLE_TRACK_LOAD_TIMEOUT:if(l){const J=s.levels[s.loadLevel];if(J&&(l.type===vn.AUDIO_TRACK&&J.hasAudioGroup(l.groupId)||l.type===vn.SUBTITLE_TRACK&&J.hasSubtitleGroup(l.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,s.loadLevel),t.errorAction.action=Ai.SendAlternateToPenaltyBox,t.errorAction.flags=ua.MoveAllAlternatesMatchingHost;return}}return;case m.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const J=s.levels[s.loadLevel],fe=J==null?void 0:J.attrs["HDCP-LEVEL"];fe?t.errorAction={action:Ai.SendAlternateToPenaltyBox,flags:ua.MoveAllAlternatesMatchingHDCP,hdcpLevel:fe}:this.keySystemError(t)}return;case m.BUFFER_ADD_CODEC_ERROR:case m.REMUX_ALLOC_ERROR:case m.BUFFER_APPEND_ERROR:t.errorAction=this.getLevelSwitchAction(t,(i=t.level)!=null?i:s.loadLevel);return;case m.INTERNAL_EXCEPTION:case m.BUFFER_APPENDING_ERROR:case m.BUFFER_FULL_ERROR:case m.LEVEL_SWITCH_ERROR:case m.BUFFER_STALLED_ERROR:case m.BUFFER_SEEK_OVER_HOLE:case m.BUFFER_NUDGE_ON_STALL:t.errorAction={action:Ai.DoNothing,flags:ua.None};return}t.type===A.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,i=wa(r.config.playlistLoadPolicy,e),s=this.playlistError++;if(cs(i,s,Ui(e),e.response))return{action:Ai.RetryRequest,flags:ua.None,retryConfig:i,retryCount:s};const x=this.getLevelSwitchAction(e,t);return i&&(x.retryConfig=i,x.retryCount=s),x}getFragRetryOrSwitchAction(e){const t=this.hls,r=this.getVariantLevelIndex(e.frag),i=t.levels[r],{fragLoadPolicy:s,keyLoadPolicy:l}=t.config,x=wa(e.details.startsWith("key")?l:s,e),j=t.levels.reduce((fe,Oe)=>fe+Oe.fragmentError,0);if(i&&(e.details!==m.FRAG_GAP&&i.fragmentError++,cs(x,j,Ui(e),e.response)))return{action:Ai.RetryRequest,flags:ua.None,retryConfig:x,retryCount:j};const J=this.getLevelSwitchAction(e,r);return x&&(J.retryConfig=x,J.retryCount=j),J}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const i=this.hls.levels[t];if(i){var s,l;const J=e.details;i.loadError++,J===m.BUFFER_APPEND_ERROR&&i.fragmentError++;let fe=-1;const{levels:Oe,loadLevel:Ve,minAutoLevel:Je,maxAutoLevel:ut}=r;r.autoLevelEnabled||(r.loadLevel=-1);const Ct=(s=e.frag)==null?void 0:s.type,gr=(Ct===Ht.AUDIO&&J===m.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(J===m.BUFFER_ADD_CODEC_ERROR||J===m.BUFFER_APPEND_ERROR))&&Oe.some(({audioCodec:mi})=>i.audioCodec!==mi),Fr=e.sourceBufferName==="video"&&(J===m.BUFFER_ADD_CODEC_ERROR||J===m.BUFFER_APPEND_ERROR)&&Oe.some(({codecSet:mi,audioCodec:zn})=>i.codecSet!==mi&&i.audioCodec===zn),{type:Un,groupId:an}=(l=e.context)!=null?l:{};for(let mi=Oe.length;mi--;){const zn=(mi+Ve)%Oe.length;if(zn!==Ve&&zn>=Je&&zn<=ut&&Oe[zn].loadError===0){var x,j;const Ti=Oe[zn];if(J===m.FRAG_GAP&&Ct===Ht.MAIN&&e.frag){const qi=Oe[zn].details;if(qi){const di=go(e.frag,qi.fragments,e.frag.start);if(di!=null&&di.gap)continue}}else{if(Un===vn.AUDIO_TRACK&&Ti.hasAudioGroup(an)||Un===vn.SUBTITLE_TRACK&&Ti.hasSubtitleGroup(an))continue;if(Ct===Ht.AUDIO&&(x=i.audioGroups)!=null&&x.some(qi=>Ti.hasAudioGroup(qi))||Ct===Ht.SUBTITLE&&(j=i.subtitleGroups)!=null&&j.some(qi=>Ti.hasSubtitleGroup(qi))||gr&&i.audioCodec===Ti.audioCodec||!gr&&i.audioCodec!==Ti.audioCodec||Fr&&i.codecSet===Ti.codecSet)continue}fe=zn;break}}if(fe>-1&&r.loadLevel!==fe)return e.levelRetry=!0,this.playlistError=0,{action:Ai.SendAlternateToPenaltyBox,flags:ua.None,nextAutoLevel:fe}}return{action:Ai.SendAlternateToPenaltyBox,flags:ua.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case Ai.DoNothing:break;case Ai.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==m.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 Ai.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,r=e.errorAction;if(!r)return;const{flags:i,hdcpLevel:s,nextAutoLevel:l}=r;switch(i){case ua.None:this.switchLevel(e,l);break;case ua.MoveAllAlternatesMatchingHDCP:s&&(t.maxHdcpLevel=is[is.indexOf(s)-1],r.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}r.resolved||this.switchLevel(e,l)}switchLevel(e,t){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)}}class Ra{constructor(e,t){this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=B.log.bind(B,`${t}:`),this.warn=B.warn.bind(B,`${t}:`),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.requestScheduled=-1,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,r){const i=t==null?void 0:t.renditionReports;if(i){let s=-1;for(let l=0;l<i.length;l++){const x=i[l];let j;try{j=new self.URL(x.URI,t.url).href}catch(J){B.warn(`Could not construct new URL for Rendition Report: ${J}`),j=x.URI||""}if(j===e){s=l;break}else j===e.substring(0,j.length)&&(s=l)}if(s!==-1){const l=i[s],x=parseInt(l["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let j=parseInt(l["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const fe=Math.min(t.age-t.partTarget,t.targetduration);j>=0&&fe>t.partTarget&&(j+=1)}const J=r&&as(r);return new ts(x,j>=0?j:void 0,J)}}}loadPlaylist(e){this.requestScheduled===-1&&(this.requestScheduled=self.performance.now())}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}shouldReloadPlaylist(e){return this.timer===-1&&this.requestScheduled===-1&&this.shouldLoadPlaylist(e)}playlistLoaded(e,t,r){const{details:i,stats:s}=t,l=self.performance.now(),x=s.loading.first?Math.max(0,l-s.loading.first):0;if(i.advancedDateTime=Date.now()-x,i.live||r!=null&&r.live){if(i.reloaded(r),r&&this.log(`live playlist ${e} ${i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED"}`),r&&i.fragments.length>0&&Qs(r,i),!this.canLoad||!i.live)return;let j,J,fe;if(i.canBlockReload&&i.endSN&&i.advanced){const Ft=this.hls.config.lowLatencyMode,gr=i.lastPartSn,Or=i.endSN,Fr=i.lastPartIndex,Un=Fr!==-1,an=gr===Or,mi=Ft?0:Fr;Un?(J=an?Or+1:gr,fe=an?mi:Fr+1):J=Or+1;const zn=i.age,Ti=zn+i.ageHeader;let qi=Math.min(Ti-i.partTarget,i.targetduration*1.5);if(qi>0){if(r&&qi>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${qi} with playlist age: ${i.age}`),qi=0;else{const di=Math.floor(qi/i.targetduration);if(J+=di,fe!==void 0){const Ni=Math.round(qi%i.targetduration/i.partTarget);fe+=Ni}this.log(`CDN Tune-in age: ${i.ageHeader}s last advanced ${zn.toFixed(2)}s goal: ${qi} skip sn ${di} to part ${fe}`)}i.tuneInGoal=qi}if(j=this.getDeliveryDirectives(i,t.deliveryDirectives,J,fe),Ft||!an){this.loadPlaylist(j);return}}else(i.canBlockReload||i.canSkipUntil)&&(j=this.getDeliveryDirectives(i,t.deliveryDirectives,J,fe));const Oe=this.hls.mainForwardBufferInfo,Ve=Oe?Oe.end-Oe.len:0,Je=(i.edge-Ve)*1e3,ut=Da(i,Je);i.updated&&l>this.requestScheduled+ut&&(this.requestScheduled=s.loading.start),J!==void 0&&i.canBlockReload?this.requestScheduled=s.loading.first+ut-(i.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+ut<l?this.requestScheduled=l:this.requestScheduled-l<=0&&(this.requestScheduled+=ut);let Ct=this.requestScheduled-l;Ct=Math.max(0,Ct),this.log(`reload live playlist ${e} in ${Math.round(Ct)} ms`),this.timer=self.setTimeout(()=>this.loadPlaylist(j),Ct)}else this.clearTimer()}getDeliveryDirectives(e,t,r,i){let s=as(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,i=t.part,s=ms.No),new ts(r,i,s)}checkRetry(e){const t=e.details,r=Ui(e),i=e.errorAction,{action:s,retryCount:l=0,retryConfig:x}=i||{},j=!!i&&!!x&&(s===Ai.RetryRequest||!i.resolved&&s===Ai.SendAlternateToPenaltyBox);if(j){var J;if(this.requestScheduled=-1,l>=x.maxNumRetry)return!1;if(r&&(J=e.context)!=null&&J.deliveryDirectives)this.warn(`Retrying playlist loading ${l+1}/${x.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const fe=Pa(x,l);this.timer=self.setTimeout(()=>this.loadPlaylist(),fe),this.warn(`Retrying playlist loading ${l+1}/${x.maxNumRetry} after "${t}" in ${fe}ms`)}e.levelRetry=!0,i.resolved=!0}return j}}class Ns{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 Vs{constructor(e,t,r,i=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 Ns(e),this.fast_=new Ns(t),this.defaultTTFB_=i,this.ttfb_=new Ns(e)}update(e,t){const{slow_:r,fast_:i,ttfb_:s}=this;r.halfLife!==e&&(this.slow_=new Ns(e,r.getEstimate(),r.getTotalWeight())),i.halfLife!==t&&(this.fast_=new Ns(t,i.getEstimate(),i.getTotalWeight())),s.halfLife!==e&&(this.ttfb_=new Ns(e,s.getEstimate(),s.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const r=8*t,i=e/1e3,s=r/i;this.fast_.sample(i,s),this.slow_.sample(i,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_}destroy(){}}const vo={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},Os={};function Di(d,e,t,r,i,s){const l=d.audioCodec?d.audioGroups:null,x=s==null?void 0:s.audioCodec,j=s==null?void 0:s.channels,J=j?parseInt(j):x?1/0:2;let fe=null;if(l!=null&&l.length)try{l.length===1&&l[0]?fe=e.groups[l[0]].channels:fe=l.reduce((Oe,Ve)=>{if(Ve){const Je=e.groups[Ve];if(!Je)throw new Error(`Audio track group ${Ve} not found`);Object.keys(Je.channels).forEach(ut=>{Oe[ut]=(Oe[ut]||0)+Je.channels[ut]})}return Oe},{2:0})}catch(Oe){return!0}return d.videoCodec!==void 0&&(d.width>1920&&d.height>1088||d.height>1920&&d.width>1088||d.frameRate>Math.max(r,30)||d.videoRange!=="SDR"&&d.videoRange!==t||d.bitrate>Math.max(i,8e6))||!!fe&&o(J)&&Object.keys(fe).some(Oe=>parseInt(Oe)>J)}function Dl(d,e,t){const r=d.videoCodec,i=d.audioCodec;if(!r||!i||!t)return Promise.resolve(vo);const s={width:d.width,height:d.height,bitrate:Math.ceil(Math.max(d.bitrate*.9,d.averageBitrate)),framerate:d.frameRate||30},l=d.videoRange;l!=="SDR"&&(s.transferFunction=l.toLowerCase());const x=r.split(",").map(j=>({type:"media-source",video:ie(ie({},s),{},{contentType:Pr(j,"video")})}));return i&&d.audioGroups&&d.audioGroups.forEach(j=>{var J;j&&((J=e.groups[j])==null||J.tracks.forEach(fe=>{if(fe.groupId===j){const Oe=fe.channels||"",Ve=parseFloat(Oe);o(Ve)&&Ve>2&&x.push.apply(x,i.split(",").map(Je=>({type:"media-source",audio:{contentType:Pr(Je,"audio"),channels:""+Ve}})))}}))}),Promise.all(x.map(j=>{const J=Js(j);return Os[J]||(Os[J]=t.decodingInfo(j))})).then(j=>({supported:!j.some(J=>!J.supported),configurations:x,decodingInfoResults:j})).catch(j=>({supported:!1,configurations:x,decodingInfoResults:[],error:j}))}function Js(d){const{audio:e,video:t}=d,r=t||e;if(r){const i=r.contentType.split('"')[1];if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${i}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${i}`}return""}function nl(){if(typeof matchMedia=="function"){const d=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(d.media!==e.media)return d.matches===!0}return!1}function Qo(d,e){let t=!1,r=[];return d&&(t=d!=="SDR",r=[d]),e&&(r=e.allowedVideoRanges||Mi.slice(0),t=e.preferHDR!==void 0?e.preferHDR:nl(),t?r=r.filter(i=>i!=="SDR"):r=["SDR"]),{preferHDR:t,allowedVideoRanges:r}}function Ao(d,e,t,r,i){const s=Object.keys(d),l=r==null?void 0:r.channels,x=r==null?void 0:r.audioCodec,j=l&&parseInt(l)===2;let J=!0,fe=!1,Oe=1/0,Ve=1/0,Je=1/0,ut=0,Ct=[];const{preferHDR:Ft,allowedVideoRanges:gr}=Qo(e,i);for(let an=s.length;an--;){const mi=d[s[an]];J=mi.channels[2]>0,Oe=Math.min(Oe,mi.minHeight),Ve=Math.min(Ve,mi.minFramerate),Je=Math.min(Je,mi.minBitrate);const zn=gr.filter(Ti=>mi.videoRanges[Ti]>0);zn.length>0&&(fe=!0,Ct=zn)}Oe=o(Oe)?Oe:0,Ve=o(Ve)?Ve:0;const Or=Math.max(1080,Oe),Fr=Math.max(30,Ve);return Je=o(Je)?Je:t,t=Math.max(Je,t),fe||(e=void 0,Ct=[]),{codecSet:s.reduce((an,mi)=>{const zn=d[mi];if(mi===an)return an;if(zn.minBitrate>t)return _a(mi,`min bitrate of ${zn.minBitrate} > current estimate of ${t}`),an;if(!zn.hasDefaultAudio)return _a(mi,"no renditions with default or auto-select sound found"),an;if(x&&mi.indexOf(x.substring(0,4))%5!==0)return _a(mi,`audio codec preference "${x}" not found`),an;if(l&&!j){if(!zn.channels[l])return _a(mi,`no renditions with ${l} channel sound found (channels options: ${Object.keys(zn.channels)})`),an}else if((!x||j)&&J&&zn.channels[2]===0)return _a(mi,"no renditions with stereo sound found"),an;return zn.minHeight>Or?(_a(mi,`min resolution of ${zn.minHeight} > maximum of ${Or}`),an):zn.minFramerate>Fr?(_a(mi,`min framerate of ${zn.minFramerate} > maximum of ${Fr}`),an):Ct.some(Ti=>zn.videoRanges[Ti]>0)?zn.maxScore<ut?(_a(mi,`max score of ${zn.maxScore} < selected max of ${ut}`),an):an&&(Qr(mi)>=Qr(an)||zn.fragmentError>d[an].fragmentError)?an:(ut=zn.maxScore,mi):(_a(mi,`no variants with VIDEO-RANGE of ${JSON.stringify(Ct)} found`),an)},void 0),videoRanges:Ct,preferHDR:Ft,minFramerate:Ve,minBitrate:Je}}function _a(d,e){B.log(`[abr] start candidates with "${d}" ignored because ${e}`)}function vl(d){return d.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 i=t.channels||"2";return r.channels[i]=(r.channels[i]||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 yl(d,e,t,r){return d.slice(t,r+1).reduce((i,s)=>{if(!s.codecSet)return i;const l=s.audioGroups;let x=i[s.codecSet];x||(i[s.codecSet]=x={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),x.minBitrate=Math.min(x.minBitrate,s.bitrate);const j=Math.min(s.height,s.width);return x.minHeight=Math.min(x.minHeight,j),x.minFramerate=Math.min(x.minFramerate,s.frameRate),x.maxScore=Math.max(x.maxScore,s.score),x.fragmentError+=s.fragmentError,x.videoRanges[s.videoRange]=(x.videoRanges[s.videoRange]||0)+1,l&&l.forEach(J=>{if(!J)return;const fe=e.groups[J];fe&&(x.hasDefaultAudio=x.hasDefaultAudio||e.hasDefaultAudio?fe.hasDefault:fe.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(fe.channels).forEach(Oe=>{x.channels[Oe]=(x.channels[Oe]||0)+fe.channels[Oe]}))}),i},{})}function fo(d,e,t){if("attrs"in d){const r=e.indexOf(d);if(r!==-1)return r}for(let r=0;r<e.length;r++){const i=e[r];if(So(d,i,t))return r}return-1}function So(d,e,t){const{groupId:r,name:i,lang:s,assocLang:l,characteristics:x,default:j}=d,J=d.forced;return(r===void 0||e.groupId===r)&&(i===void 0||e.name===i)&&(s===void 0||e.lang===s)&&(s===void 0||e.assocLang===l)&&(j===void 0||e.default===j)&&(J===void 0||e.forced===J)&&(x===void 0||Na(x,e.characteristics))&&(t===void 0||t(d,e))}function Na(d,e=""){const t=d.split(","),r=e.split(",");return t.length===r.length&&!t.some(i=>r.indexOf(i)===-1)}function ya(d,e){const{audioCodec:t,channels:r}=d;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function to(d,e,t,r,i){const s=e[r],x=e.reduce((Ve,Je,ut)=>{const Ct=Je.uri;return(Ve[Ct]||(Ve[Ct]=[])).push(ut),Ve},{})[s.uri];x.length>1&&(r=Math.max.apply(Math,x));const j=s.videoRange,J=s.frameRate,fe=s.codecSet.substring(0,4),Oe=Va(e,r,Ve=>{if(Ve.videoRange!==j||Ve.frameRate!==J||Ve.codecSet.substring(0,4)!==fe)return!1;const Je=Ve.audioGroups,ut=t.filter(Ct=>!Je||Je.indexOf(Ct.groupId)!==-1);return fo(d,ut,i)>-1});return Oe>-1?Oe:Va(e,r,Ve=>{const Je=Ve.audioGroups,ut=t.filter(Ct=>!Je||Je.indexOf(Ct.groupId)!==-1);return fo(d,ut,i)>-1})}function Va(d,e,t){for(let r=e;r>-1;r--)if(t(d[r]))return r;for(let r=e+1;r<d.length;r++)if(t(d[r]))return r;return-1}class ns{constructor(e){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.bwEstimator=void 0,this._abandonRulesCheck=()=>{const{fragCurrent:t,partCurrent:r,hls:i}=this,{autoLevelEnabled:s,media:l}=i;if(!t||!l)return;const x=performance.now(),j=r?r.stats:t.stats,J=r?r.duration:t.duration,fe=x-j.loading.start,Oe=i.minAutoLevel;if(j.aborted||j.loaded&&j.loaded===j.total||t.level<=Oe){this.clearTimer(),this._nextAutoLevel=-1;return}if(!s||l.paused||!l.playbackRate||!l.readyState)return;const Ve=i.mainForwardBufferInfo;if(Ve===null)return;const Je=this.bwEstimator.getEstimateTTFB(),ut=Math.abs(l.playbackRate);if(fe<=Math.max(Je,1e3*(J/(ut*2))))return;const Ct=Ve.len/ut,Ft=j.loading.first?j.loading.first-j.loading.start:-1,gr=j.loaded&&Ft>-1,Or=this.getBwEstimate(),Fr=i.levels,Un=Fr[t.level],an=j.total||Math.max(j.loaded,Math.round(J*Un.averageBitrate/8));let mi=gr?fe-Ft:fe;mi<1&&gr&&(mi=Math.min(fe,j.loaded*8/Or));const zn=gr?j.loaded*1e3/mi:0,Ti=zn?(an-j.loaded)/zn:an*8/Or+Je/1e3;if(Ti<=Ct)return;const qi=zn?zn*8:Or;let di=Number.POSITIVE_INFINITY,Ni;for(Ni=t.level-1;Ni>Oe;Ni--){const ia=Fr[Ni].maxBitrate;if(di=this.getTimeToLoadFrag(Je/1e3,qi,J*ia,!Fr[Ni].details),di<Ct)break}if(di>=Ti||di>J*10)return;i.nextLoadLevel=i.nextAutoLevel=Ni,gr?this.bwEstimator.sample(fe-Math.min(Je,Ft),j.loaded):this.bwEstimator.sampleTTFB(fe);const za=Fr[Ni].maxBitrate;this.getBwEstimate()*this.hls.config.abrBandWidthUpFactor>za&&this.resetEstimator(za),this.clearTimer(),B.warn(`[abr] Fragment ${t.sn}${r?" part "+r.index:""} of level ${t.level} is loading too slowly;
|
|
|
Time to underbuffer: ${Ct.toFixed(3)} s
|
|
|
Estimated load time for current fragment: ${Ti.toFixed(3)} s
|
|
|
Estimated load time for down switch fragment: ${di.toFixed(3)} s
|
|
|
TTFB estimate: ${Ft|0} ms
|
|
|
Current BW estimate: ${o(Or)?Or|0:"Unknown"} bps
|
|
|
New BW estimate: ${this.getBwEstimate()|0} bps
|
|
|
Switching to level ${Ni} @ ${za|0} bps`),i.trigger(a.FRAG_LOAD_EMERGENCY_ABORTED,{frag:t,part:r,stats:j})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(B.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 Vs(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.FRAG_LOADING,this.onFragLoading,this),e.on(a.FRAG_LOADED,this.onFragLoaded,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.FRAG_LOADING,this.onFragLoading,this),e.off(a.FRAG_LOADED,this.onFragLoaded,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(a.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 i;this.fragCurrent=r,this.partCurrent=(i=t.part)!=null?i: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 m.BUFFER_ADD_CODEC_ERROR:case m.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case m.FRAG_LOAD_TIMEOUT:{const r=t.frag,{fragCurrent:i,partCurrent:s}=this;if(r&&i&&r.sn===i.sn&&r.level===i.level){const l=performance.now(),x=s?s.stats:r.stats,j=l-x.loading.start,J=x.loading.first?x.loading.first-x.loading.start:-1;if(x.loaded&&J>-1){const Oe=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(j-Math.min(Oe,J),x.loaded)}else this.bwEstimator.sampleTTFB(j)}break}}}getTimeToLoadFrag(e,t,r,i){const s=e+r/t,l=i?this.lastLevelLoadSec:0;return s+l}onLevelLoaded(e,t){const r=this.hls.config,{loading:i}=t.stats,s=i.end-i.start;o(s)&&(this.lastLevelLoadSec=s/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD)}onFragLoaded(e,{frag:t,part:r}){const i=r?r.stats:t.stats;if(t.type===Ht.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.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,l=this.hls.levels[t.level],x=(l.loaded?l.loaded.bytes:0)+i.loaded,j=(l.loaded?l.loaded.duration:0)+s;l.loaded={bytes:x,duration:j},l.realBitrate=Math.round(8*x/j)}if(t.bitrateTest){const s={stats:i,frag:t,part:r,id:t.type};this.onFragBuffered(a.FRAG_BUFFERED,s),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:r,part:i}=t,s=i!=null&&i.stats.loaded?i.stats:r.stats;if(s.aborted||this.ignoreFragment(r))return;const l=s.parsing.end-s.loading.start-Math.min(s.loading.first-s.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(l,s.loaded),s.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=l/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==Ht.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(),i=this.hls.config.maxStarvationDelay,s=this.findBestLevel(r,t,e,0,i,1,1);if(s>-1)return s;const l=this.hls.firstLevel,x=Math.min(Math.max(l,t),e);return B.warn(`[abr] Could not find best starting auto level. Defaulting to first in playlist ${l} clamped to ${x}`),x}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),i=this.lastLoadedFragLevel>-1;if(e!==-1&&(!r||!i||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const s=r&&i?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const l=this.hls.levels;if(l.length>Math.max(e,s)&&l[e].loadError<=l[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,{maxAutoLevel:i,config:s,minAutoLevel:l}=r,x=t?t.duration:e?e.duration:0,j=this.getBwEstimate(),J=this.getStarvationDelay();let fe=s.abrBandWidthFactor,Oe=s.abrBandWidthUpFactor;if(J){const Ft=this.findBestLevel(j,l,i,J,0,fe,Oe);if(Ft>=0)return Ft}let Ve=x?Math.min(x,s.maxStarvationDelay):s.maxStarvationDelay;if(!J){const Ft=this.bitrateTestDelay;Ft&&(Ve=(x?Math.min(x,s.maxLoadingDelay):s.maxLoadingDelay)-Ft,B.info(`[abr] bitrate test took ${Math.round(1e3*Ft)}ms, set first fragment max fetchDuration to ${Math.round(1e3*Ve)} ms`),fe=Oe=1)}const Je=this.findBestLevel(j,l,i,J,Ve,fe,Oe);if(B.info(`[abr] ${J?"rebuffering expected":"buffer is empty"}, optimal quality level ${Je}`),Je>-1)return Je;const ut=r.levels[l],Ct=r.levels[r.loadLevel];return(ut==null?void 0:ut.bitrate)<(Ct==null?void 0:Ct.bitrate)?l: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,i=e.mainForwardBufferInfo;return(i?i.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,r,i,s,l,x){var j;const J=i+s,fe=this.lastLoadedFragLevel,Oe=fe===-1?this.hls.firstLevel:fe,{fragCurrent:Ve,partCurrent:Je}=this,{levels:ut,allAudioTracks:Ct,loadLevel:Ft,config:gr}=this.hls;if(ut.length===1)return 0;const Or=ut[Oe],Fr=!!(Or!=null&&(j=Or.details)!=null&&j.live),Un=Ft===-1||fe===-1;let an,mi="SDR",zn=(Or==null?void 0:Or.frameRate)||0;const{audioPreference:Ti,videoPreference:qi}=gr,di=this.audioTracksByGroup||(this.audioTracksByGroup=vl(Ct));if(Un){if(this.firstSelection!==-1)return this.firstSelection;const Ua=this.codecTiers||(this.codecTiers=yl(ut,di,t,r)),La=Ao(Ua,mi,e,Ti,qi),{codecSet:Ts,videoRanges:Ks,minFramerate:pa,minBitrate:oa,preferHDR:ks}=La;an=Ts,mi=ks?Ks[Ks.length-1]:Ks[0],zn=pa,e=Math.max(e,oa),B.log(`[abr] picked start tier ${JSON.stringify(La)}`)}else an=Or==null?void 0:Or.codecSet,mi=Or==null?void 0:Or.videoRange;const Ni=Je?Je.duration:Ve?Ve.duration:0,za=this.bwEstimator.getEstimateTTFB()/1e3,ia=[];for(let Ua=r;Ua>=t;Ua--){var Qa;const La=ut[Ua],Ts=Ua>Oe;if(!La)continue;if(gr.useMediaCapabilities&&!La.supportedResult&&!La.supportedPromise){const lo=navigator.mediaCapabilities;typeof(lo==null?void 0:lo.decodingInfo)=="function"&&Di(La,di,mi,zn,e,Ti)?(La.supportedPromise=Dl(La,di,lo),La.supportedPromise.then(Ms=>{if(!this.hls)return;La.supportedResult=Ms;const Fo=this.hls.levels,dl=Fo.indexOf(La);Ms.error?B.warn(`[abr] MediaCapabilities decodingInfo error: "${Ms.error}" for level ${dl} ${JSON.stringify(Ms)}`):Ms.supported||(B.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${dl} ${JSON.stringify(Ms)}`),dl>-1&&Fo.length>1&&(B.log(`[abr] Removing unsupported level ${dl}`),this.hls.removeLevel(dl)))})):La.supportedResult=vo}if(an&&La.codecSet!==an||mi&&La.videoRange!==mi||Ts&&zn>La.frameRate||!Ts&&zn>0&&zn<La.frameRate||La.supportedResult&&!((Qa=La.supportedResult.decodingInfoResults)!=null&&Qa[0].smooth)){ia.push(Ua);continue}const Ks=La.details,pa=(Je?Ks==null?void 0:Ks.partTarget:Ks==null?void 0:Ks.averagetargetduration)||Ni;let oa;Ts?oa=x*e:oa=l*e;const ks=Ni&&i>=Ni*2&&s===0?ut[Ua].averageBitrate:ut[Ua].maxBitrate,hs=this.getTimeToLoadFrag(za,oa,ks*pa,Ks===void 0);if(oa>=ks&&(Ua===fe||La.loadError===0&&La.fragmentError===0)&&(hs<=za||!o(hs)||Fr&&!this.bitrateTestDelay||hs<J)){const lo=this.forcedAutoLevel;return Ua!==Ft&&(lo===-1||lo!==Ft)&&(ia.length&&B.trace(`[abr] Skipped level(s) ${ia.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${ut[ia[0]].codecs}" ${ut[ia[0]].videoRange}; not compatible with "${Or.codecs}" ${mi}`),B.info(`[abr] switch candidate:${Oe}->${Ua} adjustedbw(${Math.round(oa)})-bitrate=${Math.round(oa-ks)} ttfb:${za.toFixed(1)} avgDuration:${pa.toFixed(1)} maxFetchDuration:${J.toFixed(1)} fetchDuration:${hs.toFixed(1)} firstSelection:${Un} codecSet:${an} videoRange:${mi} hls.loadLevel:${Ft}`)),Un&&(this.firstSelection=Ua),Ua}}return-1}set nextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:r}=this.hls,i=Math.min(Math.max(e,r),t);this._nextAutoLevel!==i&&(this.nextAutoLevelKey="",this._nextAutoLevel=i)}}class js{constructor(){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(){}}var Ea={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class Ys{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(a.BUFFER_APPENDED,this.onBufferAppended,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.BUFFER_APPENDED,this.onBufferAppended,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.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 i=r.length;i--;){const s=r[i];if(!s)break;const l=s.end;if(s.start<=e&&l!==null&&e<=l)return s}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const l=r[i[s]];if((l==null?void 0:l.body.type)===t&&l.buffered){const x=l.body;if(x.start<=e&&e<=x.end)return x}}return null}detectEvictedFragments(e,t,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(i==null?void 0:i.fragment.sn)||-1;Object.keys(this.fragments).forEach(l=>{const x=this.fragments[l];if(!x||s>=x.body.sn)return;if(!x.buffered&&!x.loaded){x.body.type===r&&this.removeFragment(x.body);return}const j=x.range[e];j&&j.time.some(J=>{const fe=!this.isTimeBuffered(J.startPTS,J.endPTS,t);return fe&&this.removeFragment(x.body),fe})})}detectPartialFragments(e){const t=this.timeRanges,{frag:r,part:i}=e;if(!t||r.sn==="initSegment")return;const s=Po(r),l=this.fragments[s];if(!l||l.buffered&&r.gap)return;const x=!r.relurl;Object.keys(t).forEach(j=>{const J=r.elementaryStreams[j];if(!J)return;const fe=t[j],Oe=x||J.partial===!0;l.range[j]=this.getBufferedTimes(r,i,Oe,fe)}),l.loaded=null,Object.keys(l.range).length?(l.buffered=!0,(l.body.endList=r.endList||l.body.endList)&&(this.endListFragments[l.body.type]=l),ao(l)||this.removeParts(r.sn-1,r.type)):this.removeFragment(l.body)}removeParts(e,t){const r=this.activePartLists[t];r&&(this.activePartLists[t]=r.filter(i=>i.fragment.sn>=e))}fragBuffered(e,t){const r=Po(e);let i=this.fragments[r];!i&&t&&(i=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),i&&(i.loaded=null,i.buffered=!0)}getBufferedTimes(e,t,r,i){const s={time:[],partial:r},l=e.start,x=e.end,j=e.minEndPTS||x,J=e.maxStartPTS||l;for(let fe=0;fe<i.length;fe++){const Oe=i.start(fe)-this.bufferPadding,Ve=i.end(fe)+this.bufferPadding;if(J>=Oe&&j<=Ve){s.time.push({startPTS:Math.max(l,i.start(fe)),endPTS:Math.min(x,i.end(fe))});break}else if(l<Ve&&x>Oe){const Je=Math.max(l,i.start(fe)),ut=Math.min(x,i.end(fe));ut>Je&&(s.partial=!0,s.time.push({startPTS:Je,endPTS:ut}))}else if(x<=Oe)break}return s}getPartialFragment(e){let t=null,r,i,s,l=0;const{bufferPadding:x,fragments:j}=this;return Object.keys(j).forEach(J=>{const fe=j[J];fe&&ao(fe)&&(i=fe.body.start-x,s=fe.body.end+x,e>=i&&e<=s&&(r=Math.min(e-i,s-e),l<=r&&(t=fe.body,l=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||ao(t))}getState(e){const t=Po(e),r=this.fragments[t];return r?r.buffered?ao(r)?Ea.PARTIAL:Ea.OK:Ea.APPENDING:Ea.NOT_LOADED}isTimeBuffered(e,t,r){let i,s;for(let l=0;l<r.length;l++){if(i=r.start(l)-this.bufferPadding,s=r.end(l)+this.bufferPadding,e>=i&&t<=s)return!0;if(t<=i)return!1}return!1}onFragLoaded(e,t){const{frag:r,part:i}=t;if(r.sn==="initSegment"||r.bitrateTest)return;const s=i?null:t,l=Po(r);this.fragments[l]={body:r,appendedPTS:null,loaded:s,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:r,part:i,timeRanges:s}=t;if(r.sn==="initSegment")return;const l=r.type;if(i){let x=this.activePartLists[l];x||(this.activePartLists[l]=x=[]),x.push(i)}this.timeRanges=s,Object.keys(s).forEach(x=>{const j=s[x];this.detectEvictedFragments(x,j,l,i)})}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Po(e);return!!this.fragments[t]}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,r,i,s){i&&!this.hasGaps||Object.keys(this.fragments).forEach(l=>{const x=this.fragments[l];if(!x)return;const j=x.body;j.type!==r||i&&!j.gap||j.start<t&&j.end>e&&(x.buffered||s)&&this.removeFragment(j)})}removeFragment(e){const t=Po(e);e.stats.loaded=0,e.clearElementaryStreamInfo();const r=this.activePartLists[e.type];if(r){const i=e.sn;this.activePartLists[e.type]=r.filter(s=>s.fragment.sn!==i)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}function ao(d){var e,t,r;return d.buffered&&(d.body.gap||((e=d.range.video)==null?void 0:e.partial)||((t=d.range.audio)==null?void 0:t.partial)||((r=d.range.audiovideo)==null?void 0:r.partial))}function Po(d){return`${d.type}_${d.level}_${d.sn}`}const Do={length:0,start:()=>0,end:()=>0};class Ya{static isBuffered(e,t){try{if(e){const r=Ya.getBuffered(e);for(let i=0;i<r.length;i++)if(t>=r.start(i)&&t<=r.end(i))return!0}}catch(r){}return!1}static bufferInfo(e,t,r){try{if(e){const i=Ya.getBuffered(e),s=[];let l;for(l=0;l<i.length;l++)s.push({start:i.start(l),end:i.end(l)});return this.bufferedInfo(s,t,r)}}catch(i){}return{len:0,start:t,end:t,nextStart:void 0}}static bufferedInfo(e,t,r){t=Math.max(0,t),e.sort(function(J,fe){const Oe=J.start-fe.start;return Oe||fe.end-J.end});let i=[];if(r)for(let J=0;J<e.length;J++){const fe=i.length;if(fe){const Oe=i[fe-1].end;e[J].start-Oe<r?e[J].end>Oe&&(i[fe-1].end=e[J].end):i.push(e[J])}else i.push(e[J])}else i=e;let s=0,l,x=t,j=t;for(let J=0;J<i.length;J++){const fe=i[J].start,Oe=i[J].end;if(t+r>=fe&&t<Oe)x=fe,j=Oe,s=j-t;else if(t+r<fe){l=fe;break}}return{len:s,start:x||0,end:j||0,nextStart:l}}static getBuffered(e){try{return e.buffered}catch(t){return B.log("failed to get media.buffered",t),Do}}}class bl{constructor(e,t,r,i=0,s=-1,l=!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=so(),this.buffering={audio:so(),video:so(),audiovideo:so()},this.level=e,this.sn=t,this.id=r,this.size=i,this.part=s,this.partial=l}}function so(){return{start:0,executeStart:0,executeEnd:0,end:0}}function yo(d,e){for(let r=0,i=d.length;r<i;r++){var t;if(((t=d[r])==null?void 0:t.cc)===e)return d[r]}return null}function Zl(d,e,t){return!!(e&&(t.endCC>t.startCC||d&&d.cc<t.startCC))}function wl(d,e){const t=d.fragments,r=e.fragments;if(!r.length||!t.length){B.log("No fragments to align");return}const i=yo(t,r[0].cc);if(!i||i&&!i.startPTS){B.log("No frag in previous level to align on");return}return i}function fl(d,e){if(d){const t=d.start+e;d.start=d.startPTS=t,d.endPTS=t+d.duration}}function Ll(d,e){const t=e.fragments;for(let r=0,i=t.length;r<i;r++)fl(t[r],d);e.fragmentHint&&fl(e.fragmentHint,d),e.alignedSliding=!0}function xl(d,e,t){e&&(jo(d,t,e),!t.alignedSliding&&e&&Gs(t,e),!t.alignedSliding&&e&&!t.skippedSegments&&ss(e,t))}function jo(d,e,t){if(Zl(d,t,e)){const r=wl(t,e);r&&o(r.start)&&(B.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),Ll(r.start,e))}}function Gs(d,e){if(!d.hasProgramDateTime||!e.hasProgramDateTime)return;const t=d.fragments,r=e.fragments;if(!t.length||!r.length)return;let i,s;const l=Math.min(e.endCC,d.endCC);e.startCC<l&&d.startCC<l&&(i=yo(r,l),s=yo(t,l)),(!i||!s)&&(i=r[Math.floor(r.length/2)],s=yo(t,i.cc)||t[Math.floor(t.length/2)]);const x=i.programDateTime,j=s.programDateTime;if(!x||!j)return;const J=(j-x)/1e3-(s.start-i.start);Ll(J,d)}const Lo=Math.pow(2,17);class Za{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 Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const i=this.config,s=i.fLoader,l=i.loader;return new Promise((x,j)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(Je=>Je[0]==="GAP")){j(Xa(e));return}else e.gap=!1;const J=this.loader=e.loader=s?new s(i):new l(i),fe=ys(e),Oe=Ls(i.fragLoadPolicy.default),Ve={loadPolicy:Oe,timeout:Oe.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Lo};e.stats=J.stats,J.load(fe,Ve,{onSuccess:(Je,ut,Ct,Ft)=>{this.resetLoader(e,J);let gr=Je.data;Ct.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(gr.slice(0,16)),gr=gr.slice(16)),x({frag:e,part:null,payload:gr,networkDetails:Ft})},onError:(Je,ut,Ct,Ft)=>{this.resetLoader(e,J),j(new Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:ie({url:r,data:void 0},Je),error:new Error(`HTTP Error ${Je.code} ${Je.text}`),networkDetails:Ct,stats:Ft}))},onAbort:(Je,ut,Ct)=>{this.resetLoader(e,J),j(new Cs({type:A.NETWORK_ERROR,details:m.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Ct,stats:Je}))},onTimeout:(Je,ut,Ct)=>{this.resetLoader(e,J),j(new Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${Ve.timeout}ms`),networkDetails:Ct,stats:Je}))},onProgress:(Je,ut,Ct,Ft)=>{t&&t({frag:e,part:null,payload:Ct,networkDetails:Ft})}})})}loadPart(e,t,r){this.abort();const i=this.config,s=i.fLoader,l=i.loader;return new Promise((x,j)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){j(Xa(e,t));return}const J=this.loader=e.loader=s?new s(i):new l(i),fe=ys(e,t),Oe=Ls(i.fragLoadPolicy.default),Ve={loadPolicy:Oe,timeout:Oe.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Lo};t.stats=J.stats,J.load(fe,Ve,{onSuccess:(Je,ut,Ct,Ft)=>{this.resetLoader(e,J),this.updateStatsFromPart(e,t);const gr={frag:e,part:t,payload:Je.data,networkDetails:Ft};r(gr),x(gr)},onError:(Je,ut,Ct,Ft)=>{this.resetLoader(e,J),j(new Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:ie({url:fe.url,data:void 0},Je),error:new Error(`HTTP Error ${Je.code} ${Je.text}`),networkDetails:Ct,stats:Ft}))},onAbort:(Je,ut,Ct)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,J),j(new Cs({type:A.NETWORK_ERROR,details:m.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:Ct,stats:Je}))},onTimeout:(Je,ut,Ct)=>{this.resetLoader(e,J),j(new Cs({type:A.NETWORK_ERROR,details:m.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${Ve.timeout}ms`),networkDetails:Ct,stats:Je}))}})})}updateStatsFromPart(e,t){const r=e.stats,i=t.stats,s=i.total;if(r.loaded+=i.loaded,s){const j=Math.round(e.duration/t.duration),J=Math.min(Math.round(r.loaded/s),j),Oe=(j-J)*Math.round(r.loaded/J);r.total=r.loaded+Oe}else r.total=Math.max(r.loaded,r.total);const l=r.loading,x=i.loading;l.start?l.first+=x.first-x.start:(l.start=x.start,l.first=x.first),l.end=x.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function ys(d,e=null){const t=e||d,r={frag:d,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},i=t.byteRangeStartOffset,s=t.byteRangeEndOffset;if(o(i)&&o(s)){var l;let x=i,j=s;if(d.sn==="initSegment"&&((l=d.decryptdata)==null?void 0:l.method)==="AES-128"){const J=s-i;J%16&&(j=s+(16-J%16)),i!==0&&(r.resetIV=!0,x=i-16)}r.rangeStart=x,r.rangeEnd=j}return r}function Xa(d,e){const t=new Error(`GAP ${d.gap?"tag":"attribute"} found`),r={type:A.MEDIA_ERROR,details:m.FRAG_GAP,fatal:!1,frag:d,error:t,networkDetails:null};return e&&(r.part=e),(e||d).stats.aborted=!0,new Cs(r)}class Cs extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class qs{constructor(e,t){this.subtle=void 0,this.aesIV=void 0,this.subtle=e,this.aesIV=t}decrypt(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}class El{constructor(e,t){this.subtle=void 0,this.key=void 0,this.subtle=e,this.key=t}expandKey(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}function il(d){const e=d.byteLength,t=e&&new DataView(d.buffer).getUint8(e-1);return t?z(d,0,e-t):d}class Rl{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 i=0;i<4;i++)r[i]=t.getUint32(i*4);return r}initTable(){const e=this.sBox,t=this.invSBox,r=this.subMix,i=r[0],s=r[1],l=r[2],x=r[3],j=this.invSubMix,J=j[0],fe=j[1],Oe=j[2],Ve=j[3],Je=new Uint32Array(256);let ut=0,Ct=0,Ft=0;for(Ft=0;Ft<256;Ft++)Ft<128?Je[Ft]=Ft<<1:Je[Ft]=Ft<<1^283;for(Ft=0;Ft<256;Ft++){let gr=Ct^Ct<<1^Ct<<2^Ct<<3^Ct<<4;gr=gr>>>8^gr&255^99,e[ut]=gr,t[gr]=ut;const Or=Je[ut],Fr=Je[Or],Un=Je[Fr];let an=Je[gr]*257^gr*16843008;i[ut]=an<<24|an>>>8,s[ut]=an<<16|an>>>16,l[ut]=an<<8|an>>>24,x[ut]=an,an=Un*16843009^Fr*65537^Or*257^ut*16843008,J[gr]=an<<24|an>>>8,fe[gr]=an<<16|an>>>16,Oe[gr]=an<<8|an>>>24,Ve[gr]=an,ut?(ut=Or^Je[Je[Je[Un^Or]]],Ct^=Je[Je[Ct]]):ut=Ct=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let r=!0,i=0;for(;i<t.length&&r;)r=t[i]===this.key[i],i++;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 l=this.ksRows=(s+6+1)*4;let x,j;const J=this.keySchedule=new Uint32Array(l),fe=this.invKeySchedule=new Uint32Array(l),Oe=this.sBox,Ve=this.rcon,Je=this.invSubMix,ut=Je[0],Ct=Je[1],Ft=Je[2],gr=Je[3];let Or,Fr;for(x=0;x<l;x++){if(x<s){Or=J[x]=t[x];continue}Fr=Or,x%s===0?(Fr=Fr<<8|Fr>>>24,Fr=Oe[Fr>>>24]<<24|Oe[Fr>>>16&255]<<16|Oe[Fr>>>8&255]<<8|Oe[Fr&255],Fr^=Ve[x/s|0]<<24):s>6&&x%s===4&&(Fr=Oe[Fr>>>24]<<24|Oe[Fr>>>16&255]<<16|Oe[Fr>>>8&255]<<8|Oe[Fr&255]),J[x]=Or=(J[x-s]^Fr)>>>0}for(j=0;j<l;j++)x=l-j,j&3?Fr=J[x]:Fr=J[x-4],j<4||x<=4?fe[j]=Fr:fe[j]=ut[Oe[Fr>>>24]]^Ct[Oe[Fr>>>16&255]]^Ft[Oe[Fr>>>8&255]]^gr[Oe[Fr&255]],fe[j]=fe[j]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,r){const i=this.keySize+6,s=this.invKeySchedule,l=this.invSBox,x=this.invSubMix,j=x[0],J=x[1],fe=x[2],Oe=x[3],Ve=this.uint8ArrayToUint32Array_(r);let Je=Ve[0],ut=Ve[1],Ct=Ve[2],Ft=Ve[3];const gr=new Int32Array(e),Or=new Int32Array(gr.length);let Fr,Un,an,mi,zn,Ti,qi,di,Ni,za,ia,Qa,Ua,La;const Ts=this.networkToHostOrderSwap;for(;t<gr.length;){for(Ni=Ts(gr[t]),za=Ts(gr[t+1]),ia=Ts(gr[t+2]),Qa=Ts(gr[t+3]),zn=Ni^s[0],Ti=Qa^s[1],qi=ia^s[2],di=za^s[3],Ua=4,La=1;La<i;La++)Fr=j[zn>>>24]^J[Ti>>16&255]^fe[qi>>8&255]^Oe[di&255]^s[Ua],Un=j[Ti>>>24]^J[qi>>16&255]^fe[di>>8&255]^Oe[zn&255]^s[Ua+1],an=j[qi>>>24]^J[di>>16&255]^fe[zn>>8&255]^Oe[Ti&255]^s[Ua+2],mi=j[di>>>24]^J[zn>>16&255]^fe[Ti>>8&255]^Oe[qi&255]^s[Ua+3],zn=Fr,Ti=Un,qi=an,di=mi,Ua=Ua+4;Fr=l[zn>>>24]<<24^l[Ti>>16&255]<<16^l[qi>>8&255]<<8^l[di&255]^s[Ua],Un=l[Ti>>>24]<<24^l[qi>>16&255]<<16^l[di>>8&255]<<8^l[zn&255]^s[Ua+1],an=l[qi>>>24]<<24^l[di>>16&255]<<16^l[zn>>8&255]<<8^l[Ti&255]^s[Ua+2],mi=l[di>>>24]<<24^l[zn>>16&255]<<16^l[Ti>>8&255]<<8^l[qi&255]^s[Ua+3],Or[t]=Ts(Fr^Je),Or[t+1]=Ts(mi^ut),Or[t+2]=Ts(an^Ct),Or[t+3]=Ts(Un^Ft),Je=Ni,ut=za,Ct=ia,Ft=Qa,t=t+4}return Or.buffer}}const cu=16;class Ol{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.useSoftware=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?il(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r){return this.useSoftware?new Promise((i,s)=>{this.softwareDecrypt(new Uint8Array(e),t,r);const l=this.flush();l?i(l.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r)}softwareDecrypt(e,t,r){const{currentIV:i,currentResult:s,remainderData:l}=this;this.logOnce("JS AES decrypt"),l&&(e=Mn(l,e),this.remainderData=null);const x=this.getValidChunk(e);if(!x.length)return null;i&&(r=i);let j=this.softwareDecrypter;j||(j=this.softwareDecrypter=new Rl),j.expandKey(t);const J=s;return this.currentResult=j.decrypt(x.buffer,0,r),this.currentIV=z(x,-16).buffer,J||null}webCryptoDecrypt(e,t,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r));this.key=t,this.fastAesKey=new El(this.subtle,t)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new qs(this.subtle,new Uint8Array(r)).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(B.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,r)))}onWebCryptoError(e,t,r){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r);const i=this.flush();if(i)return i.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}getValidChunk(e){let t=e;const r=e.length-e.length%cu;return r!==e.length&&(t=z(e,0,r),this.remainderData=z(e,r)),t}logOnce(e){this.logEnabled&&(B.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Pl={toString:function(d){let e="";const t=d.length;for(let r=0;r<t;r++)e+=`[${d.start(r).toFixed(3)}-${d.end(r).toFixed(3)}]`;return e}},li={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 Au extends js{constructor(e,t,r,i,s){super(),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=li.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.loadedmetadata=!1,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.onvseeking=null,this.onvended=null,this.logPrefix="",this.log=void 0,this.warn=void 0,this.playlistType=s,this.logPrefix=i,this.log=B.log.bind(B,`${i}:`),this.warn=B.warn.bind(B,`${i}:`),this.hls=e,this.fragmentLoader=new Za(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new Ol(e.config),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){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=li.STOPPED}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}_streamEnded(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;const r=t.partList;if(r!=null&&r.length){const s=r[r.length-1];return Ya.isBuffered(this.media,s.start+s.duration/2)}const i=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.details}}onMediaAttached(e,t){const r=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),r.addEventListener("seeking",this.onvseeking),r.addEventListener("ended",this.onvended);const i=this.config;this.levels&&i.autoStartLoad&&this.state===li.STOPPED&&this.startLoad(i.startPosition)}onMediaDetaching(){const e=this.media;e!=null&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}onMediaSeeking(){const{config:e,fragCurrent:t,media:r,mediaBuffer:i,state:s}=this,l=r?r.currentTime:0,x=Ya.bufferInfo(i||r,l,e.maxBufferHole);if(this.log(`media seeking to ${o(l)?l.toFixed(3):l}, state: ${s}`),this.state===li.ENDED)this.resetLoadingState();else if(t){const j=e.maxFragLookUpTolerance,J=t.start-j,fe=t.start+t.duration+j;if(!x.len||fe<x.start||J>x.end){const Oe=l>fe;(l<J||Oe)&&(Oe&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}r&&(this.fragmentTracker.removeFragmentsInRange(l,1/0,this.playlistType,!0),this.lastCurrentTime=l),!this.loadedmetadata&&!x.len&&(this.nextLoadPosition=this.startPosition=l),this.tickImmediate()}onMediaEnded(){this.startPosition=this.lastCurrentTime=0}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}onHandlerDestroying(){this.hls.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),super.onHandlerDestroying(),this.hls=null}onHandlerDestroyed(){this.state=li.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._loadFragForPlayback(e,t,r)}_loadFragForPlayback(e,t,r){const i=s=>{if(this.fragContextChanged(e)){this.warn(`Fragment ${e.sn}${s.part?" p: "+s.part.index:""} of level ${e.level} was dropped during download.`),this.fragmentTracker.removeFragment(e);return}e.stats.chunkCount++,this._handleFragmentLoadProgress(s)};this._doFragLoad(e,t,r,i).then(s=>{if(!s)return;const l=this.state;if(this.fragContextChanged(e)){(l===li.FRAG_LOADING||!this.fragCurrent&&l===li.PARSING)&&(this.fragmentTracker.removeFragment(e),this.state=li.IDLE);return}"payload"in s&&(this.log(`Loaded fragment ${e.sn} of level ${e.level}`),this.hls.trigger(a.FRAG_LOADED,s)),this._handleFragmentLoadComplete(s)}).catch(s=>{this.state===li.STOPPED||this.state===li.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)===Ea.APPENDING){const s=e.type,l=this.getFwdBufferInfo(this.mediaBuffer,s),x=Math.max(e.duration,l?l.len:this.config.maxBufferLength),j=this.backtrackFragment;((j?e.sn-j.sn:0)===1||this.reduceMaxBufferLength(x,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)===Ea.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)}flushMainBuffer(e,t,r=null){if(!(e-t))return;const i={startOffset:e,endOffset:t,type:r};this.hls.trigger(a.BUFFER_FLUSHING,i)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(r=>{if(!r||this.fragContextChanged(e)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:i}=this,{payload:s}=r,l=e.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&l.method==="AES-128"){const x=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer).catch(j=>{throw i.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_DECRYPT_ERROR,fatal:!1,error:j,reason:j.message,frag:e}),j}).then(j=>{const J=self.performance.now();return i.trigger(a.FRAG_DECRYPTED,{frag:e,payload:j,stats:{tstart:x,tdecrypt:J}}),r.payload=j,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===li.STOPPED||this.state===li.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=li.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){var r,i,s,l;const x=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.playlistType===Ht.MAIN?"level":"track"} ${e.level} (frag:[${((r=e.startPTS)!=null?r:NaN).toFixed(3)}-${((i=e.endPTS)!=null?i:NaN).toFixed(3)}] > buffer:${x?Pl.toString(Ya.getBuffered(x)):"(detached)"})`),e.sn!=="initSegment"){var j;if(e.type!==Ht.SUBTITLE){const fe=e.elementaryStreams;if(!Object.keys(fe).some(Oe=>!!fe[Oe])){this.state=li.IDLE;return}}const J=(j=this.levels)==null?void 0:j[e.level];J!=null&&J.fragmentError&&(this.log(`Resetting level fragment error count of ${J.fragmentError} on frag buffered`),J.fragmentError=0)}this.state=li.IDLE,x&&(!this.loadedmetadata&&e.type==Ht.MAIN&&x.buffered.length&&((s=this.fragCurrent)==null?void 0:s.sn)===((l=this.fragPrevious)==null?void 0:l.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}seekToStartPos(){}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:r,part:i,partsLoaded:s}=e,l=!s||s.length===0||s.some(j=>!j),x=new bl(r.level,r.sn,r.stats.chunkCount+1,0,i?i.index:-1,!l);t.flush(x)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,r=null,i){var s;const l=t==null?void 0:t.details;if(!this.levels||!l)throw new Error(`frag load aborted, missing level${l?"":" detail"}s`);let x=null;if(e.encrypted&&!((s=e.decryptdata)!=null&&s.key)?(this.log(`Loading key for ${e.sn} of [${l.startSN}-${l.endSN}], ${this.logPrefix==="[stream-controller]"?"level":"track"} ${e.level}`),this.state=li.KEY_LOADING,this.fragCurrent=e,x=this.keyLoader.load(e).then(fe=>{if(!this.fragContextChanged(fe.frag))return this.hls.trigger(a.KEY_LOADED,fe),this.state===li.KEY_LOADING&&(this.state=li.IDLE),fe}),this.hls.trigger(a.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(x=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&l.encryptedFragments.length&&this.keyLoader.loadClear(e,l.encryptedFragments),r=Math.max(e.start,r||0),this.config.lowLatencyMode&&e.sn!=="initSegment"){const fe=l.partList;if(fe&&i){r>e.end&&l.fragmentHint&&(e=l.fragmentHint);const Oe=this.getNextPart(fe,e,r);if(Oe>-1){const Ve=fe[Oe];this.log(`Loading part sn: ${e.sn} p: ${Ve.index} cc: ${e.cc} of playlist [${l.startSN}-${l.endSN}] parts [0-${Oe}-${fe.length-1}] ${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=Ve.start+Ve.duration,this.state=li.FRAG_LOADING;let Je;return x?Je=x.then(ut=>!ut||this.fragContextChanged(ut.frag)?null:this.doFragPartsLoad(e,Ve,t,i)).catch(ut=>this.handleFragLoadError(ut)):Je=this.doFragPartsLoad(e,Ve,t,i).catch(ut=>this.handleFragLoadError(ut)),this.hls.trigger(a.FRAG_LOADING,{frag:e,part:Ve,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Je}else if(!e.url||this.loadedEndOfParts(fe,r))return Promise.resolve(null)}}this.log(`Loading fragment ${e.sn} cc: ${e.cc} ${l?"of ["+l.startSN+"-"+l.endSN+"] ":""}${this.logPrefix==="[stream-controller]"?"level":"track"}: ${e.level}, target: ${parseFloat(r.toFixed(3))}`),o(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=li.FRAG_LOADING;const j=this.config.progressive;let J;return j&&x?J=x.then(fe=>!fe||this.fragContextChanged(fe==null?void 0:fe.frag)?null:this.fragmentLoader.load(e,i)).catch(fe=>this.handleFragLoadError(fe)):J=Promise.all([this.fragmentLoader.load(e,j?i:void 0),x]).then(([fe])=>(!j&&fe&&i&&i(fe),fe)).catch(fe=>this.handleFragLoadError(fe)),this.hls.trigger(a.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):J}doFragPartsLoad(e,t,r,i){return new Promise((s,l)=>{var x;const j=[],J=(x=r.details)==null?void 0:x.partList,fe=Oe=>{this.fragmentLoader.loadPart(e,Oe,i).then(Ve=>{j[Oe.index]=Ve;const Je=Ve.part;this.hls.trigger(a.FRAG_LOADED,Ve);const ut=Zi(r,e.sn,Oe.index+1)||ta(J,e.sn,Oe.index+1);if(ut)fe(ut);else return s({frag:e,part:Je,partsLoaded:j})}).catch(l)};fe(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===m.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(a.ERROR,t)}else this.hls.trigger(a.ERROR,{type:A.OTHER_ERROR,details:m.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==li.PARSING){!this.fragCurrent&&this.state!==li.STOPPED&&this.state!==li.ERROR&&(this.state=li.IDLE);return}const{frag:r,part:i,level:s}=t,l=self.performance.now();r.stats.parsing.end=l,i&&(i.stats.parsing.end=l),this.updateLevelTiming(r,i,s,e.partial)}getCurrentContext(e){const{levels:t,fragCurrent:r}=this,{level:i,sn:s,part:l}=e;if(!(t!=null&&t[i]))return this.warn(`Levels object was unset while buffering fragment ${s} of level ${i}. The current chunk will not be buffered.`),null;const x=t[i],j=l>-1?Zi(x,s,l):null,J=j?j.fragment:io(x,s,r);return J?(r&&r!==J&&(J.stats=r.stats),{frag:J,part:j,level:x}):null}bufferFragmentData(e,t,r,i,s){var l;if(!e||this.state!==li.PARSING)return;const{data1:x,data2:j}=e;let J=x;if(x&&j&&(J=Mn(x,j)),!((l=J)!=null&&l.length))return;const fe={type:e.type,frag:t,part:r,chunkMeta:i,parent:t.type,data:J};if(this.hls.trigger(a.BUFFER_APPENDING,fe),e.dropped&&e.independent&&!r){if(s)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Ya.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,i=Ya.bufferInfo(t,r,0),s=e.duration,l=Math.min(this.config.maxFragLookUpTolerance*2,s*.25),x=Math.max(Math.min(e.start-l,i.end-l),r+l);e.start-x>l&&this.flushMainBuffer(x,e.start)}getFwdBufferInfo(e,t){const r=this.getLoadPosition();return o(r)?this.getFwdBufferInfoAtPos(e,r,t):null}getFwdBufferInfoAtPos(e,t,r){const{config:{maxBufferHole:i}}=this,s=Ya.bufferInfo(e,t,i);if(s.len===0&&s.nextStart!==void 0){const l=this.fragmentTracker.getBufferedFrag(t,r);if(l&&s.nextStart<l.end)return Ya.bufferInfo(e,t,Math.max(s.nextStart,i))}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,i=Math.max(Math.min(e-t,r.maxBufferLength),t),s=Math.max(e-t*3,r.maxMaxBufferLength/2,i);return s>=i?(r.maxMaxBufferLength=s,this.warn(`Reduce max buffer length to ${s}s`),!0):!1}getAppendedFrag(e,t=Ht.MAIN){const r=this.fragmentTracker.getAppendedFrag(e,Ht.MAIN);return r&&"fragment"in r?r.fragment:r}getNextFragment(e,t){const r=t.fragments,i=r.length;if(!i)return null;const{config:s}=this,l=r[0].start;let x;if(t.live){const j=s.initialLiveManifestSize;if(i<j)return this.warn(`Not enough fragments to start playback (have: ${i}, need: ${j})`),null;(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<l)&&(x=this.getInitialLiveFragment(t,r),this.startPosition=this.nextLoadPosition=x?this.hls.liveSyncPosition||x.start:e)}else e<=l&&(x=r[0]);if(!x){const j=s.lowLatencyMode?t.partEnd:t.fragmentEnd;x=this.getFragmentAtPosition(e,j,t)}return this.mapToInitFragWhenRequired(x)}isLoopLoading(e,t){const r=this.fragmentTracker.getState(e);return(r===Ea.OK||r===Ea.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,r,i,s){const l=e.gap,x=this.getNextFragment(this.nextLoadPosition,t);if(x===null)return x;if(e=x,l&&e&&!e.gap&&r.nextStart){const j=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,i);if(j!==null&&r.len+j.len>=s)return this.log(`buffer full after gaps in "${i}" playlist starting at sn: ${e.sn}`),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 i=-1,s=!1,l=!0;for(let x=0,j=e.length;x<j;x++){const J=e[x];if(l=l&&!J.independent,i>-1&&r<J.start)break;const fe=J.loaded;fe?i=-1:(s||J.independent||l)&&J.fragment===t&&(i=x),s=fe}return i}loadedEndOfParts(e,t){const r=e[e.length-1];return r&&t>r.start&&r.loaded}getInitialLiveFragment(e,t){const r=this.fragPrevious;let i=null;if(r){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),i=Bo(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!i){const s=r.sn+1;if(s>=e.startSN&&s<=e.endSN){const l=t[s-e.startSN];r.cc===l.cc&&(i=l,this.log(`Live playlist, switching playlist, load frag with next SN: ${i.sn}`))}i||(i=Oi(t,r.cc),i&&this.log(`Live playlist, switching playlist, load frag with same CC: ${i.sn}`))}}else{const s=this.hls.liveSyncPosition;s!==null&&(i=this.getFragmentAtPosition(s,this.bitrateTest?e.fragmentEnd:e.edge,e))}return i}getFragmentAtPosition(e,t,r){const{config:i}=this;let{fragPrevious:s}=this,{fragments:l,endSN:x}=r;const{fragmentHint:j}=r,{maxFragLookUpTolerance:J}=i,fe=r.partList,Oe=!!(i.lowLatencyMode&&fe!=null&&fe.length&&j);Oe&&j&&!this.bitrateTest&&(l=l.concat(j),x=j.sn);let Ve;if(e<t){const Je=e>t-J?0:J;Ve=go(s,l,e,Je)}else Ve=l[l.length-1];if(Ve){const Je=Ve.sn-r.startSN,ut=this.fragmentTracker.getState(Ve);if((ut===Ea.OK||ut===Ea.PARTIAL&&Ve.gap)&&(s=Ve),s&&Ve.sn===s.sn&&(!Oe||fe[0].fragment.sn>Ve.sn)&&s&&Ve.level===s.level){const Ft=l[Je+1];Ve.sn<x&&this.fragmentTracker.getState(Ft)!==Ea.OK?Ve=Ft:Ve=null}}return Ve}synchronizeToLiveEdge(e){const{config:t,media:r}=this;if(!r)return;const i=this.hls.liveSyncPosition,s=r.currentTime,l=e.fragments[0].start,x=e.edge,j=s>=l-t.maxFragLookUpTolerance&&s<=x;if(i!==null&&r.duration>i&&(s<i||!j)){const J=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!j&&r.readyState<4||s<x-J)&&(this.loadedmetadata||(this.nextLoadPosition=i),r.readyState&&(this.warn(`Playback: ${s.toFixed(3)} is located too far from the end of live sliding playlist: ${x}, reset currentTime to : ${i.toFixed(3)}`),r.currentTime=i))}}alignPlaylists(e,t,r){const i=e.fragments.length;if(!i)return this.warn("No fragments in live playlist"),0;const s=e.fragments[0].start,l=!t,x=e.alignedSliding&&o(s);if(l||!x&&!s){const{fragPrevious:j}=this;xl(j,r,e);const J=e.fragments[0].start;return this.log(`Live playlist sliding: ${J.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} prev-sn: ${j?j.sn:"na"} fragments: ${i}`),J}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;if(r<t&&(r=-1),r===-1||this.lastCurrentTime===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&o(s)?(r=t+s,s<0&&(r+=e.totalduration),r=Math.min(Math.max(t,r),t+e.totalduration),this.log(`Start time offset ${s} found in ${i?"multivariant":"media"} playlist, adjust startPosition to ${r}`),this.startPosition=r):e.live?r=this.hls.liveSyncPosition||t:this.startPosition=r=0,this.lastCurrentTime=r}this.nextLoadPosition=r}getLoadPosition(){const{media:e}=this;let t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}handleFragLoadAborted(e,t){this.transmuxer&&e.sn!=="initSegment"&&e.stats.aborted&&(this.warn(`Fragment ${e.sn}${t?" part "+t.index:""} of level ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==li.FRAG_LOADING_WAITING_RETRY)&&(this.state=li.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const fe=this.getCurrentContext(t.chunkMeta);fe&&(t.frag=fe.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const s=t.details===m.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const l=t.errorAction,{action:x,retryCount:j=0,retryConfig:J}=l||{};if(l&&x===Ai.RetryRequest&&J){this.resetStartWhenNotLoaded(this.levelLastLoaded);const fe=Pa(J,j);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${j+1}/${J.maxNumRetry} in ${fe}ms`),l.resolved=!0,this.retryDate=self.performance.now()+fe,this.state=li.FRAG_LOADING_WAITING_RETRY}else if(J&&l)if(this.resetFragmentErrors(e),j<J.maxNumRetry)!s&&x!==Ai.RemoveAlternatePermanently&&(l.resolved=!0);else{B.warn(`${t.details} reached or exceeded max retry (${j})`);return}else(l==null?void 0:l.action)===Ai.SendAlternateToPenaltyBox?this.state=li.WAITING_LEVEL:this.state=li.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===li.PARSING||this.state===li.PARSED){const t=e.frag,r=e.parent,i=this.getFwdBufferInfo(this.mediaBuffer,r),s=i&&i.len>.5;s&&this.reduceMaxBufferLength(i.len,(t==null?void 0:t.duration)||10);const l=!s;return l&&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(),l}return!1}resetFragmentErrors(e){e===Ht.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==li.STOPPED&&(this.state=li.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const i=Ya.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,i,r),this.state===li.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=li.IDLE}resetStartWhenNotLoaded(e){if(!this.loadedmetadata){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of level ${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,i){var s;const l=r.details;if(!l){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((j,J)=>{const fe=e.elementaryStreams[J];if(fe){const Oe=fe.endPTS-fe.startPTS;if(Oe<=0)return this.warn(`Could not parse fragment ${e.sn} ${J} duration reliably (${Oe})`),j||!1;const Ve=i?0:co(l,e,fe.startPTS,fe.endPTS,fe.startDTS,fe.endDTS);return this.hls.trigger(a.LEVEL_PTS_UPDATED,{details:l,level:r,drift:Ve,type:J,frag:e,start:fe.startPTS,end:fe.endPTS}),!0}return j},!1)&&((s=this.transmuxer)==null?void 0:s.error)===null){const j=new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);if(r.fragmentError===0&&(r.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(j.message),this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!1,error:j,frag:e,reason:`Found no media in msn ${e.sn} of level "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}this.state=li.PARSED,this.hls.trigger(a.FRAG_PARSED,{frag:e,part:t})}resetTransmuxer(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),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}}class Wl{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=ic(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function ic(d,e){const t=new Uint8Array(e);let r=0;for(let i=0;i<d.length;i++){const s=d[i];t.set(s,r),r+=s.length}return t}function ac(){return typeof __HLS_WORKER_BUNDLE__=="function"}function du(){const d=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),e=self.URL.createObjectURL(d);return{worker:new self.Worker(e),objectURL:e}}function sc(d){const e=new self.URL(d,self.location.href).href;return{worker:new self.Worker(e),scriptURL:e}}function Xo(d="",e=9e4){return{type:d,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Hu{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,i){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=Mn(this.cachedData,e),this.cachedData=null);let r=D(e,0),i=r?r.length:0,s;const l=this._audioTrack,x=this._id3Track,j=r?P(r):void 0,J=e.length;for((this.basePTS===null||this.frameIndex===0&&o(j))&&(this.basePTS=oc(j,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&x.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:ra.audioId3,duration:Number.POSITIVE_INFINITY});i<J;){if(this.canParse(e,i)){const fe=this.appendFrame(l,e,i);fe?(this.frameIndex++,this.lastPTS=fe.sample.pts,i+=fe.length,s=i):i=J}else W(e,i)?(r=D(e,i),x.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:ra.audioId3,duration:Number.POSITIVE_INFINITY}),i+=r.length,s=i):i++;if(i===J&&s!==J){const fe=z(e,s);this.cachedData?this.cachedData=Mn(this.cachedData,fe):this.cachedData=fe}}return{audioTrack:l,videoTrack:Xo(),id3Track:x,textTrack:Xo()}}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:Xo(),id3Track:this._id3Track,textTrack:Xo()}}destroy(){}}const oc=(d,e,t)=>{if(o(d))return d*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};function b(d,e,t,r){let i,s,l,x;const j=navigator.userAgent.toLowerCase(),J=r,fe=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=((e[t+2]&192)>>>6)+1;const Oe=(e[t+2]&60)>>>2;if(Oe>fe.length-1){const Ve=new Error(`invalid ADTS sampling index:${Oe}`);d.emit(a.ERROR,a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!0,error:Ve,reason:Ve.message});return}return l=(e[t+2]&1)<<2,l|=(e[t+3]&192)>>>6,B.log(`manifest codec:${r}, ADTS type:${i}, samplingIndex:${Oe}`),/firefox/i.test(j)?Oe>=6?(i=5,x=new Array(4),s=Oe-3):(i=2,x=new Array(2),s=Oe):j.indexOf("android")!==-1?(i=2,x=new Array(2),s=Oe):(i=5,x=new Array(4),r&&(r.indexOf("mp4a.40.29")!==-1||r.indexOf("mp4a.40.5")!==-1)||!r&&Oe>=6?s=Oe-3:((r&&r.indexOf("mp4a.40.2")!==-1&&(Oe>=6&&l===1||/vivaldi/i.test(j))||!r&&l===1)&&(i=2,x=new Array(2)),s=Oe)),x[0]=i<<3,x[0]|=(Oe&14)>>1,x[1]|=(Oe&1)<<7,x[1]|=l<<3,i===5&&(x[1]|=(s&14)>>1,x[2]=(s&1)<<7,x[2]|=8,x[3]=0),{config:x,samplerate:fe[Oe],channelCount:l,codec:"mp4a.40."+i,manifestCodec:J}}function u(d,e){return d[e]===255&&(d[e+1]&246)===240}function y(d,e){return d[e+1]&1?7:9}function M(d,e){return(d[e+3]&3)<<11|d[e+4]<<3|(d[e+5]&224)>>>5}function ne(d,e){return e+5<d.length}function Z(d,e){return e+1<d.length&&u(d,e)}function ge(d,e){return ne(d,e)&&u(d,e)&&M(d,e)<=d.length-e}function De(d,e){if(Z(d,e)){const t=y(d,e);if(e+t>=d.length)return!1;const r=M(d,e);if(r<=t)return!1;const i=e+r;return i===d.length||Z(d,i)}return!1}function Ne(d,e,t,r,i){if(!d.samplerate){const s=b(e,t,r,i);if(!s)return;d.config=s.config,d.samplerate=s.samplerate,d.channelCount=s.channelCount,d.codec=s.codec,d.manifestCodec=s.manifestCodec,B.log(`parsed codec:${d.codec}, rate:${s.samplerate}, channels:${s.channelCount}`)}}function tt(d){return 1024*9e4/d}function yt(d,e){const t=y(d,e);if(e+t<=d.length){const r=M(d,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function vt(d,e,t,r,i){const s=tt(d.samplerate),l=r+i*s,x=yt(e,t);let j;if(x){const{frameLength:Oe,headerLength:Ve}=x,Je=Ve+Oe,ut=Math.max(0,t+Je-e.length);ut?(j=new Uint8Array(Je-Ve),j.set(e.subarray(t+Ve,e.length),0)):j=e.subarray(t+Ve,t+Je);const Ct={unit:j,pts:l};return ut||d.samples.push(Ct),{sample:Ct,length:Je,missing:ut}}const J=e.length-t;return j=new Uint8Array(J),j.set(e.subarray(t,e.length),0),{sample:{unit:j,pts:l},length:J,missing:-1}}let Pt=null;const Ye=[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],cr=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],tr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],dr=[0,1,1,4];function Qt(d,e,t,r,i){if(t+24>e.length)return;const s=pr(e,t);if(s&&t+s.frameLength<=e.length){const l=s.samplesPerFrame*9e4/s.sampleRate,x=r+i*l,j={unit:e.subarray(t,t+s.frameLength),pts:x,dts:x};return d.config=[],d.channelCount=s.channelCount,d.samplerate=s.sampleRate,d.samples.push(j),{sample:j,length:s.frameLength,missing:0}}}function pr(d,e){const t=d[e+1]>>3&3,r=d[e+1]>>1&3,i=d[e+2]>>4&15,s=d[e+2]>>2&3;if(t!==1&&i!==0&&i!==15&&s!==3){const l=d[e+2]>>1&1,x=d[e+3]>>6,j=t===3?3-r:r===3?3:4,J=Ye[j*14+i-1]*1e3,Oe=cr[(t===3?0:t===2?1:2)*3+s],Ve=x===3?1:2,Je=tr[t][r],ut=dr[r],Ct=Je*8*ut,Ft=Math.floor(Je*J/Oe+l)*ut;if(Pt===null){const Fr=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Pt=Fr?parseInt(Fr[1]):0}return!!Pt&&Pt<=87&&r===2&&J>=224e3&&x===0&&(d[e+3]=d[e+3]|128),{sampleRate:Oe,channelCount:Ve,frameLength:Ft,samplesPerFrame:Ct}}}function Ur(d,e){return d[e]===255&&(d[e+1]&224)===224&&(d[e+1]&6)!==0}function sn(d,e){return e+1<d.length&&Ur(d,e)}function Rn(d,e){return Ur(d,e)&&4<=d.length-e}function ci(d,e){if(e+1<d.length&&Ur(d,e)){const r=pr(d,e);let i=4;r!=null&&r.frameLength&&(i=r.frameLength);const s=e+i;return s===d.length||sn(d,s)}return!1}class pn extends Hu{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=D(e,0);let r=(t==null?void 0:t.length)||0;if(ci(e,r))return!1;for(let i=e.length;r<i;r++)if(De(e,r))return B.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return ge(e,t)}appendFrame(e,t,r){Ne(e,this.observer,t,r,e.manifestCodec);const i=vt(e,t,r,this.basePTS,this.frameIndex);if(i&&i.missing===0)return i}}const Br=/\/emsg[-/]ID3/i;class bn{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,i){const s=this.videoTrack=Xo("video",1),l=this.audioTrack=Xo("audio",1),x=this.txtTrack=Xo("text",1);if(this.id3Track=Xo("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const j=Zt(e);if(j.video){const{id:J,timescale:fe,codec:Oe}=j.video;s.id=J,s.timescale=x.timescale=fe,s.codec=Oe}if(j.audio){const{id:J,timescale:fe,codec:Oe}=j.audio;l.id=J,l.timescale=fe,l.codec=Oe}x.id=wr.text,s.sampleDuration=0,s.duration=l.duration=i}resetContiguity(){this.remainderData=null}static probe(e){return Yr(e)}demux(e,t){this.timeOffset=t;let r=e;const i=this.videoTrack,s=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Mn(this.remainderData,e));const x=Fi(r);this.remainderData=x.remainder,i.samples=x.valid||new Uint8Array}else i.samples=r;const l=this.extractID3Track(i,t);return s.samples=Hn(t,i),{videoTrack:i,audioTrack:this.audioTrack,id3Track:l,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const i=this.extractID3Track(t,this.timeOffset);return r.samples=Hn(e,t),{videoTrack:t,audioTrack:Xo(),id3Track:i,textTrack:Xo()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const i=St(e.samples,["emsg"]);i&&i.forEach(s=>{const l=_t(s);if(Br.test(l.schemeIdUri)){const x=o(l.presentationTime)?l.presentationTime/l.timeScale:t+l.presentationTimeDelta/l.timeScale;let j=l.eventDuration===4294967295?Number.POSITIVE_INFINITY:l.eventDuration/l.timeScale;j<=.001&&(j=Number.POSITIVE_INFINITY);const J=l.payload;r.samples.push({data:J,len:J.byteLength,dts:x,pts:x,type:ra.emsg,duration:j})}})}return r}demuxSampleAes(e,t,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){}}const Pn=(d,e)=>{let t=0,r=5;e+=r;const i=new Uint32Array(1),s=new Uint32Array(1),l=new Uint8Array(1);for(;r>0;){l[0]=d[e];const x=Math.min(r,8),j=8-x;s[0]=4278190080>>>24+j<<j,i[0]=(l[0]&s[0])>>j,t=t?t<<x|i[0]:i[0],e+=1,r-=x}return t};class er extends Hu{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,r){const i=nr(e,t,r,this.basePTS,this.frameIndex);if(i!==-1)return{sample:e.samples[e.samples.length-1],length:i,missing:0}}static probe(e){if(!e)return!1;const t=D(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&P(t)!==void 0&&Pn(e,r)<16}}function nr(d,e,t,r,i){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 x=[48e3,44100,32e3][s],j=e[t+4]&63,fe=[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][j*3+s]*2;if(t+fe>e.length)return-1;const Oe=e[t+6]>>5;let Ve=0;Oe===2?Ve+=2:(Oe&1&&Oe!==1&&(Ve+=2),Oe&4&&(Ve+=2));const Je=(e[t+6]<<8|e[t+7])>>12-Ve&1,Ct=[2,1,2,3,3,4,4,5][Oe]+Je,Ft=e[t+5]>>3,gr=e[t+5]&7,Or=new Uint8Array([s<<6|Ft<<1|gr>>2,(gr&3)<<6|Oe<<3|Je<<2|j>>4,j<<4&224]),Fr=1536/x*9e4,Un=r+i*Fr,an=e.subarray(t,t+fe);return d.config=Or,d.channelCount=Ct,d.samplerate=x,d.samples.push({unit:an,pts:Un}),fe}class ye{constructor(){this.VideoSample=null}createVideoSample(e,t,r,i){return{key:e,frame:!1,pts:t,dts:r,units:[],debug:i,length:0}}getLastNalUnit(e){var t;let r=this.VideoSample,i;if((!r||r.units.length===0)&&(r=e[e.length-1]),(t=r)!=null&&t.units){const s=r.units;i=s[s.length-1]}return i}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const r=t.samples,i=r.length;if(i){const s=r[i-1];e.pts=s.pts,e.dts=s.dts}else{t.dropped++;return}}t.samples.push(e)}e.debug.length&&B.log(e.pts+"/"+e.dts+":"+e.debug)}}class Ee{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,i=new Uint8Array(4),s=Math.min(4,t);if(s===0)throw new Error("no bytes available");i.set(e.subarray(r,r+s)),this.word=new DataView(i.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&&B.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)}skipScalingList(e){let t=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=this.readEG(),r=(t+i+256)%256),t=r===0?t:r}readSPS(){let e=0,t=0,r=0,i=0,s,l,x;const j=this.readUByte.bind(this),J=this.readBits.bind(this),fe=this.readUEG.bind(this),Oe=this.readBoolean.bind(this),Ve=this.skipBits.bind(this),Je=this.skipEG.bind(this),ut=this.skipUEG.bind(this),Ct=this.skipScalingList.bind(this);j();const Ft=j();if(J(5),Ve(3),j(),ut(),Ft===100||Ft===110||Ft===122||Ft===244||Ft===44||Ft===83||Ft===86||Ft===118||Ft===128){const mi=fe();if(mi===3&&Ve(1),ut(),ut(),Ve(1),Oe())for(l=mi!==3?8:12,x=0;x<l;x++)Oe()&&(x<6?Ct(16):Ct(64))}ut();const gr=fe();if(gr===0)fe();else if(gr===1)for(Ve(1),Je(),Je(),s=fe(),x=0;x<s;x++)Je();ut(),Ve(1);const Or=fe(),Fr=fe(),Un=J(1);Un===0&&Ve(1),Ve(1),Oe()&&(e=fe(),t=fe(),r=fe(),i=fe());let an=[1,1];if(Oe()&&Oe())switch(j()){case 1:an=[1,1];break;case 2:an=[12,11];break;case 3:an=[10,11];break;case 4:an=[16,11];break;case 5:an=[40,33];break;case 6:an=[24,11];break;case 7:an=[20,11];break;case 8:an=[32,11];break;case 9:an=[80,33];break;case 10:an=[18,11];break;case 11:an=[15,11];break;case 12:an=[64,33];break;case 13:an=[160,99];break;case 14:an=[4,3];break;case 15:an=[3,2];break;case 16:an=[2,1];break;case 255:{an=[j()<<8|j(),j()<<8|j()];break}}return{width:Math.ceil((Or+1)*16-e*2-t*2),height:(2-Un)*(Fr+1)*16-(Un?2:4)*(r+i),pixelRatio:an}}readSliceType(){return this.readUByte(),this.readUEG(),this.readUEG()}}class et extends ye{parseAVCPES(e,t,r,i,s){const l=this.parseAVCNALu(e,r.data);let x=this.VideoSample,j,J=!1;r.data=null,x&&l.length&&!e.audFound&&(this.pushAccessUnit(x,e),x=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"")),l.forEach(fe=>{var Oe;switch(fe.type){case 1:{let Ct=!1;j=!0;const Ft=fe.data;if(J&&Ft.length>4){const gr=new Ee(Ft).readSliceType();(gr===2||gr===4||gr===7||gr===9)&&(Ct=!0)}if(Ct){var Ve;(Ve=x)!=null&&Ve.frame&&!x.key&&(this.pushAccessUnit(x,e),x=this.VideoSample=null)}x||(x=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),x.frame=!0,x.key=Ct;break}case 5:j=!0,(Oe=x)!=null&&Oe.frame&&!x.key&&(this.pushAccessUnit(x,e),x=this.VideoSample=null),x||(x=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts,"")),x.key=!0,x.frame=!0;break;case 6:{j=!0,tn(fe.data,1,r.pts,t.samples);break}case 7:{var Je,ut;j=!0,J=!0;const Ct=fe.data,gr=new Ee(Ct).readSPS();if(!e.sps||e.width!==gr.width||e.height!==gr.height||((Je=e.pixelRatio)==null?void 0:Je[0])!==gr.pixelRatio[0]||((ut=e.pixelRatio)==null?void 0:ut[1])!==gr.pixelRatio[1]){e.width=gr.width,e.height=gr.height,e.pixelRatio=gr.pixelRatio,e.sps=[Ct],e.duration=s;const Or=Ct.subarray(1,4);let Fr="avc1.";for(let Un=0;Un<3;Un++){let an=Or[Un].toString(16);an.length<2&&(an="0"+an),Fr+=an}e.codec=Fr}break}case 8:j=!0,e.pps=[fe.data];break;case 9:j=!0,e.audFound=!0,x&&this.pushAccessUnit(x,e),x=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts,"");break;case 12:j=!0;break;default:j=!1,x&&(x.debug+="unknown NAL "+fe.type+" ");break}x&&j&&x.units.push(fe)}),i&&x&&(this.pushAccessUnit(x,e),this.VideoSample=null)}parseAVCNALu(e,t){const r=t.byteLength;let i=e.naluState||0;const s=i,l=[];let x=0,j,J,fe,Oe=-1,Ve=0;for(i===-1&&(Oe=0,Ve=t[0]&31,i=0,x=1);x<r;){if(j=t[x++],!i){i=j?0:1;continue}if(i===1){i=j?0:2;continue}if(!j)i=3;else if(j===1){if(J=x-i-1,Oe>=0){const Je={data:t.subarray(Oe,J),type:Ve};l.push(Je)}else{const Je=this.getLastNalUnit(e.samples);Je&&(s&&x<=4-s&&Je.state&&(Je.data=Je.data.subarray(0,Je.data.byteLength-s)),J>0&&(Je.data=Mn(Je.data,t.subarray(0,J)),Je.state=0))}x<r?(fe=t[x]&31,Oe=x,Ve=fe,i=0):i=-1}else i=0}if(Oe>=0&&i>=0){const Je={data:t.subarray(Oe,r),type:Ve,state:i};l.push(Je)}if(l.length===0){const Je=this.getLastNalUnit(e.samples);Je&&(Je.data=Mn(Je.data,t))}return e.naluState=i,l}}class st{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Ol(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}decryptAacSample(e,t,r){const i=e[t].unit;if(i.length<=16)return;const s=i.subarray(16,i.length-i.length%16),l=s.buffer.slice(s.byteOffset,s.byteOffset+s.length);this.decryptBuffer(l).then(x=>{const j=new Uint8Array(x);i.set(j,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 i=0;for(let s=32;s<e.length-16;s+=160,i+=16)r.set(e.subarray(s,s+16),i);return r}getAvcDecryptedUnit(e,t){const r=new Uint8Array(t);let i=0;for(let s=32;s<e.length-16;s+=160,i+=16)e.set(r.subarray(i,i+16),s);return e}decryptAvcSample(e,t,r,i,s){const l=Nt(s.data),x=this.getAvcEncryptedData(l);this.decryptBuffer(x.buffer).then(j=>{s.data=this.getAvcDecryptedUnit(l,j),this.decrypter.isSync()||this.decryptAvcSamples(e,t,r+1,i)})}decryptAvcSamples(e,t,r,i){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length){i();return}const s=e[t].units;for(;!(r>=s.length);r++){const l=s[r];if(!(l.data.length<=48||l.type!==1&&l.type!==5)&&(this.decryptAvcSample(e,t,r,i,l),!this.decrypter.isSync()))return}}}}const gt=188;class ht{constructor(e,t,r){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._duration=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.videoParser=new et}static probe(e){const t=ht.syncOffset(e);return t>0&&B.warn(`MPEG2-TS detected but first sync word found @ offset ${t}`),t!==-1}static syncOffset(e){const t=e.length;let r=Math.min(gt*5,t-gt)+1,i=0;for(;i<r;){let s=!1,l=-1,x=0;for(let j=i;j<t;j+=gt)if(e[j]===71&&(t-j===gt||e[j+gt]===71)){if(x++,l===-1&&(l=j,l!==0&&(r=Math.min(l+gt*99,e.length-gt)+1)),s||(s=Ut(e,j)===0),s&&x>1&&(l===0&&x>2||j+gt>r))return l}else{if(x)return-1;break}i++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:wr[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,r,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=ht.createTrack("video"),this._audioTrack=ht.createTrack("audio",i),this._id3Track=ht.createTrack("id3"),this._txtTrack=ht.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=r,this._duration=i}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,i=!1){r||(this.sampleAes=null);let s;const l=this._videoTrack,x=this._audioTrack,j=this._id3Track,J=this._txtTrack;let fe=l.pid,Oe=l.pesData,Ve=x.pid,Je=j.pid,ut=x.pesData,Ct=j.pesData,Ft=null,gr=this.pmtParsed,Or=this._pmtId,Fr=e.length;if(this.remainderData&&(e=Mn(this.remainderData,e),Fr=e.length,this.remainderData=null),Fr<gt&&!i)return this.remainderData=e,{audioTrack:x,videoTrack:l,id3Track:j,textTrack:J};const Un=Math.max(0,ht.syncOffset(e));Fr-=(Fr-Un)%gt,Fr<e.byteLength&&!i&&(this.remainderData=new Uint8Array(e.buffer,Fr,e.buffer.byteLength-Fr));let an=0;for(let zn=Un;zn<Fr;zn+=gt)if(e[zn]===71){const Ti=!!(e[zn+1]&64),qi=Ut(e,zn),di=(e[zn+3]&48)>>4;let Ni;if(di>1){if(Ni=zn+5+e[zn+4],Ni===zn+gt)continue}else Ni=zn+4;switch(qi){case fe:Ti&&(Oe&&(s=wt(Oe))&&this.videoParser.parseAVCPES(l,J,s,!1,this._duration),Oe={data:[],size:0}),Oe&&(Oe.data.push(e.subarray(Ni,zn+gt)),Oe.size+=zn+gt-Ni);break;case Ve:if(Ti){if(ut&&(s=wt(ut)))switch(x.segmentCodec){case"aac":this.parseAACPES(x,s);break;case"mp3":this.parseMPEGPES(x,s);break;case"ac3":this.parseAC3PES(x,s);break}ut={data:[],size:0}}ut&&(ut.data.push(e.subarray(Ni,zn+gt)),ut.size+=zn+gt-Ni);break;case Je:Ti&&(Ct&&(s=wt(Ct))&&this.parseID3PES(j,s),Ct={data:[],size:0}),Ct&&(Ct.data.push(e.subarray(Ni,zn+gt)),Ct.size+=zn+gt-Ni);break;case 0:Ti&&(Ni+=e[Ni]+1),Or=this._pmtId=$t(e,Ni);break;case Or:{Ti&&(Ni+=e[Ni]+1);const za=sr(e,Ni,this.typeSupported,r,this.observer);fe=za.videoPid,fe>0&&(l.pid=fe,l.segmentCodec=za.segmentVideoCodec),Ve=za.audioPid,Ve>0&&(x.pid=Ve,x.segmentCodec=za.segmentAudioCodec),Je=za.id3Pid,Je>0&&(j.pid=Je),Ft!==null&&!gr&&(B.warn(`MPEG-TS PMT found at ${zn} after unknown PID '${Ft}'. Backtracking to sync byte @${Un} to parse all TS packets.`),Ft=null,zn=Un-188),gr=this.pmtParsed=!0;break}case 17:case 8191:break;default:Ft=qi;break}}else an++;an>0&&ze(this.observer,new Error(`Found ${an} TS packet/s that do not start with 0x47`)),l.pesData=Oe,x.pesData=ut,j.pesData=Ct;const mi={audioTrack:x,videoTrack:l,id3Track:j,textTrack:J};return i&&this.extractRemainingSamples(mi),mi}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:i,textTrack:s}=e,l=r.pesData,x=t.pesData,j=i.pesData;let J;if(l&&(J=wt(l))?(this.videoParser.parseAVCPES(r,s,J,!0,this._duration),r.pesData=null):r.pesData=l,x&&(J=wt(x))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,J);break;case"mp3":this.parseMPEGPES(t,J);break;case"ac3":this.parseAC3PES(t,J);break}t.pesData=null}else x!=null&&x.size&&B.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=x;j&&(J=wt(j))?(this.parseID3PES(i,J),i.pesData=null):i.pesData=j}demuxSampleAes(e,t,r){const i=this.demux(e,r,!0,!this.config.progressive),s=this.sampleAes=new st(this.observer,this.config,t);return this.decrypt(i,s)}decrypt(e,t){return new Promise(r=>{const{audioTrack:i,videoTrack:s}=e;i.samples&&i.segmentCodec==="aac"?t.decryptAacSamples(i.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._duration=0}parseAACPES(e,t){let r=0;const i=this.aacOverFlow;let s=t.data;if(i){this.aacOverFlow=null;const Oe=i.missing,Ve=i.sample.unit.byteLength;if(Oe===-1)s=Mn(i.sample.unit,s);else{const Je=Ve-Oe;i.sample.unit.set(s.subarray(0,Oe),Je),e.samples.push(i.sample),r=i.missing}}let l,x;for(l=r,x=s.length;l<x-1&&!Z(s,l);l++);if(l!==r){let Oe;const Ve=l<x-1;if(Ve?Oe=`AAC PES did not start with ADTS header,offset:${l}`:Oe="No ADTS header found in AAC PES",ze(this.observer,new Error(Oe),Ve),!Ve)return}Ne(e,this.observer,s,l,this.audioCodec);let j;if(t.pts!==void 0)j=t.pts;else if(i){const Oe=tt(e.samplerate);j=i.sample.pts+Oe}else{B.warn("[tsdemuxer]: AAC PES unknown PTS");return}let J=0,fe;for(;l<x;)if(fe=vt(e,s,l,j,J),l+=fe.length,fe.missing){this.aacOverFlow=fe;break}else for(J++;l<x-1&&!Z(s,l);l++);}parseMPEGPES(e,t){const r=t.data,i=r.length;let s=0,l=0;const x=t.pts;if(x===void 0){B.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;l<i;)if(sn(r,l)){const j=Qt(e,r,l,x,s);if(j)l+=j.length,s++;else break}else l++}parseAC3PES(e,t){{const r=t.data,i=t.pts;if(i===void 0){B.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const s=r.length;let l=0,x=0,j;for(;x<s&&(j=nr(e,r,x,i,l++))>0;)x+=j}}parseID3PES(e,t){if(t.pts===void 0){B.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=n({},t,{type:this._videoTrack?ra.emsg:ra.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function Ut(d,e){return((d[e+1]&31)<<8)+d[e+2]}function $t(d,e){return(d[e+10]&31)<<8|d[e+11]}function sr(d,e,t,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(d[e+1]&15)<<8|d[e+2],x=e+3+l-4,j=(d[e+10]&15)<<8|d[e+11];for(e+=12+j;e<x;){const J=Ut(d,e),fe=(d[e+3]&15)<<8|d[e+4];switch(d[e]){case 207:if(!r){Ce("ADTS AAC");break}case 15:s.audioPid===-1&&(s.audioPid=J);break;case 21:s.id3Pid===-1&&(s.id3Pid=J);break;case 219:if(!r){Ce("H.264");break}case 27:s.videoPid===-1&&(s.videoPid=J,s.segmentVideoCodec="avc");break;case 3:case 4:!t.mpeg&&!t.mp3?B.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=J,s.segmentAudioCodec="mp3");break;case 193:if(!r){Ce("AC-3");break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=J,s.segmentAudioCodec="ac3"):B.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&fe>0){let Oe=e+5,Ve=fe;for(;Ve>2;){switch(d[Oe]){case 106:t.ac3!==!0?B.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=J,s.segmentAudioCodec="ac3");break}const ut=d[Oe+1]+2;Oe+=ut,Ve-=ut}}break;case 194:case 135:return ze(i,new Error("Unsupported EC-3 in M2TS found")),s;case 36:return ze(i,new Error("Unsupported HEVC in M2TS found")),s}e+=fe+5}return s}function ze(d,e,t){B.warn(`parsing error: ${e.message}`),d.emit(a.ERROR,a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Ce(d){B.log(`${d} with AES-128-CBC encryption found in unencrypted stream`)}function wt(d){let e=0,t,r,i,s,l;const x=d.data;if(!d||d.size===0)return null;for(;x[0].length<19&&x.length>1;)x[0]=Mn(x[0],x[1]),x.splice(1,1);if(t=x[0],(t[0]<<16)+(t[1]<<8)+t[2]===1){if(r=(t[4]<<8)+t[5],r&&r>d.size-6)return null;const J=t[7];J&192&&(s=(t[9]&14)*536870912+(t[10]&255)*4194304+(t[11]&254)*16384+(t[12]&255)*128+(t[13]&254)/2,J&64?(l=(t[14]&14)*536870912+(t[15]&255)*4194304+(t[16]&254)*16384+(t[17]&255)*128+(t[18]&254)/2,s-l>60*9e4&&(B.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),i=t[8];let fe=i+9;if(d.size<=fe)return null;d.size-=fe;const Oe=new Uint8Array(d.size);for(let Ve=0,Je=x.length;Ve<Je;Ve++){t=x[Ve];let ut=t.byteLength;if(fe)if(fe>ut){fe-=ut;continue}else t=t.subarray(fe),ut-=fe,fe=0;Oe.set(t,e),e+=ut}return r&&(r-=i+3),{data:Oe,pts:s,dts:l,len:r}}return null}class jt extends Hu{resetInitSegment(e,t,r,i){super.resetInitSegment(e,t,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:i,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=D(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&P(t)!==void 0&&Pn(e,r)<=16)return!1;for(let i=e.length;r<i;r++)if(ci(e,r))return B.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Rn(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return Qt(e,t,r,this.basePTS,this.frameIndex)}}class Wt{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 ur=Math.pow(2,32)-1;class It{static init(){It.types={avc1:[],avcC:[],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 It.types)It.types.hasOwnProperty(e)&&(It.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]);It.HDLR_TYPES={video:t,audio:r};const i=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]);It.STTS=It.STSC=It.STCO=s,It.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),It.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),It.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),It.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const l=new Uint8Array([105,115,111,109]),x=new Uint8Array([97,118,99,49]),j=new Uint8Array([0,0,0,1]);It.FTYP=It.box(It.types.ftyp,l,j,l,x),It.DINF=It.box(It.types.dinf,It.box(It.types.dref,i))}static box(e,...t){let r=8,i=t.length;const s=i;for(;i--;)r+=t[i].byteLength;const l=new Uint8Array(r);for(l[0]=r>>24&255,l[1]=r>>16&255,l[2]=r>>8&255,l[3]=r&255,l.set(e,4),i=0,r=8;i<s;i++)l.set(t[i],r),r+=t[i].byteLength;return l}static hdlr(e){return It.box(It.types.hdlr,It.HDLR_TYPES[e])}static mdat(e){return It.box(It.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(ur+1)),i=Math.floor(t%(ur+1));return It.box(It.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,i>>24,i>>16&255,i>>8&255,i&255,85,196,0,0]))}static mdia(e){return It.box(It.types.mdia,It.mdhd(e.timescale,e.duration),It.hdlr(e.type),It.minf(e))}static mfhd(e){return It.box(It.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"?It.box(It.types.minf,It.box(It.types.smhd,It.SMHD),It.DINF,It.stbl(e)):It.box(It.types.minf,It.box(It.types.vmhd,It.VMHD),It.DINF,It.stbl(e))}static moof(e,t,r){return It.box(It.types.moof,It.mfhd(e),It.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=It.trak(e[t]);return It.box.apply(null,[It.types.moov,It.mvhd(e[0].timescale,e[0].duration)].concat(r).concat(It.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=It.trex(e[t]);return It.box.apply(null,[It.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(ur+1)),i=Math.floor(t%(ur+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,i>>24,i>>16&255,i>>8&255,i&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 It.box(It.types.mvhd,s)}static sdtp(e){const t=e.samples||[],r=new Uint8Array(4+t.length);let i,s;for(i=0;i<t.length;i++)s=t[i].flags,r[i+4]=s.dependsOn<<4|s.isDependedOn<<2|s.hasRedundancy;return It.box(It.types.sdtp,r)}static stbl(e){return It.box(It.types.stbl,It.stsd(e),It.box(It.types.stts,It.STTS),It.box(It.types.stsc,It.STSC),It.box(It.types.stsz,It.STSZ),It.box(It.types.stco,It.STCO))}static avc1(e){let t=[],r=[],i,s,l;for(i=0;i<e.sps.length;i++)s=e.sps[i],l=s.byteLength,t.push(l>>>8&255),t.push(l&255),t=t.concat(Array.prototype.slice.call(s));for(i=0;i<e.pps.length;i++)s=e.pps[i],l=s.byteLength,r.push(l>>>8&255),r.push(l&255),r=r.concat(Array.prototype.slice.call(s));const x=It.box(It.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),j=e.width,J=e.height,fe=e.pixelRatio[0],Oe=e.pixelRatio[1];return It.box(It.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,j>>8&255,j&255,J>>8&255,J&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]),x,It.box(It.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),It.box(It.types.pasp,new Uint8Array([fe>>24,fe>>16&255,fe>>8&255,fe&255,Oe>>24,Oe>>16&255,Oe>>8&255,Oe&255])))}static esds(e){const t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}static audioStsd(e){const t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return It.box(It.types.mp4a,It.audioStsd(e),It.box(It.types.esds,It.esds(e)))}static mp3(e){return It.box(It.types[".mp3"],It.audioStsd(e))}static ac3(e){return It.box(It.types["ac-3"],It.audioStsd(e),It.box(It.types.dac3,e.config))}static stsd(e){return e.type==="audio"?e.segmentCodec==="mp3"&&e.codec==="mp3"?It.box(It.types.stsd,It.STSD,It.mp3(e)):e.segmentCodec==="ac3"?It.box(It.types.stsd,It.STSD,It.ac3(e)):It.box(It.types.stsd,It.STSD,It.mp4a(e)):It.box(It.types.stsd,It.STSD,It.avc1(e))}static tkhd(e){const t=e.id,r=e.duration*e.timescale,i=e.width,s=e.height,l=Math.floor(r/(ur+1)),x=Math.floor(r%(ur+1));return It.box(It.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,l>>24,l>>16&255,l>>8&255,l&255,x>>24,x>>16&255,x>>8&255,x&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,i>>8&255,i&255,0,0,s>>8&255,s&255,0,0]))}static traf(e,t){const r=It.sdtp(e),i=e.id,s=Math.floor(t/(ur+1)),l=Math.floor(t%(ur+1));return It.box(It.types.traf,It.box(It.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255])),It.box(It.types.tfdt,new Uint8Array([1,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255])),It.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,It.box(It.types.trak,It.tkhd(e),It.mdia(e))}static trex(e){const t=e.id;return It.box(It.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||[],i=r.length,s=12+16*i,l=new Uint8Array(s);let x,j,J,fe,Oe,Ve;for(t+=8+s,l.set([e.type==="video"?1:0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),x=0;x<i;x++)j=r[x],J=j.duration,fe=j.size,Oe=j.flags,Ve=j.cts,l.set([J>>>24&255,J>>>16&255,J>>>8&255,J&255,fe>>>24&255,fe>>>16&255,fe>>>8&255,fe&255,Oe.isLeading<<2|Oe.dependsOn,Oe.isDependedOn<<6|Oe.hasRedundancy<<4|Oe.paddingValue<<1|Oe.isNonSync,Oe.degradPrio&61440,Oe.degradPrio&15,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255],12+16*x);return It.box(It.types.trun,l)}static initSegment(e){It.types||It.init();const t=It.moov(e);return Mn(It.FTYP,t)}}It.types=void 0,It.HDLR_TYPES=void 0,It.STTS=void 0,It.STSC=void 0,It.STCO=void 0,It.STSZ=void 0,It.VMHD=void 0,It.SMHD=void 0,It.STSD=void 0,It.FTYP=void 0,It.DINF=void 0;const br=9e4;function Gr(d,e,t=1,r=!1){const i=d*e*t;return r?Math.round(i):i}function $r(d,e,t=1,r=!1){return Gr(d,e,1/t,r)}function cn(d,e=!1){return Gr(d,1e3,1/br,e)}function Dn(d,e=1){return Gr(d,br,1/e)}const ni=10*1e3,Mr=1024,ir=1152,Ii=1536;let Fn=null,ln=null;class An{constructor(e,t,r,i=""){if(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.ISGenerated=!1,Fn===null){const l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Fn=l?parseInt(l[1]):0}if(ln===null){const s=navigator.userAgent.match(/Safari\/(\d+)/i);ln=s?parseInt(s[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){B.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){B.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){B.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const r=e[0].pts,i=e.reduce((s,l)=>{let x=l.pts,j=x-s;return j<-4294967296&&(t=!0,x=rn(x,r),j=x-s),j>0?s:x},r);return t&&B.debug("PTS rollover detected"),i}remux(e,t,r,i,s,l,x,j){let J,fe,Oe,Ve,Je,ut,Ct=s,Ft=s;const gr=e.pid>-1,Or=t.pid>-1,Fr=t.samples.length,Un=e.samples.length>0,an=x&&Fr>0||Fr>1;if((!gr||Un)&&(!Or||an)||this.ISGenerated||x){if(this.ISGenerated){var zn,Ti,qi,di;const Qa=this.videoTrackConfig;Qa&&(t.width!==Qa.width||t.height!==Qa.height||((zn=t.pixelRatio)==null?void 0:zn[0])!==((Ti=Qa.pixelRatio)==null?void 0:Ti[0])||((qi=t.pixelRatio)==null?void 0:qi[1])!==((di=Qa.pixelRatio)==null?void 0:di[1]))&&this.resetInitSegment()}else Oe=this.generateIS(e,t,s,l);const Ni=this.isVideoContiguous;let za=-1,ia;if(an&&(za=Cn(t.samples),!Ni&&this.config.forceKeyFrameOnDiscontinuity))if(ut=!0,za>0){B.warn(`[mp4-remuxer]: Dropped ${za} out of ${Fr} video samples due to a missing keyframe`);const Qa=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(za),t.dropped+=za,Ft+=(t.samples[0].pts-Qa)/t.inputTimeScale,ia=Ft}else za===-1&&(B.warn(`[mp4-remuxer]: No keyframe found out of ${Fr} video samples`),ut=!1);if(this.ISGenerated){if(Un&&an){const Qa=this.getVideoStartPts(t.samples),La=(rn(e.samples[0].pts,Qa)-Qa)/t.inputTimeScale;Ct+=Math.max(0,La),Ft+=Math.max(0,-La)}if(Un){if(e.samplerate||(B.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Oe=this.generateIS(e,t,s,l)),fe=this.remuxAudio(e,Ct,this.isAudioContiguous,l,Or||an||j===Ht.AUDIO?Ft:void 0),an){const Qa=fe?fe.endPTS-fe.startPTS:0;t.inputTimeScale||(B.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Oe=this.generateIS(e,t,s,l)),J=this.remuxVideo(t,Ft,Ni,Qa)}}else an&&(J=this.remuxVideo(t,Ft,Ni,0));J&&(J.firstKeyFrame=za,J.independent=za!==-1,J.firstKeyFramePTS=ia)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(Je=ai(r,s,this._initPTS,this._initDTS)),i.samples.length&&(Ve=Li(i,s,this._initPTS))),{audio:fe,video:J,initSegment:Oe,independent:ut,text:Ve,id3:Je}}generateIS(e,t,r,i){const s=e.samples,l=t.samples,x=this.typeSupported,j={},J=this._initPTS;let fe=!J||i,Oe="audio/mp4",Ve,Je,ut;if(fe&&(Ve=Je=1/0),e.config&&s.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":x.mpeg?(Oe="audio/mpeg",e.codec=""):x.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}j.audio={id:"audio",container:Oe,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&x.mpeg?new Uint8Array(0):It.initSegment([e]),metadata:{channelCount:e.channelCount}},fe&&(ut=e.inputTimeScale,!J||ut!==J.timescale?Ve=Je=s[0].pts-Math.round(ut*r):fe=!1)}if(t.sps&&t.pps&&l.length){if(t.timescale=t.inputTimeScale,j.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:It.initSegment([t]),metadata:{width:t.width,height:t.height}},fe)if(ut=t.inputTimeScale,!J||ut!==J.timescale){const Ct=this.getVideoStartPts(l),Ft=Math.round(ut*r);Je=Math.min(Je,rn(l[0].dts,Ct)-Ft),Ve=Math.min(Ve,Ct-Ft)}else fe=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(j).length)return this.ISGenerated=!0,fe?(this._initPTS={baseTime:Ve,timescale:ut},this._initDTS={baseTime:Je,timescale:ut}):Ve=ut=void 0,{tracks:j,initPTS:Ve,timescale:ut}}remuxVideo(e,t,r,i){const s=e.inputTimeScale,l=e.samples,x=[],j=l.length,J=this._initPTS;let fe=this.nextAvcDts,Oe=8,Ve=this.videoSampleDuration,Je,ut,Ct=Number.POSITIVE_INFINITY,Ft=Number.NEGATIVE_INFINITY,gr=!1;if(!r||fe===null){const pa=t*s,oa=l[0].pts-rn(l[0].dts,l[0].pts);Fn&&fe!==null&&Math.abs(pa-oa-fe)<15e3?r=!0:fe=pa-oa}const Or=J.baseTime*s/J.timescale;for(let pa=0;pa<j;pa++){const oa=l[pa];oa.pts=rn(oa.pts-Or,fe),oa.dts=rn(oa.dts-Or,fe),oa.dts<l[pa>0?pa-1:pa].dts&&(gr=!0)}gr&&l.sort(function(pa,oa){const ks=pa.dts-oa.dts,hs=pa.pts-oa.pts;return ks||hs}),Je=l[0].dts,ut=l[l.length-1].dts;const Fr=ut-Je,Un=Fr?Math.round(Fr/(j-1)):Ve||e.inputTimeScale/30;if(r){const pa=Je-fe,oa=pa>Un,ks=pa<-1;if((oa||ks)&&(oa?B.warn(`AVC: ${cn(pa,!0)} ms (${pa}dts) hole between fragments detected at ${t.toFixed(3)}`):B.warn(`AVC: ${cn(-pa,!0)} ms (${pa}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!ks||fe>=l[0].pts||Fn)){Je=fe;const hs=l[0].pts-pa;if(oa)l[0].dts=Je,l[0].pts=hs;else for(let Ws=0;Ws<l.length&&!(l[Ws].dts>hs);Ws++)l[Ws].dts-=pa,l[Ws].pts-=pa;B.log(`Video: Initial PTS/DTS adjusted: ${cn(hs,!0)}/${cn(Je,!0)}, delta: ${cn(pa,!0)} ms`)}}Je=Math.max(0,Je);let an=0,mi=0,zn=Je;for(let pa=0;pa<j;pa++){const oa=l[pa],ks=oa.units,hs=ks.length;let Ws=0;for(let lo=0;lo<hs;lo++)Ws+=ks[lo].data.length;mi+=Ws,an+=hs,oa.length=Ws,oa.dts<zn?(oa.dts=zn,zn+=Un/4|0||1):zn=oa.dts,Ct=Math.min(oa.pts,Ct),Ft=Math.max(oa.pts,Ft)}ut=l[j-1].dts;const Ti=mi+4*an+8;let qi;try{qi=new Uint8Array(Ti)}catch(pa){this.observer.emit(a.ERROR,a.ERROR,{type:A.MUX_ERROR,details:m.REMUX_ALLOC_ERROR,fatal:!1,error:pa,bytes:Ti,reason:`fail allocating video mdat ${Ti}`});return}const di=new DataView(qi.buffer);di.setUint32(0,Ti),qi.set(It.types.mdat,4);let Ni=!1,za=Number.POSITIVE_INFINITY,ia=Number.POSITIVE_INFINITY,Qa=Number.NEGATIVE_INFINITY,Ua=Number.NEGATIVE_INFINITY;for(let pa=0;pa<j;pa++){const oa=l[pa],ks=oa.units;let hs=0;for(let Ms=0,Fo=ks.length;Ms<Fo;Ms++){const dl=ks[Ms],_c=dl.data,Fc=dl.data.byteLength;di.setUint32(Oe,Fc),Oe+=4,qi.set(_c,Oe),Oe+=Fc,hs+=4+Fc}let Ws;if(pa<j-1)Ve=l[pa+1].dts-oa.dts,Ws=l[pa+1].pts-oa.pts;else{const Ms=this.config,Fo=pa>0?oa.dts-l[pa-1].dts:Un;if(Ws=pa>0?oa.pts-l[pa-1].pts:Un,Ms.stretchShortVideoTrack&&this.nextAudioPts!==null){const dl=Math.floor(Ms.maxBufferHole*s),_c=(i?Ct+i*s:this.nextAudioPts)-oa.pts;_c>dl?(Ve=_c-Fo,Ve<0?Ve=Fo:Ni=!0,B.log(`[mp4-remuxer]: It is approximately ${_c/90} ms to the next segment; using duration ${Ve/90} ms for the last video frame.`)):Ve=Fo}else Ve=Fo}const lo=Math.round(oa.pts-oa.dts);za=Math.min(za,Ve),Qa=Math.max(Qa,Ve),ia=Math.min(ia,Ws),Ua=Math.max(Ua,Ws),x.push(new He(oa.key,Ve,hs,lo))}if(x.length){if(Fn){if(Fn<70){const pa=x[0].flags;pa.dependsOn=2,pa.isNonSync=0}}else if(ln&&Ua-ia<Qa-za&&Un/Qa<.025&&x[0].cts===0){B.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let pa=Je;for(let oa=0,ks=x.length;oa<ks;oa++){const hs=pa+x[oa].duration,Ws=pa+x[oa].cts;if(oa<ks-1){const lo=hs+x[oa+1].cts;x[oa].duration=lo-Ws}else x[oa].duration=oa?x[oa-1].duration:Un;x[oa].cts=0,pa=hs}}}Ve=Ni||!Ve?Un:Ve,this.nextAvcDts=fe=ut+Ve,this.videoSampleDuration=Ve,this.isVideoContiguous=!0;const Ks={data1:It.moof(e.sequenceNumber++,Je,n({},e,{samples:x})),data2:qi,startPTS:Ct/s,endPTS:(Ft+Ve)/s,startDTS:Je/s,endDTS:fe/s,type:"video",hasAudio:!1,hasVideo:!0,nb:x.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Ks}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return ir;case"ac3":return Ii;default:return Mr}}remuxAudio(e,t,r,i,s){const l=e.inputTimeScale,x=e.samplerate?e.samplerate:l,j=l/x,J=this.getSamplesPerFrame(e),fe=J*j,Oe=this._initPTS,Ve=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,Je=[],ut=s!==void 0;let Ct=e.samples,Ft=Ve?0:8,gr=this.nextAudioPts||-1;const Or=t*l,Fr=Oe.baseTime*l/Oe.timescale;if(this.isAudioContiguous=r=r||Ct.length&&gr>0&&(i&&Math.abs(Or-gr)<9e3||Math.abs(rn(Ct[0].pts-Fr,Or)-gr)<20*fe),Ct.forEach(function(La){La.pts=rn(La.pts-Fr,Or)}),!r||gr<0){if(Ct=Ct.filter(La=>La.pts>=0),!Ct.length)return;s===0?gr=0:i&&!ut?gr=Math.max(0,Or):gr=Ct[0].pts}if(e.segmentCodec==="aac"){const La=this.config.maxAudioFramesDrift;for(let Ts=0,Ks=gr;Ts<Ct.length;Ts++){const pa=Ct[Ts],oa=pa.pts,ks=oa-Ks,hs=Math.abs(1e3*ks/l);if(ks<=-La*fe&&ut)Ts===0&&(B.warn(`Audio frame @ ${(oa/l).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*ks/l)} ms.`),this.nextAudioPts=gr=Ks=oa);else if(ks>=La*fe&&hs<ni&&ut){let Ws=Math.round(ks/fe);Ks=oa-Ws*fe,Ks<0&&(Ws--,Ks+=fe),Ts===0&&(this.nextAudioPts=gr=Ks),B.warn(`[mp4-remuxer]: Injecting ${Ws} audio frame @ ${(Ks/l).toFixed(3)}s due to ${Math.round(1e3*ks/l)} ms gap.`);for(let lo=0;lo<Ws;lo++){const Ms=Math.max(Ks,0);let Fo=Wt.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);Fo||(B.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Fo=pa.unit.subarray()),Ct.splice(Ts,0,{unit:Fo,pts:Ms}),Ks+=fe,Ts++}}pa.pts=Ks,Ks+=fe}}let Un=null,an=null,mi,zn=0,Ti=Ct.length;for(;Ti--;)zn+=Ct[Ti].unit.byteLength;for(let La=0,Ts=Ct.length;La<Ts;La++){const Ks=Ct[La],pa=Ks.unit;let oa=Ks.pts;if(an!==null){const hs=Je[La-1];hs.duration=Math.round((oa-an)/j)}else if(r&&e.segmentCodec==="aac"&&(oa=gr),Un=oa,zn>0){zn+=Ft;try{mi=new Uint8Array(zn)}catch(hs){this.observer.emit(a.ERROR,a.ERROR,{type:A.MUX_ERROR,details:m.REMUX_ALLOC_ERROR,fatal:!1,error:hs,bytes:zn,reason:`fail allocating audio mdat ${zn}`});return}Ve||(new DataView(mi.buffer).setUint32(0,zn),mi.set(It.types.mdat,4))}else return;mi.set(pa,Ft);const ks=pa.byteLength;Ft+=ks,Je.push(new He(!0,J,ks,0)),an=oa}const qi=Je.length;if(!qi)return;const di=Je[Je.length-1];this.nextAudioPts=gr=an+j*di.duration;const Ni=Ve?new Uint8Array(0):It.moof(e.sequenceNumber++,Un/j,n({},e,{samples:Je}));e.samples=[];const za=Un/l,ia=gr/l,Ua={data1:Ni,data2:mi,startPTS:za,endPTS:ia,startDTS:za,endDTS:ia,type:"audio",hasAudio:!0,hasVideo:!1,nb:qi};return this.isAudioContiguous=!0,Ua}remuxEmptyAudio(e,t,r,i){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,x=s/l,j=this.nextAudioPts,J=this._initDTS,fe=J.baseTime*9e4/J.timescale,Oe=(j!==null?j:i.startDTS*s)+fe,Ve=i.endDTS*s+fe,Je=x*Mr,ut=Math.ceil((Ve-Oe)/Je),Ct=Wt.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(B.warn("[mp4-remuxer]: remux empty Audio"),!Ct){B.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}const Ft=[];for(let gr=0;gr<ut;gr++){const Or=Oe+gr*Je;Ft.push({unit:Ct,pts:Or,dts:Or})}return e.samples=Ft,this.remuxAudio(e,t,r,!1)}}function rn(d,e){let t;if(e===null)return d;for(e<d?t=-8589934592:t=8589934592;Math.abs(d-e)>4294967296;)d+=t;return d}function Cn(d){for(let e=0;e<d.length;e++)if(d[e].key)return e;return-1}function ai(d,e,t,r){const i=d.samples.length;if(!i)return;const s=d.inputTimeScale;for(let x=0;x<i;x++){const j=d.samples[x];j.pts=rn(j.pts-t.baseTime*s/t.timescale,e*s)/s,j.dts=rn(j.dts-r.baseTime*s/r.timescale,e*s)/s}const l=d.samples;return d.samples=[],{samples:l}}function Li(d,e,t){const r=d.samples.length;if(!r)return;const i=d.inputTimeScale;for(let l=0;l<r;l++){const x=d.samples[l];x.pts=rn(x.pts-t.baseTime*i/t.timescale,e*i)/i}d.samples.sort((l,x)=>l.pts-x.pts);const s=d.samples;return d.samples=[],{samples:s}}class He{constructor(e,t,r,i){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=t,this.size=r,this.cts=i,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class c{constructor(){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}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,r,i){this.audioCodec=t,this.videoCodec=r,this.generateInitSegment(Re(e,i)),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 i=this.initData=Zt(e);i.audio&&(t=C(i.audio,me.AUDIO)),i.video&&(r=C(i.video,me.VIDEO));const s={};i.audio&&i.video?s.audiovideo={container:"video/mp4",codec:t+","+r,initSegment:e,id:"main"}:i.audio?s.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:i.video?s.video={container:"video/mp4",codec:r,initSegment:e,id:"main"}:B.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=s}remux(e,t,r,i,s,l){var x,j;let{initPTS:J,lastEndTime:fe}=this;const Oe={audio:void 0,video:void 0,text:i,id3:r,initSegment:void 0};o(fe)||(fe=this.lastEndTime=s||0);const Ve=t.samples;if(!(Ve!=null&&Ve.length))return Oe;const Je={initPTS:void 0,timescale:1};let ut=this.initData;if((x=ut)!=null&&x.length||(this.generateInitSegment(Ve),ut=this.initData),!((j=ut)!=null&&j.length))return B.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Oe;this.emitInitSegment&&(Je.tracks=this.initTracks,this.emitInitSegment=!1);const Ct=Nn(Ve,ut),Ft=kt(ut,Ve),gr=Ft===null?s:Ft;(w(J,gr,s,Ct)||Je.timescale!==J.timescale&&l)&&(Je.initPTS=gr-s,J&&J.timescale===1&&B.warn(`Adjusting initPTS by ${Je.initPTS-J.baseTime}`),this.initPTS=J={baseTime:Je.initPTS,timescale:1});const Or=e?gr-J.baseTime/J.timescale:fe,Fr=Or+Ct;vi(ut,Ve,J.baseTime/J.timescale),Ct>0?this.lastEndTime=Fr:(B.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Un=!!ut.audio,an=!!ut.video;let mi="";Un&&(mi+="audio"),an&&(mi+="video");const zn={data1:Ve,startPTS:Or,startDTS:Or,endPTS:Fr,endDTS:Fr,type:mi,hasAudio:Un,hasVideo:an,nb:1,dropped:0};return Oe.audio=zn.type==="audio"?zn:void 0,Oe.video=zn.type!=="audio"?zn:void 0,Oe.initSegment=Je,Oe.id3=ai(r,s,J,J),i.samples.length&&(Oe.text=Li(i,s,J)),Oe}}function w(d,e,t,r){if(d===null)return!0;const i=Math.max(r,1),s=e-d.baseTime/d.timescale;return Math.abs(s-t)>i}function C(d,e){const t=d==null?void 0:d.codec;if(t&&t.length>4)return t;if(e===me.AUDIO){if(t==="ec-3"||t==="ac-3"||t==="alac")return t;if(t==="fLaC"||t==="Opus")return qn(t,!1);const r="mp4a.40.5";return B.info(`Parsed audio codec "${t}" or audio object type not handled. Using "${r}"`),r}return B.warn(`Unhandled video codec "${t}"`),t==="hvc1"||t==="hev1"?"hvc1.1.6.L120.90":t==="av01"?"av01.0.04M.08":"avc1.42e01e"}let $;try{$=self.performance.now.bind(self.performance)}catch(d){B.debug("Unable to use Performance API on this environment"),$=at==null?void 0:at.Date.now}const Be=[{demux:bn,remux:c},{demux:ht,remux:An},{demux:pn,remux:An},{demux:jt,remux:An}];Be.splice(2,0,{demux:er,remux:An});class je{constructor(e,t,r,i,s){this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=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.vendor=i,this.id=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,r,i){const s=r.transmuxing;s.executeStart=$();let l=new Uint8Array(e);const{currentTransmuxState:x,transmuxConfig:j}=this;i&&(this.currentTransmuxState=i);const{contiguous:J,discontinuity:fe,trackSwitch:Oe,accurateTimeOffset:Ve,timeOffset:Je,initSegmentChange:ut}=i||x,{audioCodec:Ct,videoCodec:Ft,defaultInitPts:gr,duration:Or,initSegmentData:Fr}=j,Un=xt(l,t);if(Un&&Un.method==="AES-128"){const Ti=this.getDecrypter();if(Ti.isSync()){let qi=Ti.softwareDecrypt(l,Un.key.buffer,Un.iv.buffer);if(r.part>-1&&(qi=Ti.flush()),!qi)return s.executeEnd=$(),bt(r);l=new Uint8Array(qi)}else return this.decryptionPromise=Ti.webCryptoDecrypt(l,Un.key.buffer,Un.iv.buffer).then(qi=>{const di=this.push(qi,null,r);return this.decryptionPromise=null,di}),this.decryptionPromise}const an=this.needsProbing(fe,Oe);if(an){const Ti=this.configureTransmuxer(l);if(Ti)return B.warn(`[transmuxer] ${Ti.message}`),this.observer.emit(a.ERROR,a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,fatal:!1,error:Ti,reason:Ti.message}),s.executeEnd=$(),bt(r)}(fe||Oe||ut||an)&&this.resetInitSegment(Fr,Ct,Ft,Or,t),(fe||ut||an)&&this.resetInitialTimestamp(gr),J||this.resetContiguity();const mi=this.transmux(l,Un,Je,Ve,r),zn=this.currentTransmuxState;return zn.contiguous=!0,zn.discontinuity=!1,zn.trackSwitch=!1,s.executeEnd=$(),mi}flush(e){const t=e.transmuxing;t.executeStart=$();const{decrypter:r,currentTransmuxState:i,decryptionPromise:s}=this;if(s)return s.then(()=>this.flush(e));const l=[],{timeOffset:x}=i;if(r){const Oe=r.flush();Oe&&l.push(this.push(Oe,null,e))}const{demuxer:j,remuxer:J}=this;if(!j||!J)return t.executeEnd=$(),[bt(e)];const fe=j.flush(x);return Jt(fe)?fe.then(Oe=>(this.flushRemux(l,Oe,e),l)):(this.flushRemux(l,fe,e),l)}flushRemux(e,t,r){const{audioTrack:i,videoTrack:s,id3Track:l,textTrack:x}=t,{accurateTimeOffset:j,timeOffset:J}=this.currentTransmuxState;B.log(`[transmuxer.ts]: Flushed fragment ${r.sn}${r.part>-1?" p: "+r.part:""} of level ${r.level}`);const fe=this.remuxer.remux(i,s,l,x,J,j,!0,this.id);e.push({remuxResult:fe,chunkMeta:r}),r.transmuxing.executeEnd=$()}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,i,s){const{demuxer:l,remuxer:x}=this;!l||!x||(l.resetInitSegment(e,t,r,i),x.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,i,s){let l;return t&&t.method==="SAMPLE-AES"?l=this.transmuxSampleAes(e,t,r,i,s):l=this.transmuxUnencrypted(e,r,i,s),l}transmuxUnencrypted(e,t,r,i){const{audioTrack:s,videoTrack:l,id3Track:x,textTrack:j}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(s,l,x,j,t,r,!1,this.id),chunkMeta:i}}transmuxSampleAes(e,t,r,i,s){return this.demuxer.demuxSampleAes(e,t,r).then(l=>({remuxResult:this.remuxer.remux(l.audioTrack,l.videoTrack,l.id3Track,l.textTrack,r,i,!1,this.id),chunkMeta:s}))}configureTransmuxer(e){const{config:t,observer:r,typeSupported:i,vendor:s}=this;let l;for(let Ve=0,Je=Be.length;Ve<Je;Ve++){var x;if((x=Be[Ve].demux)!=null&&x.probe(e)){l=Be[Ve];break}}if(!l)return new Error("Failed to find demuxer by probing fragment data");const j=this.demuxer,J=this.remuxer,fe=l.remux,Oe=l.demux;(!J||!(J instanceof fe))&&(this.remuxer=new fe(r,t,i,s)),(!j||!(j instanceof Oe))&&(this.demuxer=new Oe(r,t,i),this.probe=Oe.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new Ol(this.config)),e}}function xt(d,e){let t=null;return d.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const bt=d=>({remuxResult:{},chunkMeta:d});function Jt(d){return"then"in d&&d.then instanceof Function}class Ar{constructor(e,t,r,i,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=i,this.defaultInitPts=s||null}}class xr{constructor(e,t,r,i,s,l){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=i,this.timeOffset=s,this.initSegmentChange=l}}var nn={exports:{}};(function(d){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function i(j,J,fe){this.fn=j,this.context=J,this.once=fe||!1}function s(j,J,fe,Oe,Ve){if(typeof fe!="function")throw new TypeError("The listener must be a function");var Je=new i(fe,Oe||j,Ve),ut=t?t+J:J;return j._events[ut]?j._events[ut].fn?j._events[ut]=[j._events[ut],Je]:j._events[ut].push(Je):(j._events[ut]=Je,j._eventsCount++),j}function l(j,J){--j._eventsCount===0?j._events=new r:delete j._events[J]}function x(){this._events=new r,this._eventsCount=0}x.prototype.eventNames=function(){var J=[],fe,Oe;if(this._eventsCount===0)return J;for(Oe in fe=this._events)e.call(fe,Oe)&&J.push(t?Oe.slice(1):Oe);return Object.getOwnPropertySymbols?J.concat(Object.getOwnPropertySymbols(fe)):J},x.prototype.listeners=function(J){var fe=t?t+J:J,Oe=this._events[fe];if(!Oe)return[];if(Oe.fn)return[Oe.fn];for(var Ve=0,Je=Oe.length,ut=new Array(Je);Ve<Je;Ve++)ut[Ve]=Oe[Ve].fn;return ut},x.prototype.listenerCount=function(J){var fe=t?t+J:J,Oe=this._events[fe];return Oe?Oe.fn?1:Oe.length:0},x.prototype.emit=function(J,fe,Oe,Ve,Je,ut){var Ct=t?t+J:J;if(!this._events[Ct])return!1;var Ft=this._events[Ct],gr=arguments.length,Or,Fr;if(Ft.fn){switch(Ft.once&&this.removeListener(J,Ft.fn,void 0,!0),gr){case 1:return Ft.fn.call(Ft.context),!0;case 2:return Ft.fn.call(Ft.context,fe),!0;case 3:return Ft.fn.call(Ft.context,fe,Oe),!0;case 4:return Ft.fn.call(Ft.context,fe,Oe,Ve),!0;case 5:return Ft.fn.call(Ft.context,fe,Oe,Ve,Je),!0;case 6:return Ft.fn.call(Ft.context,fe,Oe,Ve,Je,ut),!0}for(Fr=1,Or=new Array(gr-1);Fr<gr;Fr++)Or[Fr-1]=arguments[Fr];Ft.fn.apply(Ft.context,Or)}else{var Un=Ft.length,an;for(Fr=0;Fr<Un;Fr++)switch(Ft[Fr].once&&this.removeListener(J,Ft[Fr].fn,void 0,!0),gr){case 1:Ft[Fr].fn.call(Ft[Fr].context);break;case 2:Ft[Fr].fn.call(Ft[Fr].context,fe);break;case 3:Ft[Fr].fn.call(Ft[Fr].context,fe,Oe);break;case 4:Ft[Fr].fn.call(Ft[Fr].context,fe,Oe,Ve);break;default:if(!Or)for(an=1,Or=new Array(gr-1);an<gr;an++)Or[an-1]=arguments[an];Ft[Fr].fn.apply(Ft[Fr].context,Or)}}return!0},x.prototype.on=function(J,fe,Oe){return s(this,J,fe,Oe,!1)},x.prototype.once=function(J,fe,Oe){return s(this,J,fe,Oe,!0)},x.prototype.removeListener=function(J,fe,Oe,Ve){var Je=t?t+J:J;if(!this._events[Je])return this;if(!fe)return l(this,Je),this;var ut=this._events[Je];if(ut.fn)ut.fn===fe&&(!Ve||ut.once)&&(!Oe||ut.context===Oe)&&l(this,Je);else{for(var Ct=0,Ft=[],gr=ut.length;Ct<gr;Ct++)(ut[Ct].fn!==fe||Ve&&!ut[Ct].once||Oe&&ut[Ct].context!==Oe)&&Ft.push(ut[Ct]);Ft.length?this._events[Je]=Ft.length===1?Ft[0]:Ft:l(this,Je)}return this},x.prototype.removeAllListeners=function(J){var fe;return J?(fe=t?t+J:J,this._events[fe]&&l(this,fe)):(this._events=new r,this._eventsCount=0),this},x.prototype.off=x.prototype.removeListener,x.prototype.addListener=x.prototype.on,x.prefixed=t,x.EventEmitter=x,d.exports=x})(nn);var xn=nn.exports,Xr=we(xn);class dn{constructor(e,t,r,i){this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;const s=e.config;this.hls=e,this.id=t,this.useWorker=!!s.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;const l=(J,fe)=>{fe=fe||{},fe.frag=this.frag,fe.id=this.id,J===a.ERROR&&(this.error=fe.error),this.hls.trigger(J,fe)};this.observer=new Xr,this.observer.on(a.FRAG_DECRYPTED,l),this.observer.on(a.ERROR,l);const x=Xn(s.preferManagedMediaSource)||{isTypeSupported:()=>!1},j={mpeg:x.isTypeSupported("audio/mpeg"),mp3:x.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:x.isTypeSupported('audio/mp4; codecs="ac-3"')};if(this.useWorker&&typeof Worker!="undefined"&&(s.workerPath||ac())){try{s.workerPath?(B.log(`loading Web Worker ${s.workerPath} for "${t}"`),this.workerContext=sc(s.workerPath)):(B.log(`injecting Web Worker for "${t}"`),this.workerContext=du()),this.onwmsg=Oe=>this.onWorkerMessage(Oe);const{worker:fe}=this.workerContext;fe.addEventListener("message",this.onwmsg),fe.onerror=Oe=>{const Ve=new Error(`${Oe.message} (${Oe.filename}:${Oe.lineno})`);s.enableWorker=!1,B.warn(`Error in "${t}" Web Worker, fallback to inline`),this.hls.trigger(a.ERROR,{type:A.OTHER_ERROR,details:m.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Ve})},fe.postMessage({cmd:"init",typeSupported:j,vendor:"",id:t,config:JSON.stringify(s)})}catch(fe){B.warn(`Error setting up "${t}" Web Worker, fallback to inline`,fe),this.resetWorker(),this.error=null,this.transmuxer=new je(this.observer,j,s,"",t)}return}this.transmuxer=new je(this.observer,j,s,"",t)}resetWorker(){if(this.workerContext){const{worker:e,objectURL:t}=this.workerContext;t&&self.URL.revokeObjectURL(t),e.removeEventListener("message",this.onwmsg),e.onerror=null,e.terminate(),this.workerContext=null}}destroy(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}push(e,t,r,i,s,l,x,j,J,fe){var Oe,Ve;J.transmuxing.start=self.performance.now();const{transmuxer:Je}=this,ut=l?l.start:s.start,Ct=s.decryptdata,Ft=this.frag,gr=!(Ft&&s.cc===Ft.cc),Or=!(Ft&&J.level===Ft.level),Fr=Ft?J.sn-Ft.sn:-1,Un=this.part?J.part-this.part.index:-1,an=Fr===0&&J.id>1&&J.id===(Ft==null?void 0:Ft.stats.chunkCount),mi=!Or&&(Fr===1||Fr===0&&(Un===1||an&&Un<=0)),zn=self.performance.now();(Or||Fr||s.stats.parsing.start===0)&&(s.stats.parsing.start=zn),l&&(Un||!mi)&&(l.stats.parsing.start=zn);const Ti=!(Ft&&((Oe=s.initSegment)==null?void 0:Oe.url)===((Ve=Ft.initSegment)==null?void 0:Ve.url)),qi=new xr(gr,mi,j,Or,ut,Ti);if(!mi||gr||Ti){B.log(`[transmuxer-interface, ${s.type}]: Starting new transmux session for sn: ${J.sn} p: ${J.part} level: ${J.level} id: ${J.id}
|
|
|
discontinuity: ${gr}
|
|
|
trackSwitch: ${Or}
|
|
|
contiguous: ${mi}
|
|
|
accurateTimeOffset: ${j}
|
|
|
timeOffset: ${ut}
|
|
|
initSegmentChange: ${Ti}`);const di=new Ar(r,i,t,x,fe);this.configureTransmuxer(di)}if(this.frag=s,this.part=l,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:Ct,chunkMeta:J,state:qi},e instanceof ArrayBuffer?[e]:[]);else if(Je){const di=Je.push(e,Ct,J,qi);Jt(di)?(Je.async=!0,di.then(Ni=>{this.handleTransmuxComplete(Ni)}).catch(Ni=>{this.transmuxerError(Ni,J,"transmuxer-interface push error")})):(Je.async=!1,this.handleTransmuxComplete(di))}}flush(e){e.transmuxing.start=self.performance.now();const{transmuxer:t}=this;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(t){let r=t.flush(e);Jt(r)||t.async?(Jt(r)||(r=Promise.resolve(r)),r.then(s=>{this.handleFlushResult(s,e)}).catch(s=>{this.transmuxerError(s,e,"transmuxer-interface flush error")})):this.handleFlushResult(r,e)}}transmuxerError(e,t,r){this.hls&&(this.error=e,this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,t){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(t)}onWorkerMessage(e){const t=e.data;if(!(t!=null&&t.event)){B.warn(`worker message received with no ${t?"event name":"data"}`);return}const r=this.hls;if(this.hls)switch(t.event){case"init":{var i;const s=(i=this.workerContext)==null?void 0:i.objectURL;s&&self.URL.revokeObjectURL(s);break}case"transmuxComplete":{this.handleTransmuxComplete(t.data);break}case"flush":{this.onFlush(t.data);break}case"workerLog":B[t.data.logType]&&B[t.data.logType](t.data.message);break;default:{t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,r.trigger(t.event,t.data);break}}}configureTransmuxer(e){const{transmuxer:t}=this;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}function kn(d,e){if(d.length!==e.length)return!1;for(let t=0;t<d.length;t++)if(!Zn(d[t].attrs,e[t].attrs))return!1;return!0}function Zn(d,e,t){const r=d["STABLE-RENDITION-ID"];return r&&!t?r===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(i=>d[i]!==e[i])}function bi(d,e){return e.label.toLowerCase()===d.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(d.lang||"").toLowerCase())}const En=100;class pi extends Au{constructor(e,t,r){super(e,t,r,"[audio-stream-controller]",Ht.AUDIO),this.videoBuffer=null,this.videoTrackCC=-1,this.waitingVideoCC=-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.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(a.ERROR,this.onError,this),e.on(a.BUFFER_RESET,this.onBufferReset,this),e.on(a.BUFFER_CREATED,this.onBufferCreated,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(a.ERROR,this.onError,this),e.off(a.BUFFER_RESET,this.onBufferReset,this),e.off(a.BUFFER_CREATED,this.onBufferCreated,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this)}onInitPtsFound(e,{frag:t,id:r,initPTS:i,timescale:s}){if(r==="main"){const l=t.cc;this.initPTS[t.cc]={baseTime:i,timescale:s},this.log(`InitPTS for cc: ${l} found from main: ${i}`),this.videoTrackCC=l,this.state===li.WAITING_INIT_PTS&&this.tick()}}startLoad(e){if(!this.levels){this.startPosition=e,this.state=li.STOPPED;return}const t=this.lastCurrentTime;this.stopLoad(),this.setInterval(En),t>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t,this.state=li.IDLE):(this.loadedmetadata=!1,this.state=li.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}doTick(){switch(this.state){case li.IDLE:this.doTickIdle();break;case li.WAITING_TRACK:{var e;const{levels:r,trackId:i}=this,s=r==null||(e=r[i])==null?void 0:e.details;if(s){if(this.waitForCdnTuneIn(s))break;this.state=li.WAITING_INIT_PTS}break}case li.FRAG_LOADING_WAITING_RETRY:{var t;const r=performance.now(),i=this.retryDate;if(!i||r>=i||(t=this.media)!=null&&t.seeking){const{levels:s,trackId:l}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((s==null?void 0:s[l])||null),this.state=li.IDLE}break}case li.WAITING_INIT_PTS:{const r=this.waitingData;if(r){const{frag:i,part:s,cache:l,complete:x}=r;if(this.initPTS[i.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=li.FRAG_LOADING;const j=l.flush(),J={frag:i,part:s,payload:j,networkDetails:null};this._handleFragmentLoadProgress(J),x&&super._handleFragmentLoadComplete(J)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log(`Waiting fragment cc (${i.cc}) cancelled because video is at cc ${this.videoTrackCC}`),this.clearWaitingFragment();else{const j=this.getLoadPosition(),J=Ya.bufferInfo(this.mediaBuffer,j,this.config.maxBufferHole);zs(J.end,this.config.maxFragLookUpTolerance,i)<0&&(this.log(`Waiting fragment cc (${i.cc}) @ ${i.start} cancelled because another fragment at ${J.end} is needed`),this.clearWaitingFragment())}}else this.state=li.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=li.IDLE)}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){const{hls:e,levels:t,media:r,trackId:i}=this,s=e.config;if(!this.buffering||!r&&(this.startFragRequested||!s.startFragPrefetch)||!(t!=null&&t[i]))return;const l=t[i],x=l.details;if(!x||x.live&&this.levelLastLoaded!==l||this.waitForCdnTuneIn(x)){this.state=li.WAITING_TRACK;return}const j=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&j&&(this.bufferFlushed=!1,this.afterBufferFlushed(j,me.AUDIO,Ht.AUDIO));const J=this.getFwdBufferInfo(j,Ht.AUDIO);if(J===null)return;const{bufferedTrack:fe,switchingTrack:Oe}=this;if(!Oe&&this._streamEnded(J,x)){e.trigger(a.BUFFER_EOS,{type:"audio"}),this.state=li.ENDED;return}const Ve=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Ht.MAIN),Je=J.len,ut=this.getMaxBufferLength(Ve==null?void 0:Ve.len),Ct=x.fragments,Ft=Ct[0].start;let gr=this.flushing?this.getLoadPosition():J.end;if(Oe&&r){const an=this.getLoadPosition();fe&&!Zn(Oe.attrs,fe.attrs)&&(gr=an),x.PTSKnown&&an<Ft&&(J.end>Ft||J.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=Ft+.05)}if(Je>=ut&&!Oe&&gr<Ct[Ct.length-1].start)return;let Or=this.getNextFragment(gr,x),Fr=!1;if(Or&&this.isLoopLoading(Or,gr)&&(Fr=!!Or.gap,Or=this.getNextFragmentLoopLoading(Or,x,J,Ht.MAIN,ut)),!Or){this.bufferFlushed=!0;return}const Un=Ve&&Or.start>Ve.end+x.targetduration;if(Un||!(Ve!=null&&Ve.len)&&J.len){const an=this.getAppendedFrag(Or.start,Ht.MAIN);if(an===null||(Fr||(Fr=!!an.gap||!!Un&&Ve.len===0),Un&&!Fr||Fr&&J.nextStart&&J.nextStart<an.end))return}this.loadFragment(Or,l,gr)}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.min(Math.max(t,e),this.config.maxMaxBufferLength):t}onMediaDetaching(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,super.onMediaDetaching()}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(r=>new Wi(r))}onAudioTrackSwitching(e,t){const r=!!t.url;this.trackId=t.id;const{fragCurrent:i}=this;i&&(i.abortRequests(),this.removeUnbufferedFrags(i.start)),this.resetLoadingState(),r?this.setInterval(En):this.resetTransmuxer(),r?(this.switchingTrack=t,this.state=li.IDLE,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=li.STOPPED),this.tick()}onManifestLoading(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}onLevelLoaded(e,t){this.mainDetails=t.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(a.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}onAudioTrackLoaded(e,t){var r;if(this.mainDetails==null){this.cachedTrackLoadedData=t;return}const{levels:i}=this,{details:s,id:l}=t;if(!i){this.warn(`Audio tracks were reset while loading level ${l}`);return}this.log(`Audio track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`);const x=i[l];let j=0;if(s.live||(r=x.details)!=null&&r.live){this.checkLiveUpdate(s);const fe=this.mainDetails;if(s.deltaUpdateFailed||!fe)return;if(!x.details&&s.hasProgramDateTime&&fe.hasProgramDateTime)Gs(s,fe),j=s.fragments[0].start;else{var J;j=this.alignPlaylists(s,x.details,(J=this.levelLastLoaded)==null?void 0:J.details)}}x.details=s,this.levelLastLoaded=x,!this.startFragRequested&&(this.mainDetails||!s.live)&&this.setStartPosition(this.mainDetails||s,j),this.state===li.WAITING_TRACK&&!this.waitForCdnTuneIn(s)&&(this.state=li.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,part:i,payload:s}=e,{config:l,trackId:x,levels:j}=this;if(!j){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 J=j[x];if(!J){this.warn("Audio track is undefined on fragment load progress");return}const fe=J.details;if(!fe){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const Oe=l.defaultAudioCodec||J.audioCodec||"mp4a.40.2";let Ve=this.transmuxer;Ve||(Ve=this.transmuxer=new dn(this.hls,Ht.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const Je=this.initPTS[r.cc],ut=(t=r.initSegment)==null?void 0:t.data;if(Je!==void 0){const Ft=i?i.index:-1,gr=Ft!==-1,Or=new bl(r.level,r.sn,r.stats.chunkCount,s.byteLength,Ft,gr);Ve.push(s,ut,Oe,"",r,i,fe.totalduration,!1,Or,Je)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${fe.startSN} ,${fe.endSN}],track ${x}`);const{cache:Ct}=this.waitingData=this.waitingData||{frag:r,part:i,cache:new Wl,complete:!1};Ct.push(new Uint8Array(s)),this.waitingVideoCC=this.videoTrackCC,this.state=li.WAITING_INIT_PTS}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}onBufferCreated(e,t){const r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}onFragBuffered(e,t){const{frag:r,part:i}=t;if(r.type!==Ht.AUDIO){if(!this.loadedmetadata&&r.type===Ht.MAIN){const s=this.videoBuffer||this.media;s&&Ya.getBuffered(s).length&&(this.loadedmetadata=!0)}return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(r.sn!=="initSegment"){this.fragPrevious=r;const s=this.switchingTrack;s&&(this.bufferedTrack=s,this.switchingTrack=null,this.hls.trigger(a.AUDIO_TRACK_SWITCHED,ie({},s)))}this.fragBufferedComplete(r,i)}onError(e,t){var r;if(t.fatal){this.state=li.ERROR;return}switch(t.details){case m.FRAG_GAP:case m.FRAG_PARSING_ERROR:case m.FRAG_DECRYPT_ERROR:case m.FRAG_LOAD_ERROR:case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_ERROR:case m.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ht.AUDIO,t);break;case m.AUDIO_TRACK_LOAD_ERROR:case m.AUDIO_TRACK_LOAD_TIMEOUT:case m.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===li.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===vn.AUDIO_TRACK&&(this.state=li.IDLE);break;case m.BUFFER_APPEND_ERROR:case m.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="audio")return;if(t.details===m.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case m.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==me.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==me.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===li.ENDED&&(this.state=li.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,Ht.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const r="audio",{hls:i}=this,{remuxResult:s,chunkMeta:l}=e,x=this.getCurrentContext(l);if(!x){this.resetWhenMissingContext(l);return}const{frag:j,part:J,level:fe}=x,{details:Oe}=fe,{audio:Ve,text:Je,id3:ut,initSegment:Ct}=s;if(this.fragContextChanged(j)||!Oe){this.fragmentTracker.removeFragment(j);return}if(this.state=li.PARSING,this.switchingTrack&&Ve&&this.completeAudioSwitch(this.switchingTrack),Ct!=null&&Ct.tracks){const Ft=j.initSegment||j;this._bufferInitSegment(fe,Ct.tracks,Ft,l),i.trigger(a.FRAG_PARSING_INIT_SEGMENT,{frag:Ft,id:r,tracks:Ct.tracks})}if(Ve){const{startPTS:Ft,endPTS:gr,startDTS:Or,endDTS:Fr}=Ve;J&&(J.elementaryStreams[me.AUDIO]={startPTS:Ft,endPTS:gr,startDTS:Or,endDTS:Fr}),j.setElementaryStreamInfo(me.AUDIO,Ft,gr,Or,Fr),this.bufferFragmentData(Ve,j,J,l)}if(ut!=null&&(t=ut.samples)!=null&&t.length){const Ft=n({id:r,frag:j,details:Oe},ut);i.trigger(a.FRAG_PARSING_METADATA,Ft)}if(Je){const Ft=n({id:r,frag:j,details:Oe},Je);i.trigger(a.FRAG_PARSING_USERDATA,Ft)}}_bufferInitSegment(e,t,r,i){if(this.state!==li.PARSING)return;t.video&&delete t.video;const s=t.audio;if(!s)return;s.id="audio";const l=e.audioCodec;this.log(`Init audio buffer, container:${s.container}, codecs[level/parsed]=[${l}/${s.codec}]`),l&&l.split(",").length===1&&(s.levelCodec=l),this.hls.trigger(a.BUFFER_CODECS,t);const x=s.initSegment;if(x!=null&&x.byteLength){const j={type:"audio",frag:r,part:null,chunkMeta:i,parent:r.type,data:x};this.hls.trigger(a.BUFFER_APPENDING,j)}this.tickImmediate()}loadFragment(e,t,r){const i=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||i===Ea.NOT_LOADED||i===Ea.PARTIAL){var s;if(e.sn==="initSegment")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=li.WAITING_INIT_PTS;const l=this.mainDetails;l&&l.fragments[0].start!==t.details.fragments[0].start&&Gs(t.details,l)}else this.startFragRequested=!0,super.loadFragment(e,t,r)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){const{media:t,bufferedTrack:r}=this,i=r==null?void 0:r.attrs,s=e.attrs;t&&i&&(i.CHANNELS!==s.CHANNELS||r.name!==e.name||r.lang!==e.lang)&&(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(a.AUDIO_TRACK_SWITCHED,ie({},e))}}class Ji extends Ra{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(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVEL_LOADING,this.onLevelLoading,this),e.off(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(a.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(a.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:i,details:s}=t,l=this.tracksInGroup[r];if(!l||l.groupId!==i){this.warn(`Audio track with id:${r} and group:${i} not found in active group ${l==null?void 0:l.groupId}`);return}const x=l.details;l.details=t.details,this.log(`Audio track ${r} "${l.name}" lang:${l.lang} group:${i} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,x)}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,i=this.groupIds;let s=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(x=>(i==null?void 0:i.indexOf(x))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const x=this.tracks.filter(Ve=>!r||r.indexOf(Ve.groupId)!==-1);if(x.length)this.selectDefaultTrack&&!x.some(Ve=>Ve.default)&&(this.selectDefaultTrack=!1),x.forEach((Ve,Je)=>{Ve.id=Je});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=x;const j=this.hls.config.audioPreference;if(!s&&j){const Ve=fo(j,x,ya);if(Ve>-1)s=x[Ve];else{const Je=fo(j,this.tracks);s=this.tracks[Je]}}let J=this.findTrackId(s);J===-1&&s&&(J=this.findTrackId(null));const fe={audioTracks:x};this.log(`Updating audio tracks, ${x.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(a.AUDIO_TRACKS_UPDATED,fe);const Oe=this.trackId;if(J!==-1&&Oe===-1)this.setAudioTrack(J);else if(x.length&&Oe===-1){var l;const Ve=new Error(`No audio track selected for current audio group-ID(s): ${(l=this.groupIds)==null?void 0:l.join(",")} track count: ${x.length}`);this.warn(Ve.message),this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:Ve})}}else this.shouldReloadPlaylist(s)&&this.setAudioTrack(this.trackId)}onError(e,t){t.fatal||!t.context||t.context.type===vn.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&(this.requestScheduled=-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 i=this.currentTrack;if(i&&So(e,i,ya))return i;const s=fo(e,this.tracksInGroup,ya);if(s>-1){const l=this.tracksInGroup[s];return this.setAudioTrack(s),l}else if(i){let l=t.loadLevel;l===-1&&(l=t.firstAutoLevel);const x=to(e,t.levels,r,l,ya);if(x===-1)return null;t.nextLoadLevel=x}if(e.channels||e.audioCodec){const l=fo(e,r);if(l>-1)return r[l]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=t[e],s=i.details&&!i.details.live;if(e===this.trackId&&i===r&&s||(this.log(`Switching to audio-track ${e} "${i.name}" lang:${i.lang} group:${i.groupId} channels:${i.channels}`),this.trackId=e,this.currentTrack=i,this.hls.trigger(a.AUDIO_TRACK_SWITCHING,ie({},i)),s))return;const l=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(l)}findTrackId(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const i=t[r];if(!(this.selectDefaultTrack&&!i.default)&&(!e||So(e,i,ya)))return r}if(e){const{name:r,lang:i,assocLang:s,characteristics:l,audioCodec:x,channels:j}=e;for(let J=0;J<t.length;J++){const fe=t[J];if(So({name:r,lang:i,assocLang:s,characteristics:l,audioCodec:x,channels:j},fe,ya))return J}for(let J=0;J<t.length;J++){const fe=t[J];if(Zn(e.attrs,fe.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return J}for(let J=0;J<t.length;J++){const fe=t[J];if(Zn(e.attrs,fe.attrs,["LANGUAGE"]))return J}}return-1}loadPlaylist(e){const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){super.loadPlaylist();const r=t.id,i=t.groupId;let s=t.url;if(e)try{s=e.addDirectives(s)}catch(l){this.warn(`Could not construct new URL with HLS Delivery Directives: ${l}`)}this.log(`loading audio-track playlist ${r} "${t.name}" lang:${t.lang} group:${i}`),this.clearTimer(),this.hls.trigger(a.AUDIO_TRACK_LOADING,{url:s,id:r,groupId:i,deliveryDirectives:e||null})}}}const Ki=500;class Sa extends Au{constructor(e,t,r){super(e,t,r,"[subtitle-stream-controller]",Ht.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this._registerListeners()}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.ERROR,this.onError,this),e.on(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(a.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(a.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.ERROR,this.onError,this),e.off(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(a.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(a.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this)}startLoad(e){this.stopLoad(),this.state=li.IDLE,this.setInterval(Ki),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}onManifestLoading(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}onMediaDetaching(){this.tracksBuffered=[],super.onMediaDetaching()}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:r,success:i}=t;if(this.fragPrevious=r,this.state=li.IDLE,!i)return;const s=this.tracksBuffered[this.currentTrackId];if(!s)return;let l;const x=r.start;for(let J=0;J<s.length;J++)if(x>=s[J].start&&x<=s[J].end){l=s[J];break}const j=r.start+r.duration;l?l.end=j:(l={start:x,end:j},s.push(l)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null)}onBufferFlushing(e,t){const{startOffset:r,endOffset:i}=t;if(r===0&&i!==Number.POSITIVE_INFINITY){const s=i-1;if(s<=0)return;t.endOffsetSubtitles=Math.max(0,s),this.tracksBuffered.forEach(l=>{for(let x=0;x<l.length;){if(l[x].end<=s){l.shift();continue}else if(l[x].start<s)l[x].start=s;else break;x++}}),this.fragmentTracker.removeFragmentsInRange(r,s,Ht.SUBTITLE)}}onFragBuffered(e,t){if(!this.loadedmetadata&&t.frag.type===Ht.MAIN){var r;(r=this.media)!=null&&r.buffered.length&&(this.loadedmetadata=!0)}}onError(e,t){const r=t.frag;(r==null?void 0:r.type)===Ht.SUBTITLE&&(t.details===m.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==li.STOPPED&&(this.state=li.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&kn(this.levels,t)){this.levels=t.map(r=>new Wi(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const i=new Wi(r);return this.tracksBuffered[i.id]=[],i}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Ht.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 i=this.levels[this.currentTrackId];i!=null&&i.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,i&&this.setInterval(Ki)}onSubtitleTrackLoaded(e,t){var r;const{currentTrackId:i,levels:s}=this,{details:l,id:x}=t;if(!s){this.warn(`Subtitle tracks were reset while loading level ${x}`);return}const j=s[x];if(x>=s.length||!j)return;this.log(`Subtitle track ${x} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""},duration:${l.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let J=0;if(l.live||(r=j.details)!=null&&r.live){const Oe=this.mainDetails;if(l.deltaUpdateFailed||!Oe)return;const Ve=Oe.fragments[0];if(!j.details)l.hasProgramDateTime&&Oe.hasProgramDateTime?(Gs(l,Oe),J=l.fragments[0].start):Ve&&(J=Ve.start,Yn(l,J));else{var fe;J=this.alignPlaylists(l,j.details,(fe=this.levelLastLoaded)==null?void 0:fe.details),J===0&&Ve&&(J=Ve.start,Yn(l,J))}}j.details=l,this.levelLastLoaded=j,x===i&&(!this.startFragRequested&&(this.mainDetails||!l.live)&&this.setStartPosition(this.mainDetails||l,J),this.tick(),l.live&&!this.fragCurrent&&this.media&&this.state===li.IDLE&&(go(null,l.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),j.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:r}=e,i=t.decryptdata,s=this.hls;if(!this.fragContextChanged(t)&&r&&r.byteLength>0&&i!=null&&i.key&&i.iv&&i.method==="AES-128"){const l=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer).catch(x=>{throw s.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.FRAG_DECRYPT_ERROR,fatal:!1,error:x,reason:x.message,frag:t}),x}).then(x=>{const j=performance.now();s.trigger(a.FRAG_DECRYPTED,{frag:t,payload:x,stats:{tstart:l,tdecrypt:j}})}).catch(x=>{this.warn(`${x.name}: ${x.message}`),this.state=li.IDLE})}}doTick(){if(!this.media){this.state=li.IDLE;return}if(this.state===li.IDLE){const{currentTrackId:e,levels:t}=this,r=t==null?void 0:t[e];if(!r||!t.length||!r.details)return;const{config:i}=this,s=this.getLoadPosition(),l=Ya.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],s,i.maxBufferHole),{end:x,len:j}=l,J=this.getFwdBufferInfo(this.media,Ht.MAIN),fe=r.details,Oe=this.getMaxBufferLength(J==null?void 0:J.len)+fe.levelTargetDuration;if(j>Oe)return;const Ve=fe.fragments,Je=Ve.length,ut=fe.edge;let Ct=null;const Ft=this.fragPrevious;if(x<ut){const gr=i.maxFragLookUpTolerance,Or=x>ut-gr?0:gr;Ct=go(Ft,Ve,Math.max(Ve[0].start,x),Or),!Ct&&Ft&&Ft.start<Ve[0].start&&(Ct=Ve[0])}else Ct=Ve[Je-1];if(!Ct)return;if(Ct=this.mapToInitFragWhenRequired(Ct),Ct.sn!=="initSegment"){const gr=Ct.sn-fe.startSN,Or=Ve[gr-1];Or&&Or.cc===Ct.cc&&this.fragmentTracker.getState(Or)===Ea.NOT_LOADED&&(Ct=Or)}this.fragmentTracker.getState(Ct)===Ea.NOT_LOADED&&this.loadFragment(Ct,r,x)}}getMaxBufferLength(e){const t=super.getMaxBufferLength();return e?Math.max(t,e):t}loadFragment(e,t,r){this.fragCurrent=e,e.sn==="initSegment"?this._loadInitSegment(e,t):(this.startFragRequested=!0,super.loadFragment(e,t,r))}get mediaBufferTimeRanges(){return new Ia(this.tracksBuffered[this.currentTrackId]||[])}}class Ia{constructor(e){this.buffered=void 0;const t=(r,i,s)=>{if(i=i>>>0,i>s-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${i}) is greater than the maximum bound (${s})`);return e[i][r]};this.buffered={get length(){return e.length},end(r){return t("end",r,e.length)},start(r){return t("start",r,e.length)}}}}class Xi extends Ra{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.asyncPollTrackChange=()=>this.pollTrackChange(0),this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const r=Si(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 i=this.findTrackForTextTrack(t);this.subtitleTrack!==i&&this.setSubtitleTrack(i)},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(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVEL_LOADING,this.onLevelLoading,this),e.off(a.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(a.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(a.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(){if(!this.media)return;self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),Si(this.media.textTracks).forEach(t=>{va(t)}),this.subtitleTrack=-1,this.media=null}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:i,details:s}=t,l=this.tracksInGroup[r];if(!l||l.groupId!==i){this.warn(`Subtitle track with id:${r} and group:${i} not found in active group ${l==null?void 0:l.groupId}`);return}const x=l.details;l.details=t.details,this.log(`Subtitle track ${r} "${l.name}" lang:${l.lang} group:${i} loaded [${s.startSN}-${s.endSN}]`),r===this.trackId&&this.playlistLoaded(r,t,x)}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,i=this.groupIds;let s=this.currentTrack;if(!r||(i==null?void 0:i.length)!==(r==null?void 0:r.length)||r!=null&&r.some(l=>(i==null?void 0:i.indexOf(l))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(fe=>!r||r.indexOf(fe.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(fe=>fe.default)&&(this.selectDefaultTrack=!1),l.forEach((fe,Oe)=>{fe.id=Oe});else if(!s&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const x=this.hls.config.subtitlePreference;if(!s&&x){this.selectDefaultTrack=!1;const fe=fo(x,l);if(fe>-1)s=l[fe];else{const Oe=fo(x,this.tracks);s=this.tracks[Oe]}}let j=this.findTrackId(s);j===-1&&s&&(j=this.findTrackId(null));const J={subtitleTracks:l};this.log(`Updating subtitle tracks, ${l.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(a.SUBTITLE_TRACKS_UPDATED,J),j!==-1&&this.trackId===-1&&this.setSubtitleTrack(j)}else this.shouldReloadPlaylist(s)&&this.setSubtitleTrack(this.trackId)}findTrackId(e){const t=this.tracksInGroup,r=this.selectDefaultTrack;for(let i=0;i<t.length;i++){const s=t[i];if(!(r&&!s.default||!r&&!e)&&(!e||So(s,e)))return i}if(e){for(let i=0;i<t.length;i++){const s=t[i];if(Zn(e.attrs,s.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return i}for(let i=0;i<t.length;i++){const s=t[i];if(Zn(e.attrs,s.attrs,["LANGUAGE"]))return i}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const i=t[r];if(bi(i,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===vn.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){const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const r=this.currentTrack;if(r&&So(e,r))return r;const i=fo(e,this.tracksInGroup);if(i>-1){const s=this.tracksInGroup[i];return this.setSubtitleTrack(i),s}else{if(r)return null;{const s=fo(e,t);if(s>-1)return t[s]}}}}return null}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;if(this.shouldLoadPlaylist(t)&&t){const r=t.id,i=t.groupId;let s=t.url;if(e)try{s=e.addDirectives(s)}catch(l){this.warn(`Could not construct new URL with HLS Delivery Directives: ${l}`)}this.log(`Loading subtitle playlist for id ${r}`),this.hls.trigger(a.SUBTITLE_TRACK_LOADING,{url:s,id:r,groupId:i,deliveryDirectives:e||null})}}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=Si(e.textTracks),r=this.currentTrack;let i;if(r&&(i=t.filter(s=>bi(r,s))[0],i||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(t).forEach(s=>{s.mode!=="disabled"&&s!==i&&(s.mode="disabled")}),i){const s=this.subtitleDisplay?"showing":"hidden";i.mode!==s&&(i.mode=s)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!o(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.clearTimer(),this.selectDefaultTrack=!1;const r=this.currentTrack,i=t[e]||null;if(this.trackId=e,this.currentTrack=i,this.toggleTrackModes(),!i){this.hls.trigger(a.SUBTITLE_TRACK_SWITCH,{id:e});return}const s=!!i.details&&!i.details.live;if(e===this.trackId&&i===r&&s)return;this.log(`Switching to subtitle-track ${e}`+(i?` "${i.name}" lang:${i.lang} group:${i.groupId}`:""));const{id:l,groupId:x="",name:j,type:J,url:fe}=i;this.hls.trigger(a.SUBTITLE_TRACK_SWITCH,{id:l,groupId:x,name:j,type:J,url:fe});const Oe=this.switchParams(i.url,r==null?void 0:r.details,i.details);this.loadPlaylist(Oe)}}class Ta{constructor(e){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=e}append(e,t,r){const i=this.queues[t];i.push(e),i.length===1&&!r&&this.executeNext(t)}insertAbort(e,t){this.queues[t].unshift(e),this.executeNext(t)}appendBlocker(e){let t;const r=new Promise(s=>{t=s}),i={execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};return this.append(i,e),r}executeNext(e){const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(i){B.warn(`[buffer-operation-queue]: Exception executing "${e}" SourceBuffer operation: ${i}`),r.onError(i);const s=this.buffers[e];s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues[e].shift(),this.executeNext(e)}current(e){return this.queues[e][0]}}const Ba=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/;class si{constructor(e){this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=r=>{this.hls&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=()=>{const{media:r,mediaSource:i}=this;this.log("Media source opened"),r&&(r.removeEventListener("emptied",this._onMediaEmptied),this.updateMediaElementDuration(),this.hls.trigger(a.MEDIA_ATTACHED,{media:r,mediaSource:i})),i&&i.removeEventListener("sourceopen",this._onMediaSourceOpen),this.checkPendingTracks()},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:i}=this;r!==i&&B.error(`Media element src was set while attaching MediaSource (${i} > ${r})`)},this.hls=e;const t="[buffer-controller]";this.appendSource=Hi(Xn(e.config.preferManagedMediaSource)),this.log=B.log.bind(B,t),this.warn=B.warn.bind(B,t),this.error=B.error.bind(B,t),this._initSourceBuffer(),this.registerListeners()}hasSourceTypes(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.BUFFER_RESET,this.onBufferReset,this),e.on(a.BUFFER_APPENDING,this.onBufferAppending,this),e.on(a.BUFFER_CODECS,this.onBufferCodecs,this),e.on(a.BUFFER_EOS,this.onBufferEos,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(a.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(a.FRAG_PARSED,this.onFragParsed,this),e.on(a.FRAG_CHANGED,this.onFragChanged,this)}unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.BUFFER_RESET,this.onBufferReset,this),e.off(a.BUFFER_APPENDING,this.onBufferAppending,this),e.off(a.BUFFER_CODECS,this.onBufferCodecs,this),e.off(a.BUFFER_EOS,this.onBufferEos,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(a.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(a.FRAG_PARSED,this.onFragParsed,this),e.off(a.FRAG_CHANGED,this.onFragChanged,this)}_initSourceBuffer(){this.sourceBuffer={},this.operationQueue=new Ta(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}onManifestLoading(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=r,this.log(`${this.bufferCodecEventsExpected} bufferCodec event(s) expected`)}onMediaAttaching(e,t){const r=this.media=t.media,i=Xn(this.appendSource);if(r&&i){var s;const l=this.mediaSource=new i;this.log(`created media source: ${(s=l.constructor)==null?void 0:s.name}`),l.addEventListener("sourceopen",this._onMediaSourceOpen),l.addEventListener("sourceended",this._onMediaSourceEnded),l.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(l.addEventListener("startstreaming",this._onStartStreaming),l.addEventListener("endstreaming",this._onEndStreaming));const x=this._objectUrl=self.URL.createObjectURL(l);if(this.appendSource)try{r.removeAttribute("src");const j=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||j&&l instanceof j,Ha(r),os(r,x),r.load()}catch(j){r.src=x}else r.src=x;r.addEventListener("emptied",this._onMediaEmptied)}}onMediaDetaching(){const{media:e,mediaSource:t,_objectUrl:r}=this;if(t){if(this.log("media source detaching"),t.readyState==="open")try{t.endOfStream()}catch(i){this.warn(`onMediaDetaching: ${i.message} while calling endOfStream`)}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),r&&self.URL.revokeObjectURL(r),this.mediaSrc===r?(e.removeAttribute("src"),this.appendSource&&Ha(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(a.MEDIA_DETACHED,void 0)}onBufferReset(){this.getSourceBufferTypes().forEach(e=>{this.resetBuffer(e)}),this._initSourceBuffer(),this.hls.resumeBuffering()}resetBuffer(e){const t=this.sourceBuffer[e];try{if(t){var r;this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t)}}catch(i){this.warn(`onBufferReset ${e}`,i)}}onBufferCodecs(e,t){const r=this.getSourceBufferTypes().length,i=Object.keys(t);if(i.forEach(l=>{if(r){const j=this.tracks[l];if(j&&typeof j.buffer.changeType=="function"){var x;const{id:J,codec:fe,levelCodec:Oe,container:Ve,metadata:Je}=t[l],ut=oi(j.codec,j.levelCodec),Ct=ut==null?void 0:ut.replace(Ba,"$1");let Ft=oi(fe,Oe);const gr=(x=Ft)==null?void 0:x.replace(Ba,"$1");if(Ft&&Ct!==gr){l.slice(0,5)==="audio"&&(Ft=qn(Ft,this.appendSource));const Or=`${Ve};codecs=${Ft}`;this.appendChangeType(l,Or),this.log(`switching codec ${ut} to ${Ft}`),this.tracks[l]={buffer:j.buffer,codec:fe,container:Ve,levelCodec:Oe,metadata:Je,id:J}}}}else this.pendingTracks[l]=t[l]}),r)return;const s=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==s&&(this.log(`${s} bufferCodec event(s) expected ${i.join(",")}`),this.bufferCodecEventsExpected=s),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}appendChangeType(e,t){const{operationQueue:r}=this,i={execute:()=>{const s=this.sourceBuffer[e];s&&(this.log(`changing ${e} sourceBuffer type to ${t}`),s.changeType(t)),r.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};r.append(i,e,!!this.pendingTracks[e])}onBufferAppending(e,t){const{hls:r,operationQueue:i,tracks:s}=this,{data:l,type:x,frag:j,part:J,chunkMeta:fe}=t,Oe=fe.buffering[x],Ve=self.performance.now();Oe.start=Ve;const Je=j.stats.buffering,ut=J?J.stats.buffering:null;Je.start===0&&(Je.start=Ve),ut&&ut.start===0&&(ut.start=Ve);const Ct=s.audio;let Ft=!1;x==="audio"&&(Ct==null?void 0:Ct.container)==="audio/mpeg"&&(Ft=!this.lastMpegAudioChunk||fe.id===1||this.lastMpegAudioChunk.sn!==fe.sn,this.lastMpegAudioChunk=fe);const gr=j.start,Or={execute:()=>{if(Oe.executeStart=self.performance.now(),Ft){const Fr=this.sourceBuffer[x];if(Fr){const Un=gr-Fr.timestampOffset;Math.abs(Un)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${gr} (delta: ${Un}) sn: ${j.sn})`),Fr.timestampOffset=gr)}}this.appendExecutor(l,x)},onStart:()=>{},onComplete:()=>{const Fr=self.performance.now();Oe.executeEnd=Oe.end=Fr,Je.first===0&&(Je.first=Fr),ut&&ut.first===0&&(ut.first=Fr);const{sourceBuffer:Un}=this,an={};for(const mi in Un)an[mi]=Ya.getBuffered(Un[mi]);this.appendErrors[x]=0,x==="audio"||x==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(a.BUFFER_APPENDED,{type:x,frag:j,part:J,chunkMeta:fe,parent:j.type,timeRanges:an})},onError:Fr=>{const Un={type:A.MEDIA_ERROR,parent:j.type,details:m.BUFFER_APPEND_ERROR,sourceBufferName:x,frag:j,part:J,chunkMeta:fe,error:Fr,err:Fr,fatal:!1};if(Fr.code===DOMException.QUOTA_EXCEEDED_ERR)Un.details=m.BUFFER_FULL_ERROR;else{const an=++this.appendErrors[x];Un.details=m.BUFFER_APPEND_ERROR,this.warn(`Failed ${an}/${r.config.appendErrorMaxRetry} times to append segment in "${x}" sourceBuffer`),an>=r.config.appendErrorMaxRetry&&(Un.fatal=!0)}r.trigger(a.ERROR,Un)}};i.append(Or,x,!!this.pendingTracks[x])}onBufferFlushing(e,t){const{operationQueue:r}=this,i=s=>({execute:this.removeExecutor.bind(this,s,t.startOffset,t.endOffset),onStart:()=>{},onComplete:()=>{this.hls.trigger(a.BUFFER_FLUSHED,{type:s})},onError:l=>{this.warn(`Failed to remove from ${s} SourceBuffer`,l)}});t.type?r.append(i(t.type),t.type):this.getSourceBufferTypes().forEach(s=>{r.append(i(s),s)})}onFragParsed(e,t){const{frag:r,part:i}=t,s=[],l=i?i.elementaryStreams:r.elementaryStreams;l[me.AUDIOVIDEO]?s.push("audiovideo"):(l[me.AUDIO]&&s.push("audio"),l[me.VIDEO]&&s.push("video"));const x=()=>{const j=self.performance.now();r.stats.buffering.end=j,i&&(i.stats.buffering.end=j);const J=i?i.stats:r.stats;this.hls.trigger(a.FRAG_BUFFERED,{frag:r,part:i,stats:J,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(x,s)}onFragChanged(e,t){this.trimBuffers()}onBufferEos(e,t){this.getSourceBufferTypes().reduce((i,s)=>{const l=this.sourceBuffer[s];return l&&(!t.type||t.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} sourceBuffer now EOS`))),i&&!!(!l||l.ended)},!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers(()=>{this.getSourceBufferTypes().forEach(s=>{const l=this.sourceBuffer[s];l&&(l.ending=!1)});const{mediaSource:i}=this;if(!i||i.readyState!=="open"){i&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${i.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),i.endOfStream()}))}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}trimBuffers(){const{hls:e,details:t,media:r}=this;if(!r||t===null||!this.getSourceBufferTypes().length)return;const s=e.config,l=r.currentTime,x=t.levelTargetDuration,j=t.live&&s.liveBackBufferLength!==null?s.liveBackBufferLength:s.backBufferLength;if(o(j)&&j>0){const J=Math.max(j,x),fe=Math.floor(l/x)*x-J;this.flushBackBuffer(l,x,fe)}if(o(s.frontBufferFlushThreshold)&&s.frontBufferFlushThreshold>0){const J=Math.max(s.maxBufferLength,s.frontBufferFlushThreshold),fe=Math.max(J,x),Oe=Math.floor(l/x)*x+fe;this.flushFrontBuffer(l,x,Oe)}}flushBackBuffer(e,t,r){const{details:i,sourceBuffer:s}=this;this.getSourceBufferTypes().forEach(x=>{const j=s[x];if(j){const J=Ya.getBuffered(j);if(J.length>0&&r>J.start(0)){if(this.hls.trigger(a.BACK_BUFFER_REACHED,{bufferEnd:r}),i!=null&&i.live)this.hls.trigger(a.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(j.ended&&J.end(J.length-1)-e<t*2){this.log(`Cannot flush ${x} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(a.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:x})}}})}flushFrontBuffer(e,t,r){const{sourceBuffer:i}=this;this.getSourceBufferTypes().forEach(l=>{const x=i[l];if(x){const j=Ya.getBuffered(x),J=j.length;if(J<2)return;const fe=j.start(J-1),Oe=j.end(J-1);if(r>fe||e>=fe&&e<=Oe)return;if(x.ended&&e-Oe<2*t){this.log(`Cannot flush ${l} front buffer while SourceBuffer is in ended state`);return}this.hls.trigger(a.BUFFER_FLUSHING,{startOffset:fe,endOffset:1/0,type:l})}})}updateMediaElementDuration(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;const{details:e,hls:t,media:r,mediaSource:i}=this,s=e.fragments[0].start+e.totalduration,l=r.duration,x=o(i.duration)?i.duration:0;e.live&&t.config.liveDurationInfinity?(i.duration=1/0,this.updateSeekableRange(e)):(s>x&&s>l||!o(l))&&(this.log(`Updating Media Source duration to ${s.toFixed(3)}`),i.duration=s)}updateSeekableRange(e){const t=this.mediaSource,r=e.fragments;if(r.length&&e.live&&t!=null&&t.setLiveSeekableRange){const s=Math.max(0,r[0].start),l=Math.max(s,s+e.totalduration);this.log(`Media Source duration is set to ${t.duration}. Setting seekable range to ${s}-${l}.`),t.setLiveSeekableRange(s,l)}}checkPendingTracks(){const{bufferCodecEventsExpected:e,operationQueue:t,pendingTracks:r}=this,i=Object.keys(r).length;if(i&&(!e||i===2||"audiovideo"in r)){this.createSourceBuffers(r),this.pendingTracks={};const s=this.getSourceBufferTypes();if(s.length)this.hls.trigger(a.BUFFER_CREATED,{tracks:this.tracks}),s.forEach(l=>{t.executeNext(l)});else{const l=new Error("could not create source buffer for media codec(s)");this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:l,reason:l.message})}}}createSourceBuffers(e){const{sourceBuffer:t,mediaSource:r}=this;if(!r)throw Error("createSourceBuffers called when mediaSource was null");for(const s in e)if(!t[s]){var i;const l=e[s];if(!l)throw Error(`source buffer exists for track ${s}, however track does not`);let x=((i=l.levelCodec)==null?void 0:i.indexOf(","))===-1?l.levelCodec:l.codec;x&&s.slice(0,5)==="audio"&&(x=qn(x,this.appendSource));const j=`${l.container};codecs=${x}`;this.log(`creating sourceBuffer(${j})`);try{const J=t[s]=r.addSourceBuffer(j),fe=s;this.addBufferListener(fe,"updatestart",this._onSBUpdateStart),this.addBufferListener(fe,"updateend",this._onSBUpdateEnd),this.addBufferListener(fe,"error",this._onSBUpdateError),this.appendSource&&this.addBufferListener(fe,"bufferedchange",(Oe,Ve)=>{const Je=Ve.removedRanges;Je!=null&&Je.length&&this.hls.trigger(a.BUFFER_FLUSHED,{type:s})}),this.tracks[s]={buffer:J,codec:x,container:l.container,levelCodec:l.levelCodec,metadata:l.metadata,id:l.id}}catch(J){this.error(`error while trying to add sourceBuffer: ${J.message}`),this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:J,sourceBufferName:s,mimeType:j})}}}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{operationQueue:t}=this;t.current(e).onStart()}_onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const{operationQueue:r}=this;r.current(e).onComplete(),r.shiftAndExecuteNext(e)}_onSBUpdateError(e,t){var r;const i=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${i}`,t),this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:i,fatal:!1});const s=this.operationQueue.current(e);s&&s.onError(i)}removeExecutor(e,t,r){const{media:i,mediaSource:s,operationQueue:l,sourceBuffer:x}=this,j=x[e];if(!i||!s||!j){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),l.shiftAndExecuteNext(e);return}const J=o(i.duration)?i.duration:1/0,fe=o(s.duration)?s.duration:1/0,Oe=Math.max(0,t),Ve=Math.min(r,J,fe);Ve>Oe&&(!j.ending||j.ended)?(j.ended=!1,this.log(`Removing [${Oe},${Ve}] from the ${e} SourceBuffer`),j.remove(Oe,Ve)):l.shiftAndExecuteNext(e)}appendExecutor(e,t){const r=this.sourceBuffer[t];if(!r){if(!this.pendingTracks[t])throw new Error(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);return}r.ended=!1,r.appendBuffer(e)}blockBuffers(e,t=this.getSourceBufferTypes()){if(!t.length){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:r}=this,i=t.map(s=>r.appendBlocker(s));Promise.all(i).then(()=>{e(),t.forEach(s=>{const l=this.sourceBuffer[s];l!=null&&l.updating||r.shiftAndExecuteNext(s)})})}getSourceBufferTypes(){return Object.keys(this.sourceBuffer)}addBufferListener(e,t,r){const i=this.sourceBuffer[e];if(!i)return;const s=r.bind(this,e);this.listeners[e].push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.sourceBuffer[e];t&&this.listeners[e].forEach(r=>{t.removeEventListener(r.event,r.listener)})}}function Ha(d){const e=d.querySelectorAll("source");[].slice.call(e).forEach(t=>{d.removeChild(t)})}function os(d,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,d.appendChild(t)}const sa={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},ha=d=>String.fromCharCode(sa[d]||d),xa=15,ja=100,ls={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},da={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Is={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},bs={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Hs=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Zs{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;B.log(`${this.time} [${e}] ${r}`)}}}const Xs=function(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r].toString(16));return t};class Wo{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 i=t[r];e.hasOwnProperty(i)&&(this[i]=e[i])}}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 $o{constructor(){this.uchar=" ",this.penState=new Wo}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 ho{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Wo,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<ja;t++)this.chars.push(new $o);this.logger=e}equals(e){for(let t=0;t<ja;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<ja;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<ja;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>ja&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=ja)}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=ha(e);if(this.pos>=ja){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<ja;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<ja;r++){const i=this.chars[r].uchar;i!==" "&&(t=!1),e.push(i)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class oo{constructor(e){this.rows=[],this.currRow=xa-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<xa;t++)this.rows.push(new ho(e));this.logger=e}reset(){for(let e=0;e<xa;e++)this.rows[e].clear();this.currRow=xa-1}equals(e){let t=!0;for(let r=0;r<xa;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<xa;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<xa;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 = "+JSON.stringify(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let x=0;x<xa;x++)this.rows[x].clear();const s=this.currRow+1-this.nrRollUpRows,l=this.lastOutputScreen;if(l){const x=l.rows[s].cueStartTime,j=this.logger.time;if(x!==null&&j!==null&&x<j)for(let J=0;J<this.nrRollUpRows;J++)this.rows[t-this.nrRollUpRows+J+1].copy(l.rows[s+J])}}this.currRow=t;const r=this.rows[this.currRow];if(e.indent!==null){const s=e.indent,l=Math.max(s-1,0);r.setCursor(e.indent),e.color=r.chars[l].penState.foreground}const i={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(i)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+JSON.stringify(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="",i=-1;for(let s=0;s<xa;s++){const l=this.rows[s].getTextString();l&&(i=s+1,e?t.push("Row "+i+": '"+l+"'"):t.push(l.trim()))}return t.length>0&&(e?r="["+t.join(" | ")+"]":r=t.join(`
|
|
|
`)),r}getTextAndFormat(){return this.rows}}class ro{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 oo(r),this.nonDisplayedMemory=new oo(r),this.lastOutputScreen=new oo(r),this.currRollUpRow=this.displayedMemory.rows[xa-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[xa-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,i=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=i[r]}this.logger.log(2,"MIDROW: "+JSON.stringify(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 $s{constructor(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=$l(),this.logger=void 0;const i=this.logger=new Zs;this.channels=[null,new ro(e,t,i),new ro(e+1,r,i)]}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 i=t[r]&127,s=t[r+1]&127;let l=!1,x=null;if(i===0&&s===0)continue;this.logger.log(3,()=>"["+Xs([t[r],t[r+1]])+"] -> ("+Xs([i,s])+")");const j=this.cmdHistory;if(i>=16&&i<=31){if(al(i,s,j)){Ja(null,null,j),this.logger.log(3,()=>"Repeated command ("+Xs([i,s])+") is dropped");continue}Ja(i,s,this.cmdHistory),l=this.parseCmd(i,s),l||(l=this.parseMidrow(i,s)),l||(l=this.parsePAC(i,s)),l||(l=this.parseBackgroundAttributes(i,s))}else Ja(null,null,j);if(!l&&(x=this.parseChars(i,s),x)){const fe=this.currentChannel;fe&&fe>0?this.channels[fe].insertChars(x):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!l&&!x&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Xs([i,s])+" orig: "+Xs([t[r],t[r+1]]))}}parseCmd(e,t){const r=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=33&&t<=35;if(!(r||i))return!1;const s=e===20||e===21||e===23?1:2,l=this.channels[s];return e===20||e===21||e===28||e===29?t===32?l.ccRCL():t===33?l.ccBS():t===34?l.ccAOF():t===35?l.ccAON():t===36?l.ccDER():t===37?l.ccRU(2):t===38?l.ccRU(3):t===39?l.ccRU(4):t===40?l.ccFON():t===41?l.ccRDC():t===42?l.ccTR():t===43?l.ccRTD():t===44?l.ccEDM():t===45?l.ccCR():t===46?l.ccENM():t===47&&l.ccEOC():l.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 i=this.channels[r];return i?(i.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+Xs([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let r;const i=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,s=(e===16||e===24)&&t>=64&&t<=95;if(!(i||s))return!1;const l=e<=23?1:2;t>=64&&t<=95?r=l===1?ls[e]:Is[e]:r=l===1?da[e]:bs[e];const x=this.channels[l];return x?(x.setPAC(this.interpretPAC(r,t)),this.currentChannel=l,!0):!1}interpretPAC(e,t){let r;const i={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?r=t-96:r=t-64,i.underline=(r&1)===1,r<=13?i.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(i.italics=!0,i.color="white"):i.indent=Math.floor((r-16)/2)*4,i}parseChars(e,t){let r,i=null,s=null;if(e>=25?(r=2,s=e-8):(r=1,s=e),s>=17&&s<=19){let l;s===17?l=t+80:s===18?l=t+112:l=t+144,this.logger.log(2,()=>"Special char '"+ha(l)+"' in channel "+r),i=[l]}else e>=32&&e<=127&&(i=t===0?[e]:[e,t]);return i&&this.logger.log(3,()=>"Char codes = "+Xs(i).join(",")),i}parseBackgroundAttributes(e,t){const r=(e===16||e===24)&&t>=32&&t<=47,i=(e===23||e===31)&&t>=45&&t<=47;if(!(r||i))return!1;let s;const l={};e===16||e===24?(s=Math.floor((t-32)/2),l.background=Hs[s],t%2===1&&(l.background=l.background+"_semi")):t===45?l.background="transparent":(l.foreground="black",t===47&&(l.underline=!0));const x=e<=23?1:2;return this.channels[x].setBkgData(l),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}Ja(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 Ja(d,e,t){t.a=d,t.b=e}function al(d,e,t){return t.a===d&&t.b===e}function $l(){return{a:null,b:null}}class Vo{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}}var Jo=function(){if(at!=null&&at.VTTCue)return self.VTTCue;const d=["","lr","rl"],e=["start","middle","end","left","right"];function t(x,j){if(typeof j!="string"||!Array.isArray(x))return!1;const J=j.toLowerCase();return~x.indexOf(J)?J:!1}function r(x){return t(d,x)}function i(x){return t(e,x)}function s(x,...j){let J=1;for(;J<arguments.length;J++){const fe=arguments[J];for(const Oe in fe)x[Oe]=fe[Oe]}return x}function l(x,j,J){const fe=this,Oe={enumerable:!0};fe.hasBeenReset=!1;let Ve="",Je=!1,ut=x,Ct=j,Ft=J,gr=null,Or="",Fr=!0,Un="auto",an="start",mi=50,zn="middle",Ti=50,qi="middle";Object.defineProperty(fe,"id",s({},Oe,{get:function(){return Ve},set:function(di){Ve=""+di}})),Object.defineProperty(fe,"pauseOnExit",s({},Oe,{get:function(){return Je},set:function(di){Je=!!di}})),Object.defineProperty(fe,"startTime",s({},Oe,{get:function(){return ut},set:function(di){if(typeof di!="number")throw new TypeError("Start time must be set to a number.");ut=di,this.hasBeenReset=!0}})),Object.defineProperty(fe,"endTime",s({},Oe,{get:function(){return Ct},set:function(di){if(typeof di!="number")throw new TypeError("End time must be set to a number.");Ct=di,this.hasBeenReset=!0}})),Object.defineProperty(fe,"text",s({},Oe,{get:function(){return Ft},set:function(di){Ft=""+di,this.hasBeenReset=!0}})),Object.defineProperty(fe,"region",s({},Oe,{get:function(){return gr},set:function(di){gr=di,this.hasBeenReset=!0}})),Object.defineProperty(fe,"vertical",s({},Oe,{get:function(){return Or},set:function(di){const Ni=r(di);if(Ni===!1)throw new SyntaxError("An invalid or illegal string was specified.");Or=Ni,this.hasBeenReset=!0}})),Object.defineProperty(fe,"snapToLines",s({},Oe,{get:function(){return Fr},set:function(di){Fr=!!di,this.hasBeenReset=!0}})),Object.defineProperty(fe,"line",s({},Oe,{get:function(){return Un},set:function(di){if(typeof di!="number"&&di!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Un=di,this.hasBeenReset=!0}})),Object.defineProperty(fe,"lineAlign",s({},Oe,{get:function(){return an},set:function(di){const Ni=i(di);if(!Ni)throw new SyntaxError("An invalid or illegal string was specified.");an=Ni,this.hasBeenReset=!0}})),Object.defineProperty(fe,"position",s({},Oe,{get:function(){return mi},set:function(di){if(di<0||di>100)throw new Error("Position must be between 0 and 100.");mi=di,this.hasBeenReset=!0}})),Object.defineProperty(fe,"positionAlign",s({},Oe,{get:function(){return zn},set:function(di){const Ni=i(di);if(!Ni)throw new SyntaxError("An invalid or illegal string was specified.");zn=Ni,this.hasBeenReset=!0}})),Object.defineProperty(fe,"size",s({},Oe,{get:function(){return Ti},set:function(di){if(di<0||di>100)throw new Error("Size must be between 0 and 100.");Ti=di,this.hasBeenReset=!0}})),Object.defineProperty(fe,"align",s({},Oe,{get:function(){return qi},set:function(di){const Ni=i(di);if(!Ni)throw new SyntaxError("An invalid or illegal string was specified.");qi=Ni,this.hasBeenReset=!0}})),fe.displayState=void 0}return l.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},l}();class fu{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Iu(d){function e(r,i,s,l){return(r|0)*3600+(i|0)*60+(s|0)+parseFloat(l||0)}const t=d.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 Ma{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 i=0;i<r.length;++i)if(t===r[i]){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 _s(d,e,t,r){const i=r?d.split(r):[d];for(const s in i){if(typeof i[s]!="string")continue;const l=i[s].split(t);if(l.length!==2)continue;const x=l[0],j=l[1];e(x,j)}}const qa=new Jo(0,0,""),Bs=qa.align==="middle"?"middle":"center";function bo(d,e,t){const r=d;function i(){const x=Iu(d);if(x===null)throw new Error("Malformed timestamp: "+r);return d=d.replace(/^[^\sa-zA-Z-]+/,""),x}function s(x,j){const J=new Ma;_s(x,function(Ve,Je){let ut;switch(Ve){case"region":for(let Ct=t.length-1;Ct>=0;Ct--)if(t[Ct].id===Je){J.set(Ve,t[Ct].region);break}break;case"vertical":J.alt(Ve,Je,["rl","lr"]);break;case"line":ut=Je.split(","),J.integer(Ve,ut[0]),J.percent(Ve,ut[0])&&J.set("snapToLines",!1),J.alt(Ve,ut[0],["auto"]),ut.length===2&&J.alt("lineAlign",ut[1],["start",Bs,"end"]);break;case"position":ut=Je.split(","),J.percent(Ve,ut[0]),ut.length===2&&J.alt("positionAlign",ut[1],["start",Bs,"end","line-left","line-right","auto"]);break;case"size":J.percent(Ve,Je);break;case"align":J.alt(Ve,Je,["start",Bs,"end","left","right"]);break}},/:/,/\s/),j.region=J.get("region",null),j.vertical=J.get("vertical","");let fe=J.get("line","auto");fe==="auto"&&qa.line===-1&&(fe=-1),j.line=fe,j.lineAlign=J.get("lineAlign","start"),j.snapToLines=J.get("snapToLines",!0),j.size=J.get("size",100),j.align=J.get("align",Bs);let Oe=J.get("position","auto");Oe==="auto"&&qa.position===50&&(Oe=j.align==="start"||j.align==="left"?0:j.align==="end"||j.align==="right"?100:50),j.position=Oe}function l(){d=d.replace(/^\s+/,"")}if(l(),e.startTime=i(),l(),d.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);d=d.slice(3),l(),e.endTime=i(),l(),s(d,e)}function Ro(d){return d.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}class po{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new fu,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,l=0;for(s=Ro(s);l<s.length&&s[l]!=="\r"&&s[l]!==`
|
|
|
`;)++l;const x=s.slice(0,l);return s[l]==="\r"&&++l,s[l]===`
|
|
|
`&&++l,t.buffer=s.slice(l),x}function i(s){_s(s,function(l,x){},/:/)}try{let s="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;s=r();const x=s.match(/^()?WEBVTT([ \t].*)?$/);if(!(x!=null&&x[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let l=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(l?l=!1:s=r(),t.state){case"HEADER":/:/.test(s)?i(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 Jo(0,0,""),t.state="CUE",s.indexOf("-->")===-1){t.cue.id=s;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{bo(s,t.cue,t.regionList)}catch(x){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const x=s.indexOf("-->")!==-1;if(!s||x&&(l=!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 Cl=/\r\n|\n\r|\n|\r/g,Ko=function(e,t,r=0){return e.slice(r,r+t.length)===t},Vl=function(e){let t=parseInt(e.slice(-3));const r=parseInt(e.slice(-6,-4)),i=parseInt(e.slice(-9,-7)),s=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!o(t)||!o(r)||!o(i)||!o(s))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*r,t+=60*1e3*i,t+=60*60*1e3*s,t},No=function(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0).toString()};function Yl(d,e,t){return No(d.toString())+No(e.toString())+No(t)}const $u=function(e,t,r){let i=e[t],s=e[i.prevCC];if(!s||!s.new&&i.new){e.ccOffset=e.presentationOffset=i.start,i.new=!1;return}for(;(l=s)!=null&&l.new;){var l;e.ccOffset+=i.start-s.start,i.new=!1,i=s,s=e[i.prevCC]}e.presentationOffset=r};function hu(d,e,t,r,i,s,l){const x=new po,j=At(new Uint8Array(d)).trim().replace(Cl,`
|
|
|
`).split(`
|
|
|
`),J=[],fe=e?Dn(e.baseTime,e.timescale):0;let Oe="00:00.000",Ve=0,Je=0,ut,Ct=!0;x.oncue=function(Ft){const gr=t[r];let Or=t.ccOffset;const Fr=(Ve-fe)/9e4;if(gr!=null&&gr.new&&(Je!==void 0?Or=t.ccOffset=gr.start:$u(t,r,Fr)),Fr){if(!e){ut=new Error("Missing initPTS for VTT MPEGTS");return}Or=Fr-t.presentationOffset}const Un=Ft.endTime-Ft.startTime,an=rn((Ft.startTime+Or-Je)*9e4,i*9e4)/9e4;Ft.startTime=Math.max(an,0),Ft.endTime=Math.max(an+Un,0);const mi=Ft.text.trim();Ft.text=decodeURIComponent(encodeURIComponent(mi)),Ft.id||(Ft.id=Yl(Ft.startTime,Ft.endTime,mi)),Ft.endTime>0&&J.push(Ft)},x.onparsingerror=function(Ft){ut=Ft},x.onflush=function(){if(ut){l(ut);return}s(J)},j.forEach(Ft=>{if(Ct)if(Ko(Ft,"X-TIMESTAMP-MAP=")){Ct=!1,Ft.slice(16).split(",").forEach(gr=>{Ko(gr,"LOCAL:")?Oe=gr.slice(6):Ko(gr,"MPEGTS:")&&(Ve=parseInt(gr.slice(7)))});try{Je=Vl(Oe)/1e3}catch(gr){ut=gr}return}else Ft===""&&(Ct=!1);x.parse(Ft+`
|
|
|
`)}),x.flush()}const sl="stpp.ttml.im1t",pu=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Tu=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,Ku={left:"start",center:"center",right:"end",start:"start",end:"end"};function mu(d,e,t,r){const i=St(new Uint8Array(d),["mdat"]);if(i.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const s=i.map(x=>At(x)),l=$r(e.baseTime,1,e.timescale);try{s.forEach(x=>t(zu(x,l)))}catch(x){r(x)}}function zu(d,e){const i=new DOMParser().parseFromString(d,"text/xml").getElementsByTagName("tt")[0];if(!i)throw new Error("Invalid ttml");const s={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},l=Object.keys(s).reduce((Oe,Ve)=>(Oe[Ve]=i.getAttribute(`ttp:${Ve}`)||s[Ve],Oe),{}),x=i.getAttribute("xml:space")!=="preserve",j=Gu(Nl(i,"styling","style")),J=Gu(Nl(i,"layout","region")),fe=Nl(i,"body","[begin]");return[].map.call(fe,Oe=>{const Ve=kl(Oe,x);if(!Ve||!Oe.hasAttribute("begin"))return null;const Je=ko(Oe.getAttribute("begin"),l),ut=ko(Oe.getAttribute("dur"),l);let Ct=ko(Oe.getAttribute("end"),l);if(Je===null)throw vu(Oe);if(Ct===null){if(ut===null)throw vu(Oe);Ct=Je+ut}const Ft=new Jo(Je-e,Ct-e,Ve);Ft.id=Yl(Ft.startTime,Ft.endTime,Ft.text);const gr=J[Oe.getAttribute("region")],Or=j[Oe.getAttribute("style")],Fr=gu(gr,Or,j),{textAlign:Un}=Fr;if(Un){const an=Ku[Un];an&&(Ft.lineAlign=an),Ft.align=Un}return n(Ft,Fr),Ft}).filter(Oe=>Oe!==null)}function Nl(d,e,t){const r=d.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function Gu(d){return d.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function kl(d,e){return[].slice.call(d.childNodes).reduce((t,r,i)=>{var s;return r.nodeName==="br"&&i?t+`
|
|
|
`:(s=r.childNodes)!=null&&s.length?kl(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function gu(d,e,t){const r="http://www.w3.org/ns/ttml#styling";let i=null;const s=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],l=d!=null&&d.hasAttribute("style")?d.getAttribute("style"):null;return l&&t.hasOwnProperty(l)&&(i=t[l]),s.reduce((x,j)=>{const J=Io(e,r,j)||Io(d,r,j)||Io(i,r,j);return J&&(x[j]=J),x},{})}function Io(d,e,t){return d&&d.hasAttributeNS(e,t)?d.getAttributeNS(e,t):null}function vu(d){return new Error(`Could not parse ttml timestamp ${d}`)}function ko(d,e){if(!d)return null;let t=Iu(d);return t===null&&(pu.test(d)?t=yc(d,e):Tu.test(d)&&(t=Zu(d,e))),t}function yc(d,e){const t=pu.exec(d),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 Zu(d,e){const t=Tu.exec(d),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 Oa{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=Lu(),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(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(a.FRAG_LOADING,this.onFragLoading,this),e.on(a.FRAG_LOADED,this.onFragLoaded,this),e.on(a.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(a.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(a.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(a.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(a.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(a.FRAG_LOADING,this.onFragLoading,this),e.off(a.FRAG_LOADED,this.onFragLoaded,this),e.off(a.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(a.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(a.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(a.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(a.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const e=new Vo(this,"textTrack1"),t=new Vo(this,"textTrack2"),r=new Vo(this,"textTrack3"),i=new Vo(this,"textTrack4");this.cea608Parser1=new $s(1,e,t),this.cea608Parser2=new $s(3,r,i)}}addCues(e,t,r,i,s){let l=!1;for(let x=s.length;x--;){const j=s[x],J=_l(j[0],j[1],t,r);if(J>=0&&(j[0]=Math.min(j[0],t),j[1]=Math.max(j[1],r),l=!0,J/(r-t)>.5))return}if(l||s.push([t,r]),this.config.renderTextTracksNatively){const x=this.captionsTracks[e];this.Cues.newCue(x,t,r,i)}else{const x=this.Cues.newCue(null,t,r,i);this.hls.trigger(a.CUES_PARSED,{type:"captions",cues:x,track:e})}}onInitPtsFound(e,{frag:t,id:r,initPTS:i,timescale:s}){const{unparsedVttFrags:l}=this;r==="main"&&(this.initPTS[t.cc]={baseTime:i,timescale:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(x=>{this.onFragLoaded(a.FRAG_LOADED,x)}))}getExistingTrack(e,t){const{media:r}=this;if(r)for(let i=0;i<r.textTracks.length;i++){const s=r.textTracks[i];if(Du(s,{name:e,lang:t,attrs:{}}))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:i}=this,{label:s,languageCode:l}=t[e],x=this.getExistingTrack(s,l);if(x)r[e]=x,va(r[e]),ji(r[e],i);else{const j=this.createTextTrack("captions",s,l);j&&(j[e]=!0,r[e]=j)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const r=t.label,i={_id:e,label:r,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=i,this.hls.trigger(a.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}createTextTrack(e,t,r){const i=this.media;if(i)return i.addTextTrack(e,t,r)}onMediaAttaching(e,t){this.media=t.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:e}=this;Object.keys(e).forEach(t=>{va(e[t]),delete e[t]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Lu(),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++)va(t[r])}onSubtitleTracksUpdated(e,t){const r=t.subtitleTracks||[],i=r.some(s=>s.textCodec===sl);if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(kn(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const l=this.media,x=l?Si(l.textTracks):null;if(this.tracks.forEach((j,J)=>{let fe;if(x){let Oe=null;for(let Ve=0;Ve<x.length;Ve++)if(x[Ve]&&Du(x[Ve],j)){Oe=x[Ve],x[Ve]=null;break}Oe&&(fe=Oe)}if(fe)va(fe);else{const Oe=Fu(j);fe=this.createTextTrack(Oe,j.name,j.lang),fe&&(fe.mode="disabled")}fe&&this.textTracks.push(fe)}),x!=null&&x.length){const j=x.filter(J=>J!==null).map(J=>J.label);j.length&&B.warn(`Media element contains unused subtitle tracks: ${j.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const l=this.tracks.map(x=>({label:x.name,kind:x.type.toLowerCase(),default:x.default,subtitleTrack:x}));this.hls.trigger(a.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:l})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(r=>{const i=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!i)return;const s=`textTrack${i[1]}`,l=this.captionsProperties[s];l&&(l.label=r.name,r.lang&&(l.languageCode=r.lang),l.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===Ht.MAIN){var r,i;const{cea608Parser1:s,cea608Parser2:l,lastSn:x}=this,{cc:j,sn:J}=t.frag,fe=(r=(i=t.part)==null?void 0:i.index)!=null?r:-1;s&&l&&(J!==x+1||J===x&&fe!==this.lastPartIndex+1||j!==this.lastCc)&&(s.reset(),l.reset()),this.lastCc=j,this.lastSn=J,this.lastPartIndex=fe}}onFragLoaded(e,t){const{frag:r,payload:i}=t;if(r.type===Ht.SUBTITLE)if(i.byteLength){const s=r.decryptdata,l="stats"in t;if(s==null||!s.encrypted||l){const x=this.tracks[r.level],j=this.vttCCs;j[r.cc]||(j[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),x&&x.textCodec===sl?this._parseIMSC1(r,i):this._parseVTTs(t)}}else this.hls.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const r=this.hls;mu(t,this.initPTS[e.cc],i=>{this._appendCues(i,e.level),r.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},i=>{B.log(`Failed to parse IMSC1: ${i}`),r.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:i})})}_parseVTTs(e){var t;const{frag:r,payload:i}=e,{initPTS:s,unparsedVttFrags:l}=this,x=s.length-1;if(!s[r.cc]&&x===-1){l.push(e);return}const j=this.hls,J=(t=r.initSegment)!=null&&t.data?Mn(r.initSegment.data,new Uint8Array(i)):i;hu(J,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,fe=>{this._appendCues(fe,r.level),j.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},fe=>{const Oe=fe.message==="Missing initPTS for VTT MPEGTS";Oe?l.push(e):this._fallbackToIMSC1(r,i),B.log(`Failed to parse VTT cue: ${fe}`),!(Oe&&x>r.cc)&&j.trigger(a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:fe})})}_fallbackToIMSC1(e,t){const r=this.tracks[e.level];r.textCodec||mu(t,this.initPTS[e.cc],()=>{r.textCodec=sl,this._parseIMSC1(e,t)},()=>{r.textCodec="wvtt"})}_appendCues(e,t){const r=this.hls;if(this.config.renderTextTracksNatively){const i=this.textTracks[t];if(!i||i.mode==="disabled")return;e.forEach(s=>fa(i,s))}else{const i=this.tracks[t];if(!i)return;const s=i.default?"default":"subtitles"+t;r.trigger(a.CUES_PARSED,{type:"subtitles",cues:e,track:s})}}onFragDecrypted(e,t){const{frag:r}=t;r.type===Ht.SUBTITLE&&this.onFragLoaded(a.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){this.initCea608Parsers();const{cea608Parser1:r,cea608Parser2:i}=this;if(!this.enabled||!r||!i)return;const{frag:s,samples:l}=t;if(!(s.type===Ht.MAIN&&this.closedCaptionsForLevel(s)==="NONE"))for(let x=0;x<l.length;x++){const j=l[x].bytes;if(j){const J=this.extractCea608Data(j);r.addData(l[x].pts,J[0]),i.addData(l[x].pts,J[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:r,endOffsetSubtitles:i,type:s}){const{media:l}=this;if(!(!l||l.currentTime<r)){if(!s||s==="video"){const{captionsTracks:x}=this;Object.keys(x).forEach(j=>ea(x[j],t,r))}if(this.config.renderTextTracksNatively&&t===0&&i!==void 0){const{textTracks:x}=this;Object.keys(x).forEach(j=>ea(x[j],t,i))}}}extractCea608Data(e){const t=[[],[]],r=e[0]&31;let i=2;for(let s=0;s<r;s++){const l=e[i++],x=127&e[i++],j=127&e[i++];if(x===0&&j===0)continue;if((4&l)!==0){const fe=3&l;(fe===0||fe===1)&&(t[fe].push(x),t[fe].push(j))}}return t}}function Fu(d){return d.characteristics&&/transcribes-spoken-dialog/gi.test(d.characteristics)&&/describes-music-and-sound/gi.test(d.characteristics)?"captions":"subtitles"}function Du(d,e){return!!d&&d.kind===Fu(e)&&bi(e,d)}function _l(d,e,t,r){return Math.min(e,r)-Math.max(d,t)}function Lu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class yu{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(a.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.BUFFER_CODECS,this.onBufferCodecs,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(a.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(a.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.BUFFER_CODECS,this.onBufferCodecs,this),e.off(a.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&&o(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}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&&B.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,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((i,s)=>this.isLevelAllowed(i)&&s<=e);return this.clientRect=null,yu.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 e}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 i=(x,j)=>j?x.width!==j.width||x.height!==j.height:!0;let s=e.length-1;const l=Math.max(t,r);for(let x=0;x<e.length;x+=1){const j=e[x];if((j.width>=l||j.height>=l)&&i(j,e[x+1])){s=x;break}}return s}}class Xl{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(a.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(a.MEDIA_ATTACHING,this.onMediaAttaching,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 i=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=i,i&&typeof i.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}checkFPS(e,t,r){const i=performance.now();if(t){if(this.lastTime){const s=i-this.lastTime,l=r-this.lastDroppedFrames,x=t-this.lastDecodedFrames,j=1e3*l/s,J=this.hls;if(J.trigger(a.FPS_DROP,{currentDropped:l,currentDecoded:x,totalDroppedFrames:r}),j>0&&l>J.config.fpsDroppedMonitoringThreshold*x){let fe=J.currentLevel;B.warn("drop FPS ratio greater than max allowed value for currentLevel: "+fe),fe>0&&(J.autoLevelCapping===-1||J.autoLevelCapping>=fe)&&(fe=fe-1,J.trigger(a.FPS_DROP_LEVEL_CAPPING,{level:fe,droppedLevel:J.currentLevel}),J.autoLevelCapping=fe,this.streamController.nextLevelSwitch())}}this.lastTime=i,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)}}const Jl="[eme]";class Bl{constructor(e){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=Bl.CDMCleanupPromise?[Bl.CDMCleanupPromise]:[],this.debug=B.debug.bind(B,Jl),this.log=B.log.bind(B,Jl),this.warn=B.warn.bind(B,Jl),this.error=B.error.bind(B,Jl),this.onMediaEncrypted=t=>{const{initDataType:r,initData:i}=t,s=`"${t.type}" event: init data type: "${r}"`;if(this.debug(s),i!==null){if(!this.keyFormatPromise){let l=Object.keys(this.keySystemAccessPromises);l.length||(l=Cr(this.config));const x=l.map(Er).filter(j=>!!j);this.keyFormatPromise=this.getKeyFormatPromise(x)}this.keyFormatPromise.then(l=>{const x=lr(l);let j,J;if(r==="sinf"){if(x!==rt.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${x}`);return}const ut=vr(new Uint8Array(i));try{const Ct=_(JSON.parse(ut).sinf),Ft=fn(Ct);if(!Ft)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");j=Ft.subarray(8,24),J=rt.FAIRPLAY}catch(Ct){this.warn(`${s} Failed to parse sinf: ${Ct}`);return}}else{if(x!==rt.WIDEVINE&&x!==rt.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${x}`);return}const ut=In(i),Ct=ut.filter(gr=>!!gr.systemId&&Ze(gr.systemId)===x);Ct.length>1&&this.warn(`${s} Using first of ${Ct.length} pssh found for selected key-system ${x}`);const Ft=Ct[0];if(!Ft){ut.length===0||ut.some(gr=>!gr.systemId)?this.warn(`${s} contains incomplete or invalid pssh data`):this.log(`ignoring ${s} for ${ut.map(gr=>Ze(gr.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(J=Ze(Ft.systemId),Ft.version===0&&Ft.data)if(J===rt.WIDEVINE){const gr=Ft.data.length-22;j=Ft.data.subarray(gr,gr+16)}else J===rt.PLAYREADY&&(j=Tt(Ft.data))}if(!J||!j){this.log(`Unable to handle ${s} with key-system ${x}`);return}const fe=Bt.hexDump(j),{keyIdToKeySessionPromise:Oe,mediaKeySessions:Ve}=this;let Je=Oe[fe];for(let ut=0;ut<Ve.length;ut++){const Ct=Ve[ut],Ft=Ct.decryptdata;if(!Ft.keyId)continue;const gr=Bt.hexDump(Ft.keyId);if(fe===gr||Ft.uri.replace(/-/g,"").indexOf(fe)!==-1){if(Je=Oe[gr],Ft.pssh)break;delete Oe[gr],Ft.pssh=new Uint8Array(i),Ft.keyId=j,Je=Oe[fe]=Je.then(()=>this.generateRequestWithPreferredKeySession(Ct,r,i,"encrypted-event-key-match")),Je.catch(Or=>this.handleError(Or));break}}if(!Je){if(J!==x){this.log(`Ignoring "${s}" with ${J} init data for selected key-system ${x}`);return}Je=Oe[fe]=this.getKeySystemSelectionPromise([J]).then(({keySystem:ut,mediaKeys:Ct})=>{var Ft;this.throwIfDestroyed();const gr=new hn("ISO-23001-7",fe,(Ft=Er(ut))!=null?Ft:"");return gr.pssh=new Uint8Array(i),gr.keyId=j,this.attemptSetMediaKeys(ut,Ct).then(()=>{this.throwIfDestroyed();const Or=this.createMediaKeySessionContext({decryptdata:gr,keySystem:ut,mediaKeys:Ct});return this.generateRequestWithPreferredKeySession(Or,r,i,"encrypted-event-no-match")})}),Je.catch(ut=>this.handleError(ut))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(a.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(a.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(a.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(a.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(a.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:r}=this.config,i=t[e];if(i)return i.licenseUrl;if(e===rt.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=(l,x,j)=>!!l&&j.indexOf(l)===x,i=t.map(l=>l.audioCodec).filter(r),s=t.map(l=>l.videoCodec).filter(r);return i.length+s.length===0&&s.push("avc1.42e01e"),new Promise((l,x)=>{const j=J=>{const fe=J.shift();this.getMediaKeysPromise(fe,i,s).then(Oe=>l({keySystem:fe,mediaKeys:Oe})).catch(Oe=>{J.length?j(J):Oe instanceof Ho?x(Oe):x(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_ACCESS,error:Oe,fatal:!0},Oe.message))})};j(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let i=`Configured requestMediaKeySystemAccess is not a function ${r}`;return Kr===null&&self.location.protocol==="http:"&&(i=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(i))}return r(e,t)}getMediaKeysPromise(e,t,r){const i=_r(e,t,r,this.config.drmSystemOptions),s=this.keySystemAccessPromises[e];let l=s==null?void 0:s.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${e}" key-system access with config: ${JSON.stringify(i)}`),l=this.requestMediaKeySystemAccess(e,i);const x=this.keySystemAccessPromises[e]={keySystemAccess:l};return l.catch(j=>{this.log(`Failed to obtain access to key-system "${e}": ${j}`)}),l.then(j=>{this.log(`Access for key-system "${j.keySystem}" obtained`);const J=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),x.mediaKeys=j.createMediaKeys().then(fe=>(this.log(`Media-keys created for "${e}"`),J.then(Oe=>Oe?this.setMediaKeysServerCertificate(fe,e,Oe):fe))),x.mediaKeys.catch(fe=>{this.error(`Failed to create media-keys for "${e}"}: ${fe}`)}),x.mediaKeys})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:r}){this.log(`Creating key-system session "${t}" keyId: ${Bt.hexDump(e.keyId||[])}`);const i=r.createSession(),s={decryptdata:e,keySystem:t,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(s),s}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const r=this.createMediaKeySessionContext(e),i=this.getKeyIdString(t),s="cenc";this.keyIdToKeySessionPromise[i]=this.generateRequestWithPreferredKeySession(r,s,t.pssh,"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 Bt.hexDump(e.keyId)}updateKeySession(e,t){var r;const i=e.mediaKeysSession;return this.log(`Updating key-session "${i.sessionId}" for keyID ${Bt.hexDump(((r=e.decryptdata)==null?void 0:r.keyId)||[])}
|
|
|
} (data length: ${t&&t.byteLength})`),i.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 i=Cr(this.config),s=e.map(lr).filter(l=>!!l&&i.indexOf(l)!==-1);return this.getKeySystemSelectionPromise(s).then(({keySystem:l})=>{const x=Er(l);x?t(x):r(new Error(`Unable to find format for key-system "${l}"`))}).catch(r)})}loadKey(e){const t=e.keyInfo.decryptdata,r=this.getKeyIdString(t),i=`(keyId: ${r} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${i}`);let s=this.keyIdToKeySessionPromise[r];return s||(s=this.keyIdToKeySessionPromise[r]=this.getKeySystemForKeyPromise(t).then(({keySystem:l,mediaKeys:x})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${i}`),this.attemptSetMediaKeys(l,x).then(()=>{this.throwIfDestroyed();const j=this.createMediaKeySessionContext({keySystem:l,mediaKeys:x,decryptdata:t});return this.generateRequestWithPreferredKeySession(j,"cenc",t.pssh,"playlist-key")}))),s.catch(l=>this.handleError(l))),s}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof Ho?this.hls.trigger(a.ERROR,e.data):this.hls.trigger(a.ERROR,{type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){const i=lr(e.keyFormat),s=i?[i]:Cr(this.config);return this.attemptKeySystemAccess(s)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=Cr(this.config)),e.length===0)throw new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const i=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(i),i.then(()=>{this.log(`Media-keys set for "${e}"`),r.push(i),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(s=>r.indexOf(s)===-1)})}generateRequestWithPreferredKeySession(e,t,r,i){var s,l;const x=(s=this.config.drmSystems)==null||(l=s[e.keySystem])==null?void 0:l.generateRequest;if(x)try{const ut=x.call(this.hls,t,r,e);if(!ut)throw new Error("Invalid response from configured generateRequest filter");t=ut.initDataType,r=e.decryptdata.pssh=ut.initData?new Uint8Array(ut.initData):null}catch(ut){var j;if(this.warn(ut.message),(j=this.hls)!=null&&j.config.debug)throw ut}if(r===null)return this.log(`Skipping key-session request for "${i}" (no initData)`),Promise.resolve(e);const J=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${i}": ${J} (init data type: ${t} length: ${r?r.byteLength:null})`);const fe=new Xr,Oe=e._onmessage=ut=>{const Ct=e.mediaKeysSession;if(!Ct){fe.emit("error",new Error("invalid state"));return}const{messageType:Ft,message:gr}=ut;this.log(`"${Ft}" message event for session "${Ct.sessionId}" message size: ${gr.byteLength}`),Ft==="license-request"||Ft==="license-renewal"?this.renewLicense(e,gr).catch(Or=>{this.handleError(Or),fe.emit("error",Or)}):Ft==="license-release"?e.keySystem===rt.FAIRPLAY&&(this.updateKeySession(e,qe("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Ft}"`)},Ve=e._onkeystatuseschange=ut=>{if(!e.mediaKeysSession){fe.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Ft=e.keyStatus;fe.emit("keyStatus",Ft),Ft==="expired"&&(this.warn(`${e.keySystem} expired for key ${J}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",Oe),e.mediaKeysSession.addEventListener("keystatuseschange",Ve);const Je=new Promise((ut,Ct)=>{fe.on("error",Ct),fe.on("keyStatus",Ft=>{Ft.startsWith("usable")?ut():Ft==="output-restricted"?Ct(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Ft==="internal-error"?Ct(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Ft}"`)):Ft==="expired"?Ct(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Ft}"`)})});return e.mediaKeysSession.generateRequest(t,r).then(()=>{var ut;this.log(`Request generated for key-session "${(ut=e.mediaKeysSession)==null?void 0:ut.sessionId}" keyId: ${J}`)}).catch(ut=>{throw new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_NO_SESSION,error:ut,fatal:!1},`Error generating key-session request: ${ut}`)}).then(()=>Je).catch(ut=>{throw fe.removeAllListeners(),this.removeSession(e),ut}).then(()=>(fe.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,r)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${Bt.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${Bt.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,r=t.loader,i=new r(t),s=this.getServerCertificateUrl(e);return s?(this.log(`Fetching server certificate for "${e}"`),new Promise((l,x)=>{const j={responseType:"arraybuffer",url:s},J=t.certLoadPolicy.default,fe={loadPolicy:J,timeout:J.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Oe={onSuccess:(Ve,Je,ut,Ct)=>{l(Ve.data)},onError:(Ve,Je,ut,Ct)=>{x(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ut,response:ie({url:j.url,data:void 0},Ve)},`"${e}" certificate request failed (${s}). Status: ${Ve.code} (${Ve.text})`))},onTimeout:(Ve,Je,ut)=>{x(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:ut,response:{url:j.url,data:void 0}},`"${e}" certificate request timed out (${s})`))},onAbort:(Ve,Je,ut)=>{x(new Error("aborted"))}};i.load(j,fe,Oe)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,r){return new Promise((i,s)=>{e.setServerCertificate(r).then(l=>{this.log(`setServerCertificate ${l?"success":"not supported by CDM"} (${r==null?void 0:r.byteLength}) on "${t}"`),i(e)}).catch(l=>{s(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:l,fatal:!0},l.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(r=>this.updateKeySession(e,new Uint8Array(r)).catch(i=>{throw new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:i,fatal:!0},i.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 i=new DOMParser().parseFromString(r,"application/xml"),s=i.querySelectorAll("HttpHeader");if(s.length>0){let fe;for(let Oe=0,Ve=s.length;Oe<Ve;Oe++){var l,x;fe=s[Oe];const Je=(l=fe.querySelector("name"))==null?void 0:l.textContent,ut=(x=fe.querySelector("value"))==null?void 0:x.textContent;Je&&ut&&e.setRequestHeader(Je,ut)}}const j=i.querySelector("Challenge"),J=j==null?void 0:j.textContent;if(!J)throw new Error("Cannot find <Challenge> in key message");return qe(atob(J))}setupLicenseXHR(e,t,r,i){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,i)}).catch(l=>{if(!r.decryptdata)throw l;return e.open("POST",t,!0),s.call(this.hls,e,t,r,i)}).then(l=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:l||i})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:i}))}requestLicense(e,t){const r=this.config.keyLoadPolicy.default;return new Promise((i,s)=>{const l=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${l}`);const x=new XMLHttpRequest;x.responseType="arraybuffer",x.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return s(new Error("invalid state"));if(x.readyState===4)if(x.status===200){this._requestLicenseFailureCount=0;let j=x.response;this.log(`License received ${j instanceof ArrayBuffer?j.byteLength:j}`);const J=this.config.licenseResponseCallback;if(J)try{j=J.call(this.hls,x,l,e)}catch(fe){this.error(fe)}i(j)}else{const j=r.errorRetry,J=j?j.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>J||x.status>=400&&x.status<500)s(new Ho({type:A.KEY_SYSTEM_ERROR,details:m.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:x,response:{url:l,data:void 0,code:x.status,text:x.statusText}},`License Request XHR failed (${l}). Status: ${x.status} (${x.statusText})`));else{const fe=J-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${fe} attempts left`),this.requestLicense(e,t).then(i,s)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=x,this.setupLicenseXHR(x,l,e,t).then(({xhr:j,licenseChallenge:J})=>{e.keySystem==rt.PLAYREADY&&(J=this.unpackPlayReadyKeyMessage(j,J)),j.send(J)})})}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,t=this.mediaKeySessions;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},hn.clearKeyUriToKeyIdMap();const r=t.length;Bl.CDMCleanupPromise=Promise.all(t.map(i=>this.removeSession(i)).concat(e==null?void 0:e.setMediaKeys(null).catch(i=>{this.log(`Could not clear media keys: ${i}`)}))).then(()=>{r&&(this.log("finished closing key sessions and clearing media keys"),t.length=0)}).catch(i=>{this.log(`Could not close sessions and clear media keys: ${i}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=t.reduce((i,s)=>(i.indexOf(s.keyFormat)===-1&&i.push(s.keyFormat),i),[]);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 i=this.mediaKeySessions.indexOf(e);return i>-1&&this.mediaKeySessions.splice(i,1),t.remove().catch(s=>{this.log(`Could not remove session: ${s}`)}).then(()=>t.close()).catch(s=>{this.log(`Could not close session: ${s}`)})}}}Bl.CDMCleanupPromise=void 0;class Ho 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}}var ws;(function(d){d.MANIFEST="m",d.AUDIO="a",d.VIDEO="v",d.MUXED="av",d.INIT="i",d.CAPTION="c",d.TIMED_TEXT="tt",d.KEY="k",d.OTHER="o"})(ws||(ws={}));var ol;(function(d){d.DASH="d",d.HLS="h",d.SMOOTH="s",d.OTHER="o"})(ol||(ol={}));var qo;(function(d){d.OBJECT="CMCD-Object",d.REQUEST="CMCD-Request",d.SESSION="CMCD-Session",d.STATUS="CMCD-Status"})(qo||(qo={}));const ql={[qo.OBJECT]:["br","d","ot","tb"],[qo.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[qo.SESSION]:["cid","pr","sf","sid","st","v"],[qo.STATUS]:["bs","rtp"]};class $a{constructor(e,t){this.value=void 0,this.params=void 0,Array.isArray(e)&&(e=e.map(r=>r instanceof $a?r:new $a(r))),this.value=e,this.params=t}}class As{constructor(e){this.description=void 0,this.description=e}}const zo="Dict";function ll(d){return Array.isArray(d)?JSON.stringify(d):d instanceof Map?"Map{}":d instanceof Set?"Set{}":typeof d=="object"?JSON.stringify(d):String(d)}function Sl(d,e,t,r){return new Error(`failed to ${d} "${ll(e)}" as ${t}`,{cause:r})}const Ru="Bare Item",Ou="Boolean",Pu="Byte Sequence",hl="Decimal",Il="Integer";function Ic(d){return d<-999999999999999||999999999999999<d}const bu=/[\x00-\x1f\x7f]+/,Ml="Token",lc="Key";function Go(d,e,t){return Sl("serialize",d,e,t)}function kc(d){if(typeof d!="boolean")throw Go(d,Ou);return d?"?1":"?0"}function uc(d){return btoa(String.fromCharCode(...d))}function Mc(d){if(ArrayBuffer.isView(d)===!1)throw Go(d,Pu);return`:${uc(d)}:`}function cc(d){if(Ic(d))throw Go(d,Il);return d.toString()}function Nu(d){return`@${cc(d.getTime()/1e3)}`}function ku(d,e){if(d<0)return-ku(-d,e);const t=Math.pow(10,e);if(Math.abs(d*t%1-.5)<Number.EPSILON){const i=Math.floor(d*t);return(i%2===0?i:i+1)/t}else return Math.round(d*t)/t}function Ac(d){const e=ku(d,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Go(d,hl);const t=e.toString();return t.includes(".")?t:`${t}.0`}const dc="String";function Wu(d){if(bu.test(d))throw Go(d,dc);return`"${d.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function bc(d){return d.description||d.toString().slice(7,-1)}function wc(d){const e=bc(d);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Go(e,Ml);return e}function wu(d){switch(typeof d){case"number":if(!o(d))throw Go(d,Ru);return Number.isInteger(d)?cc(d):Ac(d);case"string":return Wu(d);case"symbol":return wc(d);case"boolean":return kc(d);case"object":if(d instanceof Date)return Nu(d);if(d instanceof Uint8Array)return Mc(d);if(d instanceof As)return wc(d);default:throw Go(d,Ru)}}function xu(d){if(/^[a-z*][a-z0-9\-_.*]*$/.test(d)===!1)throw Go(d,lc);return d}function eu(d){return d==null?"":Object.entries(d).map(([e,t])=>t===!0?`;${xu(e)}`:`;${xu(e)}=${wu(t)}`).join("")}function tu(d){return d instanceof $a?`${wu(d.value)}${eu(d.params)}`:wu(d)}function fc(d){return`(${d.value.map(tu).join(" ")})${eu(d.params)}`}function Ae(d,e={whitespace:!0}){if(typeof d!="object")throw Go(d,zo);const t=d instanceof Map?d.entries():Object.entries(d),r=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([i,s])=>{s instanceof $a||(s=new $a(s));let l=xu(i);return s.value===!0?l+=eu(s.params):(l+="=",Array.isArray(s.value)?l+=fc(s):l+=tu(s)),l}).join(`,${r}`)}function Et(d,e){return Ae(d,e)}const mr=d=>d==="ot"||d==="sf"||d==="st",Rr=d=>typeof d=="number"?o(d):d!=null&&d!==""&&d!==!1;function un(d,e){const t=new URL(d),r=new URL(e);if(t.origin!==r.origin)return d;const i=t.pathname.split("/").slice(1),s=r.pathname.split("/").slice(1,-1);for(;i[0]===s[0];)i.shift(),s.shift();for(;s.length;)s.shift(),i.unshift("..");return i.join("/")}function Kn(){try{return crypto.randomUUID()}catch(d){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,i=>{const s=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(i=="x"?s:s&3|8).toString(16)})}}}const Ei=d=>Math.round(d),na=(d,e)=>(e!=null&&e.baseUrl&&(d=un(d,e.baseUrl)),encodeURIComponent(d)),ba=d=>Ei(d/100)*100,Wa={br:Ei,d:Ei,bl:ba,dl:ba,mtp:ba,nor:na,rtp:ba,tb:Ei};function Ka(d,e){const t={};if(d==null||typeof d!="object")return t;const r=Object.keys(d).sort(),i=n({},Wa,e==null?void 0:e.formatters),s=e==null?void 0:e.filter;return r.forEach(l=>{if(s!=null&&s(l))return;let x=d[l];const j=i[l];j&&(x=j(x,e)),!(l==="v"&&x===1)&&(l=="pr"&&x===1||Rr(x)&&(mr(l)&&typeof x=="string"&&(x=new As(x)),t[l]=x))}),t}function xs(d,e={}){return d?Et(Ka(d,e),n({whitespace:!1},e)):""}function mo(d,e={}){if(!d)return{};const t=Object.entries(d),r=Object.entries(ql).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=t.reduce((s,l)=>{var x,j;const[J,fe]=l,Oe=((x=r.find(Ve=>Ve[1].includes(J)))==null?void 0:x[0])||qo.REQUEST;return(j=s[Oe])!=null||(s[Oe]={}),s[Oe][J]=fe,s},{});return Object.entries(i).reduce((s,[l,x])=>(s[l]=xs(x,e),s),{})}function wo(d,e,t){return n(d,mo(e,t))}const To="CMCD";function Yo(d,e={}){if(!d)return"";const t=xs(d,e);return`${To}=${encodeURIComponent(t)}`}const Mo=/CMCD=[^&#]+/;function Kl(d,e,t){const r=Yo(e,t);if(!r)return d;if(Mo.test(d))return d.replace(Mo,r);const i=d.includes("?")?"&":"?";return`${d}${i}${r}`}class el{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=i=>{try{this.apply(i,{ot:ws.MANIFEST,su:!this.initialized})}catch(s){B.warn("Could not generate manifest CMCD data.",s)}},this.applyFragmentData=i=>{try{const s=i.frag,l=this.hls.levels[s.level],x=this.getObjectType(s),j={d:s.duration*1e3,ot:x};(x===ws.VIDEO||x===ws.AUDIO||x==ws.MUXED)&&(j.br=l.bitrate/1e3,j.tb=this.getTopBandwidth(x)/1e3,j.bl=this.getBufferLength(x)),this.apply(i,j)}catch(s){B.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||Kn(),this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHED,this.onMediaDetached,this),e.on(a.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHED,this.onMediaDetached,this),e.off(a.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=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,i;this.audioBuffer=(r=t.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(i=t.tracks.video)==null?void 0:i.buffer}createData(){var e;return{v:1,sf:ol.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){n(t,this.createData());const r=t.ot===ws.INIT||t.ot===ws.VIDEO||t.ot===ws.MUXED;this.starved&&r&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:i}=this;i&&(t=Object.keys(t).reduce((s,l)=>(i.includes(l)&&(s[l]=t[l]),s),{})),this.useHeaders?(e.headers||(e.headers={}),wo(e.headers,t)):e.url=Kl(e.url,t)}getObjectType(e){const{type:t}=e;if(t==="subtitle")return ws.TIMED_TEXT;if(e.sn==="initSegment")return ws.INIT;if(t==="audio")return ws.AUDIO;if(t==="main")return this.hls.audioTracks.length?ws.VIDEO:ws.MUXED}getTopBandwidth(e){let t=0,r;const i=this.hls;if(e===ws.AUDIO)r=i.audioTracks;else{const s=i.maxAutoLevel,l=s>-1?s+1:i.levels.length;r=i.levels.slice(0,l)}for(const s of r)s.bitrate>t&&(t=s.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.hls.media,r=e===ws.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:Ya.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,l,x){t(s),this.loader.load(s,l,x)}}}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,l,x){t(s),this.loader.load(s,l,x)}}}}const Tl=3e5;class xc{constructor(e){this.hls=void 0,this.log=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.log=B.log.bind(B,"[content-steering]:"),this.registerListeners()}registerListeners(){const e=this.hls;e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.ERROR,this.onError,this))}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)===Ai.SendAlternateToPenaltyBox&&r.flags===ua.MoveAllAlternatesMatchingHost){const i=this.levels;let s=this.pathwayPriority,l=this.pathwayId;if(t.context){const{groupId:x,pathwayId:j,type:J}=t.context;x&&i?l=this.getPathwayForGroupId(x,J,l):j&&(l=j)}l in this.penalizedPathways||(this.penalizedPathways[l]=performance.now()),!s&&i&&(s=i.reduce((x,j)=>(x.indexOf(j.pathwayId)===-1&&x.push(j.pathwayId),x),[])),s&&s.length>1&&(this.updatePathwayPriority(s),r.resolved=this.pathwayId!==l),r.resolved||B.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${l} levels: ${i&&i.length} priorities: ${JSON.stringify(s)} penalized: ${JSON.stringify(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,i=performance.now();Object.keys(r).forEach(s=>{i-r[s]>Tl&&delete r[s]});for(let s=0;s<e.length;s++){const l=e[s];if(l in r)continue;if(l===this.pathwayId)return;const x=this.hls.nextLoadLevel,j=this.hls.levels[x];if(t=this.getLevelsForPathway(l),t.length>0){this.log(`Setting Pathway to "${l}"`),this.pathwayId=l,$i(t),this.hls.trigger(a.LEVELS_UPDATED,{levels:t});const J=this.hls.levels[x];j&&J&&this.levels&&(J.attrs["STABLE-VARIANT-ID"]!==j.attrs["STABLE-VARIANT-ID"]&&J.bitrate!==j.bitrate&&this.log(`Unstable Pathways change from bitrate ${j.bitrate} to ${J.bitrate}`),this.hls.nextLoadLevel=x);break}}}getPathwayForGroupId(e,t,r){const i=this.getLevelsForPathway(r).concat(this.levels||[]);for(let s=0;s<i.length;s++)if(t===vn.AUDIO_TRACK&&i[s].hasAudioGroup(e)||t===vn.SUBTITLE_TRACK&&i[s].hasSubtitleGroup(e))return i[s].pathwayId;return r}clonePathways(e){const t=this.levels;if(!t)return;const r={},i={};e.forEach(s=>{const{ID:l,"BASE-ID":x,"URI-REPLACEMENT":j}=s;if(t.some(fe=>fe.pathwayId===l))return;const J=this.getLevelsForPathway(x).map(fe=>{const Oe=new q(fe.attrs);Oe["PATHWAY-ID"]=l;const Ve=Oe.AUDIO&&`${Oe.AUDIO}_clone_${l}`,Je=Oe.SUBTITLES&&`${Oe.SUBTITLES}_clone_${l}`;Ve&&(r[Oe.AUDIO]=Ve,Oe.AUDIO=Ve),Je&&(i[Oe.SUBTITLES]=Je,Oe.SUBTITLES=Je);const ut=hc(fe.uri,Oe["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",j),Ct=new Wi({attrs:Oe,audioCodec:fe.audioCodec,bitrate:fe.bitrate,height:fe.height,name:fe.name,url:ut,videoCodec:fe.videoCodec,width:fe.width});if(fe.audioGroups)for(let Ft=1;Ft<fe.audioGroups.length;Ft++)Ct.addGroupId("audio",`${fe.audioGroups[Ft]}_clone_${l}`);if(fe.subtitleGroups)for(let Ft=1;Ft<fe.subtitleGroups.length;Ft++)Ct.addGroupId("text",`${fe.subtitleGroups[Ft]}_clone_${l}`);return Ct});t.push(...J),Vu(this.audioTracks,r,j,l),Vu(this.subtitleTracks,i,j,l)})}loadSteeringManifest(e){const t=this.hls.config,r=t.loader;this.loader&&this.loader.destroy(),this.loader=new r(t);let i;try{i=new self.URL(e)}catch(fe){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(i.protocol!=="data:"){const fe=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;i.searchParams.set("_HLS_pathway",this.pathwayId),i.searchParams.set("_HLS_throughput",""+fe)}const s={responseType:"json",url:i.href},l=t.steeringManifestLoadPolicy.default,x=l.errorRetry||l.timeoutRetry||{},j={loadPolicy:l,timeout:l.maxLoadTimeMs,maxRetry:x.maxNumRetry||0,retryDelay:x.retryDelayMs||0,maxRetryDelay:x.maxRetryDelayMs||0},J={onSuccess:(fe,Oe,Ve,Je)=>{this.log(`Loaded steering manifest: "${i}"`);const ut=fe.data;if(ut.VERSION!==1){this.log(`Steering VERSION ${ut.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=ut.TTL;const{"RELOAD-URI":Ct,"PATHWAY-CLONES":Ft,"PATHWAY-PRIORITY":gr}=ut;if(Ct)try{this.uri=new self.URL(Ct,i).href}catch(Fr){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${Ct}`);return}this.scheduleRefresh(this.uri||Ve.url),Ft&&this.clonePathways(Ft);const Or={steeringManifest:ut,url:i.toString()};this.hls.trigger(a.STEERING_MANIFEST_LOADED,Or),gr&&this.updatePathwayPriority(gr)},onError:(fe,Oe,Ve,Je)=>{if(this.log(`Error loading steering manifest: ${fe.code} ${fe.text} (${Oe.url})`),this.stopLoad(),fe.code===410){this.enabled=!1,this.log(`Steering manifest ${Oe.url} no longer available`);return}let ut=this.timeToLoad*1e3;if(fe.code===429){const Ct=this.loader;if(typeof(Ct==null?void 0:Ct.getResponseHeader)=="function"){const Ft=Ct.getResponseHeader("Retry-After");Ft&&(ut=parseFloat(Ft)*1e3)}this.log(`Steering manifest ${Oe.url} rate limited`);return}this.scheduleRefresh(this.uri||Oe.url,ut)},onTimeout:(fe,Oe,Ve)=>{this.log(`Timeout loading steering manifest (${Oe.url})`),this.scheduleRefresh(this.uri||Oe.url)}};this.log(`Requesting steering manifest: ${i}`),this.loader.load(s,j,J)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const i=(r=this.hls)==null?void 0:r.media;if(i&&!i.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Vu(d,e,t,r){d&&Object.keys(e).forEach(i=>{const s=d.filter(l=>l.groupId===i).map(l=>{const x=n({},l);return x.details=void 0,x.attrs=new q(x.attrs),x.url=x.attrs.URI=hc(l.url,l.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),x.groupId=x.attrs["GROUP-ID"]=e[i],x.attrs["PATHWAY-ID"]=r,x});d.push(...s)})}function hc(d,e,t,r){const{HOST:i,PARAMS:s,[t]:l}=r;let x;e&&(x=l==null?void 0:l[e],x&&(d=x));const j=new self.URL(d);return i&&!x&&(j.host=i),s&&Object.keys(s).sort().forEach(J=>{J&&j.searchParams.set(J,s[J])}),j.href}const Yu=/^age:\s*[\d.]+\s*$/im;class Xu{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 ae,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,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;const s=this.xhrSetup;s?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return s(r,t.url)}).catch(l=>{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(l=>{this.callbacks.onError({code:r.status,text:l.message},t,r,i)}):this.openAndSendXhr(r,t,e)}openAndSendXhr(e,t,r){e.readyState||e.open("GET",t.url,!0);const i=t.headers,{maxTimeToFirstByteMs:s,maxLoadTimeMs:l}=r.loadPolicy;if(i)for(const x in i)e.setRequestHeader(x,i[x]);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&&o(s)?s:l,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 i=t.readyState,s=this.config;if(!r.aborted&&i>=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)))),i===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const l=t.status,x=t.responseType==="text"?t.responseText:null;if(l>=200&&l<300){const Oe=x!=null?x:t.response;if(Oe!=null){r.loading.end=Math.max(self.performance.now(),r.loading.first);const Ve=t.responseType==="arraybuffer"?Oe.byteLength:Oe.length;if(r.loaded=r.total=Ve,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first),!this.callbacks)return;const Je=this.callbacks.onProgress;if(Je&&Je(r,e,Oe,t),!this.callbacks)return;const ut={url:t.responseURL,data:Oe,code:l};this.callbacks.onSuccess(ut,r,e,t);return}}const j=s.loadPolicy.errorRetry,J=r.retry,fe={url:e.url,data:void 0,code:l};cs(j,J,!1,fe)?this.retry(j):(B.error(`${l} while loading ${e.url}`),this.callbacks.onError({code:l,text:t.statusText},e,t,r))}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(cs(e,t,!0))this.retry(e);else{var r;B.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const i=this.callbacks;i&&(this.abortInternal(),i.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:r}=this;this.retryDelay=Pa(e,r.retry),r.retry++,B.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&&Yu.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}}function Ec(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(d){}return!1}const pc=/(\d+)-(\d+)\/(\d+)/;class xo{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||ru,this.controller=new self.AbortController,this.stats=new ae}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 i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();const s=Ju(e,this.controller.signal),l=r.onProgress,x=e.responseType==="arraybuffer",j=x?"byteLength":"length",{maxTimeToFirstByteMs:J,maxLoadTimeMs:fe}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,s),self.clearTimeout(this.requestTimeout),t.timeout=J&&o(J)?J:fe,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,e,this.response)},t.timeout),self.fetch(this.request).then(Oe=>{this.response=this.loader=Oe;const Ve=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=fe,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),r.onTimeout(i,e,this.response)},fe-(Ve-i.loading.start)),!Oe.ok){const{status:Je,statusText:ut}=Oe;throw new Oo(ut||"fetch, bad network response",Je,Oe)}return i.loading.first=Ve,i.total=Ul(Oe.headers)||i.total,l&&o(t.highWaterMark)?this.loadProgressively(Oe,i,e,t.highWaterMark,l):x?Oe.arrayBuffer():e.responseType==="json"?Oe.json():Oe.text()}).then(Oe=>{const Ve=this.response;if(!Ve)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);const Je=Oe[j];Je&&(i.loaded=i.total=Je);const ut={url:Ve.url,data:Oe,code:Ve.status};l&&!o(t.highWaterMark)&&l(i,e,Oe,Ve),r.onSuccess(ut,i,e,Ve)}).catch(Oe=>{if(self.clearTimeout(this.requestTimeout),i.aborted)return;const Ve=Oe&&Oe.code||0,Je=Oe?Oe.message:null;r.onError({code:Ve,text:Je},e,Oe?Oe.details:null,i)})}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,i=0,s){const l=new Wl,x=e.body.getReader(),j=()=>x.read().then(J=>{if(J.done)return l.dataLength&&s(t,r,l.flush(),e),Promise.resolve(new ArrayBuffer(0));const fe=J.value,Oe=fe.length;return t.loaded+=Oe,Oe<i||l.dataLength?(l.push(fe),l.dataLength>=i&&s(t,r,l.flush(),e)):s(t,r,fe,e),j()}).catch(()=>Promise.reject());return j()}}function Ju(d,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(n({},d.headers))};return d.rangeEnd&&t.headers.set("Range","bytes="+d.rangeStart+"-"+String(d.rangeEnd-1)),t}function no(d){const e=pc.exec(d);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Ul(d){const e=d.get("Content-Range");if(e){const r=no(e);if(o(r))return r}const t=d.get("Content-Length");if(t)return parseInt(t)}function ru(d,e){return new self.Request(d.url,e)}class Oo extends Error{constructor(e,t,r){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=r}}const nu=/\s/,Eu={newCue(d,e,t,r){const i=[];let s,l,x,j,J;const fe=self.VTTCue||self.TextTrackCue;for(let Ve=0;Ve<r.rows.length;Ve++)if(s=r.rows[Ve],x=!0,j=0,J="",!s.isEmpty()){var Oe;for(let Ct=0;Ct<s.chars.length;Ct++)nu.test(s.chars[Ct].uchar)&&x?j++:(J+=s.chars[Ct].uchar,x=!1);s.cueStartTime=e,e===t&&(t+=1e-4),j>=16?j--:j++;const Je=Ro(J.trim()),ut=Yl(e,t,Je);d!=null&&(Oe=d.cues)!=null&&Oe.getCueById(ut)||(l=new fe(e,t,Je),l.id=ut,l.line=Ve+1,l.align="left",l.position=10+Math.min(80,Math.floor(j*8/32)*10),i.push(l))}return d&&i.length&&(i.sort((Ve,Je)=>Ve.line==="auto"||Je.line==="auto"?0:Ve.line>8&&Je.line>8?Je.line-Ve.line:Ve.line-Je.line),i.forEach(Ve=>fa(d,Ve))),i}},Ql={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},pl=ie(ie({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,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,loader:Xu,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:ns,bufferController:si,capLevelController:yu,errorController:vs,fpsController:Xl,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:Kr,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:Ql},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}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},qu()),{},{subtitleStreamController:Sa,subtitleTrackController:Xi,timelineController:Oa,audioStreamController:pi,audioTrackController:Ji,emeController:Bl,cmcdController:el,contentSteeringController:xc});function qu(){return{cueHandler:Eu,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 Cc(d,e){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 t=Mu(d),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,x=e[l]===void 0,j=[];i.forEach(J=>{const fe=`${s}Loading${J}`,Oe=e[fe];if(Oe!==void 0&&x){j.push(fe);const Ve=t[l].default;switch(e[l]={default:Ve},J){case"TimeOut":Ve.maxLoadTimeMs=Oe,Ve.maxTimeToFirstByteMs=Oe;break;case"MaxRetry":Ve.errorRetry.maxNumRetry=Oe,Ve.timeoutRetry.maxNumRetry=Oe;break;case"RetryDelay":Ve.errorRetry.retryDelayMs=Oe,Ve.timeoutRetry.retryDelayMs=Oe;break;case"MaxRetryTimeout":Ve.errorRetry.maxRetryDelayMs=Oe,Ve.timeoutRetry.maxRetryDelayMs=Oe;break}}}),j.length&&B.warn(`hls.js config: "${j.join('", "')}" setting(s) are deprecated, use "${l}": ${JSON.stringify(e[l])}`)}),ie(ie({},t),e)}function Mu(d){return d&&typeof d=="object"?Array.isArray(d)?d.map(Mu):Object.keys(d).reduce((e,t)=>(e[t]=Mu(d[t]),e),{}):d}function jl(d){const e=d.loader;e!==xo&&e!==Xu?(B.log("[config]: Custom loader detected, cannot enable progressive streaming"),d.progressive=!1):Ec()&&(d.loader=xo,d.progressive=!0,d.enableSoftwareAES=!0,B.log("[config]: Progressive streaming enabled, using FetchLoader"))}let iu;class ul extends Ra{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(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this),e.on(a.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this),e.off(a.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,i=[],s={},l={};let x=!1,j=!1,J=!1;t.levels.forEach(fe=>{var Oe,Ve;const Je=fe.attrs;let{audioCodec:ut,videoCodec:Ct}=fe;((Oe=ut)==null?void 0:Oe.indexOf("mp4a.40.34"))!==-1&&(iu||(iu=/chrome|firefox/i.test(navigator.userAgent)),iu&&(fe.audioCodec=ut=void 0)),ut&&(fe.audioCodec=ut=qn(ut,r)),((Ve=Ct)==null?void 0:Ve.indexOf("avc1"))===0&&(Ct=fe.videoCodec=Qi(Ct));const{width:Ft,height:gr,unknownCodecs:Or}=fe;if(x||(x=!!(Ft&&gr)),j||(j=!!Ct),J||(J=!!ut),Or!=null&&Or.length||ut&&!hr(ut,"audio",r)||Ct&&!hr(Ct,"video",r))return;const{CODECS:Fr,"FRAME-RATE":Un,"HDCP-LEVEL":an,"PATHWAY-ID":mi,RESOLUTION:zn,"VIDEO-RANGE":Ti}=Je,di=`${`${mi||"."}-`}${fe.bitrate}-${zn}-${Un}-${Fr}-${Ti}-${an}`;if(s[di])if(s[di].uri!==fe.url&&!fe.attrs["PATHWAY-ID"]){const Ni=l[di]+=1;fe.attrs["PATHWAY-ID"]=new Array(Ni+1).join(".");const za=new Wi(fe);s[di]=za,i.push(za)}else s[di].addGroupId("audio",Je.AUDIO),s[di].addGroupId("text",Je.SUBTITLES);else{const Ni=new Wi(fe);s[di]=Ni,l[di]=1,i.push(Ni)}}),this.filterAndSortMediaOptions(i,t,x,j,J)}filterAndSortMediaOptions(e,t,r,i,s){let l=[],x=[],j=e;if((r||i)&&s&&(j=j.filter(({videoCodec:ut,videoRange:Ct,width:Ft,height:gr})=>(!!ut||!!(Ft&&gr))&&la(Ct))),j.length===0){Promise.resolve().then(()=>{if(this.hls){t.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(t.levels[0].attrs)}`);const ut=new Error("no level with compatible codecs found in manifest");this.hls.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:ut,reason:ut.message})}});return}if(t.audioTracks){const{preferManagedMediaSource:ut}=this.hls.config;l=t.audioTracks.filter(Ct=>!Ct.audioCodec||hr(Ct.audioCodec,"audio",ut)),Uo(l)}t.subtitles&&(x=t.subtitles,Uo(x));const J=j.slice(0);j.sort((ut,Ct)=>{if(ut.attrs["HDCP-LEVEL"]!==Ct.attrs["HDCP-LEVEL"])return(ut.attrs["HDCP-LEVEL"]||"")>(Ct.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&ut.height!==Ct.height)return ut.height-Ct.height;if(ut.frameRate!==Ct.frameRate)return ut.frameRate-Ct.frameRate;if(ut.videoRange!==Ct.videoRange)return Mi.indexOf(ut.videoRange)-Mi.indexOf(Ct.videoRange);if(ut.videoCodec!==Ct.videoCodec){const Ft=Zr(ut.videoCodec),gr=Zr(Ct.videoCodec);if(Ft!==gr)return gr-Ft}if(ut.uri===Ct.uri&&ut.codecSet!==Ct.codecSet){const Ft=Qr(ut.codecSet),gr=Qr(Ct.codecSet);if(Ft!==gr)return gr-Ft}return ut.averageBitrate!==Ct.averageBitrate?ut.averageBitrate-Ct.averageBitrate:0});let fe=J[0];if(this.steering&&(j=this.steering.filterParsedLevels(j),j.length!==J.length)){for(let ut=0;ut<J.length;ut++)if(J[ut].pathwayId===j[0].pathwayId){fe=J[ut];break}}this._levels=j;for(let ut=0;ut<j.length;ut++)if(j[ut]===fe){var Oe;this._firstLevel=ut;const Ct=fe.bitrate,Ft=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${j.length} level(s) found, first bitrate: ${Ct}`),((Oe=this.hls.userConfig)==null?void 0:Oe.abrEwmaDefaultEstimate)===void 0){const gr=Math.min(Ct,this.hls.config.abrEwmaDefaultEstimateMax);gr>Ft&&Ft===pl.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=gr)}break}const Ve=s&&!i,Je={levels:j,audioTracks:l,subtitleTracks:x,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:s,video:i,altAudio:!Ve&&l.some(ut=>!!ut.url)};this.hls.trigger(a.MANIFEST_PARSED,Je),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const fe=new Error("invalid level idx"),Oe=e<0;if(this.hls.trigger(a.ERROR,{type:A.OTHER_ERROR,details:m.LEVEL_SWITCH_ERROR,level:e,fatal:Oe,error:fe,reason:fe.message}),Oe)return;e=Math.min(e,t.length-1)}const r=this.currentLevelIndex,i=this.currentLevel,s=i?i.attrs["PATHWAY-ID"]:void 0,l=t[e],x=l.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=l,r===e&&l.details&&i&&s===x)return;this.log(`Switching to level ${e} (${l.height?l.height+"p ":""}${l.videoRange?l.videoRange+" ":""}${l.codecSet?l.codecSet+" ":""}@${l.bitrate})${x?" with Pathway "+x:""} from level ${r}${s?" with Pathway "+s:""}`);const j={level:e,attrs:l.attrs,details:l.details,bitrate:l.bitrate,averageBitrate:l.averageBitrate,maxBitrate:l.maxBitrate,realBitrate:l.realBitrate,width:l.width,height:l.height,codecSet:l.codecSet,audioCodec:l.audioCodec,videoCodec:l.videoCodec,audioGroups:l.audioGroups,subtitleGroups:l.subtitleGroups,loaded:l.loaded,loadError:l.loadError,fragmentError:l.fragmentError,name:l.name,id:l.id,uri:l.uri,url:l.url,urlId:0,audioGroupIds:l.audioGroupIds,textGroupIds:l.textGroupIds};this.hls.trigger(a.LEVEL_SWITCHING,j);const J=l.details;if(!J||J.live){const fe=this.switchParams(l.uri,i==null?void 0:i.details,J);this.loadPlaylist(fe)}}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}onError(e,t){t.fatal||!t.context||t.context.type===vn.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===Ht.MAIN){const r=t.elementaryStreams;if(!Object.keys(r).some(s=>!!r[s]))return;const i=this._levels[t.level];i!=null&&i.loadError&&(this.log(`Resetting level error count of ${i.loadError} on frag buffered`),i.loadError=0)}}onLevelLoaded(e,t){var r;const{level:i,details:s}=t,l=this._levels[i];if(!l){var x;this.warn(`Invalid level index ${i}`),(x=t.deliveryDirectives)!=null&&x.skip&&(s.deltaUpdateFailed=!0);return}i===this.currentLevelIndex?(l.fragmentError===0&&(l.loadError=0),this.playlistLoaded(i,t,l.details)):(r=t.deliveryDirectives)!=null&&r.skip&&(s.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist();const t=this.currentLevelIndex,r=this.currentLevel;if(r&&this.shouldLoadPlaylist(r)){let i=r.uri;if(e)try{i=e.addDirectives(i)}catch(l){this.warn(`Could not construct new URL with HLS Delivery Directives: ${l}`)}const s=r.attrs["PATHWAY-ID"];this.log(`Loading level index ${t}${(e==null?void 0:e.msn)!==void 0?" at sn "+e.msn+" part "+e.part:""} with${s?" Pathway "+s:""} ${i}`),this.clearTimer(),this.hls.trigger(a.LEVEL_LOADING,{url:i,level:t,pathwayId:r.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||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;const r=this._levels.filter((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(l=>l.level=-1)),!1));$i(r),this._levels=r,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(a.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(a.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function Uo(d){const e={};d.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}class Uu{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyUriToKeyInfo){const i=this.keyUriToKeyInfo[r].loader;if(i){var t;if(e&&e!==((t=i.context)==null?void 0:t.frag.type))return;i.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=m.KEY_LOAD_ERROR,r,i,s){return new Cs({type:A.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:s,error:r,networkDetails:i})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:r,cc:i}=e;for(let s=0;s<t.length;s++){const l=t[s];if(i<=l.cc&&(r==="initSegment"||l.sn==="initSegment"||r<l.sn)){this.emeController.selectKeySystemFormat(l).then(x=>{l.setKeyFormat(x)});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,i;t&&e.setKeyFormat(t);const s=e.decryptdata;if(!s){const J=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,m.KEY_LOAD_ERROR,J))}const l=s.uri;if(!l)return Promise.reject(this.createKeyLoadError(e,m.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${l}"`)));let x=this.keyUriToKeyInfo[l];if((r=x)!=null&&r.decryptdata.key)return s.key=x.decryptdata.key,Promise.resolve({frag:e,keyInfo:x});if((i=x)!=null&&i.keyLoadPromise){var j;switch((j=x.mediaKeySessionContext)==null?void 0:j.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return x.keyLoadPromise.then(J=>(s.key=J.keyInfo.decryptdata.key,{frag:e,keyInfo:x}))}}switch(x=this.keyUriToKeyInfo[l]={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(x,e):this.loadKeyEME(x,e);case"AES-128":return this.loadKeyHTTP(x,e);default:return Promise.reject(this.createKeyLoadError(e,m.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 i=this.emeController.loadKey(r);if(i)return(e.keyLoadPromise=i.then(s=>(e.mediaKeySessionContext=s,r))).catch(s=>{throw e.keyLoadPromise=null,s})}return Promise.resolve(r)}loadKeyHTTP(e,t){const r=this.config,i=r.loader,s=new i(r);return t.keyLoader=e.loader=s,e.keyLoadPromise=new Promise((l,x)=>{const j={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},J=r.keyLoadPolicy.default,fe={loadPolicy:J,timeout:J.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Oe={onSuccess:(Ve,Je,ut,Ct)=>{const{frag:Ft,keyInfo:gr,url:Or}=ut;if(!Ft.decryptdata||gr!==this.keyUriToKeyInfo[Or])return x(this.createKeyLoadError(Ft,m.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Ct));gr.decryptdata.key=Ft.decryptdata.key=new Uint8Array(Ve.data),Ft.keyLoader=null,gr.loader=null,l({frag:Ft,keyInfo:gr})},onError:(Ve,Je,ut,Ct)=>{this.resetLoader(Je),x(this.createKeyLoadError(t,m.KEY_LOAD_ERROR,new Error(`HTTP Error ${Ve.code} loading key ${Ve.text}`),ut,ie({url:j.url,data:void 0},Ve)))},onTimeout:(Ve,Je,ut)=>{this.resetLoader(Je),x(this.createKeyLoadError(t,m.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),ut))},onAbort:(Ve,Je,ut)=>{this.resetLoader(Je),x(this.createKeyLoadError(t,m.INTERNAL_ABORTED,new Error("key loading aborted"),ut))}};s.load(j,fe,Oe)})}resetLoader(e){const{frag:t,keyInfo:r,url:i}=e,s=r.loader;t.keyLoader===s&&(t.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[i],s&&s.destroy()}}function au(){return self.SourceBuffer||self.WebKitSourceBuffer}function su(){if(!Xn())return!1;const e=au();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function mc(){if(!su())return!1;const d=Xn();return typeof(d==null?void 0:d.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>d.isTypeSupported(Pr(e,"video")))||["mp4a.40.2","fLaC"].some(e=>d.isTypeSupported(Pr(e,"audio"))))}function Cu(){var d;const e=au();return typeof(e==null||(d=e.prototype)==null?void 0:d.changeType)=="function"}const Eo=250,Qu=2,cl=.1,Hl=.05;class gc{constructor(e,t,r,i){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=e,this.media=t,this.fragmentTracker=r,this.hls=i}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(e,t){const{config:r,media:i,stalled:s}=this;if(i===null)return;const{currentTime:l,seeking:x}=i,j=this.seeking&&!x,J=!this.seeking&&x;if(this.seeking=x,l!==e){if(this.moved=!0,x||(this.nudgeRetry=0),s!==null){if(this.stallReported){const Ft=self.performance.now()-s;B.warn(`playback not stuck anymore @${l}, after ${Math.round(Ft)}ms`),this.stallReported=!1}this.stalled=null}return}if(J||j){this.stalled=null;return}if(i.paused&&!x||i.ended||i.playbackRate===0||!Ya.getBuffered(i).length){this.nudgeRetry=0;return}const fe=Ya.bufferInfo(i,l,0),Oe=fe.nextStart||0;if(x){const Ft=fe.len>Qu,gr=!Oe||t&&t.start<=l||Oe-l>Qu&&!this.fragmentTracker.getPartialFragment(l);if(Ft||gr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Ve;if(!(fe.len>0)&&!Oe)return;const gr=Math.max(Oe,fe.start||0)-l,Or=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Un=(Or==null||(Ve=Or.details)==null?void 0:Ve.live)?Or.details.targetduration*2:Qu,an=this.fragmentTracker.getPartialFragment(l);if(gr>0&&(gr<=Un||an)){i.paused||this._trySkipBufferHole(an);return}}const Je=self.performance.now();if(s===null){this.stalled=Je;return}const ut=Je-s;if(!x&&ut>=Eo&&(this._reportStall(fe),!this.media))return;const Ct=Ya.bufferInfo(i,l,r.maxBufferHole);this._tryFixBufferStall(Ct,ut)}_tryFixBufferStall(e,t){const{config:r,fragmentTracker:i,media:s}=this;if(s===null)return;const l=s.currentTime,x=i.getPartialFragment(l);x&&(this._trySkipBufferHole(x)||!this.media)||(e.len>r.maxBufferHole||e.nextStart&&e.nextStart-l<r.maxBufferHole)&&t>r.highBufferWatchdogPeriod*1e3&&(B.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(e){const{hls:t,media:r,stallReported:i}=this;if(!i&&r){this.stallReported=!0;const s=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${JSON.stringify(e)})`);B.warn(s.message),t.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len})}}_trySkipBufferHole(e){const{config:t,hls:r,media:i}=this;if(i===null)return 0;const s=i.currentTime,l=Ya.bufferInfo(i,s,0),x=s<l.start?l.start:l.nextStart;if(x){const j=l.len<=t.maxBufferHole,J=l.len>0&&l.len<1&&i.readyState<3,fe=x-s;if(fe>0&&(j||J)){if(fe>t.maxBufferHole){const{fragmentTracker:Ve}=this;let Je=!1;if(s===0){const ut=Ve.getAppendedFrag(0,Ht.MAIN);ut&&x<ut.end&&(Je=!0)}if(!Je){const ut=e||Ve.getAppendedFrag(s,Ht.MAIN);if(ut){let Ct=!1,Ft=ut.end;for(;Ft<x;){const gr=Ve.getPartialFragment(Ft);if(gr)Ft+=gr.duration;else{Ct=!0;break}}if(Ct)return 0}}}const Oe=Math.max(x+Hl,s+cl);if(B.warn(`skipping hole, adjusting currentTime from ${s} to ${Oe}`),this.moved=!0,this.stalled=null,i.currentTime=Oe,e&&!e.gap){const Ve=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${Oe}`);r.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:Ve,reason:Ve.message,frag:e})}return Oe}}return 0}_tryNudgeBuffer(){const{config:e,hls:t,media:r,nudgeRetry:i}=this;if(r===null)return;const s=r.currentTime;if(this.nudgeRetry++,i<e.nudgeMaxRetry){const l=s+(i+1)*e.nudgeOffset,x=new Error(`Nudging 'currentTime' from ${s} to ${l}`);B.warn(x.message),r.currentTime=l,t.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_NUDGE_ON_STALL,error:x,fatal:!1})}else{const l=new Error(`Playhead still not moving while enough data buffered @${s} after ${e.nudgeMaxRetry} nudges`);B.error(l.message),t.trigger(a.ERROR,{type:A.MEDIA_ERROR,details:m.BUFFER_STALLED_ERROR,error:l,fatal:!0})}}}const Tc=100;class ec extends Au{constructor(e,t,r){super(e,t,r,"[stream-controller]",Ht.MAIN),this.audioCodecSwap=!1,this.gapController=null,this.level=-1,this._forceStartLoad=!1,this.altAudio=!1,this.audioOnly=!1,this.fragPlaying=null,this.onvplaying=null,this.onvseeked=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(a.MANIFEST_LOADING,this.onManifestLoading,this),e.on(a.MANIFEST_PARSED,this.onManifestParsed,this),e.on(a.LEVEL_LOADING,this.onLevelLoading,this),e.on(a.LEVEL_LOADED,this.onLevelLoaded,this),e.on(a.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(a.ERROR,this.onError,this),e.on(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(a.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(a.BUFFER_CREATED,this.onBufferCreated,this),e.on(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(a.FRAG_BUFFERED,this.onFragBuffered,this)}_unregisterListeners(){const{hls:e}=this;e.off(a.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(a.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(a.MANIFEST_LOADING,this.onManifestLoading,this),e.off(a.MANIFEST_PARSED,this.onManifestParsed,this),e.off(a.LEVEL_LOADED,this.onLevelLoaded,this),e.off(a.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(a.ERROR,this.onError,this),e.off(a.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(a.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(a.BUFFER_CREATED,this.onBufferCreated,this),e.off(a.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(a.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(a.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this._unregisterListeners(),super.onHandlerDestroying()}startLoad(e){if(this.levels){const{lastCurrentTime:t,hls:r}=this;if(this.stopLoad(),this.setInterval(Tc),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this.loadedmetadata=!1}t>0&&e===-1&&(this.log(`Override startPosition with lastCurrentTime @${t.toFixed(3)}`),e=t),this.state=li.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=li.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case li.WAITING_LEVEL:{const{levels:t,level:r}=this,i=t==null?void 0:t[r],s=i==null?void 0:i.details;if(s&&(!s.live||this.levelLastLoaded===i)){if(this.waitForCdnTuneIn(s))break;this.state=li.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=li.IDLE;break}break}case li.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:i,level:s}=this,l=i==null?void 0:i[s];this.resetStartWhenNotLoaded(l||null),this.state=li.IDLE}}break}this.state===li.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:r,media:i}=this;if(t===null||!i&&(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 l=r[s],x=this.getMainFwdBufferInfo();if(x===null)return;const j=this.getLevelDetails();if(j&&this._streamEnded(x,j)){const Ct={};this.altAudio&&(Ct.type="video"),this.hls.trigger(a.BUFFER_EOS,Ct),this.state=li.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 J=l.details;if(!J||this.state===li.WAITING_LEVEL||J.live&&this.levelLastLoaded!==l){this.level=s,this.state=li.WAITING_LEVEL;return}const fe=x.len,Oe=this.getMaxBufferLength(l.maxBitrate);if(fe>=Oe)return;this.backtrackFragment&&this.backtrackFragment.start>x.end&&(this.backtrackFragment=null);const Ve=this.backtrackFragment?this.backtrackFragment.start:x.end;let Je=this.getNextFragment(Ve,J);if(this.couldBacktrack&&!this.fragPrevious&&Je&&Je.sn!=="initSegment"&&this.fragmentTracker.getState(Je)!==Ea.OK){var ut;const Ft=((ut=this.backtrackFragment)!=null?ut:Je).sn-J.startSN,gr=J.fragments[Ft-1];gr&&Je.cc===gr.cc&&(Je=gr,this.fragmentTracker.removeFragment(gr))}else this.backtrackFragment&&x.len&&(this.backtrackFragment=null);if(Je&&this.isLoopLoading(Je,Ve)){if(!Je.gap){const Ft=this.audioOnly&&!this.altAudio?me.AUDIO:me.VIDEO,gr=(Ft===me.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;gr&&this.afterBufferFlushed(gr,Ft,Ht.MAIN)}Je=this.getNextFragmentLoopLoading(Je,J,x,Ht.MAIN,Oe)}Je&&(Je.initSegment&&!Je.initSegment.data&&!this.bitrateTest&&(Je=Je.initSegment),this.loadFragment(Je,l,Ve))}loadFragment(e,t,r){const i=this.fragmentTracker.getState(e);this.fragCurrent=e,i===Ea.NOT_LOADED||i===Ea.PARTIAL?e.sn==="initSegment"?this._loadInitSegment(e,t):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)):(this.startFragRequested=!0,super.loadFragment(e,t,r)):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,Ht.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 i=this.getAppendedFrag(t.currentTime);i&&i.start>1&&this.flushMainBuffer(0,i.start-1);const s=this.getLevelDetails();if(s!=null&&s.live){const x=this.getMainFwdBufferInfo();if(!x||x.len<s.targetduration*2)return}if(!t.paused&&e){const x=this.hls.nextLoadLevel,j=e[x],J=this.fragLastKbps;J&&this.fragCurrent?r=this.fragCurrent.duration*j.maxBitrate/(1e3*J)+1:r=0}else r=0;const l=this.getBufferedFrag(t.currentTime+r);if(l){const x=this.followingBufferedFrag(l);if(x){this.abortCurrentFrag();const j=x.maxStartPTS?x.maxStartPTS:x.start,J=x.duration,fe=Math.max(l.end,j+Math.min(Math.max(J-this.config.maxFragLookUpTolerance,J*(this.couldBacktrack?.5:.125)),J*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(fe,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 li.KEY_LOADING:case li.FRAG_LOADING:case li.FRAG_LOADING_WAITING_RETRY:case li.PARSING:case li.PARSED:this.state=li.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const r=t.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new gc(this.config,r,this.fragmentTracker,this.hls)}onMediaDetaching(){const{media:e}=this;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),super.onMediaDetaching()}onMediaPlaying(){this.tick()}onMediaSeeked(){const e=this.media,t=e?e.currentTime:null;o(t)&&this.log(`Media seeked to ${t.toFixed(3)}`);const r=this.getMainFwdBufferInfo();if(r===null||r.len===0){this.warn(`Main forward buffer length on "seeked" event ${r?r.len:"empty"})`);return}this.tick()}onManifestLoading(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(a.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}onManifestParsed(e,t){let r=!1,i=!1;t.levels.forEach(s=>{const l=s.audioCodec;l&&(r=r||l.indexOf("mp4a.40.2")!==-1,i=i||l.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=r&&i&&!Cu(),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!==li.IDLE)return;const i=r[t.level];(!i.details||i.details.live&&this.levelLastLoaded!==i||this.waitForCdnTuneIn(i.details))&&(this.state=li.WAITING_LEVEL)}onLevelLoaded(e,t){var r;const{levels:i}=this,s=t.level,l=t.details,x=l.totalduration;if(!i){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""}, cc [${l.startCC}, ${l.endCC}] duration:${x}`);const j=i[s],J=this.fragCurrent;J&&(this.state===li.FRAG_LOADING||this.state===li.FRAG_LOADING_WAITING_RETRY)&&J.level!==t.level&&J.loader&&this.abortCurrentFrag();let fe=0;if(l.live||(r=j.details)!=null&&r.live){var Oe;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;fe=this.alignPlaylists(l,j.details,(Oe=this.levelLastLoaded)==null?void 0:Oe.details)}if(j.details=l,this.levelLastLoaded=j,this.hls.trigger(a.LEVEL_UPDATED,{details:l,level:s}),this.state===li.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=li.IDLE}this.startFragRequested?l.live&&this.synchronizeToLiveEdge(l):this.setStartPosition(l,fe),this.tick()}_handleFragmentLoadProgress(e){var t;const{frag:r,part:i,payload:s}=e,{levels:l}=this;if(!l){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const x=l[r.level],j=x.details;if(!j){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const J=x.videoCodec,fe=j.PTSKnown||!j.live,Oe=(t=r.initSegment)==null?void 0:t.data,Ve=this._getAudioCodec(x),Je=this.transmuxer=this.transmuxer||new dn(this.hls,Ht.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),ut=i?i.index:-1,Ct=ut!==-1,Ft=new bl(r.level,r.sn,r.stats.chunkCount,s.byteLength,ut,Ct),gr=this.initPTS[r.cc];Je.push(s,Oe,Ve,J,r,i,j.totalduration,fe,Ft,gr)}onAudioTrackSwitching(e,t){const r=this.altAudio;if(!!!t.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const l=this.fragCurrent;l&&(this.log("Switching to main audio track, cancel main fragment load"),l.abortRequests(),this.fragmentTracker.removeFragment(l)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const s=this.hls;r&&(s.trigger(a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),s.trigger(a.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const r=t.id,i=!!this.hls.audioTracks[r].url;if(i){const s=this.videoBuffer;s&&this.mediaBuffer!==s&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=s)}this.altAudio=i,this.tick()}onBufferCreated(e,t){const r=t.tracks;let i,s,l=!1;for(const x in r){const j=r[x];if(j.id==="main"){if(s=x,i=j,x==="video"){const J=r[x];J&&(this.videoBuffer=J.buffer)}}else l=!0}l&&i?(this.log(`Alternate track found, use ${s}.buffered to schedule main fragment loading`),this.mediaBuffer=i.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:r,part:i}=t;if(r&&r.type!==Ht.MAIN)return;if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${i?" p: "+i.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===li.PARSED&&(this.state=li.IDLE);return}const s=i?i.stats:r.stats;this.fragLastKbps=Math.round(8*s.total/(s.buffering.end-s.loading.first)),r.sn!=="initSegment"&&(this.fragPrevious=r),this.fragBufferedComplete(r,i)}onError(e,t){var r;if(t.fatal){this.state=li.ERROR;return}switch(t.details){case m.FRAG_GAP:case m.FRAG_PARSING_ERROR:case m.FRAG_DECRYPT_ERROR:case m.FRAG_LOAD_ERROR:case m.FRAG_LOAD_TIMEOUT:case m.KEY_LOAD_ERROR:case m.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ht.MAIN,t);break;case m.LEVEL_LOAD_ERROR:case m.LEVEL_LOAD_TIMEOUT:case m.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===li.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===vn.LEVEL&&(this.state=li.IDLE);break;case m.BUFFER_APPEND_ERROR:case m.BUFFER_FULL_ERROR:if(!t.parent||t.parent!=="main")return;if(t.details===m.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case m.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}checkBuffer(){const{media:e,gapController:t}=this;if(!(!e||!t||!e.readyState)){if(this.loadedmetadata||!Ya.getBuffered(e).length){const r=this.state!==li.IDLE?this.fragCurrent:null;t.poll(this.lastCurrentTime,r)}this.lastCurrentTime=e.currentTime}}onFragLoadEmergencyAborted(){this.state=li.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==me.AUDIO||this.audioOnly&&!this.altAudio){const r=(t===me.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,t,Ht.MAIN),this.tick()}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),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 i=Ya.getBuffered(e),l=(i.length?i.start(0):0)-r;l>0&&(l<this.config.maxBufferHole||l<this.config.maxFragLookUpTolerance)&&(this.log(`adjusting start position by ${l} to match buffer start`),r+=l,this.startPosition=r),this.log(`seek to target start position ${r} from current time ${t}`),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:i}=this;if(!r||this.fragContextChanged(e))return;t.fragmentError=0,this.state=li.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=e.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),i.trigger(a.FRAG_LOADED,r),e.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const r="main",{hls:i}=this,{remuxResult:s,chunkMeta:l}=e,x=this.getCurrentContext(l);if(!x){this.resetWhenMissingContext(l);return}const{frag:j,part:J,level:fe}=x,{video:Oe,text:Ve,id3:Je,initSegment:ut}=s,{details:Ct}=fe,Ft=this.altAudio?void 0:s.audio;if(this.fragContextChanged(j)){this.fragmentTracker.removeFragment(j);return}if(this.state=li.PARSING,ut){if(ut!=null&&ut.tracks){const Fr=j.initSegment||j;this._bufferInitSegment(fe,ut.tracks,Fr,l),i.trigger(a.FRAG_PARSING_INIT_SEGMENT,{frag:Fr,id:r,tracks:ut.tracks})}const gr=ut.initPTS,Or=ut.timescale;o(gr)&&(this.initPTS[j.cc]={baseTime:gr,timescale:Or},i.trigger(a.INIT_PTS_FOUND,{frag:j,id:r,initPTS:gr,timescale:Or}))}if(Oe&&Ct&&j.sn!=="initSegment"){const gr=Ct.fragments[j.sn-1-Ct.startSN],Or=j.sn===Ct.startSN,Fr=!gr||j.cc>gr.cc;if(s.independent!==!1){const{startPTS:Un,endPTS:an,startDTS:mi,endDTS:zn}=Oe;if(J)J.elementaryStreams[Oe.type]={startPTS:Un,endPTS:an,startDTS:mi,endDTS:zn};else if(Oe.firstKeyFrame&&Oe.independent&&l.id===1&&!Fr&&(this.couldBacktrack=!0),Oe.dropped&&Oe.independent){const Ti=this.getMainFwdBufferInfo(),qi=(Ti?Ti.end:this.getLoadPosition())+this.config.maxBufferHole,di=Oe.firstKeyFramePTS?Oe.firstKeyFramePTS:Un;if(!Or&&qi<di-this.config.maxBufferHole&&!Fr){this.backtrack(j);return}else Fr&&(j.gap=!0);j.setElementaryStreamInfo(Oe.type,j.start,an,j.start,zn,!0)}else Or&&Un>Qu&&(j.gap=!0);j.setElementaryStreamInfo(Oe.type,Un,an,mi,zn),this.backtrackFragment&&(this.backtrackFragment=j),this.bufferFragmentData(Oe,j,J,l,Or||Fr)}else if(Or||Fr)j.gap=!0;else{this.backtrack(j);return}}if(Ft){const{startPTS:gr,endPTS:Or,startDTS:Fr,endDTS:Un}=Ft;J&&(J.elementaryStreams[me.AUDIO]={startPTS:gr,endPTS:Or,startDTS:Fr,endDTS:Un}),j.setElementaryStreamInfo(me.AUDIO,gr,Or,Fr,Un),this.bufferFragmentData(Ft,j,J,l)}if(Ct&&Je!=null&&(t=Je.samples)!=null&&t.length){const gr={id:r,frag:j,details:Ct,samples:Je.samples};i.trigger(a.FRAG_PARSING_METADATA,gr)}if(Ct&&Ve){const gr={id:r,frag:j,details:Ct,samples:Ve.samples};i.trigger(a.FRAG_PARSING_USERDATA,gr)}}_bufferInitSegment(e,t,r,i){if(this.state!==li.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:s,video:l,audiovideo:x}=t;if(s){let j=e.audioCodec;const J=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){j&&(j.indexOf("mp4a.40.5")!==-1?j="mp4a.40.2":j="mp4a.40.5");const fe=s.metadata;fe&&"channelCount"in fe&&(fe.channelCount||1)!==1&&J.indexOf("firefox")===-1&&(j="mp4a.40.5")}j&&j.indexOf("mp4a.40.5")!==-1&&J.indexOf("android")!==-1&&s.container!=="audio/mpeg"&&(j="mp4a.40.2",this.log(`Android: force audio codec to ${j}`)),e.audioCodec&&e.audioCodec!==j&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${j}"`),s.levelCodec=j,s.id="main",this.log(`Init audio buffer, container:${s.container}, codecs[selected/level/parsed]=[${j||""}/${e.audioCodec||""}/${s.codec}]`)}l&&(l.levelCodec=e.videoCodec,l.id="main",this.log(`Init video buffer, container:${l.container}, codecs[level/parsed]=[${e.videoCodec||""}/${l.codec}]`)),x&&this.log(`Init audiovideo buffer, container:${x.container}, codecs[level/parsed]=[${e.codecs}/${x.codec}]`),this.hls.trigger(a.BUFFER_CODECS,t),Object.keys(t).forEach(j=>{const fe=t[j].initSegment;fe!=null&&fe.byteLength&&this.hls.trigger(a.BUFFER_APPENDING,{type:j,data:fe,frag:r,part:null,chunkMeta:i,parent:r.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ht.MAIN)}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=li.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(Ya.isBuffered(e,r)?t=this.getAppendedFrag(r):Ya.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;const i=this.fragPlaying,s=t.level;(!i||t.sn!==i.sn||i.level!==s)&&(this.fragPlaying=t,this.hls.trigger(a.FRAG_CHANGED,{frag:t}),(!i||i.level!==s)&&this.hls.trigger(a.LEVEL_SWITCHED,{level:s}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){const e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}get currentProgramDateTime(){const e=this.media;if(e){const t=e.currentTime,r=this.currentFrag;if(r&&o(t)&&o(r.programDateTime)){const i=r.programDateTime+(t-r.start)*1e3;return new Date(i)}}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 Al{static get version(){return"1.5.19"}static isMSESupported(){return su()}static isSupported(){return mc()}static getMediaSource(){return Xn()}static get Events(){return a}static get ErrorTypes(){return A}static get ErrorDetails(){return m}static get DefaultConfig(){return Al.defaultConfig?Al.defaultConfig:pl}static set DefaultConfig(e){Al.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Xr,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.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,ee(e.debug||!1,"Hls instance");const t=this.config=Cc(Al.DefaultConfig,e);this.userConfig=e,t.progressive&&jl(t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:x}=t,j=new l(this),J=this.abrController=new r(this),fe=this.bufferController=new i(this),Oe=this.capLevelController=new s(this),Ve=new x(this),Je=new Ci(this),ut=new ka(this),Ct=t.contentSteeringController,Ft=Ct?new Ct(this):null,gr=this.levelController=new ul(this,Ft),Or=new Ys(this),Fr=new Uu(this.config),Un=this.streamController=new ec(this,Or,Fr);Oe.setStreamController(Un),Ve.setStreamController(Un);const an=[Je,gr,Un];Ft&&an.splice(1,0,Ft),this.networkControllers=an;const mi=[J,fe,Oe,Ve,ut,Or];this.audioTrackController=this.createController(t.audioTrackController,an);const zn=t.audioStreamController;zn&&an.push(new zn(this,Or,Fr)),this.subtitleTrackController=this.createController(t.subtitleTrackController,an);const Ti=t.subtitleStreamController;Ti&&an.push(new Ti(this,Or,Fr)),this.createController(t.timelineController,mi),Fr.emeController=this.emeController=this.createController(t.emeController,mi),this.cmcdController=this.createController(t.cmcdController,mi),this.latencyController=this.createController(Ps,mi),this.coreComponents=mi,an.push(j);const qi=j.onErrorOut;typeof qi=="function"&&this.on(a.ERROR,qi,j)}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,i){this._emitter.off(e,t,r,i)}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(B.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const i=e===a.ERROR;this.trigger(a.ERROR,{type:A.OTHER_ERROR,details:m.INTERNAL_EXCEPTION,fatal:i,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){B.log("destroy"),this.trigger(a.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){B.log("attachMedia"),this._media=e,this.trigger(a.MEDIA_ATTACHING,{media:e})}detachMedia(){B.log("detachMedia"),this.trigger(a.MEDIA_DETACHING,void 0),this._media=null}loadSource(e){this.stopLoad();const t=this.media,r=this.url,i=this.url=se.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,B.log(`loadSource:${i}`),t&&r&&(r!==i||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(a.MANIFEST_LOADING,{url:e})}startLoad(e=-1){B.log(`startLoad(${e})`),this.started=!0,this.resumeBuffering();for(let t=0;t<this.networkControllers.length&&(this.networkControllers[t].startLoad(e),!(!this.started||!this.networkControllers));t++);}stopLoad(){B.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}resumeBuffering(){B.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()})}pauseBuffering(){B.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()})}swapAudioCodec(){B.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){B.log("recoverMediaError");const e=this._media;this.detachMedia(),e&&this.attachMedia(e)}removeLevel(e){this.levelController.removeLevel(e)}get levels(){const e=this.levelController.levels;return e||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){B.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){B.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){B.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){B.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){B.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 ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(B.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){Fa(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 i=0;i<r;i++)if(e[i].maxBitrate>=t)return i;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:r}=this;let i;if(t===-1&&e!=null&&e.length?i=e.length-1:i=t,r)for(let s=i;s--;){const l=e[s].attrs["HDCP-LEVEL"];if(l&&l<=r)return s}return i}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()}setAudioOption(e){var t;return(t=this.audioTrackController)==null?void 0:t.setAudioOption(e)}setSubtitleOption(e){var t;return(t=this.subtitleTrackController)==null||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}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Al.defaultConfig=void 0},16722:function(yn,Gt,g){"use strict";g.d(Gt,{Z:function(){return T}});const we=n=>typeof n=="object"&&n!=null&&n.nodeType===1,Fe=(n,o)=>(!o||n!=="hidden")&&n!=="visible"&&n!=="clip",se=(n,o)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const L=getComputedStyle(n,null);return Fe(L.overflowY,o)||Fe(L.overflowX,o)||(p=>{const a=(A=>{if(!A.ownerDocument||!A.ownerDocument.defaultView)return null;try{return A.ownerDocument.defaultView.frameElement}catch(m){return null}})(p);return!!a&&(a.clientHeight<p.scrollHeight||a.clientWidth<p.scrollWidth)})(n)}return!1},ke=(n,o,L,p,a,A,m,S)=>A<n&&m>o||A>n&&m<o?0:A<=n&&S<=L||m>=o&&S>=L?A-n-p:m>o&&S<L||A<n&&S>L?m-o+a:0,ie=n=>{const o=n.parentElement;return o==null?n.getRootNode().host||null:o},Y=(n,o)=>{var L,p,a,A;if(typeof document=="undefined")return[];const{scrollMode:m,block:S,inline:K,boundary:F,skipOverflowHiddenElements:H}=o,V=typeof F=="function"?F:at=>at!==F;if(!we(n))throw new TypeError("Invalid target");const ee=document.scrollingElement||document.documentElement,B=[];let G=n;for(;we(G)&&V(G);){if(G=ie(G),G===ee){B.push(G);break}G!=null&&G===document.body&&se(G)&&!se(document.documentElement)||G!=null&&se(G,H)&&B.push(G)}const ce=(p=(L=window.visualViewport)==null?void 0:L.width)!=null?p:innerWidth,q=(A=(a=window.visualViewport)==null?void 0:a.height)!=null?A:innerHeight,{scrollX:be,scrollY:xe}=window,{height:Le,width:ae,top:me,right:I,bottom:_e,left:oe}=n.getBoundingClientRect(),{top:he,right:ve,bottom:_,left:N}=(at=>{const rt=window.getComputedStyle(at);return{top:parseFloat(rt.scrollMarginTop)||0,right:parseFloat(rt.scrollMarginRight)||0,bottom:parseFloat(rt.scrollMarginBottom)||0,left:parseFloat(rt.scrollMarginLeft)||0}})(n);let X=S==="start"||S==="nearest"?me-he:S==="end"?_e+_:me+Le/2-he+_,pe=K==="center"?oe+ae/2-N+ve:K==="end"?I+ve:oe-N;const qe=[];for(let at=0;at<B.length;at++){const rt=B[at],{height:Rt,width:lr,top:qt,right:Ze,bottom:Er,left:Cr}=rt.getBoundingClientRect();if(m==="if-needed"&&me>=0&&oe>=0&&_e<=q&&I<=ce&&(rt===ee&&!se(rt)||me>=qt&&_e<=Er&&oe>=Cr&&I<=Ze))return qe;const Kr=getComputedStyle(rt),_r=parseInt(Kr.borderLeftWidth,10),Me=parseInt(Kr.borderTopWidth,10),Tt=parseInt(Kr.borderRightWidth,10),z=parseInt(Kr.borderBottomWidth,10);let v=0,f=0;const D="offsetWidth"in rt?rt.offsetWidth-rt.clientWidth-_r-Tt:0,de="offsetHeight"in rt?rt.offsetHeight-rt.clientHeight-Me-z:0,W="offsetWidth"in rt?rt.offsetWidth===0?0:lr/rt.offsetWidth:0,P="offsetHeight"in rt?rt.offsetHeight===0?0:Rt/rt.offsetHeight:0;if(ee===rt)v=S==="start"?X:S==="end"?X-q:S==="nearest"?ke(xe,xe+q,q,Me,z,xe+X,xe+X+Le,Le):X-q/2,f=K==="start"?pe:K==="center"?pe-ce/2:K==="end"?pe-ce:ke(be,be+ce,ce,_r,Tt,be+pe,be+pe+ae,ae),v=Math.max(0,v+xe),f=Math.max(0,f+be);else{v=S==="start"?X-qt-Me:S==="end"?X-Er+z+de:S==="nearest"?ke(qt,Er,Rt,Me,z+de,X,X+Le,Le):X-(qt+Rt/2)+de/2,f=K==="start"?pe-Cr-_r:K==="center"?pe-(Cr+lr/2)+D/2:K==="end"?pe-Ze+Tt+D:ke(Cr,Ze,lr,_r,Tt+D,pe,pe+ae,ae);const{scrollLeft:te,scrollTop:Ie}=rt;v=P===0?0:Math.max(0,Math.min(Ie+v/P,rt.scrollHeight-Rt/P+de)),f=W===0?0:Math.max(0,Math.min(te+f/W,rt.scrollWidth-lr/W+D)),X+=Ie-v,pe+=te-f}qe.push({el:rt,top:v,left:f})}return qe},O=n=>n===!1?{block:"end",inline:"nearest"}:(o=>o===Object(o)&&Object.keys(o).length!==0)(n)?n:{block:"start",inline:"nearest"};function T(n,o){if(!n.isConnected||!(a=>{let A=a;for(;A&&A.parentNode;){if(A.parentNode===document)return!0;A=A.parentNode instanceof ShadowRoot?A.parentNode.host:A.parentNode}return!1})(n))return;const L=(a=>{const A=window.getComputedStyle(a);return{top:parseFloat(A.scrollMarginTop)||0,right:parseFloat(A.scrollMarginRight)||0,bottom:parseFloat(A.scrollMarginBottom)||0,left:parseFloat(A.scrollMarginLeft)||0}})(n);if((a=>typeof a=="object"&&typeof a.behavior=="function")(o))return o.behavior(Y(n,o));const p=typeof o=="boolean"||o==null?void 0:o.behavior;for(const{el:a,top:A,left:m}of Y(n,O(o))){const S=A-L.top+L.bottom,K=m-L.left+L.right;a.scroll({top:S,left:K,behavior:p})}}}}]);
|
|
|
}()); |